dataease-dm/frontend/public/vendor/vendor.dll.js
2022-12-01 13:59:16 +08:00

163 lines
5.3 MiB
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.

var vendor_f4e1445631d29d1543a3=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1878)}([function(t,e,n){"use strict";n.r(e),n.d(e,"guid",(function(){return g})),n.d(e,"logError",(function(){return v})),n.d(e,"clone",(function(){return m})),n.d(e,"merge",(function(){return y})),n.d(e,"mergeAll",(function(){return b})),n.d(e,"extend",(function(){return _})),n.d(e,"defaults",(function(){return x})),n.d(e,"createCanvas",(function(){return w})),n.d(e,"indexOf",(function(){return O})),n.d(e,"inherits",(function(){return S})),n.d(e,"mixin",(function(){return C})),n.d(e,"isArrayLike",(function(){return E})),n.d(e,"each",(function(){return T})),n.d(e,"map",(function(){return A})),n.d(e,"reduce",(function(){return M})),n.d(e,"filter",(function(){return I})),n.d(e,"find",(function(){return j})),n.d(e,"keys",(function(){return k})),n.d(e,"bind",(function(){return P})),n.d(e,"curry",(function(){return L})),n.d(e,"isArray",(function(){return R})),n.d(e,"isFunction",(function(){return D})),n.d(e,"isString",(function(){return N})),n.d(e,"isStringSafe",(function(){return B})),n.d(e,"isNumber",(function(){return F})),n.d(e,"isObject",(function(){return z})),n.d(e,"isBuiltInObject",(function(){return V})),n.d(e,"isTypedArray",(function(){return U})),n.d(e,"isDom",(function(){return G})),n.d(e,"isGradientObject",(function(){return H})),n.d(e,"isImagePatternObject",(function(){return W})),n.d(e,"isRegExp",(function(){return Y})),n.d(e,"eqNaN",(function(){return X})),n.d(e,"retrieve",(function(){return $})),n.d(e,"retrieve2",(function(){return q})),n.d(e,"retrieve3",(function(){return Z})),n.d(e,"slice",(function(){return K})),n.d(e,"normalizeCssArray",(function(){return Q})),n.d(e,"assert",(function(){return J})),n.d(e,"trim",(function(){return tt})),n.d(e,"setAsPrimitive",(function(){return et})),n.d(e,"isPrimitive",(function(){return nt})),n.d(e,"HashMap",(function(){return rt})),n.d(e,"createHashMap",(function(){return it})),n.d(e,"concatArray",(function(){return ot})),n.d(e,"createObject",(function(){return at})),n.d(e,"disableUserSelect",(function(){return st})),n.d(e,"hasOwn",(function(){return ut})),n.d(e,"noop",(function(){return lt})),n.d(e,"RADIAN_TO_DEGREE",(function(){return ct}));var r=n(107),i=M(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=M(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,u=s.forEach,l=s.filter,c=s.slice,h=s.map,f=function(){}.constructor,d=f?f.prototype:null,p=2311;function g(){return p++}function v(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function m(t){if(null==t||"object"!=typeof t)return t;var e=t,n=a.call(t);if("[object Array]"===n){if(!nt(t)){e=[];for(var r=0,s=t.length;r<s;r++)e[r]=m(t[r])}}else if(o[n]){if(!nt(t)){var u=t.constructor;if(u.from)e=u.from(t);else{e=new u(t.length);for(r=0,s=t.length;r<s;r++)e[r]=t[r]}}}else if(!i[n]&&!nt(t)&&!G(t))for(var l in e={},t)t.hasOwnProperty(l)&&"__proto__"!==l&&(e[l]=m(t[l]));return e}function y(t,e,n){if(!z(e)||!z(t))return n?m(e):t;for(var r in e)if(e.hasOwnProperty(r)&&"__proto__"!==r){var i=t[r],o=e[r];!z(o)||!z(i)||R(o)||R(i)||G(o)||G(i)||V(o)||V(i)||nt(o)||nt(i)?!n&&r in t||(t[r]=m(e[r])):y(i,o,n)}return t}function b(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=y(n,t[r],e);return n}function _(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&"__proto__"!==n&&(t[n]=e[n]);return t}function x(t,e,n){for(var r=k(e),i=0;i<r.length;i++){var o=r[i];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var w=r.platformApi.createCanvas;function O(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function S(t,e){var n=t.prototype;function r(){}for(var i in r.prototype=e.prototype,t.prototype=new r,n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}function C(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else x(t,e,n)}function E(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function T(t,e,n){if(t&&e)if(t.forEach&&t.forEach===u)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function A(t,e,n){if(!t)return[];if(!e)return K(t);if(t.map&&t.map===h)return t.map(e,n);for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i,t));return r}function M(t,e,n,r){if(t&&e){for(var i=0,o=t.length;i<o;i++)n=e.call(r,n,t[i],i,t);return n}}function I(t,e,n){if(!t)return[];if(!e)return K(t);if(t.filter&&t.filter===l)return t.filter(e,n);for(var r=[],i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function j(t,e,n){if(t&&e)for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return t[r]}function k(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var P=d&&D(d.bind)?d.call.bind(d.bind):function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(c.call(arguments)))}};function L(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(c.call(arguments)))}}function R(t){return Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)}function D(t){return"function"==typeof t}function N(t){return"string"==typeof t}function B(t){return"[object String]"===a.call(t)}function F(t){return"number"==typeof t}function z(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function V(t){return!!i[a.call(t)]}function U(t){return!!o[a.call(t)]}function G(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function H(t){return null!=t.colorStops}function W(t){return null!=t.image}function Y(t){return"[object RegExp]"===a.call(t)}function X(t){return t!=t}function $(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(null!=t[n])return t[n]}function q(t,e){return null!=t?t:e}function Z(t,e,n){return null!=t?t:null!=e?e:n}function K(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return c.apply(t,e)}function Q(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function J(t,e){if(!t)throw new Error(e)}function tt(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function et(t){t.__ec_primitive__=!0}function nt(t){return t.__ec_primitive__}var rt=function(){function t(e){this.data={};var n=R(e);this.data={};var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&T(e,i)}return t.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},t.prototype.set=function(t,e){return this.data[t]=e},t.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},t.prototype.keys=function(){return k(this.data)},t.prototype.removeKey=function(t){delete this.data[t]},t}();function it(t){return new rt(t)}function ot(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];var i=t.length;for(r=0;r<e.length;r++)n[r+i]=e[r];return n}function at(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&_(n,e),n}function st(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ut(t,e){return t.hasOwnProperty(e)}function lt(){}var ct=180/Math.PI},function(t,e,n){"use strict";n.r(e);var r=n(417);n.d(e,"contains",(function(){return r.default})),n.d(e,"includes",(function(){return r.default}));var i=n(987);n.d(e,"difference",(function(){return i.default}));var o=n(988);n.d(e,"find",(function(){return o.default}));var a=n(989);n.d(e,"findIndex",(function(){return a.default}));var s=n(990);n.d(e,"firstValue",(function(){return s.default}));var u=n(991);n.d(e,"flatten",(function(){return u.default}));var l=n(992);n.d(e,"flattenDeep",(function(){return l.default}));var c=n(993);n.d(e,"getRange",(function(){return c.default}));var h=n(994);n.d(e,"pull",(function(){return h.default}));var f=n(638);n.d(e,"pullAt",(function(){return f.default}));var d=n(639);n.d(e,"reduce",(function(){return d.default}));var p=n(995);n.d(e,"remove",(function(){return p.default}));var g=n(996);n.d(e,"sortBy",(function(){return g.default}));var v=n(997);n.d(e,"union",(function(){return v.default}));var m=n(640);n.d(e,"uniq",(function(){return m.default}));var y=n(998);n.d(e,"valuesOfKey",(function(){return y.default}));var b=n(999);n.d(e,"head",(function(){return b.default}));var _=n(1e3);n.d(e,"last",(function(){return _.default}));var x=n(1001);n.d(e,"startsWith",(function(){return x.default}));var w=n(1002);n.d(e,"endsWith",(function(){return w.default}));var O=n(633);n.d(e,"filter",(function(){return O.default}));var S=n(1003);n.d(e,"every",(function(){return S.default}));var C=n(1004);n.d(e,"some",(function(){return C.default}));var E=n(1005);n.d(e,"group",(function(){return E.default}));var T=n(642);n.d(e,"groupBy",(function(){return T.default}));var A=n(641);n.d(e,"groupToMap",(function(){return A.default}));var M=n(1006);n.d(e,"getWrapBehavior",(function(){return M.default}));var I=n(1007);n.d(e,"wrapBehavior",(function(){return I.default}));var j=n(1008);n.d(e,"number2color",(function(){return j.default}));var k=n(1009);n.d(e,"parseRadius",(function(){return k.default}));var P=n(1010);n.d(e,"clamp",(function(){return P.default}));var L=n(1011);n.d(e,"fixedBase",(function(){return L.default}));var R=n(1012);n.d(e,"isDecimal",(function(){return R.default}));var D=n(1013);n.d(e,"isEven",(function(){return D.default}));var N=n(1014);n.d(e,"isInteger",(function(){return N.default}));var B=n(1015);n.d(e,"isNegative",(function(){return B.default}));var F=n(1016);n.d(e,"isNumberEqual",(function(){return F.default}));var z=n(1017);n.d(e,"isOdd",(function(){return z.default}));var V=n(1018);n.d(e,"isPositive",(function(){return V.default}));var U=n(636);n.d(e,"max",(function(){return U.default}));var G=n(1019);n.d(e,"maxBy",(function(){return G.default}));var H=n(637);n.d(e,"min",(function(){return H.default}));var W=n(1020);n.d(e,"minBy",(function(){return W.default}));var Y=n(1021);n.d(e,"mod",(function(){return Y.default}));var X=n(1022);n.d(e,"toDegree",(function(){return X.default}));var $=n(1023);n.d(e,"toInteger",(function(){return $.default}));var q=n(1024);n.d(e,"toRadian",(function(){return q.default}));var Z=n(1025);n.d(e,"forIn",(function(){return Z.default}));var K=n(643);n.d(e,"has",(function(){return K.default}));var Q=n(1026);n.d(e,"hasKey",(function(){return Q.default}));var J=n(1027);n.d(e,"hasValue",(function(){return J.default}));var tt=n(635);n.d(e,"keys",(function(){return tt.default}));var et=n(634);n.d(e,"isMatch",(function(){return et.default}));var nt=n(460);n.d(e,"values",(function(){return nt.default}));var rt=n(1028);n.d(e,"lowerCase",(function(){return rt.default}));var it=n(1029);n.d(e,"lowerFirst",(function(){return it.default}));var ot=n(1030);n.d(e,"substitute",(function(){return ot.default}));var at=n(1031);n.d(e,"upperCase",(function(){return at.default}));var st=n(1032);n.d(e,"upperFirst",(function(){return st.default}));var ut=n(644);n.d(e,"getType",(function(){return ut.default}));var lt=n(1033);n.d(e,"isArguments",(function(){return lt.default}));var ct=n(82);n.d(e,"isArray",(function(){return ct.default}));var ht=n(119);n.d(e,"isArrayLike",(function(){return ht.default}));var ft=n(1034);n.d(e,"isBoolean",(function(){return ft.default}));var dt=n(1035);n.d(e,"isDate",(function(){return dt.default}));var pt=n(1036);n.d(e,"isError",(function(){return pt.default}));var gt=n(125);n.d(e,"isFunction",(function(){return gt.default}));var vt=n(1037);n.d(e,"isFinite",(function(){return vt.default}));var mt=n(197);n.d(e,"isNil",(function(){return mt.default}));var yt=n(1038);n.d(e,"isNull",(function(){return yt.default}));var bt=n(177);n.d(e,"isNumber",(function(){return bt.default}));var _t=n(376);n.d(e,"isObject",(function(){return _t.default}));var xt=n(421);n.d(e,"isObjectLike",(function(){return xt.default}));var wt=n(291);n.d(e,"isPlainObject",(function(){return wt.default}));var Ot=n(645);n.d(e,"isPrototype",(function(){return Ot.default}));var St=n(1039);n.d(e,"isRegExp",(function(){return St.default}));var Ct=n(170);n.d(e,"isString",(function(){return Ct.default}));var Et=n(145);n.d(e,"isType",(function(){return Et.default}));var Tt=n(1040);n.d(e,"isUndefined",(function(){return Tt.default}));var At=n(1041);n.d(e,"isElement",(function(){return At.default}));var Mt=n(1042);n.d(e,"requestAnimationFrame",(function(){return Mt.default}));var It=n(1043);n.d(e,"clearAnimationFrame",(function(){return It.default}));var jt=n(1044);n.d(e,"augment",(function(){return jt.default}));var kt=n(1045);n.d(e,"clone",(function(){return kt.default}));var Pt=n(1046);n.d(e,"debounce",(function(){return Pt.default}));var Lt=n(646);n.d(e,"memoize",(function(){return Lt.default}));var Rt=n(1047);n.d(e,"deepMix",(function(){return Rt.default}));var Dt=n(260);n.d(e,"each",(function(){return Dt.default}));var Nt=n(1048);n.d(e,"extend",(function(){return Nt.default}));var Bt=n(1049);n.d(e,"indexOf",(function(){return Bt.default}));var Ft=n(1050);n.d(e,"isEmpty",(function(){return Ft.default}));var zt=n(647);n.d(e,"isEqual",(function(){return zt.default}));var Vt=n(1051);n.d(e,"isEqualWith",(function(){return Vt.default}));var Ut=n(1052);n.d(e,"map",(function(){return Ut.default}));var Gt=n(1053);n.d(e,"mapValues",(function(){return Gt.default}));var Ht=n(353);n.d(e,"mix",(function(){return Ht.default})),n.d(e,"assign",(function(){return Ht.default}));var Wt=n(1054);n.d(e,"get",(function(){return Wt.default}));var Yt=n(1055);n.d(e,"set",(function(){return Yt.default}));var Xt=n(1056);n.d(e,"pick",(function(){return Xt.default}));var $t=n(1057);n.d(e,"omit",(function(){return $t.default}));var qt=n(1058);n.d(e,"throttle",(function(){return qt.default}));var Zt=n(1059);n.d(e,"toArray",(function(){return Zt.default}));var Kt=n(261);n.d(e,"toString",(function(){return Kt.default}));var Qt=n(1060);n.d(e,"uniqueId",(function(){return Qt.default}));var Jt=n(1061);n.d(e,"noop",(function(){return Jt.default}));var te=n(1062);n.d(e,"identity",(function(){return te.default}));var ee=n(1063);n.d(e,"size",(function(){return ee.default}));var ne=n(428);n.d(e,"measureTextWidth",(function(){return ne.default}));var re=n(1064);n.d(e,"getEllipsisText",(function(){return re.default}));var ie=n(1065);n.d(e,"Cache",(function(){return ie.default}))},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return l})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return h})),n.d(e,"__createBinding",(function(){return f})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return g})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return m})),n.d(e,"__spreadArray",(function(){return y})),n.d(e,"__await",(function(){return b})),n.d(e,"__asyncGenerator",(function(){return _})),n.d(e,"__asyncDelegator",(function(){return x})),n.d(e,"__asyncValues",(function(){return w})),n.d(e,"__makeTemplateObject",(function(){return O})),n.d(e,"__importStar",(function(){return C})),n.d(e,"__importDefault",(function(){return E})),n.d(e,"__classPrivateFieldGet",(function(){return T})),n.d(e,"__classPrivateFieldSet",(function(){return A})),n.d(e,"__classPrivateFieldIn",(function(){return M}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}var f=Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function d(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||f(e,t,n)}function p(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t}function m(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function _(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof b?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function x(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:b(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function O(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var S=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function C(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&f(e,t,n);return S(e,t),e}function E(t){return t&&t.__esModule?t:{default:t}}function T(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function A(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function M(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}},function(t,e,n){"use strict";n.r(e);var r=n(1155);n.d(e,"flow",(function(){return r.flow}));var i=n(665);n.d(e,"pick",(function(){return i.pick}));var o=n(1156);n.d(e,"template",(function(){return o.template}));var a=n(419);n.d(e,"log",(function(){return a.log})),n.d(e,"invariant",(function(){return a.invariant})),n.d(e,"LEVEL",(function(){return a.LEVEL}));var s=n(1157);n.d(e,"getContainerSize",(function(){return s.getContainerSize}));var u=n(1158);n.d(e,"findGeometry",(function(){return u.findGeometry})),n.d(e,"getAllElements",(function(){return u.getAllElements})),n.d(e,"getAllElementsRecursively",(function(){return u.getAllElementsRecursively})),n.d(e,"getAllGeometriesRecursively",(function(){return u.getAllGeometriesRecursively}));var l=n(105);n.d(e,"findViewById",(function(){return l.findViewById})),n.d(e,"getViews",(function(){return l.getViews})),n.d(e,"getSiblingViews",(function(){return l.getSiblingViews}));var c=n(1159);n.d(e,"transformLabel",(function(){return c.transformLabel}));var h=n(1160);n.d(e,"getSplinePath",(function(){return h.getSplinePath}));var f=n(666);n.d(e,"deepAssign",(function(){return f.deepAssign}));var d=n(1161);n.d(e,"kebabCase",(function(){return d.kebabCase}));var p=n(555);n.d(e,"renderStatistic",(function(){return p.renderStatistic})),n.d(e,"renderGaugeStatistic",(function(){return p.renderGaugeStatistic}));var g=n(1162);n.d(e,"measureTextWidth",(function(){return g.measureTextWidth}));var v=n(323);n.d(e,"isBetween",(function(){return v.isBetween})),n.d(e,"isRealNumber",(function(){return v.isRealNumber})),n.d(e,"addViewAnimation",(function(){return l.addViewAnimation}));var m=n(381);n.d(e,"adjustYMetaByZero",(function(){return m.adjustYMetaByZero})),n.d(e,"transformDataToNodeLinkData",(function(){return m.transformDataToNodeLinkData})),n.d(e,"processIllegalData",(function(){return m.processIllegalData}));var y=n(223);n.d(e,"normalPadding",(function(){return y.normalPadding})),n.d(e,"getAdjustAppendPadding",(function(){return y.getAdjustAppendPadding})),n.d(e,"resolveAllPadding",(function(){return y.resolveAllPadding}))},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return l})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return h})),n.d(e,"__createBinding",(function(){return f})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return g})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return m})),n.d(e,"__spreadArray",(function(){return y})),n.d(e,"__await",(function(){return b})),n.d(e,"__asyncGenerator",(function(){return _})),n.d(e,"__asyncDelegator",(function(){return x})),n.d(e,"__asyncValues",(function(){return w})),n.d(e,"__makeTemplateObject",(function(){return O})),n.d(e,"__importStar",(function(){return C})),n.d(e,"__importDefault",(function(){return E})),n.d(e,"__classPrivateFieldGet",(function(){return T})),n.d(e,"__classPrivateFieldSet",(function(){return A}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var f=Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function d(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||f(e,t,n)}function p(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t}function m(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||e)}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function _(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof b?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function x(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:b(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function O(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var S=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function C(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&f(e,t,n);return S(e,t),e}function E(t){return t&&t.__esModule?t:{default:t}}function T(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function A(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"linearMap",(function(){return i})),n.d(e,"parsePercent",(function(){return o})),n.d(e,"round",(function(){return a})),n.d(e,"asc",(function(){return s})),n.d(e,"getPrecision",(function(){return u})),n.d(e,"getPrecisionSafe",(function(){return l})),n.d(e,"getPixelPrecision",(function(){return c})),n.d(e,"getPercentWithPrecision",(function(){return h})),n.d(e,"getPercentSeats",(function(){return f})),n.d(e,"addSafe",(function(){return d})),n.d(e,"MAX_SAFE_INTEGER",(function(){return p})),n.d(e,"remRadian",(function(){return g})),n.d(e,"isRadianAroundZero",(function(){return v})),n.d(e,"parseDate",(function(){return y})),n.d(e,"quantity",(function(){return b})),n.d(e,"quantityExponent",(function(){return _})),n.d(e,"nice",(function(){return x})),n.d(e,"quantile",(function(){return w})),n.d(e,"reformIntervals",(function(){return O})),n.d(e,"numericToNumber",(function(){return S})),n.d(e,"isNumeric",(function(){return C})),n.d(e,"getRandomIdBase",(function(){return E})),n.d(e,"getGreatestCommonDividor",(function(){return T})),n.d(e,"getLeastCommonMultiple",(function(){return A}));var r=n(0);function i(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],u=o-i,l=s-a;if(0===u)return 0===l?a:(a+s)/2;if(r)if(u>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/u*l+a}function o(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return r.isString(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function a(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function s(t){return t.sort((function(t,e){return t-e})),t}function u(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return l(t)}function l(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function c(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function h(t,e,n){return t[e]&&f(t,n)[e]||0}function f(t,e){var n=r.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var i=Math.pow(10,e),o=r.map(t,(function(t){return(isNaN(t)?0:t)/n*i*100})),a=100*i,s=r.map(o,(function(t){return Math.floor(t)})),u=r.reduce(s,(function(t,e){return t+e}),0),l=r.map(o,(function(t,e){return t-s[e]}));u<a;){for(var c=Number.NEGATIVE_INFINITY,h=null,f=0,d=l.length;f<d;++f)l[f]>c&&(c=l[f],h=f);++s[h],l[h]=0,++u}return r.map(s,(function(t){return t/i}))}function d(t,e){var n=Math.max(u(t),u(e)),r=t+e;return n>20?r:a(r,n)}var p=9007199254740991;function g(t){var e=2*Math.PI;return(t%e+e)%e}function v(t){return t>-1e-4&&t<1e-4}var m=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function y(t){if(t instanceof Date)return t;if(r.isString(t)){var e=m.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function b(t){return Math.pow(10,_(t))}function _(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function x(t,e){var n=_(t),r=Math.pow(10,n),i=t/r;return t=(e?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+t.toFixed(n<0?-n:0):t}function w(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function O(t){t.sort((function(t,e){return function t(e,n,r){return e.interval[r]<n.interval[r]||e.interval[r]===n.interval[r]&&(e.close[r]-n.close[r]==(r?-1:1)||!r&&t(e,n,1))}(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,o=t[r].close,a=0;a<2;a++)i[a]<=e&&(i[a]=e,o[a]=a?1:1-n),e=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!=1?t.splice(r,1):r++}return t}function S(t){var e=parseFloat(t);return e==t&&(0!==e||!r.isString(t)||t.indexOf("x")<=0)?e:NaN}function C(t){return!isNaN(S(t))}function E(){return Math.round(9*Math.random())}function T(t,e){return 0===e?t:T(e,t%e)}function A(t,e){return null==t?e:null==e?t:t*e/T(t,e)}},function(t,e,n){"use strict";var r,i,o;n.r(e),n.d(e,"LAYER",(function(){return r})),n.d(e,"DIRECTION",(function(){return i})),n.d(e,"COMPONENT_TYPE",(function(){return o})),n.d(e,"GROUP_Z_INDEX",(function(){return c})),n.d(e,"VIEW_LIFE_CIRCLE",(function(){return a})),n.d(e,"GEOMETRY_LIFE_CIRCLE",(function(){return s})),n.d(e,"PLOT_EVENTS",(function(){return u})),n.d(e,"ELEMENT_STATE",(function(){return l})),n.d(e,"GROUP_ATTRS",(function(){return h})),n.d(e,"FIELD_ORIGIN",(function(){return f})),n.d(e,"MIN_CHART_WIDTH",(function(){return d})),n.d(e,"MIN_CHART_HEIGHT",(function(){return p})),n.d(e,"COMPONENT_MAX_VIEW_PERCENTAGE",(function(){return g})),function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(r||(r={})),function(t){t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.RIGHT="right",t.RIGHT_TOP="right-top",t.RIGHT_BOTTOM="right-bottom",t.LEFT="left",t.LEFT_TOP="left-top",t.LEFT_BOTTOM="left-bottom",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.RADIUS="radius",t.CIRCLE="circle",t.NONE="none"}(i||(i={})),function(t){t.AXIS="axis",t.GRID="grid",t.LEGEND="legend",t.TOOLTIP="tooltip",t.ANNOTATION="annotation",t.SLIDER="slider",t.SCROLLBAR="scrollbar",t.OTHER="other"}(o||(o={}));var a,s,u,l,c={FORE:3,MID:2,BG:1};!function(t){t.BEFORE_RENDER="beforerender",t.AFTER_RENDER="afterrender",t.BEFORE_PAINT="beforepaint",t.AFTER_PAINT="afterpaint",t.BEFORE_CHANGE_DATA="beforechangedata",t.AFTER_CHANGE_DATA="afterchangedata",t.BEFORE_CLEAR="beforeclear",t.AFTER_CLEAR="afterclear",t.BEFORE_DESTROY="beforedestroy",t.BEFORE_CHANGE_SIZE="beforechangesize",t.AFTER_CHANGE_SIZE="afterchangesize"}(a||(a={})),function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate",t.BEFORE_RENDER_LABEL="beforerenderlabel",t.AFTER_RENDER_LABEL="afterrenderlabel"}(s||(s={})),function(t){t.MOUSE_ENTER="plot:mouseenter",t.MOUSE_DOWN="plot:mousedown",t.MOUSE_MOVE="plot:mousemove",t.MOUSE_UP="plot:mouseup",t.MOUSE_LEAVE="plot:mouseleave",t.TOUCH_START="plot:touchstart",t.TOUCH_MOVE="plot:touchmove",t.TOUCH_END="plot:touchend",t.TOUCH_CANCEL="plot:touchcancel",t.CLICK="plot:click",t.DBLCLICK="plot:dblclick",t.CONTEXTMENU="plot:contextmenu",t.LEAVE="plot:leave",t.ENTER="plot:enter"}(u||(u={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(l||(l={}));var h=["color","shape","size"],f="_origin",d=1,p=1,g=.25},function(t,e,n){"use strict";n.r(e),n.d(e,"legend",(function(){return u})),n.d(e,"tooltip",(function(){return l})),n.d(e,"interaction",(function(){return c})),n.d(e,"animation",(function(){return h})),n.d(e,"theme",(function(){return f})),n.d(e,"state",(function(){return d})),n.d(e,"slider",(function(){return p})),n.d(e,"scrollbar",(function(){return g})),n.d(e,"scale",(function(){return v})),n.d(e,"annotation",(function(){return m})),n.d(e,"limitInPlot",(function(){return y})),n.d(e,"transformations",(function(){return b}));var r=n(2),i=n(1),o=n(148),a=n(3),s=n(262);function u(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.seriesField;return!1===r?e.legend(!1):(i||o)&&e.legend(i||o,r),t}function l(t){var e=t.chart,n=t.options.tooltip;return void 0!==n&&e.tooltip(n),t}function c(t){var e=t.chart,n=t.options.interactions;return Object(i.each)(n,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),t}function h(t){var e=t.chart,n=t.options.animation;return Object(a.addViewAnimation)(e,n),t}function f(t){var e=t.chart,n=t.options.theme;return n&&e.theme(n),t}function d(t){var e=t.chart,n=t.options.state;return n&&Object(i.each)(e.geometries,(function(t){t.state(n)})),t}function p(t){var e=t.chart,n=t.options.slider;return e.option("slider",n),t}function g(t){var e=t.chart,n=t.options.scrollbar;return e.option("scrollbar",n),t}function v(t,e){return function(n){var r=n.chart,s=n.options,u={};return Object(i.each)(t,(function(t,e){u[e]=Object(a.pick)(t,o.AXIS_META_CONFIG_KEYS)})),u=Object(a.deepAssign)({},e,s.meta,u),r.scale(u),n}}function m(t){return function(e){var n=e.chart,o=e.options,a=n.getController("annotation");return Object(i.each)(Object(r.__spreadArrays)(o.annotations||[],t||[]),(function(t){a.annotation(t)})),e}}function y(t){var e=t.chart,n=t.options,r=n.yAxis,o=n.limitInPlot,s=o;return Object(i.isObject)(r)&&Object(i.isNil)(o)&&(s=!!Object.values(Object(a.pick)(r,["min","max","minLimit","maxLimit"])).some((function(t){return!Object(i.isNil)(t)}))),e.limitInPlot=s,t}function b(t){return void 0===t&&(t="rect"),function(e){var n=e.chart,r=e.options.coordinate,i=Array.from(r||[]).map((function(t){return"reflectX"===t.type?["reflect","x"]:"reflectY"===t.type?["reflect","y"]:"transpose"===t.type?["transpose"]:null})).filter((function(t){return!!t}));return 0!==i.length&&n.coordinate({type:t,actions:i}),e}}n.d(e,"pattern",(function(){return s.pattern}))},function(t,e,n){"use strict";n.r(e),n.d(e,"normalizeToArray",(function(){return s})),n.d(e,"defaultEmphasis",(function(){return u})),n.d(e,"TEXT_STYLE_OPTIONS",(function(){return l})),n.d(e,"getDataItemValue",(function(){return c})),n.d(e,"isDataItemOption",(function(){return h})),n.d(e,"mappingToExists",(function(){return f})),n.d(e,"convertOptionIdName",(function(){return g})),n.d(e,"isNameSpecified",(function(){return v})),n.d(e,"isComponentIdInternal",(function(){return m})),n.d(e,"makeInternalComponentId",(function(){return y})),n.d(e,"setComponentTypeToKeyInfo",(function(){return b})),n.d(e,"compressBatches",(function(){return _})),n.d(e,"queryDataIndex",(function(){return x})),n.d(e,"makeInner",(function(){return w})),n.d(e,"parseFinder",(function(){return S})),n.d(e,"preParseFinder",(function(){return C})),n.d(e,"SINGLE_REFERRING",(function(){return E})),n.d(e,"MULTIPLE_REFERRING",(function(){return T})),n.d(e,"queryReferringComponents",(function(){return A})),n.d(e,"setAttribute",(function(){return M})),n.d(e,"getAttribute",(function(){return I})),n.d(e,"getTooltipRenderMode",(function(){return j})),n.d(e,"groupData",(function(){return k})),n.d(e,"interpolateRawValues",(function(){return P}));var r=n(0),i=n(54),o=n(6);function a(t,e,n){return(e-t)*n+t}function s(t){return t instanceof Array?t:null==t?[]:[t]}function u(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var l=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function c(t){return!Object(r.isObject)(t)||Object(r.isArray)(t)||t instanceof Date?t:t.value}function h(t){return Object(r.isObject)(t)&&!(t instanceof Array)}function f(t,e,n){var i="normalMerge"===n,o="replaceMerge"===n,a="replaceAll"===n;t=t||[],e=(e||[]).slice();var s=Object(r.createHashMap)();Object(r.each)(e,(function(t,n){Object(r.isObject)(t)||(e[n]=null)}));var u,l,c=function(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||m(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(t,s,n);return(i||o)&&function(t,e,n,i){Object(r.each)(i,(function(o,a){if(o&&null!=o.id){var s=p(o.id),u=n.get(s);if(null!=u){var l=t[u];Object(r.assert)(!l.newOption,'Duplicated option on id "'+s+'".'),l.newOption=o,l.existing=e[u],i[a]=null}}}))}(c,t,s,e),i&&function(t,e){Object(r.each)(e,(function(n,r){if(n&&null!=n.name)for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(null==o.id||null==n.id)&&!m(n)&&!m(o)&&d("name",o,n))return t[i].newOption=n,void(e[r]=null)}}))}(c,e),i||o?function(t,e,n){Object(r.each)(e,(function(e){if(e){for(var r,i=0;(r=t[i])&&(r.newOption||m(r.existing)||r.existing&&null!=e.id&&!d("id",e,r.existing));)i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}}))}(c,e,o):a&&function(t,e){Object(r.each)(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(c,e),u=c,l=Object(r.createHashMap)(),Object(r.each)(u,(function(t){var e=t.existing;e&&l.set(e.id,t)})),Object(r.each)(u,(function(t){var e=t.newOption;Object(r.assert)(!e||null==e.id||!l.get(e.id)||l.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&l.set(e.id,t),!t.keyInfo&&(t.keyInfo={})})),Object(r.each)(u,(function(t,e){var n=t.existing,i=t.newOption,o=t.keyInfo;if(Object(r.isObject)(i)){if(o.name=null!=i.name?p(i.name):n?n.name:"series\0"+e,n)o.id=p(n.id);else if(null!=i.id)o.id=p(i.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(l.get(o.id))}l.set(o.id,t)}})),c}function d(t,e,n){var r=g(e[t],null),i=g(n[t],null);return null!=r&&null!=i&&r===i}function p(t){return g(t,"")}function g(t,e){return null==t?e:Object(r.isString)(t)?t:Object(r.isNumber)(t)||Object(r.isStringSafe)(t)?t+"":e}function v(t){var e=t.name;return!(!e||!e.indexOf("series\0"))}function m(t){return t&&null!=t.id&&0===p(t.id).indexOf("\0_ec_\0")}function y(t){return"\0_ec_\0"+t}function b(t,e,n){Object(r.each)(t,(function(t){var i=t.newOption;Object(r.isObject)(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,r){return e.type?e.type:n?n.subType:r.determineSubType(t,e)}(e,i,t.existing,n))}))}function _(t,e){var n={},r={};return i(t||[],n),i(e||[],r,n),[o(n),o(r)];function i(t,e,n){for(var r=0,i=t.length;r<i;r++){var o=g(t[r].seriesId,null);if(null==o)return;for(var a=s(t[r].dataIndex),u=n&&n[o],l=0,c=a.length;l<c;l++){var h=a[l];u&&u[h]?u[h]=null:(e[o]||(e[o]={}))[h]=1}}}function o(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)n.push(+r);else{var i=o(t[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function x(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Object(r.isArray)(e.dataIndex)?Object(r.map)(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Object(r.isArray)(e.name)?Object(r.map)(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function w(){var t="__ec_inner_"+O++;return function(e){return e[t]||(e[t]={})}}var O=Object(o.getRandomIdBase)();function S(t,e,n){var r=C(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each((function(e,r){var i=A(t,r,e,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]})),a}function C(t,e){var n;if(Object(r.isString)(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var o=Object(r.createHashMap)(),a={},s=!1;return Object(r.each)(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],u=i[1],l=(i[2]||"").toLowerCase();if(u&&l&&!(e&&e.includeMainTypes&&Object(r.indexOf)(e.includeMainTypes,u)<0))s=s||!!u,(o.get(u)||o.set(u,{}))[l]=t}else a[n]=t})),{mainTypeSpecified:s,queryOptionMap:o,others:a}}var E={useDefault:!0,enableAll:!1,enableNone:!1},T={useDefault:!1,enableAll:!0,enableNone:!0};function A(t,e,n,i){i=i||E;var o=n.index,a=n.id,s=n.name,u={models:null,specified:null!=o||null!=a||null!=s};if(!u.specified){var l=void 0;return u.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],u}return"none"===o||!1===o?(Object(r.assert)(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),u.models=[],u):("all"===o&&(Object(r.assert)(i.enableAll,'`"all"` is not a valid value on index option.'),o=a=s=null),u.models=t.queryComponents({mainType:e,index:o,id:a,name:s}),u)}function M(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function I(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function j(t){return"auto"===t?i.default.domSupported?"html":"richText":t||"html"}function k(t,e){var n=Object(r.createHashMap)(),i=[];return Object(r.each)(t,(function(t){var r=e(t);(n.get(r)||(i.push(r),n.set(r,[]))).push(t)})),{keys:i,buckets:n}}function P(t,e,n,i,s){var u=null==e||"auto"===e;if(null==i)return i;if(Object(r.isNumber)(i)){var l=a(n||0,i,s);return Object(o.round)(l,u?Math.max(Object(o.getPrecision)(n||0),Object(o.getPrecision)(i)):e)}if(Object(r.isString)(i))return s<1?n:i;for(var c=[],h=n,f=i,d=Math.max(h?h.length:0,f.length),p=0;p<d;++p){var g=t.getDimensionInfo(p);if(g&&"ordinal"===g.type)c[p]=(s<1&&h?h:f)[p];else{var v=h&&h[p]?h[p]:0,m=f[p];l=a(v,m,s);c[p]=Object(o.round)(l,u?Math.max(Object(o.getPrecision)(v),Object(o.getPrecision)(m)):e)}}return c}},function(t,e,n){"use strict";n.r(e);var r=n(22);n.d(e,"glMatrix",(function(){return r}));var i=n(1076);n.d(e,"mat2",(function(){return i}));var o=n(1077);n.d(e,"mat2d",(function(){return o}));var a=n(652);n.d(e,"mat3",(function(){return a}));var s=n(149);n.d(e,"mat4",(function(){return s}));var u=n(280);n.d(e,"quat",(function(){return u}));var l=n(1078);n.d(e,"quat2",(function(){return l}));var c=n(271);n.d(e,"vec2",(function(){return c}));var h=n(200);n.d(e,"vec3",(function(){return h}));var f=n(173);n.d(e,"vec4",(function(){return f}))},function(t,e,n){"use strict";n.r(e),n.d(e,"HOVER_STATE_NORMAL",(function(){return d})),n.d(e,"HOVER_STATE_BLUR",(function(){return p})),n.d(e,"HOVER_STATE_EMPHASIS",(function(){return g})),n.d(e,"SPECIAL_STATES",(function(){return v})),n.d(e,"DISPLAY_STATES",(function(){return m})),n.d(e,"Z2_EMPHASIS_LIFT",(function(){return y})),n.d(e,"Z2_SELECT_LIFT",(function(){return b})),n.d(e,"HIGHLIGHT_ACTION_TYPE",(function(){return _})),n.d(e,"DOWNPLAY_ACTION_TYPE",(function(){return x})),n.d(e,"SELECT_ACTION_TYPE",(function(){return w})),n.d(e,"UNSELECT_ACTION_TYPE",(function(){return O})),n.d(e,"TOGGLE_SELECT_ACTION_TYPE",(function(){return S})),n.d(e,"setStatesFlag",(function(){return N})),n.d(e,"clearStates",(function(){return B})),n.d(e,"setDefaultStateProxy",(function(){return z})),n.d(e,"enterEmphasisWhenMouseOver",(function(){return V})),n.d(e,"leaveEmphasisWhenMouseOut",(function(){return U})),n.d(e,"enterEmphasis",(function(){return G})),n.d(e,"leaveEmphasis",(function(){return H})),n.d(e,"enterBlur",(function(){return W})),n.d(e,"leaveBlur",(function(){return Y})),n.d(e,"enterSelect",(function(){return X})),n.d(e,"leaveSelect",(function(){return $})),n.d(e,"allLeaveBlur",(function(){return Z})),n.d(e,"blurSeries",(function(){return K})),n.d(e,"blurComponent",(function(){return Q})),n.d(e,"blurSeriesFromHighlightPayload",(function(){return J})),n.d(e,"findComponentHighDownDispatchers",(function(){return tt})),n.d(e,"handleGlobalMouseOverForHighDown",(function(){return et})),n.d(e,"handleGlobalMouseOutForHighDown",(function(){return nt})),n.d(e,"toggleSelectionFromPayload",(function(){return rt})),n.d(e,"updateSeriesElementSelection",(function(){return it})),n.d(e,"getAllSelectedIndices",(function(){return ot})),n.d(e,"enableHoverEmphasis",(function(){return at})),n.d(e,"disableHoverEmphasis",(function(){return st})),n.d(e,"toggleHoverEmphasis",(function(){return ut})),n.d(e,"enableHoverFocus",(function(){return lt})),n.d(e,"setStatesStylesFromModel",(function(){return ft})),n.d(e,"setAsHighDownDispatcher",(function(){return dt})),n.d(e,"isHighDownDispatcher",(function(){return pt})),n.d(e,"enableComponentHighDownFeatures",(function(){return gt})),n.d(e,"getHighlightDigit",(function(){return vt})),n.d(e,"isSelectChangePayload",(function(){return mt})),n.d(e,"isHighDownPayload",(function(){return yt})),n.d(e,"savePathStates",(function(){return bt}));var r=n(316),i=n(0),o=n(31),a=n(80),s=n(9),u=n(36),l=1,c={},h=Object(s.makeInner)(),f=Object(s.makeInner)(),d=0,p=1,g=2,v=["emphasis","blur","select"],m=["normal","emphasis","blur","select"],y=10,b=9,_="highlight",x="downplay",w="select",O="unselect",S="toggleSelect";function C(t){return null!=t&&"none"!==t}var E=new r.default(100);function T(t){if(Object(i.isString)(t)){var e=E.get(t);return e||(e=a.lift(t,-.1),E.put(t,e)),e}if(Object(i.isGradientObject)(t)){var n=Object(i.extend)({},t);return n.colorStops=Object(i.map)(t.colorStops,(function(t){return{offset:t.offset,color:a.lift(t.color,-.1)}})),n}return t}function A(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function M(t){A(t,"emphasis",g)}function I(t){t.hoverState===g&&A(t,"normal",d)}function j(t){A(t,"blur",p)}function k(t){t.hoverState===p&&A(t,"normal",d)}function P(t){t.selected=!0}function L(t){t.selected=!1}function R(t,e,n){e(t,n)}function D(t,e,n){R(t,e,n),t.isGroup&&t.traverse((function(t){R(t,e,n)}))}function N(t,e){switch(e){case"emphasis":t.hoverState=g;break;case"normal":t.hoverState=d;break;case"blur":t.hoverState=p;break;case"select":t.selected=!0}}function B(t){t.isGroup?t.traverse((function(t){t.clearStates()})):t.clearStates()}function F(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,r){var o=n&&Object(i.indexOf)(n,"select")>=0,a=!1;if(t instanceof u.default){var s=h(t),l=o&&s.selectFill||s.normalFill,c=o&&s.selectStroke||s.normalStroke;if(C(l)||C(c)){var f=(r=r||{}).style||{};"inherit"===f.fill?(a=!0,r=Object(i.extend)({},r),(f=Object(i.extend)({},f)).fill=l):!C(f.fill)&&C(l)?(a=!0,r=Object(i.extend)({},r),(f=Object(i.extend)({},f)).fill=T(l)):!C(f.stroke)&&C(c)&&(a||(r=Object(i.extend)({},r),f=Object(i.extend)({},f)),f.stroke=T(c)),r.style=f}}if(r&&null==r.z2){a||(r=Object(i.extend)({},r));var d=t.z2EmphasisLift;r.z2=t.z2+(null!=d?d:y)}return r}(this,0,e,n);if("blur"===t)return function(t,e,n){var r=Object(i.indexOf)(t.currentStates,e)>=0,o=t.style.opacity,a=r?null:function(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],u=i[s];o[s]=null==u?r&&r[s]:u}for(a=0;a<t.animators.length;a++){var l=t.animators[a];l.__fromStateTransition&&l.__fromStateTransition.indexOf(n)<0&&"style"===l.targetName&&l.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),s=(n=n||{}).style||{};return null==s.opacity&&(n=Object(i.extend)({},n),s=Object(i.extend)({opacity:r?o:.1*a.opacity},s),n.style=s),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=Object(i.extend)({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:b)}return n}(this,0,n)}return n}function z(t){t.stateProxy=F;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=F),n&&(n.stateProxy=F)}function V(t,e){!q(t,e)&&!t.__highByOuter&&D(t,M)}function U(t,e){!q(t,e)&&!t.__highByOuter&&D(t,I)}function G(t,e){t.__highByOuter|=1<<(e||0),D(t,M)}function H(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&D(t,I)}function W(t){D(t,j)}function Y(t){D(t,k)}function X(t){D(t,P)}function $(t){D(t,L)}function q(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Z(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=f(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){k(t)})),a&&n.push(i)),o.isBlured=!1})),Object(i.each)(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function K(t,e,n,r){var o=r.getModel();function a(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&Y(r)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var s=o.getSeriesByIndex(t),u=s.coordinateSystem;u&&u.master&&(u=u.master);var l=[];o.eachSeries((function(t){var o=s===t,c=t.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===n&&!o||"coordinateSystem"===n&&!(c&&u?c===u:o)||"series"===e&&o)){if(r.getViewOfSeriesModel(t).group.traverse((function(t){j(t)})),Object(i.isArrayLike)(e))a(t.getData(),e);else if(Object(i.isObject)(e))for(var h=Object(i.keys)(e),d=0;d<h.length;d++)a(t.getData(h[d]),e[h[d]]);l.push(t),f(t).isBlured=!0}})),o.eachComponent((function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,o)}}))}}function Q(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){f(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(t){j(t)}))}}}function J(t,e,n){var r=t.seriesIndex,a=t.getData(e.dataType);if(a){var u=Object(s.queryDataIndex)(a,e);u=(Object(i.isArray)(u)?u[0]:u)||0;var l=a.getItemGraphicEl(u);if(!l)for(var c=a.count(),h=0;!l&&h<c;)l=a.getItemGraphicEl(h++);if(l){var f=Object(o.getECData)(l);K(r,f.focus,f.blurScope,n)}else{var d=t.get(["emphasis","focus"]),p=t.get(["emphasis","blurScope"]);null!=d&&K(r,d,p,n)}}}function tt(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var a=r.getModel().getComponent(t,e);if(!a)return i;var s=r.getViewOfComponentModel(a);if(!s||!s.findHighDownDispatchers)return i;for(var u,l=s.findHighDownDispatchers(n),c=0;c<l.length;c++)if("self"===Object(o.getECData)(l[c]).focus){u=!0;break}return{focusSelf:u,dispatchers:l}}function et(t,e,n){var r=Object(o.getECData)(t),a=tt(r.componentMainType,r.componentIndex,r.componentHighDownName,n),s=a.dispatchers,u=a.focusSelf;s?(u&&Q(r.componentMainType,r.componentIndex,n),Object(i.each)(s,(function(t){return V(t,e)}))):(K(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&Q(r.componentMainType,r.componentIndex,n),V(t,e))}function nt(t,e,n){Z(n);var r=Object(o.getECData)(t),a=tt(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?Object(i.each)(a,(function(t){return U(t,e)})):U(t,e)}function rt(t,e,n){if(mt(e)){var r=e.dataType,o=t.getData(r),a=Object(s.queryDataIndex)(o,e);Object(i.isArray)(a)||(a=[a]),t[e.type===S?"toggleSelect":e.type===w?"select":"unselect"](a,r)}}function it(t){var e=t.getAllData();Object(i.each)(e,(function(e){var n=e.data,r=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,r)?X(e):$(e)}))}))}function ot(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();Object(i.each)(n,(function(n){n.data;var r=n.type,i=t.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function at(t,e,n){dt(t,!0),D(t,z),lt(t,e,n)}function st(t){dt(t,!1)}function ut(t,e,n,r){r?st(t):at(t,e,n)}function lt(t,e,n){var r=Object(o.getECData)(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var ct=["emphasis","blur","select"],ht={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ft(t,e,n,r){n=n||"itemStyle";for(var i=0;i<ct.length;i++){var o=ct[i],a=e.getModel([o,n]);t.ensureState(o).style=r?r(a):a[ht[n]]()}}function dt(t,e){var n=!1===e,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function pt(t){return!(!t||!t.__highDownDispatcher)}function gt(t,e,n){var r=Object(o.getECData)(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}function vt(t){var e=c[t];return null==e&&l<=32&&(e=c[t]=l++),e}function mt(t){var e=t.type;return e===w||e===O||e===S}function yt(t){var e=t.type;return e===_||e===x}function bt(t){var e=h(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}},function(t,e,n){"use strict";n.r(e),n.d(e,"extendShape",(function(){return R})),n.d(e,"extendPath",(function(){return N})),n.d(e,"registerShape",(function(){return B})),n.d(e,"getShapeClass",(function(){return F})),n.d(e,"makePath",(function(){return z})),n.d(e,"makeImage",(function(){return V})),n.d(e,"mergePath",(function(){return G})),n.d(e,"resizePath",(function(){return H})),n.d(e,"subPixelOptimizeLine",(function(){return W})),n.d(e,"subPixelOptimizeRect",(function(){return Y})),n.d(e,"subPixelOptimize",(function(){return X})),n.d(e,"getTransform",(function(){return $})),n.d(e,"applyTransform",(function(){return q})),n.d(e,"transformDirection",(function(){return Z})),n.d(e,"groupTransition",(function(){return Q})),n.d(e,"clipPointsByRect",(function(){return J})),n.d(e,"clipRectByRect",(function(){return tt})),n.d(e,"createIcon",(function(){return et})),n.d(e,"linePolygonIntersect",(function(){return nt})),n.d(e,"lineLineIntersect",(function(){return rt})),n.d(e,"setTooltipConfig",(function(){return ot})),n.d(e,"traverseElements",(function(){return st}));var r=n(268),i=n(42),o=n(18),a=n(36);n.d(e,"Path",(function(){return a.default}));var s=n(129),u=n(114);n.d(e,"Image",(function(){return u.default}));var l=n(40);n.d(e,"Group",(function(){return l.default}));var c=n(72);n.d(e,"Text",(function(){return c.default}));var h=n(250);n.d(e,"Circle",(function(){return h.default}));var f=n(458);n.d(e,"Ellipse",(function(){return f.default}));var d=n(190);n.d(e,"Sector",(function(){return d.default}));var p=n(475);n.d(e,"Ring",(function(){return p.default}));var g=n(180);n.d(e,"Polygon",(function(){return g.default}));var v=n(191);n.d(e,"Polyline",(function(){return v.default}));var m=n(79);n.d(e,"Rect",(function(){return m.default}));var y=n(157);n.d(e,"Line",(function(){return y.default}));var b=n(476);n.d(e,"BezierCurve",(function(){return b.default}));var _=n(557);n.d(e,"Arc",(function(){return _.default}));var x=n(459);n.d(e,"CompoundPath",(function(){return x.default}));var w=n(352);n.d(e,"LinearGradient",(function(){return w.default}));var O=n(552);n.d(e,"RadialGradient",(function(){return O.default}));var S=n(35);n.d(e,"BoundingRect",(function(){return S.default}));var C=n(570);n.d(e,"OrientedBoundingRect",(function(){return C.default}));var E=n(57);n.d(e,"Point",(function(){return E.default}));var T=n(843);n.d(e,"IncrementalDisplayable",(function(){return T.default}));var A=n(394),M=n(0),I=n(31),j=n(23);n.d(e,"updateProps",(function(){return j.updateProps})),n.d(e,"initProps",(function(){return j.initProps})),n.d(e,"removeElement",(function(){return j.removeElement})),n.d(e,"removeElementWithFadeOut",(function(){return j.removeElementWithFadeOut})),n.d(e,"isElementRemoved",(function(){return j.isElementRemoved}));var k=Math.max,P=Math.min,L={};function R(t){return a.default.extend(t)}var D=r.extendFromString;function N(t,e){return D(t,e)}function B(t,e){L[t]=e}function F(t){if(L.hasOwnProperty(t))return L[t]}function z(t,e,n,i){var o=r.createFromString(t,e);return n&&("center"===i&&(n=U(n,o.getBoundingRect())),H(o,n)),o}function V(t,e,n){var r=new u.default({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(U(e,i))}}});return r}function U(t,e){var n,r=e.width/e.height,i=t.height*r;return n=i<=t.width?t.height:(i=t.width)/r,{x:t.x+t.width/2-i/2,y:t.y+t.height/2-n/2,width:i,height:n}}var G=r.mergePath;function H(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function W(t,e){return A.subPixelOptimizeLine(t,t,{lineWidth:e}),t}function Y(t){return A.subPixelOptimizeRect(t.shape,t.shape,t.style),t}var X=A.subPixelOptimize;function $(t,e){for(var n=i.identity([]);t&&t!==e;)i.mul(n,t.getLocalTransform(),n),t=t.parent;return n}function q(t,e,n){return e&&!Object(M.isArrayLike)(e)&&(e=s.default.getLocalTransform(e)),n&&(e=i.invert([],e)),o.applyTransform([],t,e)}function Z(t,e,n){var r=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-r:"right"===t?r:0,"top"===t?-i:"bottom"===t?i:0];return o=q(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function K(t){return!t.isGroup}function Q(t,e,n){if(t&&e){var r,i=(r={},t.traverse((function(t){K(t)&&t.anid&&(r[t.anid]=t)})),r);e.traverse((function(t){if(K(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),Object(j.updateProps)(t,r,n,Object(I.getECData)(t).dataIndex)}}}))}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=Object(M.extend)({},t.shape)),e}}function J(t,e){return Object(M.map)(t,(function(t){var n=t[0];n=k(n,e.x),n=P(n,e.x+e.width);var r=t[1];return r=k(r,e.y),[n,r=P(r,e.y+e.height)]}))}function tt(t,e){var n=k(t.x,e.x),r=P(t.x+t.width,e.x+e.width),i=k(t.y,e.y),o=P(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function et(t,e,n){var r=Object(M.extend)({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Object(M.defaults)(i,n),new u.default(r)):z(t.replace("path://",""),r,n,"center")}function nt(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(rt(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function rt(t,e,n,r,i,o,a,s){var u,l=n-t,c=r-e,h=a-i,f=s-o,d=it(h,f,l,c);if((u=d)<=1e-6&&u>=-1e-6)return!1;var p=t-i,g=e-o,v=it(p,g,l,c)/d;if(v<0||v>1)return!1;var m=it(p,g,h,f)/d;return!(m<0||m>1)}function it(t,e,n,r){return t*r-n*e}function ot(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Object(M.isString)(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var u=t.formatterParamsExtra;u&&Object(M.each)(Object(M.keys)(u),(function(t){Object(M.hasOwn)(s,t)||(s[t]=u[t],s.$vars.push(t))}));var l=Object(I.getECData)(t.el);l.componentMainType=o,l.componentIndex=a,l.tooltipConfig={name:r,option:Object(M.defaults)({content:r,formatterParams:s},i)}}function at(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function st(t,e){if(t)if(Object(M.isArray)(t))for(var n=0;n<t.length;n++)at(t[n],e);else at(t,e)}B("circle",h.default),B("ellipse",f.default),B("sector",d.default),B("ring",p.default),B("polygon",g.default),B("polyline",v.default),B("rect",m.default),B("line",y.default),B("bezierCurve",b.default),B("arc",_.default)},function(t,e,n){"use strict";n.r(e);var r=n(15),i=n(1608),o=n(738),a=n(742),s=n(1612),u=n(1619),l=n(1620),c=n(1621),h=n(1622),f=n(1623),d=n(495),p=n(1624),g=n(1625),v=n(1626),m=n(1627),y=(n(1974),n(1975),n(1976),n(1977),n(1978),n(1979),n(1980),n(1981),n(1982),n(1983),n(1984),n(1985),n(1986),n(1987),n(1988),n(1989),n(1990),n(1991),n(1992),n(1993),n(379)),b=n(1628),_=n(1629),x=n(747),w=n(1630),O=n(1631),S=n(1632),C=n(1633),E=n(1634),T=n(915),A=n(1635),M=n(1639),I=n(1641),j=n(1642),k=n(1643),P=n(1644),L=n(1645),R=n(916),D=n(806),N=n(1648),B=n(1649),F=n(917),z=n(1650),V=n(1651),U=n(918),G=n(1652),H=n(1653),W=n(1654),Y=n(1655),X=n(1656),$=n(1657),q=n(1658),Z=n(1659),K=n(1660),Q=n(1661),J=n(663),tt=n(1662),et=n(1663),nt=n(1664),rt=n(749),it=n(1665),ot=n(1666),at=n(1667),st=n(1668),ut=n(1669),lt=n(281),ct=n(1670),ht=n(1671),ft=n(750);n.d(e,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",(function(){return ft.ELEMENT_RANGE_HIGHLIGHT_EVENTS}));var dt=n(1672),pt=n(1673),gt=n(1674),vt=n(1675),mt=n(1676),yt=n(809),bt=n(1678),_t=n(1679),xt=n(1680),wt=n(1681),Ot=n(1682),St=n(1683),Ct=n(919),Et=n(752),Tt=n(751),At=n(1684),Mt=n(1685),It=n(1686),jt=n(433);n.d(e,"BRUSH_FILTER_EVENTS",(function(){return jt.BRUSH_FILTER_EVENTS}));var kt=n(810),Pt=n(1687),Lt=n(920),Rt=n(1688),Dt=n(1689),Nt=n(1690),Bt=n(1691),Ft=n(1692),zt=n(1693),Vt=n(1694),Ut=n(7);function Gt(t){return t.isInPlot()}function Ht(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}n.d(e,"VIEW_LIFE_CIRCLE",(function(){return Ut.VIEW_LIFE_CIRCLE})),n.d(e,"VERSION",(function(){return r.VERSION})),n.d(e,"Chart",(function(){return r.Chart})),n.d(e,"View",(function(){return r.View})),n.d(e,"Event",(function(){return r.Event})),n.d(e,"ComponentController",(function(){return r.ComponentController})),n.d(e,"TooltipController",(function(){return r.TooltipController})),n.d(e,"Geometry",(function(){return r.Geometry})),n.d(e,"Element",(function(){return r.Element})),n.d(e,"GeometryLabel",(function(){return r.GeometryLabel})),n.d(e,"Interaction",(function(){return r.Interaction})),n.d(e,"Action",(function(){return r.Action})),n.d(e,"Facet",(function(){return r.Facet})),n.d(e,"InteractionAction",(function(){return r.InteractionAction})),n.d(e,"registerComponentController",(function(){return r.registerComponentController})),n.d(e,"registerGeometry",(function(){return r.registerGeometry})),n.d(e,"registerShape",(function(){return r.registerShape})),n.d(e,"registerShapeFactory",(function(){return r.registerShapeFactory})),n.d(e,"getShapeFactory",(function(){return r.getShapeFactory})),n.d(e,"registerGeometryLabel",(function(){return r.registerGeometryLabel})),n.d(e,"registerGeometryLabelLayout",(function(){return r.registerGeometryLabelLayout})),n.d(e,"getGeometryLabel",(function(){return r.getGeometryLabel})),n.d(e,"getGeometryLabelLayout",(function(){return r.getGeometryLabelLayout})),n.d(e,"getInteraction",(function(){return r.getInteraction})),n.d(e,"registerInteraction",(function(){return r.registerInteraction})),n.d(e,"registerAction",(function(){return r.registerAction})),n.d(e,"getActionClass",(function(){return r.getActionClass})),n.d(e,"getFacet",(function(){return r.getFacet})),n.d(e,"registerFacet",(function(){return r.registerFacet})),n.d(e,"getTheme",(function(){return r.getTheme})),n.d(e,"registerTheme",(function(){return r.registerTheme})),n.d(e,"registerEngine",(function(){return r.registerEngine})),n.d(e,"getEngine",(function(){return r.getEngine})),n.d(e,"registerAnimation",(function(){return r.registerAnimation})),n.d(e,"getAnimation",(function(){return r.getAnimation})),n.d(e,"LAYER",(function(){return r.LAYER})),n.d(e,"DIRECTION",(function(){return r.DIRECTION})),n.d(e,"Coordinate",(function(){return r.Coordinate})),n.d(e,"Scale",(function(){return r.Scale})),n.d(e,"Util",(function(){return r.Util})),Object(r.registerTheme)("dark",Object(o.createThemeByStyleSheet)(i.antvDark)),Object(r.registerEngine)("canvas",a),Object(r.registerEngine)("svg",s),Object(r.registerGeometry)("Polygon",g.default),Object(r.registerGeometry)("Interval",h.default),Object(r.registerGeometry)("Schema",v.default),Object(r.registerGeometry)("Path",d.default),Object(r.registerGeometry)("Point",p.default),Object(r.registerGeometry)("Line",f.default),Object(r.registerGeometry)("Area",u.default),Object(r.registerGeometry)("Edge",l.default),Object(r.registerGeometry)("Heatmap",c.default),Object(r.registerGeometry)("Violin",m.default),Object(r.registerGeometryLabel)("base",y.default),Object(r.registerGeometryLabel)("interval",b.default),Object(r.registerGeometryLabel)("pie",_.default),Object(r.registerGeometryLabel)("polar",x.default),Object(r.registerGeometryLabelLayout)("overlap",T.overlap),Object(r.registerGeometryLabelLayout)("distribute",w.distribute),Object(r.registerGeometryLabelLayout)("fixed-overlap",T.fixedOverlap),Object(r.registerGeometryLabelLayout)("hide-overlap",A.hideOverlap),Object(r.registerGeometryLabelLayout)("limit-in-shape",E.limitInShape),Object(r.registerGeometryLabelLayout)("limit-in-canvas",C.limitInCanvas),Object(r.registerGeometryLabelLayout)("limit-in-plot",L.limitInPlot),Object(r.registerGeometryLabelLayout)("pie-outer",O.pieOuterLabelLayout),Object(r.registerGeometryLabelLayout)("adjust-color",M.adjustColor),Object(r.registerGeometryLabelLayout)("interval-adjust-position",I.intervalAdjustPosition),Object(r.registerGeometryLabelLayout)("interval-hide-overlap",j.intervalHideOverlap),Object(r.registerGeometryLabelLayout)("point-adjust-position",k.pointAdjustPosition),Object(r.registerGeometryLabelLayout)("pie-spider",S.pieSpiderLabelLayout),Object(r.registerGeometryLabelLayout)("path-adjust-position",P.pathAdjustPosition),Object(r.registerAnimation)("fade-in",R.fadeIn),Object(r.registerAnimation)("fade-out",R.fadeOut),Object(r.registerAnimation)("grow-in-x",D.growInX),Object(r.registerAnimation)("grow-in-xy",D.growInXY),Object(r.registerAnimation)("grow-in-y",D.growInY),Object(r.registerAnimation)("scale-in-x",F.scaleInX),Object(r.registerAnimation)("scale-in-y",F.scaleInY),Object(r.registerAnimation)("wave-in",V.waveIn),Object(r.registerAnimation)("zoom-in",U.zoomIn),Object(r.registerAnimation)("zoom-out",U.zoomOut),Object(r.registerAnimation)("position-update",B.positionUpdate),Object(r.registerAnimation)("sector-path-update",z.sectorPathUpdate),Object(r.registerAnimation)("path-in",N.pathIn),Object(r.registerFacet)("rect",X.default),Object(r.registerFacet)("mirror",Y.default),Object(r.registerFacet)("list",H.default),Object(r.registerFacet)("matrix",W.default),Object(r.registerFacet)("circle",G.default),Object(r.registerFacet)("tree",$.default),Object(r.registerComponentController)("axis",Z.default),Object(r.registerComponentController)("legend",K.default),Object(r.registerComponentController)("tooltip",J.default),Object(r.registerComponentController)("annotation",q.default),Object(r.registerComponentController)("slider",Q.default),Object(r.registerComponentController)("scrollbar",tt.default),Object(r.registerAction)("tooltip",rt.default),Object(r.registerAction)("sibling-tooltip",nt.default),Object(r.registerAction)("ellipsis-text",it.default),Object(r.registerAction)("element-active",ot.default),Object(r.registerAction)("element-single-active",ut.default),Object(r.registerAction)("element-range-active",st.default),Object(r.registerAction)("element-highlight",lt.default),Object(r.registerAction)("element-highlight-by-x",ht.default),Object(r.registerAction)("element-highlight-by-color",ct.default),Object(r.registerAction)("element-single-highlight",dt.default),Object(r.registerAction)("element-range-highlight",ft.default),Object(r.registerAction)("element-sibling-highlight",ft.default,{effectSiblings:!0,effectByRecord:!0}),Object(r.registerAction)("element-selected",gt.default),Object(r.registerAction)("element-single-selected",vt.default),Object(r.registerAction)("element-range-selected",pt.default),Object(r.registerAction)("element-link-by-color",at.default),Object(r.registerAction)("active-region",et.default),Object(r.registerAction)("list-active",mt.default),Object(r.registerAction)("list-selected",bt.default),Object(r.registerAction)("list-highlight",yt.default),Object(r.registerAction)("list-unchecked",_t.default),Object(r.registerAction)("list-checked",xt.default),Object(r.registerAction)("list-focus",wt.default),Object(r.registerAction)("list-radio",Ot.default),Object(r.registerAction)("legend-item-highlight",yt.default,{componentNames:["legend"]}),Object(r.registerAction)("axis-label-highlight",yt.default,{componentNames:["axis"]}),Object(r.registerAction)("axis-description",Vt.default),Object(r.registerAction)("rect-mask",Tt.default),Object(r.registerAction)("x-rect-mask",Ct.default,{dim:"x"}),Object(r.registerAction)("y-rect-mask",Ct.default,{dim:"y"}),Object(r.registerAction)("circle-mask",St.default),Object(r.registerAction)("path-mask",Et.default),Object(r.registerAction)("smooth-path-mask",At.default),Object(r.registerAction)("cursor",Mt.default),Object(r.registerAction)("data-filter",It.default),Object(r.registerAction)("brush",jt.default),Object(r.registerAction)("brush-x",jt.default,{dims:["x"]}),Object(r.registerAction)("brush-y",jt.default,{dims:["y"]}),Object(r.registerAction)("sibling-filter",kt.default),Object(r.registerAction)("sibling-x-filter",kt.default),Object(r.registerAction)("sibling-y-filter",kt.default),Object(r.registerAction)("element-filter",Pt.default),Object(r.registerAction)("element-sibling-filter",Lt.default),Object(r.registerAction)("element-sibling-filter-record",Lt.default,{byRecord:!0}),Object(r.registerAction)("view-drag",Dt.default),Object(r.registerAction)("view-move",Nt.default),Object(r.registerAction)("scale-translate",Bt.default),Object(r.registerAction)("scale-zoom",Ft.default),Object(r.registerAction)("reset-button",Rt.default,{name:"reset-button",text:"reset"}),Object(r.registerAction)("mousewheel-scroll",zt.default),Object(r.registerInteraction)("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Object(r.registerInteraction)("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Object(r.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Object(r.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Object(r.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Object(r.registerInteraction)("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Object(r.registerInteraction)("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Object(r.registerInteraction)("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Object(r.registerInteraction)("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Object(r.registerInteraction)("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),Object(r.registerInteraction)("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),Object(r.registerInteraction)("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),Object(r.registerInteraction)("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Gt,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Gt,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Gt,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),Object(r.registerInteraction)("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),Object(r.registerInteraction)("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Gt,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Gt,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Gt,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Object(r.registerInteraction)("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Gt,action:"path-mask:start"},{trigger:"mousedown",isEnable:Gt,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),Object(r.registerInteraction)("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Object(r.registerInteraction)("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Object(r.registerInteraction)("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Object(r.registerInteraction)("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Object(r.registerInteraction)("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),Object(r.registerInteraction)("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Object(r.registerInteraction)("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),Object(r.registerInteraction)("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Ht(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Ht(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Object(r.registerInteraction)("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Object(r.registerInteraction)("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]})},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e),n.d(e,"VERSION",(function(){return T})),n.d(e,"Util",(function(){return A}));var r=n(176);n.d(e,"Chart",(function(){return r.Chart})),n.d(e,"View",(function(){return r.View})),n.d(e,"Event",(function(){return r.Event}));var i=n(219);n.d(e,"ComponentController",(function(){return i.Controller}));var o=n(663);n.d(e,"TooltipController",(function(){return o.default}));var a=n(178);n.d(e,"Geometry",(function(){return a.default}));var s=n(468);n.d(e,"Element",(function(){return s.default}));var u=n(379);n.d(e,"GeometryLabel",(function(){return u.default}));var l=n(311);n.d(e,"Interaction",(function(){return l.Interaction})),n.d(e,"Action",(function(){return l.Action}));var c=n(414);n.d(e,"Facet",(function(){return c.Facet}));var h=n(95);n.d(e,"InteractionAction",(function(){return h.default})),n.d(e,"registerComponentController",(function(){return r.registerComponentController})),n.d(e,"registerGeometry",(function(){return r.registerGeometry}));var f=n(39);n.d(e,"registerShape",(function(){return f.registerShape})),n.d(e,"registerShapeFactory",(function(){return f.registerShapeFactory})),n.d(e,"getShapeFactory",(function(){return f.getShapeFactory}));var d=n(351);n.d(e,"registerGeometryLabel",(function(){return d.registerGeometryLabel})),n.d(e,"registerGeometryLabelLayout",(function(){return d.registerGeometryLabelLayout})),n.d(e,"getGeometryLabel",(function(){return d.getGeometryLabel})),n.d(e,"getGeometryLabelLayout",(function(){return d.getGeometryLabelLayout})),n.d(e,"getInteraction",(function(){return l.getInteraction})),n.d(e,"registerInteraction",(function(){return l.registerInteraction})),n.d(e,"registerAction",(function(){return l.registerAction})),n.d(e,"getActionClass",(function(){return l.getActionClass})),n.d(e,"getFacet",(function(){return c.getFacet})),n.d(e,"registerFacet",(function(){return c.registerFacet}));var p=n(423);n.d(e,"getTheme",(function(){return p.getTheme})),n.d(e,"registerTheme",(function(){return p.registerTheme}));var g=n(553);n.d(e,"registerEngine",(function(){return g.registerEngine})),n.d(e,"getEngine",(function(){return g.getEngine}));var v=n(467);n.d(e,"registerAnimation",(function(){return v.registerAnimation})),n.d(e,"getAnimation",(function(){return v.getAnimation}));var m=n(7);n.d(e,"LAYER",(function(){return m.LAYER})),n.d(e,"DIRECTION",(function(){return m.DIRECTION}));var y=n(97);n.d(e,"Coordinate",(function(){return y.Coordinate})),n.d(e,"Scale",(function(){return y.Scale}));var b=n(584),_=n(345),x=n(78),w=n(199),O=n(388),S=n(24),C=n(208),E=n(664),T="4.2.8",A={getLegendItems:_.getLegendItems,translate:w.translate,rotate:w.rotate,zoom:w.zoom,transform:w.transform,getAngle:x.getAngle,getSectorPath:x.getSectorPath,polarToCartesian:x.polarToCartesian,getDelegationObject:S.getDelegationObject,getTooltipItems:O.getTooltipItems,getMappingValue:b.getMappingValue,getPath:E.getPath,getPathPoints:C.getPathPoints}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";function r(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function i(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t){return[t[0],t[1]]}function a(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function u(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function c(t){return Math.sqrt(f(t))}n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"copy",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"set",(function(){return a})),n.d(e,"add",(function(){return s})),n.d(e,"scaleAndAdd",(function(){return u})),n.d(e,"sub",(function(){return l})),n.d(e,"len",(function(){return c})),n.d(e,"length",(function(){return h})),n.d(e,"lenSquare",(function(){return f})),n.d(e,"lengthSquare",(function(){return d})),n.d(e,"mul",(function(){return p})),n.d(e,"div",(function(){return g})),n.d(e,"dot",(function(){return v})),n.d(e,"scale",(function(){return m})),n.d(e,"normalize",(function(){return y})),n.d(e,"distance",(function(){return b})),n.d(e,"dist",(function(){return _})),n.d(e,"distanceSquare",(function(){return x})),n.d(e,"distSquare",(function(){return w})),n.d(e,"negate",(function(){return O})),n.d(e,"lerp",(function(){return S})),n.d(e,"applyTransform",(function(){return C})),n.d(e,"min",(function(){return E})),n.d(e,"max",(function(){return T}));var h=c;function f(t){return t[0]*t[0]+t[1]*t[1]}var d=f;function p(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function v(t,e){return t[0]*e[0]+t[1]*e[1]}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function y(t,e){var n=c(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function b(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var _=b;function x(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var w=x;function O(t,e){return t[0]=-e[0],t[1]=-e[1],t}function S(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function C(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function E(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function T(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}n.r(e),n.d(e,"default",(function(){return i}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.multiBindToService=e.getServiceIdentifierAsString=e.typeConstraint=e.namedConstraint=e.taggedConstraint=e.traverseAncerstors=e.decorate=e.id=e.MetadataReader=e.postConstruct=e.targetName=e.multiInject=e.unmanaged=e.optional=e.LazyServiceIdentifer=e.inject=e.named=e.tagged=e.injectable=e.ContainerModule=e.AsyncContainerModule=e.TargetTypeEnum=e.BindingTypeEnum=e.BindingScopeEnum=e.Container=e.METADATA_KEY=void 0;var r=n(175);e.METADATA_KEY=r;var i=n(2029);Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return i.Container}});var o=n(350);Object.defineProperty(e,"BindingScopeEnum",{enumerable:!0,get:function(){return o.BindingScopeEnum}}),Object.defineProperty(e,"BindingTypeEnum",{enumerable:!0,get:function(){return o.BindingTypeEnum}}),Object.defineProperty(e,"TargetTypeEnum",{enumerable:!0,get:function(){return o.TargetTypeEnum}});var a=n(2045);Object.defineProperty(e,"AsyncContainerModule",{enumerable:!0,get:function(){return a.AsyncContainerModule}}),Object.defineProperty(e,"ContainerModule",{enumerable:!0,get:function(){return a.ContainerModule}});var s=n(2046);Object.defineProperty(e,"injectable",{enumerable:!0,get:function(){return s.injectable}});var u=n(2047);Object.defineProperty(e,"tagged",{enumerable:!0,get:function(){return u.tagged}});var l=n(2048);Object.defineProperty(e,"named",{enumerable:!0,get:function(){return l.named}});var c=n(1216);Object.defineProperty(e,"inject",{enumerable:!0,get:function(){return c.inject}}),Object.defineProperty(e,"LazyServiceIdentifer",{enumerable:!0,get:function(){return c.LazyServiceIdentifer}});var h=n(2049);Object.defineProperty(e,"optional",{enumerable:!0,get:function(){return h.optional}});var f=n(2050);Object.defineProperty(e,"unmanaged",{enumerable:!0,get:function(){return f.unmanaged}});var d=n(2051);Object.defineProperty(e,"multiInject",{enumerable:!0,get:function(){return d.multiInject}});var p=n(2052);Object.defineProperty(e,"targetName",{enumerable:!0,get:function(){return p.targetName}});var g=n(2053);Object.defineProperty(e,"postConstruct",{enumerable:!0,get:function(){return g.postConstruct}});var v=n(1214);Object.defineProperty(e,"MetadataReader",{enumerable:!0,get:function(){return v.MetadataReader}});var m=n(412);Object.defineProperty(e,"id",{enumerable:!0,get:function(){return m.id}});var y=n(374);Object.defineProperty(e,"decorate",{enumerable:!0,get:function(){return y.decorate}});var b=n(1219);Object.defineProperty(e,"traverseAncerstors",{enumerable:!0,get:function(){return b.traverseAncerstors}}),Object.defineProperty(e,"taggedConstraint",{enumerable:!0,get:function(){return b.taggedConstraint}}),Object.defineProperty(e,"namedConstraint",{enumerable:!0,get:function(){return b.namedConstraint}}),Object.defineProperty(e,"typeConstraint",{enumerable:!0,get:function(){return b.typeConstraint}});var _=n(550);Object.defineProperty(e,"getServiceIdentifierAsString",{enumerable:!0,get:function(){return _.getServiceIdentifierAsString}});var x=n(2054);Object.defineProperty(e,"multiBindToService",{enumerable:!0,get:function(){return x.multiBindToService}})},function(t,e,n){"use strict";n.r(e),n.d(e,"EPSILON",(function(){return r})),n.d(e,"ARRAY_TYPE",(function(){return i})),n.d(e,"RANDOM",(function(){return o})),n.d(e,"setMatrixArrayType",(function(){return a})),n.d(e,"toRadian",(function(){return u})),n.d(e,"equals",(function(){return l}));var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array,o=Math.random;function a(t){i=t}var s=Math.PI/180;function u(t){return t*s}function l(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},function(t,e,n){"use strict";n.r(e),n.d(e,"transitionStore",(function(){return o})),n.d(e,"getAnimationConfig",(function(){return a})),n.d(e,"updateProps",(function(){return u})),n.d(e,"initProps",(function(){return l})),n.d(e,"isElementRemoved",(function(){return c})),n.d(e,"removeElement",(function(){return h})),n.d(e,"removeElementWithFadeOut",(function(){return d})),n.d(e,"saveOldStyle",(function(){return p})),n.d(e,"getOldStyle",(function(){return g}));var r=n(0),i=n(9),o=Object(i.makeInner)();function a(t,e,n,i,o){var a;if(e&&e.ecModel){var s=e.ecModel.getUpdatePayload();a=s&&s.animation}var u="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,c=void 0,h=void 0;return i?(l=Object(r.retrieve2)(i.duration,200),c=Object(r.retrieve2)(i.easing,"cubicOut"),h=0):(l=e.getShallow(u?"animationDurationUpdate":"animationDuration"),c=e.getShallow(u?"animationEasingUpdate":"animationEasing"),h=e.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(l=a.duration),null!=a.easing&&(c=a.easing),null!=a.delay&&(h=a.delay)),Object(r.isFunction)(h)&&(h=h(n,o)),Object(r.isFunction)(l)&&(l=l(n)),{duration:l||0,delay:h,easing:c}}return null}function s(t,e,n,i,o,s,u){var l,c=!1;Object(r.isFunction)(o)?(u=s,s=o,o=null):Object(r.isObject)(o)&&(s=o.cb,u=o.during,c=o.isFrom,l=o.removeOpt,o=o.dataIndex);var h="leave"===t;h||e.stopAnimation("leave");var f=a(t,i,o,h?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null);if(f&&f.duration>0){var d={duration:f.duration,delay:f.delay||0,easing:f.easing,done:s,force:!!s||!!u,setToFinal:!h,scope:t,during:u};c?e.animateFrom(n,d):e.animateTo(n,d)}else e.stopAnimation(),!c&&e.attr(n),u&&u(1),s&&s()}function u(t,e,n,r,i,o){s("update",t,e,n,r,i,o)}function l(t,e,n,r,i,o){s("enter",t,e,n,r,i,o)}function c(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function h(t,e,n,r,i,o){c(t)||s("leave",t,e,n,r,i,o)}function f(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),h(t,{style:{opacity:0}},e,n,r)}function d(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||f(t,e,n,r)})):f(t,e,n,r)}function p(t){o(t).oldStyle=t.style}function g(t){return o(t).oldStyle}},function(t,e,n){"use strict";n.r(e),n.d(e,"getCurrentElement",(function(){return u})),n.d(e,"getDelegationObject",(function(){return l})),n.d(e,"isElementChange",(function(){return c})),n.d(e,"isList",(function(){return h})),n.d(e,"isSlider",(function(){return f})),n.d(e,"isMask",(function(){return d})),n.d(e,"getMaskedElements",(function(){return p})),n.d(e,"getSiblingMaskElements",(function(){return g})),n.d(e,"getElements",(function(){return v})),n.d(e,"getElementsByField",(function(){return m})),n.d(e,"getElementsByState",(function(){return y})),n.d(e,"getElementValue",(function(){return b})),n.d(e,"intersectRect",(function(){return _})),n.d(e,"getIntersectElements",(function(){return x})),n.d(e,"getElementsByPath",(function(){return O})),n.d(e,"getComponents",(function(){return S})),n.d(e,"distance",(function(){return C})),n.d(e,"getSpline",(function(){return E})),n.d(e,"isInBox",(function(){return T})),n.d(e,"getSilbings",(function(){return A})),n.d(e,"getSiblingPoint",(function(){return M})),n.d(e,"isInRecords",(function(){return I})),n.d(e,"getScaleByField",(function(){return j}));var r=n(1),i=n(188),o=n(126),a=n(207);function s(t,e){var n=t.event.target.getCanvasBBox();return n.width>=e||n.height>=e?n:null}function u(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}function l(t){var e,n=t.event.target;return n&&(e=n.get("delegateObject")),e}function c(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function h(t){return t&&t.component&&t.component.isList()}function f(t){return t&&t.component&&t.component.isSlider()}function d(t){var e=t.event.target;return e&&"mask"===e.get("name")}function p(t,e){if("path"===t.event.target.get("type")){var n=function(t,e){var n=t.event.target,r=n.getCanvasBBox();return r.width>=e||r.height>=e?n.attr("path"):null}(t,e);if(!n)return;return O(t.view,n)}var r=s(t,e);return r?x(t.view,r):null}function g(t,e,n){var r=s(t,n);if(!r)return null;var i=t.view,o=M(i,e,{x:r.x,y:r.y}),a=M(i,e,{x:r.maxX,y:r.maxY});return x(e,{minX:o.x,minY:o.y,maxX:a.x,maxY:a.y})}function v(t){var e=t.geometries,n=[];return Object(r.each)(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Object(r.each)(t.views,(function(t){n=n.concat(v(t))})),n}function m(t,e,n){return v(t).filter((function(t){return b(t,e)===n}))}function y(t,e){var n=t.geometries,i=[];return Object(r.each)(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i}function b(t,e){var n=t.getModel().data;return Object(r.isArray)(n)?n[0][e]:n[e]}function _(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function x(t,e){var n=v(t),i=[];return Object(r.each)(n,(function(t){var n=t.shape.getCanvasBBox();_(e,n)&&i.push(t)})),i}function w(t){var e=[];return Object(r.each)(t,(function(t){if("A"!==t[0])for(var n=1;n<t.length;n+=2)e.push([t[n],t[n+1]]);else{var r=t.length;e.push([t[r-2],t[r-1]])}})),e}function O(t,e){var n=v(t),r=w(e);return n.filter((function(t){var e,n=t.shape;if("path"===n.get("type"))e=w(n.attr("path"));else{var i=n.getCanvasBBox();e=Object(o.toPoints)(i)}return Object(a.isPolygonsIntersect)(r,e)}))}function S(t){return t.getComponents().map((function(t){return t.component}))}function C(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function E(t,e){if(t.length<=2)return Object(i.getLinePath)(t,!1);var n=t[0],o=[];Object(r.each)(t,(function(t){o.push(t.x),o.push(t.y)}));var a=Object(i.catmullRom2bezier)(o,e,null);return a.unshift(["M",n.x,n.y]),a}function T(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y}function A(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function M(t,e,n){var r=function(t,e){return t.getCoordinate().invert(e)}(t,n);return e.getCoordinate().convert(r)}function I(t,e,n,i){var o=!1;return Object(r.each)(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return o=!0,!1})),o}function j(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(r.each)(t.views,(function(t){if(n=j(t,e))return!1})),n}},function(t,e,n){"use strict";n.r(e);var r=n(10);n.d(e,"mat3",(function(){return r.mat3})),n.d(e,"vec2",(function(){return r.vec2})),n.d(e,"vec3",(function(){return r.vec3}));var i=n(1075);n.d(e,"ext",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"PLOT_CONTAINER_OPTIONS",(function(){return l})),n.d(e,"Plot",(function(){return c}));var r=n(2),i=n(13),o=n(1),a=n(488),s=n(1698),u=n(3),l=["padding","appendPadding","renderer","pixelRatio","syncViewPadding","supportCSSTransform","limitInPlot"],c=function(t){function e(e,n){var r=t.call(this)||this;return r.container="string"==typeof e?document.getElementById(e):e,r.options=Object(u.deepAssign)({},r.getDefaultOptions(),n),r.createG2(),r.bindEvents(),r}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},e.prototype.createG2=function(){var t=this.options,e=t.width,n=t.height,o=t.defaultInteractions;this.chart=new i.Chart(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({container:this.container,autoFit:!1},this.getChartSize(e,n)),{localRefresh:!1}),Object(u.pick)(this.options,l)),{defaultInteractions:o})),this.container.setAttribute("data-chart-source-type","G2Plot")},e.prototype.getChartSize=function(t,e){var n=Object(u.getContainerSize)(this.container);return{width:t||n.width||400,height:e||n.height||400}},e.prototype.bindEvents=function(){var t=this;this.chart&&this.chart.on("*",(function(e){(null==e?void 0:e.type)&&t.emit(e.type,e)}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},e.prototype.update=function(t){this.updateOption(t),this.render()},e.prototype.updateOption=function(t){this.options=Object(u.deepAssign)({},this.options,t)},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=Object(u.getAllElementsRecursively)(this.chart);Object(o.each)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=Object(u.getAllElementsRecursively)(this.chart),e=[];return Object(o.each)(t,(function(t){var n=t.getData(),r=t.getStates();Object(o.each)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.prototype.changeData=function(t){this.update({data:t})},e.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},e.prototype.addAnnotations=function(t,e){e=e||this.chart;var n=Object(r.__spreadArrays)(t),i=e.getController("annotation"),o=i.getComponents().map((function(t){return t.extra}));i.clear(!0);for(var a=function(t){var e=o[t],r=n.findIndex((function(t){return t.id&&t.id===e.id}));-1!==r&&(e=Object(u.deepAssign)({},e,n[r]),n.splice(r,1)),i.annotation(e)},s=0;s<o.length;s++)a(s);n.forEach((function(t){return i.annotation(t)})),e.render(!0)},e.prototype.removeAnnotations=function(t){var e=this.chart.getController("annotation"),n=e.getComponents().map((function(t){return t.extra}));e.clear(!0);for(var r=function(r){var i=n[r];t.find((function(t){return t.id&&t.id===i.id}))||e.annotation(i)},i=0;i<n.length;i++)r(i);this.chart.render(!0)},e.prototype.destroy=function(){this.unbindSizeSensor(),this.chart.destroy(),this.off(),this.container.removeAttribute("data-chart-source-type")},e.prototype.execAdaptor=function(){var t=this.getSchemaAdaptor(),e=this.options,n=e.padding,r=e.appendPadding;this.chart.padding=n,this.chart.appendPadding=r,t({chart:this.chart,options:this.options})},e.prototype.triggerResize=function(){this.chart.forceFit()},e.prototype.bindSizeSensor=function(){var t=this;if(!this.unbind){var e=this.options.autoFit;(void 0===e||e)&&(this.unbind=Object(s.bind)(this.container,(function(){var e=Object(u.getContainerSize)(t.container),n=e.width,r=e.height;n===t.chart.width&&r===t.chart.height||t.triggerResize()})))}},e.prototype.unbindSizeSensor=function(){this.unbind&&(this.unbind(),this.unbind=void 0)},e}(a.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"setLabelText",(function(){return l})),n.d(e,"setLabelStyle",(function(){return h})),n.d(e,"getLabelStatesModels",(function(){return f})),n.d(e,"createTextStyle",(function(){return d})),n.d(e,"createTextConfig",(function(){return p})),n.d(e,"getFont",(function(){return b})),n.d(e,"labelInner",(function(){return _})),n.d(e,"setLabelValueAnimation",(function(){return x})),n.d(e,"animateLabelValue",(function(){return w}));var r=n(72),i=n(0),o=n(11),a=n(9),s=n(23),u={};function l(t,e){for(var n=0;n<o.SPECIAL_STATES.length;n++){var r=o.SPECIAL_STATES[n],i=e[r],a=t.ensureState(r);a.style=a.style||{},a.style.text=i}var s=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(s,!0)}function c(t,e,n){var r,a=t.labelFetcher,s=t.labelDataIndex,u=t.labelDimIndex,l=e.normal;a&&(r=a.getFormattedLabel(s,"normal",null,u,l&&l.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Object(i.isFunction)(t.defaultText)?t.defaultText(s,t,n):t.defaultText);for(var c={normal:r},h=0;h<o.SPECIAL_STATES.length;h++){var f=o.SPECIAL_STATES[h],d=e[f];c[f]=Object(i.retrieve2)(a?a.getFormattedLabel(s,f,null,u,d&&d.get("formatter")):null,r)}return c}function h(t,e,n,a){n=n||u;for(var s=t instanceof r.default,h=!1,f=0;f<o.DISPLAY_STATES.length;f++){if((x=e[o.DISPLAY_STATES[f]])&&x.getShallow("show")){h=!0;break}}var g=s?t:t.getTextContent();if(h){s||(g||(g=new r.default,t.setTextContent(g)),t.stateProxy&&(g.stateProxy=t.stateProxy));var v=c(n,e),m=e.normal,y=!!m.getShallow("show"),b=d(m,a&&a.normal,n,!1,!s);b.text=v.normal,s||t.setTextConfig(p(m,n,!1));for(f=0;f<o.SPECIAL_STATES.length;f++){var x,w=o.SPECIAL_STATES[f];if(x=e[w]){var O=g.ensureState(w),S=!!Object(i.retrieve2)(x.getShallow("show"),y);if(S!==y&&(O.ignore=!S),O.style=d(x,a&&a[w],n,!0,!s),O.style.text=v[w],!s)t.ensureState(w).textConfig=p(x,n,!0)}}g.silent=!!m.getShallow("silent"),null!=g.style.x&&(b.x=g.style.x),null!=g.style.y&&(b.y=g.style.y),g.ignore=!y,g.useStyle(b),g.dirty(),n.enableTextSetter&&(_(g).setLabelText=function(t){var r=c(n,e,t);l(g,r)})}else g&&(g.ignore=!0);t.dirty()}function f(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<o.SPECIAL_STATES.length;r++){var i=o.SPECIAL_STATES[r];n[i]=t.getModel([i,e])}return n}function d(t,e,n,r,o){var a={};return function(t,e,n,r,o){n=n||u;var a,s=e.ecModel,l=s&&s.option.textStyle,c=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||u).rich;if(n){e=e||{};for(var r=Object(i.keys)(n),o=0;o<r.length;o++){var a=r[o];e[a]=1}}t=t.parentModel}return e}(e);if(c)for(var h in a={},c)if(c.hasOwnProperty(h)){var f=e.getModel(["rich",h]);y(a[h]={},f,l,n,r,o,!1,!0)}a&&(t.rich=a);var d=e.get("overflow");d&&(t.overflow=d);var p=e.get("minMargin");null!=p&&(t.margin=p);y(t,e,l,n,r,o,!0,!1)}(a,t,n,r,o),e&&Object(i.extend)(a,e),a}function p(t,e,n){e=e||{};var r,o={},a=t.getShallow("rotate"),s=Object(i.retrieve2)(t.getShallow("distance"),n?null:5),u=t.getShallow("offset");return"outside"===(r=t.getShallow("position")||(n?null:"inside"))&&(r=e.defaultOutsidePosition||"top"),null!=r&&(o.position=r),null!=u&&(o.offset=u),null!=a&&(a*=Math.PI/180,o.rotation=a),null!=s&&(o.distance=s),o.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",o}var g=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],v=["align","lineHeight","width","height","tag","verticalAlign"],m=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function y(t,e,n,r,o,a,s,l){n=!o&&n||u;var c=r&&r.inheritColor,h=e.getShallow("color"),f=e.getShallow("textBorderColor"),d=Object(i.retrieve2)(e.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==f&&"auto"!==f||(f=c||null),a||(h=h||n.color,f=f||n.textBorderColor),null!=h&&(t.fill=h),null!=f&&(t.stroke=f);var p=Object(i.retrieve2)(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var y=Object(i.retrieve2)(e.getShallow("textBorderType"),n.textBorderType);null!=y&&(t.lineDash=y);var b=Object(i.retrieve2)(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=b&&(t.lineDashOffset=b),o||null!=d||l||(d=r&&r.defaultOpacity),null!=d&&(t.opacity=d),o||a||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var _=0;_<g.length;_++){var x=g[_];null!=(O=Object(i.retrieve2)(e.getShallow(x),n[x]))&&(t[x]=O)}for(_=0;_<v.length;_++){x=v[_];null!=(O=e.getShallow(x))&&(t[x]=O)}if(null==t.verticalAlign){var w=e.getShallow("baseline");null!=w&&(t.verticalAlign=w)}if(!s||!r.disableBox){for(_=0;_<m.length;_++){var O;x=m[_];null!=(O=e.getShallow(x))&&(t[x]=O)}var S=e.getShallow("borderType");null!=S&&(t.borderDash=S),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}function b(t,e){var n=e&&e.getModel("textStyle");return Object(i.trim)([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var _=Object(a.makeInner)();function x(t,e,n,r){if(t){var i=_(t);i.prevValue=i.value,i.value=n;var o=e.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}function w(t,e,n,r,o){var u=_(t);if(u.valueAnimation&&u.prevValue!==u.value){var h=u.defaultInterpolatedText,f=Object(i.retrieve2)(u.interpolatedValue,u.prevValue),d=u.value;t.percent=0,(null==u.prevValue?s.initProps:s.updateProps)(t,{percent:1},r,e,null,(function(r){var i=Object(a.interpolateRawValues)(n,u.precision,f,d,r);u.interpolatedValue=1===r?null:i;var s=c({labelDataIndex:e,labelFetcher:o,defaultText:h?h(i):i+""},u.statesModels,i);l(t,s)}))}}},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e),n.d(e,"TYPES",(function(){return r}));var r={IEventEmitter:Symbol.for("IEventEmitter"),ISceneService:Symbol.for("ISceneService"),IGlobalConfigService:Symbol.for("IGlobalConfigService"),ICameraService:Symbol.for("ICameraService"),ICoordinateSystemService:Symbol.for("ICoordinateSystemService"),ILayerService:Symbol.for("ILayerService"),ILayerMappingService:Symbol.for("ILayerMappingService"),ILayerStyleService:Symbol.for("ILayerStyleService"),IMapService:Symbol.for("IMapService"),IMarkerService:Symbol.for("IMarkerService"),IPopupService:Symbol.for("PopupService"),IFactoryMapService:Symbol.for("Factory<IMapService>"),IRendererService:Symbol.for("IRendererService"),IShaderModuleService:Symbol.for("IShaderModuleService"),IIconService:Symbol.for("IIconService"),IFontService:Symbol.for("IFontService"),IInteractionService:Symbol.for("IInteractionService"),IPickingService:Symbol.for("IPickingService"),IControlService:Symbol.for("IControlService"),IStyleAttributeService:Symbol.for("IStyleAttributeService"),ILayer:Symbol.for("ILayer"),ILayerPlugin:Symbol.for("ILayerPlugin"),INormalPass:Symbol.for("INormalPass"),IPostProcessor:Symbol.for("IPostProcessor"),IPostProcessingPass:Symbol.for("IPostProcessingPass"),IFactoryPostProcessingPass:Symbol.for("Factory<IPostProcessingPass>"),IFactoryNormalPass:Symbol.for("Factory<IFactoryNormalPass>"),IMultiPassRenderer:Symbol.for("IMultiPassRenderer"),SceneID:Symbol.for("SceneID"),MapConfig:Symbol.for("MapConfig")}},function(t,e,n){"use strict";n.r(e),n.d(e,"VISUAL_DIMENSIONS",(function(){return i})),n.d(e,"SOURCE_FORMAT_ORIGINAL",(function(){return o})),n.d(e,"SOURCE_FORMAT_ARRAY_ROWS",(function(){return a})),n.d(e,"SOURCE_FORMAT_OBJECT_ROWS",(function(){return s})),n.d(e,"SOURCE_FORMAT_KEYED_COLUMNS",(function(){return u})),n.d(e,"SOURCE_FORMAT_TYPED_ARRAY",(function(){return l})),n.d(e,"SOURCE_FORMAT_UNKNOWN",(function(){return c})),n.d(e,"SERIES_LAYOUT_BY_COLUMN",(function(){return h})),n.d(e,"SERIES_LAYOUT_BY_ROW",(function(){return f}));var r=n(0),i=Object(r.createHashMap)(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),o="original",a="arrayRows",s="objectRows",u="keyedColumns",l="typedArray",c="unknown",h="column",f="row"},function(t,e,n){"use strict";n.r(e),n.d(e,"getECData",(function(){return i})),n.d(e,"setCommonECData",(function(){return o}));var r=n(9),i=Object(r.makeInner)(),o=function(t,e,n,r){if(r){var o=i(r);o.dataIndex=n,o.dataType=e,o.seriesIndex=t,"group"===r.type&&r.traverse((function(r){var o=i(r);o.seriesIndex=t,o.dataIndex=n,o.dataType=e}))}}},function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"LOCATION_PARAMS",(function(){return u})),n.d(e,"HV_NAMES",(function(){return l})),n.d(e,"box",(function(){return h})),n.d(e,"vbox",(function(){return f})),n.d(e,"hbox",(function(){return d})),n.d(e,"getAvailableSize",(function(){return p})),n.d(e,"getLayoutRect",(function(){return g})),n.d(e,"positionElement",(function(){return v})),n.d(e,"sizeCalculable",(function(){return m})),n.d(e,"fetchLayoutMode",(function(){return y})),n.d(e,"mergeLayoutParam",(function(){return b})),n.d(e,"getLayoutParams",(function(){return _})),n.d(e,"copyLayoutParams",(function(){return x}));var r=n(0),i=n(35),o=n(6),a=n(71),s=r.each,u=["left","right","top","bottom","width","height"],l=[["width","left","right"],["height","top","bottom"]];function c(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(u,l){var c,h,f=u.getBoundingRect(),d=e.childAt(l+1),p=d&&d.getBoundingRect();if("horizontal"===t){var g=f.width+(p?-p.x+f.x:0);(c=o+g)>r||u.newline?(o=0,c=g,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(p?-p.y+f.y:0);(h=a+v)>i||u.newline?(o+=s+n,a=0,h=v,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=o,u.y=a,u.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var h=c,f=r.curry(c,"vertical"),d=r.curry(c,"horizontal");function p(t,e,n){var r=e.width,i=e.height,s=Object(o.parsePercent)(t.left,r),u=Object(o.parsePercent)(t.top,i),l=Object(o.parsePercent)(t.right,r),c=Object(o.parsePercent)(t.bottom,i);return(isNaN(s)||isNaN(parseFloat(t.left)))&&(s=0),(isNaN(l)||isNaN(parseFloat(t.right)))&&(l=r),(isNaN(u)||isNaN(parseFloat(t.top)))&&(u=0),(isNaN(c)||isNaN(parseFloat(t.bottom)))&&(c=i),n=a.normalizeCssArray(n||0),{width:Math.max(l-s-n[1]-n[3],0),height:Math.max(c-u-n[0]-n[2],0)}}function g(t,e,n){n=a.normalizeCssArray(n||0);var r=e.width,s=e.height,u=Object(o.parsePercent)(t.left,r),l=Object(o.parsePercent)(t.top,s),c=Object(o.parsePercent)(t.right,r),h=Object(o.parsePercent)(t.bottom,s),f=Object(o.parsePercent)(t.width,r),d=Object(o.parsePercent)(t.height,s),p=n[2]+n[0],g=n[1]+n[3],v=t.aspect;switch(isNaN(f)&&(f=r-c-g-u),isNaN(d)&&(d=s-h-p-l),null!=v&&(isNaN(f)&&isNaN(d)&&(v>r/s?f=.8*r:d=.8*s),isNaN(f)&&(f=v*d),isNaN(d)&&(d=f/v)),isNaN(u)&&(u=r-c-f-g),isNaN(l)&&(l=s-h-d-p),t.left||t.right){case"center":u=r/2-f/2-n[3];break;case"right":u=r-f-g}switch(t.top||t.bottom){case"middle":case"center":l=s/2-d/2-n[0];break;case"bottom":l=s-d-p}u=u||0,l=l||0,isNaN(f)&&(f=r-g-u-(c||0)),isNaN(d)&&(d=s-p-l-(h||0));var m=new i.default(u+n[3],l+n[0],f,d);return m.margin=n,m}function v(t,e,n,o,a,s){var u,l=!a||!a.hv||a.hv[0],c=!a||!a.hv||a.hv[1],h=a&&a.boundingMode||"all";if((s=s||t).x=t.x,s.y=t.y,!l&&!c)return!1;if("raw"===h)u="group"===t.type?new i.default(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var f=t.getLocalTransform();(u=u.clone()).applyTransform(f)}var d=g(r.defaults({width:u.width,height:u.height},e),n,o),p=l?d.x-u.x:0,v=c?d.y-u.y:0;return"raw"===h?(s.x=p,s.y=v):(s.x+=p,s.y+=v),s===t&&t.markRedraw(),!0}function m(t,e){return null!=t[l[e][0]]||null!=t[l[e][1]]&&null!=t[l[e][2]]}function y(t){var e=t.layoutMode||t.constructor.layoutMode;return r.isObject(e)?e:e?{type:e}:null}function b(t,e,n){var i=n&&n.ignoreSize;!r.isArray(i)&&(i=[i,i]);var o=u(l[0],0),a=u(l[1],1);function u(n,r){var o={},a=0,u={},l=0;if(s(n,(function(e){u[e]=t[e]})),s(n,(function(t){c(e,t)&&(o[t]=u[t]=e[t]),h(o,t)&&a++,h(u,t)&&l++})),i[r])return h(e,n[1])?u[n[2]]=null:h(e,n[2])&&(u[n[1]]=null),u;if(2!==l&&a){if(a>=2)return o;for(var f=0;f<n.length;f++){var d=n[f];if(!c(o,d)&&c(t,d)){o[d]=t[d];break}}return o}return u}function c(t,e){return t.hasOwnProperty(e)}function h(t,e){return null!=t[e]&&"auto"!==t[e]}function f(t,e,n){s(t,(function(t){e[t]=n[t]}))}f(l[0],t,o),f(l[1],t,a)}function _(t){return x({},t)}function x(t,e){return e&&t&&s(u,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}},function(t,e,n){"use strict";n.r(e);var r=n(1177);n.d(e,"area",(function(){return r.area}));var i=n(1178);n.d(e,"line",(function(){return i.line}));var o=n(670);n.d(e,"point",(function(){return o.point}));var a=n(1179);n.d(e,"interval",(function(){return a.interval}));var s=n(671);n.d(e,"polygon",(function(){return s.polygon}));var u=n(1180);n.d(e,"edge",(function(){return u.edge}));var l=n(1181);n.d(e,"schema",(function(){return l.schema}));var c=n(1182);n.d(e,"violin",(function(){return c.violin}))},function(t,e,n){"use strict";n.r(e);var r=n(42),i=n(57),o=Math.min,a=Math.max,s=new i.default,u=new i.default,l=new i.default,c=new i.default,h=new i.default,f=new i.default,d=function(){function t(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=o(t.x,this.x),n=o(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=a(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=a(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,o=r.create();return r.translate(o,o,[-e.x,-e.y]),r.scale(o,o,[n,i]),r.translate(o,o,[t.x,t.y]),o},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,o=r.x,a=r.x+r.width,s=r.y,u=r.y+r.height,l=e.x,c=e.x+e.width,d=e.y,p=e.y+e.height,g=!(a<l||c<o||u<d||p<s);if(n){var v=1/0,m=0,y=Math.abs(a-l),b=Math.abs(c-o),_=Math.abs(u-d),x=Math.abs(p-s),w=Math.min(y,b),O=Math.min(_,x);a<l||c<o?w>m&&(m=w,y<b?i.default.set(f,-y,0):i.default.set(f,b,0)):w<v&&(v=w,y<b?i.default.set(h,y,0):i.default.set(h,-b,0)),u<d||p<s?O>m&&(m=O,_<x?i.default.set(f,0,-_):i.default.set(f,0,x)):w<v&&(v=w,_<x?i.default.set(h,0,_):i.default.set(h,0,-x))}return n&&i.default.copy(n,g?h:f),g},t.prototype.contain=function(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],h=r[3],f=r[4],d=r[5];return e.x=n.x*i+f,e.y=n.y*h+d,e.width=n.width*i,e.height=n.height*h,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}s.x=l.x=n.x,s.y=c.y=n.y,u.x=c.x=n.x+n.width,u.y=l.y=n.y+n.height,s.transform(r),c.transform(r),u.transform(r),l.transform(r),e.x=o(s.x,u.x,l.x,c.x),e.y=o(s.y,u.y,l.y,c.y);var p=a(s.x,u.x,l.x,c.x),g=a(s.y,u.y,l.y,c.y);e.width=p-e.x,e.height=g-e.y}else e!==n&&t.copy(e,n)},t}();e.default=d},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_PATH_STYLE",(function(){return f})),n.d(e,"DEFAULT_PATH_ANIMATION_PROPS",(function(){return d}));var r=n(66),i=n(106),o=n(151),a=n(881),s=n(0),u=n(80),l=n(166),c=n(108),h=n(129),f=Object(s.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},i.DEFAULT_COMMON_STYLE),d={style:Object(s.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},i.DEFAULT_COMMON_ANIMATION_PROPS.style)},p=h.TRANSFORMABLE_PROPS.concat(["invisible","culling","z","z2","zlevel","parent"]),g=function(t){function e(e){return t.call(this,e)||this}var n;return Object(r.__extends)(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<p.length;++s)i[p[s]]=this[p[s]];i.__dirty|=c.REDRAW_BIT}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Object(s.keys)(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?Object(s.extend)(this.style,a):this.useStyle(a):"shape"===o?Object(s.extend)(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Object(s.isString)(t)){var e=Object(u.lum)(t,0);return e>.5?l.DARK_LABEL_COLOR:e>.2?l.LIGHTER_LABEL_COLOR:l.LIGHT_LABEL_COLOR}if(t)return l.LIGHT_LABEL_COLOR}return l.DARK_LABEL_COLOR},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(s.isString)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Object(u.lum)(t,0)<l.DARK_MODE_THRESHOLD)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~c.SHAPE_CHANGED_BIT},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new o.default(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&c.SHAPE_CHANGED_BIT)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;s=Math.max(s,null==u?4:u)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var s=i.lineWidth,u=i.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),a.containStroke(o,s/u,t,e)))return!0}if(this.hasFill())return a.contain(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=c.SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:Object(s.extend)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&c.SHAPE_CHANGED_BIT)},e.prototype.createStyle=function(t){return Object(s.createObject)(f,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(s.extend)({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var u,l=!(n&&i);if(n&&n.shape?o?i?u=n.shape:(u=Object(s.extend)({},r.shape),Object(s.extend)(u,n.shape)):(u=Object(s.extend)({},i?this.shape:r.shape),Object(s.extend)(u,n.shape)):l&&(u=r.shape),u)if(o){this.shape=Object(s.extend)({},this.shape);for(var c={},h=Object(s.keys)(u),f=0;f<h.length;f++){var d=h[f];"object"==typeof u[d]?this.shape[d]=u[d]:c[d]=u[d]}this._transitionState(e,{shape:c},a)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},e.prototype.getAnimationStyleProps=function(){return d},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}return Object(r.__extends)(n,e),n.prototype.getDefaultStyle=function(){return Object(s.clone)(t.style)},n.prototype.getDefaultShape=function(){return Object(s.clone)(t.shape)},n}(e);for(var i in t)"function"==typeof t[i]&&(n.prototype[i]=t[i]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=c.REDRAW_BIT|c.STYLE_CHANGED_BIT|c.SHAPE_CHANGED_BIT)),e}(i.default);e.default=g},function(t,e,n){"use strict";n.r(e);var r=n(852);n.d(e,"djb2hash",(function(){return r.djb2hash})),n.d(e,"BKDRHash",(function(){return r.BKDRHash}));var i=n(1220);n.d(e,"DOM",(function(){return i}));var o=n(131);n.d(e,"isMiniAli",(function(){return o.isMiniAli})),n.d(e,"isWeChatMiniProgram",(function(){return o.isWeChatMiniProgram})),n.d(e,"isMini",(function(){return o.isMini})),n.d(e,"miniWindow",(function(){return o.miniWindow})),n.d(e,"$window",(function(){return o.$window})),n.d(e,"$XMLHttpRequest",(function(){return o.$XMLHttpRequest})),n.d(e,"$location",(function(){return o.$location})),n.d(e,"dispatchTouchStart",(function(){return o.dispatchTouchStart})),n.d(e,"dispatchTouchMove",(function(){return o.dispatchTouchMove})),n.d(e,"dispatchTouchEnd",(function(){return o.dispatchTouchEnd})),n.d(e,"dispatchMapCameraParams",(function(){return o.dispatchMapCameraParams})),n.d(e,"dispatchPointerDown",(function(){return o.dispatchPointerDown})),n.d(e,"dispatchPointerMove",(function(){return o.dispatchPointerMove})),n.d(e,"dispatchPointerUp",(function(){return o.dispatchPointerUp})),n.d(e,"dispatchMouseDown",(function(){return o.dispatchMouseDown})),n.d(e,"dispatchMouseMove",(function(){return o.dispatchMouseMove})),n.d(e,"dispatchMouseUp",(function(){return o.dispatchMouseUp}));var a=n(1225);n.d(e,"getJSON",(function(){return a.getJSON})),n.d(e,"getArrayBuffer",(function(){return a.getArrayBuffer})),n.d(e,"getImage",(function(){return a.getImage}));var s=n(1226);n.d(e,"extent",(function(){return s.extent})),n.d(e,"tranfrormCoord",(function(){return s.tranfrormCoord})),n.d(e,"lngLatToMeters",(function(){return s.lngLatToMeters})),n.d(e,"metersToLngLat",(function(){return s.metersToLngLat})),n.d(e,"longitude",(function(){return s.longitude})),n.d(e,"latitude",(function(){return s.latitude})),n.d(e,"validateLngLat",(function(){return s.validateLngLat})),n.d(e,"aProjectFlat",(function(){return s.aProjectFlat})),n.d(e,"unProjectFlat",(function(){return s.unProjectFlat})),n.d(e,"lnglatDistance",(function(){return s.lnglatDistance})),n.d(e,"project",(function(){return s.project})),n.d(e,"padBounds",(function(){return s.padBounds})),n.d(e,"boundsContains",(function(){return s.boundsContains})),n.d(e,"bBoxToBounds",(function(){return s.bBoxToBounds})),n.d(e,"normalize",(function(){return s.normalize})),n.d(e,"calDistance",(function(){return s.calDistance})),n.d(e,"calAngle",(function(){return s.calAngle})),n.d(e,"getAngle",(function(){return s.getAngle})),n.d(e,"flow",(function(){return s.flow}));var u=n(1227);n.d(e,"LRUCache",(function(){return u.LRUCache}));var l=n(1228);n.d(e,"bindAll",(function(){return l.bindAll})),n.d(e,"FrequencyController",(function(){return l.FrequencyController}));var c=n(1229);n.d(e,"isColor",(function(){return c.isColor})),n.d(e,"rgb2arr",(function(){return c.rgb2arr})),n.d(e,"decodePickingColor",(function(){return c.decodePickingColor})),n.d(e,"encodePickingColor",(function(){return c.encodePickingColor})),n.d(e,"generateColorRamp",(function(){return c.generateColorRamp}));var h=n(1230);n.d(e,"anchorType",(function(){return h.anchorType})),n.d(e,"anchorTranslate",(function(){return h.anchorTranslate})),n.d(e,"applyAnchorClass",(function(){return h.applyAnchorClass}));var f=n(1231);n.d(e,"getMask",(function(){return f.getMask}));var d=n(1232);n.d(e,"getCullFace",(function(){return d.getCullFace}));var p=n(1233);n.d(e,"Satistics",(function(){return p}))},function(t,e,n){"use strict";n.r(e),n.d(e,"log",(function(){return a})),n.d(e,"warn",(function(){return s})),n.d(e,"error",(function(){return u})),n.d(e,"deprecateLog",(function(){return l})),n.d(e,"deprecateReplaceLog",(function(){return c})),n.d(e,"makePrintable",(function(){return h})),n.d(e,"throwError",(function(){return f}));var r={},i="undefined"!=typeof console&&console.warn&&console.log;function o(t,e,n){if(i){if(n){if(r[e])return;r[e]=!0}console[t]("[ECharts] "+e)}}function a(t,e){o("log",t,e)}function s(t,e){o("warn",t,e)}function u(t,e){o("error",t,e)}function l(t){0}function c(t,e,n){0}function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="";return n}function f(t){throw new Error(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"registerShapeFactory",(function(){return c})),n.d(e,"registerShape",(function(){return h})),n.d(e,"getShapeFactory",(function(){return f}));var r=n(2),i=n(207),o=n(1),a=n(188),s={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return Object(o.get)(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var r=this.defaultShapeType;n=this.getShape(r)}var i=this.theme,a=Object(o.get)(i,[t,"default"],{}),s=n.getMarker(e);return Object(o.deepMix)({},a,s)},drawShape:function(t,e,n){return this.getShape(t).draw(e,n)}},u={coordinate:null,parsePath:function(t){var e=this.coordinate,n=Object(i.parsePathString)(t);return n=e.isPolar?Object(a.convertPolarPath)(e,n):Object(a.convertNormalPath)(e,n)},parsePoint:function(t){return this.coordinate.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},l={};function c(t,e){var n=Object(o.upperFirst)(t),i=Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},s),e),{geometryType:t});return l[n]=i,i}function h(t,e,n){var i=Object(o.upperFirst)(t),a=l[i],s=Object(r.__assign)(Object(r.__assign)({},u),n);return a[e]=s,s}function f(t){var e=Object(o.upperFirst)(t);return l[e]}},function(t,e,n){"use strict";n.r(e);var r=n(66),i=n(0),o=n(694),a=n(35),s=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return Object(r.__extends)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=i.indexOf(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=i.indexOf(n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new a.default(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var s=n[o];if(!s.ignore&&!s.invisible){var u=s.getBoundingRect(),l=s.getLocalTransform(r);l?(a.default.applyTransform(e,u,l),(i=i||e.clone()).union(e)):(i=i||u.clone()).union(u)}}return i||e},e}(o.default);s.prototype.type="group",e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(64),a=n(111),s=n(127),u=n(9),l=n(33),c=Object(u.makeInner)(),h=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=a.getUID("ec_cpt_model"),i}var n;return Object(r.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=l.fetchLayoutMode(this),r=n?l.getLayoutParams(t):{},o=e.getTheme();i.merge(t,o.get(this.mainType)),i.merge(t,this.getDefaultOption()),n&&l.mergeLayoutParam(t,r,n)},e.prototype.mergeOption=function(t,e){i.merge(this.option,t,!0);var n=l.fetchLayoutMode(this);n&&l.mergeLayoutParam(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!Object(s.isExtendedClass)(t))return t.defaultOption;var e=c(this);if(!e.defaultOption){for(var n=[],r=t;r;){var o=r.prototype.defaultOption;o&&n.push(o),r=r.superClass}for(var a={},u=n.length-1;u>=0;u--)a=i.merge(a,n[u],!0);e.defaultOption=a}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return Object(u.queryReferringComponents)(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(o.default);Object(s.mountExtend)(h,o.default),Object(s.enableClassManagement)(h),a.enableSubTypeDefaulter(h),a.enableTopologicalTravel(h,(function(t){var e=[];i.each(h.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=i.map(e,(function(t){return Object(s.parseClassType)(t).main})),"dataset"!==t&&i.indexOf(e,"dataset")<=0&&e.unshift("dataset");return e})),e.default=h},function(t,e,n){"use strict";function r(){return[1,0,0,1,0,0]}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function a(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],u=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t}function s(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function u(t,e,n){var r=e[0],i=e[2],o=e[4],a=e[1],s=e[3],u=e[5],l=Math.sin(n),c=Math.cos(n);return t[0]=r*c+a*l,t[1]=-r*l+a*c,t[2]=i*c+s*l,t[3]=-i*l+c*s,t[4]=c*o+l*u,t[5]=c*u-l*o,t}function l(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function c(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],u=n*a-o*r;return u?(u=1/u,t[0]=a*u,t[1]=-o*u,t[2]=-r*u,t[3]=n*u,t[4]=(r*s-a*i)*u,t[5]=(o*i-n*s)*u,t):null}function h(t){var e=[1,0,0,1,0,0];return o(e,t),e}n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"identity",(function(){return i})),n.d(e,"copy",(function(){return o})),n.d(e,"mul",(function(){return a})),n.d(e,"translate",(function(){return s})),n.d(e,"rotate",(function(){return u})),n.d(e,"scale",(function(){return l})),n.d(e,"invert",(function(){return c})),n.d(e,"clone",(function(){return h}))},function(t,e,n){"use strict";n.r(e),n.d(e,"ONE_SECOND",(function(){return s})),n.d(e,"ONE_MINUTE",(function(){return u})),n.d(e,"ONE_HOUR",(function(){return l})),n.d(e,"ONE_DAY",(function(){return c})),n.d(e,"ONE_YEAR",(function(){return h})),n.d(e,"defaultLeveledFormatter",(function(){return f})),n.d(e,"fullLeveledFormatter",(function(){return d})),n.d(e,"primaryTimeUnits",(function(){return p})),n.d(e,"timeUnits",(function(){return g})),n.d(e,"pad",(function(){return v})),n.d(e,"getPrimaryTimeUnit",(function(){return m})),n.d(e,"isPrimaryTimeUnit",(function(){return y})),n.d(e,"getDefaultFormatPrecisionOfInterval",(function(){return b})),n.d(e,"format",(function(){return _})),n.d(e,"leveledFormat",(function(){return x})),n.d(e,"getUnitFromValue",(function(){return w})),n.d(e,"getUnitValue",(function(){return O})),n.d(e,"fullYearGetterName",(function(){return S})),n.d(e,"monthGetterName",(function(){return C})),n.d(e,"dateGetterName",(function(){return E})),n.d(e,"hoursGetterName",(function(){return T})),n.d(e,"minutesGetterName",(function(){return A})),n.d(e,"secondsGetterName",(function(){return M})),n.d(e,"millisecondsGetterName",(function(){return I})),n.d(e,"fullYearSetterName",(function(){return j})),n.d(e,"monthSetterName",(function(){return k})),n.d(e,"dateSetterName",(function(){return P})),n.d(e,"hoursSetterName",(function(){return L})),n.d(e,"minutesSetterName",(function(){return R})),n.d(e,"secondsSetterName",(function(){return D})),n.d(e,"millisecondsSetterName",(function(){return N}));var r=n(0),i=n(6),o=n(267),a=n(64),s=1e3,u=60*s,l=60*u,c=24*l,h=365*c,f={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},d={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+f.hour,minute:"{yyyy}-{MM}-{dd} "+f.minute,second:"{yyyy}-{MM}-{dd} "+f.second,millisecond:f.none},p=["year","month","day","hour","minute","second","millisecond"],g=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function v(t,e){return"0000".substr(0,e-(t+="").length)+t}function m(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function y(t){return t===m(t)}function b(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function _(t,e,n,r){var s=i.parseDate(t),u=s[S(n)](),l=s[C(n)]()+1,c=Math.floor((l-1)/3)+1,h=s[E(n)](),f=s["get"+(n?"UTC":"")+"Day"](),d=s[T(n)](),p=(d-1)%12+1,g=s[A(n)](),m=s[M(n)](),y=s[I(n)](),b=(r instanceof a.default?r:Object(o.getLocaleModel)(r||o.SYSTEM_LANG)||Object(o.getDefaultLocaleModel)()).getModel("time"),_=b.get("month"),x=b.get("monthAbbr"),w=b.get("dayOfWeek"),O=b.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,u+"").replace(/{yy}/g,u%100+"").replace(/{Q}/g,c+"").replace(/{MMMM}/g,_[l-1]).replace(/{MMM}/g,x[l-1]).replace(/{MM}/g,v(l,2)).replace(/{M}/g,l+"").replace(/{dd}/g,v(h,2)).replace(/{d}/g,h+"").replace(/{eeee}/g,w[f]).replace(/{ee}/g,O[f]).replace(/{e}/g,f+"").replace(/{HH}/g,v(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,v(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,v(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,v(m,2)).replace(/{s}/g,m+"").replace(/{SSS}/g,v(y,3)).replace(/{S}/g,y+"")}function x(t,e,n,i,o){var a=null;if(r.isString(n))a=n;else if(r.isFunction(n))a=n(t.value,e,{level:t.level});else{var s=r.extend({},f);if(t.level>0)for(var u=0;u<p.length;++u)s[p[u]]="{primary|"+s[p[u]]+"}";var l=n?!1===n.inherit?n:r.defaults(n,s):s,c=w(t.value,o);if(l[c])a=l[c];else if(l.inherit){for(u=g.indexOf(c)-1;u>=0;--u)if(l[c]){a=l[c];break}a=a||s.none}if(r.isArray(a)){var h=null==t.level?0:t.level>=0?t.level:a.length+t.level;a=a[h=Math.min(h,a.length-1)]}}return _(new Date(t.value),a,o,i)}function w(t,e){var n=i.parseDate(t),r=n[C(e)]()+1,o=n[E(e)](),a=n[T(e)](),s=n[A(e)](),u=n[M(e)](),l=0===n[I(e)](),c=l&&0===u,h=c&&0===s,f=h&&0===a,d=f&&1===o;return d&&1===r?"year":d?"month":f?"day":h?"hour":c?"minute":l?"second":"millisecond"}function O(t,e,n){var o=r.isNumber(t)?i.parseDate(t):t;switch(e=e||w(t,n)){case"year":return o[S(n)]();case"half-year":return o[C(n)]()>=6?1:0;case"quarter":return Math.floor((o[C(n)]()+1)/4);case"month":return o[C(n)]();case"day":return o[E(n)]();case"half-day":return o[T(n)]()/24;case"hour":return o[T(n)]();case"minute":return o[A(n)]();case"second":return o[M(n)]();case"millisecond":return o[I(n)]()}}function S(t){return t?"getUTCFullYear":"getFullYear"}function C(t){return t?"getUTCMonth":"getMonth"}function E(t){return t?"getUTCDate":"getDate"}function T(t){return t?"getUTCHours":"getHours"}function A(t){return t?"getUTCMinutes":"getMinutes"}function M(t){return t?"getUTCSeconds":"getSeconds"}function I(t){return t?"getUTCMilliseconds":"getMilliseconds"}function j(t){return t?"setUTCFullYear":"setFullYear"}function k(t){return t?"setUTCMonth":"setMonth"}function P(t){return t?"setUTCDate":"setDate"}function L(t){return t?"setUTCHours":"setHours"}function R(t){return t?"setUTCMinutes":"setMinutes"}function D(t){return t?"setUTCSeconds":"setSeconds"}function N(t){return t?"setUTCMilliseconds":"setMilliseconds"}},function(t,e){t.exports=function(t,e,n,r,i){var o={};return Object.keys(r).forEach((function(t){o[t]=r[t]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,r){return r(t,e,n)||n}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e);var r=n(858);n.d(e,"djb2hash",(function(){return r.djb2hash})),n.d(e,"BKDRHash",(function(){return r.BKDRHash}));var i=n(1280);n.d(e,"DOM",(function(){return i}));var o=n(1285);n.d(e,"Satistics",(function(){return o}));var a=n(135);n.d(e,"isMiniAli",(function(){return a.isMiniAli})),n.d(e,"isWeChatMiniProgram",(function(){return a.isWeChatMiniProgram})),n.d(e,"isMini",(function(){return a.isMini})),n.d(e,"miniWindow",(function(){return a.miniWindow})),n.d(e,"$window",(function(){return a.$window})),n.d(e,"$XMLHttpRequest",(function(){return a.$XMLHttpRequest})),n.d(e,"$location",(function(){return a.$location})),n.d(e,"dispatchTouchStart",(function(){return a.dispatchTouchStart})),n.d(e,"dispatchTouchMove",(function(){return a.dispatchTouchMove})),n.d(e,"dispatchTouchEnd",(function(){return a.dispatchTouchEnd})),n.d(e,"dispatchMapCameraParams",(function(){return a.dispatchMapCameraParams})),n.d(e,"dispatchPointerDown",(function(){return a.dispatchPointerDown})),n.d(e,"dispatchPointerMove",(function(){return a.dispatchPointerMove})),n.d(e,"dispatchPointerUp",(function(){return a.dispatchPointerUp})),n.d(e,"dispatchMouseDown",(function(){return a.dispatchMouseDown})),n.d(e,"dispatchMouseMove",(function(){return a.dispatchMouseMove})),n.d(e,"dispatchMouseUp",(function(){return a.dispatchMouseUp}));var s=n(1286);n.d(e,"AJAXError",(function(){return s.AJAXError})),n.d(e,"makeXMLHttpRequestPromise",(function(){return s.makeXMLHttpRequestPromise})),n.d(e,"getJSON",(function(){return s.getJSON})),n.d(e,"getArrayBuffer",(function(){return s.getArrayBuffer})),n.d(e,"postData",(function(){return s.postData})),n.d(e,"sameOrigin",(function(){return s.sameOrigin})),n.d(e,"getImage",(function(){return s.getImage}));var u=n(134);n.d(e,"lngLatInExtent",(function(){return u.lngLatInExtent})),n.d(e,"extent",(function(){return u.extent})),n.d(e,"tranfrormCoord",(function(){return u.tranfrormCoord})),n.d(e,"lngLatToMeters",(function(){return u.lngLatToMeters})),n.d(e,"metersToLngLat",(function(){return u.metersToLngLat})),n.d(e,"longitude",(function(){return u.longitude})),n.d(e,"latitude",(function(){return u.latitude})),n.d(e,"validateLngLat",(function(){return u.validateLngLat})),n.d(e,"aProjectFlat",(function(){return u.aProjectFlat})),n.d(e,"unProjectFlat",(function(){return u.unProjectFlat})),n.d(e,"amap2Project",(function(){return u.amap2Project})),n.d(e,"amap2UnProject",(function(){return u.amap2UnProject})),n.d(e,"lnglatDistance",(function(){return u.lnglatDistance})),n.d(e,"project",(function(){return u.project})),n.d(e,"padBounds",(function(){return u.padBounds})),n.d(e,"boundsContains",(function(){return u.boundsContains})),n.d(e,"bBoxToBounds",(function(){return u.bBoxToBounds})),n.d(e,"normalize",(function(){return u.normalize})),n.d(e,"calDistance",(function(){return u.calDistance})),n.d(e,"calAngle",(function(){return u.calAngle})),n.d(e,"getAngle",(function(){return u.getAngle})),n.d(e,"flow",(function(){return u.flow})),n.d(e,"calculateCentroid",(function(){return u.calculateCentroid})),n.d(e,"calculatePointsCenterAndRadius",(function(){return u.calculatePointsCenterAndRadius})),n.d(e,"getBBoxFromPoints",(function(){return u.getBBoxFromPoints}));var l=n(1287);n.d(e,"LRUCache",(function(){return l.LRUCache}));var c=n(1288);n.d(e,"bindAll",(function(){return c.bindAll})),n.d(e,"FrequencyController",(function(){return c.FrequencyController}));var h=n(383);n.d(e,"isColor",(function(){return h.isColor})),n.d(e,"rgb2arr",(function(){return h.rgb2arr})),n.d(e,"decodePickingColor",(function(){return h.decodePickingColor})),n.d(e,"encodePickingColor",(function(){return h.encodePickingColor})),n.d(e,"generateColorRamp",(function(){return h.generateColorRamp}));var f=n(1289);n.d(e,"anchorType",(function(){return f.anchorType})),n.d(e,"anchorTranslate",(function(){return f.anchorTranslate})),n.d(e,"applyAnchorClass",(function(){return f.applyAnchorClass}));var d=n(1290);n.d(e,"getMask",(function(){return d.getMask}));var p=n(1291);n.d(e,"WorkerSourceMap",(function(){return p.WorkerSourceMap})),n.d(e,"setL7WorkerSource",(function(){return p.setL7WorkerSource})),n.d(e,"executeWorkerTask",(function(){return p.executeWorkerTask}));var g=n(1294);n.d(e,"getCullFace",(function(){return g.getCullFace}));var v=n(1295);n.d(e,"isImageBitmap",(function(){return v.isImageBitmap})),n.d(e,"isWorker",(function(){return v.isWorker})),n.d(e,"getReferrer",(function(){return v.getReferrer}));var m=n(1296);n.d(e,"isURLTemplate",(function(){return m.isURLTemplate})),n.d(e,"expandUrl",(function(){return m.expandUrl})),n.d(e,"getURLFromTemplate",(function(){return m.getURLFromTemplate})),n.d(e,"getWMTSURLFromTemplate",(function(){return m.getWMTSURLFromTemplate})),n.d(e,"UpdateTileStrategy",(function(){return m.UpdateTileStrategy})),n.d(e,"LoadTileDataStatus",(function(){return m.LoadTileDataStatus})),n.d(e,"SourceTile",(function(){return m.SourceTile})),n.d(e,"TilesetManager",(function(){return m.TilesetManager})),n.d(e,"osmLonLat2TileXY",(function(){return m.osmLonLat2TileXY})),n.d(e,"osmTileXY2LonLat",(function(){return m.osmTileXY2LonLat})),n.d(e,"tileToBounds",(function(){return m.tileToBounds})),n.d(e,"getTileIndices",(function(){return m.getTileIndices})),n.d(e,"getTileWarpXY",(function(){return m.getTileWarpXY}));var y=n(384);n.d(e,"LineTriangulation",(function(){return y.LineTriangulation})),n.d(e,"PointFillTriangulation",(function(){return y.PointFillTriangulation})),n.d(e,"polygonFillTriangulation",(function(){return y.polygonFillTriangulation}));var b=n(1299);n.d(e,"lineAtOffset",(function(){return b.lineAtOffset})),n.d(e,"lineAtOffsetAsyc",(function(){return b.lineAtOffsetAsyc}))},function(t,e,n){"use strict";n.r(e),n.d(e,"formatPadding",(function(){return i})),n.d(e,"clearDom",(function(){return o})),n.d(e,"hasClass",(function(){return a})),n.d(e,"regionToBBox",(function(){return s})),n.d(e,"pointsToBBox",(function(){return u})),n.d(e,"createBBox",(function(){return l})),n.d(e,"getValueByPercent",(function(){return c})),n.d(e,"getCirclePoint",(function(){return h})),n.d(e,"distance",(function(){return f})),n.d(e,"wait",(function(){return d})),n.d(e,"near",(function(){return p})),n.d(e,"intersectBBox",(function(){return g})),n.d(e,"mergeBBox",(function(){return v})),n.d(e,"getBBoxWithClip",(function(){return m})),n.d(e,"updateClip",(function(){return y})),n.d(e,"toPx",(function(){return b})),n.d(e,"getTextPoint",(function(){return _}));var r=n(1);function i(t){var e=0,n=0,i=0,o=0;return Object(r.isNumber)(t)?e=n=i=o=t:Object(r.isArray)(t)&&(e=t[0],i=Object(r.isNil)(t[1])?t[0]:t[1],o=Object(r.isNil)(t[2])?t[0]:t[2],n=Object(r.isNil)(t[3])?i:t[3]),[e,i,o,n]}function o(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])}function a(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function s(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function u(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function l(t,e,n,r){var i=t+n,o=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(o)?0:o}}function c(t,e,n){return(1-n)*t+e*n}function h(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}function f(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}var d=function(t){return new Promise((function(e){setTimeout(e,t)}))},p=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)<n};function g(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY);return l(n,r,Math.min(t.maxX,e.maxX)-n,Math.min(t.maxY,e.maxY)-r)}function v(t,e){var n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY);return l(n,r,Math.max(t.maxX,e.maxX)-n,Math.max(t.maxY,e.maxY)-r)}function m(t){var e,n=t.getClip(),i=n&&n.getBBox();if(t.isGroup()){var o=1/0,a=-1/0,s=1/0,u=-1/0,c=t.getChildren();c.length>0?Object(r.each)(c,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=m(t),n=t.applyToMatrix([e.minX,e.minY,1]),r=t.applyToMatrix([e.minX,e.maxY,1]),i=t.applyToMatrix([e.maxX,e.minY,1]),l=t.applyToMatrix([e.maxX,e.maxY,1]),c=Math.min(n[0],r[0],i[0],l[0]),h=Math.max(n[0],r[0],i[0],l[0]),f=Math.min(n[1],r[1],i[1],l[1]),d=Math.max(n[1],r[1],i[1],l[1]);c<o&&(o=c),h>a&&(a=h),f<s&&(s=f),d>u&&(u=d)}})):(o=0,a=0,s=0,u=0),e=l(o,s,a-o,u-s)}else e=t.getBBox();return i?g(e,i):e}function y(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}}function b(t){return t+"px"}function _(t,e,n,r){var i=r/f(t,e),o=0;return"start"===n?o=0-i:"end"===n&&(o=1+i),{x:c(t.x,e.x,o),y:c(t.y,e.y,o)}}},function(t,e){t.exports=function(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e),n.d(e,"use",(function(){return d}));var r=n(139),i=n(70),o=n(58),a=n(41),s=n(59),u=n(0),l=n(571),c=n(420),h=[],f={registerPreprocessor:r.registerPreprocessor,registerProcessor:r.registerProcessor,registerPostInit:r.registerPostInit,registerPostUpdate:r.registerPostUpdate,registerUpdateLifecycle:r.registerUpdateLifecycle,registerAction:r.registerAction,registerCoordinateSystem:r.registerCoordinateSystem,registerLayout:r.registerLayout,registerVisual:r.registerVisual,registerTransform:r.registerTransform,registerLoading:r.registerLoading,registerMap:r.registerMap,registerImpl:l.registerImpl,PRIORITY:r.PRIORITY,ComponentModel:a.default,ComponentView:i.default,SeriesModel:s.default,ChartView:o.default,registerComponentModel:function(t){a.default.registerClass(t)},registerComponentView:function(t){i.default.registerClass(t)},registerSeriesModel:function(t){s.default.registerClass(t)},registerChartView:function(t){o.default.registerClass(t)},registerSubTypeDefaulter:function(t,e){a.default.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Object(c.registerPainter)(t,e)}};function d(t){Object(u.isArray)(t)?Object(u.each)(t,(function(t){d(t)})):Object(u.indexOf)(h,t)>=0||(h.push(t),Object(u.isFunction)(t)&&(t={install:t}),t.install(f))}},function(t,e,n){var r=n(2028)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){var r=n(849);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(687).default,i=n(14);t.exports=function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"cubicAt",(function(){return f})),n.d(e,"cubicDerivativeAt",(function(){return d})),n.d(e,"cubicRootAt",(function(){return p})),n.d(e,"cubicExtrema",(function(){return g})),n.d(e,"cubicSubdivide",(function(){return v})),n.d(e,"cubicProjectPoint",(function(){return m})),n.d(e,"cubicLength",(function(){return y})),n.d(e,"quadraticAt",(function(){return b})),n.d(e,"quadraticDerivativeAt",(function(){return _})),n.d(e,"quadraticRootAt",(function(){return x})),n.d(e,"quadraticExtremum",(function(){return w})),n.d(e,"quadraticSubdivide",(function(){return O})),n.d(e,"quadraticProjectPoint",(function(){return S})),n.d(e,"quadraticLength",(function(){return C}));var r=n(18),i=Math.pow,o=Math.sqrt,a=o(3),s=Object(r.create)(),u=Object(r.create)(),l=Object(r.create)();function c(t){return t>-1e-8&&t<1e-8}function h(t){return t>1e-8||t<-1e-8}function f(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function d(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function p(t,e,n,r,s,u){var l=r+3*(e-n)-t,h=3*(n-2*e+t),f=3*(e-t),d=t-s,p=h*h-3*l*f,g=h*f-9*l*d,v=f*f-3*h*d,m=0;if(c(p)&&c(g)){if(c(h))u[0]=0;else(A=-f/h)>=0&&A<=1&&(u[m++]=A)}else{var y=g*g-4*p*v;if(c(y)){var b=g/p,_=-b/2;(A=-h/l+b)>=0&&A<=1&&(u[m++]=A),_>=0&&_<=1&&(u[m++]=_)}else if(y>0){var x=o(y),w=p*h+1.5*l*(-g+x),O=p*h+1.5*l*(-g-x);(A=(-h-((w=w<0?-i(-w,1/3):i(w,1/3))+(O=O<0?-i(-O,1/3):i(O,1/3))))/(3*l))>=0&&A<=1&&(u[m++]=A)}else{var S=(2*p*h-3*l*g)/(2*o(p*p*p)),C=Math.acos(S)/3,E=o(p),T=Math.cos(C),A=(-h-2*E*T)/(3*l),M=(_=(-h+E*(T+a*Math.sin(C)))/(3*l),(-h+E*(T-a*Math.sin(C)))/(3*l));A>=0&&A<=1&&(u[m++]=A),_>=0&&_<=1&&(u[m++]=_),M>=0&&M<=1&&(u[m++]=M)}}return m}function g(t,e,n,r,i){var a=6*n-12*e+6*t,s=9*e+3*r-3*t-9*n,u=3*e-3*t,l=0;if(c(s)){if(h(a))(d=-u/a)>=0&&d<=1&&(i[l++]=d)}else{var f=a*a-4*s*u;if(c(f))i[0]=-a/(2*s);else if(f>0){var d,p=o(f),g=(-a-p)/(2*s);(d=(-a+p)/(2*s))>=0&&d<=1&&(i[l++]=d),g>=0&&g<=1&&(i[l++]=g)}}return l}function v(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,u=(r-n)*i+n,l=(s-a)*i+a,c=(u-s)*i+s,h=(c-l)*i+l;o[0]=t,o[1]=a,o[2]=l,o[3]=h,o[4]=h,o[5]=c,o[6]=u,o[7]=r}function m(t,e,n,i,a,c,h,d,p,g,v){var m,y,b,_,x,w=.005,O=1/0;s[0]=p,s[1]=g;for(var S=0;S<1;S+=.05)u[0]=f(t,n,a,h,S),u[1]=f(e,i,c,d,S),(_=Object(r.distSquare)(s,u))<O&&(m=S,O=_);O=1/0;for(var C=0;C<32&&!(w<1e-4);C++)y=m-w,b=m+w,u[0]=f(t,n,a,h,y),u[1]=f(e,i,c,d,y),_=Object(r.distSquare)(u,s),y>=0&&_<O?(m=y,O=_):(l[0]=f(t,n,a,h,b),l[1]=f(e,i,c,d,b),x=Object(r.distSquare)(l,s),b<=1&&x<O?(m=b,O=x):w*=.5);return v&&(v[0]=f(t,n,a,h,m),v[1]=f(e,i,c,d,m)),o(O)}function y(t,e,n,r,i,o,a,s,u){for(var l=t,c=e,h=0,d=1/u,p=1;p<=u;p++){var g=p*d,v=f(t,n,i,a,g),m=f(e,r,o,s,g),y=v-l,b=m-c;h+=Math.sqrt(y*y+b*b),l=v,c=m}return h}function b(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function _(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function x(t,e,n,r,i){var a=t-2*e+n,s=2*(e-t),u=t-r,l=0;if(c(a)){if(h(s))(d=-u/s)>=0&&d<=1&&(i[l++]=d)}else{var f=s*s-4*a*u;if(c(f))(d=-s/(2*a))>=0&&d<=1&&(i[l++]=d);else if(f>0){var d,p=o(f),g=(-s-p)/(2*a);(d=(-s+p)/(2*a))>=0&&d<=1&&(i[l++]=d),g>=0&&g<=1&&(i[l++]=g)}}return l}function w(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function O(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function S(t,e,n,i,a,c,h,f,d){var p,g=.005,v=1/0;s[0]=h,s[1]=f;for(var m=0;m<1;m+=.05){u[0]=b(t,n,a,m),u[1]=b(e,i,c,m),(w=Object(r.distSquare)(s,u))<v&&(p=m,v=w)}v=1/0;for(var y=0;y<32&&!(g<1e-4);y++){var _=p-g,x=p+g;u[0]=b(t,n,a,_),u[1]=b(e,i,c,_);var w=Object(r.distSquare)(u,s);if(_>=0&&w<v)p=_,v=w;else{l[0]=b(t,n,a,x),l[1]=b(e,i,c,x);var O=Object(r.distSquare)(l,s);x<=1&&O<v?(p=x,v=O):g*=.5}}return d&&(d[0]=b(t,n,a,p),d[1]=b(e,i,c,p)),o(v)}function C(t,e,n,r,i,o,a){for(var s=t,u=e,l=0,c=1/a,h=1;h<=a;h++){var f=h*c,d=b(t,n,i,f),p=b(e,r,o,f),g=d-s,v=p-u;l+=Math.sqrt(g*g+v*v),s=d,u=p}return l}},function(t,e,n){"use strict";n.r(e);var r=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},i=new function(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(i.wxa=!0,i.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?i.worker=!0:"undefined"==typeof navigator?(i.node=!0,i.svgSupported=!0):function(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,i),e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"warning",(function(){return u})),n.d(e,"format",(function(){return l})),n.d(e,"isEmptyValue",(function(){return c})),n.d(e,"isEmptyObject",(function(){return h})),n.d(e,"asyncMap",(function(){return d})),n.d(e,"complementError",(function(){return p})),n.d(e,"deepMerge",(function(){return g}));var r=n(438),i=n.n(r),o=n(274),a=n.n(o),s=/%[sdj%]/g,u=function(){};function l(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=1,i=e[0],o=e.length;if("function"==typeof i)return i.apply(null,e.slice(1));if("string"==typeof i){for(var a=String(i).replace(s,(function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch(t){return"[Circular]"}break;default:return t}})),u=e[r];r<o;u=e[++r])a+=" "+u;return a}return i}function c(t,e){return null==t||(!("array"!==e||!Array.isArray(t)||t.length)||!(!function(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"pattern"===t}(e)||"string"!=typeof t||t))}function h(t){return 0===Object.keys(t).length}function f(t,e,n){var r=0,i=t.length;!function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?e(t[s],o):n([])}}([])}function d(t,e,n,r){if(e.first)return f(function(t){var e=[];return Object.keys(t).forEach((function(n){e.push.apply(e,t[n])})),e}(t),n,r);var i=e.firstFields||[];!0===i&&(i=Object.keys(t));var o=Object.keys(t),a=o.length,s=0,u=[],l=function(t){u.push.apply(u,t),++s===a&&r(u)};o.forEach((function(e){var r=t[e];-1!==i.indexOf(e)?f(r,n,l):function(t,e,n){var r=[],i=0,o=t.length;function a(t){r.push.apply(r,t),++i===o&&n(r)}t.forEach((function(t){e(t,a)}))}(r,n,l)}))}function p(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:e,field:e.field||t.fullField}}}function g(t,e){if(e)for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];"object"===(void 0===r?"undefined":a()(r))&&"object"===a()(t[n])?t[n]=i()({},t[n],r):t[n]=r}return t}},function(t,e,n){"use strict";n.r(e),e.default={fontFamily:'\n BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"}},function(t,e,n){"use strict";n.r(e);var r=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}();e.default=r},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(40),o=n(111),a=n(127),s=n(9),u=n(11),l=n(395),c=n(263),h=n(12),f=s.makeInner(),d=Object(c.default)(),p=function(){function t(){this.group=new i.default,this.uid=o.getUID("viewChart"),this.renderTask=Object(l.createTask)({plan:m,reset:y}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){0},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&v(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&v(i,r,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){Object(h.traverseElements)(this.group,t)},t.markUpdateMethod=function(t,e){f(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function g(t,e,n){t&&Object(u.isHighDownDispatcher)(t)&&("emphasis"===e?u.enterEmphasis:u.leaveEmphasis)(t,n)}function v(t,e,n){var i=s.queryDataIndex(t,e),o=e&&null!=e.highlightKey?Object(u.getHighlightDigit)(e.highlightKey):null;null!=i?Object(r.each)(s.normalizeToArray(i),(function(e){g(t.getItemGraphicEl(e),n,o)})):t.eachItemGraphicEl((function(t){g(t,n,o)}))}function m(t){return d(t.model)}function y(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&f(i).updateMethod,u=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==u&&a[u](e,n,r,i),b[u]}a.enableClassExtend(p,["dispose"]),a.enableClassManagement(p);var b={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};e.default=p},function(t,e,n){"use strict";n.r(e),n.d(e,"SERIES_UNIVERSAL_TRANSITION_PROP",(function(){return m}));var r=n(5),i=n(0),o=n(54),a=n(9),s=n(41),u=n(329),l=n(355),c=n(33),h=n(395),f=n(127),d=n(512),p=n(704),g=a.makeInner();function v(t,e){return t.getName(e)||t.getId(e)}var m="__universalTransitionEnabled",y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return Object(r.__extends)(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Object(h.createTask)({count:_,reset:x}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(g(this).sourceManager=new d.SourceManager(this)).prepareSource();var r=this.getInitialData(t,n);O(r,this),this.dataTask.context.data=r,g(this).dataBeforeProcessed=r,b(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Object(c.fetchLayoutMode)(this),r=n?Object(c.getLayoutParams)(t):{},o=this.subType;s.default.hasClass(o)&&(o+="Series"),i.merge(t,e.getTheme().get(this.subType)),i.merge(t,this.getDefaultOption()),a.defaultEmphasis(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Object(c.mergeLayoutParam)(t,r,n)},e.prototype.mergeOption=function(t,e){t=i.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Object(c.fetchLayoutMode)(this);n&&Object(c.mergeLayoutParam)(this.option,t,n);var r=g(this).sourceManager;r.dirty(),r.prepareSource();var o=this.getInitialData(t,e);O(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,g(this).dataBeforeProcessed=o,b(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!i.isTypedArray(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&a.defaultEmphasis(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=C(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return g(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=C(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}g(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return i.createHashMap(t)},e.prototype.getSourceManager=function(){return g(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return g(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return Object(p.defaultSeriesFormatTooltip)({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(o.default.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=u.PaletteMixin.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=v(i,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=i.keys(t),n=[],r=0;r<e.length;r++){var o=t[e[r]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[v(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[m])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,o=this.option,a=o.selectedMode,s=e.length;if(a&&s)if("series"===a)o.selectedMap="all";else if("multiple"===a){i.isObject(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,l=0;l<s;l++){var c=e[l];u[f=v(t,c)]=!0,this._selectedDataIndicesMap[f]=t.getRawIndex(c)}}else if("single"===a||!0===a){var h=e[s-1],f=v(t,h);o.selectedMap=((n={})[f]=!0,n),this._selectedDataIndicesMap=((r={})[f]=t.getRawIndex(h),r)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return s.default.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(s.default);function b(t){var e=t.name;a.isNameSpecified(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return i.each(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}(t)||e)}function _(t){return t.model.getRawData().count()}function x(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),w}function w(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function O(t,e){i.each(i.concatArray(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,i.curry(S,e))}))}function S(t,e){var n=C(t);return n&&n.setOutputEnd((e||this).count()),e}function C(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}i.mixin(y,l.DataFormatMixin),i.mixin(y,u.PaletteMixin),Object(f.mountExtend)(y,s.default),e.default=y},function(t,e,n){"use strict";n.r(e),n.d(e,"getWidth",(function(){return s})),n.d(e,"innerGetBoundingRect",(function(){return u})),n.d(e,"getBoundingRect",(function(){return l})),n.d(e,"adjustTextX",(function(){return c})),n.d(e,"adjustTextY",(function(){return h})),n.d(e,"getLineHeight",(function(){return f})),n.d(e,"measureText",(function(){return d})),n.d(e,"parsePercent",(function(){return p})),n.d(e,"calculateTextPosition",(function(){return g}));var r=n(35),i=n(316),o=n(107),a={};function s(t,e){e=e||o.DEFAULT_FONT;var n=a[e];n||(n=a[e]=new i.default(500));var r=n.get(t);return null==r&&(r=o.platformApi.measureText(t,e).width,n.put(t,r)),r}function u(t,e,n,i){var o=s(t,e),a=f(e),u=c(0,o,n),l=h(0,a,i);return new r.default(u,l,o,a)}function l(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return u(o[0],e,n,i);for(var a=new r.default(0,0,0,0),s=0;s<o.length;s++){var l=u(o[s],e,n,i);0===s?a.copy(l):a.union(l)}return a}function c(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function h(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function f(t){return s("国",t)}function d(t,e){return o.platformApi.measureText(t,e)}function p(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function g(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,u=n.x,l=n.y,c="left",h="top";if(r instanceof Array)u+=p(r[0],n.width),l+=p(r[1],n.height),c=null,h=null;else switch(r){case"left":u-=i,l+=s,c="right",h="middle";break;case"right":u+=i+a,l+=s,h="middle";break;case"top":u+=a/2,l-=i,c="center",h="bottom";break;case"bottom":u+=a/2,l+=o+i,c="center";break;case"inside":u+=a/2,l+=s,c="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=a-i,l+=s,c="right",h="middle";break;case"insideTop":u+=a/2,l+=i,c="center";break;case"insideBottom":u+=a/2,l+=o-i,c="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=a-i,l+=i,c="right";break;case"insideBottomLeft":u+=i,l+=o-i,h="bottom";break;case"insideBottomRight":u+=a-i,l+=o-i,c="right",h="bottom"}return(t=t||{}).x=u,t.y=l,t.align=c,t.verticalAlign=h,t}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(507);function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Object(r.default)(t,e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getPixelRatio",(function(){return i})),n.d(e,"distance",(function(){return o})),n.d(e,"inBox",(function(){return a})),n.d(e,"intersectRect",(function(){return s})),n.d(e,"mergeRegion",(function(){return u})),n.d(e,"isSamePoint",(function(){return l}));var r=n(1);function i(){return window?window.devicePixelRatio:1}function o(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function a(t,e,n,r,i,o){return i>=t&&i<=t+n&&o>=e&&o<=e+r}function s(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function u(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function l(t,e){return t[0]===e[0]&&t[1]===e[1]}n.d(e,"isNil",(function(){return r.isNil})),n.d(e,"isString",(function(){return r.isString})),n.d(e,"isFunction",(function(){return r.isFunction})),n.d(e,"isArray",(function(){return r.isArray})),n.d(e,"each",(function(){return r.each})),n.d(e,"toRadian",(function(){return r.toRadian})),n.d(e,"mod",(function(){return r.mod})),n.d(e,"isNumberEqual",(function(){return r.isNumberEqual})),n.d(e,"requestAnimationFrame",(function(){return r.requestAnimationFrame})),n.d(e,"clearAnimationFrame",(function(){return r.clearAnimationFrame}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(506),i=n(68);function o(t,e){if(e&&("object"===Object(r.default)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Object(i.default)(t)}},function(t,e,n){"use strict";n.r(e);var r=n(54),i=n(127),o=n(1339),a=n(1340),s=n(695),u=n(696),l=n(0),c=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},t.prototype.mergeOption=function(t,e){Object(l.merge)(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null;return new t(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(Object(l.clone)(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!r.default.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length&&(!t[r]||null!=(n=n&&"object"==typeof n?n[t[r]]:null));r++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();Object(i.enableClassExtend)(c),Object(i.enableClassCheck)(c),Object(l.mixin)(c,s.LineStyleMixin),Object(l.mixin)(c,u.ItemStyleMixin),Object(l.mixin)(c,o.AreaStyleMixin),Object(l.mixin)(c,a.default),e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"SHAPE_TO_TAGS",(function(){return r})),n.d(e,"SVG_ATTR_MAP",(function(){return i})),n.d(e,"EVENTS",(function(){return o}));var r={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},i={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},o=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","wheel"]},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return l})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return h})),n.d(e,"__createBinding",(function(){return f})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return g})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return m})),n.d(e,"__spreadArray",(function(){return y})),n.d(e,"__await",(function(){return b})),n.d(e,"__asyncGenerator",(function(){return _})),n.d(e,"__asyncDelegator",(function(){return x})),n.d(e,"__asyncValues",(function(){return w})),n.d(e,"__makeTemplateObject",(function(){return O})),n.d(e,"__importStar",(function(){return C})),n.d(e,"__importDefault",(function(){return E})),n.d(e,"__classPrivateFieldGet",(function(){return T})),n.d(e,"__classPrivateFieldSet",(function(){return A}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var f=Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function d(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||f(e,t,n)}function p(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t}function m(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||e)}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function _(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof b?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function x(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:b(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function O(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var S=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function C(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&f(e,t,n);return S(e,t),e}function E(t){return t&&t.__esModule?t:{default:t}}function T(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function A(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"symbolBuildProxies",(function(){return y})),n.d(e,"createSymbol",(function(){return x})),n.d(e,"normalizeSymbolSize",(function(){return w})),n.d(e,"normalizeSymbolOffset",(function(){return O}));var r=n(0),i=n(36),o=n(157),a=n(79),s=n(250),u=n(12),l=n(35),c=n(60),h=n(6),f=i.default.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),d=i.default.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),p=i.default.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),u=r-o+a+s,l=Math.asin(s/a),c=Math.cos(l)*a,h=Math.sin(l),f=Math.cos(l),d=.6*a,p=.7*a;t.moveTo(n-c,u+s),t.arc(n,u,a,Math.PI-l,2*Math.PI+l),t.bezierCurveTo(n+c-h*d,u+s+f*d,n,r-p,n,r),t.bezierCurveTo(n,r-p,n-c+h*d,u+s+f*d,n-c,u+s),t.closePath()}}),g=i.default.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),v={line:o.default,rect:a.default,roundRect:a.default,square:a.default,circle:s.default,diamond:d,pin:p,arrow:g,triangle:f},m={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},y={};Object(r.each)(v,(function(t,e){y[e]=new t}));var b=i.default.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=Object(c.calculateTextPosition)(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=y[r];i||(i=y[r="rect"]),m[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function _(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function x(t,e,n,r,i,o,a){var s,c=0===t.indexOf("empty");return c&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?u.makeImage(t.slice(8),new l.default(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?u.makePath(t.slice(7),{},new l.default(e,n,r,i),a?"center":"cover"):new b({shape:{symbolType:t,x:e,y:n,width:r,height:i}})).__isEmptyBrush=c,s.setColor=_,o&&s.setColor(o),s}function w(t){return Object(r.isArray)(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function O(t,e){if(null!=t)return Object(r.isArray)(t)||(t=[t,t]),[Object(h.parsePercent)(t[0],e[0])||0,Object(h.parsePercent)(Object(r.retrieve2)(t[1],t[0]),e[1])||0]}},function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"wrap",(function(){return l})),n.d(e,"clamp",(function(){return c})),n.d(e,"interpolate",(function(){return h})),n.d(e,"bezier",(function(){return f})),n.d(e,"ease",(function(){return d})),n.d(e,"prefersReducedMotion",(function(){return p})),n.d(e,"pick",(function(){return g})),n.d(e,"now",(function(){return v})),n.d(e,"raf",(function(){return m})),n.d(e,"cancel",(function(){return y})),n.d(e,"renderframe",(function(){return b}));var r,i=n(45),o=n(1856),a=n.n(o);function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e,n){var r=n-e,i=((t-e)%r+r)%r+e;return i===e?n:i}function c(t,e,n){return Math.min(n,Math.max(e,t))}function h(t,e,n){return t*(1-n)+e*n}function f(t,e,n,r){var i=new a.a(t,e,n,r);return function(t){return i.solve(t)}}var d=f(.25,.1,.25,1);function p(){return!(i.isMini||!i.$window.matchMedia)&&(null==r&&(r=i.$window.matchMedia("(prefers-reduced-motion: reduce)")),r.matches)}function g(t,e){var n,r={},i=s(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;o in t&&(r[o]=t[o])}}catch(t){i.e(t)}finally{i.f()}return r}var v=i.isMini?Date.now.bind(Date):i.$window.performance&&i.$window.performance.now?i.$window.performance.now.bind(i.$window.performance):Date.now.bind(Date),m=i.$window.requestAnimationFrame||i.$window.mozRequestAnimationFrame||i.$window.webkitRequestAnimationFrame||i.$window.msRequestAnimationFrame,y=i.$window.cancelAnimationFrame||i.$window.mozCancelAnimationFrame||i.$window.webkitCancelAnimationFrame||i.$window.msCancelAnimationFrame;function b(t){var e=m(t);return{cancel:function(){return y(e)}}}},function(t,e,n){"use strict";n.r(e);var r=n(40),i=n(111),o=n(127),a=function(){function t(){this.group=new r.default,this.uid=i.getUID("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();o.enableClassExtend(a),o.enableClassManagement(a),e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"addCommas",(function(){return l})),n.d(e,"toCamelCase",(function(){return c})),n.d(e,"normalizeCssArray",(function(){return h})),n.d(e,"makeValueReadable",(function(){return f})),n.d(e,"formatTpl",(function(){return g})),n.d(e,"formatTplSimple",(function(){return v})),n.d(e,"getTooltipMarker",(function(){return m})),n.d(e,"formatTime",(function(){return y})),n.d(e,"capitalFirst",(function(){return b})),n.d(e,"convertToColorString",(function(){return _})),n.d(e,"windowOpen",(function(){return x}));var r=n(0),i=n(144);n.d(e,"encodeHTML",(function(){return i.encodeHTML}));var o=n(6),a=n(43),s=n(457);n.d(e,"truncateText",(function(){return s.truncateText}));var u=n(842);function l(t){if(!Object(o.isNumeric)(t))return r.isString(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function c(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}n.d(e,"getTextRect",(function(){return u.getTextRect}));var h=r.normalizeCssArray;function f(t,e,n){function i(t){return t&&r.trim(t)?t:"-"}function s(t){return!(null==t||isNaN(t)||!isFinite(t))}var u="time"===e,c=t instanceof Date;if(u||c){var h=u?Object(o.parseDate)(t):t;if(!isNaN(+h))return Object(a.format)(h,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(c)return"-"}if("ordinal"===e)return r.isStringSafe(t)?i(t):r.isNumber(t)&&s(t)?t+"":"-";var f=Object(o.numericToNumber)(t);return s(f)?l(f):r.isStringSafe(t)?i(t):"boolean"==typeof t?t+"":"-"}var d=["a","b","c","d","e","f","g"],p=function(t,e){return"{"+t+(null==e?"":e)+"}"};function g(t,e,n){r.isArray(e)||(e=[e]);var o=e.length;if(!o)return"";for(var a=e[0].$vars||[],s=0;s<a.length;s++){var u=d[s];t=t.replace(p(u),p(u,0))}for(var l=0;l<o;l++)for(var c=0;c<a.length;c++){var h=e[l][a[c]];t=t.replace(p(d[c],l),n?Object(i.encodeHTML)(h):h)}return t}function v(t,e,n){return r.each(e,(function(e,r){t=t.replace("{"+r+"}",n?Object(i.encodeHTML)(e):e)})),t}function m(t,e){var n=r.isString(t)?{color:t,extraCssText:e}:t||{},o=n.color,a=n.type;e=n.extraCssText;var s=n.renderMode||"html";return o?"html"===s?"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Object(i.encodeHTML)(o)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Object(i.encodeHTML)(o)+";"+(e||"")+'"></span>':{renderMode:s,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:""}function y(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=Object(o.parseDate)(e),i=n?"getUTC":"get",s=r[i+"FullYear"](),u=r[i+"Month"]()+1,l=r[i+"Date"](),c=r[i+"Hours"](),h=r[i+"Minutes"](),f=r[i+"Seconds"](),d=r[i+"Milliseconds"]();return t=t.replace("MM",Object(a.pad)(u,2)).replace("M",u).replace("yyyy",s).replace("yy",Object(a.pad)(s%100+"",2)).replace("dd",Object(a.pad)(l,2)).replace("d",l).replace("hh",Object(a.pad)(c,2)).replace("h",c).replace("mm",Object(a.pad)(h,2)).replace("m",h).replace("ss",Object(a.pad)(f,2)).replace("s",f).replace("SSS",Object(a.pad)(d,3))}function b(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function _(t,e){return e=e||"transparent",r.isString(t)?t:r.isObject(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function x(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_TEXT_ANIMATION_PROPS",(function(){return p})),n.d(e,"parseFontSize",(function(){return b})),n.d(e,"hasSeparateFont",(function(){return x})),n.d(e,"normalizeTextStyle",(function(){return w}));var r=n(66),i=n(457),o=n(354),a=n(0),s=n(60),u=n(114),l=n(79),c=n(35),h=n(106),f=n(107),d={fill:"#000"},p={style:Object(a.defaults)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},h.DEFAULT_COMMON_ANIMATION_PROPS.style)},g=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=d,n.attr(e),n}return Object(r.__extends)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,w(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new c.default(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(r=r||t.clone()).union(t)):(r=r||a.clone()).union(a)}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||d},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return Object(a.extend)(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,e){for(var n=Object(a.keys)(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},Object(a.extend)(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return p},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||f.DEFAULT_FONT,n=t.padding,r=T(t),a=Object(i.parsePlainText)(r,t),u=A(t),l=!!t.backgroundColor,h=a.outerHeight,d=a.outerWidth,p=a.contentWidth,g=a.lines,v=a.lineHeight,m=this._defaultStyle,y=t.x||0,b=t.y||0,x=t.align||m.align||"left",w=t.verticalAlign||m.verticalAlign||"top",O=y,M=Object(s.adjustTextY)(b,a.contentHeight,w);if(u||n){var I=Object(s.adjustTextX)(y,d,x),j=Object(s.adjustTextY)(b,h,w);u&&this._renderBackground(t,t,I,j,d,h)}M+=v/2,n&&(O=E(y,x,n),"top"===w?M+=n[0]:"bottom"===w&&(M-=n[2]));for(var k=0,P=!1,L=(C("fill"in t?t.fill:(P=!0,m.fill))),R=(S("stroke"in t?t.stroke:l||m.autoStroke&&!P?null:(k=2,m.stroke))),D=t.textShadowBlur>0,N=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),B=a.calculatedLineHeight,F=0;F<g.length;F++){var z=this._getOrCreateChild(o.default),V=z.createStyle();z.useStyle(V),V.text=g[F],V.x=O,V.y=M,x&&(V.textAlign=x),V.textBaseline="middle",V.opacity=t.opacity,V.strokeFirst=!0,D&&(V.shadowBlur=t.textShadowBlur||0,V.shadowColor=t.textShadowColor||"transparent",V.shadowOffsetX=t.textShadowOffsetX||0,V.shadowOffsetY=t.textShadowOffsetY||0),V.stroke=R,V.fill=L,R&&(V.lineWidth=t.lineWidth||k,V.lineDash=t.lineDash,V.lineDashOffset=t.lineDashOffset||0),V.font=e,_(V,t),M+=v,N&&z.setBoundingRect(new c.default(Object(s.adjustTextX)(V.x,t.width,V.textAlign),Object(s.adjustTextY)(V.y,B,V.textBaseline),p,B))}},e.prototype._updateRichTexts=function(){var t=this.style,e=T(t),n=Object(i.parseRichText)(e,t),r=n.width,o=n.outerWidth,a=n.outerHeight,u=t.padding,l=t.x||0,c=t.y||0,h=this._defaultStyle,f=t.align||h.align,d=t.verticalAlign||h.verticalAlign,p=Object(s.adjustTextX)(l,o,f),g=Object(s.adjustTextY)(c,a,d),v=p,m=g;u&&(v+=u[3],m+=u[0]);var y=v+r;A(t)&&this._renderBackground(t,t,p,g,o,a);for(var b=!!t.backgroundColor,_=0;_<n.lines.length;_++){for(var x=n.lines[_],w=x.tokens,O=w.length,S=x.lineHeight,C=x.width,E=0,M=v,I=y,j=O-1,k=void 0;E<O&&(!(k=w[E]).align||"left"===k.align);)this._placeToken(k,t,S,m,M,"left",b),C-=k.width,M+=k.width,E++;for(;j>=0&&"right"===(k=w[j]).align;)this._placeToken(k,t,S,m,I,"right",b),C-=k.width,I-=k.width,j--;for(M+=(r-(M-v)-(y-I)-C)/2;E<=j;)k=w[E],this._placeToken(k,t,S,m,M+k.width/2,"center",b),M+=k.width,E++;m+=S}},e.prototype._placeToken=function(t,e,n,r,i,u,l){var h=e.rich[t.styleName]||{};h.text=t.text;var d=t.verticalAlign,p=r+n/2;"top"===d?p=r+t.height/2:"bottom"===d&&(p=r+n-t.height/2),!t.isLineHolder&&A(h)&&this._renderBackground(h,e,"right"===u?i-t.width:"center"===u?i-t.width/2:i,p-t.height/2,t.width,t.height);var g=!!h.backgroundColor,v=t.textPadding;v&&(i=E(i,u,v),p-=t.height/2-v[0]-t.innerHeight/2);var m=this._getOrCreateChild(o.default),y=m.createStyle();m.useStyle(y);var b=this._defaultStyle,x=!1,w=0,O=C("fill"in h?h.fill:"fill"in e?e.fill:(x=!0,b.fill)),T=S("stroke"in h?h.stroke:"stroke"in e?e.stroke:g||l||b.autoStroke&&!x?null:(w=2,b.stroke)),M=h.textShadowBlur>0||e.textShadowBlur>0;y.text=t.text,y.x=i,y.y=p,M&&(y.shadowBlur=h.textShadowBlur||e.textShadowBlur||0,y.shadowColor=h.textShadowColor||e.textShadowColor||"transparent",y.shadowOffsetX=h.textShadowOffsetX||e.textShadowOffsetX||0,y.shadowOffsetY=h.textShadowOffsetY||e.textShadowOffsetY||0),y.textAlign=u,y.textBaseline="middle",y.font=t.font||f.DEFAULT_FONT,y.opacity=Object(a.retrieve3)(h.opacity,e.opacity,1),_(y,h),T&&(y.lineWidth=Object(a.retrieve3)(h.lineWidth,e.lineWidth,w),y.lineDash=Object(a.retrieve2)(h.lineDash,e.lineDash),y.lineDashOffset=e.lineDashOffset||0,y.stroke=T),O&&(y.fill=O);var I=t.contentWidth,j=t.contentHeight;m.setBoundingRect(new c.default(Object(s.adjustTextX)(y.x,I,y.textAlign),Object(s.adjustTextY)(y.y,j,y.textBaseline),I,j))},e.prototype._renderBackground=function(t,e,n,r,i,o){var s,c,h,f=t.backgroundColor,d=t.borderWidth,p=t.borderColor,g=f&&f.image,v=f&&!g,m=t.borderRadius,y=this;if(v||t.lineHeight||d&&p){(s=this._getOrCreateChild(l.default)).useStyle(s.createStyle()),s.style.fill=null;var b=s.shape;b.x=n,b.y=r,b.width=i,b.height=o,b.r=m,s.dirtyShape()}if(v)(h=s.style).fill=f||null,h.fillOpacity=Object(a.retrieve2)(t.fillOpacity,1);else if(g){(c=this._getOrCreateChild(u.default)).onload=function(){y.dirtyStyle()};var _=c.style;_.image=f.image,_.x=n,_.y=r,_.width=i,_.height=o}d&&p&&((h=s.style).lineWidth=d,h.stroke=p,h.strokeOpacity=Object(a.retrieve2)(t.strokeOpacity,1),h.lineDash=t.borderDash,h.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2));var x=(s||c).style;x.shadowBlur=t.shadowBlur||0,x.shadowColor=t.shadowColor||"transparent",x.shadowOffsetX=t.shadowOffsetX||0,x.shadowOffsetY=t.shadowOffsetY||0,x.opacity=Object(a.retrieve3)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return x(t)&&(e=[t.fontStyle,t.fontWeight,b(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(a.trim)(e)||t.textFont||t.font},e}(h.default),v={left:!0,right:1,center:1},m={top:1,bottom:1,middle:1},y=["fontStyle","fontWeight","fontSize","fontFamily"];function b(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?f.DEFAULT_FONT_SIZE+"px":t+"px":t}function _(t,e){for(var n=0;n<y.length;n++){var r=y[n],i=e[r];null!=i&&(t[r]=i)}}function x(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function w(t){return O(t),Object(a.each)(t.rich,O),t}function O(t){if(t){t.font=g.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||v[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||m[n]?n:"top",t.padding&&(t.padding=Object(a.normalizeCssArray)(t.padding))}}function S(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function C(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function E(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function T(t){var e=t.text;return null!=e&&(e+=""),e}function A(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}e.default=g},function(t,e,n){"use strict";n.r(e);var r=n(692),i=n(1314),o=n(1315),a=n(1316),s=n(1317),u=n(1318);e.default={required:r.default,whitespace:i.default,type:o.default,range:a.default,enum:s.default,pattern:u.default}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(1823),i=n(1824),o=n(783),a=n(1825);function s(t,e){return Object(r.default)(t)||Object(i.default)(t,e)||Object(o.default)(t,e)||Object(a.default)()}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(19),i=n(20),o=function(){function t(e,n){Object(r.default)(this,t),this.x=e,this.y=n}return Object(i.default)(t,[{key:"clone",value:function(){return new t(this.x,this.y)}},{key:"_add",value:function(t){return this.x+=t.x,this.y+=t.y,this}},{key:"add",value:function(t){return this.clone()._add(t)}},{key:"_sub",value:function(t){return this.x-=t.x,this.y-=t.y,this}},{key:"sub",value:function(t){return this.clone()._sub(t)}},{key:"_multByPoint",value:function(t){return this.x*=t.x,this.y*=t.y,this}},{key:"multByPoint",value:function(t){return this.clone()._multByPoint(t)}},{key:"_divByPoint",value:function(t){return this.x/=t.x,this.y/=t.y,this}},{key:"divByPoint",value:function(t){return this.clone()._divByPoint(t)}},{key:"_mult",value:function(t){return this.x*=t,this.y*=t,this}},{key:"mult",value:function(t){return this.clone()._mult(t)}},{key:"_div",value:function(t){return this.x/=t,this.y/=t,this}},{key:"div",value:function(t){return this.clone()._div(t)}},{key:"_rotate",value:function(t){var e=Math.cos(t),n=Math.sin(t),r=e*this.x-n*this.y,i=n*this.x+e*this.y;return this.x=r,this.y=i,this}},{key:"rotate",value:function(t){return this.clone()._rotate(t)}},{key:"_rotateAround",value:function(t,e){var n=Math.cos(t),r=Math.sin(t),i=e.x+n*(this.x-e.x)-r*(this.y-e.y),o=e.y+r*(this.x-e.x)+n*(this.y-e.y);return this.x=i,this.y=o,this}},{key:"roateAround",value:function(t,e){return this.clone()._rotateAround(t,e)}},{key:"_matMult",value:function(t){var e=t[0]*this.x+t[1]*this.y,n=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=n,this}},{key:"matMult",value:function(t){return this.clone()._matMult(t)}},{key:"_unit",value:function(){return this.div(this.mag()),this}},{key:"unit",value:function(){return this.clone()._unit()}},{key:"_perp",value:function(){var t=this.y;return this.y=this.x,this.x=-t,this}},{key:"perp",value:function(){return this.clone()._perp()}},{key:"_round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},{key:"round",value:function(){return this.clone()._round()}},{key:"mag",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"equals",value:function(t){return this.x===t.x&&this.y===t.y}},{key:"dist",value:function(t){return Math.sqrt(this.distSqr(t))}},{key:"distSqr",value:function(t){var e=t.x-this.x,n=t.y-this.y;return e*e+n*n}},{key:"angle",value:function(){return Math.atan2(this.y,this.x)}},{key:"angleTo",value:function(t){return Math.atan2(this.y-t.y,this.x-t.x)}},{key:"angleWith",value:function(t){return this.angleWithSep(t.x,t.y)}},{key:"angleWithSep",value:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)}}],[{key:"convert",value:function(e){return e instanceof t?e:Array.isArray(e)?new t(e[0],e[1]):e}}]),t}()},function(t,e,n){"use strict";n.r(e);var r=n(452);n.d(e,"container",(function(){return r.default})),n.d(e,"createSceneContainer",(function(){return r.createSceneContainer})),n.d(e,"createLayerContainer",(function(){return r.createLayerContainer})),n.d(e,"lazyInject",(function(){return r.lazyInject})),n.d(e,"lazyMultiInject",(function(){return r.lazyMultiInject}));var i=n(162);n.d(e,"BasePostProcessingPass",(function(){return i.default}));var o=n(29);n.d(e,"TYPES",(function(){return o.TYPES}));var a=n(1252);n.d(e,"packCircleVertex",(function(){return a.packCircleVertex}));var s=n(1253);n.d(e,"BlendType",(function(){return s.BlendType}));var u=n(1254);n.d(e,"ScaleTypes",(function(){return u.ScaleTypes})),n.d(e,"StyleScaleType",(function(){return u.StyleScaleType})),n.d(e,"AttributeType",(function(){return u.AttributeType}));n(1255);var l=n(1256);n.d(e,"MapServiceEvent",(function(){return l.MapServiceEvent}));var c=n(437);n.d(e,"CoordinateSystem",(function(){return c.CoordinateSystem})),n.d(e,"CoordinateUniform",(function(){return c.CoordinateUniform}));n(1257);var h=n(1258);n.d(e,"CameraUniform",(function(){return h.CameraUniform}));n(1259);var f=n(1260);n.d(e,"SceneEventList",(function(){return f.SceneEventList}));n(1261),n(1262),n(1263);var d=n(1264);n.d(e,"PositionType",(function(){return d.PositionType}));n(1265),n(1266);var p=n(156);n.d(e,"InteractionEvent",(function(){return p.InteractionEvent}));n(1267),n(1268),n(1269),n(1270),n(1271),n(1272);var g=n(220);n.d(e,"PassType",(function(){return g.PassType}));n(1273),n(1274),n(1275);var v=n(93);n.d(e,"gl",(function(){return v.gl}))},function(t,e,n){"use strict";n.r(e),n.d(e,"getStyle",(function(){return o})),n.d(e,"getBackgroundRectStyle",(function(){return a}));var r=n(2),i=n(1);function o(t,e,n,o){void 0===o&&(o="");var a=t.style,s=void 0===a?{}:a,u=t.defaultStyle,l=t.color,c=t.size,h=Object(r.__assign)(Object(r.__assign)({},u),s);return l&&(e&&(s.stroke||(h.stroke=l)),n&&(s.fill||(h.fill=l))),o&&Object(i.isNil)(s[o])&&!Object(i.isNil)(c)&&(h[o]=c),h}function a(t){return Object(i.deepMix)({},{fill:"#CCD6EC",fillOpacity:.3},Object(i.get)(t,["background","style"]))}},function(t,e,n){"use strict";n.r(e),n.d(e,"polarToCartesian",(function(){return a})),n.d(e,"getSectorPath",(function(){return s})),n.d(e,"getArcPath",(function(){return u})),n.d(e,"getAngle",(function(){return l})),n.d(e,"getPolygonCentroid",(function(){return c})),n.d(e,"getReplaceAttrs",(function(){return h}));var r=n(1);function i(t){return 1===Array.from(new Set(t)).length}function o(t){return(Object(r.min)(t)+Object(r.max)(t))/2}function a(t,e,n,r){return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}function s(t,e,n,r,i,o){void 0===o&&(o=0);var s=a(t,e,n,r),u=a(t,e,n,i),l=a(t,e,o,r),c=a(t,e,o,i);if(i-r==2*Math.PI){var h=a(t,e,n,r+Math.PI),f=a(t,e,o,r+Math.PI),d=[["M",s.x,s.y],["A",n,n,0,1,1,h.x,h.y],["A",n,n,0,1,1,u.x,u.y],["M",l.x,l.y]];return o&&(d.push(["A",o,o,0,1,0,f.x,f.y]),d.push(["A",o,o,0,1,0,c.x,c.y])),d.push(["M",s.x,s.y]),d.push(["Z"]),d}var p=i-r<=Math.PI?0:1,g=[["M",s.x,s.y],["A",n,n,0,p,1,u.x,u.y],["L",c.x,c.y]];return o&&g.push(["A",o,o,0,p,0,l.x,l.y]),g.push(["L",s.x,s.y]),g.push(["Z"]),g}function u(t,e,n,i,o){var s=a(t,e,n,i),u=a(t,e,n,o);if(Object(r.isNumberEqual)(o-i,2*Math.PI)){var l=a(t,e,n,i+Math.PI);return[["M",s.x,s.y],["A",n,n,0,1,1,l.x,l.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,0,l.x,l.y],["A",n,n,0,1,0,s.x,s.y],["Z"]]}var c=o-i<=Math.PI?0:1;return[["M",s.x,s.y],["A",n,n,0,c,1,u.x,u.y]]}function l(t,e){var n,i,o=function(t){if(Object(r.isEmpty)(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,o=t[0].y;return Object(r.each)(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,i=i>t.y?t.y:i,o=o<t.y?t.y:o})),{minX:e,maxX:n,minY:i,maxY:o,centerX:(e+n)/2,centerY:(i+o)/2}}(t.points),a=e.startAngle,s=e.endAngle-a;return e.isTransposed?(n=o.maxY*s,i=o.minY*s):(n=o.maxX*s,i=o.minX*s),{startAngle:i+=a,endAngle:n+=a}}function c(t,e){if(Object(r.isNumber)(t)&&Object(r.isNumber)(e))return[t,e];if(e=e,i(t=t)||i(e))return[o(t),o(e)];for(var n,a,s=-1,u=0,l=0,c=t.length-1,h=0;++s<t.length;)n=c,c=s,h+=a=t[n]*e[c]-t[c]*e[n],u+=(t[n]+t[c])*a,l+=(e[n]+e[c])*a;return[u/(h*=3),l/h]}function h(t,e){var n=t.attr(),i=e.attr();return Object(r.each)(n,(function(t,e){void 0===i[e]&&(i[e]=void 0)})),i}},function(t,e,n){"use strict";n.r(e),n.d(e,"RectShape",(function(){return s}));var r=n(66),i=n(36),o=n(1343),a=n(394),s=function(){this.x=0,this.y=0,this.width=0,this.height=0},u={},l=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,r,i,s;if(this.subPixelOptimize){var l=Object(a.subPixelOptimizeRect)(u,e,this.style);n=l.x,r=l.y,i=l.width,s=l.height,l.r=e.r,e=l}else n=e.x,r=e.y,i=e.width,s=e.height;e.r?o.buildPath(t,e):t.rect(n,r,i,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(i.default);l.prototype.type="rect",e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"parse",(function(){return v})),n.d(e,"lift",(function(){return y})),n.d(e,"toHex",(function(){return b})),n.d(e,"fastLerp",(function(){return _})),n.d(e,"fastMapToColor",(function(){return x})),n.d(e,"lerp",(function(){return w})),n.d(e,"mapToColor",(function(){return O})),n.d(e,"modifyHSL",(function(){return S})),n.d(e,"modifyAlpha",(function(){return C})),n.d(e,"stringify",(function(){return E})),n.d(e,"lum",(function(){return T})),n.d(e,"random",(function(){return A}));var r=n(316),i={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function o(t){return(t=Math.round(t))<0?0:t>255?255:t}function a(t){return t<0?0:t>1?1:t}function s(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100):a(parseFloat(e))}function l(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function c(t,e,n){return t+(e-t)*n}function h(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var d=new r.default(20),p=null;function g(t,e){p&&f(p,e),p=d.put(t,p||e.slice())}function v(t,e){if(t){e=e||[];var n=d.get(t);if(n)return f(e,n);var r=(t+="").replace(/ /g,"").toLowerCase();if(r in i)return f(e,i[r]),g(t,e),e;var o,a=r.length;if("#"===r.charAt(0))return 4===a||5===a?(o=parseInt(r.slice(1,4),16))>=0&&o<=4095?(h(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===a?parseInt(r.slice(4),16)/15:1),g(t,e),e):void h(e,0,0,0,1):7===a||9===a?(o=parseInt(r.slice(1,7),16))>=0&&o<=16777215?(h(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===a?parseInt(r.slice(7),16)/255:1),g(t,e),e):void h(e,0,0,0,1):void 0;var l=r.indexOf("("),c=r.indexOf(")");if(-1!==l&&c+1===a){var p=r.substr(0,l),v=r.substr(l+1,c-(l+1)).split(","),y=1;switch(p){case"rgba":if(4!==v.length)return 3===v.length?h(e,+v[0],+v[1],+v[2],1):h(e,0,0,0,1);y=u(v.pop());case"rgb":return v.length>=3?(h(e,s(v[0]),s(v[1]),s(v[2]),3===v.length?y:u(v[3])),g(t,e),e):void h(e,0,0,0,1);case"hsla":return 4!==v.length?void h(e,0,0,0,1):(v[3]=u(v[3]),m(v,e),g(t,e),e);case"hsl":return 3!==v.length?void h(e,0,0,0,1):(m(v,e),g(t,e),e);default:return}}h(e,0,0,0,1)}}function m(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=u(t[1]),i=u(t[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return h(e=e||[],o(255*l(s,a,n+1/3)),o(255*l(s,a,n)),o(255*l(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e){var n=v(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return E(n,4===n.length?"rgba":"rgb")}}function b(t){var e=v(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function _(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),s=Math.ceil(r),u=e[i],l=e[s],h=r-i;return n[0]=o(c(u[0],l[0],h)),n[1]=o(c(u[1],l[1],h)),n[2]=o(c(u[2],l[2],h)),n[3]=a(c(u[3],l[3],h)),n}}var x=_;function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),s=Math.ceil(r),u=v(e[i]),l=v(e[s]),h=r-i,f=E([o(c(u[0],l[0],h)),o(c(u[1],l[1],h)),o(c(u[2],l[2],h)),a(c(u[3],l[3],h))],"rgba");return n?{color:f,leftIndex:i,rightIndex:s,value:r}:f}}var O=w;function S(t,e,n,r){var i,o=v(t);if(t)return o=function(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a,l=(s+a)/2;if(0===u)e=0,n=0;else{n=l<.5?u/(s+a):u/(2-s-a);var c=((s-r)/6+u/2)/u,h=((s-i)/6+u/2)/u,f=((s-o)/6+u/2)/u;r===s?e=f-h:i===s?e=1/3+c-f:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,l];return null!=t[3]&&d.push(t[3]),d}}(o),null!=e&&(o[0]=(i=e,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(o[1]=u(n)),null!=r&&(o[2]=u(r)),E(m(o),"rgba")}function C(t,e){var n=v(t);if(n&&null!=e)return n[3]=a(e),E(n,"rgba")}function E(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function T(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function A(){return E([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"FUNNEL_PERCENT",(function(){return i})),n.d(e,"FUNNEL_MAPPING_VALUE",(function(){return o})),n.d(e,"FUNNEL_CONVERSATION",(function(){return a})),n.d(e,"FUNNEL_TOTAL_PERCENT",(function(){return s})),n.d(e,"PLOYGON_X",(function(){return u})),n.d(e,"PLOYGON_Y",(function(){return l})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var i="$$percentage$$",o="$$mappingValue$$",a="$$conversion$$",s="$$totalPercentage$$",u="$$x$$",l="$$y$$",c={appendPadding:[0,80],minSize:0,maxSize:1,meta:(r={},r[o]={min:0,max:1,nice:!1},r),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}}},function(t,e,n){"use strict";n.r(e);var r=n(145);e.default=function(t){return Array.isArray?Array.isArray(t):Object(r.default)(t,"Array")}},function(t,e,n){"use strict";n.r(e),n.d(e,"createTooltipMarkup",(function(){return h})),n.d(e,"buildTooltipMarkup",(function(){return v})),n.d(e,"retrieveVisualColorForTooltipMarker",(function(){return b})),n.d(e,"getPaddingFromTooltipModel",(function(){return _})),n.d(e,"TooltipMarkupStyleCreator",(function(){return x}));var r=n(144),i=n(71),o=n(0),a=n(165),s=n(6);function u(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,o=t.fontWeight||"400",a=t.color||"#464646",s=t.fontSize||14,u=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Object(r.encodeHTML)(i+"")+"px;color:"+Object(r.encodeHTML)(n)+";font-weight:"+Object(r.encodeHTML)(o+""),valueStyle:"font-size:"+Object(r.encodeHTML)(s+"")+"px;color:"+Object(r.encodeHTML)(a)+";font-weight:"+Object(r.encodeHTML)(u+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:s,fill:a,fontWeight:u}}}var l=[0,10,20,30],c=["","\n","\n\n","\n\n\n"];function h(t,e){return e.type=t,e}function f(t){return"section"===t.type}function d(t){return f(t)?p:g}function p(t,e,n,s){var h,p=e.noHeader,g=(h=function t(e){if(f(e)){var n=0,r=e.blocks.length,i=r>1||r>0&&!e.noHeader;return Object(o.each)(e.blocks,(function(e){var r=t(e);r>=n&&(n=r+ +(i&&(!r||f(e)&&!e.noHeader)))})),n}return 0}(e),{html:l[h],richText:c[h]}),v=[],b=e.blocks||[];Object(o.assert)(!b||Object(o.isArray)(b)),b=b||[];var _=t.orderMode;if(e.sortBlocks&&_){b=b.slice();var x={valueAsc:"asc",valueDesc:"desc"};if(Object(o.hasOwn)(x,_)){var w=new a.SortOrderComparator(x[_],null);b.sort((function(t,e){return w.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===_&&b.reverse()}Object(o.each)(b,(function(n,r){var i=e.valueFormatter,a=d(n)(i?Object(o.extend)(Object(o.extend)({},t),{valueFormatter:i}):t,n,r>0?g.html:0,s);null!=a&&v.push(a)}));var O="richText"===t.renderMode?v.join(g.richText):m(v.join(""),p?n:g.html);if(p)return O;var S=Object(i.makeValueReadable)(e.header,"ordinal",t.useUTC),C=u(s,t.renderMode).nameStyle;return"richText"===t.renderMode?y(t,S,C)+g.richText+O:m('<div style="'+C+';line-height:1;">'+Object(r.encodeHTML)(S)+"</div>"+O,n)}function g(t,e,n,a){var s=t.renderMode,l=e.noName,c=e.noValue,h=!e.markerType,f=e.name,d=t.useUTC,p=e.valueFormatter||t.valueFormatter||function(t){return t=Object(o.isArray)(t)?t:[t],Object(o.map)(t,(function(t,e){return Object(i.makeValueReadable)(t,Object(o.isArray)(b)?b[e]:b,d)}))};if(!l||!c){var g=h?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",s),v=l?"":Object(i.makeValueReadable)(f,"ordinal",d),b=e.valueType,_=c?[]:p(e.value),x=!h||!l,w=!h&&l,O=u(a,s),S=O.nameStyle,C=O.valueStyle;return"richText"===s?(h?"":g)+(l?"":y(t,v,S))+(c?"":function(t,e,n,r,i){var a=[i],s=r?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(o.isArray)(e)?e.join(" "):e,a)}(t,_,x,w,C)):m((h?"":g)+(l?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+Object(r.encodeHTML)(t)+"</span>"}(v,!h,S))+(c?"":function(t,e,n,i){var a=n?"10px":"20px",s=e?"float:right;margin-left:"+a:"";return t=Object(o.isArray)(t)?t:[t],'<span style="'+s+";"+i+'">'+Object(o.map)(t,(function(t){return Object(r.encodeHTML)(t)})).join("&nbsp;&nbsp;")+"</span>"}(_,x,w,C)),n)}}function v(t,e,n,r,i,o){if(t)return d(t)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function m(t,e){return'<div style="'+("margin: "+e+"px 0 0")+';line-height:1;">'+t+'<div style="clear:both"></div></div>'}function y(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function b(t,e){var n=t.getData().getItemVisual(e,"style")[t.visualDrawType];return Object(i.convertToColorString)(n)}function _(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var x=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Object(s.getRandomIdBase)()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,a=Object(i.getTooltipMarker)({color:e,type:t,renderMode:n,markerId:r});return Object(o.isString)(a)?a:(this.richTextStyles[r]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(o.isArray)(e)?Object(o.each)(e,(function(t){return Object(o.extend)(n,t)})):Object(o.extend)(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}()},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"normalizeColor",(function(){return s})),n.d(e,"isAroundZero",(function(){return u})),n.d(e,"round3",(function(){return l})),n.d(e,"round4",(function(){return c})),n.d(e,"round1",(function(){return h})),n.d(e,"getMatrixStr",(function(){return f})),n.d(e,"TEXT_ALIGN_TO_ANCHOR",(function(){return d})),n.d(e,"adjustTextY",(function(){return p})),n.d(e,"hasShadow",(function(){return g})),n.d(e,"getShadowKey",(function(){return v})),n.d(e,"getClipPathsKey",(function(){return m})),n.d(e,"isImagePattern",(function(){return y})),n.d(e,"isSVGPattern",(function(){return b})),n.d(e,"isPattern",(function(){return _})),n.d(e,"isLinearGradient",(function(){return x})),n.d(e,"isRadialGradient",(function(){return w})),n.d(e,"isGradient",(function(){return O})),n.d(e,"getIdURL",(function(){return S})),n.d(e,"getPathPrecision",(function(){return C})),n.d(e,"getSRTTransformString",(function(){return E})),n.d(e,"encodeBase64",(function(){return T}));var r=n(0),i=n(80),o=n(54),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=Object(i.parse)(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function u(t){return t<1e-4&&t>-1e-4}function l(t){return a(1e3*t)/1e3}function c(t){return a(1e4*t)/1e4}function h(t){return a(10*t)/10}function f(t){return"matrix("+l(t[0])+","+l(t[1])+","+l(t[2])+","+l(t[3])+","+c(t[4])+","+c(t[5])+")"}var d={left:"start",right:"end",center:"middle",middle:"middle"};function p(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function v(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function m(t){var e=[];if(t)for(var n=0;n<t.length;n++){var r=t[n];e.push(r.id)}return e.join(",")}function y(t){return t&&!!t.image}function b(t){return t&&!!t.svgElement}function _(t){return y(t)||b(t)}function x(t){return"linear"===t.type}function w(t){return"radial"===t.type}function O(t){return t&&("linear"===t.type||"radial"===t.type)}function S(t){return"url(#"+t+")"}function C(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function E(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*r.RADIAN_TO_DEGREE,o=Object(r.retrieve2)(t.scaleX,1),s=Object(r.retrieve2)(t.scaleY,1),u=t.skewX||0,l=t.skewY||0,c=[];return(e||n)&&c.push("translate("+e+"px,"+n+"px)"),i&&c.push("rotate("+i+")"),1===o&&1===s||c.push("scale("+o+","+s+")"),(u||l)&&c.push("skew("+a(u*r.RADIAN_TO_DEGREE)+"deg, "+a(l*r.RADIAN_TO_DEGREE)+"deg)"),c.join(" ")}var T=o.default.hasGlobalWindow&&Object(r.isFunction)(window.btoa)?function(t){return window.btoa(unescape(t))}:void 0!==t?function(e){return t.from(e).toString("base64")}:function(t){return null}}.call(this,n(1962).Buffer)},function(t,e,n){"use strict";n.r(e),n.d(e,"getScaleExtent",(function(){return d})),n.d(e,"niceScaleExtent",(function(){return p})),n.d(e,"createScaleByModel",(function(){return g})),n.d(e,"ifAxisCrossZero",(function(){return v})),n.d(e,"makeLabelFormatter",(function(){return m})),n.d(e,"getAxisRawValue",(function(){return y})),n.d(e,"estimateLabelUnionRect",(function(){return b})),n.d(e,"getOptionCategoryInterval",(function(){return _})),n.d(e,"shouldShowAllLabels",(function(){return x})),n.d(e,"getDataDimensionsOnAxis",(function(){return w})),n.d(e,"unionAxisExtentFromData",(function(){return O}));var r=n(0),i=n(573),o=n(226),a=n(228),s=n(275),u=n(35),l=n(706),c=n(1357),h=n(147),f=n(705);function d(t,e){var n=t.type,i=Object(f.ensureScaleRawExtentInfo)(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var o=i.min,a=i.max,u=e.ecModel;if(u&&"time"===n){var l=Object(s.prepareLayoutBarSeries)("bar",u),c=!1;if(r.each(l,(function(t){c=c||t.getBaseAxis()===e.axis})),c){var h=Object(s.makeColumnLayout)(l),d=function(t,e,n,i){var o=n.axis.getExtent(),a=o[1]-o[0],u=Object(s.retrieveColumnLayout)(i,n.axis);if(void 0===u)return{min:t,max:e};var l=1/0;r.each(u,(function(t){l=Math.min(t.offset,l)}));var c=-1/0;r.each(u,(function(t){c=Math.max(t.offset+t.width,c)})),l=Math.abs(l),c=Math.abs(c);var h=l+c,f=e-t,d=f/(1-(l+c)/a)-f;return{min:t-=d*(l/h),max:e+=d*(c/h)}}(o,a,e,h);o=d.min,a=d.max}}return{extent:[o,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function p(t,e){var n=e,r=d(t,n),i=r.extent,o=n.get("splitNumber");t instanceof c.default&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),u="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:u?n.get("minInterval"):null,maxInterval:u?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function g(t,e){if(e=e||t.get("type"))switch(e){case"category":return new i.default({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new l.default({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(a.default.getClass(e)||o.default)}}function v(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function m(t){var e,n,i=t.getLabelModel().get("formatter"),o="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=i,function(e,r){return t.scale.getFormattedLabel(e,r,n)}):r.isString(i)?function(e){return function(n){var r=t.scale.getLabel(n);return e.replace("{value}",null!=r?r:"")}}(i):r.isFunction(i)?(e=i,function(n,r){return null!=o&&(r=n.value-o),e(y(t,n),r,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function y(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function b(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,o,a=n.getExtent();o=n instanceof i.default?n.count():(r=n.getTicks()).length;var s,l,c,h,f,d,p,g,v=t.getLabelModel(),y=m(t),b=1;o>40&&(b=Math.ceil(o/40));for(var _=0;_<o;_+=b){var x=y(r?r[_]:{value:a[0]+_},_),w=v.getTextRect(x),O=(l=w,c=v.get("rotate")||0,h=void 0,f=void 0,d=void 0,p=void 0,g=void 0,void 0,h=c*Math.PI/180,f=l.width,d=l.height,p=f*Math.abs(Math.cos(h))+Math.abs(d*Math.sin(h)),g=f*Math.abs(Math.sin(h))+Math.abs(d*Math.cos(h)),new u.default(l.x,l.y,p,g));s?s.union(O):s=O}return s}}function _(t){var e=t.get("interval");return null==e?"auto":e}function x(t){return"category"===t.type&&0===_(t.getLabelModel())}function w(t,e){var n={};return r.each(t.mapDimensionsAll(e),(function(e){n[Object(h.getStackedDimension)(t,e)]=!0})),r.keys(n)}function O(t,e,n){e&&r.each(w(e,n),(function(n){var r=e.getApproximateExtent(n);r[0]<t[0]&&(t[0]=r[0]),r[1]>t[1]&&(t[1]=r[1])}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"isBetween",(function(){return o})),n.d(e,"padEnd",(function(){return a})),n.d(e,"omit",(function(){return s})),n.d(e,"uniq",(function(){return u}));var r=n(2),i=n(1);function o(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}function a(t,e,n){if(Object(i.isString)(t))return t.padEnd(e,n);if(Object(i.isArray)(t)){var r=t.length;if(r<e)for(var o=e-r,a=0;a<o;a++)t.push(n)}return t}function s(t,e){return"object"==typeof t&&e.forEach((function(e){delete t[e]})),t}function u(t,e,n){var i,o;void 0===e&&(e=[]),void 0===n&&(n=new Map);try{for(var a=Object(r.__values)(t),s=a.next();!s.done;s=a.next()){var u=s.value;n.has(u)||(e.push(u),n.set(u,!0))}}catch(t){i={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}return e}},function(t,e,n){"use strict";n.r(e),n.d(e,"earthRadius",(function(){return r})),n.d(e,"factors",(function(){return i})),n.d(e,"unitsFactors",(function(){return o})),n.d(e,"areaFactors",(function(){return a})),n.d(e,"feature",(function(){return s})),n.d(e,"geometry",(function(){return u})),n.d(e,"point",(function(){return l})),n.d(e,"points",(function(){return c})),n.d(e,"polygon",(function(){return h})),n.d(e,"polygons",(function(){return f})),n.d(e,"lineString",(function(){return d})),n.d(e,"lineStrings",(function(){return p})),n.d(e,"featureCollection",(function(){return g})),n.d(e,"multiLineString",(function(){return v})),n.d(e,"multiPoint",(function(){return m})),n.d(e,"multiPolygon",(function(){return y})),n.d(e,"geometryCollection",(function(){return b})),n.d(e,"round",(function(){return _})),n.d(e,"radiansToLength",(function(){return x})),n.d(e,"lengthToRadians",(function(){return w})),n.d(e,"lengthToDegrees",(function(){return O})),n.d(e,"bearingToAzimuth",(function(){return S})),n.d(e,"radiansToDegrees",(function(){return C})),n.d(e,"degreesToRadians",(function(){return E})),n.d(e,"convertLength",(function(){return T})),n.d(e,"convertArea",(function(){return A})),n.d(e,"isNumber",(function(){return M})),n.d(e,"isObject",(function(){return I})),n.d(e,"validateBBox",(function(){return j})),n.d(e,"validateId",(function(){return k}));var r=6371008.8,i={centimeters:100*r,centimetres:100*r,degrees:r/111325,feet:3.28084*r,inches:39.37*r,kilometers:r/1e3,kilometres:r/1e3,meters:r,metres:r,miles:r/1609.344,millimeters:1e3*r,millimetres:1e3*r,nauticalmiles:r/1852,radians:1,yards:1.0936*r},o={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r,yards:1.0936133},a={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function s(t,e,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=e||{},r.geometry=t,r}function u(t,e,n){switch(void 0===n&&(n={}),t){case"Point":return l(e).geometry;case"LineString":return d(e).geometry;case"Polygon":return h(e).geometry;case"MultiPoint":return m(e).geometry;case"MultiLineString":return v(e).geometry;case"MultiPolygon":return y(e).geometry;default:throw new Error(t+" is invalid")}}function l(t,e,n){if(void 0===n&&(n={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!M(t[0])||!M(t[1]))throw new Error("coordinates must contain numbers");return s({type:"Point",coordinates:t},e,n)}function c(t,e,n){return void 0===n&&(n={}),g(t.map((function(t){return l(t,e)})),n)}function h(t,e,n){void 0===n&&(n={});for(var r=0,i=t;r<i.length;r++){var o=i[r];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<o[o.length-1].length;a++)if(o[o.length-1][a]!==o[0][a])throw new Error("First and last Position are not equivalent.")}return s({type:"Polygon",coordinates:t},e,n)}function f(t,e,n){return void 0===n&&(n={}),g(t.map((function(t){return h(t,e)})),n)}function d(t,e,n){if(void 0===n&&(n={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");return s({type:"LineString",coordinates:t},e,n)}function p(t,e,n){return void 0===n&&(n={}),g(t.map((function(t){return d(t,e)})),n)}function g(t,e){void 0===e&&(e={});var n={type:"FeatureCollection"};return e.id&&(n.id=e.id),e.bbox&&(n.bbox=e.bbox),n.features=t,n}function v(t,e,n){return void 0===n&&(n={}),s({type:"MultiLineString",coordinates:t},e,n)}function m(t,e,n){return void 0===n&&(n={}),s({type:"MultiPoint",coordinates:t},e,n)}function y(t,e,n){return void 0===n&&(n={}),s({type:"MultiPolygon",coordinates:t},e,n)}function b(t,e,n){return void 0===n&&(n={}),s({type:"GeometryCollection",geometries:t},e,n)}function _(t,e){if(void 0===e&&(e=0),e&&!(e>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,e||0);return Math.round(t*n)/n}function x(t,e){void 0===e&&(e="kilometers");var n=i[e];if(!n)throw new Error(e+" units is invalid");return t*n}function w(t,e){void 0===e&&(e="kilometers");var n=i[e];if(!n)throw new Error(e+" units is invalid");return t/n}function O(t,e){return C(w(t,e))}function S(t){var e=t%360;return e<0&&(e+=360),e}function C(t){return 180*(t%(2*Math.PI))/Math.PI}function E(t){return t%360*Math.PI/180}function T(t,e,n){if(void 0===e&&(e="kilometers"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("length must be a positive number");return x(w(t,e),n)}function A(t,e,n){if(void 0===e&&(e="meters"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("area must be a positive number");var r=a[e];if(!r)throw new Error("invalid original units");var i=a[n];if(!i)throw new Error("invalid final units");return t/r*i}function M(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function I(t){return!!t&&t.constructor===Object}function j(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!M(t))throw new Error("bbox must only contain numbers")}))}function k(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return g}));var r=n(339);n.d(e,"PathUtil",(function(){return r}));n(1072),n(1073);var i=n(650);n.d(e,"Event",(function(){return i.default}));var o=n(651);n.d(e,"Base",(function(){return o.default}));var a=n(1074);n.d(e,"AbstractCanvas",(function(){return a.default}));var s=n(1080);n.d(e,"AbstractGroup",(function(){return s.default}));var u=n(1081);n.d(e,"AbstractShape",(function(){return u.default}));var l=n(844);n.d(e,"getBBoxMethod",(function(){return l.getBBoxMethod})),n.d(e,"registerBBox",(function(){return l.registerBBox}));var c=n(422);n.d(e,"getTextHeight",(function(){return c.getTextHeight})),n.d(e,"assembleFont",(function(){return c.assembleFont}));var h=n(101);n.d(e,"isAllowCapture",(function(){return h.isAllowCapture}));var f=n(229);n.d(e,"multiplyVec2",(function(){return f.multiplyVec2})),n.d(e,"invert",(function(){return f.invert}));var d=n(655);n.d(e,"getOffScreenContext",(function(){return d.getOffScreenContext}));var p=n(653);n.d(e,"registerEasing",(function(){return p.registerEasing}));var g="0.5.11"},function(t,e,n){"use strict";n.r(e),n.d(e,"clientToLocal",(function(){return l})),n.d(e,"getNativeEvent",(function(){return h})),n.d(e,"normalizeEvent",(function(){return f})),n.d(e,"addEventListener",(function(){return d})),n.d(e,"removeEventListener",(function(){return p})),n.d(e,"stop",(function(){return g})),n.d(e,"isMiddleOrRightButtonOnMouseUpDown",(function(){return v}));var r=n(142);n.d(e,"Dispatcher",(function(){return r.default}));var i=n(54),o=n(144),a=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,s=[],u=i.default.browser.firefox&&+i.default.browser.version.split(".")[0]<39;function l(t,e,n,r){return n=n||{},r?c(t,e,n):u&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):c(t,e,n),n}function c(t,e,n){if(i.default.domSupported&&t.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(Object(o.isCanvasEl)(t)){var u=t.getBoundingClientRect();return n.zrX=r-u.left,void(n.zrY=a-u.top)}if(Object(o.transformCoordWithViewport)(s,t,r,a))return n.zrX=s[0],void(n.zrY=s[1])}n.zrX=n.zrY=0}function h(t){return t||window.event}function f(t,e,n){if(null!=(e=h(e)).zrX)return e;var r=e.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];i&&l(t,i,e,n)}else{l(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&a.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function d(t,e,n,r){t.addEventListener(e,n,r)}function p(t,e,n,r){t.removeEventListener(e,n,r)}var g=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function v(t){return 2===t.which||3===t.which}},function(t,e,n){"use strict";n.r(e),n.d(e,"Event",(function(){return s}));var r=n(20),i=n(19),o=n(252),a=n.n(o),s=Object(r.default)((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(i.default)(this,t),a()(this,n),this.type=e}))},function(t,e,n){"use strict";function r(t){return Math.min.apply(null,t)}function i(t){return Math.max.apply(null,t)}function o(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function a(t,e){return Math.abs(t-e)<.001}function s(t,e){var n=r(t),o=r(e);return{x:n,y:o,width:i(t)-n,height:i(e)-o}}function u(t,e,n,o){return{minX:r([t,n]),maxX:i([t,n]),minY:r([e,o]),maxY:i([e,o])}}function l(t){return(t+2*Math.PI)%(2*Math.PI)}n.r(e),n.d(e,"distance",(function(){return o})),n.d(e,"isNumberEqual",(function(){return a})),n.d(e,"getBBoxByArray",(function(){return s})),n.d(e,"getBBoxRange",(function(){return u})),n.d(e,"piMod",(function(){return l}))},function(t,e,n){"use strict";n.r(e);var r=n(1066);n.d(e,"addEventListener",(function(){return r.default}));var i=n(1067);n.d(e,"createDom",(function(){return i.default}));var o=n(648);n.d(e,"getHeight",(function(){return o.default}));var a=n(1068);n.d(e,"getOuterHeight",(function(){return a.default}));var s=n(1069);n.d(e,"getOuterWidth",(function(){return s.default}));var u=n(1070);n.d(e,"getRatio",(function(){return u.default}));var l=n(167);n.d(e,"getStyle",(function(){return l.default}));var c=n(649);n.d(e,"getWidth",(function(){return c.default}));var h=n(1071);n.d(e,"modifyCSS",(function(){return h.default}))},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"gl",(function(){return r})),function(t){t[t.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",t[t.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",t[t.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN",t[t.ZERO=0]="ZERO",t[t.ONE=1]="ONE",t[t.SRC_COLOR=768]="SRC_COLOR",t[t.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",t[t.SRC_ALPHA=770]="SRC_ALPHA",t[t.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",t[t.DST_ALPHA=772]="DST_ALPHA",t[t.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",t[t.DST_COLOR=774]="DST_COLOR",t[t.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",t[t.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",t[t.FUNC_ADD=32774]="FUNC_ADD",t[t.BLEND_EQUATION=32777]="BLEND_EQUATION",t[t.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",t[t.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",t[t.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",t[t.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",t[t.MAX_EXT=32776]="MAX_EXT",t[t.MIN_EXT=32775]="MIN_EXT",t[t.BLEND_DST_RGB=32968]="BLEND_DST_RGB",t[t.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",t[t.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",t[t.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",t[t.CONSTANT_COLOR=32769]="CONSTANT_COLOR",t[t.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",t[t.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",t[t.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",t[t.BLEND_COLOR=32773]="BLEND_COLOR",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",t[t.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",t[t.STREAM_DRAW=35040]="STREAM_DRAW",t[t.STATIC_DRAW=35044]="STATIC_DRAW",t[t.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",t[t.BUFFER_SIZE=34660]="BUFFER_SIZE",t[t.BUFFER_USAGE=34661]="BUFFER_USAGE",t[t.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",t[t.FRONT=1028]="FRONT",t[t.BACK=1029]="BACK",t[t.FRONT_AND_BACK=1032]="FRONT_AND_BACK",t[t.CULL_FACE=2884]="CULL_FACE",t[t.BLEND=3042]="BLEND",t[t.DITHER=3024]="DITHER",t[t.STENCIL_TEST=2960]="STENCIL_TEST",t[t.DEPTH_TEST=2929]="DEPTH_TEST",t[t.SCISSOR_TEST=3089]="SCISSOR_TEST",t[t.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",t[t.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",t[t.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",t[t.NO_ERROR=0]="NO_ERROR",t[t.INVALID_ENUM=1280]="INVALID_ENUM",t[t.INVALID_VALUE=1281]="INVALID_VALUE",t[t.INVALID_OPERATION=1282]="INVALID_OPERATION",t[t.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",t[t.CW=2304]="CW",t[t.CCW=2305]="CCW",t[t.LINE_WIDTH=2849]="LINE_WIDTH",t[t.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",t[t.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",t[t.CULL_FACE_MODE=2885]="CULL_FACE_MODE",t[t.FRONT_FACE=2886]="FRONT_FACE",t[t.DEPTH_RANGE=2928]="DEPTH_RANGE",t[t.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",t[t.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",t[t.DEPTH_FUNC=2932]="DEPTH_FUNC",t[t.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",t[t.STENCIL_FUNC=2962]="STENCIL_FUNC",t[t.STENCIL_FAIL=2964]="STENCIL_FAIL",t[t.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",t[t.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",t[t.STENCIL_REF=2967]="STENCIL_REF",t[t.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",t[t.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",t[t.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",t[t.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",t[t.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",t[t.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",t[t.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",t[t.VIEWPORT=2978]="VIEWPORT",t[t.SCISSOR_BOX=3088]="SCISSOR_BOX",t[t.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",t[t.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",t[t.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",t[t.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",t[t.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",t[t.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",t[t.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",t[t.RED_BITS=3410]="RED_BITS",t[t.GREEN_BITS=3411]="GREEN_BITS",t[t.BLUE_BITS=3412]="BLUE_BITS",t[t.ALPHA_BITS=3413]="ALPHA_BITS",t[t.DEPTH_BITS=3414]="DEPTH_BITS",t[t.STENCIL_BITS=3415]="STENCIL_BITS",t[t.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",t[t.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",t[t.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",t[t.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",t[t.SAMPLES=32937]="SAMPLES",t[t.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",t[t.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",t[t.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",t[t.DONT_CARE=4352]="DONT_CARE",t[t.FASTEST=4353]="FASTEST",t[t.NICEST=4354]="NICEST",t[t.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",t[t.BYTE=5120]="BYTE",t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.SHORT=5122]="SHORT",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.INT=5124]="INT",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.FLOAT=5126]="FLOAT",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.ALPHA=6406]="ALPHA",t[t.RGB=6407]="RGB",t[t.RGBA=6408]="RGBA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",t[t.VERTEX_SHADER=35633]="VERTEX_SHADER",t[t.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",t[t.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",t[t.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",t[t.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",t[t.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",t[t.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",t[t.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",t[t.SHADER_TYPE=35663]="SHADER_TYPE",t[t.DELETE_STATUS=35712]="DELETE_STATUS",t[t.LINK_STATUS=35714]="LINK_STATUS",t[t.VALIDATE_STATUS=35715]="VALIDATE_STATUS",t[t.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",t[t.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",t[t.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",t[t.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",t[t.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",t[t.NEVER=512]="NEVER",t[t.LESS=513]="LESS",t[t.EQUAL=514]="EQUAL",t[t.LEQUAL=515]="LEQUAL",t[t.GREATER=516]="GREATER",t[t.NOTEQUAL=517]="NOTEQUAL",t[t.GEQUAL=518]="GEQUAL",t[t.ALWAYS=519]="ALWAYS",t[t.KEEP=7680]="KEEP",t[t.REPLACE=7681]="REPLACE",t[t.INCR=7682]="INCR",t[t.DECR=7683]="DECR",t[t.INVERT=5386]="INVERT",t[t.INCR_WRAP=34055]="INCR_WRAP",t[t.DECR_WRAP=34056]="DECR_WRAP",t[t.VENDOR=7936]="VENDOR",t[t.RENDERER=7937]="RENDERER",t[t.VERSION=7938]="VERSION",t[t.NEAREST=9728]="NEAREST",t[t.LINEAR=9729]="LINEAR",t[t.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",t[t.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",t[t.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",t[t.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",t[t.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",t[t.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",t[t.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",t[t.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE=5890]="TEXTURE",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t[t.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",t[t.TEXTURE0=33984]="TEXTURE0",t[t.TEXTURE1=33985]="TEXTURE1",t[t.TEXTURE2=33986]="TEXTURE2",t[t.TEXTURE3=33987]="TEXTURE3",t[t.TEXTURE4=33988]="TEXTURE4",t[t.TEXTURE5=33989]="TEXTURE5",t[t.TEXTURE6=33990]="TEXTURE6",t[t.TEXTURE7=33991]="TEXTURE7",t[t.TEXTURE8=33992]="TEXTURE8",t[t.TEXTURE9=33993]="TEXTURE9",t[t.TEXTURE10=33994]="TEXTURE10",t[t.TEXTURE11=33995]="TEXTURE11",t[t.TEXTURE12=33996]="TEXTURE12",t[t.TEXTURE13=33997]="TEXTURE13",t[t.TEXTURE14=33998]="TEXTURE14",t[t.TEXTURE15=33999]="TEXTURE15",t[t.TEXTURE16=34e3]="TEXTURE16",t[t.TEXTURE17=34001]="TEXTURE17",t[t.TEXTURE18=34002]="TEXTURE18",t[t.TEXTURE19=34003]="TEXTURE19",t[t.TEXTURE20=34004]="TEXTURE20",t[t.TEXTURE21=34005]="TEXTURE21",t[t.TEXTURE22=34006]="TEXTURE22",t[t.TEXTURE23=34007]="TEXTURE23",t[t.TEXTURE24=34008]="TEXTURE24",t[t.TEXTURE25=34009]="TEXTURE25",t[t.TEXTURE26=34010]="TEXTURE26",t[t.TEXTURE27=34011]="TEXTURE27",t[t.TEXTURE28=34012]="TEXTURE28",t[t.TEXTURE29=34013]="TEXTURE29",t[t.TEXTURE30=34014]="TEXTURE30",t[t.TEXTURE31=34015]="TEXTURE31",t[t.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",t[t.REPEAT=10497]="REPEAT",t[t.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",t[t.FLOAT_VEC2=35664]="FLOAT_VEC2",t[t.FLOAT_VEC3=35665]="FLOAT_VEC3",t[t.FLOAT_VEC4=35666]="FLOAT_VEC4",t[t.INT_VEC2=35667]="INT_VEC2",t[t.INT_VEC3=35668]="INT_VEC3",t[t.INT_VEC4=35669]="INT_VEC4",t[t.BOOL=35670]="BOOL",t[t.BOOL_VEC2=35671]="BOOL_VEC2",t[t.BOOL_VEC3=35672]="BOOL_VEC3",t[t.BOOL_VEC4=35673]="BOOL_VEC4",t[t.FLOAT_MAT2=35674]="FLOAT_MAT2",t[t.FLOAT_MAT3=35675]="FLOAT_MAT3",t[t.FLOAT_MAT4=35676]="FLOAT_MAT4",t[t.SAMPLER_2D=35678]="SAMPLER_2D",t[t.SAMPLER_CUBE=35680]="SAMPLER_CUBE",t[t.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",t[t.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",t[t.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",t[t.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",t[t.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",t[t.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",t[t.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",t[t.COMPILE_STATUS=35713]="COMPILE_STATUS",t[t.LOW_FLOAT=36336]="LOW_FLOAT",t[t.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",t[t.HIGH_FLOAT=36338]="HIGH_FLOAT",t[t.LOW_INT=36339]="LOW_INT",t[t.MEDIUM_INT=36340]="MEDIUM_INT",t[t.HIGH_INT=36341]="HIGH_INT",t[t.FRAMEBUFFER=36160]="FRAMEBUFFER",t[t.RENDERBUFFER=36161]="RENDERBUFFER",t[t.RGBA4=32854]="RGBA4",t[t.RGB5_A1=32855]="RGB5_A1",t[t.RGB565=36194]="RGB565",t[t.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",t[t.STENCIL_INDEX=6401]="STENCIL_INDEX",t[t.STENCIL_INDEX8=36168]="STENCIL_INDEX8",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t[t.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",t[t.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",t[t.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",t[t.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",t[t.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",t[t.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",t[t.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",t[t.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",t[t.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",t[t.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",t[t.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",t[t.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",t[t.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",t[t.NONE=0]="NONE",t[t.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",t[t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",t[t.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",t[t.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",t[t.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",t[t.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",t[t.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",t[t.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",t[t.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",t[t.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",t[t.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",t[t.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL"}(r||(r={}))},function(t,e,n){(function(t,e){
/*! *****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var n;!function(n){!function(r){var i="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),o=a(n);function a(t,e){return function(n,r){"function"!=typeof t[n]&&Object.defineProperty(t,n,{configurable:!0,writable:!0,value:r}),e&&e(n,r)}}void 0===i.Reflect?i.Reflect=n:o=a(i.Reflect,o),function(e){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,l={create:a?function(){return P(Object.create(null))}:s?function(){return P({__proto__:null})}:function(){return P({})},has:u?function(t,e){return n.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return n.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},c=Object.getPrototypeOf(Function),h="object"==typeof t&&t.env&&"true"===t.env.REFLECT_METADATA_USE_MAP_POLYFILL,f=h||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var t={},e=[],n=function(){function t(t,e,n){this._index=0,this._keys=t,this._values=e,this._selector=n}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var n=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var n=this._find(t,!0);return this._values[n]=e,this},e.prototype.delete=function(e){var n=this._find(e,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new n(this._keys,this._values,r)},e.prototype.values=function(){return new n(this._keys,this._values,i)},e.prototype.entries=function(){return new n(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){return this._cacheKey!==t&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=t)),this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function r(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}():Map,d=h||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function t(){this._map=new f}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.values()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}():Set,p=new(h||"function"!=typeof WeakMap?function(){var t=l.create(),e=r();return function(){function t(){this._key=r()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&l.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?l.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=r()},t}();function r(){var e;do{e="@@WeakMap@@"+a()}while(l.has(t,e));return t[e]=!0,e}function i(t,r){if(!n.call(t,e)){if(!r)return;Object.defineProperty(t,e,{value:l.create()})}return t[e]}function o(t,e){for(var n=0;n<e;++n)t[n]=255*Math.random()|0;return t}function a(){var t,e=(t=16,"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):o(new Uint8Array(t),t):o(new Array(t),t));e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var n="",r=0;r<16;++r){var i=e[r];4!==r&&6!==r&&8!==r||(n+="-"),i<16&&(n+="0"),n+=i.toString(16).toLowerCase()}return n}}():WeakMap);function g(t,e,n){var r=p.get(t);if(x(r)){if(!n)return;r=new f,p.set(t,r)}var i=r.get(e);if(x(i)){if(!n)return;i=new f,r.set(e,i)}return i}function v(t,e,n){var r=g(e,n,!1);return!x(r)&&!!r.has(t)}function m(t,e,n){var r=g(e,n,!1);if(!x(r))return r.get(t)}function y(t,e,n,r){g(n,r,!0).set(t,e)}function b(t,e){var n=[],r=g(t,e,!1);if(x(r))return n;for(var i=function(t){var e=M(t,o);if(!T(e))throw new TypeError;var n=e.call(t);if(!O(n))throw new TypeError;return n}(r.keys()),a=0;;){var s=I(i);if(!s)return n.length=a,n;var u=s.value;try{n[a]=u}catch(t){try{j(i)}finally{throw t}}a++}}function _(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function x(t){return void 0===t}function w(t){return null===t}function O(t){return"object"==typeof t?null!==t:"function"==typeof t}function S(t,e){switch(_(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var n=3===e?"string":5===e?"number":"default",r=M(t,i);if(void 0!==r){var o=r.call(t,n);if(O(o))throw new TypeError;return o}return function(t,e){if("string"===e){var n=t.toString;if(T(n))if(!O(i=n.call(t)))return i;if(T(r=t.valueOf))if(!O(i=r.call(t)))return i}else{var r;if(T(r=t.valueOf))if(!O(i=r.call(t)))return i;var i,o=t.toString;if(T(o))if(!O(i=o.call(t)))return i}throw new TypeError}(t,"default"===n?"number":n)}function C(t){var e=S(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function E(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function T(t){return"function"==typeof t}function A(t){return"function"==typeof t}function M(t,e){var n=t[e];if(null!=n){if(!T(n))throw new TypeError;return n}}function I(t){var e=t.next();return!e.done&&e}function j(t){var e=t.return;e&&e.call(t)}function k(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===c)return e;if(e!==c)return e;var n=t.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return e;var i=r.constructor;return"function"!=typeof i||i===t?e:i}function P(t){return t.__=void 0,delete t.__,t}e("decorate",(function(t,e,n,r){if(x(n)){if(!E(t))throw new TypeError;if(!A(e))throw new TypeError;return function(t,e){for(var n=t.length-1;n>=0;--n){var r=(0,t[n])(e);if(!x(r)&&!w(r)){if(!A(r))throw new TypeError;e=r}}return e}(t,e)}if(!E(t))throw new TypeError;if(!O(e))throw new TypeError;if(!O(r)&&!x(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(t,e,n,r){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,n,r);if(!x(o)&&!w(o)){if(!O(o))throw new TypeError;r=o}}return r}(t,e,n=C(n),r)})),e("metadata",(function(t,e){return function(n,r){if(!O(n))throw new TypeError;if(!x(r)&&!function(t){switch(_(t)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;y(t,e,n,r)}})),e("defineMetadata",(function(t,e,n,r){if(!O(n))throw new TypeError;return x(r)||(r=C(r)),y(t,e,n,r)})),e("hasMetadata",(function(t,e,n){if(!O(e))throw new TypeError;return x(n)||(n=C(n)),function t(e,n,r){if(v(e,n,r))return!0;var i=k(n);return!w(i)&&t(e,i,r)}(t,e,n)})),e("hasOwnMetadata",(function(t,e,n){if(!O(e))throw new TypeError;return x(n)||(n=C(n)),v(t,e,n)})),e("getMetadata",(function(t,e,n){if(!O(e))throw new TypeError;return x(n)||(n=C(n)),function t(e,n,r){if(v(e,n,r))return m(e,n,r);var i=k(n);return w(i)?void 0:t(e,i,r)}(t,e,n)})),e("getOwnMetadata",(function(t,e,n){if(!O(e))throw new TypeError;return x(n)||(n=C(n)),m(t,e,n)})),e("getMetadataKeys",(function(t,e){if(!O(t))throw new TypeError;return x(e)||(e=C(e)),function t(e,n){var r=b(e,n),i=k(e);if(null===i)return r;var o=t(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var a=new d,s=[],u=0,l=r;u<l.length;u++){var c=l[u];a.has(c)||(a.add(c),s.push(c))}for(var h=0,f=o;h<f.length;h++){c=f[h];a.has(c)||(a.add(c),s.push(c))}return s}(t,e)})),e("getOwnMetadataKeys",(function(t,e){if(!O(t))throw new TypeError;return x(e)||(e=C(e)),b(t,e)})),e("deleteMetadata",(function(t,e,n){if(!O(e))throw new TypeError;x(n)||(n=C(n));var r=g(e,n,!1);if(x(r))return!1;if(!r.delete(t))return!1;if(r.size>0)return!0;var i=p.get(e);return i.delete(n),i.size>0||p.delete(e),!0}))}(o)}()}(n||(n={}))}).call(this,n(447),n(309))},function(t,e,n){"use strict";n.r(e);var r=n(1),i=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(r.assign)(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}();e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(661),a=n(128),s=n(46),u=n(462),l=["visible","tip","delegateObject"],c=["container","group","shapesMap","isRegister","isUpdating","destroyed"],h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear(),this.get("group").remove()},e.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t);return e&&e.get("component")},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return Object(i.each)(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){this.get("group").set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=Object(a.applyMatrix2BBox)(n,e)),e},e.prototype.on=function(t,e,n){return this.get("group").on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){this.get("group").emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),Object(o.propagationDelegate)(n,t,e)},e.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",Object(s.getBBoxWithClip)(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,i=e.component,o=Object(r.__rest)(e,["id","component"]),a=new i(Object(r.__assign)(Object(r.__assign)({},o),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return a.init(),a.render(),this.get("isRegister")&&this.registerElement(a.get("group")),a},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){this.get("group").off()},e.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=Object(a.getMatrixByTranslate)(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var r=e.attr("opacity");Object(i.isNil)(r)&&(r=1),e.attr("opacity",0),e.animate({opacity:r},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,r){e.animate(n,r)},e.prototype.updateElements=function(t,e){var n,r=this,o=this.get("animate"),a=this.get("animateOption"),u=t.getChildren().slice(0);Object(i.each)(u,(function(t){var u=t.get("id"),h=r.getElementById(u),f=t.get("name");if(h)if(t.get("isComponent")){var d=t.get("component"),p=h.get("component"),g=Object(i.pick)(d.cfg,Object(i.difference)(Object(i.keys)(d.cfg),c));p.update(g),h.set("update_status","update")}else{var v=r.getReplaceAttrs(h,t);o&&a.update?r.updateAnimation(f,h,v,a.update):h.attr(v),t.isGroup()&&r.updateElements(t,h),Object(i.each)(l,(function(e){h.set(e,t.get(e))})),Object(s.updateClip)(h,t),n=h,h.set("update_status","update")}else{e.add(t);var m=e.getChildren();if(m.splice(m.length-1,1),n){var y=m.indexOf(n);m.splice(y+1,0,t)}else m.unshift(t);if(r.registerElement(t),t.set("update_status","add"),t.get("isComponent"))(d=t.get("component")).set("container",e);else t.isGroup()&&r.registerNewGroup(t);if(n=t,o){var b=r.get("isInit")?a.appear:a.enter;b&&r.addAnimation(f,t,b)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();Object(i.each)(e,(function(t){t.set("update_status",null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t;return(t={})[this.get("name")]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),Object(i.mix)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return Object(i.each)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();Object(i.each)(n,(function(t){e.registerElement(t),t.set("update_status","add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];Object(i.each)(e,(function(t,e){!t.get("update_status")||t.destroyed?n.push([e,t]):t.set("update_status",null)}));var r=this.get("animate"),o=this.get("animateOption");Object(i.each)(n,(function(n){var a=n[0],s=n[1];if(!s.destroyed){var u=s.get("name");if(r&&o.leave){var l=Object(i.mix)({callback:function(){t.removeElement(s)}},o.leave);t.removeAnimation(u,s,l)}else t.removeElement(s)}delete e[a]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(u.default);e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"LineAxis",(function(){return l})),n.d(e,"CircleAxis",(function(){return c})),n.d(e,"LineGrid",(function(){return h})),n.d(e,"CircleGrid",(function(){return f})),n.d(e,"CategoryLegend",(function(){return d})),n.d(e,"ContinuousLegend",(function(){return p})),n.d(e,"HtmlTooltip",(function(){return g}));var r=n(88);n.d(e,"Event",(function(){return r.Event})),n.d(e,"AbstractGroup",(function(){return r.AbstractGroup})),n.d(e,"AbstractShape",(function(){return r.AbstractShape}));var i=n(455);n.d(e,"registerAdjust",(function(){return i.registerAdjust})),n.d(e,"getAdjust",(function(){return i.getAdjust})),n.d(e,"Adjust",(function(){return i.Adjust}));var o=n(415);n.d(e,"getAttribute",(function(){return o.getAttribute})),n.d(e,"Attribute",(function(){return o.Attribute})),n.d(e,"Color",(function(){return o.Color}));var a=n(624);n.d(e,"getCoordinate",(function(){return a.getCoordinate})),n.d(e,"registerCoordinate",(function(){return a.registerCoordinate})),n.d(e,"Coordinate",(function(){return a.Coordinate}));var s=n(312);n.d(e,"getScale",(function(){return s.getScale})),n.d(e,"registerScale",(function(){return s.registerScale})),n.d(e,"Scale",(function(){return s.Scale}));var u=n(100);n.d(e,"HtmlComponent",(function(){return u.HtmlComponent})),n.d(e,"GroupComponent",(function(){return u.GroupComponent})),n.d(e,"Component",(function(){return u.Component})),n.d(e,"Crosshair",(function(){return u.Crosshair})),n.d(e,"Annotation",(function(){return u.Annotation})),n.d(e,"Slider",(function(){return u.Slider})),n.d(e,"Scrollbar",(function(){return u.Scrollbar}));var l=u.Axis.Line,c=u.Axis.Circle,h=u.Grid.Line,f=u.Grid.Circle,d=u.Legend.Category,p=u.Legend.Continuous,g=u.Tooltip.Html},function(t,e,n){"use strict";n.r(e),n.d(e,"getXDimensionLength",(function(){return a})),n.d(e,"isFullCircle",(function(){return s})),n.d(e,"getDistanceToCenter",(function(){return u})),n.d(e,"isPointInCoordinate",(function(){return l})),n.d(e,"getAngleByPoint",(function(){return c})),n.d(e,"getCoordinateClipCfg",(function(){return h})),n.d(e,"getCoordinateBBox",(function(){return f}));var r=n(78),i=n(86),o=n(126);function a(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function s(t){if(t.isPolar){var e=t.startAngle;return t.endAngle-e==2*Math.PI}return!1}function u(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function l(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,o=t.end;n=Object(i.isBetween)(e.x,r.x,o.x)&&Object(i.isBetween)(e.y,r.y,o.y)}else{var a=t.invert(e);n=Object(i.isBetween)(a.x,0,1)&&Object(i.isBetween)(a.y,0,1)}return n}function c(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function h(t,e){void 0===e&&(e=0);var n,i=t.start,o=t.end,a=t.getWidth(),s=t.getHeight();if(t.isPolar){var u=t.startAngle,l=t.endAngle,c=t.getCenter(),h=t.getRadius();return{type:"path",startState:{path:Object(r.getSectorPath)(c.x,c.y,h+e,u,u)},endState:function(t){var n=(l-u)*t+u;return{path:Object(r.getSectorPath)(c.x,c.y,h+e,u,n)}},attrs:{path:Object(r.getSectorPath)(c.x,c.y,h+e,u,l)}}}return n=t.isTransposed?{height:s+2*e}:{width:a+2*e},{type:"rect",startState:{x:i.x-e,y:o.y-e,width:t.isTransposed?a+2*e:0,height:t.isTransposed?0:s+2*e},endState:n,attrs:{x:i.x-e,y:o.y-e,width:a+2*e,height:s+2*e}}}function f(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),a=t.getHeight(),s=Math.min(n.x,r.x),u=Math.min(n.y,r.y);return o.BBox.fromRange(s-e,u-e,s+i+e,u+a+e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"SVGNS",(function(){return o})),n.d(e,"XLINKNS",(function(){return a})),n.d(e,"XMLNS",(function(){return s})),n.d(e,"XML_NAMESPACE",(function(){return u})),n.d(e,"createElement",(function(){return l})),n.d(e,"createVNode",(function(){return c})),n.d(e,"vNodeToString",(function(){return h})),n.d(e,"getCssString",(function(){return f})),n.d(e,"createBrushScope",(function(){return d})),n.d(e,"createSVGVNode",(function(){return p}));var r=n(0),i=n(144),o="http://www.w3.org/2000/svg",a="http://www.w3.org/1999/xlink",s="http://www.w3.org/2000/xmlns/",u="http://www.w3.org/XML/1998/namespace";function l(t){return document.createElementNS(o,t)}function c(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function h(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var o=e.children,a=e.tag;return function(t,e){var n=[];if(e)for(var r in e){var i=e[r],o=r;!1!==i&&(!0!==i&&null!=i&&(o+='="'+i+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(a,e.attrs)+Object(i.encodeHTML)(e.text)+(o?""+n+Object(r.map)(o,(function(e){return t(e)})).join(n)+n:"")+("</"+a+">")}(t)}function f(t,e,n){var i=(n=n||{}).newline?"\n":"",o=" {"+i,a=i+"}",s=Object(r.map)(Object(r.keys)(t),(function(e){return e+o+Object(r.map)(Object(r.keys)(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+a})).join(i),u=Object(r.map)(Object(r.keys)(e),(function(t){return"@keyframes "+t+o+Object(r.map)(Object(r.keys)(e[t]),(function(n){return n+o+Object(r.map)(Object(r.keys)(e[t][n]),(function(r){var i=e[t][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(i)+a})).join(i)+a})).join(i);return s||u?["<![CDATA[",s,u,"]]>"].join(i):""}function d(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function p(t,e,n,r){return c("svg","root",{width:t,height:e,xmlns:o,"xmlns:xlink":a,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+t+" "+e},n)}},function(t,e,n){"use strict";n.r(e);var r=n(1096);n.d(e,"Annotation",(function(){return r}));var i=n(1107);n.d(e,"Axis",(function(){return i}));var o=n(1113);n.d(e,"Crosshair",(function(){return o}));var a=n(1117);n.d(e,"Grid",(function(){return a}));var s=n(1120);n.d(e,"Legend",(function(){return s}));var u=n(1123);n.d(e,"Tooltip",(function(){return u}));var l=n(462);n.d(e,"Component",(function(){return l.default}));var c=n(96);n.d(e,"GroupComponent",(function(){return c.default}));var h=n(378);n.d(e,"HtmlComponent",(function(){return h.default}));var f=n(1125);n.d(e,"Slider",(function(){return f.Slider}));var d=n(1127);n.d(e,"Scrollbar",(function(){return d.Scrollbar}));var p=n(1129);for(var g in p)["default","Component","GroupComponent","HtmlComponent","Axis","Annotation","Grid","Legend","Tooltip","Crosshair","Slider","Scrollbar","propagationDelegate","TOOLTIP_CSS_CONST"].indexOf(g)<0&&function(t){n.d(e,t,(function(){return p[t]}))}(g);var v=n(1130);for(var g in v)["default","Component","GroupComponent","HtmlComponent","Axis","Annotation","Grid","Legend","Tooltip","Crosshair","Slider","Scrollbar","propagationDelegate","TOOLTIP_CSS_CONST"].indexOf(g)<0&&function(t){n.d(e,t,(function(){return v[t]}))}(g);var m=n(661);n.d(e,"propagationDelegate",(function(){return m.propagationDelegate}));var y=n(136);n.d(e,"TOOLTIP_CSS_CONST",(function(){return y}))},function(t,e,n){"use strict";n.r(e),n.d(e,"removeFromArray",(function(){return i})),n.d(e,"isBrowser",(function(){return o})),n.d(e,"isParent",(function(){return a})),n.d(e,"isAllowCapture",(function(){return s}));var r=n(1);function i(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}n.d(e,"isNil",(function(){return r.isNil})),n.d(e,"isFunction",(function(){return r.isFunction})),n.d(e,"isString",(function(){return r.isString})),n.d(e,"isObject",(function(){return r.isObject})),n.d(e,"isArray",(function(){return r.isArray})),n.d(e,"mix",(function(){return r.mix})),n.d(e,"each",(function(){return r.each})),n.d(e,"upperFirst",(function(){return r.upperFirst}));var o="undefined"!=typeof window&&void 0!==window.document;function a(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r}function s(t){return t.cfg.visible&&t.cfg.capture}},function(t,e,n){"use strict";n.r(e),n.d(e,"earthRadius",(function(){return s})),n.d(e,"default",(function(){return u}));var r=n(506),i=n(19),o=n(20),a=n(69),s=6371008.8,u=function(){function t(e,n){if(Object(i.default)(this,t),isNaN(e)||isNaN(n))throw new Error("Invalid LngLat object: (".concat(e,", ").concat(n,")"));if(this.lng=+e,this.lat=+n,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}return Object(o.default)(t,[{key:"wrap",value:function(){return new t(Object(a.wrap)(this.lng,-180,180),this.lat)}},{key:"toArray",value:function(){return[this.lng,this.lat]}},{key:"toString",value:function(){return"LngLat(".concat(this.lng,", ").concat(this.lat,")")}},{key:"distanceTo",value:function(t){var e=Math.PI/180,n=this.lat*e,r=t.lat*e,i=Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((t.lng-this.lng)*e);return s*Math.acos(Math.min(i,1))}}],[{key:"convert",value:function(e){if(e instanceof t)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new t(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"===Object(r.default)(e)&&null!==e){var n="lng"in e?e.lng:e.lon;return new t(Number(n),Number(e.lat))}throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"X_FIELD",(function(){return o})),n.d(e,"VIOLIN_Y_FIELD",(function(){return a})),n.d(e,"VIOLIN_SIZE_FIELD",(function(){return s})),n.d(e,"MIN_MAX_FIELD",(function(){return u})),n.d(e,"QUANTILE_FIELD",(function(){return l})),n.d(e,"MEDIAN_FIELD",(function(){return c})),n.d(e,"VIOLIN_VIEW_ID",(function(){return h})),n.d(e,"MIN_MAX_VIEW_ID",(function(){return f})),n.d(e,"QUANTILE_VIEW_ID",(function(){return d})),n.d(e,"MEDIAN_VIEW_ID",(function(){return p})),n.d(e,"DEFAULT_OPTIONS",(function(){return g}));var r=n(26),i=n(3),o="x",a="violinY",s="violinSize",u="minMax",l="quantile",c="median",h="violin_view",f="min_max_view",d="quantile_view",p="median_view",g=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}})},function(t,e,n){"use strict";n.r(e);var r=n(1082);n.d(e,"Quad",(function(){return r.default}));var i=n(1083);n.d(e,"Cubic",(function(){return i.default}));var o=n(1084);n.d(e,"Arc",(function(){return o.default}));var a=n(230);n.d(e,"Line",(function(){return a.default}));var s=n(1085);n.d(e,"Polygon",(function(){return s.default}));var u=n(654);n.d(e,"Polyline",(function(){return u.default}));var l=n(91);n.d(e,"Util",(function(){return l}))},function(t,e,n){"use strict";n.r(e),n.d(e,"findViewById",(function(){return i})),n.d(e,"getViews",(function(){return o})),n.d(e,"getSiblingViews",(function(){return a})),n.d(e,"addViewAnimation",(function(){return s}));var r=n(1);function i(t,e){return t.views.find((function(t){return t.id===e}))}function o(t){var e=t.parent;return e?e.views:[]}function a(t){return o(t).filter((function(e){return e!==t}))}function s(t,e,n){void 0===n&&(n=t.geometries),"boolean"==typeof e?t.animate(e):t.animate(!0),Object(r.each)(n,(function(t){var n;n=Object(r.isFunction)(e)?e(t.type||t.shapeType,t)||!0:e,t.animate(n)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_COMMON_STYLE",(function(){return l})),n.d(e,"DEFAULT_COMMON_ANIMATION_PROPS",(function(){return c}));var r=n(66),i=n(694),o=n(35),a=n(0),s=n(108),u="__zr_style_"+Math.round(10*Math.random()),l={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},c={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};l[u]=!0;var h=["z","z2","invisible"],f=["invisible"],d=function(t){function e(e){return t.call(this,e)||this}var n;return Object(r.__extends)(e,t),e.prototype._init=function(e){for(var n=Object(a.keys)(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){p.copy(t.getBoundingRect()),t.transform&&p.applyTransform(t.transform);return g.width=e,g.height=n,!p.intersect(g)}(this,t,e)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,s=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new o.default(0,0,0,0)),e?o.default.applyTransform(t,n,e):t.copy(n),(i||a||s)&&(t.width+=2*i+Math.abs(a),t.height+=2*i+Math.abs(s),t.x=Math.min(t.x,t.x+a-i),t.y=Math.min(t.y,t.y+s-i));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+2*u),t.height=Math.ceil(t.height+1+2*u))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new o.default(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:Object(a.extend)(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=s.STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&s.STYLE_CHANGED_BIT)},e.prototype.styleUpdated=function(){this.__dirty&=~s.STYLE_CHANGED_BIT},e.prototype.createStyle=function(t){return Object(a.createObject)(l,t)},e.prototype.useStyle=function(t){t[u]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[u]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,h)},e.prototype._applyStateObj=function(e,n,r,i,o,s){t.prototype._applyStateObj.call(this,e,n,r,i,o,s);var u,l=!(n&&i);if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(u,n.style)):l&&(u=r.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var d=Object(a.keys)(c),p=0;p<d.length;p++){(v=d[p])in u&&(u[v]=u[v],this.style[v]=c[v])}var g=Object(a.keys)(u);for(p=0;p<g.length;p++){var v=g[p];this.style[v]=this.style[v]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);var m=this.__inHover?f:h;for(p=0;p<m.length;p++){v=m[p];n&&null!=n[v]?this[v]=n[v]:l&&null!=r[v]&&(this[v]=r[v])}},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},e.prototype._mergeStyle=function(t,e){return Object(a.extend)(t,e),t},e.prototype.getAnimationStyleProps=function(){return c},e.initDefaultProps=((n=e.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=s.REDRAW_BIT|s.STYLE_CHANGED_BIT)),e}(i.default),p=new o.default(0,0,0,0),g=new o.default(0,0,0,0);e.default=d},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_FONT_SIZE",(function(){return r})),n.d(e,"DEFAULT_FONT_FAMILY",(function(){return i})),n.d(e,"DEFAULT_FONT",(function(){return o})),n.d(e,"DEFAULT_TEXT_WIDTH_MAP",(function(){return u})),n.d(e,"platformApi",(function(){return l})),n.d(e,"setPlatformAPI",(function(){return c}));var r=12,i="sans-serif",o=r+"px "+i;var a,s,u=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-20)/100;e[r]=i}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),l={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!a){var n=l.createCanvas();a=n&&n.getContext("2d")}if(a)return s!==e&&(s=a.font=e||o),a.measureText(t);t=t||"";var i=/^([0-9]*?)px$/.exec(e=e||o),c=+(i&&i[1])||r,h=0;if(e.indexOf("mono")>=0)h=c*t.length;else for(var f=0;f<t.length;f++){var d=u[t[f]];h+=null==d?c:d*c}return{width:h}},loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function c(t){for(var e in l)t[e]&&(l[e]=t[e])}},function(t,e,n){"use strict";n.r(e),n.d(e,"REDRAW_BIT",(function(){return r})),n.d(e,"STYLE_CHANGED_BIT",(function(){return i})),n.d(e,"SHAPE_CHANGED_BIT",(function(){return o}));var r=1,i=2,o=4},function(t,e,n){"use strict";n.r(e),n.d(e,"timeFormat",(function(){return a})),n.d(e,"toTimeStamp",(function(){return s})),n.d(e,"SECOND",(function(){return u})),n.d(e,"MINUTE",(function(){return l})),n.d(e,"HOUR",(function(){return c})),n.d(e,"DAY",(function(){return h})),n.d(e,"MONTH",(function(){return f})),n.d(e,"YEAR",(function(){return d})),n.d(e,"getTickInterval",(function(){return g}));var r=n(1),i=n(734),o=n(1578);function a(t,e){return(i.format||i.default.format)(t,e)}function s(t){return Object(r.isString)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(r.isDate)(t)&&(t=t.getTime()),t}var u=1e3,l=60*u,c=60*l,h=24*c,f=31*h,d=365*h,p=[["HH:mm:ss",u],["HH:mm:ss",10*u],["HH:mm:ss",30*u],["HH:mm",l],["HH:mm",10*l],["HH:mm",30*l],["HH",c],["HH",6*c],["HH",12*c],["YYYY-MM-DD",h],["YYYY-MM-DD",4*h],["YYYY-WW",7*h],["YYYY-MM",f],["YYYY-MM",4*f],["YYYY-MM",6*f],["YYYY",380*h]];function g(t,e,n){var i=(e-t)/n,a=Object(o.default)((function(t){return t[1]}))(p,i)-1,s=p[a];return a<0?s=p[0]:a>=p.length&&(s=Object(r.last)(p)),s}},function(t,e,n){"use strict";n.r(e),n.d(e,"getMappingField",(function(){return a})),n.d(e,"getMappingFunction",(function(){return s})),n.d(e,"geometry",(function(){return u}));var r=n(2),i=n(1),o=n(3);function a(t,e){var n=t.type,o=t.xField,a=t.yField,s=t.colorField,u=t.shapeField,l=t.sizeField,c=t.styleField,h=t.rawFields,f=[];if(h=(Object(i.isFunction)(h)?h(n,e):h)||[],"color"===e)f=Object(r.__spreadArrays)([s||o],h);else if("shape"===e)f=Object(r.__spreadArrays)([u||o],h);else if("size"===e)f=Object(r.__spreadArrays)([l||o],h);else{f=Object(r.__spreadArrays)([o,a,s,u,l,c],h);var d=["x","y","color","shape","size","style"].indexOf(e),p=f[d];f.splice(d,1),f.unshift(p)}var g=Object(i.uniq)(f.filter((function(t){return!!t}))),v="line"===n&&[o,a].includes(g.join("*"))?"":g.join("*");return{mappingFields:g,tileMappingField:v}}function s(t,e){if(e)return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};return t.forEach((function(t,e){i[t]=n[e]})),delete i[void 0],e(i)}}function u(t){var e=t.chart,n=t.options,u=n.type,l=n.args,c=n.mapping,h=n.xField,f=n.yField,d=n.colorField,p=n.shapeField,g=n.sizeField,v=n.tooltipFields,m=n.label,y=n.state,b=n.customInfo;if(!c)return t;var _=c.color,x=c.shape,w=c.size,O=c.style,S=c.tooltip,C=e[u](l).position(h+"*"+f);if(Object(i.isString)(_))d?C.color(d,_):C.color(_);else if(Object(i.isFunction)(_)){var E=a(n,"color"),T=E.mappingFields,A=E.tileMappingField;C.color(A,s(T,_))}else d&&C.color(d,_);if(Object(i.isString)(x))p?C.shape(p,[x]):C.shape(x);else if(Object(i.isFunction)(x)){var M=a(n,"shape");T=M.mappingFields,A=M.tileMappingField;C.shape(A,s(T,x))}else p&&C.shape(p,x);if(Object(i.isNumber)(w))g?C.size(g,w):C.size(w);else if(Object(i.isFunction)(w)){var I=a(n,"size");T=I.mappingFields,A=I.tileMappingField;C.size(A,s(T,w))}else g&&C.size(g,w);if(Object(i.isFunction)(O)){var j=a(n,"style");T=j.mappingFields,A=j.tileMappingField;C.style(A,s(T,O))}else Object(i.isObject)(O)&&C.style(O);if(!1===v?C.tooltip(!1):Object(i.isEmpty)(v)||C.tooltip(v.join("*"),s(v,S)),!1===m)C.label(!1);else if(m){var k=m.callback,P=m.fields,L=Object(r.__rest)(m,["callback","fields"]);C.label({fields:P||[f],callback:k,cfg:Object(o.transformLabel)(L)})}return y&&C.state(y),b&&C.customInfo(b),[h,f].filter((function(t){return t!==d})).forEach((function(t){e.legend(t,!1)})),Object(r.__assign)(Object(r.__assign)({},t),{ext:{geometry:C}})}},function(t,e,n){"use strict";n.r(e),n.d(e,"getUID",(function(){return a})),n.d(e,"enableSubTypeDefaulter",(function(){return s})),n.d(e,"enableTopologicalTravel",(function(){return u})),n.d(e,"inheritDefaultOption",(function(){return l}));var r=n(0),i=n(127),o=Math.round(10*Math.random());function a(t){return[t||"",o++].join("_")}function s(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=Object(i.parseClassType)(t);e[r.main]=n},t.determineSubType=function(n,r){var o=r.type;if(!o){var a=Object(i.parseClassType)(n).main;t.hasSubTypes(n)&&e[a]&&(o=e[a](r))}return o}}function u(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,i,o,a){if(t.length){var s=function(t){var i={},o=[];return r.each(t,(function(a){var s=n(i,a),u=function(t,e){var n=[];return r.each(t,(function(t){r.indexOf(e,t)>=0&&n.push(t)})),n}(s.originalDeps=e(a),t);s.entryCount=u.length,0===s.entryCount&&o.push(a),r.each(u,(function(t){r.indexOf(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(i,t);r.indexOf(e.successor,t)<0&&e.successor.push(a)}))})),{graph:i,noEntryList:o}}(i),u=s.graph,l=s.noEntryList,c={};for(r.each(t,(function(t){c[t]=!0}));l.length;){var h=l.pop(),f=u[h],d=!!c[h];d&&(o.call(a,h,f.originalDeps.slice()),delete c[h]),r.each(f.successor,d?g:p)}r.each(c,(function(){throw new Error("")}))}function p(t){u[t].entryCount--,0===u[t].entryCount&&l.push(t)}function g(t){c[t]=!0,p(t)}}}function l(t,e){return r.merge(r.merge({},t,!0),e,!0)}},function(t,e,n){"use strict";n.r(e),n.d(e,"ToolboxFeature",(function(){return r})),n.d(e,"registerFeature",(function(){return o})),n.d(e,"getFeature",(function(){return a}));var r=function(){},i={};function o(t,e){i[t]=e}function a(t){return i[t]}},function(t,e,n){"use strict";n.r(e),n.d(e,"LEFT_AXES_VIEW",(function(){return i})),n.d(e,"RIGHT_AXES_VIEW",(function(){return o})),n.d(e,"DEFAULT_YAXIS_CONFIG",(function(){return a})),n.d(e,"DEFAULT_LEFT_YAXIS_CONFIG",(function(){return s})),n.d(e,"DEFAULT_RIGHT_YAXIS_CONFIG",(function(){return u}));var r=n(2),i="left-axes-view",o="right-axes-view",a={nice:!0,label:{autoHide:!0,autoRotate:!1}},s=Object(r.__assign)(Object(r.__assign)({},a),{position:"left"}),u=Object(r.__assign)(Object(r.__assign)({},a),{position:"right",grid:null})},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_IMAGE_STYLE",(function(){return s})),n.d(e,"DEFAULT_IMAGE_ANIMATION_PROPS",(function(){return u}));var r=n(66),i=n(106),o=n(35),a=n(0),s=Object(a.defaults)({x:0,y:0},i.DEFAULT_COMMON_STYLE),u={style:Object(a.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},i.DEFAULT_COMMON_ANIMATION_PROPS.style)};var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.createStyle=function(t){return Object(a.createObject)(s,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r,i=(r=e.image)&&"string"!=typeof r&&r.width&&r.height?e.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?i[t]:i[t]/i[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return u},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new o.default(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(i.default);l.prototype.type="image",e.default=l},function(t,e){function n(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,u,"next",t)}function u(t){n(a,i,o,s,u,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e),n.d(e,"FIRST_AXES_VIEW",(function(){return r})),n.d(e,"SECOND_AXES_VIEW",(function(){return i})),n.d(e,"SERIES_FIELD_KEY",(function(){return o}));var r="first-axes-view",i="second-axes-view",o="series-field-key"},function(t,e,n){"use strict";n.r(e);var r=n(10);n.d(e,"mat3",(function(){return r.mat3})),n.d(e,"vec2",(function(){return r.vec2})),n.d(e,"vec3",(function(){return r.vec3}));var i=n(1087);n.d(e,"ext",(function(){return i}))},function(t,e,n){"use strict";n.r(e);var r,i,o,a,s,u,l,c=n(0),h=n(64),f=n(185),d=n(187),p=n(356),g=n(513),v=n(30),m=n(9),y=n(31),b=n(153),_=n(425),x=n(364),w=c.isObject,O=c.map,S="undefined"==typeof Int32Array?Array:Int32Array,C=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],E=["_approximateExtent"],T=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;Object(x.isSeriesDataSchema)(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,u={},l=0;l<n.length;l++){var h=n[l],f=c.isString(h)?new g.default({name:h}):h instanceof g.default?h:new g.default(h),d=f.name;f.type=f.type||"float",f.coordDim||(f.coordDim=d,f.coordDimIndex=0);var p=f.otherDims=f.otherDims||{};o.push(d),i[d]=f,null!=u[d]&&(s=!0),f.createInvertedIndices&&(a[d]=[]),0===p.itemName&&(this._nameDimIdx=l),0===p.itemId&&(this._idDimIdx=l),r&&(f.storeDimIndex=l)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var v=this._dimIdxToName=c.createHashMap();c.each(o,(function(t){v.set(i[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(c.isNumber(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i=this;if(t instanceof _.default&&(r=t),!r){var o=this.dimensions,a=Object(b.isSourceInstance)(t)||c.isArrayLike(t)?new d.DefaultDataProvider(t,o.length):t;r=new _.default;var s=O(o,(function(t){return{type:i._dimInfos[t].type,property:t}}));r.initData(a,s,n)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=Object(p.summarizeDimensions)(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=e[s],o&&l(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==v.SOURCE_FORMAT_TYPED_ARRAY&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList;if(n.getSource().sourceFormat===v.SOURCE_FORMAT_ORIGINAL&&!n.pure)for(var a=[],s=t;s<e;s++){var u=n.getItem(s,a);if(!this.hasItemOption&&Object(m.isDataItemOption)(u)&&(this.hasItemOption=!0),u){var c=u.name;null==i[s]&&null!=c&&(i[s]=Object(m.convertOptionIdName)(c,null));var h=u.id;null==o[s]&&null!=h&&(o[s]=Object(m.convertOptionIdName)(h,null))}}if(this._shouldMakeIdFromName())for(s=t;s<e;s++)l(this,s);r(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){w(t)?c.extend(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=o(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return i(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return c.isArray(t)?r.getValues(O(t,(function(t){return n._getStoreDimIndex(t)})),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=(t&&this._invertedIndicesMap[t])[e];return null==n||isNaN(n)?-1:n},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){c.isFunction(t)&&(n=e,e=t,t=[]);var r=n||this,i=O(a(t),this._getStoreDimIndex,this);this._store.each(i,r?c.bind(e,r):e)},t.prototype.filterSelf=function(t,e,n){c.isFunction(t)&&(n=e,e=t,t=[]);var r=n||this,i=O(a(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?c.bind(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={},r=c.keys(t),i=[];return c.each(r,(function(r){var o=e._getStoreDimIndex(r);n[o]=t[r],i.push(o)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){c.isFunction(t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=O(a(t),this._getStoreDimIndex,this),s=u(this);return s._store=this._store.map(o,i?c.bind(e,i):e),s},t.prototype.modify=function(t,e,n,r){var i=n||r||this;var o=O(a(t),this._getStoreDimIndex,this);this._store.modify(o,i?c.bind(e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=u(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.lttbDownSample=function(t,e){var n=u(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new h.default(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new f.default(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return i(t,e)}),(function(t){return i(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},w(t)?c.extend(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),c.isArray(i)?i=i.slice():w(i)&&(i=c.extend({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,w(e)?c.extend(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){w(t)?c.extend(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?c.extend(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Object(y.setCommonECData)(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){c.each(this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:O(this.dimensions,this._getDimInfo,this),this.hostModel)),s(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];c.isFunction(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(c.slice(arguments)))})},t.internalField=(r=function(t){var e=t._invertedIndicesMap;c.each(e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new S(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},o=function(t,e,n){return Object(m.convertOptionIdName)(t._getCategory(e,n),null)},i=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=o(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},a=function(t){return c.isArray(t)||(t=null!=t?[t]:[]),t},u=function(e){var n=new t(e._schema?e._schema:O(e.dimensions,e._getDimInfo,e),e.hostModel);return s(n,e),n},s=function(t,e){c.each(C.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,c.each(E,(function(n){t[n]=c.clone(e[n])})),t._calculationInfo=c.extend({},e._calculationInfo)},void(l=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,a=t._idDimIdx,s=n[e],u=r[e];if(null==s&&null!=i&&(n[e]=s=o(t,i,e)),null==u&&null!=a&&(r[e]=u=o(t,a,e)),null==u&&null!=s){var l=t._nameRepeatCount,c=l[s]=(l[s]||0)+1;u=s,c>1&&(u+="__ec__"+c),r[e]=u}})),t}();e.default=T},function(t,e,n){"use strict";n.r(e);e.default=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e,n){"use strict";n.r(e),n.d(e,"createSVGElement",(function(){return o})),n.d(e,"createDom",(function(){return a})),n.d(e,"sortDom",(function(){return s})),n.d(e,"moveTo",(function(){return u}));var r=n(1),i=n(65);function o(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function a(t){var e=i.SHAPE_TO_TAGS[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=o(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var a=n.get("el");a||(a=n.createDom(),n.set("el",a)),a.appendChild(r)}return r}function s(t,e){var n=t.get("el"),i=Object(r.toArray)(n.children).sort(e),o=document.createDocumentFragment();i.forEach((function(t){o.appendChild(t)})),n.appendChild(o)}function u(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],o=r.indexOf(t);if(i){if(o>e)n.insertBefore(t,i);else if(o<e){var a=r[e+1];a?n.insertBefore(t,a):n.appendChild(t)}}else n.appendChild(t)}},function(t,e,n){var r=n(2025),i=n(2026),o=n(1213),a=n(2027);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){(function(t,r){var i;
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",l="[object Array]",c="[object Boolean]",h="[object Date]",f="[object Error]",d="[object Function]",p="[object GeneratorFunction]",g="[object Map]",v="[object Number]",m="[object Object]",y="[object RegExp]",b="[object Set]",_="[object String]",x="[object Symbol]",w="[object WeakMap]",O="[object ArrayBuffer]",S="[object DataView]",C="[object Float32Array]",E="[object Float64Array]",T="[object Int8Array]",A="[object Int16Array]",M="[object Int32Array]",I="[object Uint8Array]",j="[object Uint16Array]",k="[object Uint32Array]",P=/\b__p \+= '';/g,L=/\b(__p \+=) '' \+/g,R=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D=/&(?:amp|lt|gt|quot|#39);/g,N=/[&<>"']/g,B=RegExp(D.source),F=RegExp(N.source),z=/<%-([\s\S]+?)%>/g,V=/<%([\s\S]+?)%>/g,U=/<%=([\s\S]+?)%>/g,G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,W=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,X=RegExp(Y.source),$=/^\s+/,q=/\s/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,K=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,J=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,st=/^0o[0-7]+$/i,ut=/^(?:0|[1-9]\d*)$/,lt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ct=/($^)/,ht=/['\n\r\u2028\u2029\\]/g,ft="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",gt="["+dt+"]",vt="["+ft+"]",mt="\\d+",yt="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",_t="[^\\ud800-\\udfff"+dt+mt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",xt="\\ud83c[\\udffb-\\udfff]",wt="[^\\ud800-\\udfff]",Ot="(?:\\ud83c[\\udde6-\\uddff]){2}",St="[\\ud800-\\udbff][\\udc00-\\udfff]",Ct="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Et="(?:"+bt+"|"+_t+")",Tt="(?:"+Ct+"|"+_t+")",At="(?:"+vt+"|"+xt+")"+"?",Mt="[\\ufe0e\\ufe0f]?"+At+("(?:\\u200d(?:"+[wt,Ot,St].join("|")+")[\\ufe0e\\ufe0f]?"+At+")*"),It="(?:"+[yt,Ot,St].join("|")+")"+Mt,jt="(?:"+[wt+vt+"?",vt,Ot,St,pt].join("|")+")",kt=RegExp("[']","g"),Pt=RegExp(vt,"g"),Lt=RegExp(xt+"(?="+xt+")|"+jt+Mt,"g"),Rt=RegExp([Ct+"?"+bt+"+(?:['](?:d|ll|m|re|s|t|ve))?(?="+[gt,Ct,"$"].join("|")+")",Tt+"+(?:['](?:D|LL|M|RE|S|T|VE))?(?="+[gt,Ct+Et,"$"].join("|")+")",Ct+"?"+Et+"+(?:['](?:d|ll|m|re|s|t|ve))?",Ct+"+(?:['](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mt,It].join("|"),"g"),Dt=RegExp("[\\u200d\\ud800-\\udfff"+ft+"\\ufe0e\\ufe0f]"),Nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Bt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ft=-1,zt={};zt[C]=zt[E]=zt[T]=zt[A]=zt[M]=zt[I]=zt["[object Uint8ClampedArray]"]=zt[j]=zt[k]=!0,zt[u]=zt[l]=zt[O]=zt[c]=zt[S]=zt[h]=zt[f]=zt[d]=zt[g]=zt[v]=zt[m]=zt[y]=zt[b]=zt[_]=zt[w]=!1;var Vt={};Vt[u]=Vt[l]=Vt[O]=Vt[S]=Vt[c]=Vt[h]=Vt[C]=Vt[E]=Vt[T]=Vt[A]=Vt[M]=Vt[g]=Vt[v]=Vt[m]=Vt[y]=Vt[b]=Vt[_]=Vt[x]=Vt[I]=Vt["[object Uint8ClampedArray]"]=Vt[j]=Vt[k]=!0,Vt[f]=Vt[d]=Vt[w]=!1;var Ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Gt=parseFloat,Ht=parseInt,Wt="object"==typeof t&&t&&t.Object===Object&&t,Yt="object"==typeof self&&self&&self.Object===Object&&self,Xt=Wt||Yt||Function("return this")(),$t=e&&!e.nodeType&&e,qt=$t&&"object"==typeof r&&r&&!r.nodeType&&r,Zt=qt&&qt.exports===$t,Kt=Zt&&Wt.process,Qt=function(){try{var t=qt&&qt.require&&qt.require("util").types;return t||Kt&&Kt.binding&&Kt.binding("util")}catch(t){}}(),Jt=Qt&&Qt.isArrayBuffer,te=Qt&&Qt.isDate,ee=Qt&&Qt.isMap,ne=Qt&&Qt.isRegExp,re=Qt&&Qt.isSet,ie=Qt&&Qt.isTypedArray;function oe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ae(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function ue(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function le(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function ce(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function he(t,e){return!!(null==t?0:t.length)&&xe(t,e,0)>-1}function fe(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function de(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function pe(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function ge(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function ve(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function me(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var ye=Ce("length");function be(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function _e(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function xe(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):_e(t,Oe,n)}function we(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Oe(t){return t!=t}function Se(t,e){var n=null==t?0:t.length;return n?Ae(t,e)/n:NaN}function Ce(t){return function(e){return null==e?void 0:e[t]}}function Ee(t){return function(e){return null==t?void 0:t[e]}}function Te(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Ae(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function Me(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ie(t){return t?t.slice(0,$e(t)+1).replace($,""):t}function je(t){return function(e){return t(e)}}function ke(t,e){return de(e,(function(e){return t[e]}))}function Pe(t,e){return t.has(e)}function Le(t,e){for(var n=-1,r=t.length;++n<r&&xe(e,t[n],0)>-1;);return n}function Re(t,e){for(var n=t.length;n--&&xe(e,t[n],0)>-1;);return n}function De(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var Ne=Ee({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Be=Ee({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Fe(t){return"\\"+Ut[t]}function ze(t){return Dt.test(t)}function Ve(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Ue(t,e){return function(n){return t(e(n))}}function Ge(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==a||(t[n]=a,o[i++]=n)}return o}function He(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function We(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function Ye(t){return ze(t)?function(t){var e=Lt.lastIndex=0;for(;Lt.test(t);)++e;return e}(t):ye(t)}function Xe(t){return ze(t)?function(t){return t.match(Lt)||[]}(t):function(t){return t.split("")}(t)}function $e(t){for(var e=t.length;e--&&q.test(t.charAt(e)););return e}var qe=Ee({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Ze=function t(e){var n,r=(e=null==e?Xt:Ze.defaults(Xt.Object(),e,Ze.pick(Xt,Bt))).Array,i=e.Date,q=e.Error,ft=e.Function,dt=e.Math,pt=e.Object,gt=e.RegExp,vt=e.String,mt=e.TypeError,yt=r.prototype,bt=ft.prototype,_t=pt.prototype,xt=e["__core-js_shared__"],wt=bt.toString,Ot=_t.hasOwnProperty,St=0,Ct=(n=/[^.]+$/.exec(xt&&xt.keys&&xt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Et=_t.toString,Tt=wt.call(pt),At=Xt._,Mt=gt("^"+wt.call(Ot).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),It=Zt?e.Buffer:void 0,jt=e.Symbol,Lt=e.Uint8Array,Dt=It?It.allocUnsafe:void 0,Ut=Ue(pt.getPrototypeOf,pt),Wt=pt.create,Yt=_t.propertyIsEnumerable,$t=yt.splice,qt=jt?jt.isConcatSpreadable:void 0,Kt=jt?jt.iterator:void 0,Qt=jt?jt.toStringTag:void 0,ye=function(){try{var t=to(pt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ee=e.clearTimeout!==Xt.clearTimeout&&e.clearTimeout,Ke=i&&i.now!==Xt.Date.now&&i.now,Qe=e.setTimeout!==Xt.setTimeout&&e.setTimeout,Je=dt.ceil,tn=dt.floor,en=pt.getOwnPropertySymbols,nn=It?It.isBuffer:void 0,rn=e.isFinite,on=yt.join,an=Ue(pt.keys,pt),sn=dt.max,un=dt.min,ln=i.now,cn=e.parseInt,hn=dt.random,fn=yt.reverse,dn=to(e,"DataView"),pn=to(e,"Map"),gn=to(e,"Promise"),vn=to(e,"Set"),mn=to(e,"WeakMap"),yn=to(pt,"create"),bn=mn&&new mn,_n={},xn=Ao(dn),wn=Ao(pn),On=Ao(gn),Sn=Ao(vn),Cn=Ao(mn),En=jt?jt.prototype:void 0,Tn=En?En.valueOf:void 0,An=En?En.toString:void 0;function Mn(t){if(Wa(t)&&!La(t)&&!(t instanceof Pn)){if(t instanceof kn)return t;if(Ot.call(t,"__wrapped__"))return Mo(t)}return new kn(t)}var In=function(){function t(){}return function(e){if(!Ha(e))return{};if(Wt)return Wt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function jn(){}function kn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Pn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Ln(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Rn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Dn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Nn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Dn;++e<n;)this.add(t[e])}function Bn(t){var e=this.__data__=new Rn(t);this.size=e.size}function Fn(t,e){var n=La(t),r=!n&&Pa(t),i=!n&&!r&&Ba(t),o=!n&&!r&&!i&&Ja(t),a=n||r||i||o,s=a?Me(t.length,vt):[],u=s.length;for(var l in t)!e&&!Ot.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||so(l,u))||s.push(l);return s}function zn(t){var e=t.length;return e?t[Nr(0,e-1)]:void 0}function Vn(t,e){return Co(yi(t),Zn(e,0,t.length))}function Un(t){return Co(yi(t))}function Gn(t,e,n){(void 0!==n&&!Ia(t[e],n)||void 0===n&&!(e in t))&&$n(t,e,n)}function Hn(t,e,n){var r=t[e];Ot.call(t,e)&&Ia(r,n)&&(void 0!==n||e in t)||$n(t,e,n)}function Wn(t,e){for(var n=t.length;n--;)if(Ia(t[n][0],e))return n;return-1}function Yn(t,e,n,r){return er(t,(function(t,i,o){e(r,t,n(t),o)})),r}function Xn(t,e){return t&&bi(e,xs(e),t)}function $n(t,e,n){"__proto__"==e&&ye?ye(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function qn(t,e){for(var n=-1,i=e.length,o=r(i),a=null==t;++n<i;)o[n]=a?void 0:vs(t,e[n]);return o}function Zn(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}function Kn(t,e,n,r,i,o){var a,s=1&e,l=2&e,f=4&e;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!Ha(t))return t;var w=La(t);if(w){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Ot.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!s)return yi(t,a)}else{var P=ro(t),L=P==d||P==p;if(Ba(t))return fi(t,s);if(P==m||P==u||L&&!i){if(a=l||L?{}:oo(t),!s)return l?function(t,e){return bi(t,no(t),e)}(t,function(t,e){return t&&bi(e,ws(e),t)}(a,t)):function(t,e){return bi(t,eo(t),e)}(t,Xn(a,t))}else{if(!Vt[P])return i?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case O:return di(t);case c:case h:return new r(+t);case S:return function(t,e){var n=e?di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case C:case E:case T:case A:case M:case I:case"[object Uint8ClampedArray]":case j:case k:return pi(t,n);case g:return new r;case v:case _:return new r(t);case y:return function(t){var e=new t.constructor(t.source,rt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case b:return new r;case x:return i=t,Tn?pt(Tn.call(i)):{}}var i}(t,P,s)}}o||(o=new Bn);var R=o.get(t);if(R)return R;o.set(t,a),Za(t)?t.forEach((function(r){a.add(Kn(r,e,n,r,t,o))})):Ya(t)&&t.forEach((function(r,i){a.set(i,Kn(r,e,n,i,t,o))}));var D=w?void 0:(f?l?Xi:Yi:l?ws:xs)(t);return se(D||t,(function(r,i){D&&(r=t[i=r]),Hn(a,i,Kn(r,e,n,i,t,o))})),a}function Qn(t,e,n){var r=n.length;if(null==t)return!r;for(t=pt(t);r--;){var i=n[r],o=e[i],a=t[i];if(void 0===a&&!(i in t)||!o(a))return!1}return!0}function Jn(t,e,n){if("function"!=typeof t)throw new mt(o);return xo((function(){t.apply(void 0,n)}),e)}function tr(t,e,n,r){var i=-1,o=he,a=!0,s=t.length,u=[],l=e.length;if(!s)return u;n&&(e=de(e,je(n))),r?(o=fe,a=!1):e.length>=200&&(o=Pe,a=!1,e=new Nn(e));t:for(;++i<s;){var c=t[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,a&&h==h){for(var f=l;f--;)if(e[f]===h)continue t;u.push(c)}else o(e,h,r)||u.push(c)}return u}Mn.templateSettings={escape:z,evaluate:V,interpolate:U,variable:"",imports:{_:Mn}},Mn.prototype=jn.prototype,Mn.prototype.constructor=Mn,kn.prototype=In(jn.prototype),kn.prototype.constructor=kn,Pn.prototype=In(jn.prototype),Pn.prototype.constructor=Pn,Ln.prototype.clear=function(){this.__data__=yn?yn(null):{},this.size=0},Ln.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ln.prototype.get=function(t){var e=this.__data__;if(yn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ot.call(e,t)?e[t]:void 0},Ln.prototype.has=function(t){var e=this.__data__;return yn?void 0!==e[t]:Ot.call(e,t)},Ln.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=yn&&void 0===e?"__lodash_hash_undefined__":e,this},Rn.prototype.clear=function(){this.__data__=[],this.size=0},Rn.prototype.delete=function(t){var e=this.__data__,n=Wn(e,t);return!(n<0)&&(n==e.length-1?e.pop():$t.call(e,n,1),--this.size,!0)},Rn.prototype.get=function(t){var e=this.__data__,n=Wn(e,t);return n<0?void 0:e[n][1]},Rn.prototype.has=function(t){return Wn(this.__data__,t)>-1},Rn.prototype.set=function(t,e){var n=this.__data__,r=Wn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Dn.prototype.clear=function(){this.size=0,this.__data__={hash:new Ln,map:new(pn||Rn),string:new Ln}},Dn.prototype.delete=function(t){var e=Qi(this,t).delete(t);return this.size-=e?1:0,e},Dn.prototype.get=function(t){return Qi(this,t).get(t)},Dn.prototype.has=function(t){return Qi(this,t).has(t)},Dn.prototype.set=function(t,e){var n=Qi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Nn.prototype.add=Nn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(t){return this.__data__.has(t)},Bn.prototype.clear=function(){this.__data__=new Rn,this.size=0},Bn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Bn.prototype.get=function(t){return this.__data__.get(t)},Bn.prototype.has=function(t){return this.__data__.has(t)},Bn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Rn){var r=n.__data__;if(!pn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Dn(r)}return n.set(t,e),this.size=n.size,this};var er=wi(lr),nr=wi(cr,!0);function rr(t,e){var n=!0;return er(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function ir(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(void 0===s?a==a&&!Qa(a):n(a,s)))var s=a,u=o}return u}function or(t,e){var n=[];return er(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function ar(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=ao),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?ar(s,e-1,n,r,i):pe(i,s):r||(i[i.length]=s)}return i}var sr=Oi(),ur=Oi(!0);function lr(t,e){return t&&sr(t,e,xs)}function cr(t,e){return t&&ur(t,e,xs)}function hr(t,e){return ce(e,(function(e){return Va(t[e])}))}function fr(t,e){for(var n=0,r=(e=ui(e,t)).length;null!=t&&n<r;)t=t[To(e[n++])];return n&&n==r?t:void 0}function dr(t,e,n){var r=e(t);return La(t)?r:pe(r,n(t))}function pr(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Qt&&Qt in pt(t)?function(t){var e=Ot.call(t,Qt),n=t[Qt];try{t[Qt]=void 0;var r=!0}catch(t){}var i=Et.call(t);r&&(e?t[Qt]=n:delete t[Qt]);return i}(t):function(t){return Et.call(t)}(t)}function gr(t,e){return t>e}function vr(t,e){return null!=t&&Ot.call(t,e)}function mr(t,e){return null!=t&&e in pt(t)}function yr(t,e,n){for(var i=n?fe:he,o=t[0].length,a=t.length,s=a,u=r(a),l=1/0,c=[];s--;){var h=t[s];s&&e&&(h=de(h,je(e))),l=un(h.length,l),u[s]=!n&&(e||o>=120&&h.length>=120)?new Nn(s&&h):void 0}h=t[0];var f=-1,d=u[0];t:for(;++f<o&&c.length<l;){var p=h[f],g=e?e(p):p;if(p=n||0!==p?p:0,!(d?Pe(d,g):i(c,g,n))){for(s=a;--s;){var v=u[s];if(!(v?Pe(v,g):i(t[s],g,n)))continue t}d&&d.push(g),c.push(p)}}return c}function br(t,e,n){var r=null==(t=mo(t,e=ui(e,t)))?t:t[To(zo(e))];return null==r?void 0:oe(r,t,n)}function _r(t){return Wa(t)&&pr(t)==u}function xr(t,e,n,r,i){return t===e||(null==t||null==e||!Wa(t)&&!Wa(e)?t!=t&&e!=e:function(t,e,n,r,i,o){var a=La(t),s=La(e),d=a?l:ro(t),p=s?l:ro(e),w=(d=d==u?m:d)==m,C=(p=p==u?m:p)==m,E=d==p;if(E&&Ba(t)){if(!Ba(e))return!1;a=!0,w=!1}if(E&&!w)return o||(o=new Bn),a||Ja(t)?Hi(t,e,n,r,i,o):function(t,e,n,r,i,o,a){switch(n){case S:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case O:return!(t.byteLength!=e.byteLength||!o(new Lt(t),new Lt(e)));case c:case h:case v:return Ia(+t,+e);case f:return t.name==e.name&&t.message==e.message;case y:case _:return t==e+"";case g:var s=Ve;case b:var u=1&r;if(s||(s=He),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;r|=2,a.set(t,e);var d=Hi(s(t),s(e),r,i,o,a);return a.delete(t),d;case x:if(Tn)return Tn.call(t)==Tn.call(e)}return!1}(t,e,d,n,r,i,o);if(!(1&n)){var T=w&&Ot.call(t,"__wrapped__"),A=C&&Ot.call(e,"__wrapped__");if(T||A){var M=T?t.value():t,I=A?e.value():e;return o||(o=new Bn),i(M,I,n,r,o)}}if(!E)return!1;return o||(o=new Bn),function(t,e,n,r,i,o){var a=1&n,s=Yi(t),u=s.length,l=Yi(e).length;if(u!=l&&!a)return!1;var c=u;for(;c--;){var h=s[c];if(!(a?h in e:Ot.call(e,h)))return!1}var f=o.get(t),d=o.get(e);if(f&&d)return f==e&&d==t;var p=!0;o.set(t,e),o.set(e,t);var g=a;for(;++c<u;){h=s[c];var v=t[h],m=e[h];if(r)var y=a?r(m,v,h,e,t,o):r(v,m,h,t,e,o);if(!(void 0===y?v===m||i(v,m,n,r,o):y)){p=!1;break}g||(g="constructor"==h)}if(p&&!g){var b=t.constructor,_=e.constructor;b==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,i,o)}(t,e,n,r,xr,i))}function wr(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=pt(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){var u=(s=n[i])[0],l=t[u],c=s[1];if(a&&s[2]){if(void 0===l&&!(u in t))return!1}else{var h=new Bn;if(r)var f=r(l,c,u,t,e,h);if(!(void 0===f?xr(c,l,3,r,h):f))return!1}}return!0}function Or(t){return!(!Ha(t)||(e=t,Ct&&Ct in e))&&(Va(t)?Mt:at).test(Ao(t));var e}function Sr(t){return"function"==typeof t?t:null==t?Xs:"object"==typeof t?La(t)?Ir(t[0],t[1]):Mr(t):nu(t)}function Cr(t){if(!fo(t))return an(t);var e=[];for(var n in pt(t))Ot.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Er(t){if(!Ha(t))return function(t){var e=[];if(null!=t)for(var n in pt(t))e.push(n);return e}(t);var e=fo(t),n=[];for(var r in t)("constructor"!=r||!e&&Ot.call(t,r))&&n.push(r);return n}function Tr(t,e){return t<e}function Ar(t,e){var n=-1,i=Da(t)?r(t.length):[];return er(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}function Mr(t){var e=Ji(t);return 1==e.length&&e[0][2]?go(e[0][0],e[0][1]):function(n){return n===t||wr(n,t,e)}}function Ir(t,e){return lo(t)&&po(e)?go(To(t),e):function(n){var r=vs(n,t);return void 0===r&&r===e?ms(n,t):xr(e,r,3)}}function jr(t,e,n,r,i){t!==e&&sr(e,(function(o,a){if(i||(i=new Bn),Ha(o))!function(t,e,n,r,i,o,a){var s=bo(t,n),u=bo(e,n),l=a.get(u);if(l)return void Gn(t,n,l);var c=o?o(s,u,n+"",t,e,a):void 0,h=void 0===c;if(h){var f=La(u),d=!f&&Ba(u),p=!f&&!d&&Ja(u);c=u,f||d||p?La(s)?c=s:Na(s)?c=yi(s):d?(h=!1,c=fi(u,!0)):p?(h=!1,c=pi(u,!0)):c=[]:$a(u)||Pa(u)?(c=s,Pa(s)?c=ss(s):Ha(s)&&!Va(s)||(c=oo(u))):h=!1}h&&(a.set(u,c),i(c,u,r,o,a),a.delete(u));Gn(t,n,c)}(t,e,a,n,jr,r,i);else{var s=r?r(bo(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Gn(t,a,s)}}),ws)}function kr(t,e){var n=t.length;if(n)return so(e+=e<0?n:0,n)?t[e]:void 0}function Pr(t,e,n){e=e.length?de(e,(function(t){return La(t)?function(e){return fr(e,1===t.length?t[0]:t)}:t})):[Xs];var r=-1;return e=de(e,je(Ki())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(Ar(t,(function(t,n,i){return{criteria:de(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;for(;++r<a;){var u=gi(i[r],o[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return t.index-e.index}(t,e,n)}))}function Lr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=fr(t,a);n(s,a)&&Ur(o,ui(a,t),s)}return o}function Rr(t,e,n,r){var i=r?we:xe,o=-1,a=e.length,s=t;for(t===e&&(e=yi(e)),n&&(s=de(t,je(n)));++o<a;)for(var u=0,l=e[o],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==t&&$t.call(s,u,1),$t.call(t,u,1);return t}function Dr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;so(i)?$t.call(t,i,1):ti(t,i)}}return t}function Nr(t,e){return t+tn(hn()*(e-t+1))}function Br(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=tn(e/2))&&(t+=t)}while(e);return n}function Fr(t,e){return wo(vo(t,e,Xs),t+"")}function zr(t){return zn(Is(t))}function Vr(t,e){var n=Is(t);return Co(n,Zn(e,0,n.length))}function Ur(t,e,n,r){if(!Ha(t))return t;for(var i=-1,o=(e=ui(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var u=To(e[i]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(i!=a){var c=s[u];void 0===(l=r?r(c,u,s):void 0)&&(l=Ha(c)?c:so(e[i+1])?[]:{})}Hn(s,u,l),s=s[u]}return t}var Gr=bn?function(t,e){return bn.set(t,e),t}:Xs,Hr=ye?function(t,e){return ye(t,"toString",{configurable:!0,enumerable:!1,value:Hs(e),writable:!0})}:Xs;function Wr(t){return Co(Is(t))}function Yr(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=r(o);++i<o;)a[i]=t[i+e];return a}function Xr(t,e){var n;return er(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function $r(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!Qa(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return qr(t,e,Xs,n)}function qr(t,e,n,r){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=n(e))!=e,s=null===e,u=Qa(e),l=void 0===e;i<o;){var c=tn((i+o)/2),h=n(t[c]),f=void 0!==h,d=null===h,p=h==h,g=Qa(h);if(a)var v=r||p;else v=l?p&&(r||f):s?p&&f&&(r||!d):u?p&&f&&!d&&(r||!g):!d&&!g&&(r?h<=e:h<e);v?i=c+1:o=c}return un(o,4294967294)}function Zr(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!Ia(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Kr(t){return"number"==typeof t?t:Qa(t)?NaN:+t}function Qr(t){if("string"==typeof t)return t;if(La(t))return de(t,Qr)+"";if(Qa(t))return An?An.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Jr(t,e,n){var r=-1,i=he,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=fe;else if(o>=200){var l=e?null:Bi(t);if(l)return He(l);a=!1,i=Pe,u=new Nn}else u=e?[]:s;t:for(;++r<o;){var c=t[r],h=e?e(c):c;if(c=n||0!==c?c:0,a&&h==h){for(var f=u.length;f--;)if(u[f]===h)continue t;e&&u.push(h),s.push(c)}else i(u,h,n)||(u!==s&&u.push(h),s.push(c))}return s}function ti(t,e){return null==(t=mo(t,e=ui(e,t)))||delete t[To(zo(e))]}function ei(t,e,n,r){return Ur(t,e,n(fr(t,e)),r)}function ni(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?Yr(t,r?0:o,r?o+1:i):Yr(t,r?o+1:0,r?i:o)}function ri(t,e){var n=t;return n instanceof Pn&&(n=n.value()),ge(e,(function(t,e){return e.func.apply(e.thisArg,pe([t],e.args))}),n)}function ii(t,e,n){var i=t.length;if(i<2)return i?Jr(t[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=t[o],u=-1;++u<i;)u!=o&&(a[o]=tr(a[o]||s,t[u],e,n));return Jr(ar(a,1),e,n)}function oi(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:void 0;n(a,t[r],s)}return a}function ai(t){return Na(t)?t:[]}function si(t){return"function"==typeof t?t:Xs}function ui(t,e){return La(t)?t:lo(t,e)?[t]:Eo(us(t))}var li=Fr;function ci(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Yr(t,e,n)}var hi=Ee||function(t){return Xt.clearTimeout(t)};function fi(t,e){if(e)return t.slice();var n=t.length,r=Dt?Dt(n):new t.constructor(n);return t.copy(r),r}function di(t){var e=new t.constructor(t.byteLength);return new Lt(e).set(new Lt(t)),e}function pi(t,e){var n=e?di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function gi(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=Qa(t),a=void 0!==e,s=null===e,u=e==e,l=Qa(e);if(!s&&!l&&!o&&t>e||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&t<e||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function vi(t,e,n,i){for(var o=-1,a=t.length,s=n.length,u=-1,l=e.length,c=sn(a-s,0),h=r(l+c),f=!i;++u<l;)h[u]=e[u];for(;++o<s;)(f||o<a)&&(h[n[o]]=t[o]);for(;c--;)h[u++]=t[o++];return h}function mi(t,e,n,i){for(var o=-1,a=t.length,s=-1,u=n.length,l=-1,c=e.length,h=sn(a-u,0),f=r(h+c),d=!i;++o<h;)f[o]=t[o];for(var p=o;++l<c;)f[p+l]=e[l];for(;++s<u;)(d||o<a)&&(f[p+n[s]]=t[o++]);return f}function yi(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function bi(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),i?$n(n,s,u):Hn(n,s,u)}return n}function _i(t,e){return function(n,r){var i=La(n)?ae:Yn,o=e?e():{};return i(n,t,Ki(r,2),o)}}function xi(t){return Fr((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&uo(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=pt(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e}))}function wi(t,e){return function(n,r){if(null==n)return n;if(!Da(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=pt(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Oi(t){return function(e,n,r){for(var i=-1,o=pt(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}function Si(t){return function(e){var n=ze(e=us(e))?Xe(e):void 0,r=n?n[0]:e.charAt(0),i=n?ci(n,1).join(""):e.slice(1);return r[t]()+i}}function Ci(t){return function(e){return ge(Vs(Ps(e).replace(kt,"")),t,"")}}function Ei(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=In(t.prototype),r=t.apply(n,e);return Ha(r)?r:n}}function Ti(t){return function(e,n,r){var i=pt(e);if(!Da(e)){var o=Ki(n,3);e=xs(e),n=function(t){return o(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:void 0}}function Ai(t){return Wi((function(e){var n=e.length,r=n,i=kn.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new mt(o);if(i&&!s&&"wrapper"==qi(a))var s=new kn([],!0)}for(r=s?r:n;++r<n;){var u=qi(a=e[r]),l="wrapper"==u?$i(a):void 0;s=l&&co(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?s[qi(l[0])].apply(s,l[3]):1==a.length&&co(a)?s[u]():s.thru(a)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&La(r))return s.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function Mi(t,e,n,i,o,a,s,u,l,c){var h=128&e,f=1&e,d=2&e,p=24&e,g=512&e,v=d?void 0:Ei(t);return function m(){for(var y=arguments.length,b=r(y),_=y;_--;)b[_]=arguments[_];if(p)var x=Zi(m),w=De(b,x);if(i&&(b=vi(b,i,o,p)),a&&(b=mi(b,a,s,p)),y-=w,p&&y<c){var O=Ge(b,x);return Di(t,e,Mi,m.placeholder,n,b,O,u,l,c-y)}var S=f?n:this,C=d?S[t]:t;return y=b.length,u?b=yo(b,u):g&&y>1&&b.reverse(),h&&l<y&&(b.length=l),this&&this!==Xt&&this instanceof m&&(C=v||Ei(C)),C.apply(S,b)}}function Ii(t,e){return function(n,r){return function(t,e,n,r){return lr(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function ji(t,e){return function(n,r){var i;if(void 0===n&&void 0===r)return e;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Qr(n),r=Qr(r)):(n=Kr(n),r=Kr(r)),i=t(n,r)}return i}}function ki(t){return Wi((function(e){return e=de(e,je(Ki())),Fr((function(n){var r=this;return t(e,(function(t){return oe(t,r,n)}))}))}))}function Pi(t,e){var n=(e=void 0===e?" ":Qr(e)).length;if(n<2)return n?Br(e,t):e;var r=Br(e,Je(t/Ye(e)));return ze(e)?ci(Xe(r),0,t).join(""):r.slice(0,t)}function Li(t){return function(e,n,i){return i&&"number"!=typeof i&&uo(e,n,i)&&(n=i=void 0),e=rs(e),void 0===n?(n=e,e=0):n=rs(n),function(t,e,n,i){for(var o=-1,a=sn(Je((e-t)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=t,t+=n;return s}(e,n,i=void 0===i?e<n?1:-1:rs(i),t)}}function Ri(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=as(e),n=as(n)),t(e,n)}}function Di(t,e,n,r,i,o,a,s,u,l){var c=8&e;e|=c?32:64,4&(e&=~(c?64:32))||(e&=-4);var h=[t,e,i,c?o:void 0,c?a:void 0,c?void 0:o,c?void 0:a,s,u,l],f=n.apply(void 0,h);return co(t)&&_o(f,h),f.placeholder=r,Oo(f,t,e)}function Ni(t){var e=dt[t];return function(t,n){if(t=as(t),(n=null==n?0:un(is(n),292))&&rn(t)){var r=(us(t)+"e").split("e");return+((r=(us(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Bi=vn&&1/He(new vn([,-0]))[1]==1/0?function(t){return new vn(t)}:Qs;function Fi(t){return function(e){var n=ro(e);return n==g?Ve(e):n==b?We(e):function(t,e){return de(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function zi(t,e,n,i,s,u,l,c){var h=2&e;if(!h&&"function"!=typeof t)throw new mt(o);var f=i?i.length:0;if(f||(e&=-97,i=s=void 0),l=void 0===l?l:sn(is(l),0),c=void 0===c?c:is(c),f-=s?s.length:0,64&e){var d=i,p=s;i=s=void 0}var g=h?void 0:$i(t),v=[t,e,n,i,s,d,p,u,l,c];if(g&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var u=e[3];if(u){var l=t[3];t[3]=l?vi(l,u,e[4]):u,t[4]=l?Ge(t[3],a):e[4]}(u=e[5])&&(l=t[5],t[5]=l?mi(l,u,e[6]):u,t[6]=l?Ge(t[5],a):e[6]);(u=e[7])&&(t[7]=u);128&r&&(t[8]=null==t[8]?e[8]:un(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(v,g),t=v[0],e=v[1],n=v[2],i=v[3],s=v[4],!(c=v[9]=void 0===v[9]?h?0:t.length:sn(v[9]-f,0))&&24&e&&(e&=-25),e&&1!=e)m=8==e||16==e?function(t,e,n){var i=Ei(t);return function o(){for(var a=arguments.length,s=r(a),u=a,l=Zi(o);u--;)s[u]=arguments[u];var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:Ge(s,l);if((a-=c.length)<n)return Di(t,e,Mi,o.placeholder,void 0,s,c,void 0,void 0,n-a);var h=this&&this!==Xt&&this instanceof o?i:t;return oe(h,this,s)}}(t,e,c):32!=e&&33!=e||s.length?Mi.apply(void 0,v):function(t,e,n,i){var o=1&e,a=Ei(t);return function e(){for(var s=-1,u=arguments.length,l=-1,c=i.length,h=r(c+u),f=this&&this!==Xt&&this instanceof e?a:t;++l<c;)h[l]=i[l];for(;u--;)h[l++]=arguments[++s];return oe(f,o?n:this,h)}}(t,e,n,i);else var m=function(t,e,n){var r=1&e,i=Ei(t);return function e(){var o=this&&this!==Xt&&this instanceof e?i:t;return o.apply(r?n:this,arguments)}}(t,e,n);return Oo((g?Gr:_o)(m,v),t,e)}function Vi(t,e,n,r){return void 0===t||Ia(t,_t[n])&&!Ot.call(r,n)?e:t}function Ui(t,e,n,r,i,o){return Ha(t)&&Ha(e)&&(o.set(e,t),jr(t,e,void 0,Ui,o),o.delete(e)),t}function Gi(t){return $a(t)?void 0:t}function Hi(t,e,n,r,i,o){var a=1&n,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(t),c=o.get(e);if(l&&c)return l==e&&c==t;var h=-1,f=!0,d=2&n?new Nn:void 0;for(o.set(t,e),o.set(e,t);++h<s;){var p=t[h],g=e[h];if(r)var v=a?r(g,p,h,e,t,o):r(p,g,h,t,e,o);if(void 0!==v){if(v)continue;f=!1;break}if(d){if(!me(e,(function(t,e){if(!Pe(d,e)&&(p===t||i(p,t,n,r,o)))return d.push(e)}))){f=!1;break}}else if(p!==g&&!i(p,g,n,r,o)){f=!1;break}}return o.delete(t),o.delete(e),f}function Wi(t){return wo(vo(t,void 0,Ro),t+"")}function Yi(t){return dr(t,xs,eo)}function Xi(t){return dr(t,ws,no)}var $i=bn?function(t){return bn.get(t)}:Qs;function qi(t){for(var e=t.name+"",n=_n[e],r=Ot.call(_n,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Zi(t){return(Ot.call(Mn,"placeholder")?Mn:t).placeholder}function Ki(){var t=Mn.iteratee||$s;return t=t===$s?Sr:t,arguments.length?t(arguments[0],arguments[1]):t}function Qi(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function Ji(t){for(var e=xs(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,po(i)]}return e}function to(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Or(n)?n:void 0}var eo=en?function(t){return null==t?[]:(t=pt(t),ce(en(t),(function(e){return Yt.call(t,e)})))}:ou,no=en?function(t){for(var e=[];t;)pe(e,eo(t)),t=Ut(t);return e}:ou,ro=pr;function io(t,e,n){for(var r=-1,i=(e=ui(e,t)).length,o=!1;++r<i;){var a=To(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Ga(i)&&so(a,i)&&(La(t)||Pa(t))}function oo(t){return"function"!=typeof t.constructor||fo(t)?{}:In(Ut(t))}function ao(t){return La(t)||Pa(t)||!!(qt&&t&&t[qt])}function so(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ut.test(t))&&t>-1&&t%1==0&&t<e}function uo(t,e,n){if(!Ha(n))return!1;var r=typeof e;return!!("number"==r?Da(n)&&so(e,n.length):"string"==r&&e in n)&&Ia(n[e],t)}function lo(t,e){if(La(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Qa(t))||(H.test(t)||!G.test(t)||null!=e&&t in pt(e))}function co(t){var e=qi(t),n=Mn[e];if("function"!=typeof n||!(e in Pn.prototype))return!1;if(t===n)return!0;var r=$i(n);return!!r&&t===r[0]}(dn&&ro(new dn(new ArrayBuffer(1)))!=S||pn&&ro(new pn)!=g||gn&&"[object Promise]"!=ro(gn.resolve())||vn&&ro(new vn)!=b||mn&&ro(new mn)!=w)&&(ro=function(t){var e=pr(t),n=e==m?t.constructor:void 0,r=n?Ao(n):"";if(r)switch(r){case xn:return S;case wn:return g;case On:return"[object Promise]";case Sn:return b;case Cn:return w}return e});var ho=xt?Va:au;function fo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_t)}function po(t){return t==t&&!Ha(t)}function go(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in pt(n)))}}function vo(t,e,n){return e=sn(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,a=sn(i.length-e,0),s=r(a);++o<a;)s[o]=i[e+o];o=-1;for(var u=r(e+1);++o<e;)u[o]=i[o];return u[e]=n(s),oe(t,this,u)}}function mo(t,e){return e.length<2?t:fr(t,Yr(e,0,-1))}function yo(t,e){for(var n=t.length,r=un(e.length,n),i=yi(t);r--;){var o=e[r];t[r]=so(o,n)?i[o]:void 0}return t}function bo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var _o=So(Gr),xo=Qe||function(t,e){return Xt.setTimeout(t,e)},wo=So(Hr);function Oo(t,e,n){var r=e+"";return wo(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Z,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return se(s,(function(n){var r="_."+n[0];e&n[1]&&!he(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(K);return e?e[1].split(Q):[]}(r),n)))}function So(t){var e=0,n=0;return function(){var r=ln(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Co(t,e){var n=-1,r=t.length,i=r-1;for(e=void 0===e?r:e;++n<e;){var o=Nr(n,i),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}var Eo=function(t){var e=Sa(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(W,(function(t,n,r,i){e.push(r?i.replace(et,"$1"):n||t)})),e}));function To(t){if("string"==typeof t||Qa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ao(t){if(null!=t){try{return wt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Mo(t){if(t instanceof Pn)return t.clone();var e=new kn(t.__wrapped__,t.__chain__);return e.__actions__=yi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Io=Fr((function(t,e){return Na(t)?tr(t,ar(e,1,Na,!0)):[]})),jo=Fr((function(t,e){var n=zo(e);return Na(n)&&(n=void 0),Na(t)?tr(t,ar(e,1,Na,!0),Ki(n,2)):[]})),ko=Fr((function(t,e){var n=zo(e);return Na(n)&&(n=void 0),Na(t)?tr(t,ar(e,1,Na,!0),void 0,n):[]}));function Po(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),_e(t,Ki(e,3),i)}function Lo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=is(n),i=n<0?sn(r+i,0):un(i,r-1)),_e(t,Ki(e,3),i,!0)}function Ro(t){return(null==t?0:t.length)?ar(t,1):[]}function Do(t){return t&&t.length?t[0]:void 0}var No=Fr((function(t){var e=de(t,ai);return e.length&&e[0]===t[0]?yr(e):[]})),Bo=Fr((function(t){var e=zo(t),n=de(t,ai);return e===zo(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?yr(n,Ki(e,2)):[]})),Fo=Fr((function(t){var e=zo(t),n=de(t,ai);return(e="function"==typeof e?e:void 0)&&n.pop(),n.length&&n[0]===t[0]?yr(n,void 0,e):[]}));function zo(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Vo=Fr(Uo);function Uo(t,e){return t&&t.length&&e&&e.length?Rr(t,e):t}var Go=Wi((function(t,e){var n=null==t?0:t.length,r=qn(t,e);return Dr(t,de(e,(function(t){return so(t,n)?+t:t})).sort(gi)),r}));function Ho(t){return null==t?t:fn.call(t)}var Wo=Fr((function(t){return Jr(ar(t,1,Na,!0))})),Yo=Fr((function(t){var e=zo(t);return Na(e)&&(e=void 0),Jr(ar(t,1,Na,!0),Ki(e,2))})),Xo=Fr((function(t){var e=zo(t);return e="function"==typeof e?e:void 0,Jr(ar(t,1,Na,!0),void 0,e)}));function $o(t){if(!t||!t.length)return[];var e=0;return t=ce(t,(function(t){if(Na(t))return e=sn(t.length,e),!0})),Me(e,(function(e){return de(t,Ce(e))}))}function qo(t,e){if(!t||!t.length)return[];var n=$o(t);return null==e?n:de(n,(function(t){return oe(e,void 0,t)}))}var Zo=Fr((function(t,e){return Na(t)?tr(t,e):[]})),Ko=Fr((function(t){return ii(ce(t,Na))})),Qo=Fr((function(t){var e=zo(t);return Na(e)&&(e=void 0),ii(ce(t,Na),Ki(e,2))})),Jo=Fr((function(t){var e=zo(t);return e="function"==typeof e?e:void 0,ii(ce(t,Na),void 0,e)})),ta=Fr($o);var ea=Fr((function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,qo(t,n)}));function na(t){var e=Mn(t);return e.__chain__=!0,e}function ra(t,e){return e(t)}var ia=Wi((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return qn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Pn&&so(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ra,args:[i],thisArg:void 0}),new kn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var oa=_i((function(t,e,n){Ot.call(t,n)?++t[n]:$n(t,n,1)}));var aa=Ti(Po),sa=Ti(Lo);function ua(t,e){return(La(t)?se:er)(t,Ki(e,3))}function la(t,e){return(La(t)?ue:nr)(t,Ki(e,3))}var ca=_i((function(t,e,n){Ot.call(t,n)?t[n].push(e):$n(t,n,[e])}));var ha=Fr((function(t,e,n){var i=-1,o="function"==typeof e,a=Da(t)?r(t.length):[];return er(t,(function(t){a[++i]=o?oe(e,t,n):br(t,e,n)})),a})),fa=_i((function(t,e,n){$n(t,n,e)}));function da(t,e){return(La(t)?de:Ar)(t,Ki(e,3))}var pa=_i((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var ga=Fr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&uo(t,e[0],e[1])?e=[]:n>2&&uo(e[0],e[1],e[2])&&(e=[e[0]]),Pr(t,ar(e,1),[])})),va=Ke||function(){return Xt.Date.now()};function ma(t,e,n){return e=n?void 0:e,zi(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function ya(t,e){var n;if("function"!=typeof e)throw new mt(o);return t=is(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var ba=Fr((function(t,e,n){var r=1;if(n.length){var i=Ge(n,Zi(ba));r|=32}return zi(t,r,e,n,i)})),_a=Fr((function(t,e,n){var r=3;if(n.length){var i=Ge(n,Zi(_a));r|=32}return zi(e,r,t,n,i)}));function xa(t,e,n){var r,i,a,s,u,l,c=0,h=!1,f=!1,d=!0;if("function"!=typeof t)throw new mt(o);function p(e){var n=r,o=i;return r=i=void 0,c=e,s=t.apply(o,n)}function g(t){return c=t,u=xo(m,e),h?p(t):s}function v(t){var n=t-l;return void 0===l||n>=e||n<0||f&&t-c>=a}function m(){var t=va();if(v(t))return y(t);u=xo(m,function(t){var n=e-(t-l);return f?un(n,a-(t-c)):n}(t))}function y(t){return u=void 0,d&&r?p(t):(r=i=void 0,s)}function b(){var t=va(),n=v(t);if(r=arguments,i=this,l=t,n){if(void 0===u)return g(l);if(f)return hi(u),u=xo(m,e),p(l)}return void 0===u&&(u=xo(m,e)),s}return e=as(e)||0,Ha(n)&&(h=!!n.leading,a=(f="maxWait"in n)?sn(as(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==u&&hi(u),c=0,r=l=i=u=void 0},b.flush=function(){return void 0===u?s:y(va())},b}var wa=Fr((function(t,e){return Jn(t,1,e)})),Oa=Fr((function(t,e,n){return Jn(t,as(e)||0,n)}));function Sa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new mt(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Sa.Cache||Dn),n}function Ca(t){if("function"!=typeof t)throw new mt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Sa.Cache=Dn;var Ea=li((function(t,e){var n=(e=1==e.length&&La(e[0])?de(e[0],je(Ki())):de(ar(e,1),je(Ki()))).length;return Fr((function(r){for(var i=-1,o=un(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return oe(t,this,r)}))})),Ta=Fr((function(t,e){return zi(t,32,void 0,e,Ge(e,Zi(Ta)))})),Aa=Fr((function(t,e){return zi(t,64,void 0,e,Ge(e,Zi(Aa)))})),Ma=Wi((function(t,e){return zi(t,256,void 0,void 0,void 0,e)}));function Ia(t,e){return t===e||t!=t&&e!=e}var ja=Ri(gr),ka=Ri((function(t,e){return t>=e})),Pa=_r(function(){return arguments}())?_r:function(t){return Wa(t)&&Ot.call(t,"callee")&&!Yt.call(t,"callee")},La=r.isArray,Ra=Jt?je(Jt):function(t){return Wa(t)&&pr(t)==O};function Da(t){return null!=t&&Ga(t.length)&&!Va(t)}function Na(t){return Wa(t)&&Da(t)}var Ba=nn||au,Fa=te?je(te):function(t){return Wa(t)&&pr(t)==h};function za(t){if(!Wa(t))return!1;var e=pr(t);return e==f||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!$a(t)}function Va(t){if(!Ha(t))return!1;var e=pr(t);return e==d||e==p||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ua(t){return"number"==typeof t&&t==is(t)}function Ga(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Ha(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Wa(t){return null!=t&&"object"==typeof t}var Ya=ee?je(ee):function(t){return Wa(t)&&ro(t)==g};function Xa(t){return"number"==typeof t||Wa(t)&&pr(t)==v}function $a(t){if(!Wa(t)||pr(t)!=m)return!1;var e=Ut(t);if(null===e)return!0;var n=Ot.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&wt.call(n)==Tt}var qa=ne?je(ne):function(t){return Wa(t)&&pr(t)==y};var Za=re?je(re):function(t){return Wa(t)&&ro(t)==b};function Ka(t){return"string"==typeof t||!La(t)&&Wa(t)&&pr(t)==_}function Qa(t){return"symbol"==typeof t||Wa(t)&&pr(t)==x}var Ja=ie?je(ie):function(t){return Wa(t)&&Ga(t.length)&&!!zt[pr(t)]};var ts=Ri(Tr),es=Ri((function(t,e){return t<=e}));function ns(t){if(!t)return[];if(Da(t))return Ka(t)?Xe(t):yi(t);if(Kt&&t[Kt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Kt]());var e=ro(t);return(e==g?Ve:e==b?He:Is)(t)}function rs(t){return t?(t=as(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function is(t){var e=rs(t),n=e%1;return e==e?n?e-n:e:0}function os(t){return t?Zn(is(t),0,4294967295):0}function as(t){if("number"==typeof t)return t;if(Qa(t))return NaN;if(Ha(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ha(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ie(t);var n=ot.test(t);return n||st.test(t)?Ht(t.slice(2),n?2:8):it.test(t)?NaN:+t}function ss(t){return bi(t,ws(t))}function us(t){return null==t?"":Qr(t)}var ls=xi((function(t,e){if(fo(e)||Da(e))bi(e,xs(e),t);else for(var n in e)Ot.call(e,n)&&Hn(t,n,e[n])})),cs=xi((function(t,e){bi(e,ws(e),t)})),hs=xi((function(t,e,n,r){bi(e,ws(e),t,r)})),fs=xi((function(t,e,n,r){bi(e,xs(e),t,r)})),ds=Wi(qn);var ps=Fr((function(t,e){t=pt(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&uo(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],a=ws(o),s=-1,u=a.length;++s<u;){var l=a[s],c=t[l];(void 0===c||Ia(c,_t[l])&&!Ot.call(t,l))&&(t[l]=o[l])}return t})),gs=Fr((function(t){return t.push(void 0,Ui),oe(Ss,void 0,t)}));function vs(t,e,n){var r=null==t?void 0:fr(t,e);return void 0===r?n:r}function ms(t,e){return null!=t&&io(t,e,mr)}var ys=Ii((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Et.call(e)),t[e]=n}),Hs(Xs)),bs=Ii((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Et.call(e)),Ot.call(t,e)?t[e].push(n):t[e]=[n]}),Ki),_s=Fr(br);function xs(t){return Da(t)?Fn(t):Cr(t)}function ws(t){return Da(t)?Fn(t,!0):Er(t)}var Os=xi((function(t,e,n){jr(t,e,n)})),Ss=xi((function(t,e,n,r){jr(t,e,n,r)})),Cs=Wi((function(t,e){var n={};if(null==t)return n;var r=!1;e=de(e,(function(e){return e=ui(e,t),r||(r=e.length>1),e})),bi(t,Xi(t),n),r&&(n=Kn(n,7,Gi));for(var i=e.length;i--;)ti(n,e[i]);return n}));var Es=Wi((function(t,e){return null==t?{}:function(t,e){return Lr(t,e,(function(e,n){return ms(t,n)}))}(t,e)}));function Ts(t,e){if(null==t)return{};var n=de(Xi(t),(function(t){return[t]}));return e=Ki(e),Lr(t,n,(function(t,n){return e(t,n[0])}))}var As=Fi(xs),Ms=Fi(ws);function Is(t){return null==t?[]:ke(t,xs(t))}var js=Ci((function(t,e,n){return e=e.toLowerCase(),t+(n?ks(e):e)}));function ks(t){return zs(us(t).toLowerCase())}function Ps(t){return(t=us(t))&&t.replace(lt,Ne).replace(Pt,"")}var Ls=Ci((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Rs=Ci((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ds=Si("toLowerCase");var Ns=Ci((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Bs=Ci((function(t,e,n){return t+(n?" ":"")+zs(e)}));var Fs=Ci((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),zs=Si("toUpperCase");function Vs(t,e,n){return t=us(t),void 0===(e=n?void 0:e)?function(t){return Nt.test(t)}(t)?function(t){return t.match(Rt)||[]}(t):function(t){return t.match(J)||[]}(t):t.match(e)||[]}var Us=Fr((function(t,e){try{return oe(t,void 0,e)}catch(t){return za(t)?t:new q(t)}})),Gs=Wi((function(t,e){return se(e,(function(e){e=To(e),$n(t,e,ba(t[e],t))})),t}));function Hs(t){return function(){return t}}var Ws=Ai(),Ys=Ai(!0);function Xs(t){return t}function $s(t){return Sr("function"==typeof t?t:Kn(t,1))}var qs=Fr((function(t,e){return function(n){return br(n,t,e)}})),Zs=Fr((function(t,e){return function(n){return br(t,n,e)}}));function Ks(t,e,n){var r=xs(e),i=hr(e,r);null!=n||Ha(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=hr(e,xs(e)));var o=!(Ha(n)&&"chain"in n&&!n.chain),a=Va(t);return se(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=yi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,pe([this.value()],arguments))})})),t}function Qs(){}var Js=ki(de),tu=ki(le),eu=ki(me);function nu(t){return lo(t)?Ce(To(t)):function(t){return function(e){return fr(e,t)}}(t)}var ru=Li(),iu=Li(!0);function ou(){return[]}function au(){return!1}var su=ji((function(t,e){return t+e}),0),uu=Ni("ceil"),lu=ji((function(t,e){return t/e}),1),cu=Ni("floor");var hu,fu=ji((function(t,e){return t*e}),1),du=Ni("round"),pu=ji((function(t,e){return t-e}),0);return Mn.after=function(t,e){if("function"!=typeof e)throw new mt(o);return t=is(t),function(){if(--t<1)return e.apply(this,arguments)}},Mn.ary=ma,Mn.assign=ls,Mn.assignIn=cs,Mn.assignInWith=hs,Mn.assignWith=fs,Mn.at=ds,Mn.before=ya,Mn.bind=ba,Mn.bindAll=Gs,Mn.bindKey=_a,Mn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return La(t)?t:[t]},Mn.chain=na,Mn.chunk=function(t,e,n){e=(n?uo(t,e,n):void 0===e)?1:sn(is(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,s=r(Je(i/e));o<i;)s[a++]=Yr(t,o,o+=e);return s},Mn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},Mn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return pe(La(n)?yi(n):[n],ar(e,1))},Mn.cond=function(t){var e=null==t?0:t.length,n=Ki();return t=e?de(t,(function(t){if("function"!=typeof t[1])throw new mt(o);return[n(t[0]),t[1]]})):[],Fr((function(n){for(var r=-1;++r<e;){var i=t[r];if(oe(i[0],this,n))return oe(i[1],this,n)}}))},Mn.conforms=function(t){return function(t){var e=xs(t);return function(n){return Qn(n,t,e)}}(Kn(t,1))},Mn.constant=Hs,Mn.countBy=oa,Mn.create=function(t,e){var n=In(t);return null==e?n:Xn(n,e)},Mn.curry=function t(e,n,r){var i=zi(e,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=t.placeholder,i},Mn.curryRight=function t(e,n,r){var i=zi(e,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=t.placeholder,i},Mn.debounce=xa,Mn.defaults=ps,Mn.defaultsDeep=gs,Mn.defer=wa,Mn.delay=Oa,Mn.difference=Io,Mn.differenceBy=jo,Mn.differenceWith=ko,Mn.drop=function(t,e,n){var r=null==t?0:t.length;return r?Yr(t,(e=n||void 0===e?1:is(e))<0?0:e,r):[]},Mn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?Yr(t,0,(e=r-(e=n||void 0===e?1:is(e)))<0?0:e):[]},Mn.dropRightWhile=function(t,e){return t&&t.length?ni(t,Ki(e,3),!0,!0):[]},Mn.dropWhile=function(t,e){return t&&t.length?ni(t,Ki(e,3),!0):[]},Mn.fill=function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&uo(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=is(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:is(r))<0&&(r+=i),r=n>r?0:os(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Mn.filter=function(t,e){return(La(t)?ce:or)(t,Ki(e,3))},Mn.flatMap=function(t,e){return ar(da(t,e),1)},Mn.flatMapDeep=function(t,e){return ar(da(t,e),1/0)},Mn.flatMapDepth=function(t,e,n){return n=void 0===n?1:is(n),ar(da(t,e),n)},Mn.flatten=Ro,Mn.flattenDeep=function(t){return(null==t?0:t.length)?ar(t,1/0):[]},Mn.flattenDepth=function(t,e){return(null==t?0:t.length)?ar(t,e=void 0===e?1:is(e)):[]},Mn.flip=function(t){return zi(t,512)},Mn.flow=Ws,Mn.flowRight=Ys,Mn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Mn.functions=function(t){return null==t?[]:hr(t,xs(t))},Mn.functionsIn=function(t){return null==t?[]:hr(t,ws(t))},Mn.groupBy=ca,Mn.initial=function(t){return(null==t?0:t.length)?Yr(t,0,-1):[]},Mn.intersection=No,Mn.intersectionBy=Bo,Mn.intersectionWith=Fo,Mn.invert=ys,Mn.invertBy=bs,Mn.invokeMap=ha,Mn.iteratee=$s,Mn.keyBy=fa,Mn.keys=xs,Mn.keysIn=ws,Mn.map=da,Mn.mapKeys=function(t,e){var n={};return e=Ki(e,3),lr(t,(function(t,r,i){$n(n,e(t,r,i),t)})),n},Mn.mapValues=function(t,e){var n={};return e=Ki(e,3),lr(t,(function(t,r,i){$n(n,r,e(t,r,i))})),n},Mn.matches=function(t){return Mr(Kn(t,1))},Mn.matchesProperty=function(t,e){return Ir(t,Kn(e,1))},Mn.memoize=Sa,Mn.merge=Os,Mn.mergeWith=Ss,Mn.method=qs,Mn.methodOf=Zs,Mn.mixin=Ks,Mn.negate=Ca,Mn.nthArg=function(t){return t=is(t),Fr((function(e){return kr(e,t)}))},Mn.omit=Cs,Mn.omitBy=function(t,e){return Ts(t,Ca(Ki(e)))},Mn.once=function(t){return ya(2,t)},Mn.orderBy=function(t,e,n,r){return null==t?[]:(La(e)||(e=null==e?[]:[e]),La(n=r?void 0:n)||(n=null==n?[]:[n]),Pr(t,e,n))},Mn.over=Js,Mn.overArgs=Ea,Mn.overEvery=tu,Mn.overSome=eu,Mn.partial=Ta,Mn.partialRight=Aa,Mn.partition=pa,Mn.pick=Es,Mn.pickBy=Ts,Mn.property=nu,Mn.propertyOf=function(t){return function(e){return null==t?void 0:fr(t,e)}},Mn.pull=Vo,Mn.pullAll=Uo,Mn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Rr(t,e,Ki(n,2)):t},Mn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Rr(t,e,void 0,n):t},Mn.pullAt=Go,Mn.range=ru,Mn.rangeRight=iu,Mn.rearg=Ma,Mn.reject=function(t,e){return(La(t)?ce:or)(t,Ca(Ki(e,3)))},Mn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=Ki(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Dr(t,i),n},Mn.rest=function(t,e){if("function"!=typeof t)throw new mt(o);return Fr(t,e=void 0===e?e:is(e))},Mn.reverse=Ho,Mn.sampleSize=function(t,e,n){return e=(n?uo(t,e,n):void 0===e)?1:is(e),(La(t)?Vn:Vr)(t,e)},Mn.set=function(t,e,n){return null==t?t:Ur(t,e,n)},Mn.setWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:Ur(t,e,n,r)},Mn.shuffle=function(t){return(La(t)?Un:Wr)(t)},Mn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&uo(t,e,n)?(e=0,n=r):(e=null==e?0:is(e),n=void 0===n?r:is(n)),Yr(t,e,n)):[]},Mn.sortBy=ga,Mn.sortedUniq=function(t){return t&&t.length?Zr(t):[]},Mn.sortedUniqBy=function(t,e){return t&&t.length?Zr(t,Ki(e,2)):[]},Mn.split=function(t,e,n){return n&&"number"!=typeof n&&uo(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=us(t))&&("string"==typeof e||null!=e&&!qa(e))&&!(e=Qr(e))&&ze(t)?ci(Xe(t),0,n):t.split(e,n):[]},Mn.spread=function(t,e){if("function"!=typeof t)throw new mt(o);return e=null==e?0:sn(is(e),0),Fr((function(n){var r=n[e],i=ci(n,0,e);return r&&pe(i,r),oe(t,this,i)}))},Mn.tail=function(t){var e=null==t?0:t.length;return e?Yr(t,1,e):[]},Mn.take=function(t,e,n){return t&&t.length?Yr(t,0,(e=n||void 0===e?1:is(e))<0?0:e):[]},Mn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Yr(t,(e=r-(e=n||void 0===e?1:is(e)))<0?0:e,r):[]},Mn.takeRightWhile=function(t,e){return t&&t.length?ni(t,Ki(e,3),!1,!0):[]},Mn.takeWhile=function(t,e){return t&&t.length?ni(t,Ki(e,3)):[]},Mn.tap=function(t,e){return e(t),t},Mn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new mt(o);return Ha(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),xa(t,e,{leading:r,maxWait:e,trailing:i})},Mn.thru=ra,Mn.toArray=ns,Mn.toPairs=As,Mn.toPairsIn=Ms,Mn.toPath=function(t){return La(t)?de(t,To):Qa(t)?[t]:yi(Eo(us(t)))},Mn.toPlainObject=ss,Mn.transform=function(t,e,n){var r=La(t),i=r||Ba(t)||Ja(t);if(e=Ki(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:Ha(t)&&Va(o)?In(Ut(t)):{}}return(i?se:lr)(t,(function(t,r,i){return e(n,t,r,i)})),n},Mn.unary=function(t){return ma(t,1)},Mn.union=Wo,Mn.unionBy=Yo,Mn.unionWith=Xo,Mn.uniq=function(t){return t&&t.length?Jr(t):[]},Mn.uniqBy=function(t,e){return t&&t.length?Jr(t,Ki(e,2)):[]},Mn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Jr(t,void 0,e):[]},Mn.unset=function(t,e){return null==t||ti(t,e)},Mn.unzip=$o,Mn.unzipWith=qo,Mn.update=function(t,e,n){return null==t?t:ei(t,e,si(n))},Mn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:ei(t,e,si(n),r)},Mn.values=Is,Mn.valuesIn=function(t){return null==t?[]:ke(t,ws(t))},Mn.without=Zo,Mn.words=Vs,Mn.wrap=function(t,e){return Ta(si(e),t)},Mn.xor=Ko,Mn.xorBy=Qo,Mn.xorWith=Jo,Mn.zip=ta,Mn.zipObject=function(t,e){return oi(t||[],e||[],Hn)},Mn.zipObjectDeep=function(t,e){return oi(t||[],e||[],Ur)},Mn.zipWith=ea,Mn.entries=As,Mn.entriesIn=Ms,Mn.extend=cs,Mn.extendWith=hs,Ks(Mn,Mn),Mn.add=su,Mn.attempt=Us,Mn.camelCase=js,Mn.capitalize=ks,Mn.ceil=uu,Mn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==e&&(e=(e=as(e))==e?e:0),Zn(as(t),e,n)},Mn.clone=function(t){return Kn(t,4)},Mn.cloneDeep=function(t){return Kn(t,5)},Mn.cloneDeepWith=function(t,e){return Kn(t,5,e="function"==typeof e?e:void 0)},Mn.cloneWith=function(t,e){return Kn(t,4,e="function"==typeof e?e:void 0)},Mn.conformsTo=function(t,e){return null==e||Qn(t,e,xs(e))},Mn.deburr=Ps,Mn.defaultTo=function(t,e){return null==t||t!=t?e:t},Mn.divide=lu,Mn.endsWith=function(t,e,n){t=us(t),e=Qr(e);var r=t.length,i=n=void 0===n?r:Zn(is(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},Mn.eq=Ia,Mn.escape=function(t){return(t=us(t))&&F.test(t)?t.replace(N,Be):t},Mn.escapeRegExp=function(t){return(t=us(t))&&X.test(t)?t.replace(Y,"\\$&"):t},Mn.every=function(t,e,n){var r=La(t)?le:rr;return n&&uo(t,e,n)&&(e=void 0),r(t,Ki(e,3))},Mn.find=aa,Mn.findIndex=Po,Mn.findKey=function(t,e){return be(t,Ki(e,3),lr)},Mn.findLast=sa,Mn.findLastIndex=Lo,Mn.findLastKey=function(t,e){return be(t,Ki(e,3),cr)},Mn.floor=cu,Mn.forEach=ua,Mn.forEachRight=la,Mn.forIn=function(t,e){return null==t?t:sr(t,Ki(e,3),ws)},Mn.forInRight=function(t,e){return null==t?t:ur(t,Ki(e,3),ws)},Mn.forOwn=function(t,e){return t&&lr(t,Ki(e,3))},Mn.forOwnRight=function(t,e){return t&&cr(t,Ki(e,3))},Mn.get=vs,Mn.gt=ja,Mn.gte=ka,Mn.has=function(t,e){return null!=t&&io(t,e,vr)},Mn.hasIn=ms,Mn.head=Do,Mn.identity=Xs,Mn.includes=function(t,e,n,r){t=Da(t)?t:Is(t),n=n&&!r?is(n):0;var i=t.length;return n<0&&(n=sn(i+n,0)),Ka(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&xe(t,e,n)>-1},Mn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),xe(t,e,i)},Mn.inRange=function(t,e,n){return e=rs(e),void 0===n?(n=e,e=0):n=rs(n),function(t,e,n){return t>=un(e,n)&&t<sn(e,n)}(t=as(t),e,n)},Mn.invoke=_s,Mn.isArguments=Pa,Mn.isArray=La,Mn.isArrayBuffer=Ra,Mn.isArrayLike=Da,Mn.isArrayLikeObject=Na,Mn.isBoolean=function(t){return!0===t||!1===t||Wa(t)&&pr(t)==c},Mn.isBuffer=Ba,Mn.isDate=Fa,Mn.isElement=function(t){return Wa(t)&&1===t.nodeType&&!$a(t)},Mn.isEmpty=function(t){if(null==t)return!0;if(Da(t)&&(La(t)||"string"==typeof t||"function"==typeof t.splice||Ba(t)||Ja(t)||Pa(t)))return!t.length;var e=ro(t);if(e==g||e==b)return!t.size;if(fo(t))return!Cr(t).length;for(var n in t)if(Ot.call(t,n))return!1;return!0},Mn.isEqual=function(t,e){return xr(t,e)},Mn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?xr(t,e,void 0,n):!!r},Mn.isError=za,Mn.isFinite=function(t){return"number"==typeof t&&rn(t)},Mn.isFunction=Va,Mn.isInteger=Ua,Mn.isLength=Ga,Mn.isMap=Ya,Mn.isMatch=function(t,e){return t===e||wr(t,e,Ji(e))},Mn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:void 0,wr(t,e,Ji(e),n)},Mn.isNaN=function(t){return Xa(t)&&t!=+t},Mn.isNative=function(t){if(ho(t))throw new q("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Or(t)},Mn.isNil=function(t){return null==t},Mn.isNull=function(t){return null===t},Mn.isNumber=Xa,Mn.isObject=Ha,Mn.isObjectLike=Wa,Mn.isPlainObject=$a,Mn.isRegExp=qa,Mn.isSafeInteger=function(t){return Ua(t)&&t>=-9007199254740991&&t<=9007199254740991},Mn.isSet=Za,Mn.isString=Ka,Mn.isSymbol=Qa,Mn.isTypedArray=Ja,Mn.isUndefined=function(t){return void 0===t},Mn.isWeakMap=function(t){return Wa(t)&&ro(t)==w},Mn.isWeakSet=function(t){return Wa(t)&&"[object WeakSet]"==pr(t)},Mn.join=function(t,e){return null==t?"":on.call(t,e)},Mn.kebabCase=Ls,Mn.last=zo,Mn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=is(n))<0?sn(r+i,0):un(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):_e(t,Oe,i,!0)},Mn.lowerCase=Rs,Mn.lowerFirst=Ds,Mn.lt=ts,Mn.lte=es,Mn.max=function(t){return t&&t.length?ir(t,Xs,gr):void 0},Mn.maxBy=function(t,e){return t&&t.length?ir(t,Ki(e,2),gr):void 0},Mn.mean=function(t){return Se(t,Xs)},Mn.meanBy=function(t,e){return Se(t,Ki(e,2))},Mn.min=function(t){return t&&t.length?ir(t,Xs,Tr):void 0},Mn.minBy=function(t,e){return t&&t.length?ir(t,Ki(e,2),Tr):void 0},Mn.stubArray=ou,Mn.stubFalse=au,Mn.stubObject=function(){return{}},Mn.stubString=function(){return""},Mn.stubTrue=function(){return!0},Mn.multiply=fu,Mn.nth=function(t,e){return t&&t.length?kr(t,is(e)):void 0},Mn.noConflict=function(){return Xt._===this&&(Xt._=At),this},Mn.noop=Qs,Mn.now=va,Mn.pad=function(t,e,n){t=us(t);var r=(e=is(e))?Ye(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Pi(tn(i),n)+t+Pi(Je(i),n)},Mn.padEnd=function(t,e,n){t=us(t);var r=(e=is(e))?Ye(t):0;return e&&r<e?t+Pi(e-r,n):t},Mn.padStart=function(t,e,n){t=us(t);var r=(e=is(e))?Ye(t):0;return e&&r<e?Pi(e-r,n)+t:t},Mn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),cn(us(t).replace($,""),e||0)},Mn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&uo(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=rs(t),void 0===e?(e=t,t=0):e=rs(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=hn();return un(t+i*(e-t+Gt("1e-"+((i+"").length-1))),e)}return Nr(t,e)},Mn.reduce=function(t,e,n){var r=La(t)?ge:Te,i=arguments.length<3;return r(t,Ki(e,4),n,i,er)},Mn.reduceRight=function(t,e,n){var r=La(t)?ve:Te,i=arguments.length<3;return r(t,Ki(e,4),n,i,nr)},Mn.repeat=function(t,e,n){return e=(n?uo(t,e,n):void 0===e)?1:is(e),Br(us(t),e)},Mn.replace=function(){var t=arguments,e=us(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Mn.result=function(t,e,n){var r=-1,i=(e=ui(e,t)).length;for(i||(i=1,t=void 0);++r<i;){var o=null==t?void 0:t[To(e[r])];void 0===o&&(r=i,o=n),t=Va(o)?o.call(t):o}return t},Mn.round=du,Mn.runInContext=t,Mn.sample=function(t){return(La(t)?zn:zr)(t)},Mn.size=function(t){if(null==t)return 0;if(Da(t))return Ka(t)?Ye(t):t.length;var e=ro(t);return e==g||e==b?t.size:Cr(t).length},Mn.snakeCase=Ns,Mn.some=function(t,e,n){var r=La(t)?me:Xr;return n&&uo(t,e,n)&&(e=void 0),r(t,Ki(e,3))},Mn.sortedIndex=function(t,e){return $r(t,e)},Mn.sortedIndexBy=function(t,e,n){return qr(t,e,Ki(n,2))},Mn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=$r(t,e);if(r<n&&Ia(t[r],e))return r}return-1},Mn.sortedLastIndex=function(t,e){return $r(t,e,!0)},Mn.sortedLastIndexBy=function(t,e,n){return qr(t,e,Ki(n,2),!0)},Mn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=$r(t,e,!0)-1;if(Ia(t[n],e))return n}return-1},Mn.startCase=Bs,Mn.startsWith=function(t,e,n){return t=us(t),n=null==n?0:Zn(is(n),0,t.length),e=Qr(e),t.slice(n,n+e.length)==e},Mn.subtract=pu,Mn.sum=function(t){return t&&t.length?Ae(t,Xs):0},Mn.sumBy=function(t,e){return t&&t.length?Ae(t,Ki(e,2)):0},Mn.template=function(t,e,n){var r=Mn.templateSettings;n&&uo(t,e,n)&&(e=void 0),t=us(t),e=hs({},e,r,Vi);var i,o,a=hs({},e.imports,r.imports,Vi),s=xs(a),u=ke(a,s),l=0,c=e.interpolate||ct,h="__p += '",f=gt((e.escape||ct).source+"|"+c.source+"|"+(c===U?nt:ct).source+"|"+(e.evaluate||ct).source+"|$","g"),d="//# sourceURL="+(Ot.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ft+"]")+"\n";t.replace(f,(function(e,n,r,a,s,u){return r||(r=a),h+=t.slice(l,u).replace(ht,Fe),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e})),h+="';\n";var p=Ot.call(e,"variable")&&e.variable;if(p){if(tt.test(p))throw new q("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(P,""):h).replace(L,"$1").replace(R,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Us((function(){return ft(s,d+"return "+h).apply(void 0,u)}));if(g.source=h,za(g))throw g;return g},Mn.times=function(t,e){if((t=is(t))<1||t>9007199254740991)return[];var n=4294967295,r=un(t,4294967295);t-=4294967295;for(var i=Me(r,e=Ki(e));++n<t;)e(n);return i},Mn.toFinite=rs,Mn.toInteger=is,Mn.toLength=os,Mn.toLower=function(t){return us(t).toLowerCase()},Mn.toNumber=as,Mn.toSafeInteger=function(t){return t?Zn(is(t),-9007199254740991,9007199254740991):0===t?t:0},Mn.toString=us,Mn.toUpper=function(t){return us(t).toUpperCase()},Mn.trim=function(t,e,n){if((t=us(t))&&(n||void 0===e))return Ie(t);if(!t||!(e=Qr(e)))return t;var r=Xe(t),i=Xe(e);return ci(r,Le(r,i),Re(r,i)+1).join("")},Mn.trimEnd=function(t,e,n){if((t=us(t))&&(n||void 0===e))return t.slice(0,$e(t)+1);if(!t||!(e=Qr(e)))return t;var r=Xe(t);return ci(r,0,Re(r,Xe(e))+1).join("")},Mn.trimStart=function(t,e,n){if((t=us(t))&&(n||void 0===e))return t.replace($,"");if(!t||!(e=Qr(e)))return t;var r=Xe(t);return ci(r,Le(r,Xe(e))).join("")},Mn.truncate=function(t,e){var n=30,r="...";if(Ha(e)){var i="separator"in e?e.separator:i;n="length"in e?is(e.length):n,r="omission"in e?Qr(e.omission):r}var o=(t=us(t)).length;if(ze(t)){var a=Xe(t);o=a.length}if(n>=o)return t;var s=n-Ye(r);if(s<1)return r;var u=a?ci(a,0,s).join(""):t.slice(0,s);if(void 0===i)return u+r;if(a&&(s+=u.length-s),qa(i)){if(t.slice(s).search(i)){var l,c=u;for(i.global||(i=gt(i.source,us(rt.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var h=l.index;u=u.slice(0,void 0===h?s:h)}}else if(t.indexOf(Qr(i),s)!=s){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+r},Mn.unescape=function(t){return(t=us(t))&&B.test(t)?t.replace(D,qe):t},Mn.uniqueId=function(t){var e=++St;return us(t)+e},Mn.upperCase=Fs,Mn.upperFirst=zs,Mn.each=ua,Mn.eachRight=la,Mn.first=Do,Ks(Mn,(hu={},lr(Mn,(function(t,e){Ot.call(Mn.prototype,e)||(hu[e]=t)})),hu),{chain:!1}),Mn.VERSION="4.17.21",se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Mn[t].placeholder=Mn})),se(["drop","take"],(function(t,e){Pn.prototype[t]=function(n){n=void 0===n?1:sn(is(n),0);var r=this.__filtered__&&!e?new Pn(this):this.clone();return r.__filtered__?r.__takeCount__=un(n,r.__takeCount__):r.__views__.push({size:un(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},Pn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),se(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Pn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Ki(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),se(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Pn.prototype[t]=function(){return this[n](1).value()[0]}})),se(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Pn.prototype[t]=function(){return this.__filtered__?new Pn(this):this[n](1)}})),Pn.prototype.compact=function(){return this.filter(Xs)},Pn.prototype.find=function(t){return this.filter(t).head()},Pn.prototype.findLast=function(t){return this.reverse().find(t)},Pn.prototype.invokeMap=Fr((function(t,e){return"function"==typeof t?new Pn(this):this.map((function(n){return br(n,t,e)}))})),Pn.prototype.reject=function(t){return this.filter(Ca(Ki(t)))},Pn.prototype.slice=function(t,e){t=is(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Pn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=is(e))<0?n.dropRight(-e):n.take(e-t)),n)},Pn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Pn.prototype.toArray=function(){return this.take(4294967295)},lr(Pn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=Mn[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(Mn.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof Pn,u=a[0],l=s||La(e),c=function(t){var e=i.apply(Mn,pe([t],a));return r&&h?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var h=this.__chain__,f=!!this.__actions__.length,d=o&&!h,p=s&&!f;if(!o&&l){e=p?e:new Pn(this);var g=t.apply(e,a);return g.__actions__.push({func:ra,args:[c],thisArg:void 0}),new kn(g,h)}return d&&p?t.apply(this,a):(g=this.thru(c),d?r?g.value()[0]:g.value():g)})})),se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=yt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Mn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(La(i)?i:[],t)}return this[n]((function(n){return e.apply(La(n)?n:[],t)}))}})),lr(Pn.prototype,(function(t,e){var n=Mn[e];if(n){var r=n.name+"";Ot.call(_n,r)||(_n[r]=[]),_n[r].push({name:e,func:n})}})),_n[Mi(void 0,2).name]=[{name:"wrapper",func:void 0}],Pn.prototype.clone=function(){var t=new Pn(this.__wrapped__);return t.__actions__=yi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=yi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=yi(this.__views__),t},Pn.prototype.reverse=function(){if(this.__filtered__){var t=new Pn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Pn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=La(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=un(e,t+a);break;case"takeRight":t=sn(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,h=c.length,f=0,d=un(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return ri(t,this.__actions__);var p=[];t:for(;u--&&f<d;){for(var g=-1,v=t[l+=e];++g<h;){var m=c[g],y=m.iteratee,b=m.type,_=y(v);if(2==b)v=_;else if(!_){if(1==b)continue t;break t}}p[f++]=v}return p},Mn.prototype.at=ia,Mn.prototype.chain=function(){return na(this)},Mn.prototype.commit=function(){return new kn(this.value(),this.__chain__)},Mn.prototype.next=function(){void 0===this.__values__&&(this.__values__=ns(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Mn.prototype.plant=function(t){for(var e,n=this;n instanceof jn;){var r=Mo(n);r.__index__=0,r.__values__=void 0,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},Mn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Pn){var e=t;return this.__actions__.length&&(e=new Pn(this)),(e=e.reverse()).__actions__.push({func:ra,args:[Ho],thisArg:void 0}),new kn(e,this.__chain__)}return this.thru(Ho)},Mn.prototype.toJSON=Mn.prototype.valueOf=Mn.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},Mn.prototype.first=Mn.prototype.head,Kt&&(Mn.prototype[Kt]=function(){return this}),Mn}();Xt._=Ze,void 0===(i=function(){return Ze}.call(e,n,e,r))||(r.exports=i)}).call(this)}).call(this,n(309),n(631)(t))},function(t,e,n){"use strict";n.r(e),n.d(e,"isValueNice",(function(){return i})),n.d(e,"isIntervalOrLogScale",(function(){return o})),n.d(e,"intervalScaleNiceTicks",(function(){return a})),n.d(e,"increaseInterval",(function(){return s})),n.d(e,"getIntervalPrecision",(function(){return u})),n.d(e,"fixExtent",(function(){return c})),n.d(e,"contain",(function(){return h})),n.d(e,"normalize",(function(){return f})),n.d(e,"scale",(function(){return d}));var r=n(6);function i(t){var e=Math.pow(10,Object(r.quantityExponent)(Math.abs(t))),n=Math.abs(t/e);return 0===n||1===n||2===n||3===n||5===n}function o(t){return"interval"===t.type||"log"===t.type}function a(t,e,n,i){var o={},a=t[1]-t[0],s=o.interval=Object(r.nice)(a/e,!0);null!=n&&s<n&&(s=o.interval=n),null!=i&&s>i&&(s=o.interval=i);var l=o.intervalPrecision=u(s);return c(o.niceTickExtent=[Object(r.round)(Math.ceil(t[0]/s)*s,l),Object(r.round)(Math.floor(t[1]/s)*s,l)],t),o}function s(t){var e=Math.pow(10,Object(r.quantityExponent)(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Object(r.round)(n*e)}function u(t){return Object(r.getPrecision)(t)+2}function l(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function c(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),l(t,0,e),l(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function h(t,e){return t>=e[0]&&t<=e[1]}function f(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function d(t,e){return t*(e[1]-e[0])+e[0]}},function(t,e,n){"use strict";n.r(e),n.d(e,"getLineAxisRelativeRegion",(function(){return s})),n.d(e,"getCircleAxisRelativeRegion",(function(){return u})),n.d(e,"getAxisRegion",(function(){return l})),n.d(e,"getAxisFactor",(function(){return c})),n.d(e,"isVertical",(function(){return h})),n.d(e,"getAxisFactorByRegion",(function(){return f})),n.d(e,"getAxisThemeCfg",(function(){return d})),n.d(e,"getAxisTitleOptions",(function(){return p})),n.d(e,"getCircleAxisCenterRadius",(function(){return g})),n.d(e,"getAxisOption",(function(){return v})),n.d(e,"getAxisDirection",(function(){return m})),n.d(e,"getAxisTitleText",(function(){return y}));var r=n(1),i=n(7),o=n(171),a=n(25);function s(t){var e,n;switch(t){case i.DIRECTION.TOP:e={x:0,y:1},n={x:1,y:1};break;case i.DIRECTION.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case i.DIRECTION.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case i.DIRECTION.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}function u(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}function l(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=s(e):t.isPolar&&(n=u(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}}function c(t,e){return t.isRect?t.isTransposed?[i.DIRECTION.RIGHT,i.DIRECTION.BOTTOM].includes(e)?1:-1:[i.DIRECTION.BOTTOM,i.DIRECTION.RIGHT].includes(e)?-1:1:t.isPolar&&t.x.start<0?-1:1}function h(t){var e=t.start,n=t.end;return e.x===n.x}function f(t,e){var n=t.start,r=t.end;return h(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1}function d(t,e){var n=Object(r.get)(t,["components","axis"],{});return Object(r.deepMix)({},Object(r.get)(n,["common"],{}),Object(r.deepMix)({},Object(r.get)(n,[e],{})))}function p(t,e,n){var i=Object(r.get)(t,["components","axis"],{});return Object(r.deepMix)({},Object(r.get)(i,["common","title"],{}),Object(r.deepMix)({},Object(r.get)(i,[e,"title"],{})),n)}function g(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,o=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),s=[o.x-r.x,o.y-r.y],u=[1,0],l=o.y>r.y?a.vec2.angle(s,u):-1*a.vec2.angle(s,u),c=l+(e.end-e.start);return{center:r,radius:Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),startAngle:l,endAngle:c}}function v(t,e){return Object(r.isBoolean)(t)?!1!==t&&{}:Object(r.get)(t,[e])}function m(t,e){return Object(r.get)(t,"position",e)}function y(t,e){return Object(r.get)(e,["title","text"],Object(o.getName)(t))}},function(t,e,n){"use strict";n.r(e);var r=n(145);e.default=function(t){return Object(r.default)(t,"Function")}},function(t,e,n){"use strict";n.r(e),n.d(e,"BBox",(function(){return a})),n.d(e,"getRegionBBox",(function(){return s})),n.d(e,"toPoints",(function(){return u}));var r=n(2),i=n(1),o=n(7),a=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=t,this.y=e,this.height=r,this.width=n}return t.fromRange=function(e,n,r,i){return new t(e,n,r-e,i-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(i.each)(t,(function(t){n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.width=Math.max(t.maxX,n.maxX)-n.x,n.height=Math.max(t.maxY,n.maxY)-n.y})),n},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(i.each)(t,(function(t){n.x=Math.max(t.x,n.x),n.y=Math.max(t.y,n.y),n.width=Math.min(t.maxX,n.maxX)-n.x,n.height=Math.min(t.maxY,n.maxY)-n.y})),n},t.prototype.cut=function(e,n){var r=e.width,i=e.height;switch(n){case o.DIRECTION.TOP:case o.DIRECTION.TOP_LEFT:case o.DIRECTION.TOP_RIGHT:return t.fromRange(this.minX,this.minY+i,this.maxX,this.maxY);case o.DIRECTION.RIGHT:case o.DIRECTION.RIGHT_TOP:case o.DIRECTION.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-r,this.maxY);case o.DIRECTION.BOTTOM:case o.DIRECTION.BOTTOM_LEFT:case o.DIRECTION.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-i);case o.DIRECTION.LEFT:case o.DIRECTION.LEFT_TOP:case o.DIRECTION.LEFT_BOTTOM:return t.fromRange(this.minX+r,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=Object(r.__read)(e,4),i=n[0],o=n[1],a=n[2],s=n[3];return new t(this.x+s,this.y+i,this.width-s-o,this.height-i-a)},t.prototype.expand=function(e){var n=Object(r.__read)(e,4),i=n[0],o=n[1],a=n[2],s=n[3];return new t(this.x-s,this.y-i,this.width+s+o,this.height+i+a)},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.collide=function(t){return this.minX<t.maxX&&this.maxX>t.minX&&this.minY<t.maxY&&this.maxY>t.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}(),s=function(t,e){var n=e.start,r=e.end;return new a(t.x+t.width*n.x,t.y+t.height*n.y,t.width*Math.abs(r.x-n.x),t.height*Math.abs(r.y-n.y))};function u(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}},function(t,e,n){"use strict";n.r(e),n.d(e,"parseClassType",(function(){return a})),n.d(e,"isExtendedClass",(function(){return s})),n.d(e,"enableClassExtend",(function(){return u})),n.d(e,"mountExtend",(function(){return l})),n.d(e,"enableClassCheck",(function(){return h})),n.d(e,"enableClassManagement",(function(){return p}));var r=n(5),i=n(0),o="___EC__COMPONENT__CONTAINER___";function a(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function s(t){return!(!t||!t.___EC__EXTENDED_CLASS___)}function u(t,e){t.$constructor=t,t.extend=function(t){var e,n,o=this;return n=o,i.isFunction(n)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(o):(e=function(){(t.$constructor||o).apply(this,arguments)},i.inherits(e,this)),i.extend(e.prototype,t),e.___EC__EXTENDED_CLASS___=!0,e.extend=this.extend,e.superCall=f,e.superApply=d,e.superClass=o,e}}function l(t,e){t.extend=e.extend}var c=Math.round(10*Math.random());function h(t){var e=["__\0is_clz",c++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function f(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function d(t,e,n){return this.superClass.prototype[e].apply(t,n)}function p(t){var e={};t.registerClass=function(t){var n,r=t.type||t.prototype.type;if(r){n=r,i.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),t.prototype.type=r;var s=a(r);if(s.sub){if(s.sub!==o){(function(t){var n=e[t.main];n&&n[o]||((n=e[t.main]={})[o]=!0);return n}(s))[s.sub]=t}}else e[s.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[o]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var n=a(t),r=[],s=e[n.main];return s&&s[o]?i.each(s,(function(t,e){e!==o&&r.push(t)})):r.push(s),r},t.hasClass=function(t){var n=a(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return i.each(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=a(t),r=e[n.main];return r&&r[o]}}},function(t,e,n){"use strict";n.r(e),n.d(e,"getMatrixByAngle",(function(){return o})),n.d(e,"getMatrixByTranslate",(function(){return a})),n.d(e,"getAngleByMatrix",(function(){return s})),n.d(e,"applyMatrix2BBox",(function(){return l})),n.d(e,"applyRotate",(function(){return c})),n.d(e,"applyTranslate",(function(){return h}));var r=n(25),i=[1,0,0,0,1,0,0,0,1];function o(t,e,n){return void 0===n&&(n=i),e?r.ext.transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function a(t,e){return t.x||t.y?r.ext.transform(e||i,[["t",t.x,t.y]]):null}function s(t){var e=[0,0,0];return r.vec3.transformMat3(e,[1,0,0],t),Math.atan2(e[1],e[0])}function u(t,e){var n=[0,0];return r.vec2.transformMat3(n,e,t),n}function l(t,e){var n=u(t,[e.minX,e.minY]),r=u(t,[e.maxX,e.minY]),i=u(t,[e.minX,e.maxY]),o=u(t,[e.maxX,e.maxY]),a=Math.min(n[0],r[0],i[0],o[0]),s=Math.max(n[0],r[0],i[0],o[0]),l=Math.min(n[1],r[1],i[1],o[1]),c=Math.max(n[1],r[1],i[1],o[1]);return{x:a,y:l,minX:a,minY:l,maxX:s,maxY:c,width:s-a,height:c-l}}function c(t,e,n,r){if(e){var i=o({x:n,y:r},e,t.getMatrix());t.setMatrix(i)}}function h(t,e,n){var r=a({x:e,y:n});t.attr("matrix",r)}},function(t,e,n){"use strict";n.r(e),n.d(e,"TRANSFORMABLE_PROPS",(function(){return f})),n.d(e,"copyTransform",(function(){return d}));var r=n(42),i=n(18),o=r.identity;function a(t){return t>5e-5||t<-5e-5}var s=[],u=[],l=r.create(),c=Math.abs,h=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return a(this.rotation)||a(this.x)||a(this.y)||a(this.scaleX-1)||a(this.scaleY-1)||a(this.skewX)||a(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||r.create(),e?this.getLocalTransform(n):o(n),t&&(e?r.mul(n,t,n):r.copy(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&o(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(s);var n=s[0]<0?-1:1,i=s[1]<0?-1:1,o=((s[0]-n)*e+n)/s[0]||0,a=((s[1]-i)*e+i)/s[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(r.mul(u,t.invTransform,e),e=u);var n=this.originX,i=this.originY;(n||i)&&(l[4]=n,l[5]=i,r.mul(u,e,l),u[4]-=n,u[5]-=i,e=u),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&i.applyTransform(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&i.applyTransform(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){d(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,c=t.x,h=t.y,f=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var p=n+s,g=i+u;e[4]=-p*o-f*g*a,e[5]=-g*a-d*p*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=d*o,e[2]=f*a,l&&r.rotate(e,e,l),e[4]+=n+c,e[5]+=i+h,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),f=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function d(t,e){for(var n=0;n<f.length;n++){var r=f[n];t[r]=e[r]}}e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(1829),i=n(1830),o=n(783),a=n(1831);function s(t){return Object(r.default)(t)||Object(i.default)(t)||Object(o.default)(t)||Object(a.default)()}},function(t,e,n){"use strict";n.r(e),n.d(e,"isMiniAli",(function(){return A})),n.d(e,"isWeChatMiniProgram",(function(){return M})),n.d(e,"isMini",(function(){return I})),n.d(e,"miniWindow",(function(){return j})),n.d(e,"$window",(function(){return k})),n.d(e,"$XMLHttpRequest",(function(){return P})),n.d(e,"$location",(function(){return L}));var r=n(597),i=n(1773),o=n(598),a=n(278),s=n(775),u=n(324),l=n(505),c=n(1774),h=n(367),f=n(778),d=n(777),p=n(779),g=n(1775),v=n(780),m=n(1776),y=n(776),b=n(1777),_=n(932),x=n(443),w=n(1778),O=n(1779),S=n(1780),C=n(933),E=n(233),T=n(1221);n.d(e,"dispatchTouchStart",(function(){return T.dispatchTouchStart})),n.d(e,"dispatchTouchMove",(function(){return T.dispatchTouchMove})),n.d(e,"dispatchTouchEnd",(function(){return T.dispatchTouchEnd})),n.d(e,"dispatchMapCameraParams",(function(){return T.dispatchMapCameraParams})),n.d(e,"dispatchPointerDown",(function(){return T.dispatchPointerDown})),n.d(e,"dispatchPointerMove",(function(){return T.dispatchPointerMove})),n.d(e,"dispatchPointerUp",(function(){return T.dispatchPointerUp})),n.d(e,"dispatchMouseDown",(function(){return T.dispatchMouseDown})),n.d(e,"dispatchMouseMove",(function(){return T.dispatchMouseMove})),n.d(e,"dispatchMouseUp",(function(){return T.dispatchMouseUp}));var A="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM,M="undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram),I=A||M,j={atob:r.atob,btoa:r.btoa,devicePixelRatio:o.default,Blob:i.Blob,document:a.$document,Element:s.Element,Event:u.Event,EventTarget:l.default,HTMLCanvasElement:c.HTMLCanvasElement,HTMLElement:h.HTMLElement,HTMLMediaElement:f.HTMLMediaElement,HTMLVideoElement:d.HTMLVideoElement,Image:p.Image,ImageData:g.ImageData,navigator:m.navigator,Node:y.Node,requestAnimationFrame:_.requestAnimationFrame,cancelAnimationFrame:_.cancelAnimationFrame,screen:x.screen,XMLHttpRequest:C.$XMLHttpRequest,performance:b.performance,URL:w.URL,WebGLRenderingContext:O.WebGLRenderingContext,WebGL2RenderingContext:S.WebGL2RenderingContext,addEventListener:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a.$document.addEventListener(t,e,n)},removeEventListener:function(t,e,n){a.$document.removeEventListener(t,e)},dispatchEvent:function(t){a.$document.dispatchEvent(t)},innerWidth:x.screen.availWidth,innerHeight:x.screen.availHeight,setTimeout:setTimeout,clearTimeout:clearTimeout,setInterval:setInterval,clearInterval:clearInterval},k=I?j:E.globalWindow,P=I?C.$XMLHttpRequest:E.globalWindow.XMLHttpRequest,L=I?v.$location:E.globalWindow.location},function(t,e,n){"use strict";n.r(e),n.d(e,"calBase",(function(){return i})),n.d(e,"log",(function(){return o})),n.d(e,"getLogPositiveMin",(function(){return a})),n.d(e,"precisionAdd",(function(){return u}));var r=n(1);function i(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function o(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function a(t,e,n){Object(r.isNil)(n)&&(n=Math.max.apply(null,t));var i=n;return Object(r.each)(t,(function(t){t>0&&t<i&&(i=t)})),i===n&&(i=n/e),i>1&&(i=1),i}function s(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}function u(t,e){var n=s(t),r=s(e),i=Math.pow(10,Math.max(n,r));return(t*i+e*i)/i}},function(t,e,n){"use strict";n.r(e),n.d(e,"Y_FIELD",(function(){return r})),n.d(e,"DIFF_FIELD",(function(){return i})),n.d(e,"ABSOLUTE_FIELD",(function(){return o})),n.d(e,"IS_TOTAL",(function(){return a})),n.d(e,"DEFAULT_OPTIONS",(function(){return s}));var r="$$yField$$",i="$$diffField$$",o="$$absoluteField$$",a="$$isTotal$$",s={label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"lngLatInExtent",(function(){return u})),n.d(e,"extent",(function(){return l})),n.d(e,"tranfrormCoord",(function(){return c})),n.d(e,"lngLatToMeters",(function(){return h})),n.d(e,"metersToLngLat",(function(){return f})),n.d(e,"longitude",(function(){return d})),n.d(e,"latitude",(function(){return p})),n.d(e,"validateLngLat",(function(){return g})),n.d(e,"aProjectFlat",(function(){return v})),n.d(e,"unProjectFlat",(function(){return m})),n.d(e,"amap2Project",(function(){return y})),n.d(e,"amap2UnProject",(function(){return b})),n.d(e,"lnglatDistance",(function(){return _})),n.d(e,"project",(function(){return x})),n.d(e,"padBounds",(function(){return w})),n.d(e,"boundsContains",(function(){return O})),n.d(e,"bBoxToBounds",(function(){return S})),n.d(e,"normalize",(function(){return C})),n.d(e,"calDistance",(function(){return E})),n.d(e,"calAngle",(function(){return A})),n.d(e,"getAngle",(function(){return M})),n.d(e,"flow",(function(){return I})),n.d(e,"calculateCentroid",(function(){return j})),n.d(e,"calculatePointsCenterAndRadius",(function(){return k})),n.d(e,"getBBoxFromPoints",(function(){return P}));var r=n(74),i=n(87),o=n(814),a=n(1844),s=2*Math.PI*6378137/2;function u(t,e){var n=Object(r.default)(e,4),i=n[0],o=n[1],a=n[2],s=n[3];return t.lng>i&&t.lng<=a&&t.lat>o&&t.lat<=s}function l(t){var e=[1/0,1/0,-1/0,-1/0];return t.forEach((function(t){var n=t.coordinates;!function t(e,n){Array.isArray(n[0])?n.forEach((function(n){t(e,n)})):(e[0]>n[0]&&(e[0]=n[0]),e[1]>n[1]&&(e[1]=n[1]),e[2]<n[0]&&(e[2]=n[0]),e[3]<n[1]&&(e[3]=n[1]));return e}(e,n)})),e}function c(t,e){return function t(e,n){if(Array.isArray(e[0]))return e.map((function(e){return t(e,n)}));return n(e)}(t,e)}function h(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{enable:!0,decimal:1},r=(t=g(t,e))[0],i=t[1],o=r*s/180,a=Math.log(Math.tan((90+i)*Math.PI/360))/(Math.PI/180);return a=a*s/180,n.enable&&(o=Number(o.toFixed(n.decimal)),a=Number(a.toFixed(n.decimal))),3===t.length?[o,a,t[2]]:[o,a]}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=t[0],r=t[1],i=n/s*180,o=r/s*180;return o=180/Math.PI*(2*Math.atan(Math.exp(o*Math.PI/180))-Math.PI/2),null!=e&&(i=Number(i.toFixed(e)),o=Number(o.toFixed(e))),3===t.length?[i,o,t[2]]:[i,o]}function d(t){if(null==t)throw new Error("lng is required");return(t>180||t<-180)&&((t%=360)>180&&(t=-360+t),t<-180&&(t=360+t),0===t&&(t=0)),t}function p(t){if(null==t)throw new Error("lat is required");return(t>90||t<-90)&&((t%=180)>90&&(t=-180+t),t<-90&&(t=180+t),0===t&&(t=0)),t}function g(t,e){if(!1===e)return t;var n=d(t[0]),r=p(t[1]);return r>85&&(r=85),r<-85&&(r=-85),3===t.length?[n,r,t[2]]:[n,r]}function v(t){var e=Math.max(Math.min(85.0511287798,t[1]),-85.0511287798),n=Math.PI/180,r=t[0]*n,i=e*n;i=Math.log(Math.tan(Math.PI/4+i/2));return r=(256<<20)*(.5/Math.PI*r+.5),i=(256<<20)*(-.5/Math.PI*i+(n=.5)),[Math.floor(r),Math.floor(i)]}function m(t){var e=.5/Math.PI,n=-.5/Math.PI,i=.5,o=Object(r.default)(t,2),a=o[0],s=o[1];return a=(a/(256<<20)-.5)/e,s=(s/(256<<20)-i)/n,s=2*(Math.atan(Math.pow(Math.E,s))-Math.PI/4),[a/(i=Math.PI/180),s/i]}function y(t,e){var n=85.0511287798,r=Math.PI/180;return e=Math.max(Math.min(n,e),-n),e*=r,[6378137*(t*=r),6378137*(e=Math.log(Math.tan(Math.PI/4+e/2)))]}function b(t,e){var n=Math.PI/180;return[t/6378137/n,2*(Math.atan(Math.exp(e/6378137))-Math.PI/4)/n]}function _(t,e,n){var r=Object(i.degreesToRadians)(e[1]-t[1]),o=Object(i.degreesToRadians)(e[0]-t[0]),a=Object(i.degreesToRadians)(t[1]),s=Object(i.degreesToRadians)(e[1]),u=Math.pow(Math.sin(r/2),2)+Math.pow(Math.sin(o/2),2)*Math.cos(a)*Math.cos(s);return Object(i.radiansToLength)(2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u)),"meters")}function x(t){var e=Math.PI/180,n=85.0511287798,r=Math.max(Math.min(n,t[1]),-n),i=Math.sin(r*e);return[6378137*t[0]*e,6378137*Math.log((1+i)/(1-i))/2]}function w(t,e){var n=Math.abs(t[1][1]-t[0][1])*e,r=Math.abs(t[1][0]-t[0][0])*e;return[[t[0][0]-r,t[0][1]-n],[t[1][0]+r,t[1][1]+n]]}function O(t,e){return t[0][0]<=e[0][0]&&t[0][1]<=e[0][1]&&t[1][0]>=e[1][0]&&t[1][1]>=e[1][1]}function S(t){return[[t[0],t[1]],[t[2],t[3]]]}function C(t){var e=E(t,[0,0]);return[t[0]/e,t[1]/e]}function E(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function T(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function A(t,e){return 180*Math.acos(function(t,e){return t[0]*e[0]+t[1]*e[1]}(t,e)/(T(t)*T(e)))/Math.PI}function M(t,e){return e[0]>0?e[1]>0?90-180*Math.atan(e[1]/e[0])/Math.PI:90+180*Math.atan(-e[1]/e[0])/Math.PI:e[1]<0?90-180*Math.atan(e[1]/e[0])/Math.PI+180:270+180*Math.atan(e[1]/-e[0])/Math.PI}function I(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;if(t&&!(t.length<2)){for(var n=0,r=[],i=0;i<t.length-1;i++){var o=t[i],a=t[i+1],s=E(o,a);n+=s;var u=[o[0]-a[0],o[1]-a[1]],l=M(0,u);if(i>0){var c=r[i-1].rotation;c-l>360-c+l&&(l+=360)}r.push({start:o,end:a,dis:s,rotation:l,duration:0})}return r.map((function(t){t.duration=e*(t.dis/n)})),r}}function j(t){if(Object(o.isNumber)(t[0]))return t;if(Object(o.isNumber)(t[0][0]))throw new Error("当前数据不支持标注");if(Object(o.isNumber)(t[0][0][0])){var e=0,n=0,r=0;return t.forEach((function(t){t.forEach((function(t){e+=t[0],n+=t[1],r++}))})),[e/r,n/r,0]}throw new Error("当前数据不支持标注")}function k(t){for(var e=t[0],n=t[1],r=t[0],i=t[1],o=0,a=0,s=0,u=0;u<t.length;u+=2){var l=t[u],c=t[u+1];l&&c&&(e=Math.max(l,e),n=Math.max(c,n),r=Math.min(l,r),i=Math.min(c,i),o+=l,a+=c,s++)}return{center:[o/s,a/s],radius:Math.sqrt(Math.pow(e-r,2)+Math.pow(n-i,2))/2}}function P(t){return Object(a.default)(Object(i.featureCollection)([Object(i.lineString)(t)]))}},function(t,e,n){"use strict";n.r(e),n.d(e,"isMiniAli",(function(){return A})),n.d(e,"isWeChatMiniProgram",(function(){return M})),n.d(e,"isMini",(function(){return I})),n.d(e,"miniWindow",(function(){return j})),n.d(e,"$window",(function(){return k})),n.d(e,"$XMLHttpRequest",(function(){return P})),n.d(e,"$location",(function(){return L}));var r=n(601),i=n(1832),o=n(602),a=n(279),s=n(784),u=n(327),l=n(508),c=n(1833),h=n(368),f=n(787),d=n(786),p=n(788),g=n(1834),v=n(789),m=n(1835),y=n(785),b=n(1836),_=n(941),x=n(444),w=n(1837),O=n(1838),S=n(1839),C=n(942),E=n(234),T=n(1281);n.d(e,"dispatchTouchStart",(function(){return T.dispatchTouchStart})),n.d(e,"dispatchTouchMove",(function(){return T.dispatchTouchMove})),n.d(e,"dispatchTouchEnd",(function(){return T.dispatchTouchEnd})),n.d(e,"dispatchMapCameraParams",(function(){return T.dispatchMapCameraParams})),n.d(e,"dispatchPointerDown",(function(){return T.dispatchPointerDown})),n.d(e,"dispatchPointerMove",(function(){return T.dispatchPointerMove})),n.d(e,"dispatchPointerUp",(function(){return T.dispatchPointerUp})),n.d(e,"dispatchMouseDown",(function(){return T.dispatchMouseDown})),n.d(e,"dispatchMouseMove",(function(){return T.dispatchMouseMove})),n.d(e,"dispatchMouseUp",(function(){return T.dispatchMouseUp}));var A="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM,M="undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram),I=A||M,j={atob:r.atob,btoa:r.btoa,devicePixelRatio:o.default,Blob:i.Blob,document:a.$document,Element:s.Element,Event:u.Event,EventTarget:l.default,HTMLCanvasElement:c.HTMLCanvasElement,HTMLElement:h.HTMLElement,HTMLMediaElement:f.HTMLMediaElement,HTMLVideoElement:d.HTMLVideoElement,Image:p.Image,ImageData:g.ImageData,navigator:m.navigator,Node:y.Node,requestAnimationFrame:_.requestAnimationFrame,cancelAnimationFrame:_.cancelAnimationFrame,screen:x.screen,XMLHttpRequest:C.$XMLHttpRequest,performance:b.performance,URL:w.URL,WebGLRenderingContext:O.WebGLRenderingContext,WebGL2RenderingContext:S.WebGL2RenderingContext,addEventListener:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a.$document.addEventListener(t,e,n)},removeEventListener:function(t,e,n){a.$document.removeEventListener(t,e)},dispatchEvent:function(t){a.$document.dispatchEvent(t)},innerWidth:x.screen.availWidth,innerHeight:x.screen.availHeight,setTimeout:setTimeout,clearTimeout:clearTimeout,setInterval:setInterval,clearInterval:clearInterval},k=I?j:E.globalWindow,P=I?C.$XMLHttpRequest:E.globalWindow.XMLHttpRequest,L=I?v.$location:E.globalWindow.location},function(t,e,n){"use strict";n.r(e),n.d(e,"CONTAINER_CLASS",(function(){return r})),n.d(e,"TITLE_CLASS",(function(){return i})),n.d(e,"LIST_CLASS",(function(){return o})),n.d(e,"LIST_ITEM_CLASS",(function(){return a})),n.d(e,"MARKER_CLASS",(function(){return s})),n.d(e,"VALUE_CLASS",(function(){return u})),n.d(e,"NAME_CLASS",(function(){return l})),n.d(e,"CROSSHAIR_X",(function(){return c})),n.d(e,"CROSSHAIR_Y",(function(){return h}));var r="g2-tooltip",i="g2-tooltip-title",o="g2-tooltip-list",a="g2-tooltip-list-item",s="g2-tooltip-marker",u="g2-tooltip-value",l="g2-tooltip-name",c="g2-tooltip-crosshair-x",h="g2-tooltip-crosshair-y"},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(88),o=n(201),a=n(120),s=n(432),u=n(65),l=n(380),c=n(470),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,e)}},e.prototype.getShapeBase=function(){return l},e.prototype.getGroupBase=function(){return c.default},e.prototype.onCanvasChange=function(t){Object(s.refreshElement)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=Object(i.getBBoxMethod)(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,o=e.y,a=e.width,s=e.height,u=this.getHitLineWidth(),l=u/2,c=r-l,h=o-l;return{x:c,y:h,minX:c,minY:h,maxX:r+a+l,maxY:o+s+l,width:a+u,height:s+u}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||Object(a.createDom)(this),Object(o.setClip)(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),r=n.fill,i=n.fillStyle,o=n.stroke,a=n.strokeStyle,s=n.fillOpacity,l=n.strokeOpacity,c=n.lineWidth,h=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",r):"fillStyle"in n&&this._setColor(t,"fill",i):this._setColor(t,"fill",r||i),s&&h.setAttribute(u.SVG_ATTR_MAP.fillOpacity,s)),this.canStroke&&c>0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),l&&h.setAttribute(u.SVG_ATTR_MAP.strokeOpacity,l),c&&h.setAttribute(u.SVG_ATTR_MAP.lineWidth,c))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(u.SVG_ATTR_MAP[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(u.SVG_ATTR_MAP[e],"url(#"+i+")")}else r.setAttribute(u.SVG_ATTR_MAP[e],n);else r.setAttribute(u.SVG_ATTR_MAP[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,a=r.shadowOffsetY,s=r.shadowBlur,u=r.shadowColor;(i||a||s||u)&&Object(o.setShadow)(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&Object(o.setTransform)(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,o=e+r.top,a=document.elementFromPoint(i,o);return!(!a||!a.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(i.AbstractShape);e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"getTooltipMapping",(function(){return i}));var r=n(1);function i(t,e){if(!1===t)return{fields:!1};var n=Object(r.get)(t,"fields"),i=Object(r.get)(t,"formatter");return i&&!n&&(n=e),{fields:n,formatter:i}}},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return W})),n.d(e,"dependencies",(function(){return Y})),n.d(e,"PRIORITY",(function(){return X})),n.d(e,"init",(function(){return Rt})),n.d(e,"connect",(function(){return Dt})),n.d(e,"disConnect",(function(){return Nt})),n.d(e,"disconnect",(function(){return Bt})),n.d(e,"dispose",(function(){return Ft})),n.d(e,"getInstanceByDom",(function(){return zt})),n.d(e,"getInstanceById",(function(){return Vt})),n.d(e,"registerTheme",(function(){return Ut})),n.d(e,"registerPreprocessor",(function(){return Gt})),n.d(e,"registerProcessor",(function(){return Ht})),n.d(e,"registerPostInit",(function(){return Wt})),n.d(e,"registerPostUpdate",(function(){return Yt})),n.d(e,"registerUpdateLifecycle",(function(){return Xt})),n.d(e,"registerAction",(function(){return $t})),n.d(e,"registerCoordinateSystem",(function(){return qt})),n.d(e,"getCoordinateSystemDimensions",(function(){return Zt})),n.d(e,"registerLayout",(function(){return Kt})),n.d(e,"registerVisual",(function(){return Qt})),n.d(e,"registerLoading",(function(){return ee})),n.d(e,"setCanvasCreator",(function(){return ne})),n.d(e,"registerMap",(function(){return re})),n.d(e,"getMap",(function(){return ie})),n.d(e,"registerTransform",(function(){return oe})),n.d(e,"dataTool",(function(){return ae}));var r=n(5),i=n(420),o=n(0),a=n(54),s=n(511),u=n(142),l=n(698),c=n(700),h=n(295),f=n(1347),d=n(880),p=n(1352),g=n(59),v=n(70),m=n(58),y=n(79),b=n(114),_=n(23),x=n(36),w=n(31),O=n(11),S=n(9),C=n(143),E=n(795),T=n(1353),A=n(882),M=n(1354),I=n(1355),j=n(127),k=n(1331),P=n(884),L=n(198),R=n(38),D=n(474),N=n(703),B=n(267),F=n(299),z=n(1350),V=n(286),U=n(107),G=n(571);n.d(e,"registerLocale",(function(){return B.registerLocale}));var H="undefined"!=typeof window,W="5.4.0",Y={zrender:"5.4.0"},X={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},$="__pendingUpdate",q=/^[a-zA-Z0-9_]+$/;function Z(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return Q(this,t,e);wt(this.id)}}function K(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Q(this,t,e)}}function Q(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),u.default.prototype[e].apply(t,n)}var J,tt,et,nt,rt,it,ot,at,st,ut,lt,ct,ht,ft,dt,pt,gt,vt,mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(u.default),yt=mt.prototype;yt.on=K("on"),yt.off=K("off");var bt=function(t){function e(e,n,r){var a=t.call(this,new k.ECEventProcessor)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],r=r||{},Object(o.isString)(n)&&(n=At[n]),a._dom=e;var u=a._zr=i.init(e,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Object(o.retrieve2)(r.useDirtyRect,!1),useCoarsePointer:Object(o.retrieve2)(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});a._ssr=r.ssr,a._throttledZrFlush=Object(C.throttle)(Object(o.bind)(u.flush,u),17),(n=Object(o.clone)(n))&&Object(d.default)(n,!0),a._theme=n,a._locale=Object(B.createLocaleObject)(r.locale||B.SYSTEM_LANG),a._coordSysMgr=new h.default;var l=a._api=dt(a);function c(t,e){return t.__prio-e.__prio}return Object(s.default)(Tt,c),Object(s.default)(Ct,c),a._scheduler=new A.default(a,l,Ct,Tt),a._messageCenter=new mt,a._initEvents(),a.resize=Object(o.bind)(a.resize,a),u.animation.on("frame",a._onframe,a),ut(u,a),lt(u,a),Object(o.setAsPrimitive)(a),a}return Object(r.__extends)(e,t),e.prototype._onframe=function(){if(!this._disposed){vt(this);var t=this._scheduler;if(this[$]){var e=this[$].silent;this.__flagInMainProcess=!0;try{J(this),nt.update.call(this,null,this[$].updateParams)}catch(t){throw this.__flagInMainProcess=!1,this[$]=null,t}this._zr.flush(),this.__flagInMainProcess=!1,this[$]=null,at.call(this,e),st.call(this,e)}else if(t.unfinished){var n=1,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),it(this,r),t.performVisualTasks(r),ft(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this.__flagInMainProcess)if(this._disposed)wt(this.id);else{var r,i,a;if(Object(o.isObject)(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,a=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var s=new f.default(this._api),u=this._theme,c=this._model=new l.default;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,s)}this._model.setOption(t,{replaceMerge:i},Et);var h={seriesTransition:a,optionChanged:!0};if(n)this[$]={silent:r,updateParams:h},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{J(this),nt.update.call(this,null,h)}catch(t){throw this[$]=null,this.__flagInMainProcess=!1,t}this._ssr||this._zr.flush(),this[$]=null,this.__flagInMainProcess=!1,at.call(this,r),st.call(this,r)}}},e.prototype.setTheme=function(){Object(R.deprecateLog)("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||H&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(a.default.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(o.each)(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,r=[],i=this;Object(o.each)(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(o.each)(r,(function(t){t.group.ignore=!1})),a}wt(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,a=Math.max;if(jt[n]){var s=1/0,u=1/0,l=-1/0,c=-1/0,h=[],f=t&&t.pixelRatio||this.getDevicePixelRatio();Object(o.each)(It,(function(i,f){if(i.group===n){var d=e?i.getZr().painter.getSvgDom().innerHTML:i.renderToCanvas(Object(o.clone)(t)),p=i.getDom().getBoundingClientRect();s=r(p.left,s),u=r(p.top,u),l=a(p.right,l),c=a(p.bottom,c),h.push({dom:d,left:p.left,top:p.top})}}));var d=(l*=f)-(s*=f),p=(c*=f)-(u*=f),g=U.platformApi.createCanvas(),v=i.init(g,{renderer:e?"svg":"canvas"});if(v.resize({width:d,height:p}),e){var m="";return Object(o.each)(h,(function(t){var e=t.left-s,n=t.top-u;m+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),v.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new y.default({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),Object(o.each)(h,(function(t){var e=new b.default({style:{x:t.left*f-s,y:t.top*f-u,image:t.dom}});v.add(e)})),v.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}wt(this.id)},e.prototype.convertToPixel=function(t,e){return rt(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return rt(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=S.parseFinder(r,t);return Object(o.each)(i,(function(t,r){r.indexOf("Models")>=0&&Object(o.each)(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}wt(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,r=S.parseFinder(n,t,{defaultMainType:"series"});var i=r.seriesModel.getData(),o=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?i.indexOfRawIndex(r.dataIndex):null;return null!=o?Object(L.getItemVisualFromData)(i,o,e):Object(L.getVisualFromData)(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(o.each)(xt,(function(e){var n=function(n){var r,i=t.getModel(),a=n.target;if("globalout"===e?r={}:a&&Object(F.findEventDispatcher)(a,(function(t){var e=Object(w.getECData)(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return r=Object(o.extend)({},e.eventData),!0}),!0),r){var s=r.componentType,u=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",u=r.seriesIndex);var l=s&&null!=u&&i.getComponent(s,u),c=l&&t["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:a,packedEvent:r,model:l,view:c},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(o.each)(St,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(o.each)(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),Object(D.handleLegacySelectEvents)(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?wt(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)wt(this.id);else{this._disposed=!0,this.getDom()&&S.setAttribute(this.getDom(),Lt,"");var t=this._api,e=this._model;Object(o.each)(this._componentsViews,(function(n){n.dispose(e,t)})),Object(o.each)(this._chartsViews,(function(n){n.dispose(e,t)})),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete It[this.id]}},e.prototype.resize=function(t){if(!this.__flagInMainProcess)if(this._disposed)wt(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[$]&&(null==r&&(r=this[$].silent),n=!0,this[$]=null),this.__flagInMainProcess=!0;try{n&&J(this),nt.update.call(this,{type:"resize",animation:Object(o.extend)({duration:0},t&&t.animation)})}catch(t){throw this.__flagInMainProcess=!1,t}this.__flagInMainProcess=!1,at.call(this,r),st.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)wt(this.id);else if(Object(o.isObject)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Mt[t]){var n=Mt[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?wt(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(o.extend)({},t);return e.type=St[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)wt(this.id);else if(Object(o.isObject)(e)||(e={silent:!!e}),Ot[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var n=e.silent;ot.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&a.default.browser.weChat&&this._throttledZrFlush(),at.call(this,n),st.call(this,n)}},e.prototype.updateLabelLayout=function(){V.default.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)wt(this.id);else{var e=t.seriesIndex;0,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&e.push(i)}t.selected&&t.states.select&&e.push("select"),t.hoverState===O.HOVER_STATE_EMPHASIS&&t.states.emphasis?e.push("emphasis"):t.hoverState===O.HOVER_STATE_BLUR&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered((function(t){return function t(e,n,r,i){var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),u=0;u<s.length;u++)i=Math.max(t(s[u],n,r,i),i);else e.z=n,e.zlevel=r,i=Math.max(e.z2,i);o&&(o.z=n,o.zlevel=r,isFinite(i)&&(o.z2=i+2));if(a){var l=e.textGuideLineConfig;a.z=n,a.zlevel=r,isFinite(i)&&(a.z2=i+(l&&l.showAbove?1:-1))}return i}(t,n,r,-1/0),!0}))}}function i(t,e){e.eachRendered((function(t){if(!_.isElementRemoved(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function u(t,n){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(_.isElementRemoved(t))return;if(t instanceof x.default&&Object(O.savePathStates)(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}J=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),tt(t,!0),tt(t,!1),e.plan()},tt=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,u=0;u<i.length;u++)i[u].__alive=!1;function l(t){var u=t.__requireNewView;t.__requireNewView=!1;var l="_ec_"+t.id+"_"+t.type,c=!u&&o[l];if(!c){var h=Object(j.parseClassType)(t.type);0,(c=new(e?v.default.getClass(h.main,h.sub):m.default.getClass(h.sub))).init(n,s),o[l]=c,i.push(c),a.add(c.group)}t.__viewId=c.__id=l,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&l(e)})):n.eachSeries(l);for(u=0;u<i.length;){var c=i[u];c.__alive?u++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(u,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},et=function(t,e,n,r,i){var a=t._model;if(a.setUpdatePayload(n),r){var s={};s[r+"Id"]=n[r+"Id"],s[r+"Index"]=n[r+"Index"],s[r+"Name"]=n[r+"Name"];var u={mainType:r,query:s};i&&(u.subType=i);var l,c=n.excludeSeriesId;null!=c&&(l=Object(o.createHashMap)(),Object(o.each)(S.normalizeToArray(c),(function(t){var e=S.convertOptionIdName(t,null);null!=e&&l.set(e,!0)}))),a&&a.eachComponent(u,(function(e){if(!(l&&null!==l.get(e.id)))if(Object(O.isHighDownPayload)(n))if(e instanceof g.default)n.type!==O.HIGHLIGHT_ACTION_TYPE||n.notBlur||e.get(["emphasis","disabled"])||Object(O.blurSeriesFromHighlightPayload)(e,n,t._api);else{var r=Object(O.findComponentHighDownDispatchers)(e.mainType,e.componentIndex,n.name,t._api),i=r.focusSelf,a=r.dispatchers;n.type===O.HIGHLIGHT_ACTION_TYPE&&i&&!n.notBlur&&Object(O.blurComponent)(e.mainType,e.componentIndex,t._api),a&&Object(o.each)(a,(function(t){n.type===O.HIGHLIGHT_ACTION_TYPE?Object(O.enterEmphasis)(t):Object(O.leaveEmphasis)(t)}))}else Object(O.isSelectChangePayload)(n)&&e instanceof g.default&&(Object(O.toggleSelectionFromPayload)(e,n,t._api),Object(O.updateSeriesElementSelection)(e),gt(t))}),t),a&&a.eachComponent(u,(function(e){l&&null!==l.get(e.id)||h(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else Object(o.each)([].concat(t._componentsViews).concat(t._chartsViews),h);function h(r){r&&r.__alive&&r[e]&&r[e](r.__model,a,t._api,n)}},nt={prepareAndUpdate:function(t){J(this),nt.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,e),it(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e),ct(this,r,i,e,n);var u=r.get("backgroundColor")||"transparent",l=r.get("darkMode");o.setBackgroundColor(u),null!=l&&"auto"!==l&&o.setDarkMode(l),V.default.trigger("afterupdate",r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var a=[];r.eachComponent((function(t,o){if("series"!==t){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var u=s.updateTransform(o,r,i,e);u&&u.update&&a.push(s)}else a.push(s)}}));var s=Object(o.createHashMap)();r.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var a=o.updateTransform(t,r,i,e);a&&a.update&&s.set(t.uid,1)}else s.set(t.uid,1)})),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:s}),ft(this,r,i,e,{},s),V.default.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),m.default.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),ct(this,n,this._api,e,{}),V.default.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries((function(t){t.getData().clearAllVisual()})),m.default.markUpdateMethod(e,"updateVisual"),t(r),this._scheduler.performVisualTasks(r,e,{visualType:"visual",setDirty:!0}),r.eachComponent((function(t,i){if("series"!==t){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,e)}})),r.eachSeries((function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)})),V.default.trigger("afterupdate",r,this._api))},updateLayout:function(t){nt.update.call(this,t)}},rt=function(t,e,n,r){if(t._disposed)wt(t.id);else{for(var i,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=S.parseFinder(o,n),u=0;u<a.length;u++){var l=a[u];if(l[e]&&null!=(i=l[e](o,s,r)))return i}0}},it=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries((function(t){r.updateStreamModes(t,n[t.__viewId])}))},ot=function(t,e){var n=this,r=this.getModel(),i=t.type,a=t.escapeConnect,s=Ot[i],u=s.actionInfo,l=(u.update||"update").split(":"),c=l.pop(),h=null!=l[0]&&Object(j.parseClassType)(l[0]);this.__flagInMainProcess=!0;var f=[t],d=!1;t.batch&&(d=!0,f=Object(o.map)(t.batch,(function(e){return(e=Object(o.defaults)(Object(o.extend)({},e),t)).batch=null,e})));var p,g=[],v=Object(O.isSelectChangePayload)(t),m=Object(O.isHighDownPayload)(t);if(m&&Object(O.allLeaveBlur)(this._api),Object(o.each)(f,(function(e){if((p=(p=s.action(e,n._model,n._api))||Object(o.extend)({},e)).type=u.event||p.type,g.push(p),m){var r=S.preParseFinder(t),i=r.queryOptionMap,a=r.mainTypeSpecified?i.keys()[0]:"series";et(n,c,e,a),gt(n)}else v?(et(n,c,e,"series"),gt(n)):h&&et(n,c,e,h.main,h.sub)})),"none"!==c&&!m&&!v&&!h)try{this[$]?(J(this),nt.update.call(this,t),this[$]=null):nt[c].call(this,t)}catch(t){throw this.__flagInMainProcess=!1,t}if(p=d?{type:u.event||i,escapeConnect:a,batch:g}:g[0],this.__flagInMainProcess=!1,!e){var y=this._messageCenter;if(y.trigger(p.type,p),v){var b={type:"selectchanged",escapeConnect:a,selected:Object(O.getAllSelectedIndices)(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};y.trigger(b.type,b)}}},at=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();ot.call(this,n,t)}},st=function(t){!t&&this.trigger("updated")},ut=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[$]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},lt=function(t,e){t.on("mouseover",(function(t){var n=t.target,r=Object(F.findEventDispatcher)(n,O.isHighDownDispatcher);r&&(Object(O.handleGlobalMouseOverForHighDown)(r,t,e._api),gt(e))})).on("mouseout",(function(t){var n=t.target,r=Object(F.findEventDispatcher)(n,O.isHighDownDispatcher);r&&(Object(O.handleGlobalMouseOutForHighDown)(r,t,e._api),gt(e))})).on("click",(function(t){var n=t.target,r=Object(F.findEventDispatcher)(n,(function(t){return null!=Object(w.getECData)(t).dataIndex}),!0);if(r){var i=r.selected?"unselect":"select",o=Object(w.getECData)(r);e._api.dispatchAction({type:i,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},ct=function(t,e,n,r,i){!function(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})})),r){var i,a,u=e.concat(n);Object(s.default)(u,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(o.each)(u,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,o=e.key;null!=i&&(r=Math.max(i,r)),o?(r===i&&o!==a&&r++,a=o):a&&(r===i&&r++,a=""),i=r,n.setZLevel(r)}))}}(e),ht(t,e,n,r,i),Object(o.each)(t._chartsViews,(function(t){t.__alive=!1})),ft(t,e,n,r,i),Object(o.each)(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},ht=function(t,e,r,a,s,l){Object(o.each)(l||t._componentsViews,(function(t){var o=t.__model;i(o,t),t.render(o,e,r,a),n(o,t),u(o,t)}))},ft=function(t,e,r,s,l,c){var h=t._scheduler;l=Object(o.extend)(l||{},{updatedSeries:e.getSeries()}),V.default.trigger("series:beforeupdate",e,r,l);var f=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;h.updatePayload(r,s),i(e,n),c&&c.get(e.uid)&&r.dirty(),r.perform(h.getPerformArgs(r))&&(f=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}(e,n),Object(O.updateSeriesElementSelection)(e)})),h.unfinished=f||h.unfinished,V.default.trigger("series:layoutlabels",e,r,l),V.default.trigger("series:transition",e,r,l),e.eachSeries((function(e){var r=t._chartsMap[e.__viewId];n(e,r),u(e,r)})),function(t,e){var n=t._zr.storage,r=0;n.traverse((function(t){t.isGroup||r++})),r>e.get("hoverLayerThreshold")&&!a.default.node&&!a.default.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),V.default.trigger("series:afterupdate",e,r,l)},gt=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},vt=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse((function(t){_.isElementRemoved(t)||e(t)})),t.__needsUpdateStatus=!1)},dt=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Object(O.enterEmphasis)(e,n),gt(t)},n.prototype.leaveEmphasis=function(e,n){Object(O.leaveEmphasis)(e,n),gt(t)},n.prototype.enterBlur=function(e){Object(O.enterBlur)(e),gt(t)},n.prototype.leaveBlur=function(e){Object(O.leaveBlur)(e),gt(t)},n.prototype.enterSelect=function(e){Object(O.enterSelect)(e),gt(t)},n.prototype.leaveSelect=function(e){Object(O.leaveSelect)(e),gt(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(c.default))(t)},pt=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n].__connectUpdateStatus=e}}Object(o.each)(St,(function(n,r){t._messageCenter.on(r,(function(n){if(jt[t.group]&&0!==t.__connectUpdateStatus){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];Object(o.each)(It,(function(e){e!==t&&e.group===t.group&&i.push(e)})),e(i,0),Object(o.each)(i,(function(t){1!==t.__connectUpdateStatus&&t.dispatchAction(r)})),e(i,2)}}))}))}}(),e}(u.default),_t=bt.prototype;_t.on=Z("on"),_t.off=Z("off"),_t.one=function(t,e,n){var r=this;Object(R.deprecateLog)("ECharts#one is deprecated."),this.on.call(this,t,(function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,n)}),n)};var xt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function wt(t){0}var Ot={},St={},Ct=[],Et=[],Tt=[],At={},Mt={},It={},jt={},kt=+new Date-0,Pt=+new Date-0,Lt="_echarts_instance_";function Rt(t,e,n){var r=!(n&&n.ssr);if(r){0;var i=zt(t);if(i)return i;0}var o=new bt(t,e,n);return o.id="ec_"+kt++,It[o.id]=o,r&&S.setAttribute(t,Lt,o.id),pt(o),V.default.trigger("afterinit",o),o}function Dt(t){if(Object(o.isArray)(t)){var e=t;t=null,Object(o.each)(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+Pt++,Object(o.each)(e,(function(e){e.group=t}))}return jt[t]=!0,t}function Nt(t){jt[t]=!1}var Bt=Nt;function Ft(t){Object(o.isString)(t)?t=It[t]:t instanceof bt||(t=zt(t)),t instanceof bt&&!t.isDisposed()&&t.dispose()}function zt(t){return It[S.getAttribute(t,Lt)]}function Vt(t){return It[t]}function Ut(t,e){At[t]=e}function Gt(t){Object(o.indexOf)(Et,t)<0&&Et.push(t)}function Ht(t,e){te(Ct,t,e,2e3)}function Wt(t){Xt("afterinit",t)}function Yt(t){Xt("afterupdate",t)}function Xt(t,e){V.default.on(t,e)}function $t(t,e,n){Object(o.isFunction)(e)&&(n=e,e="");var r=Object(o.isObject)(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,St[e]||(Object(o.assert)(q.test(r)&&q.test(e)),Ot[r]||(Ot[r]={action:n,actionInfo:t}),St[e]=r)}function qt(t,e){h.default.register(t,e)}function Zt(t){var e=h.default.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function Kt(t,e){te(Tt,t,e,1e3,"layout")}function Qt(t,e){te(Tt,t,e,3e3,"visual")}var Jt=[];function te(t,e,n,r,i){if((Object(o.isFunction)(e)||Object(o.isObject)(e))&&(n=e,e=r),!(Object(o.indexOf)(Jt,n)>=0)){Jt.push(n);var a=A.default.wrapStageHandler(n,i);a.__prio=e,a.__raw=n,t.push(a)}}function ee(t,e){Mt[t]=e}function ne(t){Object(U.setPlatformAPI)({createCanvas:t})}function re(t,e,n){var r=Object(G.getImpl)("registerMap");r&&r(t,e,n)}function ie(t){var e=Object(G.getImpl)("getMap");return e&&e(t)}var oe=N.registerExternalTransform;Qt(2e3,E.seriesStyleTask),Qt(4500,E.dataStyleTask),Qt(4500,E.dataColorPaletteTask),Qt(2e3,P.seriesSymbolTask),Qt(4500,P.dataSymbolTask),Qt(7e3,z.default),Gt(d.default),Ht(900,p.default),ee("default",T.default),$t({type:O.HIGHLIGHT_ACTION_TYPE,event:O.HIGHLIGHT_ACTION_TYPE,update:O.HIGHLIGHT_ACTION_TYPE},o.noop),$t({type:O.DOWNPLAY_ACTION_TYPE,event:O.DOWNPLAY_ACTION_TYPE,update:O.DOWNPLAY_ACTION_TYPE},o.noop),$t({type:O.SELECT_ACTION_TYPE,event:O.SELECT_ACTION_TYPE,update:O.SELECT_ACTION_TYPE},o.noop),$t({type:O.UNSELECT_ACTION_TYPE,event:O.UNSELECT_ACTION_TYPE,update:O.UNSELECT_ACTION_TYPE},o.noop),$t({type:O.TOGGLE_SELECT_ACTION_TYPE,event:O.TOGGLE_SELECT_ACTION_TYPE,update:O.TOGGLE_SELECT_ACTION_TYPE},o.noop),Ut("light",M.default),Ut("dark",I.default);var ae={}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(80),o=n(6),a=(n(38),r.each),s=r.isObject,u=function(){function t(e){var n=e.mappingMethod,i=e.type,o=this.option=r.clone(e);this.type=i,this.mappingMethod=n,this._normalizeData=y[n];var s=t.visualHandlers[i];this.applyVisual=s.applyVisual,this.getColorMapper=s.getColorMapper,this._normalizedToVisual=s._normalizedToVisual[n],"piecewise"===n?(l(o),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,r.each(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(o)):"category"===n?o.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(a(e,(function(t,e){n[t]=e})),!r.isArray(i)){var o=[];r.isObject(i)?a(i,(function(t,e){var r=n[e];o[null!=r?r:-1]=t})):o[-1]=i,i=m(t,o)}for(var s=e.length-1;s>=0;s--)null==i[s]&&(delete n[e[s]],e.pop())}(o):l(o,!0):(r.assert("linear"!==n||o.dataExtent),l(o))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return r.bind(this._normalizeData,this)},t.listVisualTypes=function(){return r.keys(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){r.isObject(t)?r.each(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var o,a=r.isArray(e)?[]:r.isObject(e)?{}:(o=!0,null);return t.eachVisual(e,(function(t,e){var r=n.call(i,t,e);o?a=r:a[e]=r})),a},t.retrieveVisuals=function(e){var n,r={};return e&&a(t.visualHandlers,(function(t,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)})),n?r:null},t.prepareVisualTypes=function(t){if(r.isArray(t))t=t.slice();else{if(!s(t))return[];var e=[];a(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,o=1/0,a=0,s=e.length;a<s;a++){var u=e[a].value;if(null!=u){if(u===t||r.isString(u)&&u===t+"")return a;n&&f(u,a)}}for(a=0,s=e.length;a<s;a++){var l=e[a],c=l.interval,h=l.close;if(c){if(c[0]===-1/0){if(b(h[1],t,c[1]))return a}else if(c[1]===1/0){if(b(h[0],c[0],t))return a}else if(b(h[0],c[0],t)&&b(h[1],t,c[1]))return a;n&&f(c[0],a),n&&f(c[1],a)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function f(e,n){var r=Math.abs(e-t);r<o&&(o=r,i=n)}},t.visualHandlers={color:{applyVisual:f("color"),getColorMapper:function(){var t=this.option;return r.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),d.call(this,t)}:function(e,n,r){var o=!!r;return!n&&(e=this._normalizeData(e)),r=i.fastLerp(e,t.parsedVisual,r),o?r:i.stringify(r,"rgba")},this)},_normalizedToVisual:{linear:function(t){return i.stringify(i.fastLerp(t,this.option.parsedVisual),"rgba")},category:d,piecewise:function(t,e){var n=v.call(this,e);return null==n&&(n=i.stringify(i.fastLerp(t,this.option.parsedVisual),"rgba")),n},fixed:p}},colorHue:c((function(t,e){return i.modifyHSL(t,e)})),colorSaturation:c((function(t,e){return i.modifyHSL(t,null,e)})),colorLightness:c((function(t,e){return i.modifyHSL(t,null,null,e)})),colorAlpha:c((function(t,e){return i.modifyAlpha(t,e)})),decal:{applyVisual:f("decal"),_normalizedToVisual:{linear:null,category:d,piecewise:null,fixed:null}},opacity:{applyVisual:f("opacity"),_normalizedToVisual:g([0,1])},liftZ:{applyVisual:f("liftZ"),_normalizedToVisual:{linear:p,category:p,piecewise:p,fixed:p}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:h,category:d,piecewise:function(t,e){var n=v.call(this,e);return null==n&&(n=h.call(this,t)),n},fixed:p}},symbolSize:{applyVisual:f("symbolSize"),_normalizedToVisual:g([0,1])}},t}();function l(t,e){var n=t.visual,i=[];r.isObject(n)?a(n,(function(t){i.push(t)})):null!=n&&i.push(n);e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),m(t,i)}function c(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:g([0,1])}}function h(t){var e=this.option.visual;return e[Math.round(Object(o.linearMap)(t,[0,1],[0,e.length-1],!0))]||{}}function f(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function d(t){var e=this.option.visual;return e[this.option.loop&&-1!==t?t%e.length:t]}function p(){return this.option.visual[0]}function g(t){return{linear:function(e){return Object(o.linearMap)(e,t,this.option.visual,!0)},category:d,piecewise:function(e,n){var r=v.call(this,n);return null==r&&(r=Object(o.linearMap)(e,t,this.option.visual,!0)),r},fixed:p}}function v(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=n[u.findPieceIndex(t,n)];if(r&&r.visual)return r.visual[this.type]}}function m(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=r.map(e,(function(t){var e=i.parse(t);return e||[0,0,0,1]}))),e}var y={linear:function(t){return Object(o.linearMap)(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=u.findPieceIndex(t,e,!0);if(null!=n)return Object(o.linearMap)(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?-1:e},fixed:r.noop};function b(t,e,n){return t?e<=n:e<n}e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(45),i=n(75);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var s={};e.default=s,s.create=function(t,e,n){var i=r.$window.document.createElement(t);return void 0!==e&&(i.className=e),n&&n.appendChild(i),i},s.createNS=function(t,e){return r.$window.document.createElementNS(t,e)};var u=r.$window.document&&r.$window.document.documentElement.style;function l(t){if(!u)return t[0];var e,n=o(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r in u)return r}}catch(t){n.e(t)}finally{n.f()}return t[0]}var c,h=l(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]);s.disableDrag=function(){u&&h&&(c=u[h],u[h]="none")},s.enableDrag=function(){u&&h&&(u[h]=c)};var f=l(["transform","WebkitTransform"]);s.setTransform=function(t,e){t.style[f]=e};var d=!1;try{var p=Object.defineProperty({},"passive",{get:function(){d=!0}});r.$window.addEventListener("test",p,p),r.$window.removeEventListener("test",p,p)}catch(t){d=!1}s.addEventListener=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"passive"in r&&d?t.addEventListener(e,n,r):t.addEventListener(e,n,r.capture)},s.removeEventListener=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"passive"in r&&d?t.removeEventListener(e,n,r):t.removeEventListener(e,n,r.capture)};var g=function t(e){e.preventDefault(),e.stopPropagation(),r.$window.removeEventListener("click",t,!0)};s.suppressClick=function(){r.isMini||(r.$window.addEventListener("click",g,!0),setTimeout((function(){r.$window.removeEventListener("click",g,!0)}),0))},s.mousePos=function(t,e){if(r.isMini)return new i.default(e.clientX-t.left-0,e.clientY-t.top-0);var n=t.getBoundingClientRect();return new i.default(e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop)},s.touchPos=function(t,e){if(r.isMini){var n,a=[],s=o(e);try{for(s.s();!(n=s.n()).done;){var u=n.value;a.push(new i.default(u.clientX-t.left,u.clientY-t.top))}}catch(t){s.e(t)}finally{s.f()}return a}var l,c=t.getBoundingClientRect(),h=[],f=o(e);try{for(f.s();!(l=f.n()).done;){var d=l.value;h.push(new i.default(d.clientX-c.left-t.clientLeft,d.clientY-c.top-t.clientTop))}}catch(t){f.e(t)}finally{f.f()}return h},s.mouseButton=function(t){return r.isMini&&void 0!==r.$window.InstallTrigger&&2===t.button&&t.ctrlKey&&r.$window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:t.button},s.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)}},function(t,e,n){"use strict";n.r(e);var r=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a<i[t].length;a++)if(i[t][a].h===n)return this;var s={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,l=i[t][u];return l&&l.callAtLast?i[t].splice(u,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;s<a;s++){var u=r[s];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e)}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=e[o-1],s=r.length,u=0;u<s;u++){var l=r[u];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(o){case 0:l.h.call(a);break;case 1:l.h.call(a,e[0]);break;case 2:l.h.call(a,e[0],e[1]);break;default:l.h.apply(a,e.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}();e.default=r},function(t,e,n){"use strict";n.r(e),n.d(e,"throttle",(function(){return o})),n.d(e,"createOrUpdate",(function(){return a})),n.d(e,"clear",(function(){return s}));var r="\0__throttleOriginMethod",i="\0__throttleRate";function o(t,e,n){var r,i,o,a,s,u=0,l=0,c=null;function h(){l=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var f=function(){for(var t=[],f=0;f<arguments.length;f++)t[f]=arguments[f];r=(new Date).getTime(),o=this,a=t;var d=s||e,p=s||n;s=null,i=r-(p?u:l)-d,clearTimeout(c),p?c=setTimeout(h,d):i>=0?h():c=setTimeout(h,-i),u=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(t){s=t},f}function a(t,e,n,a){var s=t[e];if(s){var u=s[r]||s,l=s["\0__throttleType"];if(s[i]!==n||l!==a){if(null==n||!a)return t[e]=u;(s=t[e]=o(u,n,"debounce"===a))[r]=u,s["\0__throttleType"]=a,s[i]=n}return s}}function s(t,e){var n=t[e];n&&n[r]&&(n.clear&&n.clear(),t[e]=n[r])}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformLocalCoord",(function(){return a})),n.d(e,"transformCoordWithViewport",(function(){return s})),n.d(e,"isCanvasEl",(function(){return u})),n.d(e,"encodeHTML",(function(){return h}));var r=n(54),i=n(879),o=[];function a(t,e,n,r,i){return s(o,e,r,i,!0)&&s(t,n,o[0],o[1])}function s(t,e,n,o,a){if(e.getBoundingClientRect&&r.default.domSupported&&!u(e)){var s=e.___zrEVENTSAVED||(e.___zrEVENTSAVED={}),l=function(t,e,n){for(var r=n?"invTrans":"trans",o=e[r],a=e.srcCoords,s=[],u=[],l=!0,c=0;c<4;c++){var h=t[c].getBoundingClientRect(),f=2*c,d=h.left,p=h.top;s.push(d,p),l=l&&a&&d===a[f]&&p===a[f+1],u.push(t[c].offsetLeft,t[c].offsetTop)}return l&&o?o:(e.srcCoords=s,e[r]=n?Object(i.buildTransformer)(u,s):Object(i.buildTransformer)(s,u))}(function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,u=o%2,l=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[u]+":0",i[l]+":0",r[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,s),s,a);if(l)return l(t,n,o),!0}return!1}function u(t){return"CANVAS"===t.nodeName.toUpperCase()}var l=/([&<>"'])/g,c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function h(t){return null==t?"":(t+"").replace(l,(function(t,e){return c[e]}))}},function(t,e,n){"use strict";n.r(e);var r={}.toString;e.default=function(t,e){return r.call(t)==="[object "+e+"]"}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(88),o=n(62),a=n(150),s=n(292),u=n(469),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return u.default},e.prototype.onCanvasChange=function(t){Object(a.refreshElement)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=Object(i.getBBoxMethod)(t)(this),r=e/2,o=n.x-r,a=n.y-r,s=n.x+n.width+r,u=n.y+n.height+r;return{x:o,minX:o,y:a,minY:a,width:n.width+e,height:n.height+e,maxX:s,maxY:u}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(a.applyAttrsToContext)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var r=this.getCanvasBBox();if(!Object(o.intersectRect)(e,r))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),Object(a.applyAttrsToContext)(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=Object(o.intersectRect)(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isFill()&&(Object(o.isNil)(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(Object(o.isNil)(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(i.AbstractShape);e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"enableDataStack",(function(){return o})),n.d(e,"isDimensionStacked",(function(){return a})),n.d(e,"getStackedDimension",(function(){return s}));var r=n(0),i=n(364);function o(t,e,n){var o,a,s,u=(n=n||{}).byIndex,l=n.stackedCoordDimension;!function(t){return!Object(i.isSeriesDataSchema)(t.schema)}(e)?(a=e.schema,o=a.dimensions,s=e.store):o=e;var c,h,f,d,p=!(!t||!t.get("stack"));if(Object(r.each)(o,(function(t,e){Object(r.isString)(t)&&(o[e]=t={name:t}),p&&!t.isExtraCoord&&(u||c||!t.ordinalMeta||(c=t),h||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(h=t))})),!h||u||c||(u=!0),h){f="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var g=h.coordDim,v=h.type,m=0;Object(r.each)(o,(function(t){t.coordDim===g&&m++}));var y={name:f,coordDim:g,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},b={name:d,coordDim:d,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(d,v),b.storeDimIndex=s.ensureCalculationDimension(f,v)),a.appendCalculationDimension(y),a.appendCalculationDimension(b)):(o.push(y),o.push(b))}return{stackedDimension:h&&h.name,stackedByDimension:c&&c.name,isStackedByIndex:u,stackedOverDimension:d,stackResultDimension:f}}function a(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function s(t,e){return a(t,e)?t.getCalculationInfo("stackResultDimension"):e}},function(t,e,n){"use strict";n.r(e),n.d(e,"AXIS_META_CONFIG_KEYS",(function(){return r}));var r=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"]},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"copy",(function(){return a})),n.d(e,"fromValues",(function(){return s})),n.d(e,"set",(function(){return u})),n.d(e,"identity",(function(){return l})),n.d(e,"transpose",(function(){return c})),n.d(e,"invert",(function(){return h})),n.d(e,"adjoint",(function(){return f})),n.d(e,"determinant",(function(){return d})),n.d(e,"multiply",(function(){return p})),n.d(e,"translate",(function(){return g})),n.d(e,"scale",(function(){return v})),n.d(e,"rotate",(function(){return m})),n.d(e,"rotateX",(function(){return y})),n.d(e,"rotateY",(function(){return b})),n.d(e,"rotateZ",(function(){return _})),n.d(e,"fromTranslation",(function(){return x})),n.d(e,"fromScaling",(function(){return w})),n.d(e,"fromRotation",(function(){return O})),n.d(e,"fromXRotation",(function(){return S})),n.d(e,"fromYRotation",(function(){return C})),n.d(e,"fromZRotation",(function(){return E})),n.d(e,"fromRotationTranslation",(function(){return T})),n.d(e,"fromQuat2",(function(){return A})),n.d(e,"getTranslation",(function(){return M})),n.d(e,"getScaling",(function(){return I})),n.d(e,"getRotation",(function(){return j})),n.d(e,"fromRotationTranslationScale",(function(){return k})),n.d(e,"fromRotationTranslationScaleOrigin",(function(){return P})),n.d(e,"fromQuat",(function(){return L})),n.d(e,"frustum",(function(){return R})),n.d(e,"perspectiveNO",(function(){return D})),n.d(e,"perspective",(function(){return N})),n.d(e,"perspectiveZO",(function(){return B})),n.d(e,"perspectiveFromFieldOfView",(function(){return F})),n.d(e,"orthoNO",(function(){return z})),n.d(e,"ortho",(function(){return V})),n.d(e,"orthoZO",(function(){return U})),n.d(e,"lookAt",(function(){return G})),n.d(e,"targetTo",(function(){return H})),n.d(e,"str",(function(){return W})),n.d(e,"frob",(function(){return Y})),n.d(e,"add",(function(){return X})),n.d(e,"subtract",(function(){return $})),n.d(e,"multiplyScalar",(function(){return q})),n.d(e,"multiplyScalarAndAdd",(function(){return Z})),n.d(e,"exactEquals",(function(){return K})),n.d(e,"equals",(function(){return Q})),n.d(e,"mul",(function(){return J})),n.d(e,"sub",(function(){return tt}));var r=n(22);function i(){var t=new r.ARRAY_TYPE(16);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function o(t){var e=new r.ARRAY_TYPE(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function s(t,e,n,i,o,a,s,u,l,c,h,f,d,p,g,v){var m=new r.ARRAY_TYPE(16);return m[0]=t,m[1]=e,m[2]=n,m[3]=i,m[4]=o,m[5]=a,m[6]=s,m[7]=u,m[8]=l,m[9]=c,m[10]=h,m[11]=f,m[12]=d,m[13]=p,m[14]=g,m[15]=v,m}function u(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,v){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=l,t[9]=c,t[10]=h,t[11]=f,t[12]=d,t[13]=p,t[14]=g,t[15]=v,t}function l(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function c(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function h(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=n*s-r*a,b=n*u-i*a,_=n*l-o*a,x=r*u-i*s,w=r*l-o*s,O=i*l-o*u,S=c*g-h*p,C=c*v-f*p,E=c*m-d*p,T=h*v-f*g,A=h*m-d*g,M=f*m-d*v,I=y*M-b*A+_*T+x*E-w*C+O*S;return I?(I=1/I,t[0]=(s*M-u*A+l*T)*I,t[1]=(i*A-r*M-o*T)*I,t[2]=(g*O-v*w+m*x)*I,t[3]=(f*w-h*O-d*x)*I,t[4]=(u*E-a*M-l*C)*I,t[5]=(n*M-i*E+o*C)*I,t[6]=(v*_-p*O-m*b)*I,t[7]=(c*O-f*_+d*b)*I,t[8]=(a*A-s*E+l*S)*I,t[9]=(r*E-n*A-o*S)*I,t[10]=(p*w-g*_+m*y)*I,t[11]=(h*_-c*w-d*y)*I,t[12]=(s*C-a*T-u*S)*I,t[13]=(n*T-r*C+i*S)*I,t[14]=(g*b-p*x-v*y)*I,t[15]=(c*x-h*b+f*y)*I,t):null}function f(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],g=e[13],v=e[14],m=e[15];return t[0]=s*(f*m-d*v)-h*(u*m-l*v)+g*(u*d-l*f),t[1]=-(r*(f*m-d*v)-h*(i*m-o*v)+g*(i*d-o*f)),t[2]=r*(u*m-l*v)-s*(i*m-o*v)+g*(i*l-o*u),t[3]=-(r*(u*d-l*f)-s*(i*d-o*f)+h*(i*l-o*u)),t[4]=-(a*(f*m-d*v)-c*(u*m-l*v)+p*(u*d-l*f)),t[5]=n*(f*m-d*v)-c*(i*m-o*v)+p*(i*d-o*f),t[6]=-(n*(u*m-l*v)-a*(i*m-o*v)+p*(i*l-o*u)),t[7]=n*(u*d-l*f)-a*(i*d-o*f)+c*(i*l-o*u),t[8]=a*(h*m-d*g)-c*(s*m-l*g)+p*(s*d-l*h),t[9]=-(n*(h*m-d*g)-c*(r*m-o*g)+p*(r*d-o*h)),t[10]=n*(s*m-l*g)-a*(r*m-o*g)+p*(r*l-o*s),t[11]=-(n*(s*d-l*h)-a*(r*d-o*h)+c*(r*l-o*s)),t[12]=-(a*(h*v-f*g)-c*(s*v-u*g)+p*(s*f-u*h)),t[13]=n*(h*v-f*g)-c*(r*v-i*g)+p*(r*f-i*h),t[14]=-(n*(s*v-u*g)-a*(r*v-i*g)+p*(r*u-i*s)),t[15]=n*(s*f-u*h)-a*(r*f-i*h)+c*(r*u-i*s),t}function d(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],l=t[8],c=t[9],h=t[10],f=t[11],d=t[12],p=t[13],g=t[14],v=t[15];return(e*a-n*o)*(h*v-f*g)-(e*s-r*o)*(c*v-f*p)+(e*u-i*o)*(c*g-h*p)+(n*s-r*a)*(l*v-f*d)-(n*u-i*a)*(l*g-h*d)+(r*u-i*s)*(l*p-c*d)}function p(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],g=e[12],v=e[13],m=e[14],y=e[15],b=n[0],_=n[1],x=n[2],w=n[3];return t[0]=b*r+_*s+x*h+w*g,t[1]=b*i+_*u+x*f+w*v,t[2]=b*o+_*l+x*d+w*m,t[3]=b*a+_*c+x*p+w*y,b=n[4],_=n[5],x=n[6],w=n[7],t[4]=b*r+_*s+x*h+w*g,t[5]=b*i+_*u+x*f+w*v,t[6]=b*o+_*l+x*d+w*m,t[7]=b*a+_*c+x*p+w*y,b=n[8],_=n[9],x=n[10],w=n[11],t[8]=b*r+_*s+x*h+w*g,t[9]=b*i+_*u+x*f+w*v,t[10]=b*o+_*l+x*d+w*m,t[11]=b*a+_*c+x*p+w*y,b=n[12],_=n[13],x=n[14],w=n[15],t[12]=b*r+_*s+x*h+w*g,t[13]=b*i+_*u+x*f+w*v,t[14]=b*o+_*l+x*d+w*m,t[15]=b*a+_*c+x*p+w*y,t}function g(t,e,n){var r,i,o,a,s,u,l,c,h,f,d,p,g=n[0],v=n[1],m=n[2];return e===t?(t[12]=e[0]*g+e[4]*v+e[8]*m+e[12],t[13]=e[1]*g+e[5]*v+e[9]*m+e[13],t[14]=e[2]*g+e[6]*v+e[10]*m+e[14],t[15]=e[3]*g+e[7]*v+e[11]*m+e[15]):(r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=l,t[7]=c,t[8]=h,t[9]=f,t[10]=d,t[11]=p,t[12]=r*g+s*v+h*m+e[12],t[13]=i*g+u*v+f*m+e[13],t[14]=o*g+l*v+d*m+e[14],t[15]=a*g+c*v+p*m+e[15]),t}function v(t,e,n){var r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function m(t,e,n,i){var o,a,s,u,l,c,h,f,d,p,g,v,m,y,b,_,x,w,O,S,C,E,T,A,M=i[0],I=i[1],j=i[2],k=Math.hypot(M,I,j);return k<r.EPSILON?null:(M*=k=1/k,I*=k,j*=k,o=Math.sin(n),s=1-(a=Math.cos(n)),u=e[0],l=e[1],c=e[2],h=e[3],f=e[4],d=e[5],p=e[6],g=e[7],v=e[8],m=e[9],y=e[10],b=e[11],_=M*M*s+a,x=I*M*s+j*o,w=j*M*s-I*o,O=M*I*s-j*o,S=I*I*s+a,C=j*I*s+M*o,E=M*j*s+I*o,T=I*j*s-M*o,A=j*j*s+a,t[0]=u*_+f*x+v*w,t[1]=l*_+d*x+m*w,t[2]=c*_+p*x+y*w,t[3]=h*_+g*x+b*w,t[4]=u*O+f*S+v*C,t[5]=l*O+d*S+m*C,t[6]=c*O+p*S+y*C,t[7]=h*O+g*S+b*C,t[8]=u*E+f*T+v*A,t[9]=l*E+d*T+m*A,t[10]=c*E+p*T+y*A,t[11]=h*E+g*T+b*A,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function y(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[4],a=e[5],s=e[6],u=e[7],l=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+l*r,t[5]=a*i+c*r,t[6]=s*i+h*r,t[7]=u*i+f*r,t[8]=l*i-o*r,t[9]=c*i-a*r,t[10]=h*i-s*r,t[11]=f*i-u*r,t}function b(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],l=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-l*r,t[1]=a*i-c*r,t[2]=s*i-h*r,t[3]=u*i-f*r,t[8]=o*r+l*i,t[9]=a*r+c*i,t[10]=s*r+h*i,t[11]=u*r+f*i,t}function _(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],l=e[4],c=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+l*r,t[1]=a*i+c*r,t[2]=s*i+h*r,t[3]=u*i+f*r,t[4]=l*i-o*r,t[5]=c*i-a*r,t[6]=h*i-s*r,t[7]=f*i-u*r,t}function x(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function w(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function O(t,e,n){var i,o,a,s=n[0],u=n[1],l=n[2],c=Math.hypot(s,u,l);return c<r.EPSILON?null:(s*=c=1/c,u*=c,l*=c,i=Math.sin(e),a=1-(o=Math.cos(e)),t[0]=s*s*a+o,t[1]=u*s*a+l*i,t[2]=l*s*a-u*i,t[3]=0,t[4]=s*u*a-l*i,t[5]=u*u*a+o,t[6]=l*u*a+s*i,t[7]=0,t[8]=s*l*a+u*i,t[9]=u*l*a-s*i,t[10]=l*l*a+o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function S(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function C(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function E(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function T(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=r+r,u=i+i,l=o+o,c=r*s,h=r*u,f=r*l,d=i*u,p=i*l,g=o*l,v=a*s,m=a*u,y=a*l;return t[0]=1-(d+g),t[1]=h+y,t[2]=f-m,t[3]=0,t[4]=h-y,t[5]=1-(c+g),t[6]=p+v,t[7]=0,t[8]=f+m,t[9]=p-v,t[10]=1-(c+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function A(t,e){var n=new r.ARRAY_TYPE(3),i=-e[0],o=-e[1],a=-e[2],s=e[3],u=e[4],l=e[5],c=e[6],h=e[7],f=i*i+o*o+a*a+s*s;return f>0?(n[0]=2*(u*s+h*i+l*a-c*o)/f,n[1]=2*(l*s+h*o+c*i-u*a)/f,n[2]=2*(c*s+h*a+u*o-l*i)/f):(n[0]=2*(u*s+h*i+l*a-c*o),n[1]=2*(l*s+h*o+c*i-u*a),n[2]=2*(c*s+h*a+u*o-l*i)),T(t,e,n),t}function M(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function I(t,e){var n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],u=e[8],l=e[9],c=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(o,a,s),t[2]=Math.hypot(u,l,c),t}function j(t,e){var n=new r.ARRAY_TYPE(3);I(n,e);var i=1/n[0],o=1/n[1],a=1/n[2],s=e[0]*i,u=e[1]*o,l=e[2]*a,c=e[4]*i,h=e[5]*o,f=e[6]*a,d=e[8]*i,p=e[9]*o,g=e[10]*a,v=s+h+g,m=0;return v>0?(m=2*Math.sqrt(v+1),t[3]=.25*m,t[0]=(f-p)/m,t[1]=(d-l)/m,t[2]=(u-c)/m):s>h&&s>g?(m=2*Math.sqrt(1+s-h-g),t[3]=(f-p)/m,t[0]=.25*m,t[1]=(u+c)/m,t[2]=(d+l)/m):h>g?(m=2*Math.sqrt(1+h-s-g),t[3]=(d-l)/m,t[0]=(u+c)/m,t[1]=.25*m,t[2]=(f+p)/m):(m=2*Math.sqrt(1+g-s-h),t[3]=(u-c)/m,t[0]=(d+l)/m,t[1]=(f+p)/m,t[2]=.25*m),t}function k(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3],u=i+i,l=o+o,c=a+a,h=i*u,f=i*l,d=i*c,p=o*l,g=o*c,v=a*c,m=s*u,y=s*l,b=s*c,_=r[0],x=r[1],w=r[2];return t[0]=(1-(p+v))*_,t[1]=(f+b)*_,t[2]=(d-y)*_,t[3]=0,t[4]=(f-b)*x,t[5]=(1-(h+v))*x,t[6]=(g+m)*x,t[7]=0,t[8]=(d+y)*w,t[9]=(g-m)*w,t[10]=(1-(h+p))*w,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function P(t,e,n,r,i){var o=e[0],a=e[1],s=e[2],u=e[3],l=o+o,c=a+a,h=s+s,f=o*l,d=o*c,p=o*h,g=a*c,v=a*h,m=s*h,y=u*l,b=u*c,_=u*h,x=r[0],w=r[1],O=r[2],S=i[0],C=i[1],E=i[2],T=(1-(g+m))*x,A=(d+_)*x,M=(p-b)*x,I=(d-_)*w,j=(1-(f+m))*w,k=(v+y)*w,P=(p+b)*O,L=(v-y)*O,R=(1-(f+g))*O;return t[0]=T,t[1]=A,t[2]=M,t[3]=0,t[4]=I,t[5]=j,t[6]=k,t[7]=0,t[8]=P,t[9]=L,t[10]=R,t[11]=0,t[12]=n[0]+S-(T*S+I*C+P*E),t[13]=n[1]+C-(A*S+j*C+L*E),t[14]=n[2]+E-(M*S+k*C+R*E),t[15]=1,t}function L(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,l=n*a,c=r*a,h=r*s,f=i*a,d=i*s,p=i*u,g=o*a,v=o*s,m=o*u;return t[0]=1-h-p,t[1]=c+m,t[2]=f-v,t[3]=0,t[4]=c-m,t[5]=1-l-p,t[6]=d+g,t[7]=0,t[8]=f+v,t[9]=d-g,t[10]=1-l-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function R(t,e,n,r,i,o,a){var s=1/(n-e),u=1/(i-r),l=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*u,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*u,t[10]=(a+o)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*l,t[15]=0,t}function D(t,e,n,r,i){var o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t}var N=D;function B(t,e,n,r,i){var o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=i*o,t[14]=i*r*o):(t[10]=-1,t[14]=-r),t}function F(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(a+s),l=2/(i+o);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(a-s)*u*.5,t[9]=(i-o)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function z(t,e,n,r,i,o,a){var s=1/(e-n),u=1/(r-i),l=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(a+o)*l,t[15]=1,t}var V=z;function U(t,e,n,r,i,o,a){var s=1/(e-n),u=1/(r-i),l=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=o*l,t[15]=1,t}function G(t,e,n,i){var o,a,s,u,c,h,f,d,p,g,v=e[0],m=e[1],y=e[2],b=i[0],_=i[1],x=i[2],w=n[0],O=n[1],S=n[2];return Math.abs(v-w)<r.EPSILON&&Math.abs(m-O)<r.EPSILON&&Math.abs(y-S)<r.EPSILON?l(t):(f=v-w,d=m-O,p=y-S,o=_*(p*=g=1/Math.hypot(f,d,p))-x*(d*=g),a=x*(f*=g)-b*p,s=b*d-_*f,(g=Math.hypot(o,a,s))?(o*=g=1/g,a*=g,s*=g):(o=0,a=0,s=0),u=d*s-p*a,c=p*o-f*s,h=f*a-d*o,(g=Math.hypot(u,c,h))?(u*=g=1/g,c*=g,h*=g):(u=0,c=0,h=0),t[0]=o,t[1]=u,t[2]=f,t[3]=0,t[4]=a,t[5]=c,t[6]=d,t[7]=0,t[8]=s,t[9]=h,t[10]=p,t[11]=0,t[12]=-(o*v+a*m+s*y),t[13]=-(u*v+c*m+h*y),t[14]=-(f*v+d*m+p*y),t[15]=1,t)}function H(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=r[0],u=r[1],l=r[2],c=i-n[0],h=o-n[1],f=a-n[2],d=c*c+h*h+f*f;d>0&&(c*=d=1/Math.sqrt(d),h*=d,f*=d);var p=u*f-l*h,g=l*c-s*f,v=s*h-u*c;return(d=p*p+g*g+v*v)>0&&(p*=d=1/Math.sqrt(d),g*=d,v*=d),t[0]=p,t[1]=g,t[2]=v,t[3]=0,t[4]=h*v-f*g,t[5]=f*p-c*v,t[6]=c*g-h*p,t[7]=0,t[8]=c,t[9]=h,t[10]=f,t[11]=0,t[12]=i,t[13]=o,t[14]=a,t[15]=1,t}function W(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function Y(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function X(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function $(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function q(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function Z(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function K(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function Q(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=t[9],d=t[10],p=t[11],g=t[12],v=t[13],m=t[14],y=t[15],b=e[0],_=e[1],x=e[2],w=e[3],O=e[4],S=e[5],C=e[6],E=e[7],T=e[8],A=e[9],M=e[10],I=e[11],j=e[12],k=e[13],P=e[14],L=e[15];return Math.abs(n-b)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(i-_)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(o-x)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(a-w)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(s-O)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(O))&&Math.abs(u-S)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(l-C)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(C))&&Math.abs(c-E)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(h-T)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(f-A)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(d-M)<=r.EPSILON*Math.max(1,Math.abs(d),Math.abs(M))&&Math.abs(p-I)<=r.EPSILON*Math.max(1,Math.abs(p),Math.abs(I))&&Math.abs(g-j)<=r.EPSILON*Math.max(1,Math.abs(g),Math.abs(j))&&Math.abs(v-k)<=r.EPSILON*Math.max(1,Math.abs(v),Math.abs(k))&&Math.abs(m-P)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(P))&&Math.abs(y-L)<=r.EPSILON*Math.max(1,Math.abs(y),Math.abs(L))}var J=p,tt=$},function(t,e,n){"use strict";n.r(e),n.d(e,"applyAttrsToContext",(function(){return l})),n.d(e,"drawChildren",(function(){return c})),n.d(e,"checkRefresh",(function(){return h})),n.d(e,"checkChildrenRefresh",(function(){return f})),n.d(e,"clearChanged",(function(){return d})),n.d(e,"drawPath",(function(){return v})),n.d(e,"refreshElement",(function(){return m})),n.d(e,"getRefreshRegion",(function(){return y})),n.d(e,"getMergedRegion",(function(){return b})),n.d(e,"mergeView",(function(){return _}));var r=n(1),i=n(743),o=n(564),a=n(62),s=n(192),u={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function l(t,e){var n=e.attr();for(var o in n){var a=n[o],s=u[o]?u[o]:o;"matrix"===s&&a?t.transform(a[0],a[1],a[3],a[4],a[6],a[7]):"lineDash"===s&&t.setLineDash?Object(r.isArray)(a)&&t.setLineDash(a):("strokeStyle"===s||"fillStyle"===s?a=Object(i.parseStyle)(t,e,a):"globalAlpha"===s&&(a*=t.globalAlpha),t[s]=a)}}function c(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];i.cfg.visible?i.draw(t,n):i.skipDraw()}}function h(t,e,n){var i=t.get("refreshElements");Object(r.each)(i,(function(e){if(e!==t)for(var n=e.cfg.parent;n&&n!==t&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent})),i[0]===t?p(e,n):f(e,n)}function f(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.cfg.visible)if(r.cfg.hasChanged)r.cfg.refresh=!0,r.isGroup()&&p(r.cfg.children,e);else if(r.cfg.refresh)r.isGroup()&&f(r.cfg.children,e);else{var i=g(r,e);r.cfg.refresh=i,i&&r.isGroup()&&f(r.cfg.children,e)}}}function d(t){for(var e=0;e<t.length;e++){var n=t[e];n.cfg.hasChanged=!1,n.isGroup()&&!n.destroyed&&d(n.cfg.children)}}function p(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.refresh=!0,r.isGroup()&&p(r.get("children"),e)}}function g(t,e){var n=t.cfg.cacheCanvasBBox;return t.cfg.isInView&&n&&Object(a.intersectRect)(n,e)}function v(t,e,n,r){var i=n.path,a=n.startArrow,u=n.endArrow;if(i){var l=[0,0],c=[0,0],h={dx:0,dy:0};e.beginPath();for(var f=0;f<i.length;f++){var d=i[f],p=d[0];if(0===f&&a&&a.d){var g=t.getStartTangent();h=s.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],a.d)}else if(f===i.length-2&&"Z"===i[f+1][0]&&u&&u.d){if("Z"===i[f+1][0]){g=t.getEndTangent();h=s.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],u.d)}}else if(f===i.length-1&&u&&u.d&&"Z"!==i[0]){g=t.getEndTangent();h=s.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],u.d)}var v=h.dx,m=h.dy;switch(p){case"M":e.moveTo(d[1]-v,d[2]-m),c=[d[1],d[2]];break;case"L":e.lineTo(d[1]-v,d[2]-m);break;case"Q":e.quadraticCurveTo(d[1],d[2],d[3]-v,d[4]-m);break;case"C":e.bezierCurveTo(d[1],d[2],d[3],d[4],d[5]-v,d[6]-m);break;case"A":var y=void 0;r?(y=r[f])||(y=Object(o.default)(l,d),r[f]=y):y=Object(o.default)(l,d);var b=y.cx,_=y.cy,x=y.rx,w=y.ry,O=y.startAngle,S=y.endAngle,C=y.xRotation,E=y.sweepFlag;if(e.ellipse)e.ellipse(b,_,x,w,C,O,S,1-E);else{var T=x>w?x:w,A=x>w?1:x/w,M=x>w?w/x:1;e.translate(b,_),e.rotate(C),e.scale(A,M),e.arc(0,0,T,O,S,1-E),e.scale(1/A,1/M),e.rotate(-C),e.translate(-b,-_)}break;case"Z":e.closePath()}if("Z"===p)l=c;else{var I=d.length;l=[d[I-2],d[I-1]]}}}}function m(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))}function y(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var n=t.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),i=t.getCanvasBBox(),o=i&&!(!i.width||!i.height);r&&o?e=Object(a.mergeRegion)(n,i):r?e=n:o&&(e=i)}return e}function b(t){if(!t.length)return null;var e=[],n=[],i=[],o=[];return Object(r.each)(t,(function(t){var r=y(t);r&&(e.push(r.minX),n.push(r.minY),i.push(r.maxX),o.push(r.maxY))})),{minX:Object(r.min)(e),minY:Object(r.min)(n),maxX:Object(r.max)(i),maxY:Object(r.max)(o)}}function _(t,e){return t&&e&&Object(a.intersectRect)(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},function(t,e,n){"use strict";n.r(e),n.d(e,"normalizeArcAngles",(function(){return C}));var r=n(18),i=n(35),o=n(166),a=n(249),s=n(53),u={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},l=[],c=[],h=[],f=[],d=[],p=[],g=Math.min,v=Math.max,m=Math.cos,y=Math.sin,b=Math.abs,_=Math.PI,x=2*_,w="undefined"!=typeof Float32Array,O=[];function S(t){return Math.round(t/_*1e8)/1e8%2*_}function C(t,e){var n=S(t[0]);n<0&&(n+=x);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=x?i=n+x:e&&n-i>=x?i=n-x:!e&&n>i?i=n+(x-S(n-i)):e&&n<i&&(i=n-(x-S(i-n))),t[0]=n,t[1]=i}var E=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=b(n/o.devicePixelRatio/t)||0,this._uy=b(n/o.devicePixelRatio/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(u.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=b(t-this._xi),r=b(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(u.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(u.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(u.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),O[0]=r,O[1]=i,C(O,o),r=O[0];var a=(i=O[1])-r;return this.addData(u.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=m(i)*n+t,this._yi=y(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(u.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(u.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!w||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();w&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<e;i++)for(var o=t[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},t.prototype.addData=function(t,e,n,r,i,o,a,s,u){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var c=0;c<arguments.length;c++)l[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,w&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){h[0]=h[1]=d[0]=d[1]=Number.MAX_VALUE,f[0]=f[1]=p[0]=p[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,o=0,s=0,l=0;for(t=0;t<this._len;){var c=e[t++],g=1===t;switch(g&&(s=n=e[t],l=o=e[t+1]),c){case u.M:n=s=e[t++],o=l=e[t++],d[0]=s,d[1]=l,p[0]=s,p[1]=l;break;case u.L:Object(a.fromLine)(n,o,e[t],e[t+1],d,p),n=e[t++],o=e[t++];break;case u.C:Object(a.fromCubic)(n,o,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],d,p),n=e[t++],o=e[t++];break;case u.Q:Object(a.fromQuadratic)(n,o,e[t++],e[t++],e[t],e[t+1],d,p),n=e[t++],o=e[t++];break;case u.A:var v=e[t++],b=e[t++],_=e[t++],x=e[t++],w=e[t++],O=e[t++]+w;t+=1;var S=!e[t++];g&&(s=m(w)*_+v,l=y(w)*x+b),Object(a.fromArc)(v,b,_,x,w,O,S,d,p),n=m(O)*_+v,o=y(O)*x+b;break;case u.R:s=n=e[t++],l=o=e[t++];var C=e[t++],E=e[t++];Object(a.fromLine)(s,l,s+C,l+E,d,p);break;case u.Z:n=s,o=l}r.min(h,h,d),r.max(f,f,p)}return 0===t&&(h[0]=h[1]=f[0]=f[1]=0),new i.default(h[0],h[1],f[0]-h[0],f[1]-h[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,h=0,f=0,d=0;d<e;){var p=t[d++],_=1===d;_&&(a=i=t[d],l=o=t[d+1]);var w=-1;switch(p){case u.M:i=a=t[d++],o=l=t[d++];break;case u.L:var O=t[d++],S=(T=t[d++])-o;(b(N=O-i)>n||b(S)>r||d===e-1)&&(w=Math.sqrt(N*N+S*S),i=O,o=T);break;case u.C:var C=t[d++],E=t[d++],T=(O=t[d++],t[d++]),A=t[d++],M=t[d++];w=Object(s.cubicLength)(i,o,C,E,O,T,A,M,10),i=A,o=M;break;case u.Q:C=t[d++],E=t[d++],O=t[d++],T=t[d++];w=Object(s.quadraticLength)(i,o,C,E,O,T,10),i=O,o=T;break;case u.A:var I=t[d++],j=t[d++],k=t[d++],P=t[d++],L=t[d++],R=t[d++],D=R+L;d+=1;t[d++];_&&(a=m(L)*k+I,l=y(L)*P+j),w=v(k,P)*g(x,Math.abs(R)),i=m(D)*k+I,o=y(D)*P+j;break;case u.R:a=i=t[d++],l=o=t[d++],w=2*t[d++]+2*t[d++];break;case u.Z:var N=a-i;S=l-o;w=Math.sqrt(N*N+S*S),i=a,o=l}w>=0&&(c[f++]=w,h+=w)}return this._pathLen=h,h},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,h,f,d,p,_,x=this.data,w=this._ux,O=this._uy,S=this._len,C=e<1,E=0,T=0,A=0;if(!C||(this._pathSegLen||this._calculateLength(),f=this._pathSegLen,d=e*this._pathLen))t:for(var M=0;M<S;){var I=x[M++],j=1===M;switch(j&&(n=i=x[M],r=o=x[M+1]),I!==u.L&&A>0&&(t.lineTo(p,_),A=0),I){case u.M:n=i=x[M++],r=o=x[M++],t.moveTo(i,o);break;case u.L:a=x[M++],h=x[M++];var k=b(a-i),P=b(h-o);if(k>w||P>O){if(C){if(E+(rt=f[T++])>d){var L=(d-E)/rt;t.lineTo(i*(1-L)+a*L,o*(1-L)+h*L);break t}E+=rt}t.lineTo(a,h),i=a,o=h,A=0}else{var R=k*k+P*P;R>A&&(p=a,_=h,A=R)}break;case u.C:var D=x[M++],N=x[M++],B=x[M++],F=x[M++],z=x[M++],V=x[M++];if(C){if(E+(rt=f[T++])>d){L=(d-E)/rt;Object(s.cubicSubdivide)(i,D,B,z,L,l),Object(s.cubicSubdivide)(o,N,F,V,L,c),t.bezierCurveTo(l[1],c[1],l[2],c[2],l[3],c[3]);break t}E+=rt}t.bezierCurveTo(D,N,B,F,z,V),i=z,o=V;break;case u.Q:D=x[M++],N=x[M++],B=x[M++],F=x[M++];if(C){if(E+(rt=f[T++])>d){L=(d-E)/rt;Object(s.quadraticSubdivide)(i,D,B,L,l),Object(s.quadraticSubdivide)(o,N,F,L,c),t.quadraticCurveTo(l[1],c[1],l[2],c[2]);break t}E+=rt}t.quadraticCurveTo(D,N,B,F),i=B,o=F;break;case u.A:var U=x[M++],G=x[M++],H=x[M++],W=x[M++],Y=x[M++],X=x[M++],$=x[M++],q=!x[M++],Z=H>W?H:W,K=b(H-W)>.001,Q=Y+X,J=!1;if(C)E+(rt=f[T++])>d&&(Q=Y+X*(d-E)/rt,J=!0),E+=rt;if(K&&t.ellipse?t.ellipse(U,G,H,W,$,Y,Q,q):t.arc(U,G,Z,Y,Q,q),J)break t;j&&(n=m(Y)*H+U,r=y(Y)*W+G),i=m(Q)*H+U,o=y(Q)*W+G;break;case u.R:n=i=x[M],r=o=x[M+1],a=x[M++],h=x[M++];var tt=x[M++],et=x[M++];if(C){if(E+(rt=f[T++])>d){var nt=d-E;t.moveTo(a,h),t.lineTo(a+g(nt,tt),h),(nt-=tt)>0&&t.lineTo(a+tt,h+g(nt,et)),(nt-=et)>0&&t.lineTo(a+v(tt-nt,0),h+et),(nt-=tt)>0&&t.lineTo(a,h+v(et-nt,0));break t}E+=rt}t.rect(a,h,tt,et);break;case u.Z:if(C){var rt;if(E+(rt=f[T++])>d){L=(d-E)/rt;t.lineTo(i*(1-L)+n*L,o*(1-L)+r*L);break t}E+=rt}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=u,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();e.default=E},function(t,e,n){"use strict";n.r(e),n.d(e,"BE_ORDINAL",(function(){return a})),n.d(e,"resetSourceDefaulter",(function(){return u})),n.d(e,"makeSeriesEncodeForAxisCoordSys",(function(){return l})),n.d(e,"makeSeriesEncodeForNameBased",(function(){return c})),n.d(e,"querySeriesUpstreamDatasetModel",(function(){return h})),n.d(e,"queryDatasetUpstreamDatasetModels",(function(){return f})),n.d(e,"guessOrdinal",(function(){return d}));var r=n(9),i=n(0),o=n(30),a={Must:1,Might:2,Not:3},s=Object(r.makeInner)();function u(t){s(t).datasetMap=Object(i.createHashMap)()}function l(t,e,n){var r={},o=h(e);if(!o||!t)return r;var a,u,l=[],c=[],f=e.ecModel,d=s(f).datasetMap,p=o.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(i.each)(t,(function(e,n){var o=Object(i.isObject)(e)?e:t[n]={name:e};"ordinal"===o.type&&null==a&&(a=n,u=m(o)),r[o.name]=[]}));var g=d.get(p)||d.set(p,{categoryWayDim:u,valueWayDim:0});function v(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function m(t){var e=t.dimsDef;return e?e.length:1}return Object(i.each)(t,(function(t,e){var n=t.name,i=m(t);if(null==a){var o=g.valueWayDim;v(r[n],o,i),v(c,o,i),g.valueWayDim+=i}else if(a===e)v(r[n],0,i),v(l,0,i);else{o=g.categoryWayDim;v(r[n],o,i),v(c,o,i),g.categoryWayDim+=i}})),l.length&&(r.itemName=l),c.length&&(r.seriesName=c),r}function c(t,e,n){var r={};if(!h(t))return r;var s,u=e.sourceFormat,l=e.dimensionsDefine;u!==o.SOURCE_FORMAT_OBJECT_ROWS&&u!==o.SOURCE_FORMAT_KEYED_COLUMNS||Object(i.each)(l,(function(t,e){"name"===(Object(i.isObject)(t)?t.name:t)&&(s=e)}));var c=function(){for(var t={},r={},i=[],o=0,c=Math.min(5,n);o<c;o++){var h=p(e.data,u,e.seriesLayoutBy,l,e.startIndex,o);i.push(h);var f=h===a.Not;if(f&&null==t.v&&o!==s&&(t.v=o),(null==t.n||t.n===t.v||!f&&i[t.n]===a.Not)&&(t.n=o),d(t)&&i[t.n]!==a.Not)return t;f||(h===a.Might&&null==r.v&&o!==s&&(r.v=o),null!=r.n&&r.n!==r.v||(r.n=o))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(r)?r:null}();if(c){r.value=[c.v];var f=null!=s?s:c.n;r.itemName=[f],r.seriesName=[f]}return r}function h(t){if(!t.get("data",!0))return Object(r.queryReferringComponents)(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},r.SINGLE_REFERRING).models[0]}function f(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Object(r.queryReferringComponents)(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},r.SINGLE_REFERRING).models:[]}function d(t,e){return p(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function p(t,e,n,s,u,l){var c,h,f;if(Object(i.isTypedArray)(t))return a.Not;if(s){var d=s[l];Object(i.isObject)(d)?(h=d.name,f=d.type):Object(i.isString)(d)&&(h=d)}if(null!=f)return"ordinal"===f?a.Must:a.Not;if(e===o.SOURCE_FORMAT_ARRAY_ROWS){var p=t;if(n===o.SERIES_LAYOUT_BY_ROW){for(var g=p[l],v=0;v<(g||[]).length&&v<5;v++)if(null!=(c=O(g[u+v])))return c}else for(v=0;v<p.length&&v<5;v++){var m=p[u+v];if(m&&null!=(c=O(m[l])))return c}}else if(e===o.SOURCE_FORMAT_OBJECT_ROWS){var y=t;if(!h)return a.Not;for(v=0;v<y.length&&v<5;v++){if((x=y[v])&&null!=(c=O(x[h])))return c}}else if(e===o.SOURCE_FORMAT_KEYED_COLUMNS){var b=t;if(!h)return a.Not;if(!(g=b[h])||Object(i.isTypedArray)(g))return a.Not;for(v=0;v<g.length&&v<5;v++)if(null!=(c=O(g[v])))return c}else if(e===o.SOURCE_FORMAT_ORIGINAL){var _=t;for(v=0;v<_.length&&v<5;v++){var x=_[v],w=Object(r.getDataItemValue)(x);if(!Object(i.isArray)(w))return a.Not;if(null!=(c=O(w[l])))return c}}function O(t){var e=Object(i.isString)(t);return null!=t&&isFinite(t)&&""!==t?e?a.Might:a.Not:e&&"-"!==t?a.Must:void 0}return a.Not}},function(t,e,n){"use strict";n.r(e),n.d(e,"isSourceInstance",(function(){return u})),n.d(e,"createSource",(function(){return l})),n.d(e,"createSourceFromSeriesDataOption",(function(){return c})),n.d(e,"cloneSourceShallow",(function(){return h})),n.d(e,"detectSourceFormat",(function(){return f})),n.d(e,"shouldRetrieveDataByName",(function(){return g}));var r=n(0),i=n(30),o=n(9),a=n(152),s=function(t){this.data=t.data||(t.sourceFormat===i.SOURCE_FORMAT_KEYED_COLUMNS?{}:[]),this.sourceFormat=t.sourceFormat||i.SOURCE_FORMAT_UNKNOWN,this.seriesLayoutBy=t.seriesLayoutBy||i.SERIES_LAYOUT_BY_COLUMN,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var r=e[n];null==r.type&&Object(a.guessOrdinal)(this,n)===a.BE_ORDINAL.Must&&(r.type="ordinal")}};function u(t){return t instanceof s}function l(t,e,n){n=n||f(t);var a=e.seriesLayoutBy,u=function(t,e,n,a,s){var u,l;if(!t)return{dimensionsDefine:d(s),startIndex:l,dimensionsDetectedCount:u};if(e===i.SOURCE_FORMAT_ARRAY_ROWS){var c=t;"auto"===a||null==a?p((function(t){null!=t&&"-"!==t&&(Object(r.isString)(t)?null==l&&(l=1):l=0)}),n,c,10):l=Object(r.isNumber)(a)?a:a?1:0,s||1!==l||(s=[],p((function(t,e){s[e]=null!=t?t+"":""}),n,c,1/0)),u=s?s.length:n===i.SERIES_LAYOUT_BY_ROW?c.length:c[0]?c[0].length:null}else if(e===i.SOURCE_FORMAT_OBJECT_ROWS)s||(s=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e){var i=[];return Object(r.each)(e,(function(t,e){i.push(e)})),i}}(t));else if(e===i.SOURCE_FORMAT_KEYED_COLUMNS)s||(s=[],Object(r.each)(t,(function(t,e){s.push(e)})));else if(e===i.SOURCE_FORMAT_ORIGINAL){var h=Object(o.getDataItemValue)(t[0]);u=Object(r.isArray)(h)&&h.length||1}else i.SOURCE_FORMAT_TYPED_ARRAY;return{startIndex:l,dimensionsDefine:d(s),dimensionsDetectedCount:u}}(t,n,a,e.sourceHeader,e.dimensions);return new s({data:t,sourceFormat:n,seriesLayoutBy:a,dimensionsDefine:u.dimensionsDefine,startIndex:u.startIndex,dimensionsDetectedCount:u.dimensionsDetectedCount,metaRawOption:Object(r.clone)(e)})}function c(t){return new s({data:t,sourceFormat:Object(r.isTypedArray)(t)?i.SOURCE_FORMAT_TYPED_ARRAY:i.SOURCE_FORMAT_ORIGINAL})}function h(t){return new s({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Object(r.clone)(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function f(t){var e=i.SOURCE_FORMAT_UNKNOWN;if(Object(r.isTypedArray)(t))e=i.SOURCE_FORMAT_TYPED_ARRAY;else if(Object(r.isArray)(t)){0===t.length&&(e=i.SOURCE_FORMAT_ARRAY_ROWS);for(var n=0,o=t.length;n<o;n++){var a=t[n];if(null!=a){if(Object(r.isArray)(a)){e=i.SOURCE_FORMAT_ARRAY_ROWS;break}if(Object(r.isObject)(a)){e=i.SOURCE_FORMAT_OBJECT_ROWS;break}}}}else if(Object(r.isObject)(t))for(var s in t)if(Object(r.hasOwn)(t,s)&&Object(r.isArrayLike)(t[s])){e=i.SOURCE_FORMAT_KEYED_COLUMNS;break}return e}function d(t){if(t){var e=Object(r.createHashMap)();return Object(r.map)(t,(function(t,n){var i={name:(t=Object(r.isObject)(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var o=e.get(i.name);return o?i.name+="-"+o.count++:e.set(i.name,{count:1}),i}))}}function p(t,e,n,r){if(e===i.SERIES_LAYOUT_BY_ROW)for(var o=0;o<n.length&&o<r;o++)t(n[o]?n[o][0]:null,o);else{var a=n[0]||[];for(o=0;o<a.length&&o<r;o++)t(a[o],o)}}function g(t){var e=t.sourceFormat;return e===i.SOURCE_FORMAT_OBJECT_ROWS||e===i.SOURCE_FORMAT_KEYED_COLUMNS}},function(t,e,n){"use strict";n.r(e),n.d(e,"retrieveTargetInfo",(function(){return i})),n.d(e,"getPathToRoot",(function(){return o})),n.d(e,"aboveViewRoot",(function(){return a})),n.d(e,"wrapTreePathInfo",(function(){return s}));var r=n(0);function i(t,e,n){if(t&&r.indexOf(e,t.type)>=0){var i=n.getData().tree.root,o=t.targetNode;if(r.isString(o)&&(o=i.getNodeById(o)),o&&i.contains(o))return{node:o};var a=t.targetNodeId;if(null!=a&&(o=i.getNodeById(a)))return{node:o}}}function o(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function a(t,e){var n=o(t);return r.indexOf(n,e)>=0}function s(t,e){for(var n=[];t;){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_ANIMATE_CFG",(function(){return s})),n.d(e,"getDefaultAnimateCfg",(function(){return c})),n.d(e,"doAnimate",(function(){return h})),n.d(e,"doGroupAppearAnimate",(function(){return f}));var r=n(2),i=n(1),o=n(7),a=n(467),s={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},u={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},l={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){return{animation:t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function c(t,e,n){var r=u[t];return r&&(Object(i.isFunction)(r)&&(r=r(e)),r=Object(i.deepMix)({},s,r),n)?r[n]:r}function h(t,e,n){var r=Object(i.get)(t.get("origin"),"data",o.FIELD_ORIGIN),s=e.animation,u=function(t,e){return{delay:Object(i.isFunction)(t.delay)?t.delay(e):t.delay,easing:Object(i.isFunction)(t.easing)?t.easing(e):t.easing,duration:Object(i.isFunction)(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}(e,r);if(s){var l=Object(a.getAnimation)(s);l&&l(t,u,n)}else t.animate(n.toAttrs,u)}function f(t,e,n,o,u){if(l[n]){var c=l[n](o),h=Object(a.getAnimation)(Object(i.get)(c,"animation",""));if(h){var f=Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},s.appear),c),e);t.stopAnimate(),h(t,f,{coordinate:o,minYPoint:u,toAttrs:null})}}}},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"InteractionEvent",(function(){return r})),function(t){t.Hover="hover",t.Click="click",t.Select="select",t.Active="active",t.Drag="drag"}(r||(r={}))},function(t,e,n){"use strict";n.r(e),n.d(e,"LineShape",(function(){return s}));var r=n(66),i=n(36),o=n(394),a={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},u=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,r,i,s;if(this.subPixelOptimize){var u=Object(o.subPixelOptimizeLine)(a,e,this.style);n=u.x1,r=u.y1,i=u.x2,s=u.y2}else n=e.x1,r=e.y1,i=e.x2,s=e.y2;var l=e.percent;0!==l&&(t.moveTo(n,r),l<1&&(i=n*(1-l)+i*l,s=r*(1-l)+s*l),t.lineTo(i,s))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(i.default);u.prototype.type="line",e.default=u},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"RANGE_VALUE",(function(){return i})),n.d(e,"RANGE_TYPE",(function(){return o})),n.d(e,"PERCENT",(function(){return a})),n.d(e,"DEFAULT_COLOR",(function(){return s})),n.d(e,"INDICATEOR_VIEW_ID",(function(){return u})),n.d(e,"RANGE_VIEW_ID",(function(){return l})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var i="range",o="type",a="percent",s="#f0f0f0",u="indicator-view",l="range-view",c={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(r={},r[i]={sync:"v"},r[a]={sync:"v",tickCount:5,tickInterval:.2},r),animation:!1}},function(t,e,n){"use strict";n.r(e),n.d(e,"parentNode",(function(){return s})),n.d(e,"style",(function(){return u})),n.d(e,"clientRegion",(function(){return l})),n.d(e,"offsetRegion",(function(){return c})),n.d(e,"scrollRegion",(function(){return h})),n.d(e,"classList",(function(){return f}));var r=n(443),i=r.screen.availWidth,o=r.screen.availHeight,a={style:[]};function s(t,e){var n,r;"parentNode"in t||(n=0===e?function(){return null}:1===e?function(){return a}:function(){return null},Object.defineProperty(t,"parentNode",{enumerable:!0,get:n}));"parentElement"in t||(r=0===e?function(){return null}:1===e?function(){return a}:function(){return null},Object.defineProperty(t,"parentElement",{enumerable:!0,get:r}))}function u(t){t.style=t.style||{},Object.assign(t.style,{top:"0px",left:"0px",width:i+"px",height:o+"px",margin:"0px",padding:"0px"})}function l(t){"clientLeft"in t||(t.clientLeft=0,t.clientTop=0),"clientWidth"in t||(t.clientWidth=i,t.clientHeight=o),"getBoundingClientRect"in t||(t.getBoundingClientRect=function(){return{x:0,y:0,top:0,left:0,width:this.clientWidth,height:this.clientHeight,right:this.clientWidth,bottom:this.clientHeight}})}function c(t){"offsetLeft"in t||(t.offsetLeft=0,t.offsetTop=0),"offsetWidth"in t||(t.offsetWidth=i,t.offsetHeight=o)}function h(t){"scrollLeft"in t||(t.scrollLeft=0,t.scrollTop=0),"scrollWidth"in t||(t.scrollWidth=i,t.scrollHeight=o)}function f(t){var e=function(){return!0};t.classList=[],t.classList.add=e,t.classList.remove=e,t.classList.contains=e,t.classList.toggle=e}},function(t,e,n){"use strict";n.r(e),n.d(e,"parentNode",(function(){return s})),n.d(e,"style",(function(){return u})),n.d(e,"clientRegion",(function(){return l})),n.d(e,"offsetRegion",(function(){return c})),n.d(e,"scrollRegion",(function(){return h})),n.d(e,"classList",(function(){return f}));var r=n(444),i=r.screen.availWidth,o=r.screen.availHeight,a={style:[]};function s(t,e){var n,r;"parentNode"in t||(n=0===e?function(){return null}:1===e?function(){return a}:function(){return null},Object.defineProperty(t,"parentNode",{enumerable:!0,get:n}));"parentElement"in t||(r=0===e?function(){return null}:1===e?function(){return a}:function(){return null},Object.defineProperty(t,"parentElement",{enumerable:!0,get:r}))}function u(t){t.style=t.style||{},Object.assign(t.style,{top:"0px",left:"0px",width:i+"px",height:o+"px",margin:"0px",padding:"0px"})}function l(t){"clientLeft"in t||(t.clientLeft=0,t.clientTop=0),"clientWidth"in t||(t.clientWidth=i,t.clientHeight=o),"getBoundingClientRect"in t||(t.getBoundingClientRect=function(){return{x:0,y:0,top:0,left:0,width:this.clientWidth,height:this.clientHeight,right:this.clientWidth,bottom:this.clientHeight}})}function c(t){"offsetLeft"in t||(t.offsetLeft=0,t.offsetTop=0),"offsetWidth"in t||(t.offsetWidth=i,t.offsetHeight=o)}function h(t){"scrollLeft"in t||(t.scrollLeft=0,t.scrollTop=0),"scrollWidth"in t||(t.scrollWidth=i,t.scrollHeight=o)}function f(t){var e=function(){return!0};t.classList=[],t.classList.add=e,t.classList.remove=e,t.classList.contains=e,t.classList.toggle=e}},function(t,e,n){"use strict";function r(t){return document.createTextNode(t)}function i(t){return document.createComment(t)}function o(t,e,n){t.insertBefore(e,n)}function a(t,e){t.removeChild(e)}function s(t,e){t.appendChild(e)}function u(t){return t.parentNode}function l(t){return t.nextSibling}function c(t){return t.tagName}function h(t,e){t.textContent=e}function f(t){return t.textContent}function d(t){return 1===t.nodeType}function p(t){return 3===t.nodeType}function g(t){return 8===t.nodeType}n.r(e),n.d(e,"createTextNode",(function(){return r})),n.d(e,"createComment",(function(){return i})),n.d(e,"insertBefore",(function(){return o})),n.d(e,"removeChild",(function(){return a})),n.d(e,"appendChild",(function(){return s})),n.d(e,"parentNode",(function(){return u})),n.d(e,"nextSibling",(function(){return l})),n.d(e,"tagName",(function(){return c})),n.d(e,"setTextContent",(function(){return h})),n.d(e,"getTextContent",(function(){return f})),n.d(e,"isElement",(function(){return d})),n.d(e,"isText",(function(){return p})),n.d(e,"isComment",(function(){return g}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return I}));var r,i,o,a,s,u=n(47),l=n.n(u),c=n(16),h=n.n(c),f=n(17),d=n.n(f),p=n(4),g=n.n(p),v=n(44),m=n.n(v),y=(n(196),n(878)),b=n.n(y),_=n(273),x=n.n(_),w=n(1805),O=n.n(w),S=n(21),C=(n(94),n(93)),E=n(29),T=n(220);function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){g()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var I=(r=Object(S.injectable)(),i=Object(S.inject)(E.TYPES.IShaderModuleService),r((a=function(){function t(){h()(this,t),l()(this,"shaderModuleService",s,this),g()(this,"rendererService",void 0),g()(this,"config",void 0),g()(this,"quad","attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}"),g()(this,"enabled",!0),g()(this,"renderToScreen",!1),g()(this,"model",void 0),g()(this,"name",void 0),g()(this,"optionsToUpdate",{})}return d()(t,[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(t){this.name=t}},{key:"getType",value:function(){return T.PassType.PostProcessing}},{key:"init",value:function(t,e){this.config=e,this.rendererService=t.getContainer().get(E.TYPES.IRendererService),this.shaderModuleService=t.getContainer().get(E.TYPES.IShaderModuleService);var n=this.rendererService,r=n.createAttribute,i=n.createBuffer,o=n.createModel,a=this.setupShaders(),s=a.vs,u=a.fs,l=a.uniforms;this.model=o({vs:s,fs:u,attributes:{a_Position:r({buffer:i({data:[-4,-4,4,-4,0,4],type:C.gl.FLOAT}),size:2})},uniforms:M(M({u_Texture:null},l),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:"copy"===this.getName()}})}},{key:"render",value:function(t,e){var n=this,r=t.multiPassRenderer.getPostProcessor(),i=this.rendererService,o=i.useFramebuffer,a=i.getViewportSize,s=i.clear,u=a(),l=u.width,c=u.height;o(this.renderToScreen?null:r.getWriteFBO(),(function(){s({framebuffer:r.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var t=M({u_BloomFinal:0,u_Texture:r.getReadFBO(),u_ViewportSize:[l,c]},n.convertOptionsToUniforms(n.optionsToUpdate));e&&(t.u_BloomFinal=1,t.u_Texture2=e),n.model.draw({uniforms:t})}))}},{key:"isEnabled",value:function(){return this.enabled}},{key:"setEnabled",value:function(t){this.enabled=t}},{key:"setRenderToScreen",value:function(t){this.renderToScreen=t}},{key:"updateOptions",value:function(t){this.optionsToUpdate=M(M({},this.optionsToUpdate),t)}},{key:"setupShaders",value:function(){throw new Error("Method not implemented.")}},{key:"convertOptionsToUniforms",value:function(t){var e={};return Object.keys(t).forEach((function(n){x()(t[n])||(e["u_".concat(b()(O()(n)))]=t[n])})),e}}]),t}(),s=m()(a.prototype,"shaderModuleService",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=a))||o)},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(118),o=n(259),a=n(356),s=n(9),u=n(295),l=n(1356),c=n(153),h=n(147),f=n(152),d=n(30);e.default=function(t,e,n){n=n||{};var p,g=e.getSourceManager(),v=!1;t?(v=!0,p=Object(c.createSourceFromSeriesDataOption)(t)):v=(p=g.getSource()).sourceFormat===d.SOURCE_FORMAT_ORIGINAL;var m=Object(l.getCoordSysInfoBySeries)(e),y=function(t,e){var n,i=t.get("coordinateSystem"),o=u.default.get(i);return e&&e.coordSysDims&&(n=r.map(e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=Object(a.getDimensionTypeByAxis)(i)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}(e,m),b=n.useEncodeDefaulter,_=r.isFunction(b)?b:b?r.curry(f.makeSeriesEncodeForAxisCoordSys,y,e):null,x={coordDimensions:y,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:_,canOmitUnusedDimensions:!v},w=Object(o.default)(p,x),O=function(t,e,n){var i,o;return n&&r.each(t,(function(t,r){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=r),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(o=!0)})),o||null==i||(t[i].otherDims.itemName=0),i}(w.dimensions,n.createInvertedIndices,m),S=v?null:g.getSharedDataStore(w),C=Object(h.enableDataStack)(e,{schema:w,store:S}),E=new i.default(w,e);E.setCalculationInfo(C);var T=null!=O&&function(t){if(t.sourceFormat===d.SOURCE_FORMAT_ORIGINAL){var e=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!r.isArray(Object(s.getDataItemValue)(e))}}(p)?function(t,e,n,r){return r===O?n:this.defaultDimValueGetter(t,e,n,r)}:null;return E.hasItemOption=!1,E.initData(v?p:S,null,T),E}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(6),o=n(796),a=[0,1],s=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Object(i.getPixelPrecision)(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&u(n=n.slice(),r.count()),Object(i.linearMap)(t,a,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&u(n=n.slice(),r.count());var o=Object(i.linearMap)(t,n,a,e);return this.scale.scale(o)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=Object(o.createAxisTicks)(this,e).ticks,a=Object(r.map)(n,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,o){var a=e.length;if(!t.onBand||n||!a)return;var s,u,l=t.getExtent();if(1===a)e[0].coord=l[0],s=e[1]={coord:l[0]};else{var c=e[a-1].tickValue-e[0].tickValue,h=(e[a-1].coord-e[0].coord)/c;Object(r.each)(e,(function(t){t.coord-=h/2}));var f=t.scale.getExtent();u=1+f[1]-e[a-1].tickValue,s={coord:e[a-1].coord+h*u},e.push(s)}var d=l[0]>l[1];p(e[0].coord,l[0])&&(o?e[0].coord=l[0]:e.shift());o&&p(l[0],e[0].coord)&&e.unshift({coord:l[0]});p(l[1],s.coord)&&(o?s.coord=l[1]:e.pop());o&&p(s.coord,l[1])&&e.push({coord:l[1]});function p(t,e){return t=Object(i.round)(t),e=Object(i.round)(e),d?t>e:t<e}}(this,a,e.get("alignWithLabel"),t.clamp),a},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t>0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return Object(r.map)(e,(function(t){return Object(r.map)(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return Object(o.createAxisLabels)(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return Object(o.calculateCategoryInterval)(this)},t}();function u(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"parseDataValue",(function(){return a})),n.d(e,"getRawValueParser",(function(){return u})),n.d(e,"SortOrderComparator",(function(){return h})),n.d(e,"createFilterComparator",(function(){return d}));var r=n(6),i=n(0),o=n(38);function a(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Object(i.isNumber)(t)||null==t||"-"===t||(t=+Object(r.parseDate)(t)),null==t||""===t?NaN:+t)}var s=Object(i.createHashMap)({number:function(t){return parseFloat(t)},time:function(t){return+Object(r.parseDate)(t)},trim:function(t){return Object(i.isString)(t)?Object(i.trim)(t):t}});function u(t){return s.get(t)}var l={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},c=function(){function t(t,e){if(!Object(i.isNumber)(e)){0,Object(o.throwError)("")}this._opFn=l[t],this._rvalFloat=Object(r.numericToNumber)(e)}return t.prototype.evaluate=function(t){return Object(i.isNumber)(t)?this._opFn(t,this._rvalFloat):this._opFn(Object(r.numericToNumber)(t),this._rvalFloat)},t}(),h=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(i.isNumber)(t)?t:Object(r.numericToNumber)(t),o=Object(i.isNumber)(e)?e:Object(r.numericToNumber)(e),a=isNaN(n),s=isNaN(o);if(a&&(n=this._incomparable),s&&(o=this._incomparable),a&&s){var u=Object(i.isString)(t),l=Object(i.isString)(e);u&&(n=l?t:0),l&&(o=u?e:0)}return n<o?this._resultLT:n>o?-this._resultLT:0},t}(),f=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Object(r.numericToNumber)(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Object(r.numericToNumber)(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function d(t,e){return"eq"===t||"ne"===t?new f("eq"===t,e):Object(i.hasOwn)(l,t)?new c(t,e):null}},function(t,e,n){"use strict";n.r(e),n.d(e,"debugMode",(function(){return i})),n.d(e,"devicePixelRatio",(function(){return o})),n.d(e,"DARK_MODE_THRESHOLD",(function(){return a})),n.d(e,"DARK_LABEL_COLOR",(function(){return s})),n.d(e,"LIGHT_LABEL_COLOR",(function(){return u})),n.d(e,"LIGHTER_LABEL_COLOR",(function(){return l}));var r=1;n(54).default.hasGlobalWindow&&(r=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var i=0,o=r,a=.4,s="#333",u="#ccc",l="#eee"},function(t,e,n){"use strict";function r(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(t){}finally{r=void 0===r?n:r}return r}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";var r,i;n.r(e),n.d(e,"UpdateTileStrategy",(function(){return r})),n.d(e,"LoadTileDataStatus",(function(){return i})),function(t){t.Realtime="realtime",t.Overlap="overlap",t.Replace="replace"}(r||(r={})),function(t){t.Loading="Loading",t.Loaded="Loaded",t.Failure="Failure",t.Cancelled="Cancelled"}(i||(i={}))},function(t,e,n){"use strict";n.r(e),n.d(e,"buildElStyle",(function(){return h})),n.d(e,"buildLabelElOption",(function(){return f})),n.d(e,"getValueLabel",(function(){return d})),n.d(e,"getTransformedPosition",(function(){return p})),n.d(e,"buildCartesianSingleLabelElOption",(function(){return g})),n.d(e,"makeLineShape",(function(){return v})),n.d(e,"makeRectShape",(function(){return m})),n.d(e,"makeSectorShape",(function(){return y}));var r=n(0),i=n(12),o=n(60),a=n(71),s=n(42),u=n(85),l=n(186),c=n(27);function h(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle()).fill=null:"shadow"===n&&((e=r.getAreaStyle()).stroke=null),e}function f(t,e,n,r,i){var s=d(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),u=n.getModel("label"),l=a.normalizeCssArray(u.get("padding")||0),h=u.getFont(),f=o.getBoundingRect(s,h),p=i.position,g=f.width+l[1]+l[3],v=f.height+l[0]+l[2],m=i.align;"right"===m&&(p[0]-=g),"center"===m&&(p[0]-=g/2);var y=i.verticalAlign;"bottom"===y&&(p[1]-=v),"middle"===y&&(p[1]-=v/2),function(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(p,g,v,r);var b=u.get("backgroundColor");b&&"auto"!==b||(b=e.get(["axisLine","lineStyle","color"])),t.label={x:p[0],y:p[1],style:Object(c.createTextStyle)(u,{text:s,font:h,fill:u.getTextColor(),padding:l,backgroundColor:b}),z2:10}}function d(t,e,n,i,o){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:o.precision}),s=o.formatter;if(s){var l={value:u.getAxisRawValue(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};r.each(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&l.seriesData.push(i)})),r.isString(s)?a=s.replace("{value}",a):r.isFunction(s)&&(a=s(l))}return a}function p(t,e,n){var r=s.create();return s.rotate(r,r,n.rotation),s.translate(r,r,n.position),i.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function g(t,e,n,r,i,o){var a=l.default.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),f(e,r,i,o,{position:p(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function v(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function m(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function y(t,e,n,r,i,o){return{cx:t,cy:e,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}},function(t,e,n){"use strict";n.r(e);var r=n(145);e.default=function(t){return Object(r.default)(t,"String")}},function(t,e,n){"use strict";n.r(e),n.d(e,"inferScaleType",(function(){return l})),n.d(e,"createScaleByField",(function(){return c})),n.d(e,"syncScale",(function(){return h})),n.d(e,"getName",(function(){return f})),n.d(e,"getDefaultCategoryScaleRange",(function(){return d})),n.d(e,"getMaxScale",(function(){return p}));var r=n(2),i=n(1),o=n(7),a=n(97),s=n(98),u=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function l(t,e,n,r){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&o.GROUP_ATTRS.includes(n)&&["interval"].includes(r)||t.isCategory?"cat":t.type}function c(t,e,n){var o=e||[];if(Object(i.isNumber)(t)||Object(i.isNil)(Object(i.firstValue)(o,t))&&Object(i.isEmpty)(n))return new(Object(a.getScale)("identity"))({field:t.toString(),values:[t]});var s=Object(i.valuesOfKey)(o,t),l=Object(i.get)(n,"type",function(t){var e="linear";return u.test(t)?e="timeCat":Object(i.isString)(t)&&(e="cat"),e}(s[0]));return new(Object(a.getScale)(l))(Object(r.__assign)({field:t,values:s},n))}function h(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);t.change(n)}}function f(t){return t.alias||t.field}function d(t,e,n){var r,o=t.values.length;if(1===o)r=[.5,1];else{var a=0;r=Object(s.isFullCircle)(e)?e.isTransposed?[(a=1/o*Object(i.get)(n,"widthRatio.multiplePie",1/1.3))/2,1-a/2]:[0,1-1/o]:[a=1/o/2,1-a]}return r}function p(t){var e=t.values.filter((function(t){return!Object(i.isNil)(t)&&!isNaN(t)}));return Math.max.apply(Math,Object(r.__spreadArray)(Object(r.__spreadArray)([],Object(r.__read)(e),!1),[Object(i.isNil)(t.max)?-1/0:t.max],!1))}},function(t,e,n){"use strict";n.r(e),n.d(e,"DATA_ZOOM_AXIS_DIMENSIONS",(function(){return i})),n.d(e,"isCoordSupported",(function(){return a})),n.d(e,"getAxisMainType",(function(){return s})),n.d(e,"getAxisIndexPropName",(function(){return u})),n.d(e,"getAxisIdPropName",(function(){return l})),n.d(e,"findEffectedDataZooms",(function(){return c})),n.d(e,"collectReferCoordSysModelInfo",(function(){return h}));var r=n(0),i=["x","y","radius","angle","single"],o=["cartesian2d","polar","singleAxis"];function a(t){var e=t.get("coordinateSystem");return Object(r.indexOf)(o,e)>=0}function s(t){return t+"Axis"}function u(t){return t+"AxisIndex"}function l(t){return t+"AxisId"}function c(t,e){var n,i=Object(r.createHashMap)(),o=[],a=Object(r.createHashMap)();t.eachComponent({mainType:"dataZoom",query:e},(function(t){a.get(t.uid)||u(t)}));do{n=!1,t.eachComponent("dataZoom",s)}while(n);function s(t){!a.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}(t)&&(u(t),n=!0)}function u(t){a.set(t.uid,!0),o.push(t),t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return o}function h(t){var e=t.ecModel,n={infoList:[],infoMap:Object(r.createHashMap)()};return t.eachTargetAxis((function(t,r){var i=e.getComponent(s(t),r);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,u=n.infoMap.get(a);u||(u={model:o,axisModels:[]},n.infoList.push(u),n.infoMap.set(a,u)),u.axisModels.push(i)}}})),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"fromValues",(function(){return a})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return u})),n.d(e,"add",(function(){return l})),n.d(e,"subtract",(function(){return c})),n.d(e,"multiply",(function(){return h})),n.d(e,"divide",(function(){return f})),n.d(e,"ceil",(function(){return d})),n.d(e,"floor",(function(){return p})),n.d(e,"min",(function(){return g})),n.d(e,"max",(function(){return v})),n.d(e,"round",(function(){return m})),n.d(e,"scale",(function(){return y})),n.d(e,"scaleAndAdd",(function(){return b})),n.d(e,"distance",(function(){return _})),n.d(e,"squaredDistance",(function(){return x})),n.d(e,"length",(function(){return w})),n.d(e,"squaredLength",(function(){return O})),n.d(e,"negate",(function(){return S})),n.d(e,"inverse",(function(){return C})),n.d(e,"normalize",(function(){return E})),n.d(e,"dot",(function(){return T})),n.d(e,"cross",(function(){return A})),n.d(e,"lerp",(function(){return M})),n.d(e,"random",(function(){return I})),n.d(e,"transformMat4",(function(){return j})),n.d(e,"transformQuat",(function(){return k})),n.d(e,"zero",(function(){return P})),n.d(e,"str",(function(){return L})),n.d(e,"exactEquals",(function(){return R})),n.d(e,"equals",(function(){return D})),n.d(e,"sub",(function(){return B})),n.d(e,"mul",(function(){return F})),n.d(e,"div",(function(){return z})),n.d(e,"dist",(function(){return V})),n.d(e,"sqrDist",(function(){return U})),n.d(e,"len",(function(){return G})),n.d(e,"sqrLen",(function(){return H})),n.d(e,"forEach",(function(){return W}));var r=n(22);function i(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function o(t){var e=new r.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function a(t,e,n,i){var o=new r.ARRAY_TYPE(4);return o[0]=t,o[1]=e,o[2]=n,o[3]=i,o}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function u(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function d(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t}function p(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function m(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function b(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t}function _(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return Math.hypot(n,r,i,o)}function x(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return n*n+r*r+i*i+o*o}function w(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.hypot(e,n,r,i)}function O(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}function S(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}function C(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}function E(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o;return a>0&&(a=1/Math.sqrt(a)),t[0]=n*a,t[1]=r*a,t[2]=i*a,t[3]=o*a,t}function T(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function A(t,e,n,r){var i=n[0]*r[1]-n[1]*r[0],o=n[0]*r[2]-n[2]*r[0],a=n[0]*r[3]-n[3]*r[0],s=n[1]*r[2]-n[2]*r[1],u=n[1]*r[3]-n[3]*r[1],l=n[2]*r[3]-n[3]*r[2],c=e[0],h=e[1],f=e[2],d=e[3];return t[0]=h*l-f*u+d*s,t[1]=-c*l+f*a-d*o,t[2]=c*u-h*a+d*i,t[3]=-c*s+h*o-f*i,t}function M(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t[3]=s+r*(n[3]-s),t}function I(t,e){var n,i,o,a,s,u;e=e||1;do{s=(n=2*r.RANDOM()-1)*n+(i=2*r.RANDOM()-1)*i}while(s>=1);do{u=(o=2*r.RANDOM()-1)*o+(a=2*r.RANDOM()-1)*a}while(u>=1);var l=Math.sqrt((1-s)/u);return t[0]=e*n,t[1]=e*i,t[2]=e*o*l,t[3]=e*a*l,t}function j(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,t}function k(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],u=n[2],l=n[3],c=l*r+s*o-u*i,h=l*i+u*r-a*o,f=l*o+a*i-s*r,d=-a*r-s*i-u*o;return t[0]=c*l+d*-a+h*-u-f*-s,t[1]=h*l+d*-s+f*-a-c*-u,t[2]=f*l+d*-u+c*-s-h*-a,t[3]=e[3],t}function P(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}function L(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function R(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function D(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=e[0],u=e[1],l=e[2],c=e[3];return Math.abs(n-s)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-u)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(o-l)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(a-c)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(c))}var N,B=c,F=h,z=f,V=_,U=x,G=w,H=O,W=(N=i(),function(t,e,n,r,i,o){var a,s;for(e||(e=4),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a<s;a+=e)N[0]=t[a],N[1]=t[a+1],N[2]=t[a+2],N[3]=t[a+3],i(N,N,o),t[a]=N[0],t[a+1]=N[1],t[a+2]=N[2],t[a+3]=N[3];return t})},function(t,e,n){"use strict";function r(){return"object"==typeof window?null===window||void 0===window?void 0:window.devicePixelRatio:2}function i(t,e){void 0===e&&(e=t);var n=document.createElement("canvas"),i=r();return n.width=t*i,n.height=e*i,n.style.width=t+"px",n.style.height=e+"px",n.getContext("2d").scale(i,i),n}function o(t,e,n,r){void 0===r&&(r=n);var i=e.backgroundColor,o=e.opacity;t.globalAlpha=o,t.fillStyle=i,t.beginPath(),t.fillRect(0,0,n,r),t.closePath()}function a(t,e,n){var r=t+e;return n?2*r:r}function s(t,e){return e?[[t*(1/4),t*(1/4)],[t*(3/4),t*(3/4)]]:[[.5*t,.5*t]]}function u(t,e){var n=e*Math.PI/180;return{a:Math.cos(n)*(1/t),b:Math.sin(n)*(1/t),c:-Math.sin(n)*(1/t),d:Math.cos(n)*(1/t),e:0,f:0}}n.r(e),n.d(e,"getPixelRatio",(function(){return r})),n.d(e,"initCanvas",(function(){return i})),n.d(e,"drawBackground",(function(){return o})),n.d(e,"getUnitPatternSize",(function(){return a})),n.d(e,"getSymbolsPosition",(function(){return s})),n.d(e,"transformMatrix",(function(){return u}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NON_CUSTOM_TAG_KEYS=e.POST_CONSTRUCT=e.DESIGN_PARAM_TYPES=e.PARAM_TYPES=e.TAGGED_PROP=e.TAGGED=e.MULTI_INJECT_TAG=e.INJECT_TAG=e.OPTIONAL_TAG=e.UNMANAGED_TAG=e.NAME_TAG=e.NAMED_TAG=void 0,e.NAMED_TAG="named",e.NAME_TAG="name",e.UNMANAGED_TAG="unmanaged",e.OPTIONAL_TAG="optional",e.INJECT_TAG="inject",e.MULTI_INJECT_TAG="multi_inject",e.TAGGED="inversify:tagged",e.TAGGED_PROP="inversify:tagged_props",e.PARAM_TYPES="inversify:paramtypes",e.DESIGN_PARAM_TYPES="design:paramtypes",e.POST_CONSTRUCT="post_construct",e.NON_CUSTOM_TAG_KEYS=[e.INJECT_TAG,e.MULTI_INJECT_TAG,e.NAME_TAG,e.UNMANAGED_TAG,e.NAMED_TAG,e.OPTIONAL_TAG]},function(t,e,n){"use strict";n.r(e);var r=n(986);n.d(e,"Chart",(function(){return r.default}));var i=n(554);n.d(e,"View",(function(){return i.default})),n.d(e,"registerGeometry",(function(){return i.registerGeometry}));var o=n(276);n.d(e,"Event",(function(){return o.default}));var a=n(563);n.d(e,"registerComponentController",(function(){return a.registerComponentController}))},function(t,e,n){"use strict";n.r(e);var r=n(145);e.default=function(t){return Object(r.default)(t,"Number")}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(455),o=n(415),a=n(1),s=n(155),u=n(487),l=n(7),c=n(86),h=n(468),f=n(351),d=n(39),p=n(1605),g=n(739),v=n(533),m=n(740),y=n(171),b=n(98),_=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var r=e.container,i=e.labelsContainer,o=e.coordinate,a=e.data,s=e.sortable,u=void 0!==s&&s,l=e.visible,c=void 0===l||l,h=e.theme,f=e.scales,d=void 0===f?{}:f,p=e.scaleDefs,g=void 0===p?{}:p,v=e.intervalPadding,m=e.dodgePadding,y=e.maxColumnWidth,b=e.minColumnWidth,_=e.columnWidthRatio,x=e.roseWidthRatio,w=e.multiplePieWidthRatio,O=e.zIndexReversed,S=e.sortZIndex,C=e.useDeferredLabel;return n.container=r,n.labelsContainer=i,n.coordinate=o,n.data=a,n.sortable=u,n.visible=c,n.userTheme=h,n.scales=d,n.scaleDefs=g,n.intervalPadding=v,n.dodgePadding=m,n.maxColumnWidth=y,n.minColumnWidth=b,n.columnWidthRatio=_,n.roseWidthRatio=x,n.multiplePieWidthRatio=w,n.zIndexReversed=O,n.sortZIndex=S,n.useDeferredLabel=C?"number"==typeof C?C:1/0:null,n}return Object(r.__extends)(e,t),e.prototype.position=function(t){var e=t;Object(a.isPlainObject)(t)||(e={fields:Object(v.parseFields)(t)});var n=Object(a.get)(e,"fields");return 1===n.length&&(n.unshift("1"),Object(a.set)(e,"fields",n)),Object(a.set)(this.attributeOption,"position",e),this},e.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},e.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},e.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},e.prototype.adjust=function(t){var e=t;return(Object(a.isString)(t)||Object(a.isPlainObject)(t))&&(e=[t]),Object(a.each)(e,(function(t,n){Object(a.isObject)(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if(Object(a.isString)(t)){var n=Object(v.parseFields)(t);this.styleOption={fields:n,callback:e}}else{var r=t,i=(n=r.fields,r.callback),o=r.cfg;this.styleOption=n||i||o?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if(Object(a.isString)(t)){var n=Object(v.parseFields)(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if(Object(a.isString)(t)){var r={},i=Object(v.parseFields)(t);r.fields=i,Object(a.isFunction)(e)?r.callback=e:Object(a.isPlainObject)(e)&&(r.cfg=e),n&&(r.cfg=n),this.labelOption=r}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.customInfo=function(t){return this.customOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,r=t.isCoordinateChanged,i=this.attributeOption,o=this.lastAttributeOption;Object(a.isEqual)(i,o)?!e||!n&&Object(a.isEqual)(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=r},e.prototype.paint=function(t){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=Object(a.deepMix)({},Object(s.getDefaultAnimateCfg)(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var n=this.beforeMappingData,i=this.beforeMapping(n);this.dataArray=new Array(i.length);for(var o=0;o<i.length;o++){var u=i[o];this.dataArray[o]=this.mapping(u)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var l=this.container,c=this.type,h=this.coordinate,f=Object(a.get)(this.animateOption,"appear"),d=this.getYScale(),p=h.convert({x:0,y:d.scale(this.getYMinValue())});Object(s.doGroupAppearAnimate)(l,f,c,h,p)}if(this.labelOption){var g=this.useDeferredLabel,v=function(){return e.renderLabels(Object(a.flatten)(e.dataArray),t)}.bind(this);if("number"==typeof g){var m="number"==typeof g&&g!==1/0?g:0;if(window.requestIdleCallback){var y=m&&m!==1/0?{timeout:m}:void 0;window.requestIdleCallback(v,y)}else setTimeout(v,m)}else v()}this.lastAttributeOption=Object(r.__assign)({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this.container,e=this.geometryLabel,n=this.offscreenGroup;t&&t.clear(),e&&e.clear(),n&&n.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},e.prototype.destroy=function(){this.clear(),this.container.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,t.prototype.destroy.call(this)},e.prototype.getGroupScales=function(){return this.groupScales},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},e.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},e.prototype.getGroupAttributes=function(){var t=[];return Object(a.each)(this.attributes,(function(e){l.GROUP_ATTRS.includes(e.type)&&t.push(e)})),t},e.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&Object(a.isEmpty)(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],i=t.scales,o=0,a=i.length;o<a;o++){var s=i[o],u=s.field;s.isIdentity?n.push(s.values):n.push(e[u])}return t.mapping.apply(t,Object(r.__spreadArray)([],Object(r.__read)(n),!1))},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.getData=function(){return this.data},e.prototype.getShapeMarker=function(t,e){return this.getShapeFactory().getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},e.prototype.getElements=function(){return this.elements},e.prototype.getElementId=function(t){var e=(t=Object(a.isArray)(t)?t[0]:t)[l.FIELD_ORIGIN];if(this.idFields.length){for(var n=e[this.idFields[0]],r=1;r<this.idFields.length;r++)n+="-"+e[this.idFields[r]];return n}var i,o,s=this.type,u=this.getXScale(),c=this.getYScale(),h=u.field||"x",f=e[c.field||"y"];i="identity"===u.type?u.values[0]:e[h],o="interval"===s||"schema"===s?"".concat(i):"line"===s||"area"===s||"path"===s?s:"".concat(i,"-").concat(f);for(var d=this.groupScales,p=(r=0,d.length);r<p;r++){var g=d[r].field;o="".concat(o,"-").concat(e[g])}var v=this.getAdjust("dodge");if(v){var m=v.dodgeBy;m&&(o="".concat(o,"-").concat(e[m]))}return this.getAdjust("jitter")&&(o="".concat(o,"-").concat(t.x,"-").concat(t.y)),o},e.prototype.getScaleFields=function(){var t=[],e=new Map,n=this.attributeOption,r=this.labelOption,i=this.tooltipOption;for(var o in n)if(n.hasOwnProperty(o)){var s=n[o];s.fields?Object(c.uniq)(s.fields,t,e):s.values&&Object(c.uniq)(s.values,t,e)}return r&&r.fields&&Object(c.uniq)(r.fields,t,e),Object(a.isObject)(i)&&i.fields&&Object(c.uniq)(i.fields,t,e),t},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.elements,r=0,i=n.length;r<i;r++){n[r].changeVisible(e)}e?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},e.prototype.getFields=function(){var t=new Map,e=[];return Object.values(this.attributeOption).forEach((function(n){((null==n?void 0:n.fields)||[]).forEach((function(n){t.has(n)||e.push(n),t.set(n,!0)}))}),[]),e},e.prototype.getGroupFields=function(){for(var t=[],e=new Map,n=0,r=l.GROUP_ATTRS.length;n<r;n++){var i=l.GROUP_ATTRS[n],o=this.attributeOption[i];o&&o.fields&&Object(c.uniq)(o.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=Object(r.__read)(this.attributeOption.position.fields,2);return[t[0],t[1]]},e.prototype.getXField=function(){return Object(a.get)(this.getXYFields(),[0])},e.prototype.getYField=function(){return Object(a.get)(this.getXYFields(),[1])},e.prototype.getShapes=function(){return this.elements.map((function(t){return t.shape}))},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,r=0;r<t.length;r++){t[r].sort((function(t,r){return e.translate(t[l.FIELD_ORIGIN][n])-e.translate(r[l.FIELD_ORIGIN][n])}))}this.hasSorted=!0},e.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},e.prototype.getShapeFactory=function(){var t=this.shapeType;if(Object(d.getShapeFactory)(t))return this.shapeFactory||(this.shapeFactory=Object(a.clone)(Object(d.getShapeFactory)(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale();return{x:this.normalizeValues(t[e.field],e),y:n?this.normalizeValues(t[n.field],n):t.y?t.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e,n){void 0===n&&(n=!1);var r=this.container,i=this.getDrawCfg(t),o=this.getShapeFactory(),a=new h.default({shapeFactory:o,container:r,offscreenGroup:this.getOffscreenGroup(),elementIndex:e});return a.animate=this.animateOption,a.geometry=this,a.draw(i,n),a},e.prototype.getDrawCfg=function(t){var e=t[l.FIELD_ORIGIN],n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},r=t.shape;!r&&this.getShapeFactory()&&(r=this.getShapeFactory().defaultShapeType),n.shape=r;var i=this.theme.geometries[this.shapeType];n.defaultStyle=Object(a.get)(i,[r,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(i));var o=this.styleOption;return o&&(n.style=this.getStyleCfg(o,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.updateElements=function(t,e){var n,i,o,a,s,u;void 0===e&&(e=!1);for(var l=new Map,c=[],h=new Map,f=0,d=0;d<t.length;d++)for(var p=t[d],v=0;v<p.length;v++){var y=p[v],b=this.getElementId(y),_=l.has(b)?"".concat(b,"-").concat(d,"-").concat(v):b;c.push(_),l.set(_,y),h.set(_,f),f++}this.elements=new Array(f);var x=Object(m.diff)(this.lastElementsMap,c),w=x.added,O=x.updated,S=x.removed;try{for(var C=Object(r.__values)(w),E=C.next();!E.done;E=C.next()){b=E.value,y=l.get(b),d=h.get(b);var T=this.createElement(y,d,e);this.elements[d]=T,this.elementsMap[b]=T,T.shape&&T.shape.set("zIndex",this.zIndexReversed?this.elements.length-d:d)}}catch(t){n={error:t}}finally{try{E&&!E.done&&(i=C.return)&&i.call(C)}finally{if(n)throw n.error}}try{for(var A=Object(r.__values)(O),M=A.next();!M.done;M=A.next()){b=M.value,T=this.lastElementsMap[b],y=l.get(b);var I=this.getDrawCfg(y),j=T.getModel();d=h.get(b);(this.isCoordinateChanged||Object(g.isModelChange)(I,j))&&(T.animate=this.animateOption,T.update(I)),this.elements[d]=T,this.elementsMap[b]=T,T.shape&&T.shape.set("zIndex",this.zIndexReversed?this.elements.length-d:d)}}catch(t){o={error:t}}finally{try{M&&!M.done&&(a=A.return)&&a.call(A)}finally{if(o)throw o.error}}this.container&&this.container.sort();try{for(var k=Object(r.__values)(S),P=k.next();!P.done;P=k.next()){b=P.value;(T=this.lastElementsMap[b]).animate=this.animateOption,T.destroy()}}catch(t){s={error:t}}finally{try{P&&!P.done&&(u=k.return)&&u.call(k)}finally{if(s)throw s.error}}},e.prototype.getLabelType=function(){var t=this.labelOption,e=this.coordinate,n=this.type,r=e.type,i=e.isTransposed,o=Object(a.get)(t,["cfg","type"]);return o||(o="polar"===r?i?"pie":"polar":"theta"===r?"pie":"interval"===n||"polygon"===n?"interval":"base"),o},e.prototype.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return e>=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if(Object(a.isNil)(e)||Object(a.isObject)(e))Object(a.isObject)(e)&&Object(a.isEqual)(Object.keys(e),["values"])?Object(a.set)(this.attributeOption,t,{fields:e.values}):Object(a.set)(this.attributeOption,t,e);else{var r={};Object(a.isNumber)(e)?r.values=[e]:r.fields=Object(v.parseFields)(e),n&&(Object(a.isFunction)(n)?r.callback=n:r.values=n),Object(a.set)(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,n=this.attributeOption,i=this.theme,s=this.shapeType;this.groupScales=[];var u={},c=function(c){if(n.hasOwnProperty(c)){var h=n[c];if(!h)return{value:void 0};var f=Object(r.__assign)({},h),d=f.callback,p=f.values,g=f.fields,v=(void 0===g?[]:g).map((function(e){var n=t.scales[e];!u[e]&&l.GROUP_ATTRS.includes(c)&&("cat"===Object(y.inferScaleType)(n,Object(a.get)(t.scaleDefs,e),c,t.type)&&(t.groupScales.push(n),u[e]=!0));return n}));f.scales=v,"position"!==c&&1===v.length&&"identity"===v[0].type?f.values=v[0].values:d||p||("size"===c?f.values=i.sizes:"shape"===c?f.values=i.shapes[s]||[]:"color"===c&&(v.length?f.values=v[0].values.length<=10?i.colors10:i.colors20:f.values=i.colors10));var m=Object(o.getAttribute)(c);e[c]=new m(f)}};for(var h in n){var f=c(h);if("object"==typeof f)return f.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var i=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),o=this.groupData(t),a=[],s=0,u=o.length;s<u;s++){for(var c=o[s],h=[],f=0,d=c.length;f<d;f++){var p=c[f],g={};for(var v in p)g[v]=p[v];g[l.FIELD_ORIGIN]=p;try{for(var m=(e=void 0,Object(r.__values)(i)),y=m.next();!y.done;y=m.next()){var b=y.value,_=b.field;g[_]=b.translate(g[_])}}catch(t){e={error:t}}finally{try{y&&!y.done&&(n=m.return)&&n.call(m)}finally{if(e)throw e.error}}h.push(g)}a.push(h)}var x=this.adjustData(a);return this.beforeMappingData=x,x},e.prototype.adjustData=function(t){var e=this.adjustOption,n=this.intervalPadding,o=this.dodgePadding,s=this.theme,u=this.maxColumnWidth||s.maxColumnWidth,l=this.minColumnWidth||s.minColumnWidth,c=this.columnWidthRatio||s.columnWidthRatio,h=t;if(e){var f=this.getXScale(),d=this.getYScale(),p=f.field,g=d?d.field:null,v=Object(b.getXDimensionLength)(this.coordinate),m=f.values.length,y=this.getAttribute("size"),_=void 0;y&&(_=y.values[0]);for(var x=0,w=e.length;x<w;x++){var O=e[x],S=Object(r.__assign)({xField:p,yField:g,intervalPadding:n,dodgePadding:o,xDimensionLength:v,groupNum:m,defaultSize:_,maxColumnWidth:u,minColumnWidth:l,columnWidthRatio:c},O),C=O.type;if("dodge"===C){var E=[];if(f.isCategory||"identity"===f.type)E.push("x");else{if(d)throw new Error("dodge is not support linear attribute, please use category attribute!");E.push("y")}S.adjustNames=E,S.dodgeRatio=c}else if("stack"===C){var T=this.coordinate;if(!d){S.height=T.getHeight();var A=this.getDefaultValue("size")||3;S.size=A}!T.isTransposed&&Object(a.isNil)(S.reverseOrder)&&(S.reverseOrder=!0)}var M=Object(i.getAdjust)(C);S.dimValuesMap={},f&&f.values&&(S.dimValuesMap[f.field]=f.values.map((function(t){return f.translate(t)})));var I=new M(S);h=I.process(h),this.adjusts[C]=I}}return h},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,r={},i=[],o=0;o<e.length;o++){var s=e[o].field;i.push(s),Object(a.get)(n,[s,"values"])&&(r[s]=n[s].values)}return Object(p.group)(t,i,r)},e.prototype.updateStackRange=function(t,e){for(var n=Object(a.flatten)(e),r=t.field,i=t.min,o=t.max,s=0;s<n.length;s++){var u=n[s],l=Math.min.apply(null,u[r]),c=Math.max.apply(null,u[r]);l<i&&(i=l),c>o&&(o=c)}var h=this.scaleDefs,f={};i<t.min&&!Object(a.get)(h,[r,"min"])&&(f.min=i),o>t.max&&!Object(a.get)(h,[r,"max"])&&(f.max=o),t.change(f)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n<r;n++){var i=e[n];this.generateShapePoints(i);var o=e[n+1];o&&(this.generateShapePoints(o),i[0].nextPoints=o[0].points)}return e},e.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),r=0;r<t.length;r++){var i=t[r],o=this.createShapePointsCfg(i),a=n?this.getAttributeValues(n,i):null,s=e.getShapePoints(a,o);i.points=s}},e.prototype.normalizeValues=function(t,e){var n=[];if(Object(a.isArray)(t))for(var r=0;r<t.length;r++){var i=t[r];n.push(e.scale(i))}else n=e.scale(t);return n},e.prototype.mapping=function(t){for(var e=this.attributes,n=[],r=0;r<t.length;r++){var i=t[r],o={_origin:i[l.FIELD_ORIGIN],points:i.points,nextPoints:i.nextPoints};for(var s in e)if(e.hasOwnProperty(s)){var u=e[s],c=u.names,h=this.getAttributeValues(u,i);if(c.length>1)for(var f=0;f<h.length;f+=1){var d=h[f];o[c[f]]=Object(a.isArray)(d)&&1===d.length?d[0]:d}else o[c[0]]=1===h.length?h[0]:h}this.convertPoint(o),n.push(o)}return n},e.prototype.convertPoint=function(t){var e,n,r,i=t.x,o=t.y,s=this.coordinate;if(Object(a.isArray)(i)&&Object(a.isArray)(o)){e=[],n=[];for(var u=0,l=0,c=i.length,h=o.length;u<c&&l<h;u+=1,l+=1)r=s.convert({x:i[u],y:o[l]}),e.push(r.x),n.push(r.y)}else if(Object(a.isArray)(o)){n=[];for(var f=0;f<o.length;f++){var d=o[f];r=s.convert({x:i,y:d}),e&&e!==r.x?(Object(a.isArray)(e)||(e=[e]),e.push(r.x)):e=r.x,n.push(r.y)}}else if(Object(a.isArray)(i)){e=[];for(f=0;f<i.length;f++){var p=i[f];r=s.convert({x:p,y:o}),n&&n!==r.y?(Object(a.isArray)(n)||(n=[n]),n.push(r.y)):n=r.y,e.push(r.x)}}else{var g=s.convert({x:i,y:o});e=g.x,n=g.y}t.x=e,t.y=n},e.prototype.getStyleCfg=function(t,e){var n=t.fields,i=void 0===n?[]:n,o=t.callback,a=t.cfg;if(a)return a;var s=i.map((function(t){return e[t]}));return o.apply(void 0,Object(r.__spreadArray)([],Object(r.__read)(s),!1))},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,r=t.data,i=t.theme,o=t.scaleDefs;n&&(this.coordinate=n),r&&(this.data=r),o&&(this.scaleDefs=o,this.idFields=[],Object(a.each)(o,(function(t,n){t&&t.key&&e.idFields.push(n)}))),i&&(this.theme=this.userTheme?Object(a.deepMix)({},i,this.userTheme):i)},e.prototype.renderLabels=function(t,e){return void 0===e&&(e=!1),Object(r.__awaiter)(this,void 0,void 0,(function(){var n,i,o,s,u,c,h,d,p,g,v,m,y=this;return Object(r.__generator)(this,(function(b){switch(b.label){case 0:return n=this.geometryLabel,this.emit(l.GEOMETRY_LIFE_CIRCLE.BEFORE_RENDER_LABEL),n||(i=this.getLabelType(),o=Object(f.getGeometryLabel)(i),n=new o(this),this.geometryLabel=n),[4,n.render(t,e)];case 1:b.sent(),s=n.labelsRenderer.shapesMap,u=new Map,Object(a.each)(s,(function(t,e){for(var n=t.getChildren()||[],r=0;r<n.length;r++){var i=n[r],o=y.elementsMap[i.get("elementId")||e.split(" ")[0]];if(o){i.cfg.name=["element","label"],i.cfg.element=o;var a=u.get(o)||new Set;a.add(t),u.set(o,a)}}}));try{for(c=Object(r.__values)(u.entries()),h=c.next();!h.done;h=c.next())d=Object(r.__read)(h.value,2),p=d[0],g=d[1],p.labelShape=Object(r.__spreadArray)([],Object(r.__read)(g),!1)}catch(t){v={error:t}}finally{try{h&&!h.done&&(m=c.return)&&m.call(c)}finally{if(v)throw v.error}}return this.emit(l.GEOMETRY_LIFE_CIRCLE.AFTER_RENDER_LABEL),[2]}}))}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===Object(a.get)(this.animateOption,"appear")||Object(a.get)(this.animateOption,"appear")&&void 0===Object(a.get)(this.animateOption,["appear","animation"]))},e}(u.default);e.default=_},function(t,e,n){"use strict";n.r(e),n.d(e,"getFactTitleConfig",(function(){return i})),n.d(e,"getAnglePoint",(function(){return o}));var r=n(7);function i(t){return[r.DIRECTION.TOP,r.DIRECTION.BOTTOM].includes(t)?{offsetX:0,offsetY:t===r.DIRECTION.TOP?-8:8,style:{textAlign:"center",textBaseline:t===r.DIRECTION.TOP?"bottom":"top"}}:[r.DIRECTION.LEFT,r.DIRECTION.RIGHT].includes(t)?{offsetX:t===r.DIRECTION.LEFT?-8:8,offsetY:0,style:{textAlign:t===r.DIRECTION.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function o(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"PolygonShape",(function(){return a}));var r=n(66),i=n(36),o=n(701),a=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.buildPath(t,e,!0)},e}(i.default);s.prototype.type="polygon",e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"X_FIELD",(function(){return o})),n.d(e,"Y_FIELD",(function(){return a})),n.d(e,"DEFAULT_TOOLTIP_OPTIONS",(function(){return s})),n.d(e,"DEFAULT_OPTIONS",(function(){return u}));var r=n(2),i=n(1),o="x",a="y",s={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+Object(i.get)(e,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},u={appendPadding:2,tooltip:Object(r.__assign)({},s),animation:{}}},function(t,e,n){var r=n(2021),i=n(2022),o=n(1213),a=n(2023);t.exports=function(t){return r(t)||i(t)||o(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e),n.d(e,"dataTransform",(function(){return c})),n.d(e,"getAxisInfo",(function(){return h})),n.d(e,"dataFilter",(function(){return f})),n.d(e,"zoneFilter",(function(){return d})),n.d(e,"createMarkerDimValueGetter",(function(){return p})),n.d(e,"numCalculate",(function(){return g}));var r=n(6),i=n(147),o=n(0),a=n(165);function s(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function u(t,e,n,o,a,s){var u=[],l=Object(i.isDimensionStacked)(e,o)?e.getCalculationInfo("stackResultDimension"):o,c=g(e,l,t),h=e.indicesOfNearest(l,c)[0];u[a]=e.get(n,h),u[s]=e.get(l,h);var f=e.get(o,h),d=r.getPrecision(e.get(o,h));return(d=Math.min(d,20))>=0&&(u[s]=+u[s].toFixed(d)),[u,f]}var l={min:Object(o.curry)(u,"min"),max:Object(o.curry)(u,"max"),average:Object(o.curry)(u,"average"),median:Object(o.curry)(u,"median")};function c(t,e){var n=t.getData(),r=t.coordinateSystem;if(e&&!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!Object(o.isArray)(e.coord)&&r){var i=r.dimensions,a=h(e,n,r,t);if((e=Object(o.clone)(e)).type&&l[e.type]&&a.baseAxis&&a.valueAxis){var s=Object(o.indexOf)(i,a.baseAxis.dim),u=Object(o.indexOf)(i,a.valueAxis.dim),c=l[e.type](n,a.baseDataDim,a.valueDataDim,s,u);e.coord=c[0],e.value=c[1]}else{for(var f=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],d=0;d<2;d++)l[f[d]]&&(f[d]=g(n,n.mapDimension(i[d]),f[d]));e.coord=f}}return e}function h(t,e,n,r){var i={};return null!=t.valueIndex||null!=t.valueDim?(i.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function f(t,e){return!(t&&t.containData&&e.coord&&!s(e))||t.containData(e.coord)}function d(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!s(e)&&!s(n))||t.containZone(e.coord,n.coord)}function p(t,e){return t?function(t,n,r,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Object(a.parseDataValue)(o,e[i])}:function(t,n,r,i){return Object(a.parseDataValue)(t.value,e[i])}}function g(t,e,n){if("average"===n){var r=0,i=0;return t.each(e,(function(t,e){isNaN(t)||(r+=t,i++)})),r/i}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}},function(t,e,n){"use strict";n.r(e),n.d(e,"intersectionArea",(function(){return r})),n.d(e,"containedInCircles",(function(){return i})),n.d(e,"circleArea",(function(){return o})),n.d(e,"distance",(function(){return a})),n.d(e,"circleOverlap",(function(){return s})),n.d(e,"circleCircleIntersection",(function(){return u})),n.d(e,"getCenter",(function(){return l}));function r(t,e){var n,r=function(t){for(var e=[],n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r)for(var i=u(t[n],t[r]),o=0;o<i.length;++o){var a=i[o];a.parentIndex=[n,r],e.push(a)}return e}(t),s=r.filter((function(e){return i(e,t)})),c=0,h=0,f=[];if(s.length>1){var d=l(s);for(n=0;n<s.length;++n){var p=s[n];p.angle=Math.atan2(p.x-d.x,p.y-d.y)}s.sort((function(t,e){return e.angle-t.angle}));var g=s[s.length-1];for(n=0;n<s.length;++n){var v=s[n];h+=(g.x+v.x)*(v.y-g.y);for(var m={x:(v.x+g.x)/2,y:(v.y+g.y)/2},y=null,b=0;b<v.parentIndex.length;++b)if(g.parentIndex.indexOf(v.parentIndex[b])>-1){var _=t[v.parentIndex[b]],x=Math.atan2(v.x-_.x,v.y-_.y),w=Math.atan2(g.x-_.x,g.y-_.y),O=w-x;O<0&&(O+=2*Math.PI);var S=w-O/2,C=a(m,{x:_.x+_.radius*Math.sin(S),y:_.y+_.radius*Math.cos(S)});C>2*_.radius&&(C=2*_.radius),(null===y||y.width>C)&&(y={circle:_,width:C,p1:v,p2:g})}null!==y&&(f.push(y),c+=o(y.circle.radius,y.width),g=v)}}else{var E=t[0];for(n=1;n<t.length;++n)t[n].radius<E.radius&&(E=t[n]);var T=!1;for(n=0;n<t.length;++n)if(a(t[n],E)>Math.abs(E.radius-t[n].radius)){T=!0;break}T?c=h=0:(c=E.radius*E.radius*Math.PI,f.push({circle:E,p1:{x:E.x,y:E.y+E.radius},p2:{x:E.x-1e-10,y:E.y+E.radius},width:2*E.radius}))}return h/=2,e&&(e.area=c+h,e.arcArea=c,e.polygonArea=h,e.arcs=f,e.innerPoints=s,e.intersectionPoints=r),c+h}function i(t,e){for(var n=0;n<e.length;++n)if(a(t,e[n])>e[n].radius+1e-10)return!1;return!0}function o(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function a(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function s(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=e-(n*n-t*t+e*e)/(2*n);return o(t,t-(n*n-e*e+t*t)/(2*n))+o(e,r)}function u(t,e){var n=a(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];var o=(r*r-i*i+n*n)/(2*n),s=Math.sqrt(r*r-o*o),u=t.x+o*(e.x-t.x)/n,l=t.y+o*(e.y-t.y)/n,c=-(e.y-t.y)*(s/n),h=-(e.x-t.x)*(s/n);return[{x:u+c,y:l-h},{x:u-c,y:l+h}]}function l(t){for(var e={x:0,y:0},n=0;n<t.length;++n)e.x+=t[n].x,e.y+=t[n].y;return e.x/=t.length,e.y/=t.length,e}},function(t,e,n){"use strict";function r(t){return null==t?0:t.length||1}function i(t){return t}n.r(e);var o=function(){function t(t,e,n,r,o,a){this._old=t,this._new=e,this._oldKeyGetter=n||i,this._newKeyGetter=r||i,this.context=o,this._diffModeMultiple="multiple"===a}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=i[a],u=n[s],l=r(u);if(l>1){var c=u.shift();1===u.length&&(n[s]=u[0]),this._update&&this._update(c,a)}else 1===l?(n[s]=null,this._update&&this._update(u,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],a=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var u=o[s],l=n[u],c=i[u],h=r(l),f=r(c);if(h>1&&1===f)this._updateManyToOne&&this._updateManyToOne(c,l),i[u]=null;else if(1===h&&f>1)this._updateOneToMany&&this._updateOneToMany(c,l),i[u]=null;else if(1===h&&1===f)this._update&&this._update(c,l),i[u]=null;else if(h>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,l),i[u]=null;else if(h>1)for(var d=0;d<h;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(a,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],a=r(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else 1===a&&this._add&&this._add(o);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[i](t[a],a);if(o||(n[a]=s),e){var u=e[s],l=r(u);0===l?(e[s]=a,o&&n.push(s)):1===l?e[s]=[u,a]:u.push(a)}}},t}();e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(40),o=n(157),a=n(12),s=n(72),u=n(31),l=n(27),c=n(64),h=n(6),f=n(67),d=n(42),p=n(18),g=n(85),v=n(337),m=Math.PI,y=function(){function t(t,e){this.group=new i.default,this.opt=e,this.axisModel=t,Object(r.defaults)(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new i.default({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!b[t]},t.prototype.add=function(t){b[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var r,i,o=Object(h.remRadian)(e-t);return Object(h.isRadianAroundZero)(o)?(i=n>0?"top":"bottom",r="center"):Object(h.isRadianAroundZero)(o-m)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<m?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),b={axisLine:function(t,e,n,i){var s=e.get(["axisLine","show"]);if("auto"===s&&t.handleAutoShown&&(s=t.handleAutoShown("axisLine")),s){var u=e.axis.getExtent(),l=i.transform,c=[u[0],0],h=[u[1],0],d=c[0]>h[0];l&&(Object(p.applyTransform)(c,c,l),Object(p.applyTransform)(h,h,l));var g=Object(r.extend)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),v=new o.default({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:g,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});a.subPixelOptimizeLine(v.shape,v.style.lineWidth),v.anid="line",n.add(v);var m=e.get(["axisLine","symbol"]);if(null!=m){var y=e.get(["axisLine","symbolSize"]);Object(r.isString)(m)&&(m=[m,m]),(Object(r.isString)(y)||Object(r.isNumber)(y))&&(y=[y,y]);var b=Object(f.normalizeSymbolOffset)(e.get(["axisLine","symbolOffset"])||0,y),_=y[0],x=y[1];Object(r.each)([{rotate:t.rotation+Math.PI/2,offset:b[0],r:0},{rotate:t.rotation-Math.PI/2,offset:b[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],(function(e,r){if("none"!==m[r]&&null!=m[r]){var i=Object(f.createSymbol)(m[r],-_/2,-x/2,_,x,g.stroke,!0),o=e.r+e.offset,a=d?h:c;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,i){var o=function(t,e,n,i){var o=n.axis,a=n.getModel("axisTick"),s=a.get("show");"auto"===s&&i.handleAutoShown&&(s=i.handleAutoShown("axisTick"));if(!s||o.scale.isBlank())return;for(var u=a.getModel("lineStyle"),l=i.tickDirection*a.get("length"),c=O(o.getTicksCoords(),e.transform,l,Object(r.defaults)(u.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)t.add(c[h]);return c}(n,i,e,t),a=function(t,e,n,i){var o=n.axis;if(!Object(r.retrieve)(i.axisLabelShow,n.get(["axisLabel","show"]))||o.scale.isBlank())return;var a=n.getModel("axisLabel"),h=a.get("margin"),f=o.getViewLabels(),d=(Object(r.retrieve)(i.labelRotate,a.get("rotate"))||0)*m/180,p=y.innerTextLayout(i.rotation,d,i.labelDirection),g=n.getCategories&&n.getCategories(!0),v=[],b=y.isLabelSilent(n),_=n.get("triggerEvent");return Object(r.each)(f,(function(f,d){var m="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(f.tickValue):f.tickValue,x=f.formattedLabel,w=f.rawLabel,O=a;if(g&&g[m]){var S=g[m];Object(r.isObject)(S)&&S.textStyle&&(O=new c.default(S.textStyle,a,n.ecModel))}var C=O.getTextColor()||n.get(["axisLine","lineStyle","color"]),E=o.dataToCoord(m),T=new s.default({x:E,y:i.labelOffset+i.labelDirection*h,rotation:p.rotation,silent:b,z2:10+(f.level||0),style:Object(l.createTextStyle)(O,{text:x,align:O.getShallow("align",!0)||p.textAlign,verticalAlign:O.getShallow("verticalAlign",!0)||O.getShallow("baseline",!0)||p.textVerticalAlign,fill:Object(r.isFunction)(C)?C("category"===o.type?w:"value"===o.type?m+"":m,d):C})});if(T.anid="label_"+m,_){var A=y.makeAxisEventDataBase(n);A.targetType="axisLabel",A.value=w,A.tickIndex=d,"category"===o.type&&(A.dataIndex=m),Object(u.getECData)(T).eventData=A}e.add(T),T.updateTransform(),v.push(T),t.add(T),T.decomposeTransform()})),v}(n,i,e,t);if(function(t,e,n){if(Object(g.shouldShowAllLabels)(t.axis))return;var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);n=n||[];var o=(e=e||[])[0],a=e[1],s=e[e.length-1],u=e[e.length-2],l=n[0],c=n[1],h=n[n.length-1],f=n[n.length-2];!1===r?(_(o),_(l)):x(o,a)&&(r?(_(a),_(c)):(_(o),_(l)));!1===i?(_(s),_(h)):x(u,s)&&(i?(_(u),_(f)):(_(s),_(h)))}(e,a,o),function(t,e,n,i){var o=n.axis,a=n.getModel("minorTick");if(!a.get("show")||o.scale.isBlank())return;var s=o.getMinorTicksCoords();if(!s.length)return;for(var u=a.getModel("lineStyle"),l=i*a.get("length"),c=Object(r.defaults)(u.getLineStyle(),Object(r.defaults)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var f=O(s[h],e.transform,l,c,"minorticks_"+h),d=0;d<f.length;d++)t.add(f[d])}(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var h=Object(v.prepareLayoutList)(Object(r.map)(a,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));Object(v.hideOverlap)(h)}},axisName:function(t,e,n,i){var o=Object(r.retrieve)(t.axisName,e.get("name"));if(o){var c,f,d=e.get("nameLocation"),p=t.nameDirection,g=e.getModel("nameTextStyle"),v=e.get("nameGap")||0,b=e.axis.getExtent(),_=b[0]>b[1]?-1:1,x=["start"===d?b[0]-_*v:"end"===d?b[1]+_*v:(b[0]+b[1])/2,w(d)?t.labelOffset+p*v:0],O=e.get("nameRotate");null!=O&&(O=O*m/180),w(d)?c=y.innerTextLayout(t.rotation,null!=O?O:t.rotation,p):(c=function(t,e,n,r){var i,o,a=Object(h.remRadian)(n-t),s=r[0]>r[1],u="start"===e&&!s||"start"!==e&&s;Object(h.isRadianAroundZero)(a-m/2)?(o=u?"bottom":"top",i="center"):Object(h.isRadianAroundZero)(a-1.5*m)?(o=u?"top":"bottom",i="center"):(o="middle",i=a<1.5*m&&a>m/2?u?"left":"right":u?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(t.rotation,d,O||0,b),null!=(f=t.axisNameAvailableWidth)&&(f=Math.abs(f/Math.sin(c.rotation)),!isFinite(f)&&(f=null)));var S=g.getFont(),C=e.get("nameTruncate",!0)||{},E=C.ellipsis,T=Object(r.retrieve)(t.nameTruncateMaxWidth,C.maxWidth,f),A=new s.default({x:x[0],y:x[1],rotation:c.rotation,silent:y.isLabelSilent(e),style:Object(l.createTextStyle)(g,{text:o,font:S,overflow:"truncate",width:T,ellipsis:E,fill:g.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:g.get("align")||c.textAlign,verticalAlign:g.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(a.setTooltipConfig({el:A,componentModel:e,itemName:o}),A.__fullText=o,A.anid="name",e.get("triggerEvent")){var M=y.makeAxisEventDataBase(e);M.targetType="axisName",M.name=o,Object(u.getECData)(A).eventData=M}i.add(A),A.updateTransform(),n.add(A),A.decomposeTransform()}}};function _(t){t&&(t.ignore=!0)}function x(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=d.identity([]);return d.rotate(i,i,-t.rotation),n.applyTransform(d.mul([],i,t.getLocalTransform())),r.applyTransform(d.mul([],i,e.getLocalTransform())),n.intersect(r)}}function w(t){return"middle"===t||"center"===t}function O(t,e,n,r,i){for(var s=[],u=[],l=[],c=0;c<t.length;c++){var h=t[c].coord;u[0]=h,u[1]=0,l[0]=h,l[1]=n,e&&(Object(p.applyTransform)(u,u,e),Object(p.applyTransform)(l,l,e));var f=new o.default({shape:{x1:u[0],y1:u[1],x2:l[0],y2:l[1]},style:r,z2:2,autoBatch:!0,silent:!0});a.subPixelOptimizeLine(f.shape,f.style.lineWidth),f.anid=i+"_"+t[c].tickValue,s.push(f)}return s}e.default=y},function(t,e,n){"use strict";n.r(e),n.d(e,"DefaultDataProvider",(function(){return f})),n.d(e,"getRawSourceItemGetter",(function(){return g})),n.d(e,"getRawSourceDataCounter",(function(){return y})),n.d(e,"getRawSourceValueGetter",(function(){return x})),n.d(e,"retrieveRawValue",(function(){return O})),n.d(e,"retrieveRawAttr",(function(){return S}));var r,i,o,a,s,u=n(0),l=n(9),c=n(153),h=n(30),f=function(){function t(t,e){var n=Object(c.isSourceInstance)(t)?t:Object(c.createSourceFromSeriesDataOption)(t);this._source=n;var r=this._data=n.data;n.sourceFormat===h.SOURCE_FORMAT_TYPED_ARRAY&&(this._offset=0,this._dimSize=e,this._data=r),s(this,r,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;s=function(t,i,o){var s=o.sourceFormat,l=o.seriesLayoutBy,c=o.startIndex,f=o.dimensionsDefine,d=a[w(s,l)];if(Object(u.extend)(t,d),s===h.SOURCE_FORMAT_TYPED_ARRAY)t.getItem=e,t.count=r,t.fillStorage=n;else{var p=g(s,l);t.getItem=Object(u.bind)(p,null,i,c,f);var v=y(s,l);t.count=Object(u.bind)(v,null,i,c,f)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;o<r;o++)e[o]=n[i+o];return e},n=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],u=null==s[0]?1/0:s[0],l=null==s[1]?-1/0:s[1],c=e-t,h=n[a],f=0;f<c;f++){var d=i[f*o+a];h[t+f]=d,d<u&&(u=d),d>l&&(l=d)}s[0]=u,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[h.SOURCE_FORMAT_ARRAY_ROWS+"_"+h.SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:i},t[h.SOURCE_FORMAT_ARRAY_ROWS+"_"+h.SERIES_LAYOUT_BY_ROW]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[h.SOURCE_FORMAT_OBJECT_ROWS]={pure:!0,appendData:i},t[h.SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(t){var e=this._data;Object(u.each)(t,(function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])}))}},t[h.SOURCE_FORMAT_ORIGINAL]={appendData:i},t[h.SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},a=t}(),t}(),d=function(t,e,n,r){return t[r]},p=((r={})[h.SOURCE_FORMAT_ARRAY_ROWS+"_"+h.SERIES_LAYOUT_BY_COLUMN]=function(t,e,n,r){return t[r+e]},r[h.SOURCE_FORMAT_ARRAY_ROWS+"_"+h.SERIES_LAYOUT_BY_ROW]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var u=a[s];o[s]=u?u[r]:null}return o},r[h.SOURCE_FORMAT_OBJECT_ROWS]=d,r[h.SOURCE_FORMAT_KEYED_COLUMNS]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){0;var s=t[n[a].name];o[a]=s?s[r]:null}return o},r[h.SOURCE_FORMAT_ORIGINAL]=d,r);function g(t,e){return p[w(t,e)]}var v=function(t,e,n){return t.length},m=((i={})[h.SOURCE_FORMAT_ARRAY_ROWS+"_"+h.SERIES_LAYOUT_BY_COLUMN]=function(t,e,n){return Math.max(0,t.length-e)},i[h.SOURCE_FORMAT_ARRAY_ROWS+"_"+h.SERIES_LAYOUT_BY_ROW]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},i[h.SOURCE_FORMAT_OBJECT_ROWS]=v,i[h.SOURCE_FORMAT_KEYED_COLUMNS]=function(t,e,n){var r=t[n[0].name];return r?r.length:0},i[h.SOURCE_FORMAT_ORIGINAL]=v,i);function y(t,e){return m[w(t,e)]}var b=function(t,e,n){return t[e]},_=((o={})[h.SOURCE_FORMAT_ARRAY_ROWS]=b,o[h.SOURCE_FORMAT_OBJECT_ROWS]=function(t,e,n){return t[n]},o[h.SOURCE_FORMAT_KEYED_COLUMNS]=b,o[h.SOURCE_FORMAT_ORIGINAL]=function(t,e,n){var r=Object(l.getDataItemValue)(t);return r instanceof Array?r[e]:r},o[h.SOURCE_FORMAT_TYPED_ARRAY]=b,o);function x(t){return _[t]}function w(t,e){return t===h.SOURCE_FORMAT_ARRAY_ROWS?t+"_"+e:t}function O(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return x(o)(r,a,s)}var u=r;return o===h.SOURCE_FORMAT_ORIGINAL&&(u=Object(l.getDataItemValue)(r)),u}}}function S(t,e,n){if(t){var r=t.getStore().getSource().sourceFormat;if(r===h.SOURCE_FORMAT_ORIGINAL||r===h.SOURCE_FORMAT_OBJECT_ROWS){var i=t.getRawDataItem(e);return r!==h.SOURCE_FORMAT_ORIGINAL||Object(u.isObject)(i)||(i=null),i?i[n]:void 0}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"smoothBezier",(function(){return l})),n.d(e,"catmullRom2bezier",(function(){return c})),n.d(e,"getLinePath",(function(){return h})),n.d(e,"getSplinePath",(function(){return f})),n.d(e,"convertNormalPath",(function(){return d})),n.d(e,"convertPolarPath",(function(){return p}));var r=n(2),i=n(25),o=n(1),a=n(98);function s(t,e){for(var n=[t[0]],r=1,i=t.length;r<i;r+=2){var o=e.convert({x:t[r],y:t[r+1]});n.push(o.x,o.y)}return n}function u(t,e){var n=e.isTransposed,r=t[1],i=t[6],o=t[7],a=e.convert({x:i,y:o});return["A",r,r,0,0,n?0:1,a.x,a.y]}var l=function(t,e,n,o){var a,s,u,l,c,h,f,d,p=[],g=!!o;if(g){l=(a=Object(r.__read)(o,2))[0],c=a[1];for(var v=0,m=t.length;v<m;v++){var y=t[v];l=i.vec2.min([0,0],l,y),c=i.vec2.max([0,0],c,y)}}v=0;for(var b=t.length;v<b;v++){y=t[v];if(0!==v||n)if(v!==b-1||n){s=t[n?v?v-1:b-1:v-1],u=t[n?(v+1)%b:v+1];var _=[0,0];_=i.vec2.sub(_,u,s),_=i.vec2.scale(_,_,e);var x=i.vec2.distance(y,s),w=i.vec2.distance(y,u),O=x+w;0!==O&&(x/=O,w/=O);var S=i.vec2.scale([0,0],_,-x),C=i.vec2.scale([0,0],_,w);f=i.vec2.add([0,0],y,S),h=i.vec2.add([0,0],y,C),h=i.vec2.min([0,0],h,i.vec2.max([0,0],u,y)),h=i.vec2.max([0,0],h,i.vec2.min([0,0],u,y)),S=i.vec2.sub([0,0],h,y),S=i.vec2.scale([0,0],S,-x/w),f=i.vec2.add([0,0],y,S),f=i.vec2.min([0,0],f,i.vec2.max([0,0],s,y)),f=i.vec2.max([0,0],f,i.vec2.min([0,0],s,y)),C=i.vec2.sub([0,0],y,f),C=i.vec2.scale([0,0],C,w/x),h=i.vec2.add([0,0],y,C),g&&(f=i.vec2.max([0,0],f,l),f=i.vec2.min([0,0],f,c),h=i.vec2.max([0,0],h,l),h=i.vec2.min([0,0],h,c)),p.push(d),p.push(f),d=h}else f=y,p.push(d),p.push(f);else d=y}return n&&p.push(p.shift()),p};function c(t,e,n){for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);var s,u,c,h=l(i,.4,r,n),f=i.length,d=[];for(o=0;o<f-1;o++)s=h[2*o],u=h[2*o+1],c=i[o+1],d.push(["C",s[0],s[1],u[0],u[1],c[0],c[1]]);return r&&(s=h[f],u=h[f+1],c=i[0],d.push(["C",s[0],s[1],u[0],u[1],c[0],c[1]])),d}function h(t,e){return function(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r<i;r+=1){var o=t[r];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}(t,e)}function f(t,e,n){var r=[],i=t[0],o=null;if(t.length<=2)return h(t,e);for(var a=0,s=t.length;a<s;a++){var u=t[a];o&&o.x===u.x&&o.y===u.y||(r.push(u.x),r.push(u.y),o=u)}var l=c(r,e,n||[[0,0],[1,1]]);return l.unshift(["M",i.x,i.y]),l}function d(t,e){var n=[];return Object(o.each)(e,(function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(s(e,t));break;case"a":n.push(u(e,t));break;case"z":default:n.push(e)}})),n}function p(t,e){var n,r,i,l=[];return Object(o.each)(e,(function(o,c){switch(o[0].toLowerCase()){case"m":case"c":case"q":l.push(s(o,t));break;case"l":n=e[c-1],r=o,i=t.isTransposed,(i?n[n.length-2]===r[1]:n[n.length-1]===r[2])?l=l.concat(function(t,e,n){var r=n.isTransposed,i=n.startAngle,o=n.endAngle,s="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},u={x:e[1],y:e[2]},l=[],c=r?"y":"x",h=Math.abs(u[c]-s[c])*(o-i),f=u[c]>=s[c]?1:0,d=h>Math.PI?1:0,p=n.convert(u),g=Object(a.getDistanceToCenter)(n,p);if(g>=.5)if(h===2*Math.PI){var v={x:(u.x+s.x)/2,y:(u.y+s.y)/2},m=n.convert(v);l.push(["A",g,g,0,d,f,m.x,m.y]),l.push(["A",g,g,0,d,f,p.x,p.y])}else l.push(["A",g,g,0,d,f,p.x,p.y]);return l}(n,r,t)):l.push(s(o,t));break;case"a":l.push(u(o,t));break;case"z":default:l.push(o)}})),function(t){Object(o.each)(t,(function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(l),l}},function(t,e,n){"use strict";n.r(e),n.d(e,"findLabelTextShape",(function(){return o})),n.d(e,"getLabelBackgroundInfo",(function(){return a})),n.d(e,"getOverlapArea",(function(){return s})),n.d(e,"checkShapeOverlap",(function(){return u}));var r=n(1),i=n(199);function o(t){return t.find((function(t){return"text"===t.get("type")}))}function a(t,e,n){void 0===n&&(n=[0,0,0,0]);var o=t&&t.getChildren()[0];if(o){var a=o.clone();(null==e?void 0:e.rotate)&&Object(i.rotate)(a,-e.rotate);var s=a.getCanvasBBox(),u=s.x,l=s.y,c=s.width,h=s.height;a.destroy();var f=n;return Object(r.isNil)(f)?f=[2,2,2,2]:Object(r.isNumber)(f)&&(f=new Array(4).fill(f)),{x:u-f[3],y:l-f[0],width:c+f[1]+f[3],height:h+f[0]+f[2],rotation:(null==e?void 0:e.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation:0}}function s(t,e,n){return void 0===n&&(n=0),Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n))*Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n))}function u(t,e){var n=t.getBBox();return Object(r.some)(e,(function(t){var e=t.getBBox();return s(n,e,2)>0}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"SectorShape",(function(){return a}));var r=n(66),i=n(36),o=n(1348),a=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},s=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.buildPath(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(i.default);s.prototype.type="sector",e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"PolylineShape",(function(){return a}));var r=n(66),i=n(36),o=n(701),a=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.buildPath(t,e,!1)},e}(i.default);s.prototype.type="polyline",e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"getShortenOffset",(function(){return h})),n.d(e,"addStartArrow",(function(){return f})),n.d(e,"addEndArrow",(function(){return d}));var r=n(2),i=n(292),o=Math.sin,a=Math.cos,s=Math.atan2,u=Math.PI;function l(t,e,n,r,l,c,h){var f=e.stroke,d=e.lineWidth,p=s(r-c,n-l),g=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*a(u/6)+","+10*o(u/6)+" L0,0 L"+10*a(u/6)+",-"+10*o(u/6),stroke:f,lineWidth:d}});g.translate(l,c),g.rotateAtPoint(l,c,p),t.set(h?"startArrowShape":"endArrowShape",g)}function c(t,e,n,u,l,c,h){var f=e.startArrow,d=e.endArrow,p=e.stroke,g=e.lineWidth,v=h?f:d,m=v.d,y=v.fill,b=v.stroke,_=v.lineWidth,x=Object(r.__rest)(v,["d","fill","stroke","lineWidth"]),w=s(u-c,n-l);m&&(l-=a(w)*m,c-=o(w)*m);var O=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:Object(r.__assign)(Object(r.__assign)({},x),{stroke:b||p,lineWidth:_||g,fill:y})});O.translate(l,c),O.rotateAtPoint(l,c,w),t.set(h?"startArrowShape":"endArrowShape",O)}function h(t,e,n,r,i){var u=s(r-e,n-t);return{dx:a(u)*i,dy:o(u)*i}}function f(t,e,n,r,i,o){"object"==typeof e.startArrow?c(t,e,n,r,i,o,!0):e.startArrow?l(t,e,n,r,i,o,!0):t.set("startArrowShape",null)}function d(t,e,n,r,i,o){"object"==typeof e.endArrow?c(t,e,n,r,i,o,!1):e.endArrow?l(t,e,n,r,i,o,!1):t.set("startArrowShape",null)}},function(t,e,n){"use strict";n.r(e),n.d(e,"ID_FIELD",(function(){return r})),n.d(e,"PATH_FIELD",(function(){return i})),n.d(e,"DEFAULT_OPTIONS",(function(){return o}));var r="id",i="path",o={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(t){return{name:t.id,value:t.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]}},function(t,e,n){"use strict";n.r(e),n.d(e,"Y_FIELD",(function(){return o})),n.d(e,"TREND_FIELD",(function(){return a})),n.d(e,"TREND_UP",(function(){return s})),n.d(e,"TREND_DOWN",(function(){return u})),n.d(e,"DEFAULT_TOOLTIP_OPTIONS",(function(){return l})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var r=n(26),i=n(3),o="$$stock-range$$",a="trend",s="up",u="down",l={showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0,text:function(t,e,n){var r;if("x"===t){var i=n[0];r=i?i.title:e}else r=e;return{position:"y"===t?"start":"end",content:r,style:{fill:"#dfdfdf"}}},textBackground:{padding:[2,4],style:{fill:"#666"}}}},c=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{tooltip:l,interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"})},function(t,e,n){"use strict";n.r(e),n.d(e,"X_FIELD",(function(){return r})),n.d(e,"Y_FIELD",(function(){return i})),n.d(e,"COLOR_FIELD",(function(){return o})),n.d(e,"NODES_VIEW_ID",(function(){return a})),n.d(e,"EDGES_VIEW_ID",(function(){return s}));var r="x",i="y",o="name",a="nodes",s="edges"},function(t,e){t.exports=function(t,e){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e);e.default=function(t){return null==t}},function(t,e,n){"use strict";function r(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function i(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function o(t,e,n,r){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r);break;default:0}}n.r(e),n.d(e,"getItemVisualFromData",(function(){return r})),n.d(e,"getVisualFromData",(function(){return i})),n.d(e,"setItemVisualFromData",(function(){return o}))},function(t,e,n){"use strict";n.r(e),n.d(e,"transform",(function(){return r})),n.d(e,"translate",(function(){return i})),n.d(e,"getRotateMatrix",(function(){return o})),n.d(e,"rotate",(function(){return a})),n.d(e,"getIdentityMatrix",(function(){return s})),n.d(e,"zoom",(function(){return u}));var r=n(25).ext.transform;function i(t,e,n){var i=r(t.getMatrix(),[["t",e,n]]);t.setMatrix(i)}function o(t,e){var n=t.attr(),i=n.x,o=n.y;return r(t.getMatrix(),[["t",-i,-o],["r",e],["t",i,o]])}function a(t,e){var n=o(t,e);t.setMatrix(n)}function s(){return[1,0,0,0,1,0,0,0,1]}function u(t,e){var n=t.getBBox(),i=(n.minX+n.maxX)/2,o=(n.minY+n.maxY)/2;t.applyToMatrix([i,o,1]);var a=r(t.getMatrix(),[["t",-i,-o],["s",e,e],["t",i,o]]);t.setMatrix(a)}},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"length",(function(){return a})),n.d(e,"fromValues",(function(){return s})),n.d(e,"copy",(function(){return u})),n.d(e,"set",(function(){return l})),n.d(e,"add",(function(){return c})),n.d(e,"subtract",(function(){return h})),n.d(e,"multiply",(function(){return f})),n.d(e,"divide",(function(){return d})),n.d(e,"ceil",(function(){return p})),n.d(e,"floor",(function(){return g})),n.d(e,"min",(function(){return v})),n.d(e,"max",(function(){return m})),n.d(e,"round",(function(){return y})),n.d(e,"scale",(function(){return b})),n.d(e,"scaleAndAdd",(function(){return _})),n.d(e,"distance",(function(){return x})),n.d(e,"squaredDistance",(function(){return w})),n.d(e,"squaredLength",(function(){return O})),n.d(e,"negate",(function(){return S})),n.d(e,"inverse",(function(){return C})),n.d(e,"normalize",(function(){return E})),n.d(e,"dot",(function(){return T})),n.d(e,"cross",(function(){return A})),n.d(e,"lerp",(function(){return M})),n.d(e,"hermite",(function(){return I})),n.d(e,"bezier",(function(){return j})),n.d(e,"random",(function(){return k})),n.d(e,"transformMat4",(function(){return P})),n.d(e,"transformMat3",(function(){return L})),n.d(e,"transformQuat",(function(){return R})),n.d(e,"rotateX",(function(){return D})),n.d(e,"rotateY",(function(){return N})),n.d(e,"rotateZ",(function(){return B})),n.d(e,"angle",(function(){return F})),n.d(e,"zero",(function(){return z})),n.d(e,"str",(function(){return V})),n.d(e,"exactEquals",(function(){return U})),n.d(e,"equals",(function(){return G})),n.d(e,"sub",(function(){return W})),n.d(e,"mul",(function(){return Y})),n.d(e,"div",(function(){return X})),n.d(e,"dist",(function(){return $})),n.d(e,"sqrDist",(function(){return q})),n.d(e,"len",(function(){return Z})),n.d(e,"sqrLen",(function(){return K})),n.d(e,"forEach",(function(){return Q}));var r=n(22);function i(){var t=new r.ARRAY_TYPE(3);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=new r.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function s(t,e,n){var i=new r.ARRAY_TYPE(3);return i[0]=t,i[1]=e,i[2]=n,i}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function l(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function c(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function d(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function p(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function v(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function _(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function x(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function w(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function O(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function S(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function C(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function E(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function T(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function A(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],u=n[2];return t[0]=i*u-o*s,t[1]=o*a-r*u,t[2]=r*s-i*a,t}function M(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t}function I(t,e,n,r,i,o){var a=o*o,s=a*(2*o-3)+1,u=a*(o-2)+o,l=a*(o-1),c=a*(3-2*o);return t[0]=e[0]*s+n[0]*u+r[0]*l+i[0]*c,t[1]=e[1]*s+n[1]*u+r[1]*l+i[1]*c,t[2]=e[2]*s+n[2]*u+r[2]*l+i[2]*c,t}function j(t,e,n,r,i,o){var a=1-o,s=a*a,u=o*o,l=s*a,c=3*o*s,h=3*u*a,f=u*o;return t[0]=e[0]*l+n[0]*c+r[0]*h+i[0]*f,t[1]=e[1]*l+n[1]*c+r[1]*h+i[1]*f,t[2]=e[2]*l+n[2]*c+r[2]*h+i[2]*f,t}function k(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI,i=2*r.RANDOM()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t}function P(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t}function L(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function R(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],u=e[1],l=e[2],c=i*l-o*u,h=o*s-r*l,f=r*u-i*s,d=i*f-o*h,p=o*c-r*f,g=r*h-i*c,v=2*a;return c*=v,h*=v,f*=v,d*=2,p*=2,g*=2,t[0]=s+c+d,t[1]=u+h+p,t[2]=l+f+g,t}function D(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function N(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function B(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function F(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2],u=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(o*o+a*a+s*s),l=u&&T(t,e)/u;return Math.acos(Math.min(Math.max(l,-1),1))}function z(t){return t[0]=0,t[1]=0,t[2]=0,t}function V(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function U(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function G(t,e){var n=t[0],i=t[1],o=t[2],a=e[0],s=e[1],u=e[2];return Math.abs(n-a)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-s)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-u)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(u))}var H,W=h,Y=f,X=d,$=x,q=w,Z=a,K=O,Q=(H=i(),function(t,e,n,r,i,o){var a,s;for(e||(e=3),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a<s;a+=e)H[0]=t[a],H[1]=t[a+1],H[2]=t[a+2],i(H,H,o),t[a]=H[0],t[a+1]=H[1],t[a+2]=H[2];return t})},function(t,e,n){"use strict";n.r(e),n.d(e,"setShadow",(function(){return i})),n.d(e,"setTransform",(function(){return o})),n.d(e,"setClip",(function(){return a}));var r=n(120);function i(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var o=e.find("filter",i);o||(o=e.addShadow(i)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")}function o(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}}function a(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){Object(r.createDom)(n),n.createPath(e);var o=e.addClip(n);i.setAttribute("clip-path","url(#"+o+")")}}else i.removeAttribute("clip-path")}},function(t,e,n){"use strict";n.r(e),n.d(e,"getRectPoints",(function(){return a})),n.d(e,"getRectPath",(function(){return s})),n.d(e,"parseRadius",(function(){return u})),n.d(e,"getBackgroundRectPath",(function(){return l})),n.d(e,"getIntervalRectPath",(function(){return c})),n.d(e,"getFunnelPath",(function(){return h})),n.d(e,"getRectWithCornerRadius",(function(){return d}));var r=n(2),i=n(1),o=n(78);function a(t){var e,n,o,a,s,u,l=t.x,c=t.y,h=t.y0,f=t.size;Object(i.isArray)(c)?(o=(e=Object(r.__read)(c,2))[0],a=e[1]):(o=h,a=c),Object(i.isArray)(l)?(s=(n=Object(r.__read)(l,2))[0],u=n[1]):(s=l-f/2,u=l+f/2);var d=[{x:s,y:o},{x:s,y:a}];return d.push({x:u,y:a},{x:u,y:o}),d}function s(t,e){void 0===e&&(e=!0);var n=[],r=t[0];n.push(["M",r.x,r.y]);for(var i=1,o=t.length;i<o;i++)n.push(["L",t[i].x,t[i].y]);return e&&(n.push(["L",r.x,r.y]),n.push(["z"])),n}function u(t,e){var n=0,r=0,o=0,a=0;return Object(i.isArray)(t)?1===t.length?n=r=o=a=t[0]:2===t.length?(n=o=t[0],r=a=t[1]):3===t.length?(n=t[0],r=a=t[1],o=t[2]):(n=t[0],r=t[1],o=t[2],a=t[3]):n=r=o=a=t,n+r>e&&(r=e-(n=n?e/(1+r/n):0)),o+a>e&&(a=e-(o=o?e/(1+a/o):0)),[n||0,r||0,o||0,a||0]}function l(t,e,n){var a=[];if(n.isRect){var s=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},l=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},c=Object(i.get)(t,["background","style","radius"]);if(c){var h=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,f=n.isTransposed?n.getWidth():n.getHeight(),d=Object(r.__read)(u(c,Math.min(h,f)),4),p=d[0],g=d[1],v=d[2],m=d[3],y=n.isTransposed&&n.isReflect("y"),b=y?0:1,_=function(t){return y?-t:t};a.push(["M",s.x,l.y+_(p)]),0!==p&&a.push(["A",p,p,0,0,b,s.x+p,l.y]),a.push(["L",l.x-g,l.y]),0!==g&&a.push(["A",g,g,0,0,b,l.x,l.y+_(g)]),a.push(["L",l.x,s.y-_(v)]),0!==v&&a.push(["A",v,v,0,0,b,l.x-v,s.y]),a.push(["L",s.x+m,s.y]),0!==m&&a.push(["A",m,m,0,0,b,s.x,s.y-_(m)])}else a.push(["M",s.x,s.y]),a.push(["L",l.x,s.y]),a.push(["L",l.x,l.y]),a.push(["L",s.x,l.y]),a.push(["L",s.x,s.y]);a.push(["z"])}if(n.isPolar){var x=n.getCenter(),w=Object(o.getAngle)(t,n),O=w.startAngle,S=w.endAngle;if("theta"===n.type||n.isTransposed){var C=function(t){return Math.pow(t,2)};p=Math.sqrt(C(x.x-e[0].x)+C(x.y-e[0].y)),g=Math.sqrt(C(x.x-e[2].x)+C(x.y-e[2].y));a=Object(o.getSectorPath)(x.x,x.y,p,n.startAngle,n.endAngle,g)}else a=Object(o.getSectorPath)(x.x,x.y,n.getRadius(),O,S)}return a}function c(t,e,n){var r=n.getWidth(),i=n.getHeight(),o="rect"===n.type,a=[],u=(t[2].x-t[1].x)/2,l=n.isTransposed?u*i/r:u*r/i;return"round"===e?(o?(a.push(["M",t[0].x,t[0].y+l]),a.push(["L",t[1].x,t[1].y-l]),a.push(["A",u,u,0,0,1,t[2].x,t[2].y-l]),a.push(["L",t[3].x,t[3].y+l]),a.push(["A",u,u,0,0,1,t[0].x,t[0].y+l])):(a.push(["M",t[0].x,t[0].y]),a.push(["L",t[1].x,t[1].y]),a.push(["A",u,u,0,0,1,t[2].x,t[2].y]),a.push(["L",t[3].x,t[3].y]),a.push(["A",u,u,0,0,1,t[0].x,t[0].y])),a.push(["z"])):a=s(t),a}function h(t,e,n){var r=[];return Object(i.isNil)(e)?n?r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),r}function f(t,e){return[e,t]}function d(t,e,n){var i,o,a,s,l,c,h,d=Object(r.__read)(Object(r.__spreadArray)([],Object(r.__read)(t),!1),4),p=d[0],g=d[1],v=d[2],m=d[3],y=Object(r.__read)("number"==typeof n?Array(4).fill(n):n,4),b=y[0],_=y[1],x=y[2],w=y[3];e.isTransposed&&(g=(i=Object(r.__read)(f(g,m),2))[0],m=i[1]),e.isReflect("y")&&(p=(o=Object(r.__read)(f(p,g),2))[0],g=o[1],v=(a=Object(r.__read)(f(v,m),2))[0],m=a[1]),e.isReflect("x")&&(p=(s=Object(r.__read)(f(p,m),2))[0],m=s[1],g=(l=Object(r.__read)(f(g,v),2))[0],v=l[1]);var O=[],S=function(t){return Math.abs(t)};return b=(c=Object(r.__read)(u([b,_,x,w],Math.min(S(m.x-p.x),S(g.y-p.y))).map((function(t){return S(t)})),4))[0],_=c[1],x=c[2],w=c[3],e.isTransposed&&(b=(h=Object(r.__read)([w,b,_,x],4))[0],_=h[1],x=h[2],w=h[3]),p.y<g.y?(O.push(["M",m.x,m.y+x]),0!==x&&O.push(["A",x,x,0,0,0,m.x-x,m.y]),O.push(["L",p.x+w,p.y]),0!==w&&O.push(["A",w,w,0,0,0,p.x,p.y+w]),O.push(["L",g.x,g.y-b]),0!==b&&O.push(["A",b,b,0,0,0,g.x+b,g.y]),O.push(["L",v.x-_,v.y]),0!==_&&O.push(["A",_,_,0,0,0,v.x,v.y-_]),O.push(["L",m.x,m.y+x]),O.push(["z"])):m.x<p.x?(O.push(["M",v.x+_,v.y]),0!==_&&O.push(["A",_,_,0,0,0,v.x,v.y+_]),O.push(["L",m.x,m.y-x]),0!==x&&O.push(["A",x,x,0,0,0,m.x+x,m.y]),O.push(["L",p.x-w,p.y]),0!==w&&O.push(["A",w,w,0,0,0,p.x,p.y-w]),O.push(["L",g.x,g.y+b]),0!==b&&O.push(["A",b,b,0,0,0,g.x-b,g.y]),O.push(["L",v.x+_,v.y]),O.push(["z"])):(O.push(["M",g.x,g.y+b]),0!==b&&O.push(["A",b,b,0,0,1,g.x+b,g.y]),O.push(["L",v.x-_,v.y]),0!==_&&O.push(["A",_,_,0,0,1,v.x,v.y+_]),O.push(["L",m.x,m.y-x]),0!==x&&O.push(["A",x,x,0,0,1,m.x-x,m.y]),O.push(["L",p.x+w,p.y]),0!==w&&O.push(["A",w,w,0,0,1,p.x,p.y-w]),O.push(["L",g.x,g.y+b]),O.push(["z"])),O}},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return l})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return h})),n.d(e,"__createBinding",(function(){return f})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return g})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return m})),n.d(e,"__await",(function(){return y})),n.d(e,"__asyncGenerator",(function(){return b})),n.d(e,"__asyncDelegator",(function(){return _})),n.d(e,"__asyncValues",(function(){return x})),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return O})),n.d(e,"__importDefault",(function(){return S})),n.d(e,"__classPrivateFieldGet",(function(){return C})),n.d(e,"__classPrivateFieldSet",(function(){return E}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function f(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function d(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function p(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t}function m(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(t){return this instanceof y?(this.v=t,this):new y(t)}function b(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function _(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function x(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}function C(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function E(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(52);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){Object(r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},function(t,e,n){"use strict";n.r(e);var r=n(1300);n.d(e,"MapMouseEvent",(function(){return r.default}));var i=n(1301);n.d(e,"MapTouchEvent",(function(){return i.default}));var o=n(1302);n.d(e,"MapWheelEvent",(function(){return o.default}))},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(54),a=n(355),s=n(41),u=n(9),l=n(83);function c(t){Object(u.defaultEmphasis)(t,"label",["show"])}var h=Object(u.makeInner)(),f=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(o.default.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,r){var o=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),a=h(t)[o];n&&n.data?(a?a._mergeOption(n,e,!0):(r&&c(n),i.each(n.data,(function(t){t instanceof Array?(c(t[0]),c(t[1])):c(t)})),a=this.createMarkerModelFromSeries(n,this,e),i.extend(a,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),a.__hostSeries=t),h(t)[o]=a):h(t)[o]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),o=r.getName(t);return Object(l.createTooltipMarkup)("section",{header:this.name,blocks:[Object(l.createTooltipMarkup)("nameValue",{name:o,value:i,noName:!o,noValue:null==i})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,e){return h(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(s.default);i.mixin(f,a.DataFormatMixin.prototype),e.default=f},function(t,e,n){"use strict";n.r(e);var r=n(656);n.d(e,"parsePath",(function(){return r.default}));var i=n(1086);n.d(e,"catmullRom2Bezier",(function(){return i.default}));var o=n(1088);n.d(e,"fillPath",(function(){return o.default}));var a=n(1089);n.d(e,"fillPathByDiff",(function(){return a.default}));var s=n(1090);n.d(e,"formatPath",(function(){return s.default}));var u=n(1091);n.d(e,"pathIntersection",(function(){return u.default}));var l=n(1092);n.d(e,"parsePathArray",(function(){return l.default}));var c=n(659);n.d(e,"parsePathString",(function(){return c.default}));var h=n(559);n.d(e,"path2Curve",(function(){return h.default}));var f=n(658);n.d(e,"path2Absolute",(function(){return f.default}));var d=n(657);n.d(e,"reactPath",(function(){return d.default}));var p=n(461);n.d(e,"getArcParams",(function(){return p.default}));var g=n(1093);n.d(e,"path2Segments",(function(){return g.default}));var v=n(660);n.d(e,"getLineIntersect",(function(){return v.default}));var m=n(1094);n.d(e,"isPolygonsIntersect",(function(){return m.default}));var y=n(560);n.d(e,"isPointInPolygon",(function(){return y.default}))},function(t,e,n){"use strict";n.r(e),n.d(e,"getPathPoints",(function(){return s})),n.d(e,"getViolinPath",(function(){return u})),n.d(e,"getSmoothViolinPath",(function(){return l}));var r=n(1),i=n(188);function o(t){return!t&&(null==t||isNaN(t))}function a(t){if(Object(r.isArray)(t))return o(t[1].y);var e=t.y;return Object(r.isArray)(e)?o(e[0]):o(e)}function s(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var r=[],i=0,o=t.length;i<o;i++){a(l=t[i])||r.push(l)}return[r]}var s=[],u=[];for(i=0,o=t.length;i<o;i++){var l;a(l=t[i])?u.length&&((1!==u.length||n)&&s.push(u),u=[]):u.push(l)}return u.length&&s.push(u),s}function u(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var o=t[0];return o&&(e.push(["L",o.x,o.y]),e.push(["z"])),e}function l(t){for(var e=t.length/2,n=[],r=[],o=0;o<t.length;o++)o<e?n.push(t[o]):r.push(t[o]);var a=Object(i.getSplinePath)(n,!1),s=Object(i.getSplinePath)(r,!1);r.length&&a.push(["L",r[0].x,r[0].y]),s.shift();var u=a.concat(s);return n.length&&u.push(["L",n[0].x,n[0].y]),u.push(["z"]),u}},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function s(t,e,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||t,o),u=i?i+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function u(t,e){0==--t._eventsCount?t._events=new o:delete t._events[e]}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),l.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)r.call(t,e)&&n.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},l.prototype.listeners=function(t){var e=i?i+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},l.prototype.listenerCount=function(t){var e=i?i+t:t,n=this._events[e];return n?n.fn?1:n.length:0},l.prototype.emit=function(t,e,n,r,o,a){var s=i?i+t:t;if(!this._events[s])return!1;var u,l,c=this._events[s],h=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),h){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,r),!0;case 5:return c.fn.call(c.context,e,n,r,o),!0;case 6:return c.fn.call(c.context,e,n,r,o,a),!0}for(l=1,u=new Array(h-1);l<h;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var f,d=c.length;for(l=0;l<d;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),h){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,e);break;case 3:c[l].fn.call(c[l].context,e,n);break;case 4:c[l].fn.call(c[l].context,e,n,r);break;default:if(!u)for(f=1,u=new Array(h-1);f<h;f++)u[f-1]=arguments[f];c[l].fn.apply(c[l].context,u)}}return!0},l.prototype.on=function(t,e,n){return s(this,t,e,n,!1)},l.prototype.once=function(t,e,n){return s(this,t,e,n,!0)},l.prototype.removeListener=function(t,e,n,r){var o=i?i+t:t;if(!this._events[o])return this;if(!e)return u(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||r&&!a.once||n&&a.context!==n||u(this,o);else{for(var s=0,l=[],c=a.length;s<c;s++)(a[s].fn!==e||r&&!a[s].once||n&&a[s].context!==n)&&l.push(a[s]);l.length?this._events[o]=1===l.length?l[0]:l:u(this,o)}return this},l.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&u(this,e)):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=i,l.EventEmitter=l,t.exports=l},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(1388),o=n(1389),a=Object(r.createHashMap)();e.default={registerMap:function(t,e,n){if(e.svg){var r=new i.GeoSVGResource(t,e.svg);a.set(t,r)}else{var s=e.geoJson||e.geoJSON;s&&!e.features?n=e.specialAreas:s=e;r=new o.GeoJSONResource(t,s,n);a.set(t,r)}},getGeoResource:function(t){return a.get(t)},getMapForUser:function(t){var e=a.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var r=a.get(t);if(r)return r.load(e,n)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"createFloat32Array",(function(){return a}));var r=n(0),i="undefined"!=typeof Float32Array,o=i?Float32Array:Array;function a(t){return Object(r.isArray)(t)?i?new Float32Array(t):t:new o(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"NODE_INDEX_FIELD",(function(){return i})),n.d(e,"CHILD_NODE_COUNT",(function(){return o})),n.d(e,"NODE_ANCESTORS_FIELD",(function(){return a})),n.d(e,"getField",(function(){return s})),n.d(e,"getAllNodes",(function(){return u}));var r=n(1),i="nodeIndex",o="childNodeCount",a="nodeAncestor";function s(t,e){var n=t.field,i=t.fields;if(Object(r.isString)(n))return n;if(Object(r.isArray)(n))return console.warn("Invalid field: it must be a string!"),n[0];if(console.warn("Invalid field: it must be a string! will try to get fields instead."),Object(r.isString)(i))return i;if(Object(r.isArray)(i)&&i.length)return i[0];if(e)return e;throw new TypeError("Invalid field: it must be a string!")}function u(t){var e,n,s=[];t&&t.each?t.each((function(t){var u,l;t.parent!==e?(e=t.parent,n=0):n+=1;var c=Object(r.filter)(((null===(u=t.ancestors)||void 0===u?void 0:u.call(t))||[]).map((function(t){return s.find((function(e){return e.name===t.name}))||t})),(function(e){var n=e.depth;return n>0&&n<t.depth}));t[a]=c,t[o]=(null===(l=t.children)||void 0===l?void 0:l.length)||0,t[i]=n,s.push(t)})):t&&t.eachNode&&t.eachNode((function(t){s.push(t)}));return s}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTickMethod",(function(){return i})),n.d(e,"registerTickMethod",(function(){return o}));var r={};function i(t){return r[t]}function o(t,e){r[t]=e}},function(t,e,n){"use strict";function r(t){var e=t.color;return e&&e.length?e:[1,1,1,1]}function i(t,e,n){return 2===n.length?[n[0],n[1],0]:[n[0],n[1],n[2]]}function o(t){return t.filter?[1]:[0]}function a(t,e){return[e]}n.r(e),n.d(e,"a_Color",(function(){return r})),n.d(e,"a_Position",(function(){return i})),n.d(e,"a_filter",(function(){return o})),n.d(e,"a_vertexId",(function(){return a}))},function(t,e,n){"use strict";function r(){return 0}n.r(e),n.d(e,"constantZero",(function(){return r})),e.default=function(t){return function(){return t}}},function(t,e,n){"use strict";n.r(e),function(t,n){
/*!
* Vue.js v2.6.10
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
var r=Object.freeze({});function i(t){return null==t}function o(t){return null!=t}function a(t){return!0===t}function s(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function u(t){return null!==t&&"object"==typeof t}var l=Object.prototype.toString;function c(t){return"[object Object]"===l.call(t)}function h(t){return"[object RegExp]"===l.call(t)}function f(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||c(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}v("slot,component",!0);var m=v("key,ref,slot,slot-scope,is");function y(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(t,e){return b.call(t,e)}function x(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var w=/-(\w)/g,O=x((function(t){return t.replace(w,(function(t,e){return e?e.toUpperCase():""}))})),S=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,E=x((function(t){return t.replace(C,"-$1").toLowerCase()}));var T=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function A(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function M(t,e){for(var n in e)t[n]=e[n];return t}function I(t){for(var e={},n=0;n<t.length;n++)t[n]&&M(e,t[n]);return e}function j(t,e,n){}var k=function(t,e,n){return!1},P=function(t){return t};function L(t,e){if(t===e)return!0;var n=u(t),r=u(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return L(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return L(t[n],e[n])}))}catch(t){return!1}}function R(t,e){for(var n=0;n<t.length;n++)if(L(t[n],e))return n;return-1}function D(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var N=["component","directive","filter"],B=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],F={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:k,isReservedAttr:k,isUnknownElement:k,getTagNamespace:j,parsePlatformTagName:P,mustUseProp:k,async:!0,_lifecycleHooks:B},z=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function V(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var U=new RegExp("[^"+z.source+".$_\\d]");var G,H="__proto__"in{},W="undefined"!=typeof window,Y="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,X=Y&&WXEnvironment.platform.toLowerCase(),$=W&&window.navigator.userAgent.toLowerCase(),q=$&&/msie|trident/.test($),Z=$&&$.indexOf("msie 9.0")>0,K=$&&$.indexOf("edge/")>0,Q=($&&$.indexOf("android"),$&&/iphone|ipad|ipod|ios/.test($)||"ios"===X),J=($&&/chrome\/\d+/.test($),$&&/phantomjs/.test($),$&&$.match(/firefox\/(\d+)/)),tt={}.watch,et=!1;if(W)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){et=!0}}),window.addEventListener("test-passive",null,nt)}catch(t){}var rt=function(){return void 0===G&&(G=!W&&!Y&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),G},it=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ot(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,st="undefined"!=typeof Symbol&&ot(Symbol)&&"undefined"!=typeof Reflect&&ot(Reflect.ownKeys);at="undefined"!=typeof Set&&ot(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ut=j,lt=0,ct=function(){this.id=lt++,this.subs=[]};ct.prototype.addSub=function(t){this.subs.push(t)},ct.prototype.removeSub=function(t){y(this.subs,t)},ct.prototype.depend=function(){ct.target&&ct.target.addDep(this)},ct.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},ct.target=null;var ht=[];function ft(t){ht.push(t),ct.target=t}function dt(){ht.pop(),ct.target=ht[ht.length-1]}var pt=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},gt={child:{configurable:!0}};gt.child.get=function(){return this.componentInstance},Object.defineProperties(pt.prototype,gt);var vt=function(t){void 0===t&&(t="");var e=new pt;return e.text=t,e.isComment=!0,e};function mt(t){return new pt(void 0,void 0,void 0,String(t))}function yt(t){var e=new pt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var bt=Array.prototype,_t=Object.create(bt);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=bt[t];V(_t,t,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o}))}));var xt=Object.getOwnPropertyNames(_t),wt=!0;function Ot(t){wt=t}var St=function(t){this.value=t,this.dep=new ct,this.vmCount=0,V(t,"__ob__",this),Array.isArray(t)?(H?function(t,e){t.__proto__=e}(t,_t):function(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];V(t,o,e[o])}}(t,_t,xt),this.observeArray(t)):this.walk(t)};function Ct(t,e){var n;if(u(t)&&!(t instanceof pt))return _(t,"__ob__")&&t.__ob__ instanceof St?n=t.__ob__:wt&&!rt()&&(Array.isArray(t)||c(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new St(t)),e&&n&&n.vmCount++,n}function Et(t,e,n,r,i){var o=new ct,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,u=a&&a.set;s&&!u||2!==arguments.length||(n=t[e]);var l=!i&&Ct(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return ct.target&&(o.depend(),l&&(l.dep.depend(),Array.isArray(e)&&Mt(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!=e&&r!=r||s&&!u||(u?u.call(t,e):n=e,l=!i&&Ct(e),o.notify())}})}}function Tt(t,e,n){if(Array.isArray(t)&&f(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(Et(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function At(t,e){if(Array.isArray(t)&&f(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||_(t,e)&&(delete t[e],n&&n.dep.notify())}}function Mt(t){for(var e=void 0,n=0,r=t.length;n<r;n++)(e=t[n])&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Mt(e)}St.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)Et(t,e[n])},St.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Ct(t[e])};var It=F.optionMergeStrategies;function jt(t,e){if(!e)return t;for(var n,r,i,o=st?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=t[n],i=e[n],_(t,n)?r!==i&&c(r)&&c(i)&&jt(r,i):Tt(t,n,i));return t}function kt(t,e,n){return n?function(){var r="function"==typeof e?e.call(n,n):e,i="function"==typeof t?t.call(n,n):t;return r?jt(r,i):i}:e?t?function(){return jt("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function Pt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function Lt(t,e,n,r){var i=Object.create(t||null);return e?M(i,e):i}It.data=function(t,e,n){return n?kt(t,e,n):e&&"function"!=typeof e?t:kt(t,e)},B.forEach((function(t){It[t]=Pt})),N.forEach((function(t){It[t+"s"]=Lt})),It.watch=function(t,e,n,r){if(t===tt&&(t=void 0),e===tt&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in M(i,t),e){var a=i[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},It.props=It.methods=It.inject=It.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return M(i,t),e&&M(i,e),i},It.provide=kt;var Rt=function(t,e){return void 0===e?t:e};function Dt(t,e,n){if("function"==typeof e&&(e=e.options),function(t,e){var n=t.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[O(i)]={type:null});else if(c(n))for(var a in n)i=n[a],o[O(a)]=c(i)?i:{type:i};else 0;t.props=o}}(e),function(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(c(n))for(var o in n){var a=n[o];r[o]=c(a)?M({from:o},a):{from:a}}else 0}}(e),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"==typeof r&&(e[n]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=Dt(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Dt(t,e.mixins[r],n);var o,a={};for(o in t)s(o);for(o in e)_(t,o)||s(o);function s(r){var i=It[r]||Rt;a[r]=i(t[r],e[r],n,r)}return a}function Nt(t,e,n,r){if("string"==typeof n){var i=t[e];if(_(i,n))return i[n];var o=O(n);if(_(i,o))return i[o];var a=S(o);return _(i,a)?i[a]:i[n]||i[o]||i[a]}}function Bt(t,e,n,r){var i=e[t],o=!_(n,t),a=n[t],s=Vt(Boolean,i.type);if(s>-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===E(t)){var u=Vt(String,i.type);(u<0||s<u)&&(a=!0)}if(void 0===a){a=function(t,e,n){if(!_(e,"default"))return;var r=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return"function"==typeof r&&"Function"!==Ft(e.type)?r.call(t):r}(r,i,t);var l=wt;Ot(!0),Ct(a),Ot(l)}return a}function Ft(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function zt(t,e){return Ft(t)===Ft(e)}function Vt(t,e){if(!Array.isArray(e))return zt(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(zt(e[n],t))return n;return-1}function Ut(t,e,n){ft();try{if(e)for(var r=e;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,t,e,n))return}catch(t){Ht(t,r,"errorCaptured hook")}}Ht(t,e,n)}finally{dt()}}function Gt(t,e,n,r,i){var o;try{(o=n?t.apply(e,n):t.call(e))&&!o._isVue&&d(o)&&!o._handled&&(o.catch((function(t){return Ut(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(t){Ut(t,r,i)}return o}function Ht(t,e,n){if(F.errorHandler)try{return F.errorHandler.call(null,t,e,n)}catch(e){e!==t&&Wt(e,null,"config.errorHandler")}Wt(t,e,n)}function Wt(t,e,n){if(!W&&!Y||"undefined"==typeof console)throw t;console.error(t)}var Yt,Xt=!1,$t=[],qt=!1;function Zt(){qt=!1;var t=$t.slice(0);$t.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&ot(Promise)){var Kt=Promise.resolve();Yt=function(){Kt.then(Zt),Q&&setTimeout(j)},Xt=!0}else if(q||"undefined"==typeof MutationObserver||!ot(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Yt=void 0!==n&&ot(n)?function(){n(Zt)}:function(){setTimeout(Zt,0)};else{var Qt=1,Jt=new MutationObserver(Zt),te=document.createTextNode(String(Qt));Jt.observe(te,{characterData:!0}),Yt=function(){Qt=(Qt+1)%2,te.data=String(Qt)},Xt=!0}function ee(t,e){var n;if($t.push((function(){if(t)try{t.call(e)}catch(t){Ut(t,e,"nextTick")}else n&&n(e)})),qt||(qt=!0,Yt()),!t&&"undefined"!=typeof Promise)return new Promise((function(t){n=t}))}var ne=new at;function re(t){!function t(e,n){var r,i,o=Array.isArray(e);if(!o&&!u(e)||Object.isFrozen(e)||e instanceof pt)return;if(e.__ob__){var a=e.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(r=e.length;r--;)t(e[r],n);else for(i=Object.keys(e),r=i.length;r--;)t(e[i[r]],n)}(t,ne),ne.clear()}var ie=x((function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}}));function oe(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return Gt(r,null,arguments,e,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)Gt(i[o],null,t,e,"v-on handler")}return n.fns=t,n}function ae(t,e,n,r,o,s){var u,l,c,h;for(u in t)l=t[u],c=e[u],h=ie(u),i(l)||(i(c)?(i(l.fns)&&(l=t[u]=oe(l,s)),a(h.once)&&(l=t[u]=o(h.name,l,h.capture)),n(h.name,l,h.capture,h.passive,h.params)):l!==c&&(c.fns=l,t[u]=c));for(u in e)i(t[u])&&r((h=ie(u)).name,e[u],h.capture)}function se(t,e,n){var r;t instanceof pt&&(t=t.data.hook||(t.data.hook={}));var s=t[e];function u(){n.apply(this,arguments),y(r.fns,u)}i(s)?r=oe([u]):o(s.fns)&&a(s.merged)?(r=s).fns.push(u):r=oe([s,u]),r.merged=!0,t[e]=r}function ue(t,e,n,r,i){if(o(e)){if(_(e,n))return t[n]=e[n],i||delete e[n],!0;if(_(e,r))return t[n]=e[r],i||delete e[r],!0}return!1}function le(t){return s(t)?[mt(t)]:Array.isArray(t)?function t(e,n){var r,u,l,c,h=[];for(r=0;r<e.length;r++)i(u=e[r])||"boolean"==typeof u||(l=h.length-1,c=h[l],Array.isArray(u)?u.length>0&&(ce((u=t(u,(n||"")+"_"+r))[0])&&ce(c)&&(h[l]=mt(c.text+u[0].text),u.shift()),h.push.apply(h,u)):s(u)?ce(c)?h[l]=mt(c.text+u):""!==u&&h.push(mt(u)):ce(u)&&ce(c)?h[l]=mt(c.text+u.text):(a(e._isVList)&&o(u.tag)&&i(u.key)&&o(n)&&(u.key="__vlist"+n+"_"+r+"__"),h.push(u)));return h}(t):void 0}function ce(t){return o(t)&&o(t.text)&&!1===t.isComment}function he(t,e){if(t){for(var n=Object.create(null),r=st?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=t[o].from,s=e;s;){if(s._provided&&_(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var u=t[o].default;n[o]="function"==typeof u?u.call(e):u}else 0}}return n}}function fe(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,u=n[s]||(n[s]=[]);"template"===o.tag?u.push.apply(u,o.children||[]):u.push(o)}}for(var l in n)n[l].every(de)&&delete n[l];return n}function de(t){return t.isComment&&!t.asyncFactory||" "===t.text}function pe(t,e,n){var i,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var u in i={},t)t[u]&&"$"!==u[0]&&(i[u]=ge(e,u,t[u]))}else i={};for(var l in e)l in i||(i[l]=ve(e,l));return t&&Object.isExtensible(t)&&(t._normalized=i),V(i,"$stable",a),V(i,"$key",s),V(i,"$hasNormal",o),i}function ge(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:le(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function ve(t,e){return function(){return t[e]}}function me(t,e){var n,r,i,a,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=e(t[r],r);else if("number"==typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(u(t))if(st&&t[Symbol.iterator]){n=[];for(var l=t[Symbol.iterator](),c=l.next();!c.done;)n.push(e(c.value,n.length)),c=l.next()}else for(a=Object.keys(t),n=new Array(a.length),r=0,i=a.length;r<i;r++)s=a[r],n[r]=e(t[s],s,r);return o(n)||(n=[]),n._isVList=!0,n}function ye(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=M(M({},r),n)),i=o(n)||e):i=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function be(t){return Nt(this.$options,"filters",t)||P}function _e(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function xe(t,e,n,r,i){var o=F.keyCodes[e]||n;return i&&r&&!F.keyCodes[e]?_e(i,r):o?_e(o,t):r?E(r)!==e:void 0}function we(t,e,n,r,i){if(n)if(u(n)){var o;Array.isArray(n)&&(n=I(n));var a=function(a){if("class"===a||"style"===a||m(a))o=t;else{var s=t.attrs&&t.attrs.type;o=r||F.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var u=O(a),l=E(a);u in o||l in o||(o[a]=n[a],i&&((t.on||(t.on={}))["update:"+a]=function(t){n[a]=t}))};for(var s in n)a(s)}else;return t}function Oe(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||Ce(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),"__static__"+t,!1),r}function Se(t,e,n){return Ce(t,"__once__"+e+(n?"_"+n:""),!0),t}function Ce(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&Ee(t[r],e+"_"+r,n);else Ee(t,e,n)}function Ee(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Te(t,e){if(e)if(c(e)){var n=t.on=t.on?M({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function Ae(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?Ae(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Me(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"==typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Ie(t,e){return"string"==typeof t?e+t:t}function je(t){t._o=Se,t._n=g,t._s=p,t._l=me,t._t=ye,t._q=L,t._i=R,t._m=Oe,t._f=be,t._k=xe,t._b=we,t._v=mt,t._e=vt,t._u=Ae,t._g=Te,t._d=Me,t._p=Ie}function ke(t,e,n,i,o){var s,u=this,l=o.options;_(i,"_uid")?(s=Object.create(i))._original=i:(s=i,i=i._original);var c=a(l._compiled),h=!c;this.data=t,this.props=e,this.children=n,this.parent=i,this.listeners=t.on||r,this.injections=he(l.inject,i),this.slots=function(){return u.$slots||pe(t.scopedSlots,u.$slots=fe(n,i)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return pe(t.scopedSlots,this.slots())}}),c&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=pe(t.scopedSlots,this.$slots)),l._scopeId?this._c=function(t,e,n,r){var o=Fe(s,t,e,n,r,h);return o&&!Array.isArray(o)&&(o.fnScopeId=l._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return Fe(s,t,e,n,r,h)}}function Pe(t,e,n,r,i){var o=yt(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function Le(t,e){for(var n in e)t[O(n)]=e[n]}je(ke.prototype);var Re={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;Re.prepatch(n,n)}else{(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,qe)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,i,o){0;var a=i.data.scopedSlots,s=t.$scopedSlots,u=!!(a&&!a.$stable||s!==r&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),l=!!(o||t.$options._renderChildren||u);t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i);if(t.$options._renderChildren=o,t.$attrs=i.data.attrs||r,t.$listeners=n||r,e&&t.$options.props){Ot(!1);for(var c=t._props,h=t.$options._propKeys||[],f=0;f<h.length;f++){var d=h[f],p=t.$options.props;c[d]=Bt(d,p,e,t)}Ot(!0),t.$options.propsData=e}n=n||r;var g=t.$options._parentListeners;t.$options._parentListeners=n,$e(t,n,g),l&&(t.$slots=fe(o,i.context),t.$forceUpdate());0}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e,n=t.context,r=t.componentInstance;r._isMounted||(r._isMounted=!0,Je(r,"mounted")),t.data.keepAlive&&(n._isMounted?((e=r)._inactive=!1,en.push(e)):Qe(r,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,n){if(n&&(e._directInactive=!0,Ke(e)))return;if(!e._inactive){e._inactive=!0;for(var r=0;r<e.$children.length;r++)t(e.$children[r]);Je(e,"deactivated")}}(e,!0):e.$destroy())}},De=Object.keys(Re);function Ne(t,e,n,s,l){if(!i(t)){var c=n.$options._base;if(u(t)&&(t=c.extend(t)),"function"==typeof t){var h;if(i(t.cid)&&void 0===(t=function(t,e){if(a(t.error)&&o(t.errorComp))return t.errorComp;if(o(t.resolved))return t.resolved;var n=Ve;n&&o(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n);if(a(t.loading)&&o(t.loadingComp))return t.loadingComp;if(n&&!o(t.owners)){var r=t.owners=[n],s=!0,l=null,c=null;n.$on("hook:destroyed",(function(){return y(r,n)}));var h=function(t){for(var e=0,n=r.length;e<n;e++)r[e].$forceUpdate();t&&(r.length=0,null!==l&&(clearTimeout(l),l=null),null!==c&&(clearTimeout(c),c=null))},f=D((function(n){t.resolved=Ue(n,e),s?r.length=0:h(!0)})),p=D((function(e){o(t.errorComp)&&(t.error=!0,h(!0))})),g=t(f,p);return u(g)&&(d(g)?i(t.resolved)&&g.then(f,p):d(g.component)&&(g.component.then(f,p),o(g.error)&&(t.errorComp=Ue(g.error,e)),o(g.loading)&&(t.loadingComp=Ue(g.loading,e),0===g.delay?t.loading=!0:l=setTimeout((function(){l=null,i(t.resolved)&&i(t.error)&&(t.loading=!0,h(!1))}),g.delay||200)),o(g.timeout)&&(c=setTimeout((function(){c=null,i(t.resolved)&&p(null)}),g.timeout)))),s=!1,t.loading?t.loadingComp:t.resolved}}(h=t,c)))return function(t,e,n,r,i){var o=vt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}(h,e,n,s,l);e=e||{},wn(t),o(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var i=e.on||(e.on={}),a=i[r],s=e.model.callback;o(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(i[r]=[s].concat(a)):i[r]=s}(t.options,e);var f=function(t,e,n){var r=e.options.props;if(!i(r)){var a={},s=t.attrs,u=t.props;if(o(s)||o(u))for(var l in r){var c=E(l);ue(a,u,l,c,!0)||ue(a,s,l,c,!1)}return a}}(e,t);if(a(t.options.functional))return function(t,e,n,i,a){var s=t.options,u={},l=s.props;if(o(l))for(var c in l)u[c]=Bt(c,l,e||r);else o(n.attrs)&&Le(u,n.attrs),o(n.props)&&Le(u,n.props);var h=new ke(n,u,a,i,t),f=s.render.call(null,h._c,h);if(f instanceof pt)return Pe(f,n,h.parent,s,h);if(Array.isArray(f)){for(var d=le(f)||[],p=new Array(d.length),g=0;g<d.length;g++)p[g]=Pe(d[g],n,h.parent,s,h);return p}}(t,f,e,n,s);var p=e.on;if(e.on=e.nativeOn,a(t.options.abstract)){var g=e.slot;e={},g&&(e.slot=g)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<De.length;n++){var r=De[n],i=e[r],o=Re[r];i===o||i&&i._merged||(e[r]=i?Be(o,i):o)}}(e);var v=t.options.name||l;return new pt("vue-component-"+t.cid+(v?"-"+v:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:f,listeners:p,tag:l,children:s},h)}}}function Be(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function Fe(t,e,n,r,l,c){return(Array.isArray(n)||s(n))&&(l=r,r=n,n=void 0),a(c)&&(l=2),function(t,e,n,r,s){if(o(n)&&o(n.__ob__))return vt();o(n)&&o(n.is)&&(e=n.is);if(!e)return vt();0;Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);2===s?r=le(r):1===s&&(r=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(r));var l,c;if("string"==typeof e){var h;c=t.$vnode&&t.$vnode.ns||F.getTagNamespace(e),l=F.isReservedTag(e)?new pt(F.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!o(h=Nt(t.$options,"components",e))?new pt(e,n,r,void 0,void 0,t):Ne(h,n,t,r,e)}else l=Ne(e,n,t,r);return Array.isArray(l)?l:o(l)?(o(c)&&function t(e,n,r){e.ns=n,"foreignObject"===e.tag&&(n=void 0,r=!0);if(o(e.children))for(var s=0,u=e.children.length;s<u;s++){var l=e.children[s];o(l.tag)&&(i(l.ns)||a(r)&&"svg"!==l.tag)&&t(l,n,r)}}(l,c),o(n)&&function(t){u(t.style)&&re(t.style);u(t.class)&&re(t.class)}(n),l):vt()}(t,e,n,r,l)}var ze,Ve=null;function Ue(t,e){return(t.__esModule||st&&"Module"===t[Symbol.toStringTag])&&(t=t.default),u(t)?e.extend(t):t}function Ge(t){return t.isComment&&t.asyncFactory}function He(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(o(n)&&(o(n.componentOptions)||Ge(n)))return n}}function We(t,e){ze.$on(t,e)}function Ye(t,e){ze.$off(t,e)}function Xe(t,e){var n=ze;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function $e(t,e,n){ze=t,ae(e,n||{},We,Ye,Xe,t),ze=void 0}var qe=null;function Ze(t){var e=qe;return qe=t,function(){qe=e}}function Ke(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function Qe(t,e){if(e){if(t._directInactive=!1,Ke(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Qe(t.$children[n]);Je(t,"activated")}}function Je(t,e){ft();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Gt(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),dt()}var tn=[],en=[],nn={},rn=!1,on=!1,an=0;var sn=0,un=Date.now;if(W&&!q){var ln=window.performance;ln&&"function"==typeof ln.now&&un()>document.createEvent("Event").timeStamp&&(un=function(){return ln.now()})}function cn(){var t,e;for(sn=un(),on=!0,tn.sort((function(t,e){return t.id-e.id})),an=0;an<tn.length;an++)(t=tn[an]).before&&t.before(),e=t.id,nn[e]=null,t.run();var n=en.slice(),r=tn.slice();an=tn.length=en.length=0,nn={},rn=on=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Qe(t[e],!0)}(n),function(t){var e=t.length;for(;e--;){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Je(r,"updated")}}(r),it&&F.devtools&&it.emit("flush")}var hn=0,fn=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++hn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new at,this.newDepIds=new at,this.expression="","function"==typeof e?this.getter=e:(this.getter=function(t){if(!U.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=j)),this.value=this.lazy?void 0:this.get()};fn.prototype.get=function(){var t;ft(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;Ut(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&re(t),dt(),this.cleanupDeps()}return t},fn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},fn.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},fn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==nn[e]){if(nn[e]=!0,on){for(var n=tn.length-1;n>an&&tn[n].id>t.id;)n--;tn.splice(n+1,0,t)}else tn.push(t);rn||(rn=!0,ee(cn))}}(this)},fn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Ut(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},fn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},fn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var dn={enumerable:!0,configurable:!0,get:j,set:j};function pn(t,e,n){dn.get=function(){return this[e][n]},dn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,dn)}function gn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];t.$parent&&Ot(!1);var o=function(o){i.push(o);var a=Bt(o,e,n,t);Et(r,o,a),o in t||pn(t,"_props",o)};for(var a in e)o(a);Ot(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?j:T(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;c(e=t._data="function"==typeof e?function(t,e){ft();try{return t.call(e,e)}catch(t){return Ut(t,e,"data()"),{}}finally{dt()}}(e,t):e||{})||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&_(r,o)||(a=void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&pn(t,"_data",o))}var a;Ct(e,!0)}(t):Ct(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=rt();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new fn(t,a||j,j,vn)),i in t||mn(t,i,o)}}(t,e.computed),e.watch&&e.watch!==tt&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)_n(t,n,r[i]);else _n(t,n,r)}}(t,e.watch)}var vn={lazy:!0};function mn(t,e,n){var r=!rt();"function"==typeof n?(dn.get=r?yn(e):bn(n),dn.set=j):(dn.get=n.get?r&&!1!==n.cache?yn(e):bn(n.get):j,dn.set=n.set||j),Object.defineProperty(t,e,dn)}function yn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ct.target&&e.depend(),e.value}}function bn(t){return function(){return t.call(this,this)}}function _n(t,e,n,r){return c(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var xn=0;function wn(t){var e=t.options;if(t.super){var n=wn(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&M(t.extendOptions,r),(e=t.options=Dt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function On(t){this._init(t)}function Sn(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=Dt(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)pn(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)mn(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,N.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=M({},a.options),i[r]=a,a}}function Cn(t){return t&&(t.Ctor.options.name||t.tag)}function En(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!h(t)&&t.test(e)}function Tn(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Cn(a.componentOptions);s&&!e(s)&&An(n,o,r,i)}}}function An(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,y(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=xn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Dt(wn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&$e(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=fe(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,n,r,i){return Fe(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Fe(t,e,n,r,i,!0)};var o=n&&n.data;Et(t,"$attrs",o&&o.attrs||r,null,!0),Et(t,"$listeners",e._parentListeners||r,null,!0)}(e),Je(e,"beforeCreate"),function(t){var e=he(t.$options.inject,t);e&&(Ot(!1),Object.keys(e).forEach((function(n){Et(t,n,e[n])})),Ot(!0))}(e),gn(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),Je(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(On),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Tt,t.prototype.$delete=At,t.prototype.$watch=function(t,e,n){if(c(e))return _n(this,t,e,n);(n=n||{}).user=!0;var r=new fn(this,t,e,n);if(n.immediate)try{e.call(this,r.value)}catch(t){Ut(t,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(On),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;for(var s=a.length;s--;)if((o=a[s])===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?A(n):n;for(var r=A(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;o<a;o++)Gt(n[o],e,r,e,i)}return e}}(On),function(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=Ze(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Je(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||y(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Je(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(On),function(t){je(t.prototype),t.prototype.$nextTick=function(t){return ee(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=pe(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{Ve=e,t=r.call(e._renderProxy,e.$createElement)}catch(n){Ut(n,e,"render"),t=e._vnode}finally{Ve=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof pt||(t=vt()),t.parent=i,t}}(On);var Mn=[String,RegExp,Array],In={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Mn,exclude:Mn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)An(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Tn(t,(function(t){return En(e,t)}))})),this.$watch("exclude",(function(e){Tn(t,(function(t){return!En(e,t)}))}))},render:function(){var t=this.$slots.default,e=He(t),n=e&&e.componentOptions;if(n){var r=Cn(n),i=this.include,o=this.exclude;if(i&&(!r||!En(i,r))||o&&r&&En(o,r))return e;var a=this.cache,s=this.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;a[u]?(e.componentInstance=a[u].componentInstance,y(s,u),s.push(u)):(a[u]=e,s.push(u),this.max&&s.length>parseInt(this.max)&&An(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return F}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:M,mergeOptions:Dt,defineReactive:Et},t.set=Tt,t.delete=At,t.nextTick=ee,t.observable=function(t){return Ct(t),t},t.options=Object.create(null),N.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,M(t.options.components,In),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=A(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Dt(this.options,t),this}}(t),Sn(t),function(t){N.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&c(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(On),Object.defineProperty(On.prototype,"$isServer",{get:rt}),Object.defineProperty(On.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(On,"FunctionalRenderContext",{value:ke}),On.version="2.6.10";var jn=v("style,class"),kn=v("input,textarea,option,select,progress"),Pn=v("contenteditable,draggable,spellcheck"),Ln=v("events,caret,typing,plaintext-only"),Rn=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Dn="http://www.w3.org/1999/xlink",Nn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Bn=function(t){return Nn(t)?t.slice(6,t.length):""},Fn=function(t){return null==t||!1===t};function zn(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Vn(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=Vn(e,n.data));return function(t,e){if(o(t)||o(e))return Un(t,Gn(e));return""}(e.staticClass,e.class)}function Vn(t,e){return{staticClass:Un(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Un(t,e){return t?e?t+" "+e:t:e||""}function Gn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r<i;r++)o(e=Gn(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):u(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var Hn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Wn=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Yn=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Xn=function(t){return Wn(t)||Yn(t)};var $n=Object.create(null);var qn=v("text,number,password,search,email,tel,url");var Zn=Object.freeze({createElement:function(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(t,e){return document.createElementNS(Hn[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),Kn={create:function(t,e){Qn(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Qn(t,!0),Qn(e))},destroy:function(t){Qn(t,!0)}};function Qn(t,e){var n=t.data.ref;if(o(n)){var r=t.context,i=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?y(a[n],i):a[n]===i&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(i)<0&&a[n].push(i):a[n]=[i]:a[n]=i}}var Jn=new pt("",{},[]),tr=["create","activate","update","remove","destroy"];function er(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&o(t.data)===o(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,r=o(n=t.data)&&o(n=n.attrs)&&n.type,i=o(n=e.data)&&o(n=n.attrs)&&n.type;return r===i||qn(r)&&qn(i)}(t,e)||a(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&i(e.asyncFactory.error))}function nr(t,e,n){var r,i,a={};for(r=e;r<=n;++r)o(i=t[r].key)&&(a[i]=r);return a}var rr={create:ir,update:ir,destroy:function(t){ir(t,Jn)}};function ir(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,r,i,o=t===Jn,a=e===Jn,s=ar(t.data.directives,t.context),u=ar(e.data.directives,e.context),l=[],c=[];for(n in u)r=s[n],i=u[n],r?(i.oldValue=r.value,i.oldArg=r.arg,ur(i,"update",e,t),i.def&&i.def.componentUpdated&&c.push(i)):(ur(i,"bind",e,t),i.def&&i.def.inserted&&l.push(i));if(l.length){var h=function(){for(var n=0;n<l.length;n++)ur(l[n],"inserted",e,t)};o?se(e,"insert",h):h()}c.length&&se(e,"postpatch",(function(){for(var n=0;n<c.length;n++)ur(c[n],"componentUpdated",e,t)}));if(!o)for(n in s)u[n]||ur(s[n],"unbind",t,t,a)}(t,e)}var or=Object.create(null);function ar(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++)(r=t[n]).modifiers||(r.modifiers=or),i[sr(r)]=r,r.def=Nt(e.$options,"directives",r.name);return i}function sr(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function ur(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(r){Ut(r,n.context,"directive "+t.name+" "+e+" hook")}}var lr=[Kn,rr];function cr(t,e){var n=e.componentOptions;if(!(o(n)&&!1===n.Ctor.options.inheritAttrs||i(t.data.attrs)&&i(e.data.attrs))){var r,a,s=e.elm,u=t.data.attrs||{},l=e.data.attrs||{};for(r in o(l.__ob__)&&(l=e.data.attrs=M({},l)),l)a=l[r],u[r]!==a&&hr(s,r,a);for(r in(q||K)&&l.value!==u.value&&hr(s,"value",l.value),u)i(l[r])&&(Nn(r)?s.removeAttributeNS(Dn,Bn(r)):Pn(r)||s.removeAttribute(r))}}function hr(t,e,n){t.tagName.indexOf("-")>-1?fr(t,e,n):Rn(e)?Fn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Pn(e)?t.setAttribute(e,function(t,e){return Fn(e)||"false"===e?"false":"contenteditable"===t&&Ln(e)?e:"true"}(e,n)):Nn(e)?Fn(n)?t.removeAttributeNS(Dn,Bn(e)):t.setAttributeNS(Dn,e,n):fr(t,e,n)}function fr(t,e,n){if(Fn(n))t.removeAttribute(e);else{if(q&&!Z&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var dr={create:cr,update:cr};function pr(t,e){var n=e.elm,r=e.data,a=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=zn(e),u=n._transitionClasses;o(u)&&(s=Un(s,Gn(u))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var gr,vr={create:pr,update:pr};function mr(t,e,n){var r=gr;return function i(){var o=e.apply(null,arguments);null!==o&&_r(t,i,n,r)}}var yr=Xt&&!(J&&Number(J[1])<=53);function br(t,e,n,r){if(yr){var i=sn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}gr.addEventListener(t,e,et?{capture:n,passive:r}:n)}function _r(t,e,n,r){(r||gr).removeEventListener(t,e._wrapper||e,n)}function xr(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};gr=e.elm,function(t){if(o(t.__r)){var e=q?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}o(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),ae(n,r,br,_r,mr,e.context),gr=void 0}}var wr,Or={create:xr,update:xr};function Sr(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,a=e.elm,s=t.data.domProps||{},u=e.data.domProps||{};for(n in o(u.__ob__)&&(u=e.data.domProps=M({},u)),s)n in u||(a[n]="");for(n in u){if(r=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var l=i(r)?"":String(r);Cr(a,l)&&(a.value=l)}else if("innerHTML"===n&&Yn(a.tagName)&&i(a.innerHTML)){(wr=wr||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var c=wr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;c.firstChild;)a.appendChild(c.firstChild)}else if(r!==s[n])try{a[n]=r}catch(t){}}}}function Cr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return g(n)!==g(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Er={create:Sr,update:Sr},Tr=x((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function Ar(t){var e=Mr(t.style);return t.staticStyle?M(t.staticStyle,e):e}function Mr(t){return Array.isArray(t)?I(t):"string"==typeof t?Tr(t):t}var Ir,jr=/^--/,kr=/\s*!important$/,Pr=function(t,e,n){if(jr.test(e))t.style.setProperty(e,n);else if(kr.test(n))t.style.setProperty(E(e),n.replace(kr,""),"important");else{var r=Rr(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},Lr=["Webkit","Moz","ms"],Rr=x((function(t){if(Ir=Ir||document.createElement("div").style,"filter"!==(t=O(t))&&t in Ir)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Lr.length;n++){var r=Lr[n]+e;if(r in Ir)return r}}));function Dr(t,e){var n=e.data,r=t.data;if(!(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))){var a,s,u=e.elm,l=r.staticStyle,c=r.normalizedStyle||r.style||{},h=l||c,f=Mr(e.data.style)||{};e.data.normalizedStyle=o(f.__ob__)?M({},f):f;var d=function(t,e){var n,r={};if(e)for(var i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Ar(i.data))&&M(r,n);(n=Ar(t.data))&&M(r,n);for(var o=t;o=o.parent;)o.data&&(n=Ar(o.data))&&M(r,n);return r}(e,!0);for(s in h)i(d[s])&&Pr(u,s,"");for(s in d)(a=d[s])!==h[s]&&Pr(u,s,null==a?"":a)}}var Nr={create:Dr,update:Dr},Br=/\s+/;function Fr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Br).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function zr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Br).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Vr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&M(e,Ur(t.name||"v")),M(e,t),e}return"string"==typeof t?Ur(t):void 0}}var Ur=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Gr=W&&!Z,Hr="transition",Wr="transitionend",Yr="animation",Xr="animationend";Gr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Hr="WebkitTransition",Wr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Yr="WebkitAnimation",Xr="webkitAnimationEnd"));var $r=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function qr(t){$r((function(){$r(t)}))}function Zr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Fr(t,e))}function Kr(t,e){t._transitionClasses&&y(t._transitionClasses,e),zr(t,e)}function Qr(t,e,n){var r=ti(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s="transition"===i?Wr:Xr,u=0,l=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++u>=a&&l()};setTimeout((function(){u<a&&l()}),o+1),t.addEventListener(s,c)}var Jr=/\b(transform|all)(,|$)/;function ti(t,e){var n,r=window.getComputedStyle(t),i=(r[Hr+"Delay"]||"").split(", "),o=(r[Hr+"Duration"]||"").split(", "),a=ei(i,o),s=(r[Yr+"Delay"]||"").split(", "),u=(r[Yr+"Duration"]||"").split(", "),l=ei(s,u),c=0,h=0;return"transition"===e?a>0&&(n="transition",c=a,h=o.length):"animation"===e?l>0&&(n="animation",c=l,h=u.length):h=(n=(c=Math.max(a,l))>0?a>l?"transition":"animation":null)?"transition"===n?o.length:u.length:0,{type:n,timeout:c,propCount:h,hasTransform:"transition"===n&&Jr.test(r[Hr+"Property"])}}function ei(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return ni(e)+ni(t[n])})))}function ni(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function ri(t,e){var n=t.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=Vr(t.data.transition);if(!i(r)&&!o(n._enterCb)&&1===n.nodeType){for(var a=r.css,s=r.type,l=r.enterClass,c=r.enterToClass,h=r.enterActiveClass,f=r.appearClass,d=r.appearToClass,p=r.appearActiveClass,v=r.beforeEnter,m=r.enter,y=r.afterEnter,b=r.enterCancelled,_=r.beforeAppear,x=r.appear,w=r.afterAppear,O=r.appearCancelled,S=r.duration,C=qe,E=qe.$vnode;E&&E.parent;)C=E.context,E=E.parent;var T=!C._isMounted||!t.isRootInsert;if(!T||x||""===x){var A=T&&f?f:l,M=T&&p?p:h,I=T&&d?d:c,j=T&&_||v,k=T&&"function"==typeof x?x:m,P=T&&w||y,L=T&&O||b,R=g(u(S)?S.enter:S);0;var N=!1!==a&&!Z,B=ai(k),F=n._enterCb=D((function(){N&&(Kr(n,I),Kr(n,M)),F.cancelled?(N&&Kr(n,A),L&&L(n)):P&&P(n),n._enterCb=null}));t.data.show||se(t,"insert",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),k&&k(n,F)})),j&&j(n),N&&(Zr(n,A),Zr(n,M),qr((function(){Kr(n,A),F.cancelled||(Zr(n,I),B||(oi(R)?setTimeout(F,R):Qr(n,s,F)))}))),t.data.show&&(e&&e(),k&&k(n,F)),N||B||F()}}}function ii(t,e){var n=t.elm;o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=Vr(t.data.transition);if(i(r)||1!==n.nodeType)return e();if(!o(n._leaveCb)){var a=r.css,s=r.type,l=r.leaveClass,c=r.leaveToClass,h=r.leaveActiveClass,f=r.beforeLeave,d=r.leave,p=r.afterLeave,v=r.leaveCancelled,m=r.delayLeave,y=r.duration,b=!1!==a&&!Z,_=ai(d),x=g(u(y)?y.leave:y);0;var w=n._leaveCb=D((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),b&&(Kr(n,c),Kr(n,h)),w.cancelled?(b&&Kr(n,l),v&&v(n)):(e(),p&&p(n)),n._leaveCb=null}));m?m(O):O()}function O(){w.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),f&&f(n),b&&(Zr(n,l),Zr(n,h),qr((function(){Kr(n,l),w.cancelled||(Zr(n,c),_||(oi(x)?setTimeout(w,x):Qr(n,s,w)))}))),d&&d(n,w),b||_||w())}}function oi(t){return"number"==typeof t&&!isNaN(t)}function ai(t){if(i(t))return!1;var e=t.fns;return o(e)?ai(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function si(t,e){!0!==e.data.show&&ri(e)}var ui=function(t){var e,n,r={},u=t.modules,l=t.nodeOps;for(e=0;e<tr.length;++e)for(r[tr[e]]=[],n=0;n<u.length;++n)o(u[n][tr[e]])&&r[tr[e]].push(u[n][tr[e]]);function c(t){var e=l.parentNode(t);o(e)&&l.removeChild(e,t)}function h(t,e,n,i,s,u,c){if(o(t.elm)&&o(u)&&(t=u[c]=yt(t)),t.isRootInsert=!s,!function(t,e,n,i){var s=t.data;if(o(s)){var u=o(t.componentInstance)&&s.keepAlive;if(o(s=s.hook)&&o(s=s.init)&&s(t,!1),o(t.componentInstance))return f(t,e),d(n,t.elm,i),a(u)&&function(t,e,n,i){var a,s=t;for(;s.componentInstance;)if(s=s.componentInstance._vnode,o(a=s.data)&&o(a=a.transition)){for(a=0;a<r.activate.length;++a)r.activate[a](Jn,s);e.push(s);break}d(n,t.elm,i)}(t,e,n,i),!0}}(t,e,n,i)){var h=t.data,g=t.children,v=t.tag;o(v)?(t.elm=t.ns?l.createElementNS(t.ns,v):l.createElement(v,t),y(t),p(t,g,e),o(h)&&m(t,e),d(n,t.elm,i)):a(t.isComment)?(t.elm=l.createComment(t.text),d(n,t.elm,i)):(t.elm=l.createTextNode(t.text),d(n,t.elm,i))}}function f(t,e){o(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,g(t)?(m(t,e),y(t)):(Qn(t),e.push(t))}function d(t,e,n){o(t)&&(o(n)?l.parentNode(n)===t&&l.insertBefore(t,e,n):l.appendChild(t,e))}function p(t,e,n){if(Array.isArray(e)){0;for(var r=0;r<e.length;++r)h(e[r],n,t.elm,null,!0,e,r)}else s(t.text)&&l.appendChild(t.elm,l.createTextNode(String(t.text)))}function g(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return o(t.tag)}function m(t,n){for(var i=0;i<r.create.length;++i)r.create[i](Jn,t);o(e=t.data.hook)&&(o(e.create)&&e.create(Jn,t),o(e.insert)&&n.push(t))}function y(t){var e;if(o(e=t.fnScopeId))l.setStyleScope(t.elm,e);else for(var n=t;n;)o(e=n.context)&&o(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e),n=n.parent;o(e=qe)&&e!==t.context&&e!==t.fnContext&&o(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e)}function b(t,e,n,r,i,o){for(;r<=i;++r)h(n[r],o,t,e,!1,n,r)}function _(t){var e,n,i=t.data;if(o(i))for(o(e=i.hook)&&o(e=e.destroy)&&e(t),e=0;e<r.destroy.length;++e)r.destroy[e](t);if(o(e=t.children))for(n=0;n<t.children.length;++n)_(t.children[n])}function x(t,e,n,r){for(;n<=r;++n){var i=e[n];o(i)&&(o(i.tag)?(w(i),_(i)):c(i.elm))}}function w(t,e){if(o(e)||o(t.data)){var n,i=r.remove.length+1;for(o(e)?e.listeners+=i:e=function(t,e){function n(){0==--n.listeners&&c(t)}return n.listeners=e,n}(t.elm,i),o(n=t.componentInstance)&&o(n=n._vnode)&&o(n.data)&&w(n,e),n=0;n<r.remove.length;++n)r.remove[n](t,e);o(n=t.data.hook)&&o(n=n.remove)?n(t,e):e()}else c(t.elm)}function O(t,e,n,r){for(var i=n;i<r;i++){var a=e[i];if(o(a)&&er(t,a))return i}}function S(t,e,n,s,u,c){if(t!==e){o(e.elm)&&o(s)&&(e=s[u]=yt(e));var f=e.elm=t.elm;if(a(t.isAsyncPlaceholder))o(e.asyncFactory.resolved)?T(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(a(e.isStatic)&&a(t.isStatic)&&e.key===t.key&&(a(e.isCloned)||a(e.isOnce)))e.componentInstance=t.componentInstance;else{var d,p=e.data;o(p)&&o(d=p.hook)&&o(d=d.prepatch)&&d(t,e);var v=t.children,m=e.children;if(o(p)&&g(e)){for(d=0;d<r.update.length;++d)r.update[d](t,e);o(d=p.hook)&&o(d=d.update)&&d(t,e)}i(e.text)?o(v)&&o(m)?v!==m&&function(t,e,n,r,a){var s,u,c,f=0,d=0,p=e.length-1,g=e[0],v=e[p],m=n.length-1,y=n[0],_=n[m],w=!a;for(0;f<=p&&d<=m;)i(g)?g=e[++f]:i(v)?v=e[--p]:er(g,y)?(S(g,y,r,n,d),g=e[++f],y=n[++d]):er(v,_)?(S(v,_,r,n,m),v=e[--p],_=n[--m]):er(g,_)?(S(g,_,r,n,m),w&&l.insertBefore(t,g.elm,l.nextSibling(v.elm)),g=e[++f],_=n[--m]):er(v,y)?(S(v,y,r,n,d),w&&l.insertBefore(t,v.elm,g.elm),v=e[--p],y=n[++d]):(i(s)&&(s=nr(e,f,p)),i(u=o(y.key)?s[y.key]:O(y,e,f,p))?h(y,r,t,g.elm,!1,n,d):er(c=e[u],y)?(S(c,y,r,n,d),e[u]=void 0,w&&l.insertBefore(t,c.elm,g.elm)):h(y,r,t,g.elm,!1,n,d),y=n[++d]);f>p?b(t,i(n[m+1])?null:n[m+1].elm,n,d,m,r):d>m&&x(0,e,f,p)}(f,v,m,n,c):o(m)?(o(t.text)&&l.setTextContent(f,""),b(f,null,m,0,m.length-1,n)):o(v)?x(0,v,0,v.length-1):o(t.text)&&l.setTextContent(f,""):t.text!==e.text&&l.setTextContent(f,e.text),o(p)&&o(d=p.hook)&&o(d=d.postpatch)&&d(t,e)}}}function C(t,e,n){if(a(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var E=v("attrs,class,staticClass,staticStyle,key");function T(t,e,n,r){var i,s=e.tag,u=e.data,l=e.children;if(r=r||u&&u.pre,e.elm=t,a(e.isComment)&&o(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(o(u)&&(o(i=u.hook)&&o(i=i.init)&&i(e,!0),o(i=e.componentInstance)))return f(e,n),!0;if(o(s)){if(o(l))if(t.hasChildNodes())if(o(i=u)&&o(i=i.domProps)&&o(i=i.innerHTML)){if(i!==t.innerHTML)return!1}else{for(var c=!0,h=t.firstChild,d=0;d<l.length;d++){if(!h||!T(h,l[d],n,r)){c=!1;break}h=h.nextSibling}if(!c||h)return!1}else p(e,l,n);if(o(u)){var g=!1;for(var v in u)if(!E(v)){g=!0,m(e,n);break}!g&&u.class&&re(u.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,s){if(!i(e)){var u,c=!1,f=[];if(i(t))c=!0,h(e,f);else{var d=o(t.nodeType);if(!d&&er(t,e))S(t,e,f,null,null,s);else{if(d){if(1===t.nodeType&&t.hasAttribute("data-server-rendered")&&(t.removeAttribute("data-server-rendered"),n=!0),a(n)&&T(t,e,f))return C(e,f,!0),t;u=t,t=new pt(l.tagName(u).toLowerCase(),{},[],void 0,u)}var p=t.elm,v=l.parentNode(p);if(h(e,f,p._leaveCb?null:v,l.nextSibling(p)),o(e.parent))for(var m=e.parent,y=g(e);m;){for(var b=0;b<r.destroy.length;++b)r.destroy[b](m);if(m.elm=e.elm,y){for(var w=0;w<r.create.length;++w)r.create[w](Jn,m);var O=m.data.hook.insert;if(O.merged)for(var E=1;E<O.fns.length;E++)O.fns[E]()}else Qn(m);m=m.parent}o(v)?x(0,[t],0,0):o(t.tag)&&_(t)}}return C(e,f,c),e.elm}o(t)&&_(t)}}({nodeOps:Zn,modules:[dr,vr,Or,Er,Nr,W?{create:si,activate:si,remove:function(t,e){!0!==t.data.show?ii(t,e):e()}}:{}].concat(lr)});Z&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&vi(t,"input")}));var li={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?se(n,"postpatch",(function(){li.componentUpdated(t,e,n)})):ci(t,e,n.context),t._vOptions=[].map.call(t.options,di)):("textarea"===n.tag||qn(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",pi),t.addEventListener("compositionend",gi),t.addEventListener("change",gi),Z&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){ci(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,di);if(i.some((function(t,e){return!L(t,r[e])})))(t.multiple?e.value.some((function(t){return fi(t,i)})):e.value!==e.oldValue&&fi(e.value,i))&&vi(t,"change")}}};function ci(t,e,n){hi(t,e,n),(q||K)&&setTimeout((function(){hi(t,e,n)}),0)}function hi(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,u=t.options.length;s<u;s++)if(a=t.options[s],i)o=R(r,di(a))>-1,a.selected!==o&&(a.selected=o);else if(L(di(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function fi(t,e){return e.every((function(e){return!L(e,t)}))}function di(t){return"_value"in t?t._value:t.value}function pi(t){t.target.composing=!0}function gi(t){t.target.composing&&(t.target.composing=!1,vi(t.target,"input"))}function vi(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function mi(t){return!t.componentInstance||t.data&&t.data.transition?t:mi(t.componentInstance._vnode)}var yi={model:li,show:{bind:function(t,e,n){var r=e.value,i=(n=mi(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,ri(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=mi(n)).data&&n.data.transition?(n.data.show=!0,r?ri(n,(function(){t.style.display=t.__vOriginalDisplay})):ii(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},bi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function _i(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?_i(He(e.children)):t}function xi(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[O(o)]=i[o];return e}function wi(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Oi=function(t){return t.tag||Ge(t)},Si=function(t){return"show"===t.name},Ci={name:"transition",props:bi,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Oi)).length){0;var r=this.mode;0;var i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=_i(i);if(!o)return i;if(this._leaving)return wi(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var u=(o.data||(o.data={})).transition=xi(this),l=this._vnode,c=_i(l);if(o.data.directives&&o.data.directives.some(Si)&&(o.data.show=!0),c&&c.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,c)&&!Ge(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var h=c.data.transition=M({},u);if("out-in"===r)return this._leaving=!0,se(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),wi(t,i);if("in-out"===r){if(Ge(o))return l;var f,d=function(){f()};se(u,"afterEnter",d),se(u,"enterCancelled",d),se(h,"delayLeave",(function(t){f=t}))}}return i}}},Ei=M({tag:String,moveClass:String},bi);function Ti(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Ai(t){t.data.newPos=t.elm.getBoundingClientRect()}function Mi(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Ei.mode;var Ii={Transition:Ci,TransitionGroup:{props:Ei,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Ze(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=xi(this),s=0;s<i.length;s++){var u=i[s];if(u.tag)if(null!=u.key&&0!==String(u.key).indexOf("__vlist"))o.push(u),n[u.key]=u,(u.data||(u.data={})).transition=a;else;}if(r){for(var l=[],c=[],h=0;h<r.length;h++){var f=r[h];f.data.transition=a,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?l.push(f):c.push(f)}this.kept=t(e,null,l),this.removed=c}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(Ti),t.forEach(Ai),t.forEach(Mi),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;Zr(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Wr,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Wr,t),n._moveCb=null,Kr(n,e))})}})))},methods:{hasMove:function(t,e){if(!Gr)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){zr(n,t)})),Fr(n,e),n.style.display="none",this.$el.appendChild(n);var r=ti(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};On.config.mustUseProp=function(t,e,n){return"value"===n&&kn(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},On.config.isReservedTag=Xn,On.config.isReservedAttr=jn,On.config.getTagNamespace=function(t){return Yn(t)?"svg":"math"===t?"math":void 0},On.config.isUnknownElement=function(t){if(!W)return!0;if(Xn(t))return!1;if(t=t.toLowerCase(),null!=$n[t])return $n[t];var e=document.createElement(t);return t.indexOf("-")>-1?$n[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:$n[t]=/HTMLUnknownElement/.test(e.toString())},M(On.options.directives,yi),M(On.options.components,Ii),On.prototype.__patch__=W?ui:j,On.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=vt),Je(t,"beforeMount"),r=function(){t._update(t._render(),n)},new fn(t,r,j,{before:function(){t._isMounted&&!t._isDestroyed&&Je(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Je(t,"mounted")),t}(this,t=t&&W?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}(t):void 0,e)},W&&setTimeout((function(){F.devtools&&it&&it.emit("init",On)}),0),e.default=On}.call(this,n(309),n(950).setImmediate)},function(t,e,n){"use strict";n.r(e);var r=n(1),i=function(t,e){return Object(r.isString)(e)?e:t.invert(t.scale(e))},o=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,r)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),r=e*t-n,i=this.values[n];return i+((n===e?i:this.values[n+1])-i)*r},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],i=0;i<n;i+=1)r.push(e[i]);return r},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var r=t.scales[n];return"identity"===r.type?r.values[0]:t._getAttributeValue(r,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,i=void 0===n?"base":n,o=t.names,a=void 0===o?[]:o,s=t.scales,u=void 0===s?[]:s,l=t.values,c=void 0===l?[]:l,h=t.callback;this.type=i,this.scales=u,this.values=c,this.names=a,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(h){var i=h.apply(void 0,t);if(!Object(r.isNil)(i))return[i]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var r=t.scale(e);return this.getLinearValue(r)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:Object(r.isArray)(t)?t.map((function(t){return i(e,t)})):i(e,t)},t}();e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"Facet",(function(){return s}));var r=n(2),i=n(1),o=n(7),a=n(124),s=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=Object(i.deepMix)({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,r=t.padding,i=void 0===r?this.cfg.padding:r,o=this.view.createView({region:e,padding:i});o.data(n||[]),t.view=o,this.beforeEachView(o,t);var a=this.cfg.eachView;return a&&a(o,t),this.afterEachView(o,t),o},t.prototype.createContainer=function(){return this.view.getLayer(o.LAYER.FORE).addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;Object(i.each)(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.parseSpacing=function(){var t=this.view.viewBBox,e=t.width,n=t.height;return this.cfg.spacing.map((function(t,r){return Object(i.isNumber)(t)?t/(0===r?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],r={};return Object(i.each)(t,(function(t){var o=t[e];Object(i.isNil)(o)||r[o]||(n.push(o),r[o]=!0)})),n},t.prototype.getRegion=function(t,e,n,i){var o=Object(r.__read)(this.parseSpacing(),2),a=o[0],s=o[1],u=(1+a)/(0===e?1:e)-a,l=(1+s)/(0===t?1:t)-s,c={x:(u+a)*n,y:(l+s)*i};return{start:c,end:{x:c.x+u,y:c.y+l}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),o=n.coordinate,s=t.geometries;if("rect"===Object(i.get)(o,"type","rect")&&s.length){Object(i.isNil)(n.axes)&&(n.axes={});var u=n.axes,l=Object(r.__read)(s[0].getXYFields(),2),c=l[0],h=l[1],f=Object(a.getAxisOption)(u,c),d=Object(a.getAxisOption)(u,h);!1!==f&&(n.axes[c]=this.getXAxisOption(c,u,f,e)),!1!==d&&(n.axes[h]=this.getYAxisOption(h,u,d,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return Object(i.every)(t,(function(t){var n=t.field,r=t.value;return!(!Object(i.isNil)(r)&&n)||e[n]===r}))}},t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"Controller",(function(){return i}));var r=n(1),i=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){Object(r.each)(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}()},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"PassType",(function(){return r})),function(t){t.Normal="normal",t.PostProcessing="post-processing"}(r||(r={}))},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(358),o=n(70),a={},s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(e,n,r,o){this.axisPointerClass&&i.fixValue(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},e.prototype.updateAxisPointer=function(t,e,n,r){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,r){var o=e.getAxisPointerClass(this.axisPointerClass);if(o){var a=i.getAxisPointerModel(t);a?(this._axisPointer||(this._axisPointer=new o)).render(t,a,n,r):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){a[t]=e},e.getAxisPointerClass=function(t){return t&&a[t]},e.type="axis",e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(95),a=n(24),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return Object(r.__extends)(e,t),e.prototype.getTriggerListInfo=function(){var t=Object(a.getDelegationObject)(this.context),e=null;return Object(a.isList)(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=Object(a.getComponents)(e),r=[];return Object(i.each)(n,(function(e){e.isList()&&t.allowSetStateByElement(e)&&r.push(e)})),r},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();Object(i.each)(e,(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var r=this.context.view,i=Object(a.getScaleByField)(r,e);return i&&i.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;return!n.length||0===n.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByElement=function(t,e,n){var r=t.get("field"),i=this.context.view,o=Object(a.getScaleByField)(i,r),s=Object(a.getElementValue)(e,r),u=o.getText(s);this.setItemsState(t,u,n)},e.prototype.setStateEnable=function(t){var e=this,n=Object(a.getCurrentElement)(this.context);if(n){var r=this.getAllowComponents();Object(i.each)(r,(function(r){e.setStateByElement(r,n,t)}))}else{var o=Object(a.getDelegationObject)(this.context);if(Object(a.isList)(o)){var s=o.item,u=o.component;this.allowSetStateByElement(u)&&this.allowSetStateByItem(s,u)&&this.setItemState(u,s,t)}}},e.prototype.setItemsState=function(t,e,n){var r=this,o=t.getItems();Object(i.each)(o,(function(i){i.name===e&&r.setItemState(t,i,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,r=this.hasState(e,n);this.setItemState(e,n,!r)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"normalPadding",(function(){return i})),n.d(e,"getAdjustAppendPadding",(function(){return o})),n.d(e,"resolveAllPadding",(function(){return a}));var r=n(1);function i(t){if(Object(r.isNumber)(t))return[t,t,t,t];if(Object(r.isArray)(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}function o(t,e,n){void 0===e&&(e="bottom"),void 0===n&&(n=25);var r=i(t),o=[e.startsWith("top")?n:0,e.startsWith("right")?n:0,e.startsWith("bottom")?n:0,e.startsWith("left")?n:0];return[r[0]+o[0],r[1]+o[1],r[2]+o[2],r[3]+o[3]]}function a(t){var e=t.map((function(t){return i(t)})),n=[0,0,0,0];return e.length>0&&(n=n.map((function(t,n){return e.forEach((function(r,i){t+=e[i][n]})),t}))),n}},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"Version",(function(){return r})),function(t){t["GAODE1.x"]="GAODE1.x",t["GAODE2.x"]="GAODE2.x",t.MAPBOX="MAPBOX",t.L7MAP="L7MAP",t.SIMPLE="SIMPLE",t.GLOBEL="GLOBEL"}(r||(r={}))},function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"web worker helper assertion failed.")}n.r(e),n.d(e,"assert",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(6),o=n(71),a=n(228),s=n(123),u=i.round,l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return Object(r.__extends)(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return s.contain(t,this._extent)},e.prototype.normalize=function(t){return s.normalize(t,this._extent)},e.prototype.scale=function(t){return s.scale(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=s.getIntervalPrecision(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;n[0]<r[0]&&(t?o.push({value:u(r[0]-e,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=u(a+e,i))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(t?o.push({value:u(s+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<e.length;i++){for(var o=e[i],a=e[i-1],s=0,l=[],c=(o.value-a.value)/t;s<t-1;){var h=u(a.value+(s+1)*c);h>r[0]&&h<r[1]&&l.push(h),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=i.getPrecision(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=u(t.value,n,!0);return o.addCommas(r)},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=s.intervalScaleNiceTicks(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var r=e[1]-e[0];isFinite(r)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=u(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=u(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(a.default);a.default.registerClass(l),e.default=l},function(t,e,n){var r=n(2024);t.exports=function(t,e){if(null==t)return{};var n,i,o=r(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e);var r=n(127),i=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();r.enableClassManagement(i),e.default=i},function(t,e,n){"use strict";function r(t,e){var n=[],r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=e[0],d=e[1],p=e[2],g=e[3],v=e[4],m=e[5],y=e[6],b=e[7],_=e[8];return n[0]=f*r+d*a+p*l,n[1]=f*i+d*s+p*c,n[2]=f*o+d*u+p*h,n[3]=g*r+v*a+m*l,n[4]=g*i+v*s+m*c,n[5]=g*o+v*u+m*h,n[6]=y*r+b*a+_*l,n[7]=y*i+b*s+_*c,n[8]=y*o+b*u+_*h,n}function i(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n}function o(t){var e=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],l=t[7],c=t[8],h=c*a-s*l,f=-c*o+s*u,d=l*o-a*u,p=n*h+r*f+i*d;return p?(p=1/p,e[0]=h*p,e[1]=(-c*r+i*l)*p,e[2]=(s*r-i*a)*p,e[3]=f*p,e[4]=(c*n-i*u)*p,e[5]=(-s*n+i*o)*p,e[6]=d*p,e[7]=(-l*n+r*u)*p,e[8]=(a*n-r*o)*p,e):null}n.r(e),n.d(e,"multiplyMatrix",(function(){return r})),n.d(e,"multiplyVec2",(function(){return i})),n.d(e,"invert",(function(){return o}))},function(t,e,n){"use strict";n.r(e);var r=n(91),i=n(271);e.default={box:function(t,e,n,i){return Object(r.getBBoxByArray)([t,n],[e,i])},length:function(t,e,n,i){return Object(r.distance)(t,e,n,i)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,i,o,a){var s=(n-t)*(o-t)+(i-e)*(a-e);return s<0?Object(r.distance)(t,e,o,a):s>(n-t)*(n-t)+(i-e)*(i-e)?Object(r.distance)(n,i,o,a):this.pointToLine(t,e,n,i,o,a)},pointToLine:function(t,e,n,r,o,a){var s=[n-t,r-e];if(i.exactEquals(s,[0,0]))return Math.sqrt((o-t)*(o-t)+(a-e)*(a-e));var u=[-s[1],s[0]];i.normalize(u,u);var l=[o-t,a-e];return Math.abs(i.dot(l,u))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}}},function(t,e,n){"use strict";function r(t){return isFinite(t)}function i(t,e,n){var i=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,s=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,s=s*n.height+n.y),i=r(i)?i:0,o=r(o)?o:1,a=r(a)?a:0,s=r(s)?s:0,t.createLinearGradient(i,a,o,s)}function o(t,e,n){var i=n.width,o=n.height,a=Math.min(i,o),s=null==e.x?.5:e.x,u=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(s=s*i+n.x,u=u*o+n.y,l*=a),s=r(s)?s:.5,u=r(u)?u:.5,l=l>=0&&r(l)?l:.5,t.createRadialGradient(s,u,0,s,u,l)}function a(t,e,n){for(var r="radial"===e.type?o(t,e,n):i(t,e,n),a=e.colorStops,s=0;s<a.length;s++)r.addColorStop(a[s].offset,a[s].color);return r}function s(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function u(t){return parseInt(t,10)}function l(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||u(s[r])||u(t.style[r]))-(u(s[o])||0)-(u(s[a])||0)|0}n.r(e),n.d(e,"createLinearGradient",(function(){return i})),n.d(e,"createRadialGradient",(function(){return o})),n.d(e,"getCanvasGradient",(function(){return a})),n.d(e,"isClipPathChanged",(function(){return s})),n.d(e,"getSize",(function(){return l}))},function(t,e,n){"use strict";n.r(e),n.d(e,"updateLabelLinePoints",(function(){return A})),n.d(e,"limitTurnAngle",(function(){return j})),n.d(e,"limitSurfaceAngle",(function(){return k})),n.d(e,"setLabelLineStyle",(function(){return R})),n.d(e,"getLabelLineStatesModels",(function(){return D}));var r=n(57),i=n(36),o=n(191),a=n(151),s=n(341),u=n(53),l=n(0),c=n(42),h=n(18),f=n(11),d=2*Math.PI,p=a.default.CMD,g=["top","right","bottom","left"];function v(t,e,n,r,i){var o=n.width,a=n.height;switch(t){case"top":r.set(n.x+o/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+e,n.y+a/2),i.set(1,0)}}function m(t,e,n,r,i,o,a,u,l){a-=t,u-=e;var c=Math.sqrt(a*a+u*u),h=(a/=c)*n+t,f=(u/=c)*n+e;if(Math.abs(r-i)%d<1e-4)return l[0]=h,l[1]=f,c-n;if(o){var p=r;r=Object(s.normalizeRadian)(i),i=Object(s.normalizeRadian)(p)}else r=Object(s.normalizeRadian)(r),i=Object(s.normalizeRadian)(i);r>i&&(i+=d);var g=Math.atan2(u,a);if(g<0&&(g+=d),g>=r&&g<=i||g+d>=r&&g+d<=i)return l[0]=h,l[1]=f,c-n;var v=n*Math.cos(r)+t,m=n*Math.sin(r)+e,y=n*Math.cos(i)+t,b=n*Math.sin(i)+e,_=(v-a)*(v-a)+(m-u)*(m-u),x=(y-a)*(y-a)+(b-u)*(b-u);return _<x?(l[0]=v,l[1]=m,Math.sqrt(_)):(l[0]=y,l[1]=b,Math.sqrt(x))}function y(t,e,n,r,i,o,a,s){var u=i-t,l=o-e,c=n-t,h=r-e,f=Math.sqrt(c*c+h*h),d=(u*(c/=f)+l*(h/=f))/f;s&&(d=Math.min(Math.max(d,0),1)),d*=f;var p=a[0]=t+d*c,g=a[1]=e+d*h;return Math.sqrt((p-i)*(p-i)+(g-o)*(g-o))}function b(t,e,n,r,i,o,a){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r);var s=t+n,u=e+r,l=a[0]=Math.min(Math.max(i,t),s),c=a[1]=Math.min(Math.max(o,e),u);return Math.sqrt((l-i)*(l-i)+(c-o)*(c-o))}var _=[];function x(t,e,n){var r=b(e.x,e.y,e.width,e.height,t.x,t.y,_);return n.set(_[0],_[1]),r}function w(t,e,n){for(var r,i,o=0,a=0,s=0,l=0,c=1/0,h=e.data,f=t.x,d=t.y,g=0;g<h.length;){var v=h[g++];1===g&&(s=o=h[g],l=a=h[g+1]);var x=c;switch(v){case p.M:o=s=h[g++],a=l=h[g++];break;case p.L:x=y(o,a,h[g],h[g+1],f,d,_,!0),o=h[g++],a=h[g++];break;case p.C:x=Object(u.cubicProjectPoint)(o,a,h[g++],h[g++],h[g++],h[g++],h[g],h[g+1],f,d,_),o=h[g++],a=h[g++];break;case p.Q:x=Object(u.quadraticProjectPoint)(o,a,h[g++],h[g++],h[g],h[g+1],f,d,_),o=h[g++],a=h[g++];break;case p.A:var w=h[g++],O=h[g++],S=h[g++],C=h[g++],E=h[g++],T=h[g++];g+=1;var A=!!(1-h[g++]);r=Math.cos(E)*S+w,i=Math.sin(E)*C+O,g<=1&&(s=r,l=i),x=m(w,O,C,E,E+T,A,(f-w)*C/S+w,d,_),o=Math.cos(E+T)*S+w,a=Math.sin(E+T)*C+O;break;case p.R:x=b(s=o=h[g++],l=a=h[g++],h[g++],h[g++],f,d,_);break;case p.Z:x=y(o,a,s,l,f,d,_,!0),o=s,a=l}x<c&&(c=x,n.set(_[0],_[1]))}return c}var O=new r.default,S=new r.default,C=new r.default,E=new r.default,T=new r.default;function A(t,e){if(t){var n=t.getTextGuideLine(),o=t.getTextContent();if(o&&n){var a=t.textGuideLineConfig||{},s=[[0,0],[0,0],[0,0]],u=a.candidates||g,l=o.getBoundingRect().clone();l.applyTransform(o.getComputedTransform());var h=1/0,f=a.anchor,d=t.getComputedTransform(),p=d&&Object(c.invert)([],d),m=e.get("length2")||0;f&&C.copy(f);for(var y=0;y<u.length;y++){v(u[y],0,l,O,E),r.default.scaleAndAdd(S,O,E,m),S.transform(p);var b=t.getBoundingRect(),_=f?f.distance(S):t instanceof i.default?w(S,t.path,C):x(S,b,C);_<h&&(h=_,S.transform(d),C.transform(d),C.toArray(s[0]),S.toArray(s[1]),O.toArray(s[2]))}j(s,e.get("minTurnAngle")),n.setShape({points:s})}}}var M=[],I=new r.default;function j(t,e){if(e<=180&&e>0){e=e/180*Math.PI,O.fromArray(t[0]),S.fromArray(t[1]),C.fromArray(t[2]),r.default.sub(E,O,S),r.default.sub(T,C,S);var n=E.len(),i=T.len();if(!(n<.001||i<.001)){E.scale(1/n),T.scale(1/i);var o=E.dot(T);if(Math.cos(e)<o){var a=y(S.x,S.y,C.x,C.y,O.x,O.y,M,!1);I.fromArray(M),I.scaleAndAdd(T,a/Math.tan(Math.PI-e));var s=C.x!==S.x?(I.x-S.x)/(C.x-S.x):(I.y-S.y)/(C.y-S.y);if(isNaN(s))return;s<0?r.default.copy(I,S):s>1&&r.default.copy(I,C),I.toArray(t[1])}}}}function k(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,O.fromArray(t[0]),S.fromArray(t[1]),C.fromArray(t[2]),r.default.sub(E,S,O),r.default.sub(T,C,S);var i=E.len(),o=T.len();if(!(i<.001||o<.001))if(E.scale(1/i),T.scale(1/o),E.dot(e)<Math.cos(n)){var a=y(S.x,S.y,C.x,C.y,O.x,O.y,M,!1);I.fromArray(M);var s=Math.PI/2,u=s+Math.acos(T.dot(e))-n;if(u>=s)r.default.copy(I,C);else{I.scaleAndAdd(T,a/Math.tan(Math.PI/2-u));var l=C.x!==S.x?(I.x-S.x)/(C.x-S.x):(I.y-S.y)/(C.y-S.y);if(isNaN(l))return;l<0?r.default.copy(I,S):l>1&&r.default.copy(I,C)}I.toArray(t[1])}}}function P(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function L(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=h.dist(r[0],r[1]),o=h.dist(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=h.lerp([],r[1],r[0],a/i),u=h.lerp([],r[1],r[2],a/o),l=h.lerp([],s,u,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),t.bezierCurveTo(u[0],u[1],u[0],u[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}function R(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var a=e.normal,s=a.get("show"),u=i.ignore,c=0;c<f.DISPLAY_STATES.length;c++){var h=f.DISPLAY_STATES[c],d=e[h],p="normal"===h;if(d){var g=d.get("show");if((p?u:Object(l.retrieve2)(i.states[h]&&i.states[h].ignore,u))||!Object(l.retrieve2)(g,s)){var v=p?r:r&&r.states[h];v&&(v.ignore=!0);continue}r||(r=new o.default,t.setTextGuideLine(r),p||!u&&s||P(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),P(r,!1,h,d)}}if(r){Object(l.defaults)(r.style,n),r.style.fill=null;var m=a.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=m||!1,r.buildPath=L}}else r&&t.removeTextGuideLine()}function D(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<f.SPECIAL_STATES.length;r++){var i=f.SPECIAL_STATES[r];n[i]=t.getModel([i,e])}return n}},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"globalWindow",(function(){return r})),r="undefined"==typeof window?{devicePixelRatio:1,navigator:{userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36",browserLanguage:"zh-CN",language:"zh-CN",platform:""},location:"",document:{documentElement:{style:{}},createEvent:function(){return!0},getElementById:function(t){return!0},createElement:function(){return{className:"",classList:{add:function(){return""}}}},createElementNS:function(){return!0},addEventListener:function(){return!0},removeEventListener:function(){return!0},querySelector:function(){return!1}},performance:{mark:function(t){return null},clearMeasures:function(t){return null},clearMarks:function(t){return null},measure:function(t,e,n){return{duration:0}},now:function(){return(new Date).getTime()}},Blob:"",dispatchEvent:function(t){return!0},Event:function(t,e){return!0},createElement:function(){return!0},createElementNS:function(){return!0},XMLHttpRequest:function(){return!0},addEventListener:function(){return!0},removeEventListener:function(){return!0},requestAnimationFrame:function(){return!0},cancelAnimationFrame:function(){return!0},clearTimeout:function(){return!0}}:window},function(t,e,n){"use strict";n.r(e),function(t){var r;n.d(e,"globalWindow",(function(){return i})),n.d(e,"getGlobalThis",(function(){return o})),n.d(e,"l7globalThis",(function(){return r}));var i,o=function(){return r||(r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{})};r=o(),i="undefined"==typeof window?{devicePixelRatio:1,navigator:{userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36",browserLanguage:"zh-CN",language:"zh-CN",platform:""},location:"",document:{documentElement:{style:{}},createEvent:function(){return!0},getElementById:function(t){return!0},createElement:function(){return{className:"",classList:{add:function(){return""}}}},createElementNS:function(){return!0},addEventListener:function(){return!0},removeEventListener:function(){return!0},querySelector:function(){return!1}},performance:{mark:function(t){return null},clearMeasures:function(t){return null},clearMarks:function(t){return null},measure:function(t,e,n){return{duration:0}},now:function(){return(new Date).getTime()}},Blob:"",dispatchEvent:function(t){return!0},Event:function(t,e){return!0},createElement:function(){return!0},createElementNS:function(){return!0},XMLHttpRequest:function(){return!0},addEventListener:function(){return!0},removeEventListener:function(){return!0},requestAnimationFrame:function(){return!0},cancelAnimationFrame:function(){return!0},clearTimeout:function(){return!0}}:window}.call(this,n(309))},function(t,e,n){"use strict";n.r(e),n.d(e,"ELEMENT_ANIMATABLE_PROPS",(function(){return f})),n.d(e,"applyUpdateTransition",(function(){return g})),n.d(e,"updateLeaveTo",(function(){return v})),n.d(e,"applyLeaveTransition",(function(){return m})),n.d(e,"isTransitionAll",(function(){return y}));var r=n(9),i=n(0),o=n(393),a=n(106),s=n(23),u=n(36),l=n(129),c={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},h=Object(i.keys)(c),f=(Object(i.reduce)(l.TRANSFORMABLE_PROPS,(function(t,e){return t[e]=1,t}),{}),l.TRANSFORMABLE_PROPS.join(", "),["","style","shape","extra"]),d=Object(r.makeInner)();function p(t,e,n,r,o){var a=t+"Animation",u=Object(s.getAnimationConfig)(t,r,o)||{},l=d(e).userDuring;return u.duration>0&&(u.during=l?Object(i.bind)(x,{el:e,userDuring:l}):null,u.setToFinal=!0,u.scope=t),Object(i.extend)(u,n[a]),u}function g(t,e,n,o){var s=(o=o||{}).dataIndex,g=o.isInit,m=o.clearStyle,b=n.isAnimationEnabled(),_=d(t),x=e.style;_.userDuring=e.during;var S={},C={};if(function(t,e,n){for(var r=0;r<h.length;r++){var i=h[r],o=c[i],a=e[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(r=0;r<l.TRANSFORMABLE_PROPS.length;r++){var s=l.TRANSFORMABLE_PROPS[r];null!=e[s]&&(n[s]=e[s])}}(0,e,C),O("shape",e,C),O("extra",e,C),!g&&b&&(function(t,e,n){for(var i=e.transition,o=y(i)?l.TRANSFORMABLE_PROPS:Object(r.normalizeToArray)(i||[]),a=0;a<o.length;a++){var s=o[a];if("style"!==s&&"shape"!==s&&"extra"!==s){var u=t[s];0,n[s]=u}}}(t,e,S),w("shape",t,e,S),w("extra",t,e,S),function(t,e,n,o){if(!n)return;var a,s=t.style;if(s){var u=n.transition,l=e.transition;if(u&&!y(u)){var c=Object(r.normalizeToArray)(u);!a&&(a=o.style={});for(var h=0;h<c.length;h++){var f=c[h],d=s[f];a[f]=d}}else if(t.getAnimationStyleProps&&(y(l)||y(u)||Object(i.indexOf)(l,"style")>=0)){var p=t.getAnimationStyleProps(),g=p?p.style:null;if(g){!a&&(a=o.style={});var v=Object(i.keys)(n);for(h=0;h<v.length;h++){f=v[h];if(g[f]){d=s[f];a[f]=d}}}}}}(t,e,x,S)),C.style=x,function(t,e,n){var r=e.style;if(!t.isGroup&&r){if(n){t.useStyle({});for(var i=t.animators,o=0;o<i.length;o++){var a=i[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(r)}e&&(e.style=null,e&&t.attr(e),e.style=r)}(t,C,m),function(t,e){Object(i.hasOwn)(e,"silent")&&(t.silent=e.silent),Object(i.hasOwn)(e,"ignore")&&(t.ignore=e.ignore),t instanceof a.default&&Object(i.hasOwn)(e,"invisible")&&(t.invisible=e.invisible);t instanceof u.default&&Object(i.hasOwn)(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),b)if(g){var E={};Object(i.each)(f,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(E[t]=E[t]||{}),Object(i.extend)(t?E[t]:E,n.enterFrom))}));var T=p("enter",t,e,n,s);T.duration>0&&t.animateFrom(E,T)}else!function(t,e,n,r,i){if(i){var o=p("update",t,e,r,n);o.duration>0&&t.animateFrom(i,o)}}(t,e,s||0,n,S);v(t,e),x?t.dirty():t.markRedraw()}function v(t,e){for(var n=d(t).leaveToProps,r=0;r<f.length;r++){var o=f[r],a=o?e[o]:e;a&&a.leaveTo&&(n||(n=d(t).leaveToProps={}),o&&(n[o]=n[o]||{}),Object(i.extend)(o?n[o]:n,a.leaveTo))}}function m(t,e,n,r){if(t){var i=t.parent,o=d(t).leaveToProps;if(o){var a=p("update",t,e,n,0);a.done=function(){i.remove(t),r&&r()},t.animateTo(o,a)}else i.remove(t),r&&r()}}function y(t){return"all"===t}var b={},_={setTransform:function(t,e){return b.el[t]=e,this},getTransform:function(t){return b.el[t]},setShape:function(t,e){var n=b.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=b.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=b.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=b.el.style;if(e)return e[t]},setExtra:function(t,e){return(b.el.extra||(b.el.extra={}))[t]=e,this},getExtra:function(t){var e=b.el.extra;if(e)return e[t]}};function x(){var t=this.el;if(t){var e=d(t).userDuring,n=this.userDuring;e===n?(b.el=t,n(_)):this.el=this.userDuring=null}}function w(t,e,n,o){var a=n[t];if(a){var s,u=e[t];if(u){var l=n.transition,c=a.transition;if(c)if(!s&&(s=o[t]={}),y(c))Object(i.extend)(s,u);else for(var h=Object(r.normalizeToArray)(c),f=0;f<h.length;f++){var d=u[g=h[f]];s[g]=d}else if(y(l)||Object(i.indexOf)(l,t)>=0){!s&&(s=o[t]={});var p=Object(i.keys)(u);for(f=0;f<p.length;f++){var g;d=u[g=p[f]];S(a[g],d)&&(s[g]=d)}}}}}function O(t,e,n){var r=e[t];if(r)for(var a=n[t]={},s=Object(i.keys)(r),u=0;u<s.length;u++){var l=s[u];a[l]=Object(o.cloneValue)(r[l])}}function S(t,e){return Object(i.isArrayLike)(t)?t!==e:null!=t&&isFinite(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"isLine",(function(){return u})),n.d(e,"isColumn",(function(){return l})),n.d(e,"getGeometryOption",(function(){return c})),n.d(e,"transformObjectToArray",(function(){return h})),n.d(e,"getYAxisWithDefault",(function(){return f}));var r=n(2),i=n(1),o=n(3),a=n(305),s=n(113);function u(t){return Object(i.get)(t,"geometry")===a.DualAxesGeometry.Line}function l(t){return Object(i.get)(t,"geometry")===a.DualAxesGeometry.Column}function c(t,e,n){return l(n)?Object(o.deepAssign)({},{geometry:a.DualAxesGeometry.Column,label:n.label&&n.isRange?{content:function(t){var n;return null===(n=t[e])||void 0===n?void 0:n.join("-")}}:void 0},n):Object(r.__assign)({geometry:a.DualAxesGeometry.Line},n)}function h(t,e){var n=t[0],r=t[1];return Object(i.isArray)(e)?[e[0],e[1]]:[Object(i.get)(e,n),Object(i.get)(e,r)]}function f(t,e){return e===a.AxisType.Left?!1!==t&&Object(o.deepAssign)({},s.DEFAULT_LEFT_YAXIS_CONFIG,t):e===a.AxisType.Right?!1!==t&&Object(o.deepAssign)({},s.DEFAULT_RIGHT_YAXIS_CONFIG,t):t}},function(t,e,n){"use strict";n.r(e),n.d(e,"SUNBURST_ANCESTOR_FIELD",(function(){return a})),n.d(e,"SUNBURST_Y_FIELD",(function(){return s})),n.d(e,"SUNBURST_PATH_FIELD",(function(){return u})),n.d(e,"RAW_FIELDS",(function(){return l})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var r=n(26),i=n(3),o=n(212),a="ancestor-node",s="value",u="path",l=[u,o.NODE_INDEX_FIELD,o.NODE_ANCESTORS_FIELD,o.CHILD_NODE_COUNT,"name","depth","height"],c=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}})},function(t,e,n){"use strict";n.r(e),n.d(e,"STYLE_VISUAL_TYPE",(function(){return s})),n.d(e,"NON_STYLE_VISUAL_PROPS",(function(){return u})),n.d(e,"customInnerStore",(function(){return l}));var r=n(5),i=n(163),o=n(9),a=n(59),s={color:"fill",borderColor:"stroke"},u={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},l=Object(o.makeInner)(),c=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return Object(i.default)(null,this)},e.prototype.getDataParams=function(e,n,r){var i=t.prototype.getDataParams.call(this,e,n);return r&&(i.info=l(r).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(a.default);e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"zoomToScale",(function(){return d})),n.d(e,"scaleToZoom",(function(){return p})),n.d(e,"lngLatToWorld",(function(){return g})),n.d(e,"worldToLngLat",(function(){return v})),n.d(e,"getMeterZoom",(function(){return m})),n.d(e,"getDistanceScales",(function(){return y})),n.d(e,"addMetersToLngLat",(function(){return b})),n.d(e,"getViewMatrix",(function(){return _})),n.d(e,"getProjectionParameters",(function(){return x})),n.d(e,"getProjectionMatrix",(function(){return w})),n.d(e,"worldToPixels",(function(){return O})),n.d(e,"pixelsToWorld",(function(){return S}));var r=n(74),i=n(308),o=n(149),a=n(271),s=n(200),u=n(347),l=Math.PI,c=l/4,h=l/180,f=180/l;function d(t){return Math.pow(2,t)}function p(t){return Math.log2(t)}function g(t,e){var n=Object(r.default)(t,2),i=n[0],o=n[1];Object(u.default)(Number.isFinite(i)&&Number.isFinite(e)),Object(u.default)(Number.isFinite(o)&&o>=-90&&o<=90,"invalid latitude");var a=o*h;return[(e*=512)*(i*h+l)/(2*l),e*(l-Math.log(Math.tan(c+.5*a)))/(2*l)]}function v(t,e){var n=Object(r.default)(t,2),i=n[0],o=n[1],a=i/(e*=512)*(2*l)-l,s=2*(Math.atan(Math.exp(l-o/e*(2*l)))-c);return[a*f,s*f]}function m(t){var e=t.latitude;return Object(u.default)(Number.isFinite(e)),p(4003e4*Math.cos(e*h))-9}function y(t){var e=t.latitude,n=t.longitude,r=t.zoom,i=t.scale,o=t.highPrecision,a=void 0!==o&&o;i=void 0!==i?i:d(r),Object(u.default)(Number.isFinite(e)&&Number.isFinite(n)&&Number.isFinite(i));var s={},l=512*i,c=Math.cos(e*h),f=l/360,p=f/c,g=l/4003e4/c;if(s.pixelsPerMeter=[g,-g,g],s.metersPerPixel=[1/g,-1/g,1/g],s.pixelsPerDegree=[f,-p,g],s.degreesPerPixel=[1/f,-1/p,1/g],a){var v=h*Math.tan(e*h)/c,m=f*v/2,y=l/4003e4*v,b=y/p*g;s.pixelsPerDegree2=[0,-m,y],s.pixelsPerMeter2=[b,0,b]}return s}function b(t,e){var n=Object(r.default)(t,3),i=n[0],o=n[1],a=n[2],s=Object(r.default)(e,3),u=s[0],l=s[1],c=s[2],h=y({longitude:i,latitude:o,scale:1,highPrecision:!0}),f=h.pixelsPerMeter,d=h.pixelsPerMeter2,p=g(t,1);p[0]+=u*(f[0]+d[0]*l),p[1]+=l*(f[1]+d[1]*l);var m=v(p,1),b=(a||0)+(c||0);return Number.isFinite(a)||Number.isFinite(c)?[m[0],m[1],b]:m}function _(t){var e=t.height,n=t.pitch,r=t.bearing,a=t.altitude,u=t.center,l=void 0===u?null:u,c=t.flipY,f=void 0!==c&&c,d=Object(i.createMat4)();return o.translate(d,d,[0,0,-a]),o.scale(d,d,[1,1,1/e]),o.rotateX(d,d,-n*h),o.rotateZ(d,d,r*h),f&&o.scale(d,d,[1,-1,1]),l&&o.translate(d,d,s.negate([],l)),d}function x(t){var e=t.width,n=t.height,r=t.altitude,i=void 0===r?1.5:r,o=t.pitch,a=void 0===o?0:o,s=t.nearZMultiplier,u=void 0===s?1:s,l=t.farZMultiplier,c=void 0===l?1:l,f=a*h,d=Math.atan(.5/i),p=Math.sin(d)*i/Math.sin(Math.PI/2-f-d),g=Math.cos(Math.PI/2-f)*p+i;return{fov:2*Math.atan(n/2/i),aspect:e/n,focalDistance:i,near:u,far:g*c}}function w(t){var e=t.width,n=t.height,r=t.pitch,i=x({width:e,height:n,altitude:t.altitude,pitch:r,nearZMultiplier:t.nearZMultiplier,farZMultiplier:t.farZMultiplier}),a=i.fov,s=i.aspect,u=i.near,l=i.far;return o.perspective([],a,s,u,l)}function O(t,e){var n=Object(r.default)(t,3),o=n[0],a=n[1],s=n[2],l=void 0===s?0:s;return Object(u.default)(Number.isFinite(o)&&Number.isFinite(a)&&Number.isFinite(l)),Object(i.transformVector)(e,[o,a,l,1])}function S(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=Object(r.default)(t,3),s=o[0],l=o[1],c=o[2];if(Object(u.default)(Number.isFinite(s)&&Number.isFinite(l),"invalid pixel coordinate"),Number.isFinite(c)){var h=Object(i.transformVector)(e,[s,l,c,1]);return h}var f=Object(i.transformVector)(e,[s,l,0,1]),d=Object(i.transformVector)(e,[s,l,1,1]),p=f[2],g=d[2],v=p===g?0:((n||0)-p)/(g-p);return a.lerp([],f,d,v)}},function(t,e,n){"use strict";var r=n(951),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function l(t){return"[object Function]"===i.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:l,isStream:function(t){return s(t)&&l(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function t(){var e={};function n(n,r){u(e[r])&&u(n)?e[r]=t(e[r],n):u(n)?e[r]=t({},n):o(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return e},extend:function(t,e,n){return c(e,(function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.STACK_OVERFLOW=e.CIRCULAR_DEPENDENCY_IN_FACTORY=e.POST_CONSTRUCT_ERROR=e.MULTIPLE_POST_CONSTRUCT_METHODS=e.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK=e.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE=e.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE=e.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT=e.ARGUMENTS_LENGTH_MISMATCH=e.INVALID_DECORATOR_OPERATION=e.INVALID_TO_SELF_VALUE=e.INVALID_FUNCTION_BINDING=e.INVALID_MIDDLEWARE_RETURN=e.NO_MORE_SNAPSHOTS_AVAILABLE=e.INVALID_BINDING_TYPE=e.NOT_IMPLEMENTED=e.CIRCULAR_DEPENDENCY=e.UNDEFINED_INJECT_ANNOTATION=e.MISSING_INJECT_ANNOTATION=e.MISSING_INJECTABLE_ANNOTATION=e.NOT_REGISTERED=e.CANNOT_UNBIND=e.AMBIGUOUS_MATCH=e.KEY_NOT_FOUND=e.NULL_ARGUMENT=e.DUPLICATED_METADATA=e.DUPLICATED_INJECTABLE_DECORATOR=void 0,e.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.",e.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:",e.NULL_ARGUMENT="NULL argument",e.KEY_NOT_FOUND="Key Not Found",e.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:",e.CANNOT_UNBIND="Could not unbind serviceIdentifier:",e.NOT_REGISTERED="No matching bindings found for serviceIdentifier:",e.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:",e.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:";e.UNDEFINED_INJECT_ANNOTATION=function(t){return"@inject called with undefined this could mean that the class "+t+" has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation."},e.CIRCULAR_DEPENDENCY="Circular dependency found:",e.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.",e.INVALID_BINDING_TYPE="Invalid binding type:",e.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.",e.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!",e.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!",e.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier",e.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.";e.ARGUMENTS_LENGTH_MISMATCH=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"The number of constructor arguments in the derived class "+t[0]+" must be >= than the number of constructor arguments of its base class."},e.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",e.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",e.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",e.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",e.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";e.POST_CONSTRUCT_ERROR=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"@postConstruct error in class "+t[0]+": "+t[1]};e.CIRCULAR_DEPENDENCY_IN_FACTORY=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"It looks like there is a circular dependency in one of the '"+t[0]+"' bindings. Please investigate bindings withservice identifier '"+t[1]+"'."},e.STACK_OVERFLOW="Maximum call stack size exceeded"},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(0);function i(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,o){for(var a={},s=0;s<t.length;s++){var u=t[s][1];if(!(i&&r.indexOf(i,u)>=0||o&&r.indexOf(o,u)<0)){var l=n.getShallow(u,e);null!=l&&(a[t[s][0]]=l)}}return a}}},function(t,e,n){"use strict";function r(t,e,n,r,a,s){t=t||0;var u=n[1]-n[0];if(null!=a&&(a=o(a,[0,u])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===r){var l=Math.abs(e[1]-e[0]);l=o(l,[0,u]),a=s=o(l,[a,s]),r=0}e[0]=o(e[0],n),e[1]=o(e[1],n);var c=i(e,r);e[r]+=t;var h,f=a||0,d=n.slice();return c.sign<0?d[0]+=f:d[1]-=f,e[r]=o(e[r],d),h=i(e,r),null!=a&&(h.sign!==c.sign||h.span<a)&&(e[1-r]=e[r]+c.sign*a),h=i(e,r),null!=s&&h.span>s&&(e[1-r]=e[r]+h.sign*s),e}function i(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function o(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"percent",(function(){return a})),n.d(e,"getDeepPercent",(function(){return s})),n.d(e,"getDataWhetherPercentage",(function(){return u}));var r=n(2),i=n(1),o=n(323);function a(t,e,n,a){var s=Object(i.reduce)(t,(function(t,r){var i=r[n],a=t.has(i)?t.get(i):0,s=r[e];return a=Object(o.isRealNumber)(s)?a+s:a,t.set(i,a),t}),new Map);return Object(i.map)(t,(function(t){var i,u=t[e],l=t[n],c=Object(o.isRealNumber)(u)&&0!==s.get(l)?u/s.get(l):0;return Object(r.__assign)(Object(r.__assign)({},t),((i={})[a]=c,i))}))}function s(t,e,n,a){var s=Object(i.reduce)(t,(function(t,r){var a=Object(i.reduce)(n,(function(t,e){return""+t+r[e]}),""),s=t.has(a)?t.get(a):0,u=r[e];return s=Object(o.isRealNumber)(u)?s+u:s,t.set(a,s),t}),new Map);return Object(i.map)(t,(function(t){var u,l=t[e],c=Object(i.reduce)(n,(function(e,n){return""+e+t[n]}),""),h=Object(o.isRealNumber)(l)&&0!==s.get(c)?l/s.get(c):0;return Object(r.__assign)(Object(r.__assign)({},t),((u={})[a]=h,u))}))}function u(t,e,n,r,i){return i?a(t,e,n,r):t}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTinyData",(function(){return i}));var r=n(1);function i(t){return Object(r.map)(t||[],(function(t,e){return{x:""+e,y:t}}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"getDefaultLabel",(function(){return o})),n.d(e,"getDefaultInterpolatedLabel",(function(){return a}));var r=n(187),i=n(0);function o(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var o=Object(r.retrieveRawValue)(t,e,n[0]);return null!=o?o+"":null}if(i){for(var a=[],s=0;s<n.length;s++)a.push(Object(r.retrieveRawValue)(t,e,n[s]));return a.join(" ")}}function a(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Object(i.isArray)(e))return e+"";for(var r=[],o=0;o<n.length;o++){var a=t.getDimensionIndex(n[o]);a>=0&&r.push(e[a])}return r.join(" ")}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=/rgba?\(([\s.,0-9]+)\)/,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,u=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function l(t){return"#"+f(t[0])+f(t[1])+f(t[2])}var c,h=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},f=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},d=function(t){if("#"===t[0]&&7===t.length)return t;var e;c||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),c=e),c.style.color=t;var n=document.defaultView.getComputedStyle(c,"").getPropertyValue("color");return n=l(i.exec(n)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};e.default={rgb2arr:h,gradient:function(t){var e=Object(r.isString)(t)?t.split("-"):t,n=Object(r.map)(e,(function(t){return h(-1===t.indexOf("#")?d(t):t)}));return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),o=r*n-i,a=t[i],s=i===r?a:t[i+1];return l([u(a,s,o,0),u(a,s,o,1),u(a,s,o,2)])}(n,t)}},toRGB:Object(r.memoize)(d),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var i=+(u=o.exec(t))[1]+90;n=u[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var u;e="radial-gradient(",n=(u=a.exec(t))[4]}var l=n.match(s);return Object(r.each)(l,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==l.length-1&&(e+=", ")})),e+=")"}return t}}},function(t,e,n){"use strict";n.r(e),n.d(e,"getMaxLabelWidth",(function(){return o})),n.d(e,"getLabelLength",(function(){return a})),n.d(e,"testLabel",(function(){return s})),n.d(e,"ellipsisLabel",(function(){return u}));var r=n(1),i=n(911);function o(t){if(t.length>400)return function(t){for(var e=t.map((function(t){var e=t.attr("text");return Object(r.isNil)(e)?"":""+e})),n=0,i=0,o=0;o<e.length;o+=1){for(var a=0,s=0;s<=e[o].length;s+=1){var u=e[o].charCodeAt(s);a+=u>=19968&&u<=40869?2:1}a>n&&(n=a,i=o)}return t[i].getBBox().width}(t);var e=0;return Object(r.each)(t,(function(t){var n=t.getBBox().width;e<n&&(e=n)})),e}function a(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}function s(t,e){return t.getBBox().width<e}function u(t,e,n,o){var s;void 0===o&&(o="tail");var u=null!==(s=e.attr("text"))&&void 0!==s?s:"";if("tail"===o){var l=Object(r.pick)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),c=Object(r.getEllipsisText)(u,n,l,"…");return u!==c?(e.attr("text",c),e.set("tip",u),!0):(e.set("tip",null),!1)}var h=a(t,e),f=Object(i.strLen)(u),d=!1;if(n<h){var p=Math.floor(n/h*f)-2,g=void 0;(g=p>=0?Object(i.ellipsisString)(u,p,o):"…")&&(e.attr("text",g),d=!0)}return d?e.set("tip",u):e.set("tip",null),d}},function(t,e,n){"use strict";n.r(e),n.d(e,"fromPoints",(function(){return d})),n.d(e,"fromLine",(function(){return p})),n.d(e,"fromCubic",(function(){return m})),n.d(e,"fromQuadratic",(function(){return y})),n.d(e,"fromArc",(function(){return b}));var r=n(18),i=n(53),o=Math.min,a=Math.max,s=Math.sin,u=Math.cos,l=2*Math.PI,c=r.create(),h=r.create(),f=r.create();function d(t,e,n){if(0!==t.length){for(var r=t[0],i=r[0],s=r[0],u=r[1],l=r[1],c=1;c<t.length;c++)r=t[c],i=o(i,r[0]),s=a(s,r[0]),u=o(u,r[1]),l=a(l,r[1]);e[0]=i,e[1]=u,n[0]=s,n[1]=l}}function p(t,e,n,r,i,s){i[0]=o(t,n),i[1]=o(e,r),s[0]=a(t,n),s[1]=a(e,r)}var g=[],v=[];function m(t,e,n,r,s,u,l,c,h,f){var d=i.cubicExtrema,p=i.cubicAt,m=d(t,n,s,l,g);h[0]=1/0,h[1]=1/0,f[0]=-1/0,f[1]=-1/0;for(var y=0;y<m;y++){var b=p(t,n,s,l,g[y]);h[0]=o(b,h[0]),f[0]=a(b,f[0])}m=d(e,r,u,c,v);for(y=0;y<m;y++){var _=p(e,r,u,c,v[y]);h[1]=o(_,h[1]),f[1]=a(_,f[1])}h[0]=o(t,h[0]),f[0]=a(t,f[0]),h[0]=o(l,h[0]),f[0]=a(l,f[0]),h[1]=o(e,h[1]),f[1]=a(e,f[1]),h[1]=o(c,h[1]),f[1]=a(c,f[1])}function y(t,e,n,r,s,u,l,c){var h=i.quadraticExtremum,f=i.quadraticAt,d=a(o(h(t,n,s),1),0),p=a(o(h(e,r,u),1),0),g=f(t,n,s,d),v=f(e,r,u,p);l[0]=o(t,s,g),l[1]=o(e,u,v),c[0]=a(t,s,g),c[1]=a(e,u,v)}function b(t,e,n,i,o,a,d,p,g){var v=r.min,m=r.max,y=Math.abs(o-a);if(y%l<1e-4&&y>1e-4)return p[0]=t-n,p[1]=e-i,g[0]=t+n,void(g[1]=e+i);if(c[0]=u(o)*n+t,c[1]=s(o)*i+e,h[0]=u(a)*n+t,h[1]=s(a)*i+e,v(p,c,h),m(g,c,h),(o%=l)<0&&(o+=l),(a%=l)<0&&(a+=l),o>a&&!d?a+=l:o<a&&d&&(o+=l),d){var b=a;a=o,o=b}for(var _=0;_<a;_+=Math.PI/2)_>o&&(f[0]=u(_)*n+t,f[1]=s(_)*i+e,v(p,f,p),m(g,f,g))}},function(t,e,n){"use strict";n.r(e),n.d(e,"CircleShape",(function(){return o}));var r=n(66),i=n(36),o=function(){this.cx=0,this.cy=0,this.r=0},a=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(i.default);a.prototype.type="circle",e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"registerCanvas",(function(){return s})),n.d(e,"registerCanvas2D",(function(){return u})),n.d(e,"getCanvas",(function(){return l})),n.d(e,"getCanvas2D",(function(){return c}));var r=n(598),i=n(159),o={},a={};function s(t,e){(o=t).id=e,"tagName"in o||(o.tagName="CANVAS"),o.type="canvas",i.parentNode(o),i.style(o),i.classList(o),i.clientRegion(o),i.offsetRegion(o),o.focus=function(){},o.blur=function(){}}function u(t,e){"tagName"in(a={width:1024,height:1024,clientWidth:1024/r.default,clientHeight:1024/r.default,id:e,type:"canvas"})||(a.tagName="CANVAS"),i.parentNode(a),i.style(a),i.classList(a),i.clientRegion(a),i.offsetRegion(a),a.getContext=function(e){if("2d"===e)return t},a.focus=function(){},a.blur=function(){}}function l(){return o}function c(){return a}},function(t,e,n){var r=n(2057),i=n(2113)((function(t,e,n){r(t,e,n)}));t.exports=i},function(t,e,n){"use strict";n.r(e),n.d(e,"registerCanvas",(function(){return s})),n.d(e,"registerCanvas2D",(function(){return u})),n.d(e,"getCanvas",(function(){return l})),n.d(e,"getCanvas2D",(function(){return c}));var r=n(602),i=n(160),o={},a={};function s(t,e){(o=t).id=e,"tagName"in o||(o.tagName="CANVAS"),o.type="canvas",i.parentNode(o),i.style(o),i.classList(o),i.clientRegion(o),i.offsetRegion(o),o.focus=function(){},o.blur=function(){}}function u(t,e){"tagName"in(a={width:1024,height:1024,clientWidth:1024/r.default,clientHeight:1024/r.default,id:e,type:"canvas"})||(a.tagName="CANVAS"),i.parentNode(a),i.style(a),i.classList(a),i.clientRegion(a),i.offsetRegion(a),a.getContext=function(e){if("2d"===e)return t},a.focus=function(){},a.blur=function(){}}function l(){return o}function c(){return a}},function(t,e,n){"use strict";function r(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,r=e.scaleX;return((e.getZoom()-1)*n+1)/r}function i(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}n.r(e),n.d(e,"getNodeGlobalScale",(function(){return r})),n.d(e,"getSymbolSize",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"register",(function(){return i})),n.d(e,"getMethod",(function(){return o}));var r=new Map;function i(t,e){r.set(t,e)}function o(t){return r.get(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getScale",(function(){return o})),n.d(e,"registerScale",(function(){return a}));var r=n(313);n.d(e,"Scale",(function(){return r.default}));var i={};function o(t){return i[t]}function a(t,e){if(o(t))throw new Error("type '"+t+"' existed.");i[t]=e}},function(t,e,n){"use strict";n.r(e),n.d(e,"init",(function(){return i})),n.d(e,"firstWalk",(function(){return o})),n.d(e,"secondWalk",(function(){return a})),n.d(e,"separation",(function(){return s})),n.d(e,"radialCoordinate",(function(){return u})),n.d(e,"getViewRect",(function(){return l}));var r=n(33);function i(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,r,i=[e];n=i.pop();)if(r=n.children,n.isExpand&&r.length)for(var o=r.length-1;o>=0;o--){var a=r[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}}function o(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,i=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){!function(t){var e=t.children,n=e.length,r=0,i=0;for(;--n>=0;){var o=e[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=function(t,e,n,r){if(e){for(var i=t,o=t,a=o.parentNode.children[0],s=e,u=i.hierNode.modifier,l=o.hierNode.modifier,p=a.hierNode.modifier,g=s.hierNode.modifier;s=c(s),o=h(o),s&&o;){i=c(i),a=h(a),i.hierNode.ancestor=t;var v=s.hierNode.prelim+g-o.hierNode.prelim-l+r(s,o);v>0&&(d(f(s,t,n),t,v),l+=v,u+=v),g+=s.hierNode.modifier,l+=o.hierNode.modifier,u+=i.hierNode.modifier,p+=a.hierNode.modifier}s&&!c(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=g-u),o&&!h(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=l-p,n=t)}return n}(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function a(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function s(t){return arguments.length?t:p}function u(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function l(t,e){return r.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function c(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function h(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function f(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function d(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function p(t,e){return t.parentNode===e.parentNode?1:2}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(397),o=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r,o=t.dimValuesMap;this.adjustNames=i,this.xField=e,this.yField=n,this.dimValuesMap=o}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,o=this.yField,a=n.indexOf(e),s=n.length;return!o&&this.isAdjust("y")?(r=0,i=1):s>1?(r=n[0===a?0:a-1],i=n[a===s-1?s-1:a+1],0!==a?r+=(e-r)/2:r-=(i-e)/2,a!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},t.prototype.adjustData=function(t,e){var n=this,i=this.getDimValues(e);r.each(t,(function(t,e){r.each(i,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return r.each(t,(function(t){void 0===t[e]&&(t[e]=i.DEFAULT_Y)})),r.groupBy(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,o=r.assign({},this.dimValuesMap),a=[];if(e&&this.isAdjust("x")&&a.push(e),n&&this.isAdjust("y")&&a.push(n),a.forEach((function(e){o&&o[e]||(o[e]=r.valuesOfKey(t,e).sort((function(t,e){return t-e})))})),!n&&this.isAdjust("y")){o.y=[i.DEFAULT_Y,1]}return o},t}();e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"createDimensions",(function(){return h})),n.d(e,"default",(function(){return f}));var r=n(30),i=n(513),o=n(0),a=n(153),s=n(425),u=n(9),l=n(152),c=n(364);function h(t,e){return f(t,e).dimensions}function f(t,e){Object(a.isSourceInstance)(t)||(t=Object(a.createSourceFromSeriesDataOption)(t));var n=(e=e||{}).coordDimensions||[],h=e.dimensionsDefine||t.dimensionsDefine||[],f=Object(o.createHashMap)(),p=[],g=function(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Object(o.each)(e,(function(t){var e;Object(o.isObject)(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}(t,n,h,e.dimensionsCount),v=e.canOmitUnusedDimensions&&Object(c.shouldOmitUnusedDimensions)(g),m=h===t.dimensionsDefine,y=m?Object(c.ensureSourceDimNameMap)(t):Object(c.createDimNameMap)(h),b=e.encodeDefine;!b&&e.encodeDefaulter&&(b=e.encodeDefaulter(t,g));for(var _=Object(o.createHashMap)(b),x=new s.CtorInt32Array(g),w=0;w<x.length;w++)x[w]=-1;function O(t){var e=x[t];if(e<0){var n=h[t],r=Object(o.isObject)(n)?n:{name:n},a=new i.default,s=r.name;null!=s&&null!=y.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var u=p.length;return x[t]=u,a.storeDimIndex=t,p.push(a),a}return p[e]}if(!v)for(w=0;w<g;w++)O(w);_.each((function(t,e){var n=Object(u.normalizeToArray)(t).slice();if(1===n.length&&!Object(o.isString)(n[0])&&n[0]<0)_.set(e,!1);else{var r=_.set(e,[]);Object(o.each)(n,(function(t,n){var i=Object(o.isString)(t)?y.get(t):t;null!=i&&i<g&&(r[n]=i,C(O(i),e,n))}))}}));var S=0;function C(t,e,n){null!=r.VISUAL_DIMENSIONS.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,f.set(e,!0))}Object(o.each)(n,(function(t){var e,n,r,i;if(Object(o.isString)(t))e=t,i={};else{e=(i=t).name;var a=i.ordinalMeta;i.ordinalMeta=null,(i=Object(o.extend)({},i)).ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=_.get(e);if(!1!==s){if(!(s=Object(u.normalizeToArray)(s)).length)for(var l=0;l<(n&&n.length||1);l++){for(;S<g&&null!=O(S).coordDim;)S++;S<g&&s.push(S++)}Object(o.each)(s,(function(t,a){var s=O(t);if(m&&null!=i.type&&(s.type=i.type),C(Object(o.defaults)(s,i),e,a),null==s.name&&n){var u=n[a];!Object(o.isObject)(u)&&(u={name:u}),s.name=s.displayName=u.name,s.defaultTooltip=u.defaultTooltip}r&&Object(o.defaults)(s.otherDims,r)}))}}));var E=e.generateCoord,T=e.generateCoordCount,A=null!=T;T=E?T||1:0;var M=E||"value";function I(t){null==t.name&&(t.name=t.coordDim)}if(v)Object(o.each)(p,(function(t){I(t)})),p.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var j=0;j<g;j++){var k=O(j);null==k.coordDim&&(k.coordDim=d(M,f,A),k.coordDimIndex=0,(!E||T<=0)&&(k.isExtraCoord=!0),T--),I(k),null!=k.type||Object(l.guessOrdinal)(t,j)!==l.BE_ORDINAL.Must&&(!k.isExtraCoord||null==k.otherDims.itemName&&null==k.otherDims.seriesName)||(k.type="ordinal")}return function(t){for(var e=Object(o.createHashMap)(),n=0;n<t.length;n++){var r=t[n],i=r.name,a=e.get(i)||0;a>0&&(r.name=i+(a-1)),a++,e.set(i,a)}}(p),new c.SeriesDataSchema({source:t,dimensions:p,fullDimensionCount:g,dimensionOmitted:v})}function d(t,e,n){var r=e.data;if(n||r.hasOwnProperty(t)){for(var i=0;r.hasOwnProperty(t+i);)i++;t+=i}return e.set(t,!0),t}},function(t,e,n){"use strict";n.r(e);var r=n(82),i=n(376);e.default=function(t,e){if(t)if(Object(r.default)(t))for(var n=0,o=t.length;n<o&&!1!==e(t[n],n);n++);else if(Object(i.default)(t))for(var a in t)if(t.hasOwnProperty(a)&&!1===e(t[a],a))break}},function(t,e,n){"use strict";n.r(e);var r=n(197);e.default=function(t){return Object(r.default)(t)?"":t.toString()}},function(t,e,n){"use strict";n.r(e),n.d(e,"pattern",(function(){return u}));var r=n(2),i=n(13),o=n(1),a=n(669),s=n(3);function u(t){var e=this;return function(n){var u,l=n.options,c=n.chart,h=l.pattern;if(!h)return n;return Object(s.deepAssign)({},n,{options:(u={},u[t]=function(n){for(var u,f,d,p=[],g=1;g<arguments.length;g++)p[g-1]=arguments[g];var v=c.getTheme().defaultColor,m=v,y=null===(f=null===(u=c.geometries)||void 0===u?void 0:u[0])||void 0===f?void 0:f.getAttribute("color");if(y){var b=y.getFields()[0],_=Object(o.get)(n,b);m=i.Util.getMappingValue(y,_,(null===(d=y.values)||void 0===d?void 0:d[0])||v)}var x=h;"function"==typeof h&&(x=h.call(e,n,m)),x instanceof CanvasPattern==!1&&(x=Object(a.getCanvasPattern)(Object(s.deepAssign)({},{cfg:{backgroundColor:m}},x)));var w=l[t];return Object(r.__assign)(Object(r.__assign)({},"function"==typeof w?w.call.apply(w,Object(r.__spreadArrays)([e,n],p)):w||{}),{fill:x||m})},u)})}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(9);function i(){var t=Object(r.makeInner)();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}},function(t,e,n){"use strict";n.r(e),n.d(e,"AxisModelCommonMixin",(function(){return r}));var r=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(259),i=n(118),o=n(0);function a(t,e,n){e=Object(o.isArray)(e)&&{coordDimensions:e}||Object(o.extend)({encodeDefine:t.getEncode()},e);var a=t.getSource(),s=Object(r.default)(a,e).dimensions,u=new i.default(s,t);return u.initData(a,n),u}},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,u,"next",t)}function u(t){r(a,i,o,s,u,"throw",t)}s(void 0)}))}}n.r(e),n.d(e,"default",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"SYSTEM_LANG",(function(){return c})),n.d(e,"registerLocale",(function(){return h})),n.d(e,"createLocaleObject",(function(){return f})),n.d(e,"getLocaleModel",(function(){return d})),n.d(e,"getDefaultLocaleModel",(function(){return p}));var r=n(64),i=n(54),o=n(1344),a=n(1345),s=n(0),u={},l={},c=i.default.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function h(t,e){t=t.toUpperCase(),l[t]=new r.default(e),u[t]=e}function f(t){if(Object(s.isString)(t)){var e=u[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?Object(s.clone)(e):Object(s.merge)(Object(s.clone)(e),Object(s.clone)(u.EN),!1)}return Object(s.merge)(Object(s.clone)(t),Object(s.clone)(u.EN),!1)}function d(t){return l[t]}function p(){return l.EN}h("EN",o.default),h("ZH",a.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"createFromString",(function(){return x})),n.d(e,"extendFromString",(function(){return w})),n.d(e,"mergePath",(function(){return O})),n.d(e,"clonePath",(function(){return S}));var r=n(66),i=n(36),o=n(151),a=n(883),s=n(0),u=Math.sqrt,l=Math.sin,c=Math.cos,h=Math.PI;function f(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function d(t,e){return(t[0]*e[0]+t[1]*e[1])/(f(t)*f(e))}function p(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(d(t,e))}function g(t,e,n,r,i,o,a,s,f,g,v){var m=f*(h/180),y=c(m)*(t-n)/2+l(m)*(e-r)/2,b=-1*l(m)*(t-n)/2+c(m)*(e-r)/2,_=y*y/(a*a)+b*b/(s*s);_>1&&(a*=u(_),s*=u(_));var x=(i===o?-1:1)*u((a*a*(s*s)-a*a*(b*b)-s*s*(y*y))/(a*a*(b*b)+s*s*(y*y)))||0,w=x*a*b/s,O=x*-s*y/a,S=(t+n)/2+c(m)*w-l(m)*O,C=(e+r)/2+l(m)*w+c(m)*O,E=p([1,0],[(y-w)/a,(b-O)/s]),T=[(y-w)/a,(b-O)/s],A=[(-1*y-w)/a,(-1*b-O)/s],M=p(T,A);if(d(T,A)<=-1&&(M=h),d(T,A)>=1&&(M=0),M<0){var I=Math.round(M/h*1e6)/1e6;M=2*h+I%2*h}v.addData(g,S,C,a,s,E,M,m,o)}var v=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,m=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.applyTransform=function(t){},e}(i.default);function b(t){return null!=t.setData}function _(t,e){var n=function(t){var e=new o.default;if(!t)return e;var n,r=0,i=0,a=r,s=i,u=o.default.CMD,l=t.match(v);if(!l)return e;for(var c=0;c<l.length;c++){for(var h=l[c],f=h.charAt(0),d=void 0,p=h.match(m)||[],y=p.length,b=0;b<y;b++)p[b]=parseFloat(p[b]);for(var _=0;_<y;){var x=void 0,w=void 0,O=void 0,S=void 0,C=void 0,E=void 0,T=void 0,A=r,M=i,I=void 0,j=void 0;switch(f){case"l":r+=p[_++],i+=p[_++],d=u.L,e.addData(d,r,i);break;case"L":r=p[_++],i=p[_++],d=u.L,e.addData(d,r,i);break;case"m":r+=p[_++],i+=p[_++],d=u.M,e.addData(d,r,i),a=r,s=i,f="l";break;case"M":r=p[_++],i=p[_++],d=u.M,e.addData(d,r,i),a=r,s=i,f="L";break;case"h":r+=p[_++],d=u.L,e.addData(d,r,i);break;case"H":r=p[_++],d=u.L,e.addData(d,r,i);break;case"v":i+=p[_++],d=u.L,e.addData(d,r,i);break;case"V":i=p[_++],d=u.L,e.addData(d,r,i);break;case"C":d=u.C,e.addData(d,p[_++],p[_++],p[_++],p[_++],p[_++],p[_++]),r=p[_-2],i=p[_-1];break;case"c":d=u.C,e.addData(d,p[_++]+r,p[_++]+i,p[_++]+r,p[_++]+i,p[_++]+r,p[_++]+i),r+=p[_-2],i+=p[_-1];break;case"S":x=r,w=i,I=e.len(),j=e.data,n===u.C&&(x+=r-j[I-4],w+=i-j[I-3]),d=u.C,A=p[_++],M=p[_++],r=p[_++],i=p[_++],e.addData(d,x,w,A,M,r,i);break;case"s":x=r,w=i,I=e.len(),j=e.data,n===u.C&&(x+=r-j[I-4],w+=i-j[I-3]),d=u.C,A=r+p[_++],M=i+p[_++],r+=p[_++],i+=p[_++],e.addData(d,x,w,A,M,r,i);break;case"Q":A=p[_++],M=p[_++],r=p[_++],i=p[_++],d=u.Q,e.addData(d,A,M,r,i);break;case"q":A=p[_++]+r,M=p[_++]+i,r+=p[_++],i+=p[_++],d=u.Q,e.addData(d,A,M,r,i);break;case"T":x=r,w=i,I=e.len(),j=e.data,n===u.Q&&(x+=r-j[I-4],w+=i-j[I-3]),r=p[_++],i=p[_++],d=u.Q,e.addData(d,x,w,r,i);break;case"t":x=r,w=i,I=e.len(),j=e.data,n===u.Q&&(x+=r-j[I-4],w+=i-j[I-3]),r+=p[_++],i+=p[_++],d=u.Q,e.addData(d,x,w,r,i);break;case"A":O=p[_++],S=p[_++],C=p[_++],E=p[_++],T=p[_++],g(A=r,M=i,r=p[_++],i=p[_++],E,T,O,S,C,d=u.A,e);break;case"a":O=p[_++],S=p[_++],C=p[_++],E=p[_++],T=p[_++],g(A=r,M=i,r+=p[_++],i+=p[_++],E,T,O,S,C,d=u.A,e)}}"z"!==f&&"Z"!==f||(d=u.Z,e.addData(d),r=a,i=s),n=d}return e.toStatic(),e}(t),r=Object(s.extend)({},e);return r.buildPath=function(t){if(b(t)){t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){Object(a.default)(n,t),this.dirtyShape()},r}function x(t,e){return new y(_(t,e))}function w(t,e){var n=_(t,e);return function(t){function e(e){var r=t.call(this,e)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return Object(r.__extends)(e,t),e}(y)}function O(t,e){for(var n=[],r=t.length,o=0;o<r;o++){var a=t[o];n.push(a.getUpdatedPathProxy(!0))}var s=new i.default(e);return s.createPathProxy(),s.buildPath=function(t){if(b(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},s}function S(t,e){e=e||{};var n=new i.default;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?Object(a.default)(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}},function(t,e,n){"use strict";n.r(e),n.d(e,"createCanvasPattern",(function(){return _})),n.d(e,"brushSingle",(function(){return A})),n.d(e,"brush",(function(){return M}));var r=n(106),i=n(151),o=n(335),a=n(231),s=n(36),u=n(114),l=n(354),c=n(0),h=n(572),f=n(108),d=n(107),p=new i.default(!0);function g(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function v(t){return"string"==typeof t&&"none"!==t}function m(t){var e=t.fill;return null!=e&&"none"!==e}function y(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function b(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function _(t,e,n){var r=Object(o.createOrUpdateImage)(e.image,e.__image,n);if(Object(o.isImageReady)(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*c.RADIAN_TO_DEGREE),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}var x=["shadowBlur","shadowOffsetX","shadowOffsetY"],w=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function O(t,e,n,i,o){var a=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){E(t,o),a=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?r.DEFAULT_COMMON_STYLE.opacity:s}(i||e.blend!==n.blend)&&(a||(E(t,o),a=!0),t.globalCompositeOperation=e.blend||r.DEFAULT_COMMON_STYLE.blend);for(var u=0;u<x.length;u++){var l=x[u];(i||e[l]!==n[l])&&(a||(E(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(a||(E(t,o),a=!0),t.shadowColor=e.shadowColor||r.DEFAULT_COMMON_STYLE.shadowColor),a}function S(t,e,n,r,i){var o=T(e,i.inHover),a=r?null:n&&T(n,i.inHover)||{};if(o===a)return!1;var s=O(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(E(t,i),s=!0),v(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(E(t,i),s=!0),v(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(E(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var u=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(E(t,i),s=!0),t.lineWidth=u)}for(var l=0;l<w.length;l++){var c=w[l],h=c[0];(r||o[h]!==a[h])&&(s||(E(t,i),s=!0),t[h]=o[h]||c[1])}return s}function C(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function E(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function T(t,e){return e&&t.__hoverStyle||t.style}function A(t,e){M(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function M(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~f.REDRAW_BIT,void(e.__isRendered=!1);var c=e.__clipPaths,v=n.prevElClipPaths,x=!1,w=!1;if(v&&!Object(a.isClipPathChanged)(c,v)||(v&&v.length&&(E(t,n),t.restore(),w=x=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),c&&c.length&&(E(t,n),t.save(),function(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),C(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}(c,t,n),x=!0),n.prevElClipPaths=c),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var A=n.prevEl;A||(w=x=!0);var I,j,k=e instanceof s.default&&e.autoBatch&&function(t){var e=m(t),n=g(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);x||(I=i,j=A.transform,I&&j?I[0]!==j[0]||I[1]!==j[1]||I[2]!==j[2]||I[3]!==j[3]||I[4]!==j[4]||I[5]!==j[5]:I||j)?(E(t,n),C(t,e)):k||E(t,n);var P=T(e,n.inHover);e instanceof s.default?(1!==n.lastDrawType&&(w=!0,n.lastDrawType=1),S(t,e,A,w,n),k&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,r){var i,o=g(n),s=m(n),u=n.strokePercent,l=u<1,c=!e.path;e.silent&&!l||!c||e.createPathProxy();var d=e.path||p,v=e.__dirty;if(!r){var x=n.fill,w=n.stroke,O=s&&!!x.colorStops,S=o&&!!w.colorStops,C=s&&!!x.image,E=o&&!!w.image,T=void 0,A=void 0,M=void 0,I=void 0,j=void 0;(O||S)&&(j=e.getBoundingRect()),O&&(T=v?Object(a.getCanvasGradient)(t,x,j):e.__canvasFillGradient,e.__canvasFillGradient=T),S&&(A=v?Object(a.getCanvasGradient)(t,w,j):e.__canvasStrokeGradient,e.__canvasStrokeGradient=A),C&&(M=v||!e.__canvasFillPattern?_(t,x,e):e.__canvasFillPattern,e.__canvasFillPattern=M),E&&(I=v||!e.__canvasStrokePattern?_(t,w,e):e.__canvasStrokePattern,e.__canvasStrokePattern=M),O?t.fillStyle=T:C&&(M?t.fillStyle=M:s=!1),S?t.strokeStyle=A:E&&(I?t.strokeStyle=I:o=!1)}var k,P,L=e.getGlobalScale();d.setScale(L[0],L[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(k=(i=Object(h.getLineDash)(e))[0],P=i[1]);var R=!0;(c||v&f.SHAPE_CHANGED_BIT)&&(d.setDPR(t.dpr),l?d.setContext(null):(d.setContext(t),R=!1),d.reset(),e.buildPath(d,e.shape,r),d.toStatic(),e.pathUpdated()),R&&d.rebuildPath(t,l?u:1),k&&(t.setLineDash(k),t.lineDashOffset=P),r||(n.strokeFirst?(o&&b(t,n),s&&y(t,n)):(s&&y(t,n),o&&b(t,n))),k&&t.setLineDash([])}(t,e,P,k),k&&(n.batchFill=P.fill||"",n.batchStroke=P.stroke||"")):e instanceof l.default?(3!==n.lastDrawType&&(w=!0,n.lastDrawType=3),S(t,e,A,w,n),function(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||d.DEFAULT_FONT,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(r=Object(h.getLineDash)(e))[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(g(n)&&t.strokeText(i,n.x,n.y),m(n)&&t.fillText(i,n.x,n.y)):(m(n)&&t.fillText(i,n.x,n.y),g(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}(t,e,P)):e instanceof u.default?(2!==n.lastDrawType&&(w=!0,n.lastDrawType=2),function(t,e,n,r,i){O(t,T(e,i.inHover),n&&T(n,i.inHover),r,i)}(t,e,A,w,n),function(t,e,n){var r=e.__image=Object(o.createOrUpdateImage)(n.image,e.__image,e,e.onload);if(r&&Object(o.isImageReady)(r)){var i=n.x||0,a=n.y||0,s=e.getWidth(),u=e.getHeight(),l=r.width/r.height;if(null==s&&null!=u?s=u*l:null==u&&null!=s?u=s/l:null==s&&null==u&&(s=r.width,u=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,h=n.sy||0;t.drawImage(r,c,h,n.sWidth,n.sHeight,i,a,s,u)}else if(n.sx&&n.sy){var f=s-(c=n.sx),d=u-(h=n.sy);t.drawImage(r,c,h,f,d,i,a,s,u)}else t.drawImage(r,i,a,s,u)}}(t,e,P)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(w=!0,n.lastDrawType=4),function(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=r.length;o<a;o++){(c=r[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),M(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var u=0,l=i.length;u<l;u++){var c;(c=i[u]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),M(t,c,s,u===l-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),k&&r&&E(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}},function(t,e,n){"use strict";function r(t,e){return t.type===e}n.r(e),n.d(e,"isCoordinateSystemType",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"fromValues",(function(){return a})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return u})),n.d(e,"add",(function(){return l})),n.d(e,"subtract",(function(){return c})),n.d(e,"multiply",(function(){return h})),n.d(e,"divide",(function(){return f})),n.d(e,"ceil",(function(){return d})),n.d(e,"floor",(function(){return p})),n.d(e,"min",(function(){return g})),n.d(e,"max",(function(){return v})),n.d(e,"round",(function(){return m})),n.d(e,"scale",(function(){return y})),n.d(e,"scaleAndAdd",(function(){return b})),n.d(e,"distance",(function(){return _})),n.d(e,"squaredDistance",(function(){return x})),n.d(e,"length",(function(){return w})),n.d(e,"squaredLength",(function(){return O})),n.d(e,"negate",(function(){return S})),n.d(e,"inverse",(function(){return C})),n.d(e,"normalize",(function(){return E})),n.d(e,"dot",(function(){return T})),n.d(e,"cross",(function(){return A})),n.d(e,"lerp",(function(){return M})),n.d(e,"random",(function(){return I})),n.d(e,"transformMat2",(function(){return j})),n.d(e,"transformMat2d",(function(){return k})),n.d(e,"transformMat3",(function(){return P})),n.d(e,"transformMat4",(function(){return L})),n.d(e,"rotate",(function(){return R})),n.d(e,"angle",(function(){return D})),n.d(e,"zero",(function(){return N})),n.d(e,"str",(function(){return B})),n.d(e,"exactEquals",(function(){return F})),n.d(e,"equals",(function(){return z})),n.d(e,"len",(function(){return U})),n.d(e,"sub",(function(){return G})),n.d(e,"mul",(function(){return H})),n.d(e,"div",(function(){return W})),n.d(e,"dist",(function(){return Y})),n.d(e,"sqrDist",(function(){return X})),n.d(e,"sqrLen",(function(){return $})),n.d(e,"forEach",(function(){return q}));var r=n(22);function i(){var t=new r.ARRAY_TYPE(2);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t){var e=new r.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e}function a(t,e){var n=new r.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n}function s(t,e){return t[0]=e[0],t[1]=e[1],t}function u(t,e,n){return t[0]=e,t[1]=n,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function d(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function p(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function m(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function _(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function x(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function w(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function O(t){var e=t[0],n=t[1];return e*e+n*n}function S(t,e){return t[0]=-e[0],t[1]=-e[1],t}function C(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function E(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function T(t,e){return t[0]*e[0]+t[1]*e[1]}function A(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function M(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function I(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function j(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}function k(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function P(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function L(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}function R(t,e,n,r){var i=e[0]-n[0],o=e[1]-n[1],a=Math.sin(r),s=Math.cos(r);return t[0]=i*s-o*a+n[0],t[1]=i*a+o*s+n[1],t}function D(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+o*o),s=a&&(n*i+r*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}function N(t){return t[0]=0,t[1]=0,t}function B(t){return"vec2("+t[0]+", "+t[1]+")"}function F(t,e){return t[0]===e[0]&&t[1]===e[1]}function z(t,e){var n=t[0],i=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))}var V,U=w,G=c,H=h,W=f,Y=_,X=x,$=O,q=(V=i(),function(t,e,n,r,i,o){var a,s;for(e||(e=2),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a<s;a+=e)V[0]=t[a],V[1]=t[a+1],i(V,V,o),t[a]=V[0],t[a+1]=V[1];return t})},function(t,e,n){"use strict";n.r(e),n.d(e,"MarkerSymbols",(function(){return r}));var r={hexagon:function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}}},function(t,e){t.exports=function(t){return null==t}},function(t,e,n){"use strict";e.__esModule=!0;var r=a(n(1935)),i=a(n(1947)),o="function"==typeof i.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":typeof t};function a(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof i.default&&"symbol"===o(r.default)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":void 0===t?"undefined":o(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getLayoutOnAxis",(function(){return c})),n.d(e,"prepareLayoutBarSeries",(function(){return h})),n.d(e,"makeColumnLayout",(function(){return f})),n.d(e,"retrieveColumnLayout",(function(){return p})),n.d(e,"layout",(function(){return g})),n.d(e,"createProgressiveLayout",(function(){return v}));var r=n(0),i=n(6),o=n(147),a=n(263),s=n(211);function u(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function l(t){return t.dim+t.index}function c(t){var e=[],n=t.axis;if("category"===n.type){for(var i=n.getBandWidth(),o=0;o<t.count;o++)e.push(Object(r.defaults)({bandWidth:i,axisKey:"axis0",stackId:"__ec_stack_"+o},t));var a=d(e),s=[];for(o=0;o<t.count;o++){var u=a.axis0["__ec_stack_"+o];u.offsetCenter=u.offset+u.width/2,s.push(u)}return s}}function h(t,e){var n=[];return e.eachSeriesByType(t,(function(t){m(t)&&n.push(t)})),n}function f(t){var e=function(t){var e={};Object(r.each)(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,u=a.count();s<u;++s){var l=a.get(o,s);e[i]?e[i].push(l):e[i]=[l]}}));var n={};for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];if(o){o.sort((function(t,e){return t-e}));for(var a=null,s=1;s<o.length;++s){var u=o[s]-o[s-1];u>0&&(a=null===a?u:Math.min(a,u))}n[i]=a}}return n}(t),n=[];return Object(r.each)(t,(function(t){var r,o=t.coordinateSystem.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,c=e[s],h=Math.abs(a[1]-a[0]),f=o.scale.getExtent(),d=Math.abs(f[1]-f[0]);r=c?h/d*c:h}else{var p=t.getData();r=Math.abs(a[1]-a[0])/p.count()}var g=Object(i.parsePercent)(t.get("barWidth"),r),v=Object(i.parsePercent)(t.get("barMaxWidth"),r),m=Object(i.parsePercent)(t.get("barMinWidth")||(y(t)?.5:1),r),b=t.get("barGap"),_=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:g,barMaxWidth:v,barMinWidth:m,barGap:b,barCategoryGap:_,axisKey:l(o),stackId:u(t)})})),d(n)}function d(t){var e={};Object(r.each)(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var u=t.barWidth;u&&!a[s].width&&(a[s].width=u,u=Math.min(o.remainedWidth,u),o.remainedWidth-=u);var l=t.barMaxWidth;l&&(a[s].maxWidth=l);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var f=t.barCategoryGap;null!=f&&(o.categoryGap=f)}));var n={};return Object(r.each)(e,(function(t,e){n[e]={};var o=t.stacks,a=t.bandWidth,s=t.categoryGap;if(null==s){var u=Object(r.keys)(o).length;s=Math.max(35-4*u,15)+"%"}var l=Object(i.parsePercent)(s,a),c=Object(i.parsePercent)(t.gap,1),h=t.remainedWidth,f=t.autoWidthCount,d=(h-l)/(f+(f-1)*c);d=Math.max(d,0),Object(r.each)(o,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,h-=r+c*r,f--}else{var r=d;e&&e<r&&(r=Math.min(e,h)),n&&n>r&&(r=n),r!==d&&(t.width=r,h-=r+c*r,f--)}})),d=(h-l)/(f+(f-1)*c),d=Math.max(d,0);var p,g=0;Object(r.each)(o,(function(t,e){t.width||(t.width=d),p=t,g+=t.width*(1+c)})),p&&(g-=p.width*c);var v=-g/2;Object(r.each)(o,(function(t,r){n[e][r]=n[e][r]||{bandWidth:a,offset:v,width:t.width},v+=t.width*(1+c)}))})),n}function p(t,e,n){if(t&&e){var r=t[l(e)];return null!=r&&null!=n?r[u(n)]:r}}function g(t,e){var n=h(t,e),i=f(n);Object(r.each)(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=u(t),o=i[l(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function v(t){return{seriesType:t,plan:Object(a.default)(),reset:function(t){if(m(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=e.getDimensionIndex(e.mapDimension(i.dim)),u=e.getDimensionIndex(e.mapDimension(r.dim)),l=t.get("showBackground",!0),c=e.mapDimension(i.dim),h=e.getCalculationInfo("stackResultDimension"),f=Object(o.isDimensionStacked)(e,c)&&!!e.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),p=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,i),g=y(t),v=t.get("barMinHeight")||0,b=h&&e.getDimensionIndex(h),_=e.getLayout("size"),x=e.getLayout("offset");return{progress:function(t,e){for(var r,i=t.count,o=g&&Object(s.createFloat32Array)(3*i),c=g&&l&&Object(s.createFloat32Array)(3*i),h=g&&Object(s.createFloat32Array)(i),m=n.master.getRect(),y=d?m.width:m.height,w=e.getStore(),O=0;null!=(r=t.next());){var S=w.get(f?b:a,r),C=w.get(u,r),E=p,T=void 0;f&&(T=+S-w.get(a,r));var A=void 0,M=void 0,I=void 0,j=void 0;if(d){var k=n.dataToPoint([S,C]);if(f)E=n.dataToPoint([T,C])[0];A=E,M=k[1]+x,I=k[0]-E,j=_,Math.abs(I)<v&&(I=(I<0?-1:1)*v)}else{k=n.dataToPoint([C,S]);if(f)E=n.dataToPoint([C,T])[1];A=k[0]+x,M=E,I=_,j=k[1]-E,Math.abs(j)<v&&(j=(j<=0?-1:1)*v)}g?(o[O]=A,o[O+1]=M,o[O+2]=d?I:j,c&&(c[O]=d?m.x:A,c[O+1]=d?M:m.y,c[O+2]=y),h[r]=r):e.setItemLayout(r,{x:A,y:M,width:I,height:j}),O+=3}g&&e.setLayout({largePoints:o,largeDataIndices:h,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function m(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function y(t){return t.pipelineContext&&t.pipelineContext.large}},function(t,e,n){"use strict";n.r(e);var r=n(97),i=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return t.fromData=function(e,n,i){return new t(e,new r.Event(n,{}),i)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}();e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(104);function i(t,e,n,i,o,a,s){var u=Math.min(t,n),l=Math.max(t,n),c=Math.min(e,i),h=Math.max(e,i),f=o/2;return a>=u-f&&a<=l+f&&s>=c-f&&s<=h+f&&r.Line.pointToLine(t,e,n,i,a,s)<=o/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"$document",(function(){return w}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(50),u=n.n(s),l=n(51),c=n.n(l),h=n(28),f=n.n(h),d=n(324),p=n(367),g=n(777),v=n(779),m=n(780);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var b=function(t){u()(n,t);var e=y(n);function n(){return i()(this,n),e.call(this,"body",0)}return a()(n,[{key:"addEventListener",value:function(t,e){}},{key:"removeEventListener",value:function(t,e,n){}},{key:"dispatchEvent",value:function(t){}}]),n}(p.HTMLElement),_=function(t){u()(n,t);var e=y(n);function n(){return i()(this,n),e.call(this,"html",0)}return a()(n,[{key:"addEventListener",value:function(t,e){}},{key:"removeEventListener",value:function(t,e){}},{key:"dispatchEvent",value:function(t){}}]),n}(p.HTMLElement),x={},w={readyState:"complete",visibilityState:"visible",hidden:!1,fullscreen:!0,scripts:[],style:{},location:m.$location,ontouchstart:null,ontouchmove:null,ontouchend:null,onvisibilitychange:null,parentNode:null,parentElement:null,head:null,body:null,documentElement:{style:[]},createElement:function(t){return"canvas"===(t=t.toLowerCase())?my.createOffscreenCanvas(1024,128,"2d"):"img"===t?new v.Image:"video"===t?new g.HTMLVideoElement:new p.HTMLElement(t)},createElementNS:function(t,e){return this.createElement(e)},createTextNode:function(t){return t},getElementById:function(t){return null},getElementsByTagName:function(t){return t=t.toLowerCase(),[]},getElementsByTagNameNS:function(t,e){return this.getElementsByTagName(e)},getElementsByName:function(t){return[]},querySelector:function(t){return null},querySelectorAll:function(t){return[]},addEventListener:function(t,e,n){x[t]||(x[t]=[]),x[t].push(e)},removeEventListener:function(t,e){var n=x[t];if(n&&n.length>0)for(var r=n.length;r--;r>0)if(n[r]===e){n.splice(r,1);break}},dispatchEvent:function(t){var e=t.type,n=x[e];if(n)for(var r=0;r<n.length;r++)n[r](t);t.target&&"function"==typeof t.target["on"+e]&&t.target["on"+e](t)},createEvent:function(t){return new d.Event(t)}};w.documentElement=new _,w.head=new p.HTMLElement("head"),w.body=new b},function(t,e,n){"use strict";n.r(e),n.d(e,"$document",(function(){return m}));var r=n(19),i=n(20),o=n(61),a=n(63),s=n(32),u=n(327),l=n(368),c=n(786),h=n(788),f=n(789);function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(s.default)(t);if(e){var i=Object(s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.default)(this,n)}}var p=function(t){Object(o.default)(n,t);var e=d(n);function n(){return Object(r.default)(this,n),e.call(this,"body",0)}return Object(i.default)(n,[{key:"addEventListener",value:function(t,e){}},{key:"removeEventListener",value:function(t,e,n){}},{key:"dispatchEvent",value:function(t){}}]),n}(l.HTMLElement),g=function(t){Object(o.default)(n,t);var e=d(n);function n(){return Object(r.default)(this,n),e.call(this,"html",0)}return Object(i.default)(n,[{key:"addEventListener",value:function(t,e){}},{key:"removeEventListener",value:function(t,e){}},{key:"dispatchEvent",value:function(t){}}]),n}(l.HTMLElement),v={},m={readyState:"complete",visibilityState:"visible",hidden:!1,fullscreen:!0,scripts:[],style:{},location:f.$location,ontouchstart:null,ontouchmove:null,ontouchend:null,onvisibilitychange:null,parentNode:null,parentElement:null,head:null,body:null,documentElement:{style:[]},createElement:function(t){return"canvas"===(t=t.toLowerCase())?my.createOffscreenCanvas(1024,128,"2d"):"img"===t?new h.Image:"video"===t?new c.HTMLVideoElement:new l.HTMLElement(t)},createElementNS:function(t,e){return this.createElement(e)},createTextNode:function(t){return t},getElementById:function(t){return null},getElementsByTagName:function(t){return t=t.toLowerCase(),[]},getElementsByTagNameNS:function(t,e){return this.getElementsByTagName(e)},getElementsByName:function(t){return[]},querySelector:function(t){return null},querySelectorAll:function(t){return[]},addEventListener:function(t,e,n){v[t]||(v[t]=[]),v[t].push(e)},removeEventListener:function(t,e){var n=v[t];if(n&&n.length>0)for(var r=n.length;r--;r>0)if(n[r]===e){n.splice(r,1);break}},dispatchEvent:function(t){var e=t.type,n=v[e];if(n)for(var r=0;r<n.length;r++)n[r](t);t.target&&"function"==typeof t.target["on"+e]&&t.target["on"+e](t)},createEvent:function(t){return new u.Event(t)}};m.documentElement=new g,m.head=new l.HTMLElement("head"),m.body=new p},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return s})),n.d(e,"identity",(function(){return u})),n.d(e,"setAxisAngle",(function(){return l})),n.d(e,"getAxisAngle",(function(){return c})),n.d(e,"getAngle",(function(){return h})),n.d(e,"multiply",(function(){return f})),n.d(e,"rotateX",(function(){return d})),n.d(e,"rotateY",(function(){return p})),n.d(e,"rotateZ",(function(){return g})),n.d(e,"calculateW",(function(){return v})),n.d(e,"exp",(function(){return m})),n.d(e,"ln",(function(){return y})),n.d(e,"pow",(function(){return b})),n.d(e,"slerp",(function(){return _})),n.d(e,"random",(function(){return x})),n.d(e,"invert",(function(){return w})),n.d(e,"conjugate",(function(){return O})),n.d(e,"fromMat3",(function(){return S})),n.d(e,"fromEuler",(function(){return C})),n.d(e,"str",(function(){return E})),n.d(e,"clone",(function(){return P})),n.d(e,"fromValues",(function(){return L})),n.d(e,"copy",(function(){return R})),n.d(e,"set",(function(){return D})),n.d(e,"add",(function(){return N})),n.d(e,"mul",(function(){return B})),n.d(e,"scale",(function(){return F})),n.d(e,"dot",(function(){return z})),n.d(e,"lerp",(function(){return V})),n.d(e,"length",(function(){return U})),n.d(e,"len",(function(){return G})),n.d(e,"squaredLength",(function(){return H})),n.d(e,"sqrLen",(function(){return W})),n.d(e,"normalize",(function(){return Y})),n.d(e,"exactEquals",(function(){return X})),n.d(e,"equals",(function(){return $})),n.d(e,"rotationTo",(function(){return q})),n.d(e,"sqlerp",(function(){return Z})),n.d(e,"setAxes",(function(){return K}));var r=n(22),i=n(652),o=n(200),a=n(173);function s(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function u(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t}function l(t,e,n){n*=.5;var r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function c(t,e){var n=2*Math.acos(e[3]),i=Math.sin(n/2);return i>r.EPSILON?(t[0]=e[0]/i,t[1]=e[1]/i,t[2]=e[2]/i):(t[0]=1,t[1]=0,t[2]=0),n}function h(t,e){var n=z(t,e);return Math.acos(2*n*n-1)}function f(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1],l=n[2],c=n[3];return t[0]=r*c+a*s+i*l-o*u,t[1]=i*c+a*u+o*s-r*l,t[2]=o*c+a*l+r*u-i*s,t[3]=a*c-r*s-i*u-o*l,t}function d(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+a*s,t[1]=i*u+o*s,t[2]=o*u-i*s,t[3]=a*u-r*s,t}function p(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u-o*s,t[1]=i*u+a*s,t[2]=o*u+r*s,t[3]=a*u-i*s,t}function g(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+i*s,t[1]=i*u-r*s,t[2]=o*u+a*s,t[3]=a*u-o*s,t}function v(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t}function m(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=Math.sqrt(n*n+r*r+i*i),s=Math.exp(o),u=a>0?s*Math.sin(a)/a:0;return t[0]=n*u,t[1]=r*u,t[2]=i*u,t[3]=s*Math.cos(a),t}function y(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=Math.sqrt(n*n+r*r+i*i),s=a>0?Math.atan2(a,o)/a:0;return t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=.5*Math.log(n*n+r*r+i*i+o*o),t}function b(t,e,n){return y(t,e),F(t,t,n),m(t,t),t}function _(t,e,n,i){var o,a,s,u,l,c=e[0],h=e[1],f=e[2],d=e[3],p=n[0],g=n[1],v=n[2],m=n[3];return(a=c*p+h*g+f*v+d*m)<0&&(a=-a,p=-p,g=-g,v=-v,m=-m),1-a>r.EPSILON?(o=Math.acos(a),s=Math.sin(o),u=Math.sin((1-i)*o)/s,l=Math.sin(i*o)/s):(u=1-i,l=i),t[0]=u*c+l*p,t[1]=u*h+l*g,t[2]=u*f+l*v,t[3]=u*d+l*m,t}function x(t){var e=r.RANDOM(),n=r.RANDOM(),i=r.RANDOM(),o=Math.sqrt(1-e),a=Math.sqrt(e);return t[0]=o*Math.sin(2*Math.PI*n),t[1]=o*Math.cos(2*Math.PI*n),t[2]=a*Math.sin(2*Math.PI*i),t[3]=a*Math.cos(2*Math.PI*i),t}function w(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o,s=a?1/a:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=o*s,t}function O(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function S(t,e){var n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var o=(i+1)%3,a=(i+2)%3;n=Math.sqrt(e[3*i+i]-e[3*o+o]-e[3*a+a]+1),t[i]=.5*n,n=.5/n,t[3]=(e[3*o+a]-e[3*a+o])*n,t[o]=(e[3*o+i]+e[3*i+o])*n,t[a]=(e[3*a+i]+e[3*i+a])*n}return t}function C(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var o=Math.sin(e),a=Math.cos(e),s=Math.sin(n),u=Math.cos(n),l=Math.sin(r),c=Math.cos(r);return t[0]=o*u*c-a*s*l,t[1]=a*s*c+o*u*l,t[2]=a*u*l-o*s*c,t[3]=a*u*c+o*s*l,t}function E(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var T,A,M,I,j,k,P=a.clone,L=a.fromValues,R=a.copy,D=a.set,N=a.add,B=f,F=a.scale,z=a.dot,V=a.lerp,U=a.length,G=U,H=a.squaredLength,W=H,Y=a.normalize,X=a.exactEquals,$=a.equals,q=(T=o.create(),A=o.fromValues(1,0,0),M=o.fromValues(0,1,0),function(t,e,n){var r=o.dot(e,n);return r<-.999999?(o.cross(T,A,e),o.len(T)<1e-6&&o.cross(T,M,e),o.normalize(T,T),l(t,T,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(o.cross(T,e,n),t[0]=T[0],t[1]=T[1],t[2]=T[2],t[3]=1+r,Y(t,t))}),Z=(I=s(),j=s(),function(t,e,n,r,i,o){return _(I,e,i,o),_(j,n,r,o),_(t,I,j,2*o*(1-o)),t}),K=(k=i.create(),function(t,e,n,r){return k[0]=n[0],k[3]=n[1],k[6]=n[2],k[1]=r[0],k[4]=r[1],k[7]=r[2],k[2]=-e[0],k[5]=-e[1],k[8]=-e[2],Y(t,S(t,k))})},function(t,e,n){"use strict";n.r(e),n.d(e,"STATUS_UNACTIVE",(function(){return l})),n.d(e,"STATUS_ACTIVE",(function(){return c}));var r=n(2),i=n(1),o=n(24),a=n(399),s=n(497),u=n(7),l=u.ELEMENT_STATE.INACTIVE,c=u.ELEMENT_STATE.ACTIVE,h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=c,e}return Object(r.__extends)(e,t),e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;this.setHighlightBy(t,(function(t){return i.isMathItem(t,e,n)}),r)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(l)&&t.setState(l,!1),t.setState(c,!0)):t.hasState(c)||t.setState(l,!0)},e.prototype.setHighlightBy=function(t,e,n){var r=this;if(n)Object(i.each)(t,(function(t){r.setElementHighlight(t,e)}));else{var a=Object(o.getElementsByState)(this.context.view,c),s=!0;Object(i.each)(a,(function(t){if(!e(t))return s=!1,!1})),s?this.clear():Object(i.each)(t,(function(t){e(t)&&(t.hasState(c)&&t.setState(c,!1),t.setState(l,!0))}))}},e.prototype.setElementState=function(t,e){var n=this.context.view,r=Object(o.getElements)(n);this.setHighlightBy(r,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.context.view;Object(a.clearHighlight)(t)},e}(s.default);e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"BOX_RANGE",(function(){return a})),n.d(e,"BOX_RANGE_ALIAS",(function(){return s})),n.d(e,"BOX_SYNC_NAME",(function(){return u})),n.d(e,"OUTLIERS_VIEW_ID",(function(){return l})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var r,i=n(26),o=n(3),a="$$range$$",s="low-q1-median-q3-high",u="$$y_outliers$$",l="outliers_view",c=Object(o.deepAssign)({},i.Plot.getDefaultOptions(),{meta:(r={},r[a]={min:0,alias:s},r),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}})},function(t,e,n){"use strict";n.r(e);var r=n(472),i=new Map,o=function(){function t(){}return Object.defineProperty(t,"onmessage",{set:function(t){self.onmessage=function(e){if(a(e)){var n=e.data,r=n.type,i=n.payload;t(r,i)}}},enumerable:!1,configurable:!0}),t.addEventListener=function(t){var e=i.get(t);e||(e=function(e){if(a(e)){var n=e.data,r=n.type,i=n.payload;t(r,i)}}),self.addEventListener("message",e)},t.removeEventListener=function(t){var e=i.get(t);i.delete(t),self.removeEventListener("message",e)},t.postMessage=function(t,e){if(self){var n={source:"Worker thread",type:t,payload:e},i=Object(r.getTransferList)(e);self.postMessage(n,i)}},t}();function a(t){var e=t.type,n=t.data;return"message"===e&&n&&"string"==typeof n.source&&"Main thread"===n.source}e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"HISTOGRAM_X_FIELD",(function(){return o})),n.d(e,"HISTOGRAM_Y_FIELD",(function(){return a})),n.d(e,"DEFAULT_OPTIONS",(function(){return s}));var r=n(26),i=n(3),o="range",a="count",s=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},function(t,e,n){!function(t){"use strict";function e(t){for(var e=new Array(t),n=0;n<t;++n)e[n]=0;return e}function n(t,e){for(var n=0,r=0;r<t.length;++r)n+=t[r]*e[r];return n}function r(t){return Math.sqrt(n(t,t))}function i(t,e,n){for(var r=0;r<e.length;++r)t[r]=e[r]*n}function o(t,e,n,r,i){for(var o=0;o<t.length;++o)t[o]=e*n[o]+r*i[o]}function a(t,e,r,i,a,s,u){var l=r.fx,c=n(r.fxprime,e),h=l,f=l,d=c,p=0;function g(f,p,g){for(var v=0;v<16;++v)if(a=(f+p)/2,o(i.x,1,r.x,a,e),h=i.fx=t(i.x,i.fxprime),d=n(i.fxprime,e),h>l+s*a*c||h>=g)p=a;else{if(Math.abs(d)<=-u*c)return a;d*(p-f)>=0&&(p=f),f=a,g=h}return 0}a=a||1,s=s||1e-6,u=u||.1;for(var v=0;v<10;++v){if(o(i.x,1,r.x,a,e),h=i.fx=t(i.x,i.fxprime),d=n(i.fxprime,e),h>l+s*a*c||v&&h>=f)return g(p,a,f);if(Math.abs(d)<=-u*c)return a;if(d>=0)return g(a,p,h);f=h,p=a,a*=2}return a}t.bisect=function(t,e,n,r){var i=(r=r||{}).maxIterations||100,o=r.tolerance||1e-10,a=t(e),s=t(n),u=n-e;if(a*s>0)throw"Initial bisect points must have opposite signs";if(0===a)return e;if(0===s)return n;for(var l=0;l<i;++l){var c=e+(u/=2),h=t(c);if(h*a>=0&&(e=c),Math.abs(u)<o||0===h)return c}return e+u},t.nelderMead=function(t,e,n){var r,i=(n=n||{}).maxIterations||200*e.length,a=n.nonZeroDelta||1.05,s=n.zeroDelta||.001,u=n.minErrorDelta||1e-6,l=n.minErrorDelta||1e-5,c=void 0!==n.rho?n.rho:1,h=void 0!==n.chi?n.chi:2,f=void 0!==n.psi?n.psi:-.5,d=void 0!==n.sigma?n.sigma:.5,p=e.length,g=new Array(p+1);g[0]=e,g[0].fx=t(e),g[0].id=0;for(var v=0;v<p;++v){var m=e.slice();m[v]=m[v]?m[v]*a:s,g[v+1]=m,g[v+1].fx=t(m),g[v+1].id=v+1}function y(t){for(var e=0;e<t.length;e++)g[p][e]=t[e];g[p].fx=t.fx}for(var b=function(t,e){return t.fx-e.fx},_=e.slice(),x=e.slice(),w=e.slice(),O=e.slice(),S=0;S<i;++S){if(g.sort(b),n.history){var C=g.map((function(t){var e=t.slice();return e.fx=t.fx,e.id=t.id,e}));C.sort((function(t,e){return t.id-e.id})),n.history.push({x:g[0].slice(),fx:g[0].fx,simplex:C})}for(r=0,v=0;v<p;++v)r=Math.max(r,Math.abs(g[0][v]-g[1][v]));if(Math.abs(g[0].fx-g[p].fx)<u&&r<l)break;for(v=0;v<p;++v){_[v]=0;for(var E=0;E<p;++E)_[v]+=g[E][v];_[v]/=p}var T=g[p];if(o(x,1+c,_,-c,T),x.fx=t(x),x.fx<g[0].fx)o(O,1+h,_,-h,T),O.fx=t(O),O.fx<x.fx?y(O):y(x);else if(x.fx>=g[p-1].fx){var A=!1;if(x.fx>T.fx?(o(w,1+f,_,-f,T),w.fx=t(w),w.fx<T.fx?y(w):A=!0):(o(w,1-f*c,_,f*c,T),w.fx=t(w),w.fx<x.fx?y(w):A=!0),A){if(d>=1)break;for(v=1;v<g.length;++v)o(g[v],1-d,g[0],d,g[v]),g[v].fx=t(g[v])}}else y(x)}return g.sort(b),{fx:g[0].fx,x:g[0]}},t.conjugateGradient=function(t,e,s){var u,l,c,h={x:e.slice(),fx:0,fxprime:e.slice()},f={x:e.slice(),fx:0,fxprime:e.slice()},d=e.slice(),p=1;c=(s=s||{}).maxIterations||20*e.length,h.fx=t(h.x,h.fxprime),i(u=h.fxprime.slice(),h.fxprime,-1);for(var g=0;g<c;++g){if(p=a(t,u,h,f,p),s.history&&s.history.push({x:h.x.slice(),fx:h.fx,fxprime:h.fxprime.slice(),alpha:p}),p){o(d,1,f.fxprime,-1,h.fxprime);var v=n(h.fxprime,h.fxprime);o(u,Math.max(0,n(d,f.fxprime)/v),u,-1,f.fxprime),l=h,h=f,f=l}else i(u,h.fxprime,-1);if(r(h.fxprime)<=1e-5)break}return s.history&&s.history.push({x:h.x.slice(),fx:h.fx,fxprime:h.fxprime.slice(),alpha:p}),h},t.gradientDescent=function(t,e,n){for(var i=(n=n||{}).maxIterations||100*e.length,a=n.learnRate||.001,s={x:e.slice(),fx:0,fxprime:e.slice()},u=0;u<i&&(s.fx=t(s.x,s.fxprime),n.history&&n.history.push({x:s.x.slice(),fx:s.fx,fxprime:s.fxprime.slice()}),o(s.x,1,s.x,-a,s.fxprime),!(r(s.fxprime)<=1e-5));++u);return s},t.gradientDescentLineSearch=function(t,e,n){n=n||{};var o,s={x:e.slice(),fx:0,fxprime:e.slice()},u={x:e.slice(),fx:0,fxprime:e.slice()},l=n.maxIterations||100*e.length,c=n.learnRate||1,h=e.slice(),f=n.c1||.001,d=n.c2||.1,p=[];if(n.history){var g=t;t=function(t,e){return p.push(t.slice()),g(t,e)}}s.fx=t(s.x,s.fxprime);for(var v=0;v<l&&(i(h,s.fxprime,-1),c=a(t,h,s,u,c,f,d),n.history&&(n.history.push({x:s.x.slice(),fx:s.fx,fxprime:s.fxprime.slice(),functionCalls:p,learnRate:c,alpha:c}),p=[]),o=s,s=u,u=o,!(0===c||r(s.fxprime)<1e-5));++v);return s},t.zeros=e,t.zerosM=function(t,n){return e(t).map((function(){return e(n)}))},t.norm2=r,t.weightedSum=o,t.scale=i}(e)},function(t,e,n){"use strict";n.r(e);var r=new(n(142).default);e.default=r},function(t,e,n){"use strict";n.r(e),n.d(e,"getGridThemeCfg",(function(){return i})),n.d(e,"getLineGridItems",(function(){return o})),n.d(e,"getCircleGridItems",(function(){return a})),n.d(e,"showGrid",(function(){return s}));var r=n(1);function i(t,e){var n=Object(r.deepMix)({},Object(r.get)(t,["components","axis","common"]),Object(r.get)(t,["components","axis",e]));return Object(r.get)(n,["grid"],{})}function o(t,e,n,r){var i=[],o=e.getTicks();return t.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce((function(e,o,a){var s=o.value;if(r)i.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(a){var u=(e.value+s)/2;i.push({points:[t.convert("y"===n?{x:0,y:u}:{x:u,y:0}),t.convert("y"===n?{x:1,y:u}:{x:u,y:1})]})}return o}),o[0]),i}function a(t,e,n,i,o){var a=e.values.length,s=[],u=n.getTicks();return u.reduce((function(e,n){var u=e?e.value:n.value,l=n.value,c=(u+l)/2;return"x"===o?s.push({points:[t.convert({x:i?l:c,y:0}),t.convert({x:i?l:c,y:1})]}):s.push({points:Object(r.map)(Array(a+1),(function(e,n){return t.convert({x:n/a,y:i?l:c})}))}),n}),u[0]),s}function s(t,e){var n=Object(r.get)(e,"grid");if(null===n)return!1;var i=Object(r.get)(t,"grid");return!(void 0===n&&null===i)}},function(t,e,n){"use strict";function r(t){return function(){return t}}function i(t,e){for(var n=0,r=0;r<t.length;r++)n+=e(t[r]);return n}function o(t,e){for(var n=-1/0,r=0;r<t.length;r++)n=Math.max(e(t[r]),n);return n}function a(t,e){for(var n=1/0,r=0;r<t.length;r++)n=Math.min(e(t[r]),n);return n}n.r(e),n.d(e,"constant",(function(){return r})),n.d(e,"sumBy",(function(){return i})),n.d(e,"maxValueBy",(function(){return o})),n.d(e,"minValueBy",(function(){return a}))},function(t,e,n){"use strict";n.r(e),n.d(e,"mercatorXfromLng",(function(){return u})),n.d(e,"mercatorYfromLat",(function(){return l})),n.d(e,"mercatorZfromAltitude",(function(){return c})),n.d(e,"lngFromMercatorX",(function(){return h})),n.d(e,"latFromMercatorY",(function(){return f})),n.d(e,"altitudeFromMercatorZ",(function(){return d})),n.d(e,"mercatorScale",(function(){return p})),n.d(e,"default",(function(){return g}));var r=n(19),i=n(20),o=n(102),a=2*Math.PI*o.earthRadius;function s(t){return a*Math.cos(t*Math.PI/180)}function u(t){return(180+t)/360}function l(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function c(t,e){return t/s(e)}function h(t){return 360*t-180}function f(t){var e=180-360*t;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}function d(t,e){return t*s(f(e))}function p(t){return 1/Math.cos(t*Math.PI/180)}var g=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Object(r.default)(this,t),this.x=+e,this.y=+n,this.z=+i}return Object(i.default)(t,[{key:"toLngLat",value:function(){return new o.default(h(this.x),f(this.y))}},{key:"toAltitude",value:function(){return d(this.z,this.y)}},{key:"meterInMercatorCoordinateUnits",value:function(){return 1/a*p(f(this.y))}}],[{key:"fromLngLat",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=o.default.convert(e);return new t(u(r.lng),l(r.lat),c(n,r.lat))}}]),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=void 0;var r=n(175),i=function(){function t(t,e){this.key=t,this.value=e}return t.prototype.toString=function(){return this.key===r.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},t}();e.Metadata=i},function(t,e,n){"use strict";n.r(e);var r=n(421),i=n(145);e.default=function(t){if(!Object(r.default)(t)||!Object(i.default)(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){"use strict";n.r(e);var r=n(146);n.d(e,"Base",(function(){return r.default}));var i=n(1132);n.d(e,"Circle",(function(){return i.default}));var o=n(1133);n.d(e,"Ellipse",(function(){return o.default}));var a=n(1134);n.d(e,"Image",(function(){return a.default}));var s=n(1135);n.d(e,"Line",(function(){return s.default}));var u=n(1136);n.d(e,"Marker",(function(){return u.default}));var l=n(1137);n.d(e,"Path",(function(){return l.default}));var c=n(1138);n.d(e,"Polygon",(function(){return c.default}));var h=n(1139);n.d(e,"Polyline",(function(){return h.default}));var f=n(1140);n.d(e,"Rect",(function(){return f.default}));var d=n(1141);n.d(e,"Text",(function(){return d.default}))},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return g})),n.d(e,"legend",(function(){return m})),n.d(e,"adaptor",(function(){return _}));var r=n(2),i=n(1),o=n(8),a=n(1705),s=n(1706),u=n(34),l=n(262),c=n(755),h=n(3),f=n(244);function d(t){var e=t.options,n=e.legend,i=e.seriesField,o=e.isStack;return i?!1!==n&&(n=Object(r.__assign)({position:o?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function p(t){var e=t.chart,n=t.options,i=n.data,o=n.columnStyle,a=n.color,s=n.columnWidthRatio,l=n.isPercent,c=n.isGroup,d=n.isStack,p=n.xField,g=n.yField,v=n.seriesField,m=n.groupField,y=n.tooltip,b=n.shape,_=l&&c&&d?Object(f.getDeepPercent)(i,g,[p,m],g):Object(f.getDataWhetherPercentage)(i,g,p,g,l),x=[];d&&v&&!c?_.forEach((function(t){var e=x.find((function(e){return e[p]===t[p]&&e[v]===t[v]}));e?e[g]+=t[g]||0:x.push(Object(r.__assign)({},t))})):x=_,e.data(x);var w=l?Object(r.__assign)({formatter:function(t){return{name:c&&d?t[v]+" - "+t[m]:t[v]||t[p],value:(100*Number(t[g])).toFixed(2)+"%"}}},y):y,O=Object(h.deepAssign)({},t,{options:{data:x,widthRatio:s,tooltip:w,interval:{shape:b,style:o,color:a}}});return Object(u.interval)(O),O}function g(t){var e,n,i=t.options,a=i.xAxis,s=i.yAxis,u=i.xField,l=i.yField,c=i.data,f=i.isPercent?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Object(h.flow)(Object(o.scale)(((e={})[u]=a,e[l]=s,e),((n={})[u]={type:"cat"},n[l]=Object(r.__assign)(Object(r.__assign)({},Object(h.adjustYMetaByZero)(c,l)),f),n)))(t)}function v(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function m(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function y(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,a=n.isRange,s=Object(h.findGeometry)(e,"interval");if(i){var u=i.callback,l=Object(r.__rest)(i,["callback"]);s.label({fields:[o],callback:u,cfg:Object(r.__assign)({layout:(null==l?void 0:l.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(h.transformLabel)(a?Object(r.__assign)({content:function(t){var e;return null===(e=t[o])||void 0===e?void 0:e.join("-")}},l):l))})}else s.label(!1);return t}function b(t){var e=t.chart,n=t.options,o=n.tooltip,a=n.isGroup,s=n.isStack,u=n.groupField,l=n.data,c=n.xField,f=n.yField,d=n.seriesField;if(!1===o)e.tooltip(!1);else{var p=o;if(a&&s){var g=p.customItems,v=(null==p?void 0:p.formatter)||function(t){return{name:t[d]+" - "+t[u],value:t[f]}};p=Object(r.__assign)(Object(r.__assign)({},p),{customItems:function(t){var e=[];return Object(i.each)(t,(function(t){Object(i.filter)(l,(function(e){return Object(i.isMatch)(e,Object(h.pick)(t.data,[c,d]))})).forEach((function(n){e.push(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},t),{value:n[f],data:n,mappingData:{_origin:n}}),v(n)))}))})),g?g(e):e}})}e.tooltip(p)}return t}function _(t,e){void 0===e&&(e=!1);var n=t.options,r=n.seriesField;return Object(h.flow)(d,o.theme,Object(l.pattern)("columnStyle"),o.state,Object(o.transformations)("rect"),p,g,v,m,b,o.slider,o.scrollbar,y,c.brushInteraction,o.interaction,o.animation,Object(o.annotation)(),Object(a.conversionTag)(n.yField,!e,!!r),Object(s.connectedArea)(!n.isStack),o.limitInPlot)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return c})),n.d(e,"adaptor",(function(){return h}));var r=n(8),i=n(3),o=n(34),a=n(181),s=n(245),u=n(381);function l(t){var e=t.chart,n=t.options,r=n.data,u=n.color,l=n.areaStyle,c=n.point,h=n.line,f=null==c?void 0:c.state,d=Object(s.getTinyData)(r);e.data(d);var p=Object(i.deepAssign)({},t,{options:{xField:a.X_FIELD,yField:a.Y_FIELD,area:{color:u,style:l},line:h,point:c}}),g=Object(i.deepAssign)({},p,{options:{tooltip:!1}}),v=Object(i.deepAssign)({},p,{options:{tooltip:!1,state:f}});return Object(o.area)(p),Object(o.line)(g),Object(o.point)(v),e.axis(!1),e.legend(!1),t}function c(t){var e,n,o=t.options,l=o.xAxis,c=o.yAxis,h=o.data,f=Object(s.getTinyData)(h);return Object(i.flow)(Object(r.scale)(((e={})[a.X_FIELD]=l,e[a.Y_FIELD]=c,e),((n={})[a.X_FIELD]={type:"cat"},n[a.Y_FIELD]=Object(u.adjustYMetaByZero)(f,a.Y_FIELD),n)))(t)}function h(t){return Object(i.flow)(Object(r.pattern)("areaStyle"),l,c,r.tooltip,r.theme,r.animation,Object(r.annotation)())(t)}},function(t,e,n){"use strict";n.r(e);var r=n(0),i={},o=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];r.each(i,(function(r,i){var o=r.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){r.each(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){i[t]=e},t.get=function(t){return i[t]},t}();e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"createOrUpdatePatternFromDecal",(function(){return d}));var r=n(1351),i=n(316),o=n(0),a=n(6),s=n(67),u=n(269),l=n(107),c=new r.default,h=new i.default(100),f=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function d(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&c.delete(t);var d=c.get(t);if(d)return d;var g=Object(o.defaults)(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===g.backgroundColor&&(g.backgroundColor=null);var v={repeat:"repeat"};return function(t){for(var e,c=[n],d=!0,v=0;v<f.length;++v){var m=g[f[v]];if(null!=m&&!Object(o.isArray)(m)&&!Object(o.isString)(m)&&!Object(o.isNumber)(m)&&"boolean"!=typeof m){d=!1;break}c.push(m)}if(d){e=c.join(",")+(i?"-svg":"");var y=h.get(e);y&&(i?t.svgElement=y:t.image=y)}var b,_=function t(e){if(!e||0===e.length)return[[0,0]];if(Object(o.isNumber)(e)){return[[a=Math.ceil(e),a]]}for(var n=!0,r=0;r<e.length;++r)if(!Object(o.isNumber)(e[r])){n=!1;break}if(n)return t([e]);var i=[];for(r=0;r<e.length;++r)if(Object(o.isNumber)(e[r])){var a=Math.ceil(e[r]);i.push([a,a])}else{(a=Object(o.map)(e[r],(function(t){return Math.ceil(t)}))).length%2==1?i.push(a.concat(a)):i.push(a)}return i}(g.dashArrayX),x=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(Object(o.isNumber)(t)){var e=Math.ceil(t);return[e,e]}var n=Object(o.map)(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}(g.dashArrayY),w=function t(e){if(!e||0===e.length)return[["rect"]];if(Object(o.isString)(e))return[[e]];for(var n=!0,r=0;r<e.length;++r)if(!Object(o.isString)(e[r])){n=!1;break}if(n)return t([e]);var i=[];for(r=0;r<e.length;++r)Object(o.isString)(e[r])?i.push([e[r]]):i.push(e[r]);return i}(g.symbol),O=(A=_,Object(o.map)(A,(function(t){return p(t)}))),S=p(x),C=!i&&l.platformApi.createCanvas(),E=i&&{tag:"g",attrs:{},key:"dcl",children:[]},T=function(){for(var t=1,e=0,n=O.length;e<n;++e)t=Object(a.getLeastCommonMultiple)(t,O[e]);var r=1;for(e=0,n=w.length;e<n;++e)r=Object(a.getLeastCommonMultiple)(r,w[e].length);t*=r;var i=S*O.length*w.length;0;return{width:Math.max(1,Math.min(t,g.maxTileWidth)),height:Math.max(1,Math.min(i,g.maxTileHeight))}}();var A;C&&(C.width=T.width*n,C.height=T.height*n,b=C.getContext("2d"));(function(){b&&(b.clearRect(0,0,C.width,C.height),g.backgroundColor&&(b.fillStyle=g.backgroundColor,b.fillRect(0,0,C.width,C.height)));for(var t=0,e=0;e<x.length;++e)t+=x[e];if(t<=0)return;var o=-S,a=0,l=0,c=0;for(;o<T.height;){if(a%2==0){for(var h=l/2%w.length,f=0,d=0,p=0;f<2*T.width;){var v=0;for(e=0;e<_[c].length;++e)v+=_[c][e];if(v<=0)break;if(d%2==0){var m=.5*(1-g.symbolSize),y=f+_[c][d]*m,O=o+x[a]*m,A=_[c][d]*g.symbolSize,M=x[a]*g.symbolSize,I=p/2%w[h].length;j(y,O,A,M,w[h][I])}f+=_[c][d],++p,++d===_[c].length&&(d=0)}++c===_.length&&(c=0)}o+=x[a],++l,++a===x.length&&(a=0)}function j(t,e,o,a,l){var c=i?1:n,h=Object(s.createSymbol)(l,t*c,e*c,o*c,a*c,g.color,g.symbolKeepAspect);if(i){var f=r.painter.renderOneToVNode(h);f&&E.children.push(f)}else Object(u.brushSingle)(b,h)}})(),d&&h.put(e,C||E);t.image=C,t.svgElement=E,t.svgWidth=T.width,t.svgHeight=T.height}(v),v.rotation=g.rotation,v.scaleX=v.scaleY=i?1:1/n,c.set(t,v),t.dirty=!1,v}function p(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}},function(t,e,n){"use strict";n.r(e),n.d(e,"createGridClipPath",(function(){return u})),n.d(e,"createPolarClipPath",(function(){return l})),n.d(e,"createClipPath",(function(){return c}));var r=n(79),i=n(23),o=n(190),a=n(6),s=n(0);function u(t,e,n,o,a){var u=t.getArea(),l=u.x,c=u.y,h=u.width,f=u.height,d=n.get(["lineStyle","width"])||2;l-=d/2,c-=d/2,h+=d,f+=d,l=Math.floor(l),h=Math.round(h);var p=new r.default({shape:{x:l,y:c,width:h,height:f}});if(e){var g=t.getBaseAxis(),v=g.isHorizontal(),m=g.inverse;v?(m&&(p.shape.x+=h),p.shape.width=0):(m||(p.shape.y+=f),p.shape.height=0);var y=Object(s.isFunction)(a)?function(t){a(t,p)}:null;i.initProps(p,{shape:{width:h,height:f,x:l,y:c}},n,null,o,y)}return p}function l(t,e,n){var r=t.getArea(),s=Object(a.round)(r.r0,1),u=Object(a.round)(r.r,1),l=new o.default({shape:{cx:Object(a.round)(t.cx,1),cy:Object(a.round)(t.cy,1),r0:s,r:u,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});e&&("angle"===t.getBaseAxis().dim?l.shape.endAngle=r.startAngle:l.shape.r=s,i.initProps(l,{shape:{endAngle:r.endAngle,r:u}},n));return l}function c(t,e,n,r,i){return t?"polar"===t.type?l(t,e,n):"cartesian2d"===t.type?u(t,e,n,r,i):null:null}},function(t,e,n){"use strict";n.r(e),n.d(e,"registerLocale",(function(){return s})),n.d(e,"getLocale",(function(){return u}));var r=n(1),i=n(3),o=n(667),a={};function s(t,e){a[t]=e}function u(t){return{get:function(e,n){return Object(i.template)(Object(r.get)(a[t],e)||Object(r.get)(a[o.GLOBAL.locale],e)||Object(r.get)(a["en-US"],e)||e,n)}}}},function(t,e,n){"use strict";function r(t,e,n){for(var r;t&&(!e(t)||(r=t,!n));)t=t.__hostTarget||t.parent;return r}n.r(e),n.d(e,"findEventDispatcher",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"createVisualMappings",(function(){return u})),n.d(e,"replaceVisualOption",(function(){return l})),n.d(e,"applyVisual",(function(){return c})),n.d(e,"incrementalApplyVisual",(function(){return h}));var r=n(0),i=n(140),o=n(198),a=r.each;function s(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function u(t,e,n){var o={};return a(e,(function(e){var s,u=o[e]=((s=function(){}).prototype.__hidden=s.prototype,new s);a(t[e],(function(t,o){if(i.default.isValidType(o)){var a={type:o,visual:t};n&&n(a,e),u[o]=new i.default(a),"opacity"===o&&((a=r.clone(a)).type="colorAlpha",u.__hidden.__alphaForOpacity=new i.default(a))}}))})),o}function l(t,e,n){var i;r.each(n,(function(t){e.hasOwnProperty(t)&&s(e[t])&&(i=!0)})),i&&r.each(n,(function(n){e.hasOwnProperty(n)&&s(e[n])?t[n]=r.clone(e[n]):delete t[n]}))}function c(t,e,n,a,s,u){var l,c={};function h(t){return Object(o.getItemVisualFromData)(n,l,t)}function f(t,e){Object(o.setItemVisualFromData)(n,l,t,e)}function d(t,r){l=null==u?t:r;var i=n.getRawDataItem(l);if(!i||!1!==i.visualMap)for(var o=a.call(s,t),d=e[o],p=c[o],g=0,v=p.length;g<v;g++){var m=p[g];d[m]&&d[m].applyVisual(t,h,f)}}r.each(t,(function(t){var n=i.default.prepareVisualTypes(e[t]);c[t]=n})),null==u?n.each(d):n.each([u],d)}function h(t,e,n,a){var s={};return r.each(t,(function(t){var n=i.default.prepareVisualTypes(e[t]);s[t]=n})),{progress:function(t,r){var i,u;function l(t){return Object(o.getItemVisualFromData)(r,u,t)}function c(t,e){Object(o.setItemVisualFromData)(r,u,t,e)}null!=a&&(i=r.getDimensionIndex(a));for(var h=r.getStore();null!=(u=t.next());){var f=r.getRawDataItem(u);if(!f||!1!==f.visualMap)for(var d=null!=a?h.get(i,u):u,p=n(d),g=e[p],v=s[p],m=0,y=v.length;m<y;m++){var b=v[m];g[b]&&g[b].applyVisual(d,l,c)}}}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"CONVERSION_TAG_NAME",(function(){return a})),n.d(e,"transformData",(function(){return s})),n.d(e,"conversionTagComponent",(function(){return u}));var r=n(2),i=n(1),o=n(81),a="CONVERSION_TAG_NAME";function s(t,e,n){var r=n.yField,a=n.maxSize,s=n.minSize,u=Object(i.get)(Object(i.maxBy)(e,r),[r]),l=Object(i.isNumber)(a)?a:1,c=Object(i.isNumber)(s)?s:0;return Object(i.map)(t,(function(e,n){var a=(e[r]||0)/u;return e[o.FUNNEL_PERCENT]=a,e[o.FUNNEL_MAPPING_VALUE]=(l-c)*a+c,e[o.FUNNEL_CONVERSATION]=[Object(i.get)(t,[n-1,r]),e[r]],e}))}function u(t){return function(e){var n=e.chart,s=e.options,u=s.conversionTag,l=s.filteredData||n.getOptions().data;if(u){var c=u.formatter;l.forEach((function(e,s){if(!(s<=0||Number.isNaN(e[o.FUNNEL_MAPPING_VALUE]))){var h=t(e,s,l,{top:!0,name:a,text:{content:Object(i.isFunction)(c)?c(e,l):c,offsetX:u.offsetX,offsetY:u.offsetY,position:"end",autoRotate:!1,style:Object(r.__assign)({textAlign:"start",textBaseline:"middle"},u.style)}});n.annotation().line(h)}}))}return e}}},function(t,e,n){"use strict";n.r(e),n.d(e,"directionToPosition",(function(){return i})),n.d(e,"getTranslateDirection",(function(){return s}));var r=n(7);function i(t,e,n){return n===r.DIRECTION.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===r.DIRECTION.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===r.DIRECTION.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===r.DIRECTION.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===r.DIRECTION.TOP_LEFT||n===r.DIRECTION.LEFT_TOP?[t.tl.x,t.tl.y]:n===r.DIRECTION.TOP_RIGHT||n===r.DIRECTION.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===r.DIRECTION.BOTTOM_LEFT||n===r.DIRECTION.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===r.DIRECTION.BOTTOM_RIGHT||n===r.DIRECTION.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function o(t){return t===r.DIRECTION.LEFT?r.DIRECTION.RIGHT:t===r.DIRECTION.RIGHT?r.DIRECTION.LEFT:t}function a(t){return t===r.DIRECTION.TOP?r.DIRECTION.BOTTOM:t===r.DIRECTION.BOTTOM?r.DIRECTION.TOP:t}function s(t,e){var n=t;return n=function(t,e){var n=t;return e.isReflect("x")&&(n=o(n)),e.isReflect("y")&&(n=a(n)),n}(n=function(t,e){var n=e.matrix[0],r=e.matrix[4],i=t;return n<0&&(i=o(i)),r<0&&(i=a(i)),i}(n=function(t,e){if(e.isTransposed)switch(t){case r.DIRECTION.BOTTOM:return r.DIRECTION.LEFT;case r.DIRECTION.LEFT:return r.DIRECTION.BOTTOM;case r.DIRECTION.RIGHT:return r.DIRECTION.TOP;case r.DIRECTION.TOP:return r.DIRECTION.RIGHT}return t}(n,e),e),e)}},function(t,e,n){"use strict";function r(t,e,n,r,i,o){if(o>e&&o>r||o<e&&o<r)return 0;if(r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;1!==a&&0!==a||(s=r<e?.5:-.5);var u=a*(n-t)+t;return u===i?1/0:u>i?s:0}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"CONTAINER_CLASS",(function(){return r})),n.d(e,"CROSSHAIR_LINE",(function(){return i})),n.d(e,"CROSSHAIR_TEXT",(function(){return o}));var r="g2-crosshair",i=r+"-line",o=r+"-text"},function(t,e,n){"use strict";var r,i;n.r(e),n.d(e,"AxisType",(function(){return r})),n.d(e,"DualAxesGeometry",(function(){return i})),function(t){t.Left="Left",t.Right="Right"}(r||(r={})),function(t){t.Line="line",t.Column="column"}(i||(i={}))},function(t,e,n){"use strict";n.r(e),n.d(e,"findInteraction",(function(){return s})),n.d(e,"enableInteraction",(function(){return u})),n.d(e,"enableDrillInteraction",(function(){return l})),n.d(e,"resetDrillDown",(function(){return c})),n.d(e,"transformData",(function(){return h}));var r=n(2),i=n(1),o=n(389),a=n(769);function s(t,e){if(Object(i.isArray)(t))return t.find((function(t){return t.type===e}))}function u(t,e){var n=s(t,e);return n&&!1!==n.enable}function l(t){var e=t.interactions,n=t.drilldown;return Object(i.get)(n,"enabled")||u(e,"treemap-drill-down")}function c(t){var e=t.interactions["drill-down"];e&&e.context.actions.find((function(t){return"drill-down-action"===t.name})).reset()}function h(t){var e=t.data,n=t.colorField,s=t.enableDrillDown,u=t.hierarchyConfig,l=Object(a.treemap)(e,Object(r.__assign)(Object(r.__assign)({},u),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),c=[];return l.forEach((function(t){if(0===t.depth)return null;if(s&&1!==t.depth)return null;if(!s&&t.children)return null;var a=t.ancestors().map((function(t){return{data:t.data,height:t.height,value:t.value}})),l=s&&Object(i.isArray)(e.path)?a.concat(e.path.slice(1)):a,h=Object.assign({},t.data,Object(r.__assign)({x:t.x,y:t.y,depth:t.depth,value:t.value,path:l},t));if(!t.data[n]&&t.parent){var f=t.ancestors().find((function(t){return t.data[n]}));h[n]=null==f?void 0:f.data[n]}else h[n]=t.data[n];h[o.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:u,colorField:n,enableDrillDown:s},c.push(h)})),c}},function(t,e,n){"use strict";n.r(e),n.d(e,"X_FIELD",(function(){return i})),n.d(e,"Y_FIELD",(function(){return o})),n.d(e,"NODE_COLOR_FIELD",(function(){return a})),n.d(e,"EDGE_COLOR_FIELD",(function(){return s})),n.d(e,"DEFAULT_OPTIONS",(function(){return u}));var r=n(1),i="x",o="y",a="name",s="source",u={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){return{offsetX:(t[0]+t[1])/2>.5?-4:4,content:e}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(t){return!Object(r.get)(t,[0,"data","isNode"])},formatter:function(t){return{name:t.source+" -> "+t.target,value:t.value}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05}},function(t,e,n){"use strict";n.r(e),n.d(e,"createMat4",(function(){return i})),n.d(e,"transformVector",(function(){return o})),n.d(e,"mod",(function(){return a})),n.d(e,"lerp",(function(){return s}));var r=n(173);function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t,e){var n=r.transformMat4([],e,t);return r.scale(n,n,1/n[3]),n}function a(t,e){var n=t%e;return n<0?e+n:n}function s(t,e,n){return n*e+(1-n)*t}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";e.__esModule=!0,e.isEmpty=e.isEqual=e.arrayEquals=e.looseEqual=e.capitalize=e.kebabCase=e.autoprefixer=e.isFirefox=e.isEdge=e.isIE=e.coerceTruthyValueToArray=e.arrayFind=e.arrayFindIndex=e.escapeRegexpString=e.valueEquals=e.generateId=e.getValueByPath=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.noop=function(){},e.hasOwn=function(t,e){return u.call(t,e)},e.toObject=function(t){for(var e={},n=0;n<t.length;n++)t[n]&&l(e,t[n]);return e},e.getPropByPath=function(t,e,n){for(var r=t,i=(e=(e=e.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),o=0,a=i.length;o<a-1&&(r||n);++o){var s=i[o];if(!(s in r)){if(n)throw new Error("please transfer a valid prop path to form item!");break}r=r[s]}return{o:r,k:i[o],v:r?r[i[o]]:null}},e.rafThrottle=function(t){var e=!1;return function(){for(var n=this,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];e||(e=!0,window.requestAnimationFrame((function(r){t.apply(n,i),e=!1})))}},e.objToArray=function(t){if(Array.isArray(t))return t;return d(t)?[]:[t]};var i,o=n(216),a=(i=o)&&i.__esModule?i:{default:i},s=n(960);var u=Object.prototype.hasOwnProperty;function l(t,e){for(var n in e)t[n]=e[n];return t}e.getValueByPath=function(t,e){for(var n=(e=e||"").split("."),r=t,i=null,o=0,a=n.length;o<a;o++){var s=n[o];if(!r)break;if(o===a-1){i=r[s];break}r=r[s]}return i};e.generateId=function(){return Math.floor(1e4*Math.random())},e.valueEquals=function(t,e){if(t===e)return!0;if(!(t instanceof Array))return!1;if(!(e instanceof Array))return!1;if(t.length!==e.length)return!1;for(var n=0;n!==t.length;++n)if(t[n]!==e[n])return!1;return!0},e.escapeRegexpString=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(t).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var c=e.arrayFindIndex=function(t,e){for(var n=0;n!==t.length;++n)if(e(t[n]))return n;return-1},h=(e.arrayFind=function(t,e){var n=c(t,e);return-1!==n?t[n]:void 0},e.coerceTruthyValueToArray=function(t){return Array.isArray(t)?t:t?[t]:[]},e.isIE=function(){return!a.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},e.isEdge=function(){return!a.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},e.isFirefox=function(){return!a.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},e.autoprefixer=function(t){if("object"!==(void 0===t?"undefined":r(t)))return t;var e=["ms-","webkit-"];return["transform","transition","animation"].forEach((function(n){var r=t[n];n&&r&&e.forEach((function(e){t[e+n]=r}))})),t},e.kebabCase=function(t){var e=/([^-])([A-Z])/g;return t.replace(e,"$1-$2").replace(e,"$1-$2").toLowerCase()},e.capitalize=function(t){return(0,s.isString)(t)?t.charAt(0).toUpperCase()+t.slice(1):t},e.looseEqual=function(t,e){var n=(0,s.isObject)(t),r=(0,s.isObject)(e);return n&&r?JSON.stringify(t)===JSON.stringify(e):!n&&!r&&String(t)===String(e)}),f=e.arrayEquals=function(t,e){if(e=e||[],(t=t||[]).length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!h(t[n],e[n]))return!1;return!0},d=(e.isEqual=function(t,e){return Array.isArray(t)&&Array.isArray(e)?f(t,e):h(t,e)},e.isEmpty=function(t){if(null==t)return!0;if("boolean"==typeof t)return!1;if("number"==typeof t)return!t;if(t instanceof Error)return""===t.message;switch(Object.prototype.toString.call(t)){case"[object String]":case"[object Array]":return!t.length;case"[object File]":case"[object Map]":case"[object Set]":return!t.size;case"[object Object]":return!Object.keys(t).length}return!1})},function(t,e,n){"use strict";n.r(e),n.d(e,"getInteraction",(function(){return u})),n.d(e,"registerInteraction",(function(){return l})),n.d(e,"createInteraction",(function(){return c}));var r=n(1),i=n(1596),o=n(662);n.d(e,"Interaction",(function(){return o.default}));var a=n(314);n.d(e,"Action",(function(){return a.Action})),n.d(e,"registerAction",(function(){return a.registerAction})),n.d(e,"getActionClass",(function(){return a.getActionClass}));var s={};function u(t){return s[Object(r.lowerCase)(t)]}function l(t,e){s[Object(r.lowerCase)(t)]=e}function c(t,e,n){var o=u(t);if(!o)return null;if(Object(r.isPlainObject)(o)){var a=Object(r.mix)(Object(r.clone)(o),n);return new i.default(e,a)}return new o(e,n)}},function(t,e,n){"use strict";n.r(e);var r=n(313);n.d(e,"Scale",(function(){return r.default}));var i=n(490);n.d(e,"Category",(function(){return i.default}));var o=n(867);n.d(e,"TimeCat",(function(){return o.default}));var a=n(561);n.d(e,"Linear",(function(){return a.default}));var s=n(868);n.d(e,"Log",(function(){return s.default}));var u=n(869);n.d(e,"Pow",(function(){return u.default}));var l=n(870);n.d(e,"Time",(function(){return l.default}));var c=n(562);n.d(e,"Quantize",(function(){return c.default}));var h=n(871);n.d(e,"Quantile",(function(){return h.default}));var f=n(256);n.d(e,"getScale",(function(){return f.getScale})),n.d(e,"registerScale",(function(){return f.registerScale}));var d=n(872);n.d(e,"Identity",(function(){return d.default}));var p=n(845);n.d(e,"getTickMethod",(function(){return p.getTickMethod})),n.d(e,"registerTickMethod",(function(){return p.registerTickMethod})),Object(f.registerScale)("cat",i.default),Object(f.registerScale)("category",i.default),Object(f.registerScale)("identity",d.default),Object(f.registerScale)("linear",a.default),Object(f.registerScale)("log",s.default),Object(f.registerScale)("pow",u.default),Object(f.registerScale)("time",l.default),Object(f.registerScale)("timeCat",o.default),Object(f.registerScale)("quantize",c.default),Object(f.registerScale)("quantile",h.default)},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(213),o=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){Object(r.assign)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Object(r.map)(this.ticks,(function(e,n){return Object(r.isObject)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,i=n?n(t,e):t;return Object(r.isNil)(i)||!Object(r.isFunction)(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Object(r.assign)(this,this.__cfg__),this.setDomain(),Object(r.isEmpty)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if(Object(r.isString)(t)){var n=Object(i.getTickMethod)(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Object(r.isFunction)(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,n){return Object(r.isNumber)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}();e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(95);n.d(e,"Action",(function(){return r.default}));var i=n(418);n.d(e,"createAction",(function(){return i.createAction})),n.d(e,"registerAction",(function(){return i.registerAction})),n.d(e,"getActionClass",(function(){return i.getActionClass}))},function(t,e,n){"use strict";n.r(e),e.default=function(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,l=t.value&&(r-e)/t.value;++s<u;)(o=a[s]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*l}},function(t,e,n){"use strict";n.r(e),n.d(e,"Entry",(function(){return r})),n.d(e,"LinkedList",(function(){return i}));var r=function(t){this.value=t},i=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new i,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,o=null;if(null==i[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var u=n.head;n.remove(u),delete i[u.key],o=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(40),i=n(23),o=n(12),a=n(357),s=n(0),u=n(27);function l(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function c(t){return null==t||Object(s.isObject)(t)||(t={isIgnore:t}),t||{}}function h(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Object(u.getLabelStatesModels)(e),cursorStyle:e.get("cursor")}}var f=function(){function t(t){this.group=new r.default,this._SymbolCtor=t||a.default}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=c(e);var n=this.group,r=t.hostModel,o=this._data,a=this._SymbolCtor,s=e.disableAnimation,u=h(t),f={disableAnimation:s},d=e.getSymbolPoint||function(e){return t.getItemLayout(e)};o||n.removeAll(),t.diff(o).add((function(r){var i=d(r);if(l(t,i,r,e)){var o=new a(t,r,u,f);o.setPosition(i),t.setItemGraphicEl(r,o),n.add(o)}})).update((function(c,h){var p=o.getItemGraphicEl(h),g=d(c);if(l(t,g,c,e)){var v=t.getItemVisual(c,"symbol")||"circle",m=p&&p.getSymbolType&&p.getSymbolType();if(!p||m&&m!==v)n.remove(p),(p=new a(t,c,u,f)).setPosition(g);else{p.updateData(t,c,u,f);var y={x:g[0],y:g[1]};s?p.attr(y):i.updateProps(p,y,r)}n.add(p),t.setItemGraphicEl(c,p)}else n.remove(p)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=d,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=h(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=c(n);for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(l(e,o,i,n)){var a=new this._SymbolCtor(e,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){o.traverseElements(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}();e.default=f},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(0),i=n(263),o=n(147),a=n(211);function s(t,e){return{seriesType:t,plan:Object(i.default)(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,s=t.pipelineContext,u=e||s.large;if(i){var l=Object(r.map)(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),c=l.length,h=n.getCalculationInfo("stackResultDimension");Object(o.isDimensionStacked)(n,l[0])&&(l[0]=h),Object(o.isDimensionStacked)(n,l[1])&&(l[1]=h);var f=n.getStore(),d=n.getDimensionIndex(l[0]),p=n.getDimensionIndex(l[1]);return c&&{progress:function(t,e){for(var n=t.end-t.start,r=u&&Object(a.createFloat32Array)(n*c),o=[],s=[],l=t.start,h=0;l<t.end;l++){var g=void 0;if(1===c){var v=f.get(d,l);g=i.dataToPoint(v,null,s)}else o[0]=f.get(d,l),o[1]=f.get(p,l),g=i.dataToPoint(o,null,s);u?(r[h++]=g[0],r[h++]=g[1]):e.setItemLayout(l,g.slice())}u&&e.setLayout("points",r)}}}}}}},function(t,e,n){"use strict";n.r(e);var r=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}();e.default=r},function(t,e,n){"use strict";function r(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var r=t.getData();r.filterSelf((function(t){for(var e=r.getName(t),i=0;i<n.length;i++)if(!n[i].isSelected(e))return!1;return!0}))}}}}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(142),o=n(89),a=n(518),s=n(0),u=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var r=Object(s.bind)(n._mousedownHandler,n),i=Object(s.bind)(n._mousemoveHandler,n),o=Object(s.bind)(n._mouseupHandler,n),a=Object(s.bind)(n._mousewheelHandler,n),u=Object(s.bind)(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=Object(s.defaults)(Object(s.clone)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",r),e.on("mousemove",i),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",u))},n.disable=function(){e.off("mousedown",r),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",u)},n}return Object(r.__extends)(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!o.isMiddleOrRightButtonOnMouseUpDown(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,r=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&h("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!a.isTaken(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,r=this._x,i=this._y,s=e-r,u=n-i;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&o.stop(t.event),c(this,"pan","moveOnMouseMove",t,{dx:s,dy:u,oldX:r,oldY:i,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){o.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=h("zoomOnMouseWheel",t,this._opt),n=h("moveOnMouseWheel",t,this._opt),r=t.wheelDelta,i=Math.abs(r),o=t.offsetX,a=t.offsetY;if(0!==r&&(e||n)){if(e){var s=i>3?1.4:i>1?1.2:1.1;l(this,"zoom","zoomOnMouseWheel",t,{scale:r>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(r);l(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(r>0?1:-1)*(u>3?.4:u>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){a.isTaken(this._zr,"globalPan")||l(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(i.default);function l(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(o.stop(r.event),c(t,e,n,r,i))}function c(t,e,n,r,i){i.isAvailableBehavior=Object(s.bind)(h,null,n,r),t.trigger(e,i)}function h(t,e,n){var r=n[t];return!t||r&&(!Object(s.isString)(r)||e.event[r+"Key"])}e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return l})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return h})),n.d(e,"__createBinding",(function(){return f})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return g})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return m})),n.d(e,"__await",(function(){return y})),n.d(e,"__asyncGenerator",(function(){return b})),n.d(e,"__asyncDelegator",(function(){return _})),n.d(e,"__asyncValues",(function(){return x})),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return O})),n.d(e,"__importDefault",(function(){return S})),n.d(e,"__classPrivateFieldGet",(function(){return C})),n.d(e,"__classPrivateFieldSet",(function(){return E}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function f(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function d(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function p(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t}function m(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(t){return this instanceof y?(this.v=t,this):new y(t)}function b(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function _(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function x(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}function C(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function E(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";function r(t){return"number"==typeof t&&!isNaN(t)}function i(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}n.r(e),n.d(e,"isRealNumber",(function(){return r})),n.d(e,"isBetween",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"Event",(function(){return l}));var r=n(17),i=n.n(r),o=n(16),a=n.n(o),s=n(4),u=n.n(s),l=i()((function t(e,n){a()(this,t),u()(this,"cancelBubble",void 0),u()(this,"cancelable",void 0),u()(this,"target",void 0),u()(this,"currentTarget",void 0),u()(this,"preventDefault",void 0),u()(this,"stopPropagation",void 0),u()(this,"type",void 0),u()(this,"timeStamp",void 0),this.cancelBubble=!1,this.cancelable=!1,this.target=null,this.currentTarget=null,this.preventDefault=function(){},this.stopPropagation=function(){},this.type=e,this.timeStamp=Date.now()}))},function(t,e,n){"use strict";n.r(e),n.d(e,"SimpleMapCoord",(function(){return l}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(4),u=n.n(s),l=function(){function t(e){i()(this,t),u()(this,"size",1e4),this.size=e||1e4}return a()(t,[{key:"setSize",value:function(t){this.size=t}},{key:"getSize",value:function(){return[this.size,this.size]}},{key:"mercatorXfromLng",value:function(t){return(180+t)/360*this.size}},{key:"mercatorYfromLat",value:function(t){return(1-(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360)*this.size}},{key:"lngFromMercatorX",value:function(t){return t/this.size*360-180}},{key:"latFromMercatorY",value:function(t){var e=180-360*(1-t/this.size);return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}},{key:"project",value:function(t){return[this.mercatorXfromLng(t[0]),this.mercatorYfromLat(t[1])]}},{key:"unproject",value:function(t){return[this.lngFromMercatorX(t[0]),this.latFromMercatorY(t[1])]}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return b}));var r,i,o,a=n(47),s=n.n(a),u=n(16),l=n.n(u),c=n(17),h=n.n(c),f=n(4),d=n.n(f),p=n(44),g=n.n(p),v=(n(196),n(76));function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){d()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var b=(r=Object(v.lazyInject)(v.TYPES.IGlobalConfigService),i=function(){function t(e){l()(this,t),s()(this,"configService",o,this),d()(this,"config",void 0),this.config=e}return h()(t,[{key:"setContainer",value:function(t,e,n,r){t.bind(v.TYPES.MapConfig).toConstantValue(y(y({},this.config),{},{id:e,canvas:n,hasBaseMap:r})),t.bind(v.TYPES.IMapService).to(this.getServiceConstructor()).inSingletonScope()}},{key:"getServiceConstructor",value:function(){throw new Error("Method not implemented.")}}]),t}(),o=g()(i.prototype,"configService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i)},function(t,e,n){"use strict";n.r(e),n.d(e,"Event",(function(){return o}));var r=n(20),i=n(19),o=Object(r.default)((function t(e,n){Object(i.default)(this,t),this.cancelBubble=!1,this.cancelable=!1,this.target=null,this.currentTarget=null,this.preventDefault=function(){},this.stopPropagation=function(){},this.type=e,this.timeStamp=Date.now()}))},function(t,e,n){"use strict";n.r(e),n.d(e,"osmLonLat2TileXY",(function(){return o})),n.d(e,"osmTileXY2LonLat",(function(){return a})),n.d(e,"tileToBounds",(function(){return s})),n.d(e,"getTileIndices",(function(){return u})),n.d(e,"getTileWarpXY",(function(){return l}));var r=n(74),i=n(407);function o(t,e,n){return[Math.floor((t+180)/360*Math.pow(2,n)),Math.floor((1-Math.log(Math.tan(e*Math.PI/180)+1/Math.cos(e*Math.PI/180))/Math.PI)/2*Math.pow(2,n))]}function a(t,e,n){var r=t/Math.pow(2,n)*360-180,i=Math.PI-2*Math.PI*e/Math.pow(2,n);return[r,180/Math.PI*Math.atan(.5*(Math.exp(i)-Math.exp(-i)))]}var s=function(t,e,n){var i=a(t,e,n),o=Object(r.default)(i,2),s=o[0],u=o[1],l=a(t+1,e+1,n),c=Object(r.default)(l,2),h=c[0];return[s,c[1],h,u]};function u(t){var e=t.zoom,n=t.latLonBounds,a=t.maxZoom,s=void 0===a?1/0:a,u=t.minZoom,l=void 0===u?0:u,c=t.zoomOffset,h=void 0===c?0:c,f=t.extent,d=void 0===f?i.DEFAULT_EXTENT:f,p=Math.ceil(e)+h;if(Number.isFinite(l)&&p<l)return[];Number.isFinite(s)&&p>s&&(p=s);for(var g=Object(r.default)(n,4),v=g[0],m=g[1],y=g[2],b=g[3],_=[Math.max(v,d[0]),Math.max(m,d[1]),Math.min(y,d[2]),Math.min(b,d[3])],x=[],w=o(_[0],_[1],p),O=Object(r.default)(w,2),S=O[0],C=O[1],E=o(_[2],_[3],p),T=Object(r.default)(E,2),A=T[0],M=T[1],I=S;I<=A;I++)for(var j=M;j<=C;j++)x.push({x:I,y:j,z:p});var k=(A+S)/2,P=(C+M)/2,L=function(t,e){return Math.abs(t-k)+Math.abs(e-P)};return x.sort((function(t,e){return L(t.x,t.y)-L(e.x,e.y)})),x}var l=function(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=Math.pow(2,n),o=i-1,a=t;return r&&(a<0?a+=i:a>o&&(a%=i)),{warpX:a,warpY:e}}},function(t,e,n){"use strict";n.r(e),n.d(e,"getDecalFromPalette",(function(){return s})),n.d(e,"PaletteMixin",(function(){return a}));var r=n(9),i=Object(r.makeInner)(),o=Object(r.makeInner)(),a=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var o=Object(r.normalizeToArray)(this.get("color",!0)),a=this.get("colorLayer",!0);return u(this,i,o,a,t,e,n)},t.prototype.clearColorPalette=function(){var t,e;(e=i)(t=this).paletteIdx=0,e(t).paletteNameMap={}},t}();function s(t,e,n,i){var a=Object(r.normalizeToArray)(t.get(["aria","decal","decals"]));return u(t,o,a,null,e,n,i)}function u(t,e,n,r,i,o,a){var s=e(o=o||t),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var c=null!=a&&r?function(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}(r,a):n;if((c=c||n)&&c.length){var h=c[u];return i&&(l[i]=h),s.paletteIdx=(u+1)%c.length,h}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return l}));var r=n(5),i=n(712),o=n(33),a=n(574),s=n(1375),u=n(0);function l(t,e,n,l){Object(u.each)(s.AXIS_TYPES,(function(s,h){var f=Object(u.merge)(Object(u.merge)({},i.default[h],!0),l,!0),d=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+h,n}return Object(r.__extends)(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Object(o.fetchLayoutMode)(this),r=n?Object(o.getLayoutParams)(t):{},i=e.getTheme();Object(u.merge)(t,i.get(h+"Axis")),Object(u.merge)(t,this.getDefaultOption()),t.type=c(t),n&&Object(o.mergeLayoutParam)(t,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=a.default.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+h,n.defaultOption=f,n}(n);t.registerComponentModel(d)})),t.registerSubTypeDefaulter(e+"Axis",c)}function c(t){return t.type||(t.data?"category":"value")}},function(t,e,n){"use strict";n.r(e),n.d(e,"getShapeAttrs",(function(){return u})),n.d(e,"getConstraint",(function(){return l}));var r=n(1),i=n(208),o=n(77),a=n(188);function s(t,e,n,i,o){var s=[];if(t.length){for(var u=[],l=[],c=0,h=t.length;c<h;c++){var f=t[c];u.push(f[1]),l.push(f[0])}l=l.reverse(),Object(r.each)([u,l],(function(t,r){var c=[],h=i.parsePoints(t),f=h[0];1===u.length&&1===l.length?c=0===r?[["M",f.x-.5,f.y],["L",f.x+.5,f.y]]:[["L",f.x+.5,f.y],["L",f.x-.5,f.y]]:(e&&h.push({x:f.x,y:f.y}),c=n?Object(a.getSplinePath)(h,!1,o):Object(a.getLinePath)(h,!1),r>0&&(c[0][0]="L")),s=s.concat(c)})),s.push(["Z"])}return s}function u(t,e,n,r,a){for(var u=Object(o.getStyle)(t,e,!e,"lineWidth"),l=t.connectNulls,c=t.isInCircle,h=t.points,f=t.showSinglePoint,d=Object(i.getPathPoints)(h,l,f),p=[],g=0,v=d.length;g<v;g++){var m=d[g];p=p.concat(s(m,c,n,r,a))}return u.path=p,u}function l(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return c})),n.d(e,"axis",(function(){return f})),n.d(e,"legend",(function(){return d})),n.d(e,"adjust",(function(){return g})),n.d(e,"adaptor",(function(){return v}));var r=n(2),i=n(1),o=n(8),a=n(3),s=n(34),u=n(381);function l(t){var e=t.chart,n=t.options,i=n.data,o=n.color,u=n.lineStyle,l=n.lineShape,c=n.point,h=n.area,f=n.seriesField,d=null==c?void 0:c.state,p=null==h?void 0:h.state;e.data(i);var g=Object(a.deepAssign)({},t,{options:{shapeField:f,line:{color:o,style:u,shape:l},point:c&&Object(r.__assign)({color:o,shape:"circle"},c),area:h&&Object(r.__assign)({color:o},h),label:void 0}}),v=Object(a.deepAssign)({},g,{options:{tooltip:!1,state:d}}),m=Object(a.deepAssign)({},g,{options:{tooltip:!1,state:p}});return Object(s.line)(g),Object(s.point)(v),Object(s.area)(m),t}function c(t){var e,n,r=t.options,i=r.xAxis,s=r.yAxis,l=r.xField,c=r.yField,h=r.data;return Object(a.flow)(Object(o.scale)(((e={})[l]=i,e[c]=s,e),((n={})[l]={type:"cat"},n[c]=Object(u.adjustYMetaByZero)(h,c),n)))(t)}function h(t){var e=t.chart,n=t.options.reflect;if(n){var r=n;Object(i.isArray)(r)||(r=[r]);var o=r.map((function(t){return["reflect",t]}));e.coordinate({type:"rect",actions:o})}return t}function f(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function d(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function p(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,s=Object(a.findGeometry)(e,"line");if(i){var u=i.callback,l=Object(r.__rest)(i,["callback"]);s.label({fields:[o],callback:u,cfg:Object(r.__assign)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(a.transformLabel)(l))})}else s.label(!1);return t}function g(t){var e=t.chart;return t.options.isStack&&Object(i.each)(e.geometries,(function(t){t.adjust("stack")})),t}function v(t){return Object(a.flow)(l,c,g,o.theme,h,f,d,o.tooltip,p,o.slider,o.scrollbar,o.interaction,o.animation,Object(o.annotation)(),o.limitInPlot)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return v})),n.d(e,"computeHeight",(function(){return _})),n.d(e,"Node",(function(){return x}));var r=n(1740),i=n(1741),o=n(1743),a=n(1742),s=n(1744),u=n(1745),l=n(1746),c=n(1747),h=n(1748),f=n(1749),d=n(1750),p=n(1751),g=n(1752);function v(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=y)):void 0===e&&(e=m);for(var n,r,i,o,a,s=new x(t),u=[s];n=u.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)u.push(r=i[o]=new x(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(_)}function m(t){return t.children}function y(t){return Array.isArray(t)?t[1]:null}function b(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function _(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function x(t){this.data=t,this.depth=this.height=0,this.parent=null}x.prototype=v.prototype={constructor:x,count:r.default,each:i.default,eachAfter:a.default,eachBefore:o.default,find:s.default,sum:u.default,sort:l.default,path:c.default,ancestors:h.default,descendants:f.default,leaves:d.default,links:p.default,copy:function(){return v(this).eachBefore(b)},[Symbol.iterator]:g.default}},function(t,e,n){"use strict";n.r(e),n.d(e,"LEFT_BUTTON",(function(){return o})),n.d(e,"RIGHT_BUTTON",(function(){return a})),n.d(e,"BUTTONS_FLAGS",(function(){return s})),n.d(e,"buttonStillPressed",(function(){return u}));var r,i=n(52),o=0,a=2,s=(r={},Object(i.default)(r,o,1),Object(i.default)(r,a,2),r);function u(t,e){var n=s[e];return void 0===t.buttons||(t.buttons&n)!==n}},function(t,e,n){"use strict";n.r(e),n.d(e,"findExistImage",(function(){return a})),n.d(e,"createOrUpdateImage",(function(){return s})),n.d(e,"isImageReady",(function(){return l}));var r=n(316),i=n(107),o=new r.default(50);function a(t){if("string"==typeof t){var e=o.get(t);return e&&e.image}return t}function s(t,e,n,r,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var s=o.get(t),c={hostEl:n,cb:r,cbPayload:a};return s?!l(e=s.image)&&s.pending.push(c):((e=i.platformApi.loadImage(t,u,u)).__zrImageSrc=t,o.put(t,e.__cachedImgObj={image:e,pending:[c]})),e}return t}return e}function u(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function l(t){return t&&t.width&&t.height}},function(t,e,n){"use strict";n.r(e),n.d(e,"Region",(function(){return f})),n.d(e,"GeoJSONPolygonGeometry",(function(){return d})),n.d(e,"GeoJSONLineStringGeometry",(function(){return p})),n.d(e,"GeoJSONRegion",(function(){return g})),n.d(e,"GeoSVGRegion",(function(){return v}));var r=n(5),i=n(35),o=n(18),a=n(369),s=n(42),u=n(0),l=[];function c(t,e){for(var n=0;n<t.length;n++)o.applyTransform(t[n],t[n],e)}function h(t,e,n,r){for(var i=0;i<t.length;i++){var a=t[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(o.min(e,e,a),o.max(n,n,a))}}var f=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),d=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},p=function(t){this.type="linestring",this.points=t},g=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return Object(r.__extends)(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,r=0;r<e.length;r++){var i=e[r],o=i.exterior,a=o&&o.length;a>n&&(t=i,n=a)}if(t)return function(t){for(var e=0,n=0,r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s<i;s++){var u=t[s][0],l=t[s][1],c=o*l-u*a;e+=c,n+=(o+u)*c,r+=(a+l)*c,o=u,a=l}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0],o=this.geometries;return Object(u.each)(o,(function(e){"polygon"===e.type?h(e.exterior,n,r,t):Object(u.each)(e.points,(function(e){h(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new i.default(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var s=o.exterior,u=o.interiors;if(a.contain(s,t[0],t[1])){for(var l=0;l<(u?u.length:0);l++)if(a.contain(u[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,r){var o=this.getBoundingRect(),a=o.width/o.height;n?r||(r=n/a):n=a*r;for(var s=new i.default(t,e,n,r),l=o.calculateTransform(s),h=this.geometries,f=0;f<h.length;f++){var d=h[f];"polygon"===d.type?(c(d.exterior,l),Object(u.each)(d.interiors,(function(t){c(t,l)}))):Object(u.each)(d.points,(function(t){c(t,l)}))}(o=this._rect).copy(s),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(f),v=function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return Object(r.__extends)(e,t),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],r=s.identity(l),i=t;i&&!i.isGeoSVGGraphicRoot;)s.mul(r,i.getLocalTransform(),r),i=i.parent;return s.invert(r,r),o.applyTransform(n,n,r),n},e}(f)},function(t,e,n){"use strict";n.r(e),n.d(e,"prepareLayoutList",(function(){return o})),n.d(e,"shiftLayoutOnX",(function(){return s})),n.d(e,"shiftLayoutOnY",(function(){return u})),n.d(e,"hideOverlap",(function(){return l}));var r=n(570),i=n(35);function o(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var o=i.label,a=o.getComputedTransform(),s=o.getBoundingRect(),u=!a||a[1]<1e-5&&a[2]<1e-5,l=o.style.margin||0,c=s.clone();c.applyTransform(a),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var h=u?new r.default(s,a):null;e.push({label:o,labelLine:i.labelLine,rect:c,localRect:s,obb:h,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:u,transform:a})}}return e}function a(t,e,n,r,i,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,u=0,l=!1,c=[],h=0,f=0;f<a;f++){var d=t[f],p=d.rect;(s=p[e]-u)<0&&(p[e]-=s,d.label[e]-=s,l=!0);var g=Math.max(-s,0);c.push(g),h+=g,u=p[e]+p[n]}h>0&&o&&w(-h/a,0,a);var v,m,y=t[0],b=t[a-1];return _(),v<0&&O(-v,.8),m<0&&O(m,.8),_(),x(v,m,1),x(m,v,-1),_(),v<0&&S(-v),m<0&&S(m),l}function _(){v=y.rect[e]-r,m=i-b.rect[e]-b.rect[n]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){w(r*n,0,a);var i=r+t;i<0&&O(-i*n,1)}else O(-t*n,1)}}function w(n,r,i){0!==n&&(l=!0);for(var o=r;o<i;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function O(r,i){for(var o=[],s=0,u=1;u<a;u++){var l=t[u-1].rect,c=Math.max(t[u].rect[e]-l[e]-l[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(r)/s,i);if(r>0)for(u=0;u<a-1;u++){w(o[u]*h,0,u+1)}else for(u=a-1;u>0;u--){w(-(o[u-1]*h),u,a)}}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r<a-1;r++)if(e>0?w(n,0,r+1):w(-n,a-r-1,a),(t-=n)<=0)return}}function s(t,e,n,r){return a(t,"x","width",e,n,r)}function u(t,e,n,r){return a(t,"y","height",e,n,r)}function l(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new i.default(0,0,0,0);function o(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var a=0;a<t.length;a++){var s=t[a],u=s.axisAligned,l=s.localRect,c=s.transform,h=s.label,f=s.labelLine;n.copy(s.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=s.obb,p=!1,g=0;g<e.length;g++){var v=e[g];if(n.intersect(v.rect)){if(u&&v.axisAligned){p=!0;break}if(v.obb||(v.obb=new r.default(v.localRect,v.transform)),d||(d=new r.default(l,c)),d.intersect(v.obb)){p=!0;break}}}p?(o(h),f&&o(f)):(h.attr("ignore",s.defaultAttr.ignore),f&&f.attr("ignore",s.defaultAttr.labelGuideIgnore),e.push(s))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"layout",(function(){return o})),n.d(e,"isCartesian2DSeries",(function(){return a})),n.d(e,"findAxisModels",(function(){return s}));var r=n(0),i=n(9);function o(t,e,n){n=n||{};var i=t.coordinateSystem,o=e.axis,a={},s=o.getAxesOnZeroOf()[0],u=o.position,l=s?"onZero":u,c=o.dim,h=i.getRect(),f=[h.x,h.x+h.width,h.y,h.y+h.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,g="x"===c?[f[2]-p,f[3]+p]:[f[0]-p,f[1]+p];if(s){var v=s.toGlobalCoord(s.dataToCoord(0));g[d.onZero]=Math.max(Math.min(v,g[1]),g[0])}a.position=["y"===c?g[d[l]]:f[0],"x"===c?g[d[l]]:f[3]],a.rotation=Math.PI/2*("x"===c?0:1);a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[u],a.labelOffset=s?g[d[u]]-g[d.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),r.retrieve(n.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=e.get(["axisLabel","rotate"]);return a.labelRotate="top"===l?-m:m,a.z2=1,a}function a(t){return"cartesian2d"===t.get("coordinateSystem")}function s(t){var e={xAxisModel:null,yAxisModel:null};return r.each(e,(function(n,r){var o=r.replace(/Model$/,""),a=t.getReferringComponents(o,i.SINGLE_REFERRING).models[0];e[r]=a})),e}},function(t,e,n){"use strict";n.r(e),n.d(e,"catmullRomToBezier",(function(){return u})),n.d(e,"fillPath",(function(){return I})),n.d(e,"fillPathByDiff",(function(){return P})),n.d(e,"formatPath",(function(){return D})),n.d(e,"intersection",(function(){return T})),n.d(e,"parsePathArray",(function(){return v})),n.d(e,"parsePathString",(function(){return s})),n.d(e,"pathToAbsolute",(function(){return c})),n.d(e,"pathToCurve",(function(){return p})),n.d(e,"rectPath",(function(){return w}));var r=n(1),i="\t\n\v\f\r    \u2028\u2029",o=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if(Object(r.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(o,(function(r,i,o){var s=[],u=i.toLowerCase();if(o.replace(a,(function(t,e){e&&s.push(+e)})),"m"===u&&s.length>2&&(n.push([i].concat(s.splice(0,2))),u="l",i="m"===i?"l":"L"),"o"===u&&1===s.length&&n.push([i,s[0]]),"r"===u)n.push([i].concat(s));else for(;s.length>=e[u]&&(n.push([i].concat(s.splice(0,e[u]))),e[u]););return t})),n},u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},l=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),u=t+n*Math.cos(-i*a);o=[["M",s,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*a)]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},c=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,c=0,h=0;"M"===t[0][0]&&(a=i=+t[0][1],c=o=+t[0][2],h++,r[0]=["M",i,o]);for(var f=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),d=void 0,p=void 0,g=h,v=t.length;g<v;g++){if(r.push(d=[]),(e=(p=t[g])[0])!==e.toUpperCase())switch(d[0]=e.toUpperCase(),d[0]){case"A":d[1]=p[1],d[2]=p[2],d[3]=p[3],d[4]=p[4],d[5]=p[5],d[6]=+p[6]+i,d[7]=+p[7]+o;break;case"V":d[1]=+p[1]+o;break;case"H":d[1]=+p[1]+i;break;case"R":for(var m=2,y=(n=[i,o].concat(p.slice(1))).length;m<y;m++)n[m]=+n[m]+i,n[++m]=+n[m]+o;r.pop(),r=r.concat(u(n,f));break;case"O":r.pop(),(n=l(i,o,p[1],p[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(l(i,o,p[1],p[2],p[3])),d=["U"].concat(r[r.length-1].slice(-2));break;case"M":a=+p[1]+i,c=+p[2]+o;break;default:for(m=1,y=p.length;m<y;m++)d[m]=+p[m]+(m%2?i:o)}else if("R"===e)n=[i,o].concat(p.slice(1)),r.pop(),r=r.concat(u(n,f)),d=["R"].concat(p.slice(-2));else if("O"===e)r.pop(),(n=l(i,o,p[1],p[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(l(i,o,p[1],p[2],p[3])),d=["U"].concat(r[r.length-1].slice(-2));else for(var b=0,_=p.length;b<_;b++)d[b]=p[b];if("O"!==(e=e.toUpperCase()))switch(d[0]){case"Z":i=+a,o=+c;break;case"H":i=d[1];break;case"V":o=d[1];break;case"M":a=d[d.length-2],c=d[d.length-1];break;default:i=d[d.length-2],o=d[d.length-1]}}return r},h=function(t,e,n,r){return[t,e,n,r,n,r]},f=function(t,e,n,r,i,o){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]},d=function(t,e,n,r,i,o,a,s,u,l){n===r&&(n+=1);var c,h,f,p,g,v=120*Math.PI/180,m=Math.PI/180*(+i||0),y=[],b=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(l)h=l[0],f=l[1],p=l[2],g=l[3];else{t=(c=b(t,e,-m)).x,e=c.y,s=(c=b(s,u,-m)).x,u=c.y,t===s&&e===u&&(s+=1,u+=1);var _=(t-s)/2,x=(e-u)/2,w=_*_/(n*n)+x*x/(r*r);w>1&&(n*=w=Math.sqrt(w),r*=w);var O=n*n,S=r*r,C=(o===a?-1:1)*Math.sqrt(Math.abs((O*S-O*x*x-S*_*_)/(O*x*x+S*_*_)));p=C*n*x/r+(t+s)/2,g=C*-r*_/n+(e+u)/2,h=Math.asin(((e-g)/r).toFixed(9)),f=Math.asin(((u-g)/r).toFixed(9)),h=t<p?Math.PI-h:h,f=s<p?Math.PI-f:f,h<0&&(h=2*Math.PI+h),f<0&&(f=2*Math.PI+f),a&&h>f&&(h-=2*Math.PI),!a&&f>h&&(f-=2*Math.PI)}var E=f-h;if(Math.abs(E)>v){var T=f,A=s,M=u;f=h+v*(a&&f>h?1:-1),s=p+n*Math.cos(f),u=g+r*Math.sin(f),y=d(s,u,n,r,i,0,a,A,M,[f,T,p,g])}E=f-h;var I=Math.cos(h),j=Math.sin(h),k=Math.cos(f),P=Math.sin(f),L=Math.tan(E/4),R=4/3*n*L,D=4/3*r*L,N=[t,e],B=[t+R*j,e-D*I],F=[s+R*P,u-D*k],z=[s,u];if(B[0]=2*N[0]-B[0],B[1]=2*N[1]-B[1],l)return[B,F,z].concat(y);for(var V=[],U=0,G=(y=[B,F,z].concat(y).join().split(",")).length;U<G;U++)V[U]=U%2?b(y[U-1],y[U],m).y:b(y[U],y[U+1],m).x;return V},p=function(t,e){var n,r=c(t),i=e&&c(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],l="",p="",g=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(d.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(f(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(f(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(h(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(h(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(h(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(h(e.x,e.y,e.X,e.Y))}return t},v=function(t,e){if(t[e].length>7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},m=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var y=0;y<n;y++){r[y]&&(l=r[y][0]),"C"!==l&&(s[y]=l,y&&(p=s[y-1])),r[y]=g(r[y],o,p),"A"!==s[y]&&"C"===l&&(s[y]="C"),v(r,y),i&&(i[y]&&(l=i[y][0]),"C"!==l&&(u[y]=l,y&&(p=u[y-1])),i[y]=g(i[y],a,p),"A"!==u[y]&&"C"===l&&(u[y]="C"),v(i,y)),m(r,i,o,a,y),m(i,r,a,o,y);var b=r[y],_=i&&i[y],x=b.length,w=i&&_.length;o.x=b[x-2],o.y=b[x-1],o.bx=parseFloat(b[x-4])||o.x,o.by=parseFloat(b[x-3])||o.y,a.bx=i&&(parseFloat(_[w-4])||a.x),a.by=i&&(parseFloat(_[w-3])||a.y),a.x=i&&_[w-2],a.y=i&&_[w-1]}return i?[r,i]:r},g=/,?([a-z]),?/gi,v=function(t){return t.join(",").replace(g,"$1")},m=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},y=function(t,e,n,r,i,o,a,s,u){null===u&&(u=1);for(var l=(u=u>1?1:u<0?0:u)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,d=0;d<12;d++){var p=l*c[d]+l,g=m(p,t,n,i,a),v=m(p,e,r,o,s),y=g*g+v*v;f+=h[d]*Math.sqrt(y)}return l*f},b=function(t,e,n,r,i,o,a,s){for(var u,l,c,h,f=[],d=[[],[]],p=0;p<2;++p)if(0===p?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,c=3*n-3*t):(l=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,c=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(h=-c/l)>0&&h<1&&f.push(h)}else{var g=l*l-4*c*u,v=Math.sqrt(g);if(!(g<0)){var m=(-l+v)/(2*u);m>0&&m<1&&f.push(m);var y=(-l-v)/(2*u);y>0&&y<1&&f.push(y)}}for(var b,_=f.length,x=_;_--;)b=1-(h=f[_]),d[0][_]=b*b*b*t+3*b*b*h*n+3*b*h*h*i+h*h*h*a,d[1][_]=b*b*b*e+3*b*b*h*r+3*b*h*h*o+h*h*h*s;return d[0][x]=t,d[1][x]=e,d[0][x+1]=a,d[1][x+1]=s,d[0].length=d[1].length=x+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},_=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,s)||Math.min(e,r)>Math.max(o,s))){var u=(t-n)*(o-s)-(e-r)*(i-a);if(u){var l=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/u,c=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/u,h=+l.toFixed(2),f=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,a).toFixed(2)||h>+Math.max(i,a).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(o,s).toFixed(2)||f>+Math.max(o,s).toFixed(2)))return{x:l,y:c}}}},x=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},w=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=v,o},O=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:w(t,e,n,r),vb:[t,e,n,r].join(" ")}},S=function(t,e,n,i,o,a,s,u){Object(r.isArray)(t)||(t=[t,e,n,i,o,a,s,u]);var l=b.apply(null,t);return O(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},C=function(t,e,n,r,i,o,a,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),f=u*u,d=f*u,p=t+2*u*(n-t)+f*(i-2*n+t),g=e+2*u*(r-e)+f*(o-2*r+e),v=n+2*u*(i-n)+f*(a-2*i+n),m=r+2*u*(o-r)+f*(s-2*o+r);return{x:c*t+3*h*u*n+3*l*u*u*i+d*a,y:c*e+3*h*u*r+3*l*u*u*o+d*s,m:{x:p,y:g},n:{x:v,y:m},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*a,y:l*o+u*s},alpha:90-180*Math.atan2(p-v,g-m)/Math.PI}},E=function(t,e,n){if(!function(t,e){return t=O(t),e=O(e),x(e,t.x,t.y)||x(e,t.x2,t.y)||x(e,t.x,t.y2)||x(e,t.x2,t.y2)||x(t,e.x,e.y)||x(t,e.x2,e.y)||x(t,e.x,e.y2)||x(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(S(t),S(e)))return n?0:[];for(var r=~~(y.apply(0,t)/8),i=~~(y.apply(0,e)/8),o=[],a=[],s={},u=n?0:[],l=0;l<r+1;l++){var c=C.apply(0,t.concat(l/r));o.push({x:c.x,y:c.y,t:l/r})}for(l=0;l<i+1;l++){c=C.apply(0,e.concat(l/i));a.push({x:c.x,y:c.y,t:l/i})}for(l=0;l<r;l++)for(var h=0;h<i;h++){var f=o[l],d=o[l+1],p=a[h],g=a[h+1],v=Math.abs(d.x-f.x)<.001?"y":"x",m=Math.abs(g.x-p.x)<.001?"y":"x",b=_(f.x,f.y,d.x,d.y,p.x,p.y,g.x,g.y);if(b){if(s[b.x.toFixed(4)]===b.y.toFixed(4))continue;s[b.x.toFixed(4)]=b.y.toFixed(4);var w=f.t+Math.abs((b[v]-f[v])/(d[v]-f[v]))*(d.t-f.t),E=p.t+Math.abs((b[m]-p[m])/(g[m]-p[m]))*(g.t-p.t);w>=0&&w<=1&&E>=0&&E<=1&&(n?u+=1:u.push({x:b.x,y:b.y,t1:w,t2:E}))}}return u},T=function(t,e){return function(t,e,n){var r,i,o,a,s,u,l,c,h,f;t=p(t),e=p(e);for(var d=n?0:[],g=0,v=t.length;g<v;g++){var m=t[g];if("M"===m[0])r=s=m[1],i=u=m[2];else{"C"===m[0]?(h=[r,i].concat(m.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,u,s,u],r=s,i=u);for(var y=0,b=e.length;y<b;y++){var _=e[y];if("M"===_[0])o=l=_[1],a=c=_[2];else{"C"===_[0]?(f=[o,a].concat(_.slice(1)),o=f[6],a=f[7]):(f=[o,a,o,a,l,c,l,c],o=l,a=c);var x=E(h,f,n);if(n)d+=x;else{for(var w=0,O=x.length;w<O;w++)x[w].segment1=g,x[w].segment2=y,x[w].bez1=h,x[w].bez2=f;d=d.concat(x)}}}}}return d}(t,e)};function A(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var o=[],a=0;a<e.length-1;a++)0===a&&n.push(e[0]),a===e.length-2&&r.push(e[a+1]),o[a]=[(1-i)*e[a][0]+i*e[a+1][0],(1-i)*e[a][1]+i*e[a+1][1]];t(o,i)}}(t,e),{left:n,right:r.reverse()}}var M=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,a=1/n,s=0;s<n-1;s++){var u=A(o,a/(1-a*s));i.push(u.left),o=u.right}return i.push(o),i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},I=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(a=0;a<r;a++){var s=Math.floor(i*a);o[s]=(o[s]||0)+1}var u=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(M(t[i],t[i+1],r))}),[]);return u.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||u.push("Z"),u},j=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Object(r.each)(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function k(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var P=function(t,e){var n=function(t,e){var n,r,i=t.length,o=e.length,a=0;if(0===i||0===o)return null;for(var s=[],u=0;u<=i;u++)s[u]=[],s[u][0]={min:u};for(var l=0;l<=o;l++)s[0][l]={min:l};for(u=1;u<=i;u++){n=t[u-1];for(l=1;l<=o;l++){r=e[l-1],a=j(n,r)?0:1;var c=s[u-1][l].min+1,h=s[u][l-1].min+1,f=s[u-1][l-1].min+a;s[u][l]=k(c,h,f)}}return s}(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i].min!==r){for(var u=1;u<=r;u++){var l=n[u][u].min;s=u;for(var c=a;c<=i;c++)n[u][c].min<l&&(l=n[u][c].min,s=c);a=s,n[u][a].type&&o.push({index:u-1,type:n[u][a].type})}for(u=o.length-1;u>=0;u--)a=o[u].index,"add"===o[u].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var h=i-(r=t.length);if(r<i)for(u=0;u<h;u++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};function L(t,e,n){for(var r,i=[].concat(t),o=1/(n+1),a=R(e)[0],s=1;s<=n;s++)o*=s,0===(r=Math.floor(t.length*o))?i.unshift([a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]):i.splice(r,0,[a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]);return i}function R(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}var D=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=R(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=L(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=L(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=L(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,u=0;if(a>e+s&&a>r+s||a<e-s&&a<r-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;var l=(u=(e-r)/(t-n))*o-a+(t*r-n*e)/(t-n);return l*l/(u*u+1)<=s/2*s/2}n.r(e),n.d(e,"containStroke",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"normalizeRadian",(function(){return i}));var r=2*Math.PI;function i(t){return(t%=r)<0&&(t+=r),t}},function(t,e,n){"use strict";n.r(e),n.d(e,"shouldTooltipConfine",(function(){return o})),n.d(e,"TRANSFORM_VENDOR",(function(){return s})),n.d(e,"TRANSITION_VENDOR",(function(){return u})),n.d(e,"toCSSVendorPrefix",(function(){return l})),n.d(e,"getComputedStyle",(function(){return c}));var r=n(71),i=n(54);function o(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function a(t){if(i.default.domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}var s=a(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),u=a(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function l(t,e){if(!t)return e;e=Object(r.toCamelCase)(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}function c(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}},function(t,e,n){"use strict";function r(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}n.r(e),n.d(e,"tpmt",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"lengthOfSegment",(function(){return a})),n.d(e,"pointAtSegments",(function(){return s})),n.d(e,"angleAtSegments",(function(){return u})),n.d(e,"distanceAtSegment",(function(){return l}));var r=n(230),i=n(91);function o(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var o=t[r],a=t[r+1],s=Object(i.distance)(o[0],o[1],a[0],a[1]),u={from:o,to:a,length:s};n.push(u),e+=s}return{segments:n,totalLength:e}}function a(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],o=t[n+1];e+=Object(i.distance)(r[0],r[1],o[0],o[1])}return e}function s(t,e){if(e>1||e<0||t.length<2)return null;var n=o(t),i=n.segments,a=n.totalLength;if(0===a)return{x:t[0][0],y:t[0][1]};for(var s=0,u=null,l=0;l<i.length;l++){var c=i[l],h=c.from,f=c.to,d=c.length/a;if(e>=s&&e<=s+d){var p=(e-s)/d;u=r.default.pointAt(h[0],h[1],f[0],f[1],p);break}s+=d}return u}function u(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=o(t),r=n.segments,i=n.totalLength,a=0,s=0,u=0;u<r.length;u++){var l=r[u],c=l.from,h=l.to,f=l.length/i;if(e>=a&&e<=a+f){s=Math.atan2(h[1]-c[1],h[0]-c[0]);break}a+=f}return s}function l(t,e,n){for(var i=1/0,o=0;o<t.length-1;o++){var a=t[o],s=t[o+1],u=r.default.pointDistance(a[0],a[1],s[0],s[1],e,n);u<i&&(i=u)}return i}},function(t,e,n){"use strict";n.r(e),n.d(e,"getLegendLayout",(function(){return h})),n.d(e,"getLegendItems",(function(){return f})),n.d(e,"getCustomLegendItems",(function(){return d})),n.d(e,"getLegendThemeCfg",(function(){return p}));var r=n(2),i=n(1),o=n(7),a=n(584),s=n(86),u=n(272),l=["line","cross","tick","plus","hyphen"];function c(t){var e=t.symbol;Object(i.isString)(e)&&u.MarkerSymbols[e]&&(t.symbol=u.MarkerSymbols[e])}function h(t){return t.startsWith(o.DIRECTION.LEFT)||t.startsWith(o.DIRECTION.RIGHT)?"vertical":"horizontal"}function f(t,e,n,o,u){var h=n.getScale(n.type);if(h.isCategory){var f=h.field,d=e.getAttribute("color"),p=e.getAttribute("shape"),g=t.getTheme().defaultColor,v=e.coordinate.isPolar;return h.getTicks().map((function(n,m){var y,b=n.text,_=n.value,x=b,w=h.invert(_),O=0===t.filterFieldData(f,[(y={},y[f]=w,y)]).length;Object(i.each)(t.views,(function(t){var e;t.filterFieldData(f,[(e={},e[f]=w,e)]).length||(O=!0)}));var S,C,E=Object(a.getMappingValue)(d,w,g),T=Object(a.getMappingValue)(p,w,"point"),A=e.getShapeMarker(T,{color:E,isInPolar:v}),M=u;return Object(i.isFunction)(M)&&(M=M(x,m,Object(r.__assign)({name:x,value:w},Object(i.deepMix)({},o,A)))),function(t,e){var n=t.symbol;if(Object(i.isString)(n)&&-1!==l.indexOf(n)){var r=Object(i.get)(t,"style",{}),o=Object(i.get)(r,"lineWidth",1),a=r.stroke||r.fill||e;t.style=Object(i.deepMix)({},t.style,{lineWidth:o,stroke:a,fill:null})}}(A=Object(i.deepMix)({},o,A,Object(s.omit)(Object(r.__assign)({},M),["style"])),E),M&&M.style&&(A.style=(S=A.style,C=M.style,Object(i.isFunction)(C)?C(S):Object(i.deepMix)({},S,C))),c(A),{id:w,name:x,value:w,marker:A,unchecked:O}}))}return[]}function d(t,e,n){return n.map((function(n,r){var o=e;Object(i.isFunction)(o)&&(o=o(n.name,r,Object(i.deepMix)({},t,n)));var a=Object(i.isFunction)(n.marker)?n.marker(n.name,r,Object(i.deepMix)({},t,n)):n.marker,s=Object(i.deepMix)({},t,o,a);return c(s),n.marker=s,n}))}function p(t,e){var n=Object(i.get)(t,["components","legend"],{});return Object(i.deepMix)({},Object(i.get)(n,["common"],{}),Object(i.deepMix)({},Object(i.get)(n,[e],{})))}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformData",(function(){return i})),n.d(e,"isHorizontal",(function(){return o})),n.d(e,"syncViewPadding",(function(){return a}));var r=n(1);function i(t,e,n,i,o){var a=[];e.forEach((function(e){i.forEach((function(r){var i,o=((i={})[t]=r[t],i[n]=e,i[e]=r[e],i);a.push(o)}))}));var s=Object.values(Object(r.groupBy)(a,n)),u=s[0],l=void 0===u?[]:u,c=s[1],h=void 0===c?[]:c;return o?[l.reverse(),h.reverse()]:[l,h]}function o(t){return"vertical"!==t}function a(t,e,n){var r=e[0],i=e[1],a=r.autoPadding,s=i.autoPadding,u=t.__axisPosition,l=u.layout,c=u.position;if(o(l)&&"top"===c&&(r.autoPadding=n.instance(a.top,0,a.bottom,a.left),i.autoPadding=n.instance(s.top,a.left,s.bottom,0)),o(l)&&"bottom"===c&&(r.autoPadding=n.instance(a.top,a.right/2+5,a.bottom,a.left),i.autoPadding=n.instance(s.top,s.right,s.bottom,a.right/2+5)),!o(l)&&"bottom"===c){var h=a.left>=s.left?a.left:s.left;r.autoPadding=n.instance(a.top,a.right,a.bottom/2+5,h),i.autoPadding=n.instance(a.bottom/2+5,s.right,s.bottom,h)}if(!o(l)&&"top"===c){h=a.left>=s.left?a.left:s.left;r.autoPadding=n.instance(a.top,a.right,0,h),i.autoPadding=n.instance(0,s.right,a.top,h)}}},function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"viewport-mercator-project: assertion failed.")}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"applyMorphAnimation",(function(){return h})),n.d(e,"getPathList",(function(){return f}));var r=n(606),i=n(36),o=n(0),a=n(23),s=n(268);function u(t){return Object(o.isArray)(t[0])}function l(t,e){for(var n=[],r=t.length,i=0;i<r;i++)n.push({one:t[i],many:[]});for(i=0;i<e.length;i++){var o=e[i].length,a=void 0;for(a=0;a<o;a++)n[a%r].many.push(e[i][a])}var s=0;for(i=r-1;i>=0;i--)if(!n[i].many.length){var u=n[s].many;if(u.length<=1){if(!s)return n;s=0}o=u.length;var l=Math.ceil(o/2);n[i].many=u.slice(l,o),n[s].many=u.slice(0,l),s++}return n}var c={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r<t.count;r++){var i=Object(s.clonePath)(t.path);i.setStyle("opacity",n),e.push(i)}return e},split:null};function h(t,e,n,i,s,h){if(t.length&&e.length){var f=Object(a.getAnimationConfig)("update",i,s);if(f&&f.duration>0){var d,p,g=i.getModel("universalTransition").get("delay"),v=Object.assign({setToFinal:!0},f);u(t)&&(d=t,p=e),u(e)&&(d=e,p=t);for(var m=d?d===t:t.length>e.length,y=d?l(p,d):l(m?e:t,[m?t:e]),b=0,_=0;_<y.length;_++)b+=y[_].many.length;var x=0;for(_=0;_<y.length;_++)w(y[_],m,x,b),x+=y[_].many.length}}function w(t,e,i,a,s){var u=t.many,l=t.one;if(1!==u.length||s)for(var f=Object(o.defaults)({dividePath:c[n],individualDelay:g&&function(t,e,n,r){return g(t+i,a)}},v),d=e?Object(r.combineMorph)(u,l,f):Object(r.separateMorph)(l,u,f),p=d.fromIndividuals,m=d.toIndividuals,y=p.length,b=0;b<y;b++){O=g?Object(o.defaults)({delay:g(b,y)},v):v;h(p[b],m[b],e?u[b]:t.one,e?t.one:u[b],O)}else{var _=e?u[0]:l,x=e?l:u[0];if(Object(r.isCombineMorphing)(_))w({many:[_],one:x},!0,i,a,!0);else{var O=g?Object(o.defaults)({delay:g(i,a)},v):v;Object(r.morphPath)(_,x,O),h(_,x,_,x,O)}}}}function f(t){if(!t)return[];if(Object(o.isArray)(t)){for(var e=[],n=0;n<t.length;n++)e.push(f(t[n]));return e}var r=[];return t.traverse((function(t){t instanceof i.default&&!t.disableMorphing&&!t.invisible&&!t.ignore&&r.push(t)})),r}},function(t,e,n){"use strict";e.__esModule=!0,e.isInContainer=e.getScrollContainer=e.isScroll=e.getStyle=e.once=e.off=e.on=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.hasClass=d,e.addClass=function(t,e){if(!t)return;for(var n=t.className,r=(e||"").split(" "),i=0,o=r.length;i<o;i++){var a=r[i];a&&(t.classList?t.classList.add(a):d(t,a)||(n+=" "+a))}t.classList||t.setAttribute("class",n)},e.removeClass=function(t,e){if(!t||!e)return;for(var n=e.split(" "),r=" "+t.className+" ",i=0,o=n.length;i<o;i++){var a=n[i];a&&(t.classList?t.classList.remove(a):d(t,a)&&(r=r.replace(" "+a+" "," ")))}t.classList||t.setAttribute("class",(r||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,""))},e.setStyle=function t(e,n,i){if(!e||!n)return;if("object"===(void 0===n?"undefined":r(n)))for(var o in n)n.hasOwnProperty(o)&&t(e,o,n[o]);else"opacity"===(n=c(n))&&l<9?e.style.filter=isNaN(i)?"":"alpha(opacity="+100*i+")":e.style[n]=i};var i,o=n(216);var a=((i=o)&&i.__esModule?i:{default:i}).default.prototype.$isServer,s=/([\:\-\_]+(.))/g,u=/^moz([A-Z])/,l=a?0:Number(document.documentMode),c=function(t){return t.replace(s,(function(t,e,n,r){return r?n.toUpperCase():n})).replace(u,"Moz$1")},h=e.on=!a&&document.addEventListener?function(t,e,n){t&&e&&n&&t.addEventListener(e,n,!1)}:function(t,e,n){t&&e&&n&&t.attachEvent("on"+e,n)},f=e.off=!a&&document.removeEventListener?function(t,e,n){t&&e&&t.removeEventListener(e,n,!1)}:function(t,e,n){t&&e&&t.detachEvent("on"+e,n)};e.once=function(t,e,n){h(t,e,(function r(){n&&n.apply(this,arguments),f(t,e,r)}))};function d(t,e){if(!t||!e)return!1;if(-1!==e.indexOf(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").indexOf(" "+e+" ")>-1}var p=e.getStyle=l<9?function(t,e){if(!a){if(!t||!e)return null;"float"===(e=c(e))&&(e="styleFloat");try{switch(e){case"opacity":try{return t.filters.item("alpha").opacity/100}catch(t){return 1}default:return t.style[e]||t.currentStyle?t.currentStyle[e]:null}}catch(n){return t.style[e]}}}:function(t,e){if(!a){if(!t||!e)return null;"float"===(e=c(e))&&(e="cssFloat");try{var n=document.defaultView.getComputedStyle(t,"");return t.style[e]||n?n[e]:null}catch(n){return t.style[e]}}};var g=e.isScroll=function(t,e){if(!a)return p(t,null!=e?e?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto|overlay)/)};e.getScrollContainer=function(t,e){if(!a){for(var n=t;n;){if([window,document,document.documentElement].includes(n))return window;if(g(n,e))return n;n=n.parentNode}return n}},e.isInContainer=function(t,e){if(a||!t||!e)return!1;var n=t.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(e)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:e.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TargetTypeEnum=e.BindingTypeEnum=e.BindingScopeEnum=void 0;e.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"};e.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};e.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},function(t,e,n){"use strict";n.r(e),n.d(e,"getGeometryLabel",(function(){return o})),n.d(e,"registerGeometryLabel",(function(){return a})),n.d(e,"getGeometryLabelLayout",(function(){return s})),n.d(e,"registerGeometryLabelLayout",(function(){return u}));var r={},i={};function o(t){return r[t.toLowerCase()]}function a(t,e){r[t.toLowerCase()]=e}function s(t){return i[t.toLowerCase()]}function u(t,e){i[t.toLowerCase()]=e}},function(t,e,n){"use strict";n.r(e);var r=n(66),i=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return Object(r.__extends)(e,t),e}(n(702).default);e.default=i},function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function i(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}n.r(e),n.d(e,"default",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_TSPAN_STYLE",(function(){return l}));var r=n(66),i=n(106),o=n(60),a=n(36),s=n(0),u=n(107),l=Object(s.defaults)({strokeFirst:!0,font:u.DEFAULT_FONT,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a.DEFAULT_PATH_STYLE),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Object(s.createObject)(l,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Object(o.getBoundingRect)(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(i.default);c.prototype.type="tspan",e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"DataFormatMixin",(function(){return s})),n.d(e,"normalizeTooltipFormatResult",(function(){return u}));var r=n(0),i=n(187),o=n(71),a=/\{@(.+?)\}/g,s=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),u=s&&s[n.getItemVisual(t,"drawType")||"fill"],l=s&&s.stroke,c=this.mainType,h="series"===c,f=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:u,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,s,u,l){e=e||"normal";var c=this.getData(n),h=this.getDataParams(t,n);(l&&(h.value=l.interpolatedValue),null!=s&&r.isArray(h.value)&&(h.value=h.value[s]),u)||(u=c.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return r.isFunction(u)?(h.status=e,h.dimensionIndex=s,u(h)):r.isString(u)?Object(o.formatTpl)(u,h).replace(a,(function(e,n){var o=n.length,a=n;"["===a.charAt(0)&&"]"===a.charAt(o-1)&&(a=+a.slice(1,o-1));var s=Object(i.retrieveRawValue)(c,t,a);if(l&&r.isArray(l.interpolatedValue)){var u=c.getDimensionIndex(a);u>=0&&(s=l.interpolatedValue[u])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return Object(i.retrieveRawValue)(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function u(t){var e,n;return r.isObject(t)?t.type&&(n=t):e=t,{text:e,frag:n}}},function(t,e,n){"use strict";n.r(e),n.d(e,"summarizeDimensions",(function(){return a})),n.d(e,"getDimensionTypeByAxis",(function(){return u}));var r=n(0),i=n(30),o=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function a(t,e){var n={},a=n.encode={},u=Object(r.createHashMap)(),l=[],c=[],h={};Object(r.each)(t.dimensions,(function(e){var n,r=t.getDimensionInfo(e),o=r.coordDim;if(o){0;var f=r.coordDimIndex;s(a,o)[f]=e,r.isExtraCoord||(u.set(o,1),"ordinal"!==(n=r.type)&&"time"!==n&&(l[0]=e),s(h,o)[f]=t.getDimensionIndex(r.name)),r.defaultTooltip&&c.push(e)}i.VISUAL_DIMENSIONS.each((function(t,e){var n=s(a,e),i=r.otherDims[e];null!=i&&!1!==i&&(n[i]=r.name)}))}));var f=[],d={};u.each((function(t,e){var n=a[e];d[e]=n[0],f=f.concat(n)})),n.dataDimsOnCoord=f,n.dataDimIndicesOnCoord=Object(r.map)(f,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=d;var p=a.label;p&&p.length&&(l=p.slice());var g=a.tooltip;return g&&g.length?c=g.slice():c.length||(c=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=c,n.userOutput=new o(h,e),n}function s(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function u(t){return"category"===t?"ordinal":"time"===t?"time":"float"}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(67),o=n(23),a=n(40),s=n(31),u=n(11),l=n(246),c=n(0),h=n(27),f=n(114),d=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return Object(r.__extends)(e,t),e.prototype._createSymbol=function(t,e,n,r,o){this.removeAll();var a=Object(i.createSymbol)(t,-1,-1,2,2,null,o);a.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),a.drift=p,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Object(u.enterEmphasis)(this.childAt(0))},e.prototype.downplay=function(){Object(u.leaveEmphasis)(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var a=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,u=e.getSymbolSize(t,n),l=a!==this._symbolType,c=i&&i.disableAnimation;if(l){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,t,n,u,h)}else{(d=this.childAt(0)).silent=!1;var f={scaleX:u[0]/2,scaleY:u[1]/2};c?d.attr(f):o.updateProps(d,f,s,n),Object(o.saveOldStyle)(d)}if(this._updateCommon(t,n,u,r,i),l){var d=this.childAt(0);if(!c){f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,o.initProps(d,f,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,o){var a,s,d,p,g,v,m,y,b,_=this.childAt(0),x=t.hostModel;if(r&&(a=r.emphasisItemStyle,s=r.blurItemStyle,d=r.selectItemStyle,p=r.focus,g=r.blurScope,m=r.labelStatesModels,y=r.hoverScale,b=r.cursorStyle,v=r.emphasisDisabled),!r||t.hasItemOption){var w=r&&r.itemModel?r.itemModel:t.getItemModel(e),O=w.getModel("emphasis");a=O.getModel("itemStyle").getItemStyle(),d=w.getModel(["select","itemStyle"]).getItemStyle(),s=w.getModel(["blur","itemStyle"]).getItemStyle(),p=O.get("focus"),g=O.get("blurScope"),v=O.get("disabled"),m=Object(h.getLabelStatesModels)(w),y=O.getShallow("scale"),b=w.getShallow("cursor")}var S=t.getItemVisual(e,"symbolRotate");_.attr("rotation",(S||0)*Math.PI/180||0);var C=Object(i.normalizeSymbolOffset)(t.getItemVisual(e,"symbolOffset"),n);C&&(_.x=C[0],_.y=C[1]),b&&_.attr("cursor",b);var E=t.getItemVisual(e,"style"),T=E.fill;if(_ instanceof f.default){var A=_.style;_.useStyle(Object(c.extend)({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},E))}else _.__isEmptyBrush?_.useStyle(Object(c.extend)({},E)):_.useStyle(E),_.style.decal=null,_.setColor(T,o&&o.symbolInnerColor),_.style.strokeNoScale=!0;var M=t.getItemVisual(e,"liftZ"),I=this._z2;null!=M?null==I&&(this._z2=_.z2,_.z2+=M):null!=I&&(_.z2=I,this._z2=null);var j=o&&o.useNameLabel;Object(h.setLabelStyle)(_,m,{labelFetcher:x,labelDataIndex:e,defaultText:function(e){return j?t.getName(e):Object(l.getDefaultLabel)(t,e)},inheritColor:T,defaultOpacity:E.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var k=_.ensureState("emphasis");k.style=a,_.ensureState("select").style=d,_.ensureState("blur").style=s;var P=null==y||!0===y?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;k.scaleX=this._sizeX*P,k.scaleY=this._sizeY*P,this.setSymbolScale(1),Object(u.toggleHoverEmphasis)(this,p,g,v)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=Object(s.getECData)(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var u=r.getTextContent();u&&o.removeElement(u,{style:{opacity:0}},e,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();o.removeElement(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:a})},e.getSymbolSize=function(t,e){return Object(i.normalizeSymbolSize)(t.getItemVisual(e,"symbolSize"))},e}(a.default);function p(t,e){this.parent.drift(t,e)}e.default=d},function(t,e,n){"use strict";n.r(e),n.d(e,"collect",(function(){return o})),n.d(e,"fixValue",(function(){return s})),n.d(e,"getAxisInfo",(function(){return u})),n.d(e,"getAxisPointerModel",(function(){return l})),n.d(e,"makeKey",(function(){return h}));var r=n(64),i=n(0);function o(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var o=e.getComponent("tooltip"),s=e.getComponent("axisPointer"),u=s.get("link",!0)||[],l=[];Object(i.each)(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var f=h(n.model),d=t.coordSysAxesInfo[f]={};t.coordSysMap[f]=n;var p=n.model.getModel("tooltip",o);if(Object(i.each)(n.getAxes(),Object(i.curry)(y,!1,null)),n.getTooltipAxes&&o&&p.get("show")){var g="axis"===p.get("trigger"),v="cross"===p.get(["axisPointer","type"]),m=n.getTooltipAxes(p.get(["axisPointer","axis"]));(g||v)&&Object(i.each)(m.baseAxes,Object(i.curry)(y,!v||"cross",g)),v&&Object(i.each)(m.otherAxes,Object(i.curry)(y,"cross",!1))}}function y(o,f,g){var v=g.model.getModel("axisPointer",s),m=v.get("show");if(m&&("auto"!==m||o||c(v))){null==f&&(f=v.get("triggerTooltip"));var y=(v=o?function(t,e,n,o,a,s){var u=e.getModel("axisPointer"),l={};Object(i.each)(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){l[t]=Object(i.clone)(u.get(t))})),l.snap="category"!==t.type&&!!s,"cross"===u.get("type")&&(l.type="line");var c=l.label||(l.label={});if(null==c.show&&(c.show=!1),"cross"===a){var h=u.get(["label","show"]);if(c.show=null==h||h,!s){var f=l.lineStyle=u.get("crossStyle");f&&Object(i.defaults)(c,f.textStyle)}}return t.model.getModel("axisPointer",new r.default(l,n,o))}(g,p,s,e,o,f):v).get("snap"),b=h(g.model),_=f||y||"category"===g.type,x=t.axesInfo[b]={key:b,axis:g,coordSys:n,axisPointerModel:v,triggerTooltip:f,involveSeries:_,snap:y,useHandle:c(v),seriesModels:[],linkGroup:null};d[b]=x,t.seriesInvolved=t.seriesInvolved||_;var w=function(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(a(o[r+"AxisId"],n.id)||a(o[r+"AxisIndex"],n.componentIndex)||a(o[r+"AxisName"],n.name))return i}}(u,g);if(null!=w){var O=l[w]||(l[w]={axesInfo:{}});O.axesInfo[b]=x,O.mapper=u[w].mapper,x.linkGroup=O}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),o=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==o&&!1!==e.get(["axisPointer","show"],!0)&&Object(i.each)(t.coordSysAxesInfo[h(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}(n,t),n}function a(t,e){return"all"===t||Object(i.isArray)(t)&&Object(i.indexOf)(t,e)>=0||t===e}function s(t){var e=u(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=c(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function u(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[h(t)]}function l(t){var e=u(t);return e&&e.axisPointerModel}function c(t){return!!t.get(["handle","show"])}function h(t){return t.type+"||"+t.id}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(18),o=n(42),a=n(35),s=n(129),u=n(6),l=i.applyTransform,c=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new s.default,n._rawTransformable=new s.default,n.name=e,n}return Object(r.__extends)(e,t),e.prototype.setBoundingRect=function(t,e,n,r){return this._rect=new a.default(t,e,n,r),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,r){this._transformTo(t,e,n,r),this._viewRect=new a.default(t,e,n,r)},e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new a.default(t,e,n,r));var s=o.parent;o.parent=null,o.decomposeTransform(),o.parent=s,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[Object(u.parsePercent)(t[0],e.getWidth()),Object(u.parsePercent)(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),o=this.getZoom();r=i.applyTransform([],r,t),n=i.applyTransform([],n,t),e.originX=r[0],e.originY=r[1],e.x=n[0]-r[0],e.y=n[1]-r[1],e.scaleX=e.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),o.copy(this.transform||(this.transform=[]),e.transform||o.create()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],o.invert(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new s.default;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var r=e?this._rawTransform:this.transform;return n=n||[],r?l(n,t,r):i.copy(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?l([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var r=h(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=h(e);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(s.default);function h(t){var e=t.seriesModel;return e?e.coordinateSystem:null}e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"initCurvenessList",(function(){return l})),n.d(e,"createEdgeMapForCurveness",(function(){return c})),n.d(e,"getCurvenessForEdge",(function(){return h}));var r=n(0),i=function(t){return t.get("autoCurveness")||null},o=function(t,e){var n=i(t),o=20,a=[];if(r.isNumber(n))o=n;else if(r.isArray(n))return void(t.__curvenessList=n);e>o&&(o=e);var s=o%2?o+2:o+3;a=[];for(var u=0;u<s;u++)a.push((u%2?u+1:u)/10*(u%2?-1:1));t.__curvenessList=a},a=function(t,e,n){var r=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[n.uid,r,i].join("--\x3e")},s=function(t){var e=t.split("--\x3e");return[e[0],e[2],e[1]].join("--\x3e")},u=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function l(t){i(t)&&(t.__curvenessList=[],t.__edgeMap={},o(t))}function c(t,e,n,r){if(i(n)){var o=a(t,e,n),u=n.__edgeMap,l=u[s(o)];u[o]&&!l?u[o].isForward=!0:l&&u[o]&&(l.isForward=!0,u[o].isForward=!1),u[o]=u[o]||[],u[o].push(r)}}function h(t,e,n,l){var c=i(e),h=r.isArray(c);if(!c)return null;var f=function(t,e){var n=a(t.node1,t.node2,e);return e.__edgeMap[n]}(t,e);if(!f)return null;for(var d=-1,p=0;p<f.length;p++)if(f[p]===n){d=p;break}var g=function(t,e){return u(a(t.node1,t.node2,e),e)+u(a(t.node2,t.node1,e),e)}(t,e);o(e,g),t.lineStyle=t.lineStyle||{};var v=a(t.node1,t.node2,e),m=e.__curvenessList,y=h||g%2?0:1;if(f.isForward)return m[y+d];var b=s(v),_=u(b,e),x=m[d+_+y];return l?h?c&&0===c[0]?(_+y)%2?x:-x:((_%2?0:1)+y)%2?x:-x:(_+y)%2?x:-x:m[d+_+y]}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return c}));var r=n(221),i=n(1481),o=n(1482),a=n(1483),s=n(0),u=n(358),l=n(1484);function c(t){r.default.registerAxisPointerClass("CartesianAxisPointer",i.default),t.registerComponentModel(o.default),t.registerComponentView(a.default),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(s.isArray)(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Object(u.collect)(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},l.default)}},function(t,e,n){"use strict";n.r(e),n.d(e,"self",(function(){return i})),n.d(e,"window",(function(){return o})),n.d(e,"global",(function(){return a})),n.d(e,"document",(function(){return s})),n.d(e,"isWorker",(function(){return u})),n.d(e,"isMobile",(function(){return l}));var r={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,document:"undefined"!=typeof document&&document},i=r.self||r.window||{},o=r.window||r.self||{},a=r.self||r.window||{},s=r.document||{},u="function"==typeof importScripts,l="undefined"!=typeof window&&void 0!==window.orientation},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(19),i=n(20),o=n(102),a=function(){function t(e,n){Object(r.default)(this,t),e&&(n?this.setSouthWest(e).setNorthEast(n):4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1]))}return Object(i.default)(t,[{key:"setNorthEast",value:function(t){return this.ne=t instanceof o.default?new o.default(t.lng,t.lat):o.default.convert(t),this}},{key:"setSouthWest",value:function(t){return this.sw=t instanceof o.default?new o.default(t.lng,t.lat):o.default.convert(t),this}},{key:"extend",value:function(e){var n,r,i=this.sw,a=this.ne;if(e instanceof o.default)n=e,r=e;else{if(!(e instanceof t)){if(Array.isArray(e)){if(4===e.length||e.every(Array.isArray)){var s=e;return this.extend(t.convert(s))}var u=e;return this.extend(o.default.convert(u))}return this}if(n=e.sw,r=e.ne,!n||!r)return this}return i||a?(i.lng=Math.min(n.lng,i.lng),i.lat=Math.min(n.lat,i.lat),a.lng=Math.max(r.lng,a.lng),a.lat=Math.max(r.lat,a.lat)):(this.sw=new o.default(n.lng,n.lat),this.ne=new o.default(r.lng,r.lat)),this}},{key:"getCenter",value:function(){return new o.default((this.sw.lng+this.ne.lng)/2,(this.sw.lat+this.ne.lat)/2)}},{key:"getSouthWest",value:function(){return this.sw}},{key:"getNorthEast",value:function(){return this.ne}},{key:"getNorthWest",value:function(){return new o.default(this.getWest(),this.getNorth())}},{key:"getSouthEast",value:function(){return new o.default(this.getEast(),this.getSouth())}},{key:"getWest",value:function(){return this.sw.lng}},{key:"getSouth",value:function(){return this.sw.lat}},{key:"getEast",value:function(){return this.ne.lng}},{key:"getNorth",value:function(){return this.ne.lat}},{key:"toArray",value:function(){return[this.sw.toArray(),this.ne.toArray()]}},{key:"toString",value:function(){return"LngLatBounds(".concat(this.sw.toString(),", ").concat(this.ne.toString(),")")}},{key:"isEmpty",value:function(){return!(this.sw&&this.ne)}},{key:"contains",value:function(t){var e=o.default.convert(t),n=e.lng,r=e.lat,i=this.sw.lat<=r&&r<=this.ne.lat,a=this.sw.lng<=n&&n<=this.ne.lng;return this.sw.lng>this.ne.lng&&(a=this.sw.lng>=n&&n>=this.ne.lng),i&&a}}],[{key:"convert",value:function(e){return e instanceof t?e:new t(e)}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"SeriesDataSchema",(function(){return u})),n.d(e,"isSeriesDataSchema",(function(){return l})),n.d(e,"createDimNameMap",(function(){return c})),n.d(e,"ensureSourceDimNameMap",(function(){return h})),n.d(e,"shouldOmitUnusedDimensions",(function(){return f}));var r=n(0),i=n(9),o=n(153),a=Object(i.makeInner)(),s={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},u=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=h(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(r.retrieve2)(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Object(o.shouldRetrieveDataByName)(this.source),n=!f(t),r="",i=[],a=0,u=0;a<t;a++){var l=void 0,c=void 0,h=void 0,d=this.dimensions[u];if(d&&d.storeDimIndex===a)l=e?d.name:null,c=d.type,h=d.ordinalMeta,u++;else{var p=this.getSourceDimension(a);p&&(l=e?p.name:null,c=p.type)}i.push({property:l,type:c,ordinalMeta:h}),!e||null==l||d&&d.isCalculationCoord||(r+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),r+="$",r+=s[c]||"f",h&&(r+=h.uid),r+="$"}var g=this.source;return{dimensions:i,hash:[g.seriesLayoutBy,g.startIndex,r].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(e);o&&(r=o.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function l(t){return t instanceof u}function c(t){for(var e=Object(r.createHashMap)(),n=0;n<(t||[]).length;n++){var i=t[n],o=Object(r.isObject)(i)?i.name:i;null!=o&&null==e.get(o)&&e.set(o,n)}return e}function h(t){var e=a(t);return e.dimNameMap||(e.dimNameMap=c(t.dimensionsDefine))}function f(t){return t>30}},function(t,e,n){"use strict";function r(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function i(t,e,n,r){var i=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,u=o.max||1/0;a=Math.max(Math.min(u,a),s)}var l=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(l-1),i.y-=(r-i.y)*(l-1),i.scaleX*=l,i.scaleY*=l,i.dirty()}n.r(e),n.d(e,"updateViewOnPan",(function(){return r})),n.d(e,"updateViewOnZoom",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"SHAPES",(function(){return a})),n.d(e,"HOLLOW_SHAPES",(function(){return s})),n.d(e,"drawPoints",(function(){return u}));var r=n(2),i=n(272),o=n(77),a=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],s=["cross","tick","plus","hyphen","line"];function u(t,e,n,a,s){var u,l,c=Object(o.getStyle)(e,s,!s,"r"),h=t.parsePoints(e.points),f=h[0];if(e.isStack)f=h[1];else if(h.length>1){var d=n.addGroup();try{for(var p=Object(r.__values)(h),g=p.next();!g.done;g=p.next()){var v=g.value;d.addShape({type:"marker",attrs:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},c),{symbol:i.MarkerSymbols[a]||a}),v)})}}catch(t){u={error:t}}finally{try{g&&!g.done&&(l=p.return)&&l.call(p)}finally{if(u)throw u.error}}return d}return n.addShape({type:"marker",attrs:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},c),{symbol:i.MarkerSymbols[a]||a}),f)})}},function(t,e,n){"use strict";n.r(e),n.d(e,"HTMLElement",(function(){return x}));var r=n(17),i=n.n(r),o=n(16),a=n.n(o),s=n(14),u=n.n(s),l=n(50),c=n.n(l),h=n(51),f=n.n(h),d=n(28),p=n.n(d),g=n(4),v=n.n(g),m=n(775),y=n(159);function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}function _(){}var x=function(t){c()(n,t);var e=b(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0;return a()(this,n),t=e.call(this),v()(u()(t),"className",void 0),v()(u()(t),"children",void 0),v()(u()(t),"focus",void 0),v()(u()(t),"blur",void 0),v()(u()(t),"insertBefore",void 0),v()(u()(t),"appendChild",void 0),v()(u()(t),"removeChild",void 0),v()(u()(t),"remove",void 0),v()(u()(t),"innerHTML",void 0),v()(u()(t),"tagName",void 0),t.className="",t.children=[],t.focus=_,t.blur=_,t.insertBefore=_,t.appendChild=_,t.removeChild=_,t.remove=_,t.innerHTML="",t.tagName=r.toUpperCase(),y.parentNode(u()(t),i),y.style(u()(t)),y.classList(u()(t)),y.clientRegion(u()(t)),y.offsetRegion(u()(t)),y.scrollRegion(u()(t)),t}return i()(n)}(m.Element)},function(t,e,n){"use strict";n.r(e),n.d(e,"HTMLElement",(function(){return d}));var r=n(20),i=n(19),o=n(68),a=n(61),s=n(63),u=n(32),l=n(784),c=n(160);function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(u.default)(t);if(e){var i=Object(u.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.default)(this,n)}}function f(){}var d=function(t){Object(a.default)(n,t);var e=h(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0;return Object(i.default)(this,n),(t=e.call(this)).className="",t.children=[],t.focus=f,t.blur=f,t.insertBefore=f,t.appendChild=f,t.removeChild=f,t.remove=f,t.innerHTML="",t.tagName=r.toUpperCase(),c.parentNode(Object(o.default)(t),a),c.style(Object(o.default)(t)),c.classList(Object(o.default)(t)),c.clientRegion(Object(o.default)(t)),c.offsetRegion(Object(o.default)(t)),c.scrollRegion(Object(o.default)(t)),t}return Object(r.default)(n)}(l.Element)},function(t,e,n){"use strict";n.r(e),n.d(e,"contain",(function(){return o}));var r=n(303);function i(t,e){return Math.abs(t-e)<1e-8}function o(t,e,n){var o=0,a=t[0];if(!a)return!1;for(var s=1;s<t.length;s++){var u=t[s];o+=Object(r.default)(a[0],a[1],u[0],u[1],e,n),a=u}var l=t[0];return i(a[0],l[0])&&i(a[1],l[1])||(o+=Object(r.default)(a[0],a[1],l[0],l[1],e,n)),0!==o}},function(t,e,n){"use strict";function r(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}n.r(e),n.d(e,"prettyNumber",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"BACKGROUND_STYLE",(function(){return r})),n.d(e,"FOREGROUND_STYLE",(function(){return i})),n.d(e,"DEFAULT_HANDLER_WIDTH",(function(){return o})),n.d(e,"HANDLER_STYLE",(function(){return a})),n.d(e,"TEXT_STYLE",(function(){return s})),n.d(e,"SLIDER_CHANGE",(function(){return u}));var r={fill:"#416180",opacity:.05},i={fill:"#5B8FF9",opacity:.15,cursor:"move"},o=10,a={width:o,height:24},s={textBaseline:"middle",fill:"#000",opacity:.45},u="sliderchange"},function(t,e,n){"use strict";n.r(e),n.d(e,"Color",(function(){return i})),n.d(e,"darker",(function(){return o})),n.d(e,"brighter",(function(){return a})),n.d(e,"default",(function(){return _})),n.d(e,"rgbConvert",(function(){return O})),n.d(e,"rgb",(function(){return S})),n.d(e,"Rgb",(function(){return C})),n.d(e,"hslConvert",(function(){return I})),n.d(e,"hsl",(function(){return j}));var r=n(532);function i(){}var o=.7,a=1/o,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),d=new RegExp("^rgba\\("+[s,s,s,u]+"\\)$"),p=new RegExp("^rgba\\("+[l,l,l,u]+"\\)$"),g=new RegExp("^hsl\\("+[u,l,l]+"\\)$"),v=new RegExp("^hsla\\("+[u,l,l,u]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function _(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=c.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?x(e):3===n?new C(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?w(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?w(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=h.exec(t))?new C(e[1],e[2],e[3],1):(e=f.exec(t))?new C(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?w(e[1],e[2],e[3],e[4]):(e=p.exec(t))?w(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?M(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?M(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?x(m[t]):"transparent"===t?new C(NaN,NaN,NaN,0):null}function x(t){return new C(t>>16&255,t>>8&255,255&t,1)}function w(t,e,n,r){return r<=0&&(t=e=n=NaN),new C(t,e,n,r)}function O(t){return t instanceof i||(t=_(t)),t?new C((t=t.rgb()).r,t.g,t.b,t.opacity):new C}function S(t,e,n,r){return 1===arguments.length?O(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function E(){return"#"+A(this.r)+A(this.g)+A(this.b)}function T(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function A(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function M(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new k(t,e,n,r)}function I(t){if(t instanceof k)return new k(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=_(t)),!t)return new k;if(t instanceof k)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,u=a-o,l=(a+o)/2;return u?(s=e===a?(n-r)/u+6*(n<r):n===a?(r-e)/u+2:(e-n)/u+4,u/=l<.5?a+o:2-a-o,s*=60):u=l>0&&l<1?0:s,new k(s,u,l,t.opacity)}function j(t,e,n,r){return 1===arguments.length?I(t):new k(t,e,n,null==r?1:r)}function k(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function P(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Object(r.default)(i,_,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return I(this).formatHsl()},formatRgb:b,toString:b}),Object(r.default)(C,S,Object(r.extend)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatRgb:T,toString:T})),Object(r.default)(k,j,Object(r.extend)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new k(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new k(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new C(P(t>=240?t-240:t+120,i,r),P(t,i,r),P(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tagProperty=e.tagParameter=e.decorate=void 0;var r=n(241),i=n(175);function o(t,e,n,i,o){var a={},s="number"==typeof o,u=void 0!==o&&s?o.toString():n;if(s&&void 0!==n)throw new Error(r.INVALID_DECORATOR_OPERATION);Reflect.hasOwnMetadata(t,e)&&(a=Reflect.getMetadata(t,e));var l=a[u];if(Array.isArray(l))for(var c=0,h=l;c<h.length;c++){var f=h[c];if(f.key===i.key)throw new Error(r.DUPLICATED_METADATA+" "+f.key.toString())}else l=[];l.push(i),a[u]=l,Reflect.defineMetadata(t,a,e)}function a(t,e){Reflect.decorate(t,e)}function s(t,e){return function(n,r){e(n,r,t)}}e.tagParameter=function(t,e,n,r){o(i.TAGGED,t,e,r,n)},e.tagProperty=function(t,e,n){o(i.TAGGED_PROP,t.constructor,e,n)},e.decorate=function(t,e,n){"number"==typeof n?a([s(n,t)],e):"string"==typeof n?Reflect.decorate([t],e,n):a([t],e)}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){"use strict";n.r(e),e.default=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(25),o=n(1),a=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,i=t.matrix,o=void 0===i?[1,0,0,0,1,0,0,0,1]:i,a=t.isTransposed,s=void 0!==a&&a;this.start=e,this.end=n,this.matrix=o,this.originalMatrix=Object(r.__spreadArray)([],o),this.isTransposed=s}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){Object(o.assign)(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(i=(n=[o,i])[0],o=n[1]),i+t*(o-i)},t.prototype.invertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(i=(n=[o,i])[0],o=n[1]),(t-i)/(o-i)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,o=[t,e,n];return i.vec3.transformMat3(o,o,r),o},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,o=i.mat3.invert([0,0,0,0,0,0,0,0,0],r),a=[t,e,n];return o&&i.vec3.transformMat3(a,a,o),a},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return i.ext.leftTranslate(e,e,[-n.x,-n.y]),i.ext.leftRotate(e,e,t),i.ext.leftTranslate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,r=this.center;return i.ext.leftTranslate(n,n,[-r.x,-r.y]),i.ext.leftScale(n,n,[t,e]),i.ext.leftTranslate(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return i.ext.leftTranslate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||Object(r.__spreadArray)([],this.originalMatrix)},t}();e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(92),o=n(1),a=n(46),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Object(a.createBBox)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Object(a.clearDom)(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(Object(o.isNil)(t)){t=this.createDom();var e=this.get("parent");Object(o.isString)(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else Object(o.isString)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?Object(o.deepMix)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&Object(a.hasClass)(e,n)){var r=t[n];Object(i.modifyCSS)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){Object(o.each)(e,(function(e,n){var r=t.getElementsByClassName(n);Object(o.each)(r,(function(t){Object(i.modifyCSS)(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");Object(i.modifyCSS)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Object(i.createDom)(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){Object(o.hasKey)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(n(462).default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(7),a=n(155),s=n(78),u=n(1606);function l(t){var e=0;return Object(i.each)(t,(function(t){e+=t})),e/t.length}var c=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],o=this.getLabelCfgs(t);return Object(i.each)(t,(function(t,a){var s=o[a];if(!s||Object(i.isNil)(t.x)||Object(i.isNil)(t.y))n.push(null);else{var u=Object(i.isArray)(s.content)?s.content:[s.content];s.content=u;var l=u.length;Object(i.each)(u,(function(o,a){if(Object(i.isNil)(o)||""===o)n.push(null);else{var u=Object(r.__assign)(Object(r.__assign)({},s),e.getLabelPoint(s,t,a));u.textAlign||(u.textAlign=e.getLabelAlign(u,a,l)),u.offset<=0&&(u.labelLine=null),n.push(u)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),Object(r.__awaiter)(this,void 0,void 0,(function(){var n,i,o;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return n=this.getLabelItems(t),i=this.getLabelsRenderer(),o=this.getGeometryShapes(),[4,i.render(n,o,e)];case 1:return r.sent(),[2]}}))}))},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,r=n.type,o=n.theme;return"polygon"===r||"interval"===r&&"middle"===e||t<0&&!["line","point","path"].includes(r)?Object(i.get)(o,"innerLabels",{}):Object(i.get)(o,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.type,o=e.theme;return"polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?Object(i.deepMix)({},n,o.innerLabels,t):Object(i.deepMix)({},n,o.labels,t)},t.prototype.setLabelPosition=function(t,e,n,r){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var r=t.offset,i=this.getCoordinate().isTransposed,o=i?"x":"y",a=i?1:-1,s={x:0,y:0};return s[o]=e>0||1===n?r*a:r*a*-1,s},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),o=t.content.length;function a(e,n,r){void 0===r&&(r=!1);var o=e;return Object(i.isArray)(o)&&(o=1===t.content.length?r?l(o):o.length<=2?o[e.length-1]:l(o):o[n]),o}var u={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},c=Object(i.isArray)(e.shape)?e.shape[0]:e.shape,h="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var f=Object(s.getPolygonCentroid)(e.x,e.y);u.x=f[0],u.y=f[1]}else"interval"!==this.geometry.type||h?(u.x=a(e.x,n),u.y=a(e.y,n)):(u.x=a(e.x,n,!0),u.y=a(e.y,n));if(h){var d=Object(i.get)(e,"nextPoints"),p=Object(i.get)(e,"points");if(d){var g=r.convert(p[1]),v=r.convert(d[1]);u.x=(g.x+v.x)/2,u.y=(g.y+v.y)/2}else if("pyramid"===c){g=r.convert(p[1]),v=r.convert(p[2]);u.x=(g.x+v.x)/2,u.y=(g.y+v.y)/2}}t.position&&this.setLabelPosition(u,e,n,t.position);var m=this.getLabelOffsetPoint(t,n,o);return u.start={x:u.x,y:u.y},u.x+=m.x,u.y+=m.y,u.color=e.color,u},t.prototype.getLabelAlign=function(t,e,n){var r="center";if(this.getCoordinate().isTransposed){var i=t.offset;r=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),a=t[o.FIELD_ORIGIN],s=e.getElementId(t);return"line"===n||"area"===n?s+=" ".concat(a[r.field]):"path"===n&&(s+=" ".concat(a[r.field],"-").concat(a[i.field])),s},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,o=t.animateOption,s=this.geometry.coordinate,l=this.labelsRenderer;return l||(l=new u.default({container:e,layout:Object(i.get)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=l),l.region=r,l.animate=!!o&&Object(a.getDefaultAnimateCfg)("label",s),l},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,a=n.labelOption,s=n.scales,u=n.coordinate,l=a,c=l.fields,h=l.callback,f=l.cfg,d=c.map((function(t){return s[t]})),p=[];return Object(i.each)(t,(function(t,n){var a,s=t[o.FIELD_ORIGIN],l=e.getLabelText(s,d);if(h){var g=c.map((function(t){return s[t]}));if(a=h.apply(void 0,Object(r.__spreadArray)([],Object(r.__read)(g),!1)),Object(i.isNil)(a))return void p.push(null)}var v=Object(r.__assign)(Object(r.__assign)({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:s,mappingData:t,coordinate:u},f),a);Object(i.isFunction)(v.position)&&(v.position=v.position(s,t,n));var m=e.getLabelOffset(v.offset||0),y=e.getDefaultLabelCfg(m,v.position);(v=Object(i.deepMix)({},y,v)).offset=e.getLabelOffset(v.offset||0);var b=v.content;Object(i.isFunction)(b)?v.content=b(s,t,n):Object(i.isUndefined)(b)&&(v.content=l[0]),p.push(v)})),p},t.prototype.getLabelText=function(t,e){var n=[];return Object(i.each)(e,(function(e){var r=t[e.field];r=Object(i.isArray)(r)?r.map((function(t){return e.getText(t)})):e.getText(r),Object(i.isNil)(r)||""===r?n.push(null):n.push(r)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return Object(i.isNumber)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return Object(i.each)(t.elementsMap,(function(t,n){e[n]=t.shape})),Object(i.each)(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(137);n.d(e,"Base",(function(){return r.default}));var i=n(1143);n.d(e,"Circle",(function(){return i.default}));var o=n(1144);n.d(e,"Dom",(function(){return o.default}));var a=n(1145);n.d(e,"Ellipse",(function(){return a.default}));var s=n(1146);n.d(e,"Image",(function(){return s.default}));var u=n(1147);n.d(e,"Line",(function(){return u.default}));var l=n(1148);n.d(e,"Marker",(function(){return l.default}));var c=n(1149);n.d(e,"Path",(function(){return c.default}));var h=n(1150);n.d(e,"Polygon",(function(){return h.default}));var f=n(1151);n.d(e,"Polyline",(function(){return f.default}));var d=n(1152);n.d(e,"Rect",(function(){return d.default}));var p=n(1153);n.d(e,"Text",(function(){return p.default}))},function(t,e,n){"use strict";n.r(e),n.d(e,"adjustYMetaByZero",(function(){return s})),n.d(e,"transformDataToNodeLinkData",(function(){return u})),n.d(e,"processIllegalData",(function(){return l}));var r=n(2),i=n(1),o=n(419),a=n(665);function s(t,e){if(!t)return{};var n=t.filter((function(t){var n=Object(i.get)(t,[e]);return Object(i.isNumber)(n)&&!isNaN(n)})),r=n.every((function(t){return Object(i.get)(t,[e])>=0})),o=n.every((function(t){return Object(i.get)(t,[e])<=0}));return r?{min:0}:o?{max:0}:{}}function u(t,e,n,i,o){if(void 0===o&&(o=[]),!Array.isArray(t))return{nodes:[],links:[]};var s=[],u={},l=-1;return t.forEach((function(t){var c=t[e],h=t[n],f=t[i],d=Object(a.pick)(t,o);u[c]||(u[c]=Object(r.__assign)({id:++l,name:c},d)),u[h]||(u[h]=Object(r.__assign)({id:++l,name:h},d)),s.push(Object(r.__assign)({source:u[c].id,target:u[h].id,value:f},d))})),{nodes:Object.values(u).sort((function(t,e){return t.id-e.id})),links:s}}function l(t,e){var n=Object(i.filter)(t,(function(t){var n=t[e];return null===n||"number"==typeof n&&!isNaN(n)}));return Object(o.log)(o.LEVEL.WARN,n.length===t.length,"illegal data existed in chart data."),n}},function(t,e,n){"use strict";n.r(e),e.default=function(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,l=t.value&&(i-n)/t.value;++s<u;)(o=a[s]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*l}},function(t,e,n){"use strict";n.r(e),n.d(e,"isColor",(function(){return o})),n.d(e,"rgb2arr",(function(){return a})),n.d(e,"decodePickingColor",(function(){return s})),n.d(e,"encodePickingColor",(function(){return u})),n.d(e,"generateColorRamp",(function(){return l}));var r=n(372),i=n(135);function o(t){return"string"==typeof t&&!!r.default(t)}function a(t){var e=r.default(t),n=[0,0,0,0];return null!=e&&(n[0]=e.r/255,n[1]=e.g/255,n[2]=e.b/255,n[3]=e.opacity),n}function s(t){return(t&&t[0])+256*(t&&t[1])+65536*(t&&t[2])-1}function u(t){return[t+1&255,t+1>>8&255,t+1>>8>>8&255]}function l(t){var e=i.$window.document.createElement("canvas"),n=e.getContext("2d");e.width=256,e.height=1;var r=null;if(t.weights){var o=0;t.weights.map((function(e,r){var i=t.colors[r]||"rgba(0, 0, 0, 0)",a=o+e;n.fillStyle=i,n.fillRect(256*o,0,256*a,1),o=a}))}else{for(var a=n.createLinearGradient(0,0,256,1),s=t.positions[0],u=t.positions[t.positions.length-1],l=0;l<t.colors.length;++l){var c=(t.positions[l]-s)/(u-s);a.addColorStop(c,t.colors[l])}n.fillStyle=a,n.fillRect(0,0,256,1)}if(i.isMini)return r=new Uint8ClampedArray(n.getImageData(0,0,256,1).data),e=null,n=null,{data:r,width:256,height:1};r=n.getImageData(0,0,256,1).data;for(var h=n.createImageData(256,1),f=0;f<h.data.length;f+=4)h.data[f+0]=r[f+0],h.data[f+1]=r[f+1],h.data[f+2]=r[f+2],h.data[f+3]=r[f+3];return e=null,n=null,h}},function(t,e,n){"use strict";n.r(e),n.d(e,"LineTriangulation",(function(){return u})),n.d(e,"PointFillTriangulation",(function(){return l})),n.d(e,"polygonFillTriangulation",(function(){return c}));var r=n(130),i=n(943),o=n.n(i),a=n(134),s=n(1849);function u(t){var e=t.coordinates,n=t.originCoordinates,r=t.version,i=new s.default({dash:!0,join:"bevel"});if("GAODE2.x"===r){var o=e;Array.isArray(o[0][0])||(o=[e]);var a=n;Array.isArray(a[0][0])||(a=[n]);for(var u=0;u<o.length;u++){var l=o[u],c=a[u];i.extrude_gaode2(l,c)}}else{var h=e;h[0]&&!Array.isArray(h[0][0])&&(h=[e]),h.forEach((function(t){i.extrude(t)}))}var f=i.complex;return{vertices:f.positions,indices:f.indices,normals:f.normals,indexes:f.indexes,size:6}}function l(t){var e=Object(a.calculateCentroid)(t.coordinates);return{vertices:[].concat(Object(r.default)(e),Object(r.default)(e),Object(r.default)(e),Object(r.default)(e)),indices:[0,1,2,2,3,0],size:e.length}}function c(t){var e=t.coordinates,n=o.a.flatten(e),r=n.vertices,i=n.dimensions,a=n.holes;return{indices:o()(r,a,i),vertices:r,size:i}}},function(t,e,n){"use strict";n.r(e),n.d(e,"onIrrelevantElement",(function(){return i}));var r={axisPointer:1,tooltip:1,brush:1};function i(t,e,n){var i=e.getComponentByElement(t.topTarget),o=i&&i.coordinateSystem;return i&&i!==n&&!r.hasOwnProperty(i.mainType)&&o&&o.model!==n}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return Object(r.__extends)(e,t),e.prototype.scale=function(t){if(Object(i.isNil)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=Object(i.head)(e),r=Object(i.last)(e);n<this.min&&(this.min=n),r>this.max&&(this.max=r),Object(i.isNil)(this.minLimit)||(this.min=n),Object(i.isNil)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=Object(i.getRange)(this.values),e=t.min,n=t.max;Object(i.isNil)(this.min)&&(this.min=e),Object(i.isNil)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=Object(i.filter)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(n(313).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"renderTag",(function(){return u}));var r=n(2),i=n(1),o=n(248),a=n(128),s=n(46);function u(t,e){var n=e.x,u=e.y,l=e.content,c=e.style,h=e.id,f=e.name,d=e.rotate,p=e.maxLength,g=e.autoEllipsis,v=e.isVertical,m=e.ellipsisPosition,y=e.background,b=t.addGroup({id:h+"-group",name:f+"-group",attrs:{x:n,y:u}}),_=b.addShape({type:"text",id:h,name:f,attrs:Object(r.__assign)({x:0,y:0,text:l},c)}),x=Object(s.formatPadding)(Object(i.get)(y,"padding",0));if(p&&g){var w=p-(x[1]+x[3]);Object(o.ellipsisLabel)(!v,_,w,m)}if(y){var O=Object(i.get)(y,"style",{}),S=_.getCanvasBBox(),C=S.minX,E=S.minY,T=S.width,A=S.height;b.addShape("rect",{id:h+"-bg",name:h+"-bg",attrs:Object(r.__assign)({x:C-x[3],y:E-x[0],width:T+x[1]+x[3],height:A+x[0]+x[2]},O)}).toBack()}Object(a.applyTranslate)(b,n,u),Object(a.applyRotate)(b,d,n,u)}},function(t,e,n){"use strict";n.r(e),n.d(e,"findDataByPoint",(function(){return h})),n.d(e,"getTooltipItems",(function(){return f})),n.d(e,"findItemsFromView",(function(){return g})),n.d(e,"findItemsFromViewRecurisive",(function(){return v}));var r=n(2),i=n(1),o=n(7),a=n(171);function s(t,e,n){var r=n.translate(t),o=n.translate(e);return Object(i.isNumberEqual)(r,o)}function u(t,e,n){var r=n.coordinate,a=n.getYScale(),s=a.field,u=r.invert(e),l=a.invert(u.y);return Object(i.find)(t,(function(t){var e=t[o.FIELD_ORIGIN];return e[s][0]<=l&&e[s][1]>=l}))||t[t.length-1]}var l=Object(i.memoize)((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,o=0;o<n;o++){var a=e[o],s=t.translate(a);s<r&&(r=s),s>i&&(i=s)}return(i-r)/(n-1)}));function c(t){var e,n,s,u=function(t){var e=Object(i.values)(t.attributes);return Object(i.filter)(e,(function(t){return Object(i.contains)(o.GROUP_ATTRS,t.type)}))}(t);try{for(var l=Object(r.__values)(u),c=l.next();!c.done;c=l.next()){var h=c.value,f=h.getScale(h.type);if(f&&f.isLinear){var d=Object(i.get)(t.scaleDefs,f.field);if("cat"!==Object(a.inferScaleType)(f,d,h.type,t.type)){s=f;break}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}var p=t.getXScale(),g=t.getYScale();return s||g||p}function h(t,e,n){if(0===e.length)return null;var r=n.type,a=n.getXScale(),c=n.getYScale(),h=a.field,f=c.field,d=null;if("heatmap"===r||"point"===r){for(var p=n.coordinate.invert(t),g=a.invert(p.x),v=c.invert(p.y),m=1/0,y=0;y<e.length;y++){var b=e[y],_=b[o.FIELD_ORIGIN],x=Math.pow(_[h]-g,2)+Math.pow(_[f]-v,2);x<m&&(m=x,d=b)}return d}var w=e[0],O=e[e.length-1],S=function(t,e){var n=e.coordinate,r=e.getXScale(),i=r.range,o=i[i.length-1],a=i[0],s=n.invert(t).x;return n.isPolar&&s>(1+o)/2&&(s=a),r.translate(r.invert(s))}(t,n),C=w[o.FIELD_ORIGIN][h],E=w[o.FIELD_ORIGIN][f],T=O[o.FIELD_ORIGIN][h],A=c.isLinear&&Object(i.isArray)(E);if(Object(i.isArray)(C)){for(y=0;y<e.length;y++){_=(L=e[y])[o.FIELD_ORIGIN];if(a.translate(_[h][0])<=S&&a.translate(_[h][1])>=S){if(!A){d=L;break}Object(i.isArray)(d)||(d=[]),d.push(L)}}Object(i.isArray)(d)&&(d=u(d,t,n))}else{var M=void 0;if(a.isLinear||"timeCat"===a.type){if((S>a.translate(T)||S<a.translate(C))&&(S>a.max||S<a.min))return null;for(var I=0,j=e.length-1,k=void 0;I<=j;){var P=e[k=Math.floor((I+j)/2)][o.FIELD_ORIGIN][h];if(s(P,S,a))return e[k];a.translate(P)<=a.translate(S)?(I=k+1,O=e[k],M=e[k+1]):(0===j&&(O=e[0]),j=k-1)}}else{for(y=0;y<e.length;y++){var L;if(s((_=(L=e[y])[o.FIELD_ORIGIN])[h],S,a)){if(!A){d=L;break}Object(i.isArray)(d)||(d=[]),d.push(L)}else a.translate(_[h])<=S&&(O=L,M=e[y+1])}Object(i.isArray)(d)&&(d=u(d,t,n))}O&&M&&Math.abs(a.translate(O[o.FIELD_ORIGIN][h])-S)>Math.abs(a.translate(M[o.FIELD_ORIGIN][h])-S)&&(O=M)}var R=l(n.getXScale());return!d&&Math.abs(a.translate(O[o.FIELD_ORIGIN][h])-S)<=R/2&&(d=O),d}function f(t,e,n,s){var u,l;void 0===n&&(n=""),void 0===s&&(s=!1);var h,f=t[o.FIELD_ORIGIN],d=function(t,e,n){var r=e.getAttribute("position").getFields(),o=e.scales,a=Object(i.isFunction)(n)||!n?r[0]:n,s=o[a],u=s?s.getText(t[a]):t[a]||a;return Object(i.isFunction)(n)?n(u,t):u}(f,e,n),p=e.tooltipOption,g=e.theme.defaultColor,v=[];function m(e,n){if(s||!Object(i.isNil)(n)&&""!==n){var r={title:d,data:f,mappingData:t,name:e,value:n,color:t.color||g,marker:!0};v.push(r)}}if(Object(i.isObject)(p)){var y=p.fields,b=p.callback;if(b){var _=y.map((function(e){return t[o.FIELD_ORIGIN][e]})),x=b.apply(void 0,Object(r.__spreadArray)([],Object(r.__read)(_),!1)),w=Object(r.__assign)({data:t[o.FIELD_ORIGIN],mappingData:t,title:d,color:t.color||g,marker:!0},x);v.push(w)}else{var O=e.scales;try{for(var S=Object(r.__values)(y),C=S.next();!C.done;C=S.next()){var E=C.value;if(!Object(i.isNil)(f[E])){var T=O[E];m(Object(a.getName)(T),h=T.getText(f[E]))}}}catch(t){u={error:t}}finally{try{C&&!C.done&&(l=S.return)&&l.call(S)}finally{if(u)throw u.error}}}}else{var A=c(e);h=function(t,e){var n=t[e.field];return Object(i.isArray)(n)?n.map((function(t){return e.getText(t)})).join("-"):e.getText(n)}(f,A),m(function(t,e){var n,r=e.getGroupScales();if(r.length&&(n=r[0]),n){var i=n.field;return n.getText(t[i])}var o=c(e);return Object(a.getName)(o)}(f,e),h)}return v}function d(t,e,n,o){var a,s,u=o.showNil,l=[],c=t.dataArray;if(!Object(i.isEmpty)(c)){t.sort(c);try{for(var d=Object(r.__values)(c),p=d.next();!p.done;p=d.next()){var g=h(e,p.value,t);if(g){var v=t.getElementId(g),m=t.elementsMap[v];if("heatmap"===t.type||m.visible){var y=f(g,t,n,u);y.length&&l.push(y)}}}}catch(t){a={error:t}}finally{try{p&&!p.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}}return l}function p(t,e,n,r){var i=r.showNil,o=[],a=t.container.getShape(e.x,e.y);if(a&&a.get("visible")&&a.get("origin")){var s=f(a.get("origin").mappingData,t,n,i);s.length&&o.push(s)}return o}function g(t,e,n){var i,o,a=[],s=t.geometries,u=n.shared,l=n.title,c=n.reversed;try{for(var h=Object(r.__values)(s),f=h.next();!f.done;f=h.next()){var g=f.value;if(g.visible&&!1!==g.tooltipOption){var v=g.type,m=void 0;(m=["point","edge","polygon"].includes(v)?p(g,e,l,n):["area","line","path","heatmap"].includes(v)||!1!==u?d(g,e,l,n):p(g,e,l,n)).length&&(c&&m.reverse(),a.push(m))}}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}return a}function v(t,e,n){var i,o,a=g(t,e,n);try{for(var s=Object(r.__values)(t.views),u=s.next();!u.done;u=s.next()){var l=u.value;a=a.concat(g(l,e,n))}}catch(t){i={error:t}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return a}},function(t,e,n){"use strict";n.r(e),n.d(e,"PADDING_TOP",(function(){return s})),n.d(e,"BREAD_CRUMB_NAME",(function(){return u})),n.d(e,"DEFAULT_BREAD_CRUMB_CONFIG",(function(){return l})),n.d(e,"HIERARCHY_DATA_TRANSFORM_PARAMS",(function(){return c})),n.d(e,"DrillDownAction",(function(){return h}));var r=n(2),i=n(13),o=n(1),a=n(666),s=5,u="drilldown-bread-crumb",l={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},c="hierarchy-data-transform-params",h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="drill-down",e.historyCache=[],e.breadCrumbGroup=null,e.breadCrumbCfg=l,e}return Object(r.__extends)(e,t),e.prototype.click=function(){var t=Object(o.get)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},e.prototype.resetPosition=function(){if(this.breadCrumbGroup){var t=this.context.view.getCoordinate(),e=this.breadCrumbGroup,n=e.getBBox(),r=this.getButtonCfg().position,o={x:t.start.x,y:t.end.y-(n.height+2*s)};t.isPolar&&(o={x:0,y:0}),"bottom-left"===r&&(o={x:t.start.x,y:t.start.y});var a=i.Util.transform(null,[["t",o.x+0,o.y+n.height+s]]);e.setMatrix(a)}},e.prototype.back=function(){Object(o.size)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},e.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},e.prototype.drill=function(t){var e=this.context.view,n=Object(o.get)(e,["interactions","drill-down","cfg","transformData"],(function(t){return t})),i=n(Object(r.__assign)({data:t.data},t[c]));e.changeData(i);for(var a=[],s=t;s;){var u=s.data;a.unshift({id:u.name+"_"+s.height+"_"+s.depth,name:u.name,children:n(Object(r.__assign)({data:u},t[c]))}),s=s.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(a)},e.prototype.backTo=function(t){if(t&&!(t.length<=0)){var e=this.context.view,n=Object(o.last)(t).children;e.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(o.get)(t,["interactions","drill-down","cfg","drillDownConfig"]);return Object(a.deepAssign)(this.breadCrumbCfg,null==e?void 0:e.breadCrumb,this.cfg)},e.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},e.prototype.drawBreadCrumbGroup=function(){var t=this,e=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:u});var i=0;n.forEach((function(a,s){var l=t.breadCrumbGroup.addShape({type:"text",id:a.id,name:u+"_"+a.name+"_text",attrs:Object(r.__assign)(Object(r.__assign)({text:0!==s||Object(o.isNil)(e.rootText)?a.name:e.rootText},e.textStyle),{x:i,y:0})}),c=l.getBBox();if(i+=c.width+4,l.on("click",(function(e){var r,i=e.target.get("id");if(i!==(null===(r=Object(o.last)(n))||void 0===r?void 0:r.id)){var a=n.slice(0,n.findIndex((function(t){return t.id===i}))+1);t.backTo(a)}})),l.on("mouseenter",(function(t){var r;t.target.get("id")!==(null===(r=Object(o.last)(n))||void 0===r?void 0:r.id)?l.attr(e.activeTextStyle):l.attr({cursor:"default"})})),l.on("mouseleave",(function(){l.attr(e.textStyle)})),s<n.length-1){var h=t.breadCrumbGroup.addShape({type:"text",name:e.name+"_"+a.name+"_divider",attrs:Object(r.__assign)(Object(r.__assign)({text:e.dividerText},e.textStyle),{x:i,y:0})}).getBBox();i+=h.width+4}}))},e.prototype.hideCrumbGroup=function(){this.breadCrumbGroup&&this.breadCrumbGroup.hide()},e.prototype.destroy=function(){this.breadCrumbGroup&&this.breadCrumbGroup.remove(),t.prototype.destroy.call(this)},e}(i.Action)},function(t,e,n){var r=n(2136);function i(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=i=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=i=function(t,e,n){var i=r(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},t.exports.__esModule=!0,t.exports.default=t.exports),i.apply(this,arguments)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return d}));var r,i=n(16),o=n.n(i),a=n(17),s=n.n(a),u=n(4),l=n.n(u),c=n(21),h=(n(94),n(29)),f=n(220),d=Object(c.injectable)()(r=function(){function t(){o()(this,t),l()(this,"shaderModuleService",void 0),l()(this,"rendererService",void 0),l()(this,"cameraService",void 0),l()(this,"mapService",void 0),l()(this,"interactionService",void 0),l()(this,"layerService",void 0),l()(this,"config",void 0)}return s()(t,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return f.PassType.Normal}},{key:"init",value:function(t,e){this.config=e,this.rendererService=t.getContainer().get(h.TYPES.IRendererService),this.cameraService=t.getContainer().get(h.TYPES.ICameraService),this.mapService=t.getContainer().get(h.TYPES.IMapService),this.interactionService=t.getContainer().get(h.TYPES.IInteractionService),this.layerService=t.getContainer().get(h.TYPES.ILayerService),this.shaderModuleService=t.getContainer().get(h.TYPES.IShaderModuleService)}},{key:"render",value:function(t){}}]),t}())||r},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(1866);function i(){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=Object(r.default)(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}},function(t,e,n){"use strict";n.r(e),n.d(e,"cloneValue",(function(){return v}));var r=n(1337),i=n(80),o=n(0),a=n(693),s=n(473),u=n(84),l=Array.prototype.slice;function c(t,e,n){return(e-t)*n+t}function h(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=c(e[o],n[o],r);return t}function f(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function d(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function p(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function g(t,e,n){var r=t,i=e;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a)if(o>a)r.length=a;else for(var s=o;s<a;s++)r.push(1===n?i[s]:l.call(i[s]));var u=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var c=0;c<u;c++)isNaN(r[s][c])&&(r[s][c]=i[s][c])}}function v(t){if(Object(o.isArrayLike)(t)){var e=t.length;if(Object(o.isArrayLike)(t[0])){for(var n=[],r=0;r<e;r++)n.push(l.call(t[r]));return n}return l.call(t)}return t}function m(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function y(t){return 4===t||5===t}function b(t){return 1===t||2===t}var _=[0,0,0,0],x=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,l=r.length,c=!1,h=6,f=e;if(Object(o.isArrayLike)(e)){var d=function(t){return Object(o.isArrayLike)(t&&t[0])?2:1}(e);h=d,(1===d&&!Object(o.isNumber)(e[0])||2===d&&!Object(o.isNumber)(e[0][0]))&&(c=!0)}else if(Object(o.isNumber)(e)&&!Object(o.eqNaN)(e))h=0;else if(Object(o.isString)(e))if(isNaN(+e)){var p=i.parse(e);p&&(f=p,h=3)}else h=0;else if(Object(o.isGradientObject)(e)){var g=Object(o.extend)({},f);g.colorStops=Object(o.map)(e.colorStops,(function(t){return{offset:t.offset,color:i.parse(t.color)}})),Object(u.isLinearGradient)(e)?h=4:Object(u.isRadialGradient)(e)&&(h=5),f=g}0===l?this.valType=h:h===this.valType&&6!==h||(c=!0),this.discrete=this.discrete||c;var v={time:t,value:f,rawValue:e,percent:0};return n&&(v.easing=n,v.easingFunc=Object(o.isFunction)(n)?n:a.default[n]||Object(s.createCubicEasingFunc)(n)),r.push(v),v},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=b(r),u=y(r),l=0;l<i;l++){var c=n[l],h=c.value,v=o.value;c.percent=c.time/t,a||(s&&l!==i-1?g(h,v,r):u&&p(h.colorStops,v.colorStops))}if(!a&&5!==r&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var m=n[0].value;for(l=0;l<i;l++)0===r?n[l].additiveValue=n[l].value-m:3===r?n[l].additiveValue=f([],n[l].value,m,-1):b(r)&&(n[l].additiveValue=1===r?f([],n[l].value,m,-1):d([],n[l].value,m,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,a=null!=this._additiveTrack,s=a?"additiveValue":"value",u=this.valType,l=this.keyframes,f=l.length,d=this.propName,p=3===u,g=this._lastFr,v=Math.min;if(1===f)r=i=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=v(g+1,f-1);n>=0&&!(l[n].percent<=e);n--);n=v(n,f-2)}else{for(n=g;n<f&&!(l[n].percent>e);n++);n=v(n-1,f-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var x=i.percent-r.percent,w=0===x?1:v((e-r.percent)/x,1);i.easingFunc&&(w=i.easingFunc(w));var O=a?this._additiveValue:p?_:t[d];if(!b(u)&&!p||O||(O=this._additiveValue=[]),this.discrete)t[d]=w<1?r.rawValue:i.rawValue;else if(b(u))1===u?h(O,r[s],i[s],w):function(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=c(e[a][s],n[a][s],r)}}(O,r[s],i[s],w);else if(y(u)){var S=r[s],C=i[s],E=4===u;t[d]={type:E?"linear":"radial",x:c(S.x,C.x,w),y:c(S.y,C.y,w),colorStops:Object(o.map)(S.colorStops,(function(t,e){var n=C.colorStops[e];return{offset:c(t.offset,n.offset,w),color:m(h([],t.color,n.color,w))}})),global:C.global},E?(t[d].x2=c(S.x2,C.x2,w),t[d].y2=c(S.y2,C.y2,w)):t[d].r=c(S.r,C.r,w)}else if(p)h(O,r[s],i[s],w),a||(t[d]=m(O));else{var T=c(r[s],i[s],w);a?this._additiveValue=T:t[d]=T}a&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;0===e?t[n]=t[n]+r:3===e?(i.parse(t[n],_),f(_,_,r,1),t[n]=m(_)):1===e?f(t[n],t[n],r,1):2===e&&d(t[n],t[n],r,1)},t}(),w=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Object(o.logError)("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(o.keys)(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new x(a);var u=void 0,l=this._getAdditiveTrack(a);if(l){var c=l.keyframes,h=c[c.length-1];u=h&&h.value,3===l.valType&&u&&(u=m(u))}else u=this._target[a];if(null==u)continue;t>0&&s.addKeyframe(0,v(u),r),this._trackKeys.push(a)}s.addKeyframe(t,v(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],u=this._getAdditiveTrack(a),l=s.keyframes,c=l.length;if(s.prepare(i,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[c-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var f=new r.default({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var r=e._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),t&&f.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Object(o.map)(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[i]=v(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Object(o.keys)(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var s=a.pop();i.addKeyframe(s.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();e.default=w},function(t,e,n){"use strict";n.r(e),n.d(e,"subPixelOptimizeLine",(function(){return i})),n.d(e,"subPixelOptimizeRect",(function(){return o})),n.d(e,"subPixelOptimize",(function(){return a}));var r=Math.round;function i(t,e,n){if(e){var i=e.x1,o=e.x2,s=e.y1,u=e.y2;t.x1=i,t.x2=o,t.y1=s,t.y2=u;var l=n&&n.lineWidth;return l?(r(2*i)===r(2*o)&&(t.x1=t.x2=a(i,l,!0)),r(2*s)===r(2*u)&&(t.y1=t.y2=a(s,l,!0)),t):t}}function o(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,s=e.height;t.x=r,t.y=i,t.width=o,t.height=s;var u=n&&n.lineWidth;return u?(t.x=a(r,u,!0),t.y=a(i,u,!0),t.width=Math.max(a(r+o,u,!1)-t.x,0===o?0:1),t.height=Math.max(a(i+s,u,!1)-t.y,0===s?0:1),t):t}}function a(t,e,n){if(!e)return t;var i=r(2*t);return(i+r(e))%2==0?i/2:(i+(n?1:-1))/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"createTask",(function(){return i})),n.d(e,"Task",(function(){return o}));var r=n(0);function i(t){return new o(t)}var o=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var a,s=h(this._modBy),u=this._modDataCount||0,l=h(t&&t.modBy),c=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}s===l&&u===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,a=this._doReset(i)),this._modBy=l,this._modDataCount=c;var f=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=f?this._dueIndex+f:1/0,this._dueEnd);if(!i&&(a||d<p)){var g=this._progress;if(Object(r.isArray)(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],d,p,l,c);else this._doProgress(g,d,p,l,c)}this._dueIndex=p;var m=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){a.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:a.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Object(r.isArray)(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),a=function(){var t,e,n,r,i,o={reset:function(u,l,c,h){e=u,t=l,n=c,r=h,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%i*n+Math.ceil(e/i),a=e>=t?null:o<r?o:e;return e++,a}}()},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(41),a=n(172),s=n(9),u=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),l=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e,n){var r=c(t);this.settledOption=r,this.mergeDefaultAndTheme(t,n),this._doInit(r)},e.prototype.mergeOption=function(t){var e=c(t);Object(i.merge)(this.option,t,!0),Object(i.merge)(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Object(i.each)([["start","startValue"],["end","endValue"]],(function(t,r){"value"===this._rangePropMode[r]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(i.createHashMap)();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(i.each)(a.DATA_ZOOM_AXIS_DIMENSIONS,(function(n){var r=this.getReferringComponents(Object(a.getAxisMainType)(n),s.MULTIPLE_REFERRING);if(r.specified){e=!0;var o=new u;Object(i.each)(r.models,(function(t){o.add(t.componentIndex)})),t.set(n,o)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,r=!0;if(r){var o="vertical"===e?"y":"x";l(n.findComponents({mainType:o+"Axis"}),o)}r&&l(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single");function l(e,n){var o=e[0];if(o){var a=new u;if(a.add(o.componentIndex),t.set(n,a),r=!1,"x"===n||"y"===n){var l=o.getReferringComponents("grid",s.SINGLE_REFERRING).models[0];l&&Object(i.each)(e,(function(t){o.componentIndex!==t.componentIndex&&l===t.getReferringComponents("grid",s.SINGLE_REFERRING).models[0]&&a.add(t.componentIndex)}))}}}r&&Object(i.each)(a.DATA_ZOOM_AXIS_DIMENSIONS,(function(e){if(r){var i=n.findComponents({mainType:Object(a.getAxisMainType)(e),filter:function(t){return"category"===t.get("type",!0)}});if(i[0]){var o=new u;o.add(i[0].componentIndex),t.set(e,o),r=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(i.each)([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=t[r[0]],a=null!=t[r[1]];o&&!a?e[i]="percent":!o&&a?e[i]="value":n?e[i]=n[i]:o&&(e[i]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(Object(a.getAxisMainType)(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,r){Object(i.each)(n.indexList,(function(n){t.call(e,r,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(Object(a.getAxisMainType)(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(i.each)([["start","startValue"],["end","endValue"]],(function(r){null==t[r[0]]&&null==t[r[1]]||(e[r[0]]=n[r[0]]=t[r[0]],e[r[1]]=n[r[1]]=t[r[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(i.each)(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],o=this._targetAxisInfoMap.get(i),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(i,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(o.default);function c(t){var e={};return Object(i.each)(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_Y",(function(){return r})),n.d(e,"MARGIN_RATIO",(function(){return i})),n.d(e,"DODGE_RATIO",(function(){return o})),n.d(e,"GAP",(function(){return a}));var r=0,i=.5,o=.5,a=.05},function(t,e,n){"use strict";n.r(e),n.d(e,"getAttribute",(function(){return a})),n.d(e,"registerAttribute",(function(){return s}));var r=n(217);n.d(e,"Attribute",(function(){return r.default}));var i=n(623);n.d(e,"Scale",(function(){return i.Scale}));var o={},a=function(t){return o[t.toLowerCase()]},s=function(t,e){if(a(t))throw new Error("Attribute type '"+t+"' existed.");o[t.toLowerCase()]=e}},function(t,e,n){"use strict";n.r(e),n.d(e,"clearHighlight",(function(){return o})),n.d(e,"setHighlightBy",(function(){return a}));var r=n(1),i=n(24);function o(t){var e=Object(i.getElements)(t);Object(r.each)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}function a(t,e,n){Object(r.each)(t,(function(t){e(t)?(t.hasState("inactive")&&t.setState("inactive",!1),t.setState("active",n)):(t.hasState("active")&&t.setState("active",!1),t.setState("inactive",n))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"getSectorCornerRadius",(function(){return o}));var r=n(0),i=n(60);function o(t,e,n){var o=t.get("borderRadius");if(null==o)return n?{cornerRadius:0}:null;Object(r.isArray)(o)||(o=[o,o,o,o]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(r.map)(o,(function(t){return Object(i.parsePercent)(t,a)}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"makeRectPanelClipPath",(function(){return a})),n.d(e,"makeLinearBrushOtherExtent",(function(){return s})),n.d(e,"makeRectIsTargetByCursor",(function(){return u}));var r=n(35),i=n(385),o=n(12);function a(t){return t=l(t),function(e){return o.clipPointsByRect(e,t)}}function s(t,e){return t=l(t),function(n){var r=null!=e?e:n,i=r?t.width:t.height,o=r?t.x:t.y;return[o,o+(i||0)]}}function u(t,e,n){var r=l(t);return function(t,o){return r.contain(o[0],o[1])&&!Object(i.onIrrelevantElement)(t,e,n)}}function l(t){return r.default.create(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"isEC4CompatibleStyle",(function(){return i})),n.d(e,"convertFromEC4CompatibleStyle",(function(){return o})),n.d(e,"convertToEC4StyleForCustomSerise",(function(){return s})),n.d(e,"warnDeprecated",(function(){return l}));var r=n(0);function i(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||Object(r.hasOwn)(t,"text")))}function o(t,e,n){var i,o,s,u=t;if("text"===e)s=u;else{s={},Object(r.hasOwn)(u,"text")&&(s.text=u.text),Object(r.hasOwn)(u,"rich")&&(s.rich=u.rich),Object(r.hasOwn)(u,"textFill")&&(s.fill=u.textFill),Object(r.hasOwn)(u,"textStroke")&&(s.stroke=u.textStroke),Object(r.hasOwn)(u,"fontFamily")&&(s.fontFamily=u.fontFamily),Object(r.hasOwn)(u,"fontSize")&&(s.fontSize=u.fontSize),Object(r.hasOwn)(u,"fontStyle")&&(s.fontStyle=u.fontStyle),Object(r.hasOwn)(u,"fontWeight")&&(s.fontWeight=u.fontWeight),o={type:"text",style:s,silent:!0},i={};var l=Object(r.hasOwn)(u,"textPosition");n?i.position=l?u.textPosition:"inside":l&&(i.position=u.textPosition),Object(r.hasOwn)(u,"textPosition")&&(i.position=u.textPosition),Object(r.hasOwn)(u,"textOffset")&&(i.offset=u.textOffset),Object(r.hasOwn)(u,"textRotation")&&(i.rotation=u.textRotation),Object(r.hasOwn)(u,"textDistance")&&(i.distance=u.textDistance)}return a(s,t),Object(r.each)(s.rich,(function(t){a(t,t)})),{textConfig:i,textContent:o}}function a(t,e){e&&(e.font=e.textFont||e.font,Object(r.hasOwn)(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(r.hasOwn)(e,"textAlign")&&(t.align=e.textAlign),Object(r.hasOwn)(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(r.hasOwn)(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(r.hasOwn)(e,"textWidth")&&(t.width=e.textWidth),Object(r.hasOwn)(e,"textHeight")&&(t.height=e.textHeight),Object(r.hasOwn)(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(r.hasOwn)(e,"textPadding")&&(t.padding=e.textPadding),Object(r.hasOwn)(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(r.hasOwn)(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(r.hasOwn)(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(r.hasOwn)(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(r.hasOwn)(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(r.hasOwn)(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(r.hasOwn)(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function s(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var o=i.textPosition.indexOf("inside")>=0,a=t.fill||"#000";u(i,e);var s=null==i.textFill;return o?s&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=a),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(s&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,Object(r.each)(e.rich,(function(t){u(t,t)})),i}function u(t,e){e&&(Object(r.hasOwn)(e,"fill")&&(t.textFill=e.fill),Object(r.hasOwn)(e,"stroke")&&(t.textStroke=e.fill),Object(r.hasOwn)(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(r.hasOwn)(e,"font")&&(t.font=e.font),Object(r.hasOwn)(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(r.hasOwn)(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(r.hasOwn)(e,"fontSize")&&(t.fontSize=e.fontSize),Object(r.hasOwn)(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(r.hasOwn)(e,"align")&&(t.textAlign=e.align),Object(r.hasOwn)(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(r.hasOwn)(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(r.hasOwn)(e,"width")&&(t.textWidth=e.width),Object(r.hasOwn)(e,"height")&&(t.textHeight=e.height),Object(r.hasOwn)(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(r.hasOwn)(e,"padding")&&(t.textPadding=e.padding),Object(r.hasOwn)(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(r.hasOwn)(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(r.hasOwn)(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(r.hasOwn)(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(r.hasOwn)(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(r.hasOwn)(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(r.hasOwn)(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(r.hasOwn)(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(r.hasOwn)(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(r.hasOwn)(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(r.hasOwn)(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}function l(t,e){}},function(t,e,n){"use strict";n.r(e),n.d(e,"getItemAlign",(function(){return a})),n.d(e,"makeHighDownBatch",(function(){return s}));var r=n(0),i=n(33),o=[["left","right","width"],["top","bottom","height"]];function a(t,e,n){var r=t.option,a=r.align;if(null!=a&&"auto"!==a)return a;for(var s={width:e.getWidth(),height:e.getHeight()},u="horizontal"===r.orient?1:0,l=o[u],c=[0,null,10],h={},f=0;f<3;f++)h[o[1-u][f]]=c[f],h[l[f]]=2===f?n[0]:r[l[f]];var d=[["x","width",3],["y","height",0]][u],p=Object(i.getLayoutRect)(h,s,r.padding);return l[(p.margin[d[2]]||0)+p[d[0]]+.5*p[d[1]]<.5*s[d[1]]?0:1]}function s(t,e){return r.each(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}},function(t,e,n){"use strict";n.r(e),n.d(e,"getCPath",(function(){return i})),n.d(e,"getQPath",(function(){return o}));var r=n(1);function i(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]}function o(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var i=["Q"];return Object(r.each)(n,(function(t){i.push(t.x,t.y)})),i}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTotalValue",(function(){return o})),n.d(e,"adaptOffset",(function(){return a})),n.d(e,"isAllZero",(function(){return s}));var r=n(1),i=n(3);function o(t,e){var n=null;return Object(r.each)(t,(function(t){"number"==typeof t[e]&&(n+=t[e])})),n}function a(t,e){var n;switch(t){case"inner":return n="-30%",Object(r.isString)(e)&&e.endsWith("%")?.01*parseFloat(e)>0?n:e:e<0?e:n;case"outer":return n=12,Object(r.isString)(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function s(t,e){return Object(r.every)(Object(i.processIllegalData)(t,e),(function(t){return 0===t[e]}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformOptions",(function(){return c})),n.d(e,"meta",(function(){return f})),n.d(e,"tooltip",(function(){return y})),n.d(e,"adaptor",(function(){return b}));var r=n(2),i=n(1),o=n(3),a=n(34),s=n(755),u=n(8),l=n(811);function c(t){var e=t.data,n=void 0===e?[]:e,r=t.xField,i=t.yField;if(n.length){for(var a=!0,s=!0,u=n[0],c=void 0,h=1;h<n.length&&(c=n[h],u[r]!==c[r]&&(a=!1),u[i]!==c[i]&&(s=!1),a||s);h++)u=c;var f=[];a&&f.push(r),s&&f.push(i);var d=Object(o.pick)(Object(l.getMeta)(t),f);return Object(o.deepAssign)({},t,{meta:d})}return t}function h(t){var e=t.chart,n=t.options,s=n.data,u=n.type,l=n.color,c=n.shape,h=n.pointStyle,f=n.shapeField,d=n.colorField,p=n.xField,g=n.yField,v=n.sizeField,m=n.size,y=n.tooltip;v&&(m||(m=[2,8]),Object(i.isNumber)(m)&&(m=[m,m])),y&&!y.fields&&(y=Object(r.__assign)(Object(r.__assign)({},y),{fields:[p,g,d,v,f]})),e.data(s),Object(a.point)(Object(o.deepAssign)({},t,{options:{seriesField:d,point:{color:l,shape:c,size:m,style:h},tooltip:y}}));var b=Object(o.findGeometry)(e,"point");return u&&b.adjust(u),t}function f(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,s=n.yField,l=c(n);return Object(o.flow)(Object(u.scale)(((e={})[a]=r,e[s]=i,e)))(Object(o.deepAssign)({},t,{options:l}))}function d(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return e.axis(o,r),e.axis(a,i),t}function p(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.shapeField,a=n.sizeField,s=n.shapeLegend,u=n.sizeLegend,l=!1!==r;return i&&e.legend(i,!!l&&r),o&&(s?e.legend(o,s):e.legend(o,!1!==s&&r)),a&&e.legend(a,u||!1),l||s||u||e.legend(!1),t}function g(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=Object(o.findGeometry)(e,"point");if(i){var u=i.callback,l=Object(r.__rest)(i,["callback"]);s.label({fields:[a],callback:u,cfg:Object(o.transformLabel)(l)})}else s.label(!1);return t}function v(t){var e=t.options.quadrant,n=[];if(e){var i=e.xBaseline,a=void 0===i?0:i,s=e.yBaseline,c=void 0===s?0:s,h=e.labels,f=e.regionStyle,d=e.lineStyle,p=Object(l.getQuadrantDefaultConfig)(a,c);new Array(4).join(",").split(",").forEach((function(t,e){n.push(Object(r.__assign)(Object(r.__assign)({type:"region",top:!1},p.regionStyle[e].position),{style:Object(o.deepAssign)({},p.regionStyle[e].style,null==f?void 0:f[e])}),Object(r.__assign)({type:"text",top:!0},Object(o.deepAssign)({},p.labelStyle[e],null==h?void 0:h[e])))})),n.push({type:"line",top:!1,start:["min",c],end:["max",c],style:Object(o.deepAssign)({},p.lineStyle,d)},{type:"line",top:!1,start:[a,"min"],end:[a,"max"],style:Object(o.deepAssign)({},p.lineStyle,d)})}return Object(o.flow)(Object(u.annotation)(n))(t)}function m(t){var e=t.options,n=t.chart,i=e.regressionLine;if(i){var o=i.style,a=i.top,s=void 0!==a&&a,u={stroke:"#9ba29a",lineWidth:2,opacity:.5};n.annotation().shape({top:s,render:function(t,i){var a=t.addGroup({id:n.id+"-regression-line",name:"regression-line-group"}),s=Object(l.getPath)({view:i,options:e});a.addShape("path",{name:"regression-line",attrs:Object(r.__assign)(Object(r.__assign)({path:s},u),o)})}})}return t}function y(t){var e=t.chart,n=t.options.tooltip;return n?e.tooltip(n):!1===n&&e.tooltip(!1),t}function b(t){return Object(o.flow)(h,f,d,p,y,g,s.brushInteraction,u.slider,u.scrollbar,u.interaction,v,u.animation,u.theme,m)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"TILE_SIZE",(function(){return s})),n.d(e,"DEFAULT_EXTENT",(function(){return u})),n.d(e,"BOUNDS_BUFFER_SCALE",(function(){return l})),n.d(e,"DEFAULT_CACHE_SCALE",(function(){return c})),n.d(e,"UPDATE_TILE_STRATEGIES",(function(){return h})),n.d(e,"NOOP",(function(){return f}));var r,i=n(52),o=n(168),a=n(815),s=256,u=[-1/0,-1/0,1/0,1/0],l=.2,c=5,h=(r={},Object(i.default)(r,o.UpdateTileStrategy.Realtime,a.updateTileStateRealtime),Object(i.default)(r,o.UpdateTileStrategy.Overlap,a.updateTileStateOverlap),Object(i.default)(r,o.UpdateTileStrategy.Replace,a.updateTileStateReplace),r),f=function(){}},function(t,e,n){!function(t){"use strict";function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function n(t,e,n,r){t=t.filter((function(t,r){var i=e(t,r),o=n(t,r);return null!=i&&isFinite(i)&&null!=o&&isFinite(o)})),r&&t.sort((function(t,n){return e(t)-e(n)}));for(var i,o,a,s=t.length,u=new Float64Array(s),l=new Float64Array(s),c=0,h=0,f=0;f<s;)a=t[f],u[f]=i=+e(a,f,t),l[f]=o=+n(a,f,t),c+=(i-c)/++f,h+=(o-h)/f;for(var d=0;d<s;++d)u[d]-=c,l[d]-=h;return[u,l,c,h]}function r(t,e,n,r){for(var i=0,o=0,a=t.length;o<a;o++){var s=t[o],u=+e(s,o,t),l=+n(s,o,t);null!=u&&isFinite(u)&&null!=l&&isFinite(l)&&r(u,l,i++)}}function i(t,e,n,i,o){var a=0,s=0;return r(t,e,n,(function(t,e){var n=e-o(t),r=e-i;a+=n*n,s+=r*r})),1-a/s}function o(t){return 180*Math.atan2(t[1][1]-t[0][1],t[1][0]-t[0][0])/Math.PI}function a(t,e,n){for(var r=Math.log(e-t)*Math.LOG10E+1|0,i=1*Math.pow(10,-r/2-1),a=[u(t),u(e)],s=0;l(a)&&s<1e4;);return a;function u(t){return[t,n(t)]}function l(t){s++;for(var e,n=t.length,r=!1,a=0;a<n-1;a++){var l=t[a],c=t[a+1],h=[((e=[l,c])[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2],f=u(h[0]),d=o([l,h]),p=o([l,f]);Math.abs(d-p)>i&&(t.splice(a+1,0,f),r=!0)}return r}}function s(t,e,n,r){var i=r-t*t,o=Math.abs(i)<1e-24?0:(n-t*e)/i;return[e-o*t,o]}function u(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function a(a){var u=0,l=0,c=0,h=0,f=0,d=t?+t[0]:1/0,p=t?+t[1]:-1/0;r(a,n,o,(function(e,n){++u,l+=(e-l)/u,c+=(n-c)/u,h+=(e*n-h)/u,f+=(e*e-f)/u,t||(e<d&&(d=e),e>p&&(p=e))}));var g=e(s(l,c,h,f),2),v=g[0],m=g[1],y=function(t){return m*t+v},b=[[d,y(d)],[p,y(p)]];return b.a=m,b.b=v,b.predict=y,b.rSquared=i(a,n,o,c,y),b}return a.domain=function(e){return arguments.length?(t=e,a):t},a.x=function(t){return arguments.length?(n=t,a):n},a.y=function(t){return arguments.length?(o=t,a):o},a}function l(t){t.sort((function(t,e){return t-e}));var e=t.length/2;return e%1==0?(t[e-1]+t[e])/2:t[Math.floor(e)]}function c(t){return(t=1-t*t*t)*t*t}function h(t,e,n){var r=t[e],i=n[0],o=n[1]+1;if(!(o>=t.length))for(;e>i&&t[o]-r<=r-t[i];)n[0]=++i,n[1]=o,++o}function f(){var t,o=function(t){return t[0]},s=function(t){return t[1]};function u(u){var l,c,h,f,d=e(n(u,o,s),4),p=d[0],g=d[1],v=d[2],m=d[3],y=p.length,b=0,_=0,x=0,w=0,O=0;for(l=0;l<y;)c=p[l],h=g[l++],b+=((f=c*c)-b)/l,_+=(f*c-_)/l,x+=(f*f-x)/l,w+=(c*h-w)/l,O+=(f*h-O)/l;var S=0,C=0,E=t?+t[0]:1/0,T=t?+t[1]:-1/0;r(u,o,s,(function(e,n){C++,S+=(n-S)/C,t||(e<E&&(E=e),e>T&&(T=e))}));var A=x-b*b,M=b*A-_*_,I=(O*b-w*_)/M,j=(w*A-O*_)/M,k=-I*b,P=function(t){return I*(t-=v)*t+j*t+k+m},L=a(E,T,P);return L.a=I,L.b=j-2*I*v,L.c=k-j*v+I*v*v+m,L.predict=P,L.rSquared=i(u,o,s,S,P),L}return u.domain=function(e){return arguments.length?(t=e,u):t},u.x=function(t){return arguments.length?(o=t,u):o},u.y=function(t){return arguments.length?(s=t,u):s},u}t.regressionExp=function(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function u(u){var l=0,c=0,h=0,f=0,d=0,p=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;r(u,n,o,(function(e,n){var r=Math.log(n),i=e*n;++l,c+=(n-c)/l,f+=(i-f)/l,p+=(e*i-p)/l,h+=(n*r-h)/l,d+=(i*r-d)/l,t||(e<g&&(g=e),e>v&&(v=e))}));var m=e(s(f/c,h/c,d/c,p/c),2),y=m[0],b=m[1];y=Math.exp(y);var _=function(t){return y*Math.exp(b*t)},x=a(g,v,_);return x.a=y,x.b=b,x.predict=_,x.rSquared=i(u,n,o,c,_),x}return u.domain=function(e){return arguments.length?(t=e,u):t},u.x=function(t){return arguments.length?(n=t,u):n},u.y=function(t){return arguments.length?(o=t,u):o},u},t.regressionLinear=u,t.regressionLoess=function(){var t=function(t){return t[0]},r=function(t){return t[1]},i=.3;function o(o){for(var a=e(n(o,t,r,!0),4),u=a[0],f=a[1],d=a[2],p=a[3],g=u.length,v=Math.max(2,~~(i*g)),m=new Float64Array(g),y=new Float64Array(g),b=new Float64Array(g).fill(1),_=-1;++_<=2;){for(var x=[0,v-1],w=0;w<g;++w){for(var O=u[w],S=x[0],C=x[1],E=O-u[S]>u[C]-O?S:C,T=0,A=0,M=0,I=0,j=0,k=1/Math.abs(u[E]-O||1),P=S;P<=C;++P){var L=u[P],R=f[P],D=c(Math.abs(O-L)*k)*b[P],N=L*D;T+=D,A+=N,M+=R*D,I+=R*N,j+=L*N}var B=e(s(A/T,M/T,I/T,j/T),2),F=B[0],z=B[1];m[w]=F+z*O,y[w]=Math.abs(f[w]-m[w]),h(u,w+1,x)}if(2===_)break;var V=l(y);if(Math.abs(V)<1e-12)break;for(var U,G,H=0;H<g;++H)U=y[H]/(6*V),b[H]=U>=1?1e-12:(G=1-U*U)*G}return function(t,e,n,r){for(var i,o=t.length,a=[],s=0,u=0,l=[];s<o;++s)i=t[s]+n,l[0]===i?l[1]+=(e[s]-l[1])/++u:(u=0,l[1]+=r,l=[i,e[s]],a.push(l));return l[1]+=r,a}(u,m,d,p)}return o.bandwidth=function(t){return arguments.length?(i=t,o):i},o.x=function(e){return arguments.length?(t=e,o):t},o.y=function(t){return arguments.length?(r=t,o):r},o},t.regressionLog=function(){var t,n=function(t){return t[0]},o=function(t){return t[1]},u=Math.E;function l(l){var c=0,h=0,f=0,d=0,p=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0,m=Math.log(u);r(l,n,o,(function(e,n){var r=Math.log(e)/m;++c,h+=(r-h)/c,f+=(n-f)/c,d+=(r*n-d)/c,p+=(r*r-p)/c,t||(e<g&&(g=e),e>v&&(v=e))}));var y=e(s(h,f,d,p),2),b=y[0],_=y[1],x=function(t){return _*Math.log(t)/m+b},w=a(g,v,x);return w.a=_,w.b=b,w.predict=x,w.rSquared=i(l,n,o,f,x),w}return l.domain=function(e){return arguments.length?(t=e,l):t},l.x=function(t){return arguments.length?(n=t,l):n},l.y=function(t){return arguments.length?(o=t,l):o},l.base=function(t){return arguments.length?(u=t,l):u},l},t.regressionPoly=function(){var t,o=function(t){return t[0]},s=function(t){return t[1]},l=3;function c(c){if(1===l){var h=u().x(o).y(s).domain(t)(c);return h.coefficients=[h.b,h.a],delete h.a,delete h.b,h}if(2===l){var d=f().x(o).y(s).domain(t)(c);return d.coefficients=[d.c,d.b,d.a],delete d.a,delete d.b,delete d.c,d}var p,g,v,m,y,b=e(n(c,o,s),4),_=b[0],x=b[1],w=b[2],O=b[3],S=_.length,C=[],E=[],T=l+1,A=0,M=0,I=t?+t[0]:1/0,j=t?+t[1]:-1/0;for(r(c,o,s,(function(e,n){++M,A+=(n-A)/M,t||(e<I&&(I=e),e>j&&(j=e))})),p=0;p<T;++p){for(v=0,m=0;v<S;++v)m+=Math.pow(_[v],p)*x[v];for(C.push(m),y=new Float64Array(T),g=0;g<T;++g){for(v=0,m=0;v<S;++v)m+=Math.pow(_[v],p+g);y[g]=m}E.push(y)}E.push(C);var k=function(t){var e,n,r,i,o,a=t.length-1,s=[];for(e=0;e<a;++e){for(i=e,n=e+1;n<a;++n)Math.abs(t[e][n])>Math.abs(t[e][i])&&(i=n);for(r=e;r<a+1;++r)o=t[r][e],t[r][e]=t[r][i],t[r][i]=o;for(n=e+1;n<a;++n)for(r=a;r>=e;r--)t[r][n]-=t[r][e]*t[e][n]/t[e][e]}for(n=a-1;n>=0;--n){for(o=0,r=n+1;r<a;++r)o+=t[r][n]*s[r];s[n]=(t[a][n]-o)/t[n][n]}return s}(E),P=function(t){t-=w;var e=O+k[0]+k[1]*t+k[2]*t*t;for(p=3;p<T;++p)e+=k[p]*Math.pow(t,p);return e},L=a(I,j,P);return L.coefficients=function(t,e,n,r){var i,o,a,s,u=Array(t);for(i=0;i<t;++i)u[i]=0;for(i=t-1;i>=0;--i)for(a=e[i],s=1,u[i]+=a,o=1;o<=i;++o)s*=(i+1-o)/o,u[i-o]+=a*Math.pow(n,o)*s;return u[0]+=r,u}(T,k,-w,O),L.predict=P,L.rSquared=i(c,o,s,A,P),L}return c.domain=function(e){return arguments.length?(t=e,c):t},c.x=function(t){return arguments.length?(o=t,c):o},c.y=function(t){return arguments.length?(s=t,c):s},c.order=function(t){return arguments.length?(l=t,c):l},c},t.regressionPow=function(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function u(u){var l=0,c=0,h=0,f=0,d=0,p=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;r(u,n,o,(function(e,n){var r=Math.log(e),i=Math.log(n);++l,c+=(r-c)/l,h+=(i-h)/l,f+=(r*i-f)/l,d+=(r*r-d)/l,p+=(n-p)/l,t||(e<g&&(g=e),e>v&&(v=e))}));var m=e(s(c,h,f,d),2),y=m[0],b=m[1];y=Math.exp(y);var _=function(t){return y*Math.pow(t,b)},x=a(g,v,_);return x.a=y,x.b=b,x.predict=_,x.rSquared=i(u,n,o,p,_),x}return u.domain=function(e){return arguments.length?(t=e,u):t},u.x=function(t){return arguments.length?(n=t,u):n},u.y=function(t){return arguments.length?(o=t,u):o},u},t.regressionQuad=f,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){"use strict";function r(t,e,n){this.$children.forEach((function(i){i.$options.componentName===t?i.$emit.apply(i,[e].concat(n)):r.apply(i,[t,e].concat([n]))}))}e.__esModule=!0,e.default={methods:{dispatch:function(t,e,n){for(var r=this.$parent||this.$root,i=r.$options.componentName;r&&(!i||i!==t);)(r=r.$parent)&&(i=r.$options.componentName);r&&r.$emit.apply(r,[e].concat(n))},broadcast:function(t,e,n){r.call(this,t,e,n)}}}},function(t,e,n){t.exports=!n(540)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.id=void 0;var r=0;e.id=function(){return r++}},function(t,e,n){var r=n(1235),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e,n){"use strict";n.r(e),n.d(e,"getFacet",(function(){return a})),n.d(e,"registerFacet",(function(){return s}));var r=n(1),i=n(218);n.d(e,"Facet",(function(){return i.Facet}));var o={},a=function(t){return o[Object(r.lowerCase)(t)]},s=function(t,e){o[Object(r.lowerCase)(t)]=e}},function(t,e,n){"use strict";n.r(e);var r=n(217);n.d(e,"Attribute",(function(){return r.default}));var i=n(862);n.d(e,"Color",(function(){return i.default}));var o=n(863);n.d(e,"Opacity",(function(){return o.default}));var a=n(864);n.d(e,"Position",(function(){return a.default}));var s=n(865);n.d(e,"Shape",(function(){return s.default}));var u=n(866);n.d(e,"Size",(function(){return u.default}));var l=n(398);n.d(e,"registerAttribute",(function(){return l.registerAttribute})),n.d(e,"getAttribute",(function(){return l.getAttribute}));var c=n(623);n.d(e,"Scale",(function(){return c.Scale})),Object(l.registerAttribute)("Color",i.default),Object(l.registerAttribute)("Opacity",o.default),Object(l.registerAttribute)("Position",a.default),Object(l.registerAttribute)("Shape",s.default),Object(l.registerAttribute)("Size",u.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"left",(function(){return o})),n.d(e,"right",(function(){return a})),n.d(e,"justify",(function(){return s})),n.d(e,"center",(function(){return u}));var r=n(1);function i(t){return t.target.depth}function o(t){return t.depth}function a(t,e){return e-1-t.height}function s(t,e){return t.sourceLinks.length?t.depth:e-1}function u(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Object(r.minBy)(t.sourceLinks,i)-1:0}},function(t,e,n){"use strict";n.r(e);var r=n(119);e.default=function(t,e){return!!Object(r.default)(t)&&t.indexOf(e)>-1}},function(t,e,n){"use strict";n.r(e),n.d(e,"createAction",(function(){return a})),n.d(e,"getActionClass",(function(){return s})),n.d(e,"registerAction",(function(){return u})),n.d(e,"unregisterAction",(function(){return l})),n.d(e,"createCallbackAction",(function(){return c}));var r=n(1597),i=n(1),o={};function a(t,e){var n=o[t],r=null;n&&((r=new(0,n.ActionClass)(e,n.cfg)).name=t,r.init());return r}function s(t){var e=o[t];return Object(i.get)(e,"ActionClass")}function u(t,e,n){o[t]={ActionClass:e,cfg:n}}function l(t){delete o[t]}function c(t,e){var n=new r.default(e);return n.callback=t,n.name="callback",n}},function(t,e,n){"use strict";n.r(e),n.d(e,"LEVEL",(function(){return r})),n.d(e,"invariant",(function(){return s})),n.d(e,"log",(function(){return u}));var r,i=n(2);!function(t){t.ERROR="error",t.WARN="warn",t.INFO="log"}(r||(r={}));var o="AntV/G2Plot";function a(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=0;return o+": "+t.replace(/%s/g,(function(){return""+e[r++]}))}function s(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!t){var s=new Error(a.apply(void 0,Object(i.__spreadArrays)([e],n)));throw s.name=o,s}}function u(t,e,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];e||console[t](a.apply(void 0,Object(i.__spreadArrays)([n],r)))}},function(t,e,n){"use strict";n.r(e),n.d(e,"init",(function(){return g})),n.d(e,"dispose",(function(){return v})),n.d(e,"disposeAll",(function(){return m})),n.d(e,"getInstance",(function(){return y})),n.d(e,"registerPainter",(function(){return b})),n.d(e,"version",(function(){return _}));var r=n(54),i=n(0),o=n(1334),a=n(1332),s=n(794),u=n(1333),l=n(80),c=n(166),h=n(40),f={},d={};var p=function(){function t(t,e,n){var l=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var c=new a.default,h=n.renderer||"canvas";f[h]||(h=i.keys(f)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var d=new f[h](e,c,n,t),p=n.ssr||d.ssrOnly;this.storage=c,this.painter=d;var g,v=r.default.node||r.default.worker||p?null:new u.default(d.getViewportRoot(),d.root),m=n.useCoarsePointer;(null==m||"auto"===m?r.default.touchEventsSupported:!!m)&&(g=i.retrieve2(n.pointerSize,44)),this.handler=new o.default(c,d,v,d.root,g),this.animation=new s.default({stage:{update:p?null:function(){return l._flush(!0)}}}),p||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return Object(l.lum)(t,1)<c.DARK_MODE_THRESHOLD;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=Object(l.lum)(e[i].color,1);return(n/=r)<c.DARK_MODE_THRESHOLD}return!1}(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,n=Object(s.getTime)();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=Object(s.getTime)();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof h.default&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete d[t]},t}();function g(t,e){var n=new p(i.guid(),t,e);return d[n.id]=n,n}function v(t){t.dispose()}function m(){for(var t in d)d.hasOwnProperty(t)&&d[t].dispose();d={}}function y(t){return d[t]}function b(t,e){f[t]=e}var _="5.4.0"},function(t,e,n){"use strict";n.r(e);e.default=function(t){return"object"==typeof t&&null!==t}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTextHeight",(function(){return o})),n.d(e,"getLineSpaceing",(function(){return a})),n.d(e,"getTextWidth",(function(){return s})),n.d(e,"assembleFont",(function(){return u}));var r=n(101),i=n(655);function o(t,e,n){var i=1;return Object(r.isString)(t)&&(i=t.split("\n").length),i>1?e*i+a(e,n)*(i-1):e}function a(t,e){return e?e-t:.14*t}function s(t,e){var n=Object(i.getOffScreenContext)(),o=0;if(Object(r.isNil)(t)||""===t)return o;if(n.save(),n.font=e,Object(r.isString)(t)&&t.includes("\n")){var a=t.split("\n");Object(r.each)(a,(function(t){var e=n.measureText(t).width;o<e&&(o=e)}))}else o=n.measureText(t).width;return n.restore(),o}function u(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim()}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTheme",(function(){return a})),n.d(e,"registerTheme",(function(){return s}));var r=n(1),i=n(524),o={default:Object(i.createTheme)({})};function a(t){return Object(r.get)(o,Object(r.lowerCase)(t),o.default)}function s(t,e){o[Object(r.lowerCase)(t)]=Object(i.createTheme)(e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"phi",(function(){return o})),n.d(e,"squarifyRatio",(function(){return a}));var r=n(315),i=n(382),o=(1+Math.sqrt(5))/2;function a(t,e,n,o,a,s){for(var u,l,c,h,f,d,p,g,v,m,y,b=[],_=e.children,x=0,w=0,O=_.length,S=e.value;x<O;){c=a-n,h=s-o;do{f=_[w++].value}while(!f&&w<O);for(d=p=f,y=f*f*(m=Math.max(h/c,c/h)/(S*t)),v=Math.max(p/y,y/d);w<O;++w){if(f+=l=_[w].value,l<d&&(d=l),l>p&&(p=l),y=f*f*m,(g=Math.max(p/y,y/d))>v){f-=l;break}v=g}b.push(u={value:f,dice:c<h,children:_.slice(x,w)}),u.dice?Object(r.default)(u,n,o,a,S?o+=h*f/S:s):Object(i.default)(u,n,o,S?n+=c*f/S:a,s),S-=f,x=w}return b}e.default=function t(e){function n(t,n,r,i,o){a(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(o)},function(t,e,n){"use strict";n.r(e),n.d(e,"CtorUint32Array",(function(){return s})),n.d(e,"CtorUint16Array",(function(){return u})),n.d(e,"CtorInt32Array",(function(){return l})),n.d(e,"CtorFloat64Array",(function(){return c}));var r,i=n(0),o=n(165),a=n(153),s="undefined"==typeof Uint32Array?Array:Uint32Array,u="undefined"==typeof Uint16Array?Array:Uint16Array,l="undefined"==typeof Int32Array?Array:Int32Array,c="undefined"==typeof Float64Array?Array:Float64Array,h={float:c,int:l,ordinal:Array,number:Array,time:c};function f(t){return t>65535?s:u}function d(t,e,n,r,i){var o=h[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var u=new o(r),l=0;l<s;l++)u[l]=a[l];t[e]=u}}else t[e]=new o(r)}var p=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(i.createHashMap)()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=t.getSource(),s=this.defaultDimValueGetter=r[o.sourceFormat];this._dimValueGetter=n||s,this._rawExtent=[];Object(a.shouldRetrieveDataByName)(o);this._dimensions=Object(i.map)(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new h[e||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=[1/0,-1/0]);for(var s=i[t],u=o;u<a;u++){var l=n[u]=e.parseAndCollect(n[u]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),u=s+Math.max(t.length,e||0),l=0;l<o;l++){d(n,l,(g=i[l]).type,u,!0)}for(var c=[],h=s;h<u;h++)for(var f=h-s,p=0;p<o;p++){var g=i[p],v=r.arrayRows.call(this,t[f]||c,g.property,f,p);n[p][h]=v;var m=a[p];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}return this._rawCount=this._count=u,{start:s,end:u}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,o=this._chunks,a=this._dimensions,s=a.length,u=this._rawExtent,l=Object(i.map)(a,(function(t){return t.property})),c=0;c<s;c++){var h=a[c];u[c]||(u[c]=[1/0,-1/0]),d(o,c,h.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,o,u);else for(var f=[],p=t;p<e;p++){f=r.getItem(p,f);for(var g=0;g<s;g++){var v=o[g],m=this._dimValueGetter(f,l[g],p,g);v[p]=m;var y=u[g];m<y[0]&&(y[0]=m),m>y[1]&&(y[1]=m)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,r=this.count();n<r;n++){var i=this.get(t,n);isNaN(i)||(e+=i)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks[t],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,u=0,l=this.count();u<l;u++){var c=e-r[this.getRawIndex(u)],h=Math.abs(c);h<=n&&((h<o||h===o&&c>=0&&a<0)&&(o=h,a=c,s=0),c===a&&(i[s++]=u))}return i.length=s,i},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i<r;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{t=new(n=f(this._rawCount))(this.count());for(i=0;i<t.length;i++)t[i]=i}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(f(n._rawCount))(r),o=[],a=t.length,s=0,u=t[0],l=n._chunks,c=0;c<r;c++){var h=void 0,d=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a){h=e(l[u][d],c)}else{for(var p=0;p<a;p++)o[p]=l[t[p]][d];o[p]=c,h=e.apply(null,o)}h&&(i[s++]=d)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=Object(i.keys)(t),o=r.length;if(!o)return this;var a=e.count(),s=new(f(e._rawCount))(a),u=0,l=r[0],c=t[l][0],h=t[l][1],d=e._chunks,p=!1;if(!e._indices){var g=0;if(1===o){for(var v=d[r[0]],m=0;m<n;m++){((x=v[m])>=c&&x<=h||isNaN(x))&&(s[u++]=g),g++}p=!0}else if(2===o){v=d[r[0]];var y=d[r[1]],b=t[r[1]][0],_=t[r[1]][1];for(m=0;m<n;m++){var x=v[m],w=y[m];(x>=c&&x<=h||isNaN(x))&&(w>=b&&w<=_||isNaN(w))&&(s[u++]=g),g++}p=!0}}if(!p)if(1===o)for(m=0;m<a;m++){var O=e.getRawIndex(m);((x=d[r[0]][O])>=c&&x<=h||isNaN(x))&&(s[u++]=O)}else for(m=0;m<a;m++){for(var S=!0,C=(O=e.getRawIndex(m),0);C<o;C++){var E=r[C];((x=d[E][O])<t[E][0]||x>t[E][1])&&(S=!1)}S&&(s[u++]=e.getRawIndex(m))}return u<a&&(e._indices=s),e._count=u,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],u=t._rawExtent,l=0;l<e.length;l++)u[e[l]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),f=0;f<o;f++)s[f]=r[e[f]][h];s[o]=c;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(i[0]=d,d=i);for(l=0;l<d.length;l++){var p=e[l],g=d[l],v=u[p],m=r[p];m&&(m[h]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),u=0,l=Math.floor(1/e),c=this.getRawIndex(0),h=new(f(this._rawCount))(Math.min(2*(Math.ceil(s/l)+2),s));h[u++]=c;for(var d=1;d<s-1;d+=l){for(var p=Math.min(d+l,s-1),g=Math.min(d+2*l,s),v=(g+p)/2,m=0,y=p;y<g;y++){var b=a[E=this.getRawIndex(y)];isNaN(b)||(m+=b)}m/=g-p;var _=d,x=Math.min(d+l,s),w=d-1,O=a[c];n=-1,i=_;var S=-1,C=0;for(y=_;y<x;y++){var E;b=a[E=this.getRawIndex(y)];isNaN(b)?(C++,S<0&&(S=E)):(r=Math.abs((w-v)*(b-O)-(w-y)*(m-O)))>n&&(n=r,i=E)}C>0&&C<x-_&&(h[u++]=Math.min(S,i),i=Math.max(S,i)),h[u++]=i,c=i}return h[u++]=this.getRawIndex(s-1),o._count=u,o._indices=h,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),u=o[t],l=this.count(),c=i._rawExtent[t]=[1/0,-1/0],h=new(f(this._rawCount))(Math.ceil(l/s)),d=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,a.length=s);for(var g=0;g<s;g++){var v=this.getRawIndex(p+g);a[g]=u[v]}var m=n(a),y=this.getRawIndex(Math.min(p+r(a,m)||0,l-1));u[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[d++]=y}return i._count=d,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,u=[];s<n;s++)u[s]=r[t[s]][a];u[s]=i,e.apply(null,u)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var u=e[this.getRawIndex(s)];u<o&&(o=u),u>a&&(a=u)}return r=[o,a],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r,o,a=new t,s=this._chunks,u=e&&Object(i.reduce)(e,(function(t,e){return t[e]=!0,t}),{});if(u)for(var l=0;l<s.length;l++)a._chunks[l]=u[l]?(r=s[l],o=void 0,(o=r.constructor)===Array?r.slice():new o(r)):s[l];else a._chunks=s;return this._copyCommonProps(a),n||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Object(i.clone)(this._extent),t._rawExtent=Object(i.clone)(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return Object(o.parseDataValue)(t[r],this._dimensions[r])}r={arrayRows:t,objectRows:function(t,e,n,r){return Object(o.parseDataValue)(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return Object(o.parseDataValue)(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}();e.default=p},function(t,e,n){"use strict";n.r(e),n.d(e,"circularLayout",(function(){return l})),n.d(e,"rotateNodeLabel",(function(){return h}));var r=n(18),i=n(254),o=n(0),a=n(360),s=Math.PI,u=[];function l(t,e,n,i){var s=t.coordinateSystem;if(!s||"view"===s.type){var u=s.getBoundingRect(),l=t.getData(),f=l.graph,d=u.width/2+u.x,p=u.height/2+u.y,g=Math.min(u.width,u.height)/2,v=l.count();if(l.setLayout({cx:d,cy:p}),v){if(n){var m=s.pointToData(i),y=m[0],b=m[1],_=[y-d,b-p];r.normalize(_,_),r.scale(_,_,g),n.setLayout([d+_[0],p+_[1]],!0),h(n,t.get(["circular","rotateLabel"]),d,p)}c[e](t,f,l,g,d,p,v),f.eachEdge((function(e,n){var i,s=o.retrieve3(e.getModel().get(["lineStyle","curveness"]),Object(a.getCurvenessForEdge)(e,t,n),0),u=r.clone(e.node1.getLayout()),l=r.clone(e.node2.getLayout()),c=(u[0]+l[0])/2,h=(u[1]+l[1])/2;+s&&(i=[d*(s*=3)+c*(1-s),p*s+h*(1-s)]),e.setLayout([u,l,i])}))}}}var c={value:function(t,e,n,r,i,o,a){var s=0,u=n.getSum("value"),l=2*Math.PI/(u||a);e.eachNode((function(t){var e=t.getValue("value"),n=l*(u?e:1)/2;s+=n,t.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=n}))},symbolSize:function(t,e,n,r,o,a,l){var c=0;u.length=l;var h=Object(i.getNodeGlobalScale)(t);e.eachNode((function(t){var e=Object(i.getSymbolSize)(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=h;var n=Math.asin(e/2/r);isNaN(n)&&(n=s/2),u[t.dataIndex]=n,c+=2*n}));var f=(2*s-c)/l/2,d=0;e.eachNode((function(t){var e=f+u[t.dataIndex];d+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([r*Math.cos(d)+o,r*Math.sin(d)+a]),d+=e}))}};function h(t,e,n,r){var i=t.getGraphicEl();if(i){var a=t.getModel().get(["label","rotate"])||0,s=i.getSymbolPath();if(e){var u=t.getLayout(),l=Math.atan2(u[1]-r,u[0]-n);l<0&&(l=2*Math.PI+l);var c=u[0]<n;c&&(l-=Math.PI);var h=c?"left":"right";s.setTextConfig({rotation:-l,position:h,origin:"center"});var f=s.ensureState("emphasis");o.extend(f.textConfig||(f.textConfig={}),{position:h})}else s.setTextConfig({rotation:a*=Math.PI/180})}}},function(t,e,n){"use strict";n.r(e),n.d(e,"simpleLayout",(function(){return a})),n.d(e,"simpleLayoutEdge",(function(){return s}));var r=n(18),i=n(0),o=n(360);function a(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),s(n,t)}}function s(t,e){t.eachEdge((function(t,n){var a=i.retrieve3(t.getModel().get(["lineStyle","curveness"]),-Object(o.getCurvenessForEdge)(t,e,n,!0),0),s=r.clone(t.node1.getLayout()),u=r.clone(t.node2.getLayout()),l=[s,u];+a&&l.push([(s[0]+u[0])/2-(s[1]-u[1])*a,(s[1]+u[1])/2-(u[0]-s[0])*a]),t.setLayout(l)}))}},function(t,e,n){"use strict";n.r(e);var r,i=n(2),o=n(460),a=n(646),s=n(170);e.default=Object(a.default)((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,o=e.fontWeight,a=e.fontStyle,u=e.fontVariant;return r||(r=document.createElement("canvas").getContext("2d")),r.font=[a,u,o,n+"px",i].join(" "),r.measureText(Object(s.default)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(i.__spreadArrays)([t],Object(o.default)(e)).join("")}))},function(t,e,n){"use strict";n.r(e),n.d(e,"getAdjust",(function(){return s})),n.d(e,"registerAdjust",(function(){return u}));var r=n(258);n.d(e,"Adjust",(function(){return r.default}));var i=n(622);for(var o in i)["default","getAdjust","registerAdjust","Adjust"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a={},s=function(t){return a[t.toLowerCase()]},u=function(t,e){if(s(t))throw new Error("Adjust type '"+t+"' existed.");a[t.toLowerCase()]=e}},function(t,e,n){"use strict";n.r(e),n.d(e,"getCoordinate",(function(){return i})),n.d(e,"registerCoordinate",(function(){return o}));n(1095);var r={},i=function(t){return r[t.toLowerCase()]},o=function(t,e){r[t.toLowerCase()]=e}},function(t,e,n){"use strict";n.r(e),n.d(e,"isAutoPadding",(function(){return o})),n.d(e,"parsePadding",(function(){return a}));var r=n(2),i=n(1);function o(t){return!Object(i.isNumber)(t)&&!Object(i.isArray)(t)}function a(t){void 0===t&&(t=0);var e=Object(i.isArray)(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=Object(r.__spreadArray)(Object(r.__spreadArray)([],Object(r.__read)(e),!1),Object(r.__read)(e),!1);break;case 3:e=Object(r.__spreadArray)(Object(r.__spreadArray)([],Object(r.__read)(e),!1),[e[1]],!1);break;default:e=e.slice(0,4)}return e}},function(t,e,n){"use strict";n.r(e),n.d(e,"drawChildren",(function(){return o})),n.d(e,"refreshElement",(function(){return a}));var r=n(201),i=n(120);function o(t,e){e.forEach((function(e){e.draw(t)}))}function a(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var o=n.get("context"),a=t.getParent(),s=a?a.getChildren():[n],u=t.get("el");if("remove"===e)if(t.get("isClipShape")){var l=u&&u.parentNode,c=l&&l.parentNode;l&&c&&c.removeChild(l)}else u&&u.parentNode&&u.parentNode.removeChild(u);else if("show"===e)u.setAttribute("visibility","visible");else if("hide"===e)u.setAttribute("visibility","hidden");else if("zIndex"===e)Object(i.moveTo)(u,s.indexOf(t));else if("sort"===e){var h=t.get("children");h&&h.length&&Object(i.sortDom)(t,(function(t,e){return h.indexOf(t)-h.indexOf(e)?1:0}))}else"clear"===e?u&&(u.innerHTML=""):"matrix"===e?Object(r.setTransform)(t):"clip"===e?Object(r.setClip)(t,o):"attr"===e||"add"===e&&t.draw(o)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"BRUSH_FILTER_EVENTS",(function(){return r}));var r,i=n(2),o=n(176),a=n(95),s=n(24);function u(t,e,n,r){var o=Math.min(n[e],r[e]),a=Math.max(n[e],r[e]),s=Object(i.__read)(t.range,2),u=s[0],l=s[1];if(o<u&&(o=u),a>l&&(a=l),o===l&&a===l)return null;var c=t.invert(o),h=t.invert(a);if(t.isCategory){var f=t.values.indexOf(c),d=t.values.indexOf(h),p=t.values.slice(f,d+1);return function(t){return p.includes(t)}}return function(t){return t>=c&&t<=h}}!function(t){t.FILTER="brush-filter-processing",t.RESET="brush-filter-reset",t.BEFORE_FILTER="brush-filter:beforefilter",t.AFTER_FILTER="brush-filter:afterfilter",t.BEFORE_RESET="brush-filter:beforereset",t.AFTER_RESET="brush-filter:afterreset"}(r||(r={}));var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return Object(i.__extends)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if(Object(s.isMask)(this.context)){var n=this.context.event.target.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var i=this.context,a=i.view,l={view:a,event:i.event,dims:this.dims};a.emit(r.BEFORE_FILTER,o.Event.fromData(a,r.BEFORE_FILTER,l));var c=a.getCoordinate(),h=c.invert(e),f=c.invert(t);if(this.hasDim("x")){var d=a.getXScale(),p=u(d,"x",h,f);this.filterView(a,d.field,p)}if(this.hasDim("y")){var g=a.getYScales()[0];p=u(g,"y",h,f);this.filterView(a,g.field,p)}this.reRender(a,{source:r.FILTER}),a.emit(r.AFTER_FILTER,o.Event.fromData(a,r.AFTER_FILTER,l))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(r.BEFORE_RESET,o.Event.fromData(t,r.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:r.RESET}),t.emit(r.AFTER_RESET,o.Event.fromData(t,r.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(a.default);e.default=l},function(t,e,n){"use strict";function r(t){t&&t.geometries[0].elements.forEach((function(t){t.shape.toFront()}))}n.r(e),n.d(e,"placeElementsOrdered",(function(){return r}))},function(t,e,n){"use strict";function r(t){return null==t?null:i(t)}function i(t){if("function"!=typeof t)throw new Error;return t}n.r(e),n.d(e,"optional",(function(){return r})),n.d(e,"required",(function(){return i}))},function(t,e,n){var r=n(849),i=n(2020);function o(e,n,a){return i()?(t.exports=o=Reflect.construct.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=o=function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&r(o,n.prototype),o},t.exports.__esModule=!0,t.exports.default=t.exports),o.apply(null,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"CoordinateSystem",(function(){return r})),n.d(e,"CoordinateUniform",(function(){return i})),function(t){t[t.LNGLAT=1]="LNGLAT",t[t.LNGLAT_OFFSET=2]="LNGLAT_OFFSET",t[t.VECTOR_TILE=3]="VECTOR_TILE",t[t.IDENTITY=4]="IDENTITY",t[t.P20=5]="P20",t[t.P20_OFFSET=6]="P20_OFFSET",t[t.METER_OFFSET=7]="METER_OFFSET",t[t.P20_2=8]="P20_2"}(r||(r={}));var i={CoordinateSystem:"u_CoordinateSystem",ViewportCenter:"u_ViewportCenter",ViewportCenterProjection:"u_ViewportCenterProjection",PixelsPerDegree:"u_PixelsPerDegree",PixelsPerDegree2:"u_PixelsPerDegree2",PixelsPerMeter:"u_PixelsPerMeter",Mvp:"u_Mvp"}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(1926),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){"use strict";n.r(e),n.d(e,"stopPreviousKeyframeAnimationAndRestore",(function(){return l})),n.d(e,"applyKeyframeAnimation",(function(){return c}));var r=n(0),i=n(235),o=n(23),a=n(9),s=Object(a.makeInner)(),u=["percent","easing","shape","style","extra"];function l(t){t.stopAnimation("keyframe"),t.attr(s(t))}function c(t,e,n){if(n.isAnimationEnabled()&&e)if(Object(r.isArray)(e))Object(r.each)(e,(function(e){c(t,e,n)}));else{var a=e.keyframes,l=e.duration;if(n&&null==l){var h=Object(o.getAnimationConfig)("enter",n,0);l=h&&h.duration}if(a&&l){var f=s(t);Object(r.each)(i.ELEMENT_ANIMATABLE_PROPS,(function(n){if(!n||t[n]){var i;a.sort((function(t,e){return t.percent-e.percent})),Object(r.each)(a,(function(o){var a=t.animators,s=n?o[n]:o;if(s){var c=Object(r.keys)(s);if(n||(c=Object(r.filter)(c,(function(t){return Object(r.indexOf)(u,t)<0}))),c.length){i||((i=t.animate(n,e.loop,!0)).scope="keyframe");for(var h=0;h<a.length;h++)a[h]!==i&&a[h].targetName===i.targetName&&a[h].stopTracks(c);n&&(f[n]=f[n]||{});var d=n?f[n]:f;Object(r.each)(c,(function(e){d[e]=((n?t[n]:t)||{})[e]})),i.whenWithKeys(l*o.percent,s,c,o.easing)}}})),i&&i.delay(e.delay||0).duration(l).start(e.easing)}}))}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"register",(function(){return u})),n.d(e,"unregister",(function(){return h}));var r=n(0),i=n(54),o=n(9),a=Object(o.makeInner)(),s=r.each;function u(t,e,n){if(!i.default.node){var o=e.getZr();a(o).records||(a(o).records={}),function(t,e){if(a(t).initialized)return;function n(n,r){t.on(n,(function(n){var i=function(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}(e);s(a(t).records,(function(t){t&&r(t,n,i.dispatchAction)})),function(t,e){var n,r=t.showTip.length,i=t.hideTip.length;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(i.pendings,e)}))}a(t).initialized=!0,n("click",r.curry(c,"click")),n("mousemove",r.curry(c,"mousemove")),n("globalout",l)}(o,e),(a(o).records[t]||(a(o).records[t]={})).handler=n}}function l(t,e,n){t.handler("leave",null,n)}function c(t,e,n,r){e.handler(t,n,r)}function h(t,e){if(!i.default.node){var n=e.getZr();(a(n).records||{})[t]&&(a(n).records[t]=null)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"getStatesStyle",(function(){return i}));var r=n(1);function i(t,e,n){var i=e+"Style",o=null;return Object(r.each)(n,(function(e,n){t[n]&&e[i]&&(o||(o={}),Object(r.mix)(o,e[i]))})),o}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(62);function i(t,e,n,i,o,a,s,u){var l=(Math.atan2(u-e,s-t)+2*Math.PI)%(2*Math.PI);if(l<i||l>o)return!1;var c={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return Object(r.distance)(c.x,c.y,s,u)<=a/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"isMiniAli",(function(){return u})),n.d(e,"screen",(function(){return f}));var r,i,o,a,s=n(233),u="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM;if(u){var l=my.getSystemInfoSync();r=l.screenWidth,i=l.screenHeight,o=l.windowWidth,a=l.windowHeight}else{var c=s.globalWindow.innerWidth,h=s.globalWindow.innerHeight;r=c,i=h,o=c,a=h}var f={width:r,height:i,availWidth:o,availHeight:a,availLeft:0,availTop:0}},function(t,e,n){"use strict";n.r(e),n.d(e,"isMiniAli",(function(){return u})),n.d(e,"screen",(function(){return f}));var r,i,o,a,s=n(234),u="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM;if(u){var l=my.getSystemInfoSync();r=l.screenWidth,i=l.screenHeight,o=l.windowWidth,a=l.windowHeight}else{var c=s.globalWindow.innerWidth,h=s.globalWindow.innerHeight;r=c,i=h,o=c,a=h}var f={width:r,height:i,availWidth:o,availHeight:a,availLeft:0,availTop:0}},function(t,e,n){"use strict";function r(t,e,n){for(var r,i=[t],o=[];r=i.pop();)if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s<a.length;s++)i.push(a[s])}for(;r=o.pop();)e(r,n)}function i(t,e){for(var n,r=[t];n=r.pop();)if(e(n),n.isExpand){var i=n.children;if(i.length)for(var o=i.length-1;o>=0;o--)r.push(i[o])}}n.r(e),n.d(e,"eachAfter",(function(){return r})),n.d(e,"eachBefore",(function(){return i}))},function(t,e,n){"use strict";n.r(e);var r=n(1205);n.d(e,"sankey",(function(){return r.Sankey}));var i=n(416);n.d(e,"center",(function(){return i.center})),n.d(e,"left",(function(){return i.left})),n.d(e,"right",(function(){return i.right})),n.d(e,"justify",(function(){return i.justify}))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,l=[],c=!1,h=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length&&d())}function d(){if(!c){var t=s(f);c=!0;for(var e=l.length;e;){for(u=l,l=[];++h<e;)u&&u[h].run();h=-1,e=l.length}u=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||c||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){var r=n(449),i=n(617);t.exports=n(410)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(616),i=n(968),o=n(830),a=Object.defineProperty;e.f=n(410)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(971),i=n(831);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(834)("wks"),i=n(620),o=n(373).Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},function(t,e,n){"use strict";n.r(e),n.d(e,"lazyInject",(function(){return F})),n.d(e,"lazyMultiInject",(function(){return z})),n.d(e,"createSceneContainer",(function(){return U})),n.d(e,"createLayerContainer",(function(){return G}));n(94);var r=n(209),i=n(21),o=n(1771),a=n.n(o),s=n(29),u=n(1772),l=n(1783),c=n(1784),h=n(1785),f=n(1786),d=n(1787),p=n(1788),g=n(1790),v=n(1791),m=n(1792),y=n(1793),b=n(1795),_=n(1797),x=n(1799),w=n(1801),O=n(1802),S=n(1803),C=n(1804),E=n(1806),T=n(1807),A=n(1808),M=n(1809),I=n(1810),j=n(1811),k=n(1812),P=n(1813),L=n(1814),R=n(1815),D=n(1816),N=new i.Container;N.bind(s.TYPES.IGlobalConfigService).to(p.default).inSingletonScope(),Object(i.decorate)(Object(i.injectable)(),r.EventEmitter),N.bind(s.TYPES.IEventEmitter).to(r.EventEmitter);var B=a()(N,!1),F=function(t){var e=B.lazyInject(t);return function(t,n,r){e.call(this,t,n),r&&(r.initializer=function(){return t[n]})}},z=function(t){var e=B.lazyMultiInject(t);return function(t,n,r){e.call(this,t,n),r&&(r.initializer=function(){return t[n]})}};e.default=N;var V=0;function U(){var t=new i.Container;return t.parent=N,t.bind(s.TYPES.SceneID).toConstantValue("".concat(V++)),t.bind(s.TYPES.IShaderModuleService).to(x.default).inSingletonScope(),t.bind(s.TYPES.ILayerService).to(y.default).inSingletonScope(),t.bind(s.TYPES.ISceneService).to(_.default).inSingletonScope(),t.bind(s.TYPES.ICameraService).to(c.default).inSingletonScope(),t.bind(s.TYPES.ICoordinateSystemService).to(g.default).inSingletonScope(),t.bind(s.TYPES.IInteractionService).to(v.default).inSingletonScope(),t.bind(s.TYPES.IPickingService).to(m.default).inSingletonScope(),t.bind(s.TYPES.IControlService).to(h.default).inSingletonScope(),t.bind(s.TYPES.IMarkerService).to(f.default).inSingletonScope(),t.bind(s.TYPES.IIconService).to(l.default).inSingletonScope(),t.bind(s.TYPES.IFontService).to(u.default).inSingletonScope(),t.bind(s.TYPES.IPopupService).to(d.default).inSingletonScope(),t.bind(s.TYPES.INormalPass).to(w.default).whenTargetNamed("clear"),t.bind(s.TYPES.INormalPass).to(S.default).whenTargetNamed("pixelPicking"),t.bind(s.TYPES.INormalPass).to(R.default).whenTargetNamed("render"),t.bind(s.TYPES.INormalPass).to(D.default).whenTargetNamed("taa"),t.bind(s.TYPES.IFactoryNormalPass).toFactory((function(t){return function(e){return t.container.getNamed(s.TYPES.INormalPass,e)}})),t.bind(s.TYPES.IPostProcessingPass).to(M.default).whenTargetNamed("copy"),t.bind(s.TYPES.IPostProcessingPass).to(C.default).whenTargetNamed("bloom"),t.bind(s.TYPES.IPostProcessingPass).to(E.default).whenTargetNamed("blurH"),t.bind(s.TYPES.IPostProcessingPass).to(T.default).whenTargetNamed("blurV"),t.bind(s.TYPES.IPostProcessingPass).to(k.default).whenTargetNamed("noise"),t.bind(s.TYPES.IPostProcessingPass).to(P.default).whenTargetNamed("sepia"),t.bind(s.TYPES.IPostProcessingPass).to(A.default).whenTargetNamed("colorHalftone"),t.bind(s.TYPES.IPostProcessingPass).to(I.default).whenTargetNamed("hexagonalPixelate"),t.bind(s.TYPES.IPostProcessingPass).to(j.default).whenTargetNamed("ink"),t.bind(s.TYPES.IFactoryPostProcessingPass).toFactory((function(t){return function(e){var n=t.container.getNamed(s.TYPES.IPostProcessingPass,e);return n.setName(e),n}})),t}function G(t){var e=new i.Container;return e.parent=t,e.bind(s.TYPES.IStyleAttributeService).to(b.default).inSingletonScope(),e.bind(s.TYPES.IMultiPassRenderer).to(O.default).inSingletonScope(),e.bind(s.TYPES.IPostProcessor).to(L.default).inSingletonScope(),e}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(0),i=n(336);function o(t,e,n){for(var r=0;r<t.length;r++)t[r]=a(t[r],e[r],n)}function a(t,e,n){for(var r=[],i=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,u=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),u=u>>1^-(1&u),i=s+=i,o=u+=o,r.push([s/n,u/n])}return r}function s(t,e){return t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var i=e.features;return r.each(i,(function(t){var e=t.geometry,i=e.encodeOffsets,s=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=a(s,i,n);break;case"Polygon":case"MultiLineString":o(s,i,n);break;case"MultiPolygon":r.each(s,(function(t,e){return o(t,i[e],n)}))}})),e.UTF8Encoding=!1,e}(t),r.map(r.filter(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,o=t.geometry,a=[];switch(o.type){case"Polygon":var s=o.coordinates;a.push(new i.GeoJSONPolygonGeometry(s[0],s.slice(1)));break;case"MultiPolygon":r.each(o.coordinates,(function(t){t[0]&&a.push(new i.GeoJSONPolygonGeometry(t[0],t.slice(1)))}));break;case"LineString":a.push(new i.GeoJSONLineStringGeometry([o.coordinates]));break;case"MultiLineString":a.push(new i.GeoJSONLineStringGeometry(o.coordinates))}var u=new i.GeoJSONRegion(n[e||"name"],a,n.cp);return u.properties=n,u}))}},function(t,e,n){"use strict";n.r(e);var r=n(429);n.d(e,"getAdjust",(function(){return r.getAdjust})),n.d(e,"registerAdjust",(function(){return r.registerAdjust}));var i=n(258);n.d(e,"Adjust",(function(){return i.default}));var o=n(1574),a=n(1575),s=n(1576),u=n(1577),l=n(622);for(var c in l)["default","getAdjust","registerAdjust","Adjust"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return l[t]}))}(c);Object(r.registerAdjust)("Dodge",o.default),Object(r.registerAdjust)("Jitter",a.default),Object(r.registerAdjust)("Stack",s.default),Object(r.registerAdjust)("Symmetric",u.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"Mix",(function(){return a}));var r=n(2),i=n(26),o=n(1766),a=(n(2017),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="mix",e}return Object(r.__extends)(e,t),e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot))},function(t,e,n){"use strict";n.r(e),n.d(e,"truncateText",(function(){return s})),n.d(e,"parsePlainText",(function(){return h})),n.d(e,"RichTextContentBlock",(function(){return p})),n.d(e,"parseRichText",(function(){return g}));var r=n(335),i=n(0),o=n(60),a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=u(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=l(o[a],i);return o.join("\n")}function u(t,e,n,r){r=r||{};var a=Object(i.extend)({},r);a.font=e,n=Object(i.retrieve2)(n,"..."),a.maxIterations=Object(i.retrieve2)(r.maxIterations,2);var s=a.minChar=Object(i.retrieve2)(r.minChar,0);a.cnCharWidth=Object(o.getWidth)("国",e);var u=a.ascCharWidth=Object(o.getWidth)("a",e);a.placeholder=Object(i.retrieve2)(r.placeholder,"");for(var l=t=Math.max(0,t-1),c=0;c<s&&l>=u;c++)l-=u;var h=Object(o.getWidth)(n,e);return h>l&&(n="",h=0),l=t-h,a.ellipsis=n,a.ellipsisWidth=h,a.contentWidth=l,a.containerWidth=t,a}function l(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var a=Object(o.getWidth)(t,r);if(a<=n)return t;for(var s=0;;s++){if(a<=i||s>=e.maxIterations){t+=e.ellipsis;break}var u=0===s?c(t,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*i/a):0;t=t.substr(0,u),a=Object(o.getWidth)(t,r)}return""===t&&(t=e.placeholder),t}function c(t,e,n,r){for(var i=0,o=0,a=t.length;o<a&&i<e;o++){var s=t.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}function h(t,e){null!=t&&(t+="");var n,r=e.overflow,a=e.padding,s=e.font,c="truncate"===r,h=Object(o.getLineHeight)(s),f=Object(i.retrieve2)(e.lineHeight,h),d=!!e.backgroundColor,p="truncate"===e.lineOverflow,g=e.width,v=(n=null==g||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?b(t,e.font,g,"breakAll"===r,0).lines:[]).length*f,m=Object(i.retrieve2)(e.height,v);if(v>m&&p){var y=Math.floor(m/f);n=n.slice(0,y)}if(t&&c&&null!=g)for(var _=u(g,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x=0;x<n.length;x++)n[x]=l(n[x],_);var w=m,O=0;for(x=0;x<n.length;x++)O=Math.max(Object(o.getWidth)(n[x],s),O);null==g&&(g=O);var S=O;return a&&(w+=a[0]+a[2],S+=a[1]+a[3],g+=a[1]+a[3]),d&&(S=g),{lines:n,height:m,outerWidth:S,outerHeight:w,lineHeight:f,calculatedLineHeight:h,contentWidth:O,contentHeight:v,width:g}}var f=function(){},d=function(t){this.tokens=[],t&&(this.tokens=t)},p=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function g(t,e){var n=new p;if(null!=t&&(t+=""),!t)return n;for(var u,l=e.width,c=e.height,h=e.overflow,f="break"!==h&&"breakAll"!==h||null==l?null:{width:l,accumWidth:0,breakAll:"breakAll"===h},d=a.lastIndex=0;null!=(u=a.exec(t));){var g=u.index;g>d&&v(n,t.substring(d,g),e,f),v(n,u[2],e,f,u[1]),d=a.lastIndex}d<t.length&&v(n,t.substring(d,t.length),e,f);var m=[],y=0,b=0,_=e.padding,x="truncate"===h,w="truncate"===e.lineOverflow;function O(t,e,n){t.width=e,t.lineHeight=n,y+=n,b=Math.max(b,e)}t:for(var S=0;S<n.lines.length;S++){for(var C=n.lines[S],E=0,T=0,A=0;A<C.tokens.length;A++){var M=(F=C.tokens[A]).styleName&&e.rich[F.styleName]||{},I=F.textPadding=M.padding,j=I?I[1]+I[3]:0,k=F.font=M.font||e.font;F.contentHeight=Object(o.getLineHeight)(k);var P=Object(i.retrieve2)(M.height,F.contentHeight);if(F.innerHeight=P,I&&(P+=I[0]+I[2]),F.height=P,F.lineHeight=Object(i.retrieve3)(M.lineHeight,e.lineHeight,P),F.align=M&&M.align||e.align,F.verticalAlign=M&&M.verticalAlign||"middle",w&&null!=c&&y+F.lineHeight>c){A>0?(C.tokens=C.tokens.slice(0,A),O(C,T,E),n.lines=n.lines.slice(0,S+1)):n.lines=n.lines.slice(0,S);break t}var L=M.width,R=null==L||"auto"===L;if("string"==typeof L&&"%"===L.charAt(L.length-1))F.percentWidth=L,m.push(F),F.contentWidth=Object(o.getWidth)(F.text,k);else{if(R){var D=M.backgroundColor,N=D&&D.image;N&&(N=r.findExistImage(N),r.isImageReady(N)&&(F.width=Math.max(F.width,N.width*P/N.height)))}var B=x&&null!=l?l-T:null;null!=B&&B<F.width?!R||B<j?(F.text="",F.width=F.contentWidth=0):(F.text=s(F.text,B-j,k,e.ellipsis,{minChar:e.truncateMinChar}),F.width=F.contentWidth=Object(o.getWidth)(F.text,k)):F.contentWidth=Object(o.getWidth)(F.text,k)}F.width+=j,T+=F.width,M&&(E=Math.max(E,F.lineHeight))}O(C,T,E)}n.outerWidth=n.width=Object(i.retrieve2)(l,b),n.outerHeight=n.height=Object(i.retrieve2)(c,y),n.contentHeight=y,n.contentWidth=b,_&&(n.outerWidth+=_[1]+_[3],n.outerHeight+=_[0]+_[2]);for(S=0;S<m.length;S++){var F,z=(F=m[S]).percentWidth;F.width=parseInt(z,10)/100*n.width}return n}function v(t,e,n,r,i){var a,s,u=""===e,l=i&&n.rich[i]||{},c=t.lines,h=l.font||n.font,p=!1;if(r){var g=l.padding,v=g?g[1]+g[3]:0;if(null!=l.width&&"auto"!==l.width){var m=Object(o.parsePercent)(l.width,r.width)+v;c.length>0&&m+r.accumWidth>r.width&&(a=e.split("\n"),p=!0),r.accumWidth=m}else{var y=b(e,h,r.width,r.breakAll,r.accumWidth);r.accumWidth=y.accumWidth+v,s=y.linesWidths,a=y.lines}}else a=e.split("\n");for(var _=0;_<a.length;_++){var x=a[_],w=new f;if(w.styleName=i,w.text=x,w.isLineHolder=!x&&!u,"number"==typeof l.width?w.width=l.width:w.width=s?s[_]:Object(o.getWidth)(x,h),_||p)c.push(new d([w]));else{var O=(c[c.length-1]||(c[0]=new d)).tokens,S=O.length;1===S&&O[0].isLineHolder?O[0]=w:(x||!S||u)&&O.push(w)}}}var m=Object(i.reduce)(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function y(t){return!function(t){var e=t.charCodeAt(0);return e>=33&&e<=383}(t)||!!m[t]}function b(t,e,n,r,i){for(var a=[],s=[],u="",l="",c=0,h=0,f=0;f<t.length;f++){var d=t.charAt(f);if("\n"!==d){var p=Object(o.getWidth)(d,e),g=!r&&!y(d);(a.length?h+p>n:i+h+p>n)?h?(u||l)&&(g?(u||(u=l,l="",h=c=0),a.push(u),s.push(h-c),l+=d,u="",h=c+=p):(l&&(u+=l,l="",c=0),a.push(u),s.push(h),u=d,h=p)):g?(a.push(l),s.push(c),l=d,c=p):(a.push(d),s.push(p)):(h+=p,g?(l+=d,c+=p):(l&&(u+=l,l="",c=0),u+=d))}else l&&(u+=l,h+=c),a.push(u),s.push(h),u="",l="",c=0,h=0}return a.length||u||(u=t,l="",c=0),l&&(u+=l),u&&(a.push(u),s.push(h)),1===a.length&&(h+=i),{accumWidth:h,lines:a,linesWidths:s}}},function(t,e,n){"use strict";n.r(e),n.d(e,"EllipseShape",(function(){return o}));var r=n(66),i=n(36),o=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},a=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,u=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-u,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-u,r+o,i),t.bezierCurveTo(r+o,i+u,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+u,r-o,i),t.closePath()},e}(i.default);a.prototype.type="ellipse",e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(66),i=n(36),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return Object(r.__extends)(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),i.default.prototype.getBoundingRect.call(this)},e}(i.default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(260),i=n(125),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return Object(r.default)(t,(function(n,r){Object(i.default)(t)&&"prototype"===r||e.push(n)})),e};e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"isSamePoint",(function(){return s})),n.d(e,"default",(function(){return u}));var r=n(1);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function a(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}function s(t,e){return t[0]===e[0]&&t[1]===e[1]}function u(t,e){var n=e[1],i=e[2],u=Object(r.mod)(Object(r.toRadian)(e[3]),2*Math.PI),l=e[4],c=e[5],h=t[0],f=t[1],d=e[6],p=e[7],g=Math.cos(u)*(h-d)/2+Math.sin(u)*(f-p)/2,v=-1*Math.sin(u)*(h-d)/2+Math.cos(u)*(f-p)/2,m=g*g/(n*n)+v*v/(i*i);m>1&&(n*=Math.sqrt(m),i*=Math.sqrt(m));var y=n*n*(v*v)+i*i*(g*g),b=y?Math.sqrt((n*n*(i*i)-y)/y):1;l===c&&(b*=-1),isNaN(b)&&(b=0);var _=i?b*n*v/i:0,x=n?b*-i*g/n:0,w=(h+d)/2+Math.cos(u)*_-Math.sin(u)*x,O=(f+p)/2+Math.sin(u)*_+Math.cos(u)*x,S=[(g-_)/n,(v-x)/i],C=[(-1*g-_)/n,(-1*v-x)/i],E=a([1,0],S),T=a(S,C);return o(S,C)<=-1&&(T=Math.PI),o(S,C)>=1&&(T=0),0===c&&T>0&&(T-=2*Math.PI),1===c&&T<0&&(T+=2*Math.PI),{cx:w,cy:O,rx:s(t,[d,p])?0:n,ry:s(t,[d,p])?0:i,startAngle:E,endAngle:E+T,xRotation:u,arcFlag:l,sweepFlag:c}}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(88),o=n(1),a={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},s=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg")||{};Object(o.each)(t,(function(t,r){var i=t;e.get(r)!==t&&(Object(o.isObject)(t)&&n[r]&&(i=Object(o.deepMix)({},n[r],t)),e.set(r,i))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){Object(o.hasKey)(t,"visible")&&(t.visible?this.show():this.hide()),Object(o.hasKey)(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=Object(r.__assign)({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),r=a[n];return Object(o.each)(r,(function(n){e[n]=t.get(n)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");Object(o.each)(e,(function(e,n){var r=t.get(n);if(Object(o.isObject)(r)){var i=Object(o.deepMix)({},e,r);t.set(n,i)}}))},e}(i.Base);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(25),o=n(1),a=n(96),s=n(128),u=n(441),l=n(56),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:l.default.lineColor}},tickLine:{style:{lineWidth:1,stroke:l.default.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:l.default.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:l.default.textColor,fontFamily:l.default.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:l.default.textColor,textBaseline:"middle",fontFamily:l.default.fontFamily,textAlign:"center"},iconStyle:{fill:l.default.descriptionIconFill,stroke:l.default.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:l.default.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){Object(o.mix)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return Object(o.each)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(o.each)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(o.filter)(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},e.prototype.getTextAnchor=function(t){var e;return Object(o.isNumberEqual)(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return Object(o.isNumberEqual)(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:Object(o.mix)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],r=this.get("tickLine"),i=r.alignTick,a=r.length,s=1;return t.length>=2&&(s=t[1].value-t[0].value),Object(o.each)(t,(function(t){var r=t.point;i||(r=e.getTickPoint(t.value-s/2));var o=e.getSidePoint(r,a);n.push({startPoint:r,tickValue:t.value,endPoint:o,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),r=n.count,i=t.length;if(i>=2)for(var o=0;o<i-1;o++)for(var a=t[o],s=t[o+1],u=0;u<r;u++){var l=(u+1)/(r+1),c=(1-l)*a.tickValue+l*s.tickValue,h=this.getTickPoint(c),f=this.getSidePoint(h,n.length);e.push({startPoint:h,endPoint:f,tickValue:c,id:"sub-"+a.id+"-"+u})}return e},e.prototype.getTickLineAttrs=function(t,e,n,i){var a=this.get(e).style,s={points:[t.startPoint,t.endPoint]},u=Object(o.get)(this.get("theme"),["tickLine","style"],{});a=Object(o.isFunction)(a)?Object(o.mix)({},u,a(s,n,i)):a;var l=t.startPoint,c=t.endPoint;return Object(r.__assign)({x1:l.x,y1:l.y,x2:c.x,y2:c.y},a)},e.prototype.drawTick=function(t,e,n,r,i){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-"+n,attrs:this.getTickLineAttrs(t,n,r,i)})},e.prototype.drawTickLines=function(t){var e=this,n=this.get("ticks"),r=this.get("subTickLine"),i=this.getTickLineItems(n),a=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),s=this.get("tickLine");if(Object(o.each)(i,(function(n,r){if(s.displayWithLabel){var o=e.getElementId("label-"+n.tickId);t.findById(o)&&e.drawTick(n,a,"tickLine",r,i)}else e.drawTick(n,a,"tickLine",r,i)})),r){var u=this.getSubTickLineItems(i);Object(o.each)(u,(function(t,n){e.drawTick(t,a,"subTickLine",n,u)}))}},e.prototype.processTicks=function(){var t=this,e=this.get("ticks");Object(o.each)(e,(function(e){e.point=t.getTickPoint(e.value),Object(o.isNil)(e.id)&&(e.id=e.name)}))},e.prototype.drawTicks=function(t){var e=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var n=this.get("ticks");Object(o.each)(n,(function(n){e.applyTickStates(n,t)}))},e.prototype.optimizeTicks=function(){var t=this.get("optimize"),e=this.get("ticks");if(t&&t.enable&&t.threshold>0){var n=Object(o.size)(e);if(n>t.threshold){var r=Math.ceil(n/t.threshold),i=e.filter((function(t,e){return e%r==0}));this.set("ticks",i),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var r=this.get("label"),i=r.offset,a=r.offsetX,u=r.offsetY,l=r.rotate,c=r.formatter,h=this.getSidePoint(t.point,i),f=this.getSideVector(i,h),d=c?c(t.name,t,e):t.name,p=r.style;p=Object(o.isFunction)(p)?Object(o.get)(this.get("theme"),["label","style"],{}):p;var g=Object(o.mix)({x:h.x+a,y:h.y+u,text:d,textAlign:this.getTextAnchor(f),textBaseline:this.getTextBaseline(f)},p);return l&&(g.matrix=Object(s.getMatrixByAngle)(h,l)),g},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),r=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});Object(o.each)(n,(function(t,i){e.addShape(r,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i,n),delegateObject:{tick:t,item:t,index:i}})})),this.processOverlap(r);var i=r.getChildren(),a=Object(o.get)(this.get("theme"),["label","style"],{}),s=this.get("label"),u=s.style,l=s.formatter;if(Object(o.isFunction)(u)){var c=i.map((function(t){return Object(o.get)(t.get("delegateObject"),"tick")}));Object(o.each)(i,(function(t,e){var n=t.get("delegateObject").tick,r=l?l(n.name,n,e):n.name,i=Object(o.mix)({},a,u(r,e,c));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,a=t.spacing,u=void 0===a?0:a,l=t.autoRotate,c=e.fontSize,h=.5;"start"===n?h=0:"end"===n&&(h=1);var f=this.getTickPoint(h),d=this.getSidePoint(f,r||u+c/2),p=Object(o.mix)({x:d.x,y:d.y,text:t.text},e),g=t.rotate,v=g;if(Object(o.isNil)(g)&&l){var m=this.getAxisVector(f);v=i.ext.angleTo(m,[1,0],!0)}if(v){var y=Object(s.getMatrixByAngle)(d,v);p.matrix=y}return p},e.prototype.drawTitle=function(t){var e,n=this.getTitleAttrs(),r=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(e=this.get("title"))||void 0===e?void 0:e.description)&&this.drawDescriptionIcon(t,r,n.matrix)},e.prototype.drawDescriptionIcon=function(t,e,n){var i=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),o=e.getBBox(),a=o.maxX,s=o.maxY,u=o.height,l=this.get("title").iconStyle,c=u/2,h=c/6,f=a+4,d=s-u/2,p=[f+c,d-c],g=p[0],v=p[1],m=[g+c,v+c],y=m[0],b=m[1],_=[g,b+c],x=_[0],w=_[1],O=[f,v+c],S=O[0],C=O[1],E=[f+c,d-u/4],T=E[0],A=E[1],M=[T,A+h],I=M[0],j=M[1],k=[I,j+h],P=k[0],L=k[1],R=[P,L+3*c/4],D=R[0],N=R[1];this.addShape(i,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:Object(r.__assign)({path:[["M",g,v],["A",c,c,0,0,1,y,b],["A",c,c,0,0,1,x,w],["A",c,c,0,0,1,S,C],["A",c,c,0,0,1,g,v],["M",T,A],["L",I,j],["M",P,L],["L",D,N]],lineWidth:h,matrix:n},l)}),this.addShape(i,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:f,y:d-u/2,width:u,height:u,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var n=this.get("tickStates"),r=this.getElementId("label-"+t.id),i=e.findById(r);if(i){var o=Object(u.getStatesStyle)(t,"label",n);o&&i.attr(o)}var a=this.getElementId("tickline-"+t.id),s=e.findById(a);if(s){var l=Object(u.getStatesStyle)(t,"tickLine",n);l&&s.attr(l)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),r=this.get("label"),i=this.getElementByLocalId("label-"+t.id),o=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var s=Object(u.getStatesStyle)(t,"label",n);s&&i.attr(s)}if(a){var l=Object(u.getStatesStyle)(t,"tickLine",n);l&&a.attr(l)}}else i&&i.attr(r.style),a&&a.attr(o.style)},e}(a.default);e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(96),a=n(128),s=n(56),u=n(46),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:s.default.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:s.default.textColor,textAlign:"center",textBaseline:"middle",fontFamily:s.default.fontFamily}},textBackground:{padding:5,style:{stroke:s.default.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,o=e.autoRotate,s=e.content;if(!Object(i.isNil)(s)){var u=this.getTextPoint(),l=null;if(o){var c=this.getRotateAngle();l=Object(a.getMatrixByAngle)(u,c)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},u),{text:s,matrix:l}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:Object(r.__assign)({path:e},n)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),i=this.get("textBackground");if(i&&n){var o=n.getBBox(),a=Object(u.formatPadding)(i.padding),s=i.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:Object(r.__assign)({x:o.x-a[3],y:o.y-a[0],width:o.width+a[1]+a[3],height:o.height+a[0]+a[2],matrix:n.attr("matrix")},s)}).toBack()}},e}(o.default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(96),a=n(56),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:a.default.lineColor}}}})},e.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),r=e.slice(0).reverse(),i=this.getGridPath(r,!0);return this.get("closed")?n=n.concat(i):(i[0][0]="L",(n=n.concat(i)).push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),r=this.get("items"),o=this.get("alternateColor"),a=null;Object(i.each)(r,(function(s,u){var l=s.id||u;if(n){var c=e.getPathStyle();c=Object(i.isFunction)(c)?c(s,u,r):c;var h=e.getElementId("line-"+l),f=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:h,attrs:Object(i.mix)({path:f},c)})}if(o&&u>0){var d=e.getElementId("region-"+l),p=u%2==0;if(Object(i.isString)(o))p&&e.drawAlternateRegion(d,t,a.points,s.points,o);else{var g=p?o[1]:o[0];e.drawAlternateRegion(d,t,a.points,s.points,g)}}a=s}))},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var o=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:o,fill:i}})},e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(96),o=n(46),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),r=this.get("maxHeight"),i=e.width,a=e.height;return n&&(i=Math.min(i,n)),r&&(a=Math.min(a,r)),Object(o.createBBox)(e.minX,e.minY,i,a)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+r})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),i=Object(o.formatPadding)(e.padding),a=Object(r.__assign)({x:0,y:0,width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:a}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),i=n.spacing,o=n.style,a=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Object(r.__assign)({text:a,x:e.x,y:e.y},o)}).getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+i})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=Object(o.formatPadding)(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"getAnimation",(function(){return i})),n.d(e,"registerAnimation",(function(){return o}));var r={};function i(t){return r[t.toLowerCase()]}function o(t,e){r[t.toLowerCase()]=e}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(100),a=n(155),s=n(487),u=n(78),l=n(7),c=n(493),h=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var r=e.shapeFactory,i=e.container,o=e.offscreenGroup,a=e.elementIndex,s=e.visible,u=void 0===s||s;return n.shapeFactory=r,n.container=i,n.offscreenGroup=o,n.visible=u,n.elementIndex=a,n}return Object(r.__extends)(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this.shapeFactory,n=this.shape;if(n){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(n,t);var r=this.getOffscreenGroup(),i=e.drawShape(this.shapeType,t,r);i.cfg.data=this.data,i.cfg.origin=t,i.cfg.element=this,this.syncShapeStyle(n,i,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,n=this.shape;if(n){var i=this.getAnimateCfg("leave");i?Object(a.doAnimate)(n,i,{coordinate:e.coordinate,toAttrs:Object(r.__assign)({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,r=n.states,i=n.shapeFactory,a=n.model,s=n.shape,u=n.shapeType,l=r.indexOf(t);if(e){if(l>-1)return;r.push(t),"active"!==t&&"selected"!==t||null==s||s.toFront()}else{if(-1===l)return;if(r.splice(l,1),"active"===t||"selected"===t){var c=this.geometry,h=c.sortZIndex,f=c.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;h?s.setZIndex(f):s.set("zIndex",f)}}var d=i.drawShape(u,a,this.getOffscreenGroup());r.length?this.syncShapeStyle(s,d,r,null):this.syncShapeStyle(s,d,["reset"],null),d.remove(!0);var p={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",p),Object(o.propagationDelegate)(this.shape,"statechange",p)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(i.each)(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this.shapeType,e=this.geometry,n=this.shapeFactory,r=e.stateOption,o=n.defaultShapeType,a=n.theme[t]||n.theme[o];this.statesStyle=Object(i.deepMix)({},a,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=Object(i.get)(n,[t,"style"],{}),o=r[e]||r;return Object(i.isFunction)(o)?o(this):o},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var o=n[t];return o?Object(r.__assign)(Object(r.__assign)({},o),{callback:function(){var t;Object(i.isFunction)(o.callback)&&o.callback(),null===(t=e.geometry)||void 0===t||t.emit(l.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE)}}):o}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var o=this.shapeFactory,s=this.container,u=this.shapeType;if(this.shape=o.drawShape(u,t,s),this.shape){this.setShapeInfo(this.shape,t);var c=this.shape.cfg.name;c?Object(i.isString)(c)&&(this.shape.cfg.name=["element",c]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var h=e?"enter":"appear",f=this.getAnimateCfg(h);f&&(null===(n=this.geometry)||void 0===n||n.emit(l.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),Object(a.doAnimate)(this.shape,f,{coordinate:o.coordinate,toAttrs:Object(r.__assign)({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){n.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,n,r,o){var s,h=this;if(void 0===n&&(n=[]),void 0===o&&(o=0),t&&e){var f=t.get("clipShape"),d=e.get("clipShape");if(this.syncShapeStyle(f,d,n,r),t.isGroup())for(var p=t.get("children"),g=e.get("children"),v=0;v<p.length;v++)this.syncShapeStyle(p[v],g[v],n,r,o+v);else{if(!Object(i.isEmpty)(n)&&!Object(i.isEqual)(n,["reset"])){var m=t.get("name");Object(i.isArray)(m)&&(m=m[1]),Object(i.each)(n,(function(t){if(e.get("name")!==c.BACKGROUND_SHAPE){var n=h.getStateStyle(t,m||o);e.attr(n)}}))}var y=Object(u.getReplaceAttrs)(t,e);this.animate?r?(null===(s=this.geometry)||void 0===s||s.emit(l.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),Object(a.doAnimate)(t,r,{coordinate:this.shapeFactory.coordinate,toAttrs:y,shapeModel:this.model})):Object(i.isEmpty)(n)?t.attr(y):(t.stopAnimate(),t.animate(y,{duration:300})):t.attr(y)}}},e.prototype.getShapeType=function(t){var e=Object(i.get)(t,"shape");return Object(i.isArray)(e)?e[0]:e},e}(s.default);e.default=h},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(88),o=n(292),a=n(150),s=n(1),u=n(62),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.onCanvasChange=function(t){Object(a.refreshElement)(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(a.applyAttrsToContext)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];Object(s.each)(t,(function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(e.length){var i=Object(s.min)(e),o=Object(s.max)(e),a=Object(s.min)(n),l=Object(s.max)(n);r={minX:i,minY:a,x:i,y:a,maxX:o,maxY:l,width:o-i,height:l-a};var c=this.cfg.canvas;if(c){var h=c.getViewRange();this.set("isInView",Object(u.intersectRect)(r,h))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),Object(a.applyAttrsToContext)(t,this),this._applyClip(t,this.getClip()),Object(a.drawChildren)(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(i.AbstractGroup);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(88),o=n(1),a=n(380),s=n(432),u=n(201),l=n(65),c=n(120),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=Object(c.createSVGElement)("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,e)}},e.prototype.onCanvasChange=function(t){Object(s.refreshElement)(this,t)},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),Object(u.setClip)(this,t),this.createPath(t),e.length&&Object(s.drawChildren)(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(o.each)(e||n,(function(t,e){l.SVG_ATTR_MAP[e]&&r.setAttribute(l.SVG_ATTR_MAP[e],t)})),Object(u.setTransform)(this)},e}(i.AbstractGroup);e.default=h},function(t,e,n){"use strict";n.r(e);var r=n(225),i=n(1846),o=n(472),a=function(){},s=function(){function t(t){this.terminated=!1,this.loadableURL="";var e=t.name,n=t.source,i=t.url;Object(r.assert)(n||i),this.name=e,this.source=n,this.url=i,this.onMessage=a,this.onError=function(t){return console.log(t)},this.worker=this.createBrowserWorker()}return t.isSupported=function(){return"undefined"!=typeof Worker},t.prototype.destroy=function(){this.onMessage=a,this.onError=a,this.worker.terminate(),this.terminated=!0},Object.defineProperty(t.prototype,"isRunning",{get:function(){return Boolean(this.onMessage)},enumerable:!1,configurable:!0}),t.prototype.postMessage=function(t,e){e=e||Object(o.getTransferList)(t),this.worker.postMessage(t,e)},t.prototype.getErrorFromErrorEvent=function(t){var e="Failed to load ";return e+="worker "+this.name+" from "+this.url+". ",t.message&&(e+=t.message+" in "),t.lineno&&(e+=":"+t.lineno+":"+t.colno),new Error(e)},t.prototype.createBrowserWorker=function(){var t=this;this.loadableURL=Object(i.getLoadableWorkerURL)({source:this.source,url:this.url});var e=new Worker(this.loadableURL,{name:this.name});return e.onmessage=function(e){e.data?t.onMessage(e.data):t.onError(new Error("No data received"))},e.onerror=function(e){t.onError(t.getErrorFromErrorEvent(e)),t.terminated=!0},e.onmessageerror=function(e){return console.error("worker "+t.name+", message error: "+e)},e},t}();e.default=s},function(t,e,n){"use strict";function r(t,e,n){void 0===e&&(e=!0);var o=n||new Set;if(t){if(i(t))o.add(t);else if(i(t.buffer))o.add(t.buffer);else if(ArrayBuffer.isView(t));else if(e&&"object"==typeof t)for(var a in t)r(t[a],e,o)}else;return void 0===n?Array.from(o):[]}function i(t){return!!t&&(t instanceof ArrayBuffer||("undefined"!=typeof MessagePort&&t instanceof MessagePort||("undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas)))}n.r(e),n.d(e,"getTransferList",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"createCubicEasingFunc",(function(){return a}));var r=n(53),i=n(0),o=/cubic-bezier\(([0-9,\.e ]+)\)/;function a(t){var e=t&&o.exec(t);if(e){var n=e[1].split(","),a=+Object(i.trim)(n[0]),s=+Object(i.trim)(n[1]),u=+Object(i.trim)(n[2]),l=+Object(i.trim)(n[3]);if(isNaN(a+s+u+l))return;var c=[];return function(t){return t<=0?0:t>=1?1:Object(r.cubicRootAt)(0,a,u,1,t,c)&&Object(r.cubicAt)(0,s,l,1,c[0])}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"createLegacyDataSelectAction",(function(){return o})),n.d(e,"handleLegacySelectEvents",(function(){return s}));var r=n(0),i=n(9);function o(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){r.push(t.seriesIndex)})),r}Object(r.each)([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,i,o){e=Object(r.extend)({},e),o.dispatchAction(Object(r.extend)(e,{type:t[1],seriesIndex:n(i,e)}))}))}))}function a(t,e,n,o,a){var s=t+e;n.isSilent(s)||o.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,o=t.option.selectedMap,u=a.selected,l=0;l<u.length;l++)if(u[l].seriesIndex===e){var c=t.getData(),h=Object(i.queryDataIndex)(c,a.fromActionPayload);n.trigger(s,{type:s,seriesId:t.id,name:Object(r.isArray)(h)?c.getName(h[0]):c.getName(h),selected:Object(r.isString)(o)?o:Object(r.extend)({},o)})}}))}function s(t,e,n){t.on("selectchanged",(function(t){var r=n.getModel();t.isFromClick?(a("map","selectchanged",e,r,t),a("pie","selectchanged",e,r,t)):"select"===t.fromAction?(a("map","selected",e,r,t),a("pie","selected",e,r,t)):"unselect"===t.fromAction&&(a("map","unselected",e,r,t),a("pie","unselected",e,r,t))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"RingShape",(function(){return o}));var r=n(66),i=n(36),o=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},a=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(i.default);a.prototype.type="ring",e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"BezierCurveShape",(function(){return u}));var r=n(66),i=n(36),o=n(18),a=n(53),s=[],u=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function l(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?a.cubicDerivativeAt:a.cubicAt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?a.cubicDerivativeAt:a.cubicAt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?a.quadraticDerivativeAt:a.quadraticAt)(t.x1,t.cpx1,t.x2,e),(n?a.quadraticDerivativeAt:a.quadraticAt)(t.y1,t.cpy1,t.y2,e)]}var c=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new u},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,u=e.cpx1,l=e.cpy1,c=e.cpx2,h=e.cpy2,f=e.percent;0!==f&&(t.moveTo(n,r),null==c||null==h?(f<1&&(Object(a.quadraticSubdivide)(n,u,i,f,s),u=s[1],i=s[2],Object(a.quadraticSubdivide)(r,l,o,f,s),l=s[1],o=s[2]),t.quadraticCurveTo(u,l,i,o)):(f<1&&(Object(a.cubicSubdivide)(n,u,c,i,f,s),u=s[1],c=s[2],i=s[3],Object(a.cubicSubdivide)(r,l,h,o,f,s),l=s[1],h=s[2],o=s[3]),t.bezierCurveTo(u,l,c,h,i,o)))},e.prototype.pointAt=function(t){return l(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=l(this.shape,t,!0);return o.normalize(e,e)},e}(i.default);c.prototype.type="bezier-curve",e.default=c},function(t,e,n){"use strict";function r(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function i(t,e,n,i){var o=t.getZoom(),a=t.getCenter(),s=e.zoom,u=t.projectedToPoint?t.projectedToPoint(a):t.dataToPoint(a);if(null!=e.dx&&null!=e.dy&&(u[0]-=e.dx,u[1]-=e.dy,t.setCenter(r(t,u),i)),null!=s){if(n){var l=n.min||0,c=n.max||1/0;s=Math.max(Math.min(o*s,c),l)/o}t.scaleX*=s,t.scaleY*=s;var h=(e.originX-t.x)*(s-1),f=(e.originY-t.y)*(s-1);t.x-=h,t.y-=f,t.updateTransform(),t.setCenter(r(t,u),i),t.setZoom(s*o)}return{center:t.getCenter(),zoom:t.getZoom()}}n.r(e),n.d(e,"updateCenterAndZoom",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"TreeNode",(function(){return u}));var r=n(0),i=n(715),o=n(118),a=n(259),s=n(9),u=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){r.isFunction(t)&&(n=e,e=t,t=null),t=t||{},r.isString(t)&&(t={order:t});var i,o=t.order||"preorder",a=this[t.attr||"children"];"preorder"===o&&(i=e.call(n,this));for(var s=0;!i&&s<a.length;s++)a[s].eachNode(t,e,n);"postorder"===o&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(t+1),r.height>e&&(e=r.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,r=n.length;e<r;e++){var i=n[e].getNodeById(t);if(i)return i}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,r=n.length;e<r;e++){var i=n[e].contains(t);if(i)return i}},t.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),l=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,r=e.length;n<r;n++)e[n].dataIndex=-1;for(n=0,r=t.count();n<r;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,l){var c=new t(n),h=[],f=1;!function t(e,n){var i=e.value;f=Math.max(f,r.isArray(i)?i.length:1),h.push(e);var o=new u(Object(s.convertOptionIdName)(e.name,""),c);n?function(t,e){var n=e.children;if(t.parentNode===e)return;n.push(t),t.parentNode=e}(o,n):c.root=o,c._nodes.push(o);var a=e.children;if(a)for(var l=0;l<a.length;l++)t(a[l],o)}(e),c.root.updateDepthAndHeight(0);var d=Object(a.default)(h,{coordDimensions:["value"],dimensionsCount:f}).dimensions,p=new o.default(d,n);return p.initData(h),l&&l(p),Object(i.default)({mainData:p,struct:c,structAttr:"tree"}),c.update(),c},t}();e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(40),i=n(12),o=n(480),a=n(27),s=function(){function t(t){this.group=new r.default,this._LineCtor=t||o.default}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this.group,r=this._lineData;this._lineData=t,r||n.removeAll();var i=u(t);t.diff(r).add((function(n){e._doAdd(t,n,i)})).update((function(n,o){e._doUpdate(r,t,o,n,i)})).remove((function(t){n.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=u(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=t.start;r<t.end;r++){if(c(e.getItemLayout(r))){var i=new this._LineCtor(e,r,this._seriesScope);i.traverse(n),this.group.add(i),e.setItemGraphicEl(r,i),this._progressiveEls.push(i)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){i.traverseElements(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(c(t.getItemLayout(e))){var r=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,r),this.group.add(r)}},t.prototype._doUpdate=function(t,e,n,r,i){var o=t.getItemGraphicEl(n);c(e.getItemLayout(r))?(o?o.updateData(e,r,i):o=new this._LineCtor(e,r,i),e.setItemGraphicEl(r,o),this.group.add(o)):this.group.remove(o)},t}();function u(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Object(a.getLabelStatesModels)(e)}}function l(t){return isNaN(t[0])||isNaN(t[1])}function c(t){return t&&!l(t[0])&&!l(t[1])}e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(18),a=n(67),s=n(1412),u=n(23),l=n(40),c=n(11),h=n(27),f=n(6),d=["fromSymbol","toSymbol"];function p(t){return"_"+t+"Type"}function g(t,e,n){var r=e.getItemVisual(n,t);if(r&&"none"!==r){var i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),s=e.getItemVisual(n,t+"Offset"),u=e.getItemVisual(n,t+"KeepAspect"),l=a.normalizeSymbolSize(i),c=a.normalizeSymbolOffset(s||0,l),h=a.createSymbol(r,-l[0]/2+c[0],-l[1]/2+c[1],l[0],l[1],null,u);return h.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,h.name=t,h}}function v(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var m=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createLine(e,n,r),i}return Object(r.__extends)(e,t),e.prototype._createLine=function(t,e,n){var r=t.hostModel,o=function(t){var e=new s.default({name:"line",subPixelOptimize:!0});return v(e.shape,t),e}(t.getItemLayout(e));o.shape.percent=0,u.initProps(o,{shape:{percent:1}},r,e),this.add(o),Object(i.each)(d,(function(n){var r=g(n,t,e);this.add(r),this[p(n)]=t.getItemVisual(e,n)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel,o=this.childOfName("line"),a=t.getItemLayout(e),s={shape:{}};v(s.shape,a),u.updateProps(o,s,r,e),Object(i.each)(d,(function(n){var r=t.getItemVisual(e,n),i=p(n);if(this[i]!==r){this.remove(this.childOfName(n));var o=g(n,t,e);this.add(o)}this[i]=r}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var r=t.hostModel,o=this.childOfName("line"),a=n&&n.emphasisLineStyle,s=n&&n.blurLineStyle,u=n&&n.selectLineStyle,l=n&&n.labelStatesModels,p=n&&n.emphasisDisabled,g=n&&n.focus,v=n&&n.blurScope;if(!n||t.hasItemOption){var m=t.getItemModel(e),y=m.getModel("emphasis");a=y.getModel("lineStyle").getLineStyle(),s=m.getModel(["blur","lineStyle"]).getLineStyle(),u=m.getModel(["select","lineStyle"]).getLineStyle(),p=y.get("disabled"),g=y.get("focus"),v=y.get("blurScope"),l=Object(h.getLabelStatesModels)(m)}var b=t.getItemVisual(e,"style"),_=b.stroke;o.useStyle(b),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=a,o.ensureState("blur").style=s,o.ensureState("select").style=u,Object(i.each)(d,(function(t){var e=this.childOfName(t);if(e){e.setColor(_),e.style.opacity=b.opacity;for(var n=0;n<c.SPECIAL_STATES.length;n++){var r=c.SPECIAL_STATES[n],i=o.getState(r);if(i){var a=i.style||{},s=e.ensureState(r),u=s.style||(s.style={});null!=a.stroke&&(u[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(u.opacity=a.opacity)}}e.markRedraw()}}),this);var x=r.getRawValue(e);Object(h.setLabelStyle)(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return r.getFormattedLabel(e,n,t.dataType)}},inheritColor:_||"#000",defaultOpacity:b.opacity,defaultText:(null==x?t.getName(e):isFinite(x)?Object(f.round)(x):x)+""});var w=this.getTextContent();if(w){var O=l.normal;w.__align=w.style.align,w.__verticalAlign=w.style.verticalAlign,w.__position=O.get("position")||"middle";var S=O.get("distance");Object(i.isArray)(S)||(S=[S,S]),w.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),Object(c.toggleHoverEmphasis)(this,g,v,p)},e.prototype.highlight=function(){Object(c.enterEmphasis)(this)},e.prototype.downplay=function(){Object(c.leaveEmphasis)(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");v(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.getTextContent();if(t||e||n&&!n.ignore){for(var r=1,i=this.parent;i;)i.scaleX&&(r/=i.scaleX),i=i.parent;var a=this.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,u=a.pointAt(0),l=a.pointAt(s),c=o.sub([],l,u);if(o.normalize(c,c),t&&(t.setPosition(u),O(t,0),t.scaleX=t.scaleY=r*s,t.markRedraw()),e&&(e.setPosition(l),O(e,1),e.scaleX=e.scaleY=r*s,e.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var h=void 0,f=void 0,d=n.__labelDistance,p=d[0]*r,g=d[1]*r,v=s/2,m=a.tangentAt(v),y=[m[1],-m[0]],b=a.pointAt(v);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var _=m[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var x=-Math.atan2(m[1],m[0]);l[0]<u[0]&&(x=Math.PI+x),n.rotation=x}var w=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,f="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,f="top";break;default:w=0,f="middle"}switch(n.__position){case"end":n.x=c[0]*p+l[0],n.y=c[1]*g+l[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",f=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*p+u[0],n.y=-c[1]*g+u[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",f=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=p*_+u[0],n.y=u[1]+w,h=m[0]<0?"right":"left",n.originX=-p*_,n.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=b[0],n.y=b[1]+w,h="center",n.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-p*_+l[0],n.y=l[1]+w,h=m[0]>=0?"right":"left",n.originX=p*_,n.originY=-w}n.scaleX=n.scaleY=r,n.setStyle({verticalAlign:n.__verticalAlign||f,align:n.__align||h})}}}function O(t,e){var n=t.__specifiedRotation;if(null==n){var r=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else t.attr("rotation",n)}},e}(l.default);e.default=m},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(142),a=n(40),s=n(79),u=n(12),l=n(191),c=n(180),h=n(518),f=n(185),d=Math.min,p=Math.max,g=Math.pow,v={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},m={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},y={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},b=0,_=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new a.default,n._uid="brushController_"+b++,Object(i.each)(X,(function(t,e){this._handlers[e]=Object(i.bind)(t,this)}),n),n}return Object(r.__extends)(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||h.take(e,"globalPan",this._uid),Object(i.each)(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=Object(i.merge)(Object(i.clone)(y),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;h.release(t,"globalPan",this._uid),Object(i.each)(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Object(i.each)(t,(function(t){e[t.panelId]=Object(i.clone)(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=Object(i.map)(t,(function(t){return Object(i.merge)(Object(i.clone)(y),t,!0)}));var e=this._covers,n=this._covers=[],r=this,o=this._creatingCover;return new f.default(e,t,(function(t,e){return a(t.__brushOption,e)}),a).add(s).update(s).remove((function(t){e[t]!==o&&r.group.remove(e[t])})).execute(),this;function a(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function s(i,a){var s=t[i];if(null!=a&&e[a]===o)n[i]=e[a];else{var u=n[i]=null!=a?(e[a].__brushOption=s,e[a]):w(r,x(r,s));C(r,u)}}},e.prototype.unmount=function(){return this.enableBrush(!1),M(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(o.default);function x(t,e){var n=q[e.brushType].createCover(t,e);return n.__brushOption=e,S(n,e),t.group.add(n),n}function w(t,e){var n=E(e);return n.endCreating&&(n.endCreating(t,e),S(e,e.__brushOption)),e}function O(t,e){var n=e.__brushOption;E(e).updateCoverShape(t,e,n.range,n)}function S(t,e){var n=e.z;null==n&&(n=1e4),t.traverse((function(t){t.z=n,t.z2=n}))}function C(t,e){E(e).updateCommon(t,e),O(t,e)}function E(t){return q[t.__brushOption.brushType]}function T(t,e,n){var r,o=t._panels;if(!o)return!0;var a=t._transform;return Object(i.each)(o,(function(t){t.isTargetByCursor(e,n,a)&&(r=t)})),r}function A(t,e){var n=t._panels;if(!n)return!0;var r=e.__brushOption.panelId;return null==r||n[r]}function M(t){var e=t._covers,n=e.length;return Object(i.each)(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function I(t,e){var n=Object(i.map)(t._covers,(function(t){var e=t.__brushOption,n=Object(i.clone)(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function j(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function k(t,e,n,r){var o=new a.default;return o.add(new s.default({name:"main",style:D(n),silent:!0,draggable:!0,cursor:"move",drift:Object(i.curry)(F,t,e,o,["n","s","w","e"]),ondragend:Object(i.curry)(I,e,{isEnd:!0})})),Object(i.each)(r,(function(n){o.add(new s.default({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(i.curry)(F,t,e,o,n),ondragend:Object(i.curry)(I,e,{isEnd:!0})}))})),o}function P(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=p(i,6),a=n[0][0],s=n[1][0],u=a-i/2,l=s-i/2,c=n[0][1],h=n[1][1],f=c-o+i/2,d=h-o+i/2,g=c-a,v=h-s,m=g+i,y=v+i;R(t,e,"main",a,s,g,v),r.transformable&&(R(t,e,"w",u,l,o,y),R(t,e,"e",f,l,o,y),R(t,e,"n",u,l,m,o),R(t,e,"s",u,d,m,o),R(t,e,"nw",u,l,o,o),R(t,e,"ne",f,l,o,o),R(t,e,"sw",u,d,o,o),R(t,e,"se",f,d,o,o))}function L(t,e){var n=e.__brushOption,r=n.transformable,o=e.childAt(0);o.useStyle(D(n)),o.attr({silent:!r,cursor:r?"move":"default"}),Object(i.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=e.childOfName(n.join("")),o=1===n.length?B(t,n[0]):function(t,e){var n=[B(t,e[0]),B(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(t,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?m[o]+"-resize":null})}))}function R(t,e,n,r,i,o,a){var s,u,l,c,h,f=e.childOfName(n);f&&f.setShape((s=U(t,e,[[r,i],[r+o,i+a]]),u=d(s[0][0],s[1][0]),l=d(s[0][1],s[1][1]),c=p(s[0][0],s[1][0]),h=p(s[0][1],s[1][1]),{x:u,y:l,width:c-u,height:h-l}))}function D(t){return Object(i.defaults)({strokeNoScale:!0},t.brushStyle)}function N(t,e,n,r){var i=[d(t,n),d(e,r)],o=[p(t,n),p(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function B(t,e){return{left:"w",right:"e",top:"n",bottom:"s"}[u.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return u.getTransform(t.group)}(t))]}function F(t,e,n,r,o,a){var s=n.__brushOption,u=t.toRectRange(s.range),l=V(e,o,a);Object(i.each)(r,(function(t){var e=v[t];u[e[0]][e[1]]+=l[e[0]]})),s.range=t.fromRectRange(N(u[0][0],u[1][0],u[0][1],u[1][1])),C(e,n),I(e,{isEnd:!1})}function z(t,e,n,r){var o=e.__brushOption.range,a=V(t,n,r);Object(i.each)(o,(function(t){t[0]+=a[0],t[1]+=a[1]})),C(t,e),I(t,{isEnd:!1})}function V(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function U(t,e,n){var r=A(t,e);return r&&!0!==r?r.clipPath(n,t._transform):Object(i.clone)(n)}function G(t){var e=t.event;e.preventDefault&&e.preventDefault()}function H(t,e,n){return t.childOfName("main").contain(e,n)}function W(t,e,n,r){var o,a=t._creatingCover,s=t._creatingPanel,u=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],i=n[0]-r[0],o=n[1]-r[1];return g(i*i+o*o,.5)>6}(t)||a){if(s&&!a){"single"===u.brushMode&&M(t);var l=Object(i.clone)(u);l.brushType=Y(l.brushType,s),l.panelId=!0===s?null:s.panelId,a=t._creatingCover=x(t,l),t._covers.push(a)}if(a){var c=q[Y(t._brushType,s)];a.__brushOption.range=c.getCreatingRange(U(t,a,t._track)),r&&(w(t,a),c.updateCommon(t,a)),O(t,a),o={isEnd:r}}}else r&&"single"===u.brushMode&&u.removeOnClick&&T(t,e,n)&&M(t)&&(o={isEnd:r,removeOnClick:!0});return o}function Y(t,e){return"auto"===t?e.defaultBrushType:t}var X={mousedown:function(t){if(this._dragging)$(this,t);else if(!t.target||!t.target.draggable){G(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=T(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}(t,e.offsetX,e.offsetY)){var r=t._zr,i=t._covers,o=T(t,e,n);if(!t._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(!0===o||s.panelId===o.panelId)&&q[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}(this,t,r),this._dragging){G(t);var i=W(this,t,r,!1);i&&I(this,i)}},mouseup:function(t){$(this,t)}};function $(t,e){if(t._dragging){G(e);var n=e.offsetX,r=e.offsetY,i=t.group.transformCoordToLocal(n,r),o=W(t,e,i,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&I(t,o)}}var q={lineX:Z(0),lineY:Z(1),rect:{createCover:function(t,e){function n(t){return t}return k({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=j(t);return N(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){P(t,e,n,r)},updateCommon:L,contain:H},polygon:{createCover:function(t,e){var n=new a.default;return n.add(new l.default({name:"main",style:D(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new c.default({name:"main",draggable:!0,drift:Object(i.curry)(z,t,e),ondragend:Object(i.curry)(I,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:U(t,e,n)})},updateCommon:L,contain:H}};function Z(t){return{createCover:function(e,n){return k({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=j(e);return[d(n[0][t],n[1][t]),p(n[0][t],n[1][t])]},updateCoverShape:function(e,n,r,i){var o,a=A(e,n);if(!0!==a&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var u=[r,o];t&&u.reverse(),P(e,n,u,i)},updateCommon:L,contain:H}}e.default=_},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(40),o=n(12),a=n(72),s=n(23),u=n(358),l=n(89),c=n(143),h=n(9),f=Object(h.makeInner)(),d=r.clone,p=r.bind,g=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,o){var a=e.get("value"),s=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,o||this._lastValue!==a||this._lastStatus!==s){this._lastValue=a,this._lastStatus=s;var u=this._group,l=this._handle;if(!s||"hide"===s)return u&&u.hide(),void(l&&l.hide());u&&u.show(),l&&l.show();var c={};this.makeElOption(c,a,t,e,n);var h=c.graphicKey;h!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=h;var f=this._moveAnimation=this.determineAnimation(t,e);if(u){var d=r.curry(v,e,f);this.updatePointerEl(u,c,d),this.updateLabelEl(u,c,d,e)}else u=this._group=new i.default,this.createPointerEl(u,c,t,e),this.createLabelEl(u,c,t,e),n.getZr().add(u);b(u,e,!0),this._renderHandle(a)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),r=t.axis,i="category"===r.type,o=e.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=u.getAxisInfo(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var a=f(t).pointerEl=new o[i.type](d(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=f(t).labelEl=new a.default(d(e.label));t.add(i),m(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=f(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=f(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),m(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),a=this._handle,s=n.getModel("handle"),u=n.get("status");if(!s.get("show")||!u||"hide"===u)return a&&i.remove(a),void(this._handle=null);this._handle||(e=!0,a=this._handle=o.createIcon(s.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){l.stop(t.event)},onmousedown:p(this._onHandleDragMove,this,0,0),drift:p(this._onHandleDragMove,this),ondragend:p(this._onHandleDragEnd,this)}),i.add(a)),b(a,n,!1),a.setStyle(s.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var h=s.get("size");r.isArray(h)||(h=[h,h]),a.scaleX=h[0]/2,a.scaleY=h[1]/2,c.createOrUpdate(this,"_doDispatchAxisPointer",s.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){v(this._axisPointerModel,!e&&this._moveAnimation,this._handle,y(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(y(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(y(r)),f(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),c.clear(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function v(t,e,n,i){(function t(e,n){if(r.isObject(e)&&r.isObject(n)){var i=!0;return r.each(n,(function(n,r){i=i&&t(e[r],n)})),!!i}return e===n})(f(n).lastProp,i)||(f(n).lastProp=i,e?s.updateProps(n,i,t):(n.stopAnimation(),n.attr(i)))}function m(t,e){t[e.get(["label","show"])?"show":"hide"]()}function y(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function b(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}e.default=g},function(t,e,n){"use strict";n.r(e);var r=n(5),i=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n,r){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(n(70).default);e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(1512),i=n(1514),o=!1;function a(t){o||(o=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,r.default),Object(i.default)(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(70),o=n(0),a=n(206),s=n(9),u=n(11),l=Object(s.makeInner)(),c=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.init=function(){this.markerGroupMap=Object(o.createHashMap)()},e.prototype.render=function(t,e,n){var r=this,i=this.markerGroupMap;i.each((function(t){l(t).keep=!1})),e.eachSeries((function(t){var i=a.default.getMarkerModelFromSeries(t,r.type);i&&r.renderSeries(t,i,e,n)})),i.each((function(t){!l(t).keep&&r.group.remove(t.group)}))},e.prototype.markKeep=function(t){l(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(o.each)(t,(function(t){var r=a.default.getMarkerModelFromSeries(t,n.type);r&&r.getData().eachItemGraphicEl((function(t){t&&(e?Object(u.enterBlur)(t):Object(u.leaveBlur)(t))}))}))},e.type="marker",e}(i.default);e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(0);function i(t,e){if(!t)return!1;for(var n=Object(r.isArray)(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=e.visible,i=void 0===r||r;return n.visible=i,n}return Object(r.__extends)(e,t),e.prototype.show=function(){this.visible||this.changeVisible(!0)},e.prototype.hide=function(){this.visible&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(n(488).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events[t]||[],o=this._events["*"]||[],a=function(r){for(var i=r.length,o=0;o<i;o++)if(r[o]){var a=r[o],s=a.callback;a.once&&(r.splice(o,1),0===r.length&&delete e._events[t],i--,o--),s.apply(e,n)}};a(i),a(o)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e.default=r},function(t,e,n){"use strict";function r(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function i(t,e){var n=t.get("startArrowShape"),i=t.get("endArrowShape");return n&&(e=r(e,n.getCanvasBBox())),i&&(e=r(e,i.getCanvasBBox())),e}n.r(e),n.d(e,"mergeBBox",(function(){return r})),n.d(e,"mergeArrowBBox",(function(){return i}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return Object(r.__extends)(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t)}},e.prototype.translate=function(t){this.buildIndexMap();var e=this.translateIndexMap.get(t);return void 0===e&&(e=Object(i.isNumber)(t)?t:NaN),e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),r=Math.round(e*n)+this.min;return r<this.min||r>this.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var a=e;return Object(i.isNumber)(e)&&!this.values.includes(e)&&(a=this.values[a]),t.prototype.getText.apply(this,Object(r.__spreadArrays)([a],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(Object(i.isNil)(this.getConfig("min"))&&(this.min=0),Object(i.isNil)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(n(313).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(1);function i(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function o(t,e,n){var o=i(t,n,"floor"),a=i(e,n,"ceil");o=Object(r.fixedBase)(o,n),a=Object(r.fixedBase)(a,n);for(var s=[],u=Math.max((a-o)/(Math.pow(2,12)-1),n),l=o;l<=a;l+=u){var c=Object(r.fixedBase)(l,u);s.push(c)}return{min:o,max:a,ticks:s}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(1);function i(t,e,n){var i,o=t.minLimit,a=t.maxLimit,s=t.min,u=t.max,l=t.tickCount,c=void 0===l?5:l,h=Object(r.isNil)(o)?Object(r.isNil)(e)?s:e:o,f=Object(r.isNil)(a)?Object(r.isNil)(n)?u:n:a;if(h>f&&(f=(i=[h,f])[0],h=i[1]),c<=2)return[h,f];for(var d=(f-h)/(c-1),p=[],g=0;g<c;g++)p.push(h+d*g);return p}},function(t,e,n){"use strict";n.r(e),n.d(e,"BACKGROUND_SHAPE",(function(){return r}));var r="element-background"},function(t,e,n){"use strict";n.r(e),n.d(e,"splitPoints",(function(){return i}));var r=n(1);function i(t){var e=t.x;return(Object(r.isArray)(t.y)?t.y:[t.y]).map((function(t,n){return{x:Object(r.isArray)(e)?e[n]:e,y:t}}))}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(7),o=n(178),a=n(468),s=(n(664),n(739)),u=n(740),l=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var r=e.connectNulls,i=void 0!==r&&r,o=e.showSinglePoint,a=void 0===o||o;return n.connectNulls=i,n.showSinglePoint=a,n}return Object(r.__extends)(e,t),e.prototype.updateElements=function(t,e){var n,i,o,l,c,h;void 0===e&&(e=!1);for(var f=new Map,d=new Map,p=[],g=0,v=0;v<t.length;v++){var m=t[v],y=this.getElementId(m);p.push(y),f.set(y,m),d.set(y,g),g++}this.elements=new Array(g);var b=Object(u.diff)(this.lastElementsMap,p),_=b.added,x=b.updated,w=b.removed;try{for(var O=Object(r.__values)(_),S=O.next();!S.done;S=O.next()){y=S.value,m=f.get(y);var C=this.getShapeFactory(),E=this.getShapeInfo(m);v=d.get(y);(M=new a.default({shapeFactory:C,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:v})).geometry=this,M.animate=this.animateOption,M.draw(E,e),this.elementsMap[y]=M,this.elements[v]=M}}catch(t){n={error:t}}finally{try{S&&!S.done&&(i=O.return)&&i.call(O)}finally{if(n)throw n.error}}try{for(var T=Object(r.__values)(x),A=T.next();!A.done;A=T.next()){y=A.value,m=f.get(y);var M=this.lastElementsMap[y],I=(v=d.get(y),E=this.getShapeInfo(m),M.getModel());(this.isCoordinateChanged||Object(s.isModelChange)(I,E))&&(M.animate=this.animateOption,M.update(E)),this.elementsMap[y]=M,this.elements[v]=M}}catch(t){o={error:t}}finally{try{A&&!A.done&&(l=T.return)&&l.call(T)}finally{if(o)throw o.error}}try{for(var j=Object(r.__values)(w),k=j.next();!k.done;k=j.next()){y=k.value;(M=this.lastElementsMap[y]).animate=this.animateOption,M.destroy()}}catch(t){c={error:t}}finally{try{k&&!k.done&&(h=j.return)&&h.call(j)}finally{if(c)throw c.error}}},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,o=t.length;r<o;r++){var a=t[r];e.push({x:a.x,y:a.y}),n.push(a[i.FIELD_ORIGIN])}return{points:e,data:n}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),r=n.points,i=n.data;return e.mappingData=t,e.data=i,e.isStack=!!this.getAdjust("stack"),e.points=r,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(o.default);e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"getDefaultSize",(function(){return o}));var r=n(1),i=n(98);function o(t){var e=t.theme,n=t.coordinate,o=t.getXScale(),a=o.values,s=t.beforeMappingData,u=a.length,l=Object(i.getXDimensionLength)(t.coordinate),c=t.intervalPadding,h=t.dodgePadding,f=t.maxColumnWidth||e.maxColumnWidth,d=t.minColumnWidth||e.minColumnWidth,p=t.columnWidthRatio||e.columnWidthRatio,g=t.multiplePieWidthRatio||e.multiplePieWidthRatio,v=t.roseWidthRatio||e.roseWidthRatio;if(o.isLinear&&a.length>1){a.sort();var m=function(t,e){var n=t.length,i=t;Object(r.isString)(i[0])&&(i=t.map((function(t){return e.translate(t)})));for(var o=i[1]-i[0],a=2;a<n;a++){var s=i[a]-i[a-1];o>s&&(o=s)}return o}(a,o);u=(o.max-o.min)/m,a.length>u&&(u=a.length)}var y=o.range,b=1/u,_=1;(n.isPolar?_=n.isTransposed&&u>1?g:v:(o.isLinear&&(b*=y[1]-y[0]),_=p),!Object(r.isNil)(c)&&c>=0)?b=(1-(u-1)*(c/l))/u:b*=_;if(t.getAdjust("dodge")){var x=function(t,e){if(e){var n=Object(r.flatten)(t);return Object(r.valuesOfKey)(n,e).length}return t.length}(s,t.getAdjust("dodge").dodgeBy);if(!Object(r.isNil)(h)&&h>=0)b=(b-h/l*(x-1))/x;else!Object(r.isNil)(c)&&c>=0?(b*=_,b/=x):b/=x;b=b>=0?b:0}if(!Object(r.isNil)(f)&&f>=0){var w=f/l;b>w&&(b=w)}if(!Object(r.isNil)(d)&&d>=0){var O=d/l;b<O&&(b=O)}return b}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(24);function a(t){return Object(i.get)(t.get("delegateObject"),"item")}var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return Object(r.__extends)(e,t),e.prototype.isItemIgnore=function(t,e){return!!this.ignoreListItemStates.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByComponent=function(t,e,n){var r=this.context.view,i=t.get("field"),a=Object(o.getElements)(r);this.setElementsStateByItem(a,i,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var r=this.context.view,a=Object(o.getScaleByField)(r,e),s=Object(o.getElementValue)(t,e);return!Object(i.isNil)(s)&&n.name===a.getText(s)},e.prototype.setElementsStateByItem=function(t,e,n,r){var o=this;Object(i.each)(t,(function(t){o.isMathItem(t,e,n)&&t.setState(o.stateName,r)}))},e.prototype.setStateEnable=function(t){var e=Object(o.getCurrentElement)(this.context);if(e)Object(o.isElementChange)(this.context)&&this.setStateByElement(e,t);else{var n=Object(o.getDelegationObject)(this.context);if(Object(o.isList)(n)){var r=n.item,i=n.component;if(r&&i&&!this.isItemIgnore(r,i)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&a(s.fromShape)===a(s.toShape))return;this.setStateByComponent(i,r,t)}}}},e.prototype.toggle=function(){var t=Object(o.getCurrentElement)(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(n(498).default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(95),a=n(24),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return Object(r.__extends)(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this,n=Object(a.getElementsByState)(t,this.stateName);Object(i.each)(n,(function(t){e.setElementState(t,!1)}))},e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(24),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return Object(r.__extends)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if(Object(o.isMask)(this.context))t=Object(o.getMaskedElements)(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var r={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)},i=this.context.view;t=Object(o.getIntersectElements)(i,r)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=Object(o.getElements)(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,r=this.context.view,a=Object(o.getSilbings)(r),s=t.map((function(t){return t.getModel().data})),u=r.getXScale().field,l=r.getYScales()[0].field;Object(i.each)(a,(function(t){var r=Object(o.getElements)(t),i=r.filter((function(t){var e=t.getModel().data;return Object(o.isInRecords)(s,e,u,l)}));n.setElementsState(i,e,r)}))},e.prototype.setSiblingsState=function(t){var e=this,n=this.context.view,r=Object(o.getSilbings)(n);Object(o.isMask)(this.context)&&Object(i.each)(r,(function(n){var r=Object(o.getElements)(n),i=Object(o.getSiblingMaskElements)(e.context,n,10);i&&i.length?e.setElementsState(i,t,r):e.clearViewState(n)}))},e.prototype.setElementsState=function(t,e,n){var r=this;Object(i.each)(n,(function(n){t.includes(n)?r.setElementState(n,e):r.setElementState(n,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=Object(o.getSilbings)(e);Object(i.each)(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(n(498).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(24),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.setStateEnable=function(t){var e=Object(i.getCurrentElement)(this.context);if(e){if(!Object(i.isElementChange)(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=Object(i.getCurrentElement)(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(n(498).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return Object(r.__extends)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:".concat(t),n=this.context.view,r=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:r.x,y:r.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:Object(r.__assign)({fill:"#C5D4EB",opacity:.3},e)})},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null==t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,r=t.y-e.y,o=this.points;Object(i.each)(o,(function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=Object(i.deepMix)({},this.getMaskAttrs(),t);this.maskShape.attr(e)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}(n(95).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"geometry",(function(){return l})),n.d(e,"adaptor",(function(){return h}));var r=n(1),i=n(3),o=n(8),a=n(34),s=n(759),u=n(503);function l(t){var e=t.chart,n=t.options,o=n.percent,l=n.progressStyle,c=n.color,h=n.barWidthRatio;e.data(Object(u.getProgressData)(o));var f=Object(i.deepAssign)({},t,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:h,interval:{style:l,color:Object(r.isString)(c)?[c,s.DEFAULT_COLOR[1]]:c},args:{zIndexReversed:!0,sortZIndex:!0}}});return Object(a.interval)(f),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function c(t){return t.chart.coordinate("rect").transpose(),t}function h(t){return Object(i.flow)(l,Object(o.scale)({}),c,o.animation,o.theme,Object(o.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getProgressData",(function(){return o}));var r=n(1),i=n(323);function o(t){var e=Object(r.clamp)(Object(i.isRealNumber)(t)?t:0,0,1);return[{current:""+e,type:"current",percent:e},{current:""+e,type:"target",percent:1}]}},function(t,e,n){"use strict";n.r(e),n.d(e,"conversionTag",(function(){return d})),n.d(e,"basicFunnel",(function(){return p}));var r=n(2),i=n(1),o=n(3),a=n(138),s=n(110),u=n(81),l=n(301);function c(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,o=n.yField,a=n.maxSize,s=n.minSize,u=Object(l.transformData)(i,i,{yField:o,maxSize:a,minSize:s});return e.data(u),t}function h(t){var e=t.chart,n=t.options,r=n.xField,l=n.yField,c=n.color,h=n.tooltip,f=n.label,d=n.shape,p=void 0===d?"funnel":d,g=n.funnelStyle,v=n.state,m=Object(a.getTooltipMapping)(h,[r,l]),y=m.fields,b=m.formatter;return Object(s.geometry)({chart:e,options:{type:"interval",xField:r,yField:u.FUNNEL_MAPPING_VALUE,colorField:r,tooltipFields:Object(i.isArray)(y)&&y.concat([u.FUNNEL_PERCENT,u.FUNNEL_CONVERSATION]),mapping:{shape:p,tooltip:b,color:c,style:g},label:f,state:v}}),Object(o.findGeometry)(t.chart,"interval").adjust("symmetric"),t}function f(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[]:[["transpose"],["scale",1,-1]]}),t}function d(t){var e=t.options,n=t.chart,o=e.maxSize,a=Object(i.get)(n,["geometries","0","dataArray"],[]),s=Object(i.get)(n,["options","data","length"]),c=Object(i.map)(a,(function(t){return Object(i.get)(t,["0","nextPoints","0","x"])*s-.5}));return Object(l.conversionTagComponent)((function(t,e,n,i){var a=o-(o-t[u.FUNNEL_MAPPING_VALUE])/2;return Object(r.__assign)(Object(r.__assign)({},i),{start:[c[e-1]||e-.5,a],end:[c[e-1]||e-.5,a+.05]})}))(t),t}function p(t){return Object(o.flow)(c,h,f,d)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return c}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o);function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var l=new WeakMap,c=function(){function t(){i()(this,t),l.set(this,{})}return a()(t,[{key:"addEventListener",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=l.get(this);r||(r={}),r[t]||(r[t]=[]),r[t].push(e),l.set(this,r),n.capture,n.once,n.passive}},{key:"removeEventListener",value:function(t,e){var n=l.get(this);if(n){var r=n[t];if(r&&r.length>0)for(var i=r.length;i--;i>0)if(r[i]===e){r.splice(i,1);break}}}},{key:"dispatchEvent",value:function(t){var e=l.get(this)[t.type];if(e){var n,r=s(e);try{for(r.s();!(n=r.n()).done;){(0,n.value)(t)}}catch(t){r.e(t)}finally{r.f()}}}}]),t}()},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var r=n(19),i=n(20);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var s=new WeakMap,u=function(){function t(){Object(r.default)(this,t),s.set(this,{})}return Object(i.default)(t,[{key:"addEventListener",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=s.get(this);r||(r={}),r[t]||(r[t]=[]),r[t].push(e),s.set(this,r),n.capture,n.once,n.passive}},{key:"removeEventListener",value:function(t,e){var n=s.get(this);if(n){var r=n[t];if(r&&r.length>0)for(var i=r.length;i--;i>0)if(r[i]===e){r.splice(i,1);break}}}},{key:"dispatchEvent",value:function(t){var e=s.get(this)[t.type];if(e){var n,r=o(e);try{for(r.s();!(n=r.n()).done;){(0,n.value)(t)}}catch(t){r.e(t)}finally{r.f()}}}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(19),i=n(20),o=n(141),a=n(334),s=function(){function t(e){Object(r.default)(this,t),this.reset(),this.clickTolerance=e.clickTolerance||1}return Object(i.default)(t,[{key:"reset",value:function(){this.active=!1,this.moved=!1,delete this.lastPoint,delete this.eventButton}},{key:"mousedown",value:function(t,e){if(!this.lastPoint){var n=o.default.mouseButton(t);this.correctButton(t,n)&&(this.lastPoint=e,this.eventButton=n)}}},{key:"mousemoveWindow",value:function(t,e){var n=this.lastPoint;if(n)if(t.preventDefault(),Object(a.buttonStillPressed)(t,this.eventButton))this.reset();else if(this.moved||!(e.dist(n)<this.clickTolerance))return this.moved=!0,this.lastPoint=e,this.move(n,e)}},{key:"mouseupWindow",value:function(t){this.lastPoint&&(o.default.mouseButton(t)===this.eventButton&&(this.moved&&o.default.suppressClick(),this.reset()))}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}},{key:"correctButton",value:function(t,e){return!1}},{key:"move",value:function(t,e){}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(74),i=n(19),o=n(20),a=n(141),s=function(){function t(){Object(i.default)(this,t),this.reset()}return Object(o.default)(t,[{key:"reset",value:function(){this.active=!1,delete this.firstTwoTouches}},{key:"start",value:function(t){}},{key:"move",value:function(t,e,n){}},{key:"touchstart",value:function(t,e,n){this.firstTwoTouches||n.length<2||(this.firstTwoTouches=[n[0].identifier,n[1].identifier],this.start([e[0],e[1]]))}},{key:"touchmove",value:function(t,e,n){if(this.firstTwoTouches){t.preventDefault();var i=Object(r.default)(this.firstTwoTouches,2),o=i[0],a=i[1],s=u(n,e,o),l=u(n,e,a);if(s&&l){var c=this.aroundCenter?null:s.add(l).div(2);return this.move([s,l],c,t)}}}},{key:"touchend",value:function(t,e,n){if(this.firstTwoTouches){var i=Object(r.default)(this.firstTwoTouches,2),o=i[0],s=i[1],l=u(n,e,o),c=u(n,e,s);l&&c||(this.active&&a.default.suppressClick(),this.reset())}}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(t){this.enabled=!0,this.aroundCenter=!!t&&"center"===t.around}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}]),t}();function u(t,e,n){for(var r=0;r<t.length;r++)if(t[r].identifier===n)return e[r]}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));function r(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;i<n&&r(t[i],t[i-1])<0;)i++;!function(t,e,n){n--;for(;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}(t,e,i)}else for(;i<n&&r(t[i],t[i-1])>=0;)i++;return i-e}function i(t,e,n,r,i){for(r===e&&r++;r<n;r++){for(var o,a=t[r],s=e,u=r;s<u;)i(a,t[o=s+u>>>1])<0?u=o:s=o+1;var l=r-s;switch(l){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;l>0;)t[s+l]=t[s+l-1],l--}t[s]=a}}function o(t,e,n,r,i,o){var a=0,s=0,u=1;if(o(t,e[n+i])>0){for(s=r-i;u<s&&o(t,e[n+i+u])>0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),a+=i,u+=i}else{for(s=i+1;u<s&&o(t,e[n+i-u])<=0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s);var l=a;a=i-u,u=i-l}for(a++;a<u;){var c=a+(u-a>>>1);o(t,e[n+c])>0?a=c+1:u=c}return u}function a(t,e,n,r,i,o){var a=0,s=0,u=1;if(o(t,e[n+i])<0){for(s=i+1;u<s&&o(t,e[n+i-u])<0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s);var l=a;a=i-u,u=i-l}else{for(s=r-i;u<s&&o(t,e[n+i+u])>=0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),a+=i,u+=i}for(a++;a<u;){var c=a+(u-a>>>1);o(t,e[n+c])<0?u=c:a=c+1}return u}function s(t,e){var n,r,i,s=7,u=0;n=t.length;var l=[];function c(n){var c=r[n],h=i[n],f=r[n+1],d=i[n+1];i[n]=h+d,n===u-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),u--;var p=a(t[f],t,c,h,0,e);c+=p,0!==(h-=p)&&0!==(d=o(t[c+h-1],t,f,d,d-1,e))&&(h<=d?function(n,r,i,u){var c=0;for(c=0;c<r;c++)l[c]=t[n+c];var h=0,f=i,d=n;if(t[d++]=t[f++],0==--u){for(c=0;c<r;c++)t[d+c]=l[h+c];return}if(1===r){for(c=0;c<u;c++)t[d+c]=t[f+c];return void(t[d+u]=l[h])}var p,g,v,m=s;for(;;){p=0,g=0,v=!1;do{if(e(t[f],l[h])<0){if(t[d++]=t[f++],g++,p=0,0==--u){v=!0;break}}else if(t[d++]=l[h++],p++,g=0,1==--r){v=!0;break}}while((p|g)<m);if(v)break;do{if(0!==(p=a(t[f],l,h,r,0,e))){for(c=0;c<p;c++)t[d+c]=l[h+c];if(d+=p,h+=p,(r-=p)<=1){v=!0;break}}if(t[d++]=t[f++],0==--u){v=!0;break}if(0!==(g=o(l[h],t,f,u,0,e))){for(c=0;c<g;c++)t[d+c]=t[f+c];if(d+=g,f+=g,0===(u-=g)){v=!0;break}}if(t[d++]=l[h++],1==--r){v=!0;break}m--}while(p>=7||g>=7);if(v)break;m<0&&(m=0),m+=2}if((s=m)<1&&(s=1),1===r){for(c=0;c<u;c++)t[d+c]=t[f+c];t[d+u]=l[h]}else{if(0===r)throw new Error;for(c=0;c<r;c++)t[d+c]=l[h+c]}}(c,h,f,d):function(n,r,i,u){var c=0;for(c=0;c<u;c++)l[c]=t[i+c];var h=n+r-1,f=u-1,d=i+u-1,p=0,g=0;if(t[d--]=t[h--],0==--r){for(p=d-(u-1),c=0;c<u;c++)t[p+c]=l[c];return}if(1===u){for(g=(d-=r)+1,p=(h-=r)+1,c=r-1;c>=0;c--)t[g+c]=t[p+c];return void(t[d]=l[f])}var v=s;for(;;){var m=0,y=0,b=!1;do{if(e(l[f],t[h])<0){if(t[d--]=t[h--],m++,y=0,0==--r){b=!0;break}}else if(t[d--]=l[f--],y++,m=0,1==--u){b=!0;break}}while((m|y)<v);if(b)break;do{if(0!==(m=r-a(l[f],t,n,r,r-1,e))){for(r-=m,g=(d-=m)+1,p=(h-=m)+1,c=m-1;c>=0;c--)t[g+c]=t[p+c];if(0===r){b=!0;break}}if(t[d--]=l[f--],1==--u){b=!0;break}if(0!==(y=u-o(t[h],l,0,u,u-1,e))){for(u-=y,g=(d-=y)+1,p=(f-=y)+1,c=0;c<y;c++)t[g+c]=l[p+c];if(u<=1){b=!0;break}}if(t[d--]=t[h--],0==--r){b=!0;break}v--}while(m>=7||y>=7);if(b)break;v<0&&(v=0),v+=2}(s=v)<1&&(s=1);if(1===u){for(g=(d-=r)+1,p=(h-=r)+1,c=r-1;c>=0;c--)t[g+c]=t[p+c];t[d]=l[f]}else{if(0===u)throw new Error;for(p=d-(u-1),c=0;c<u;c++)t[p+c]=l[c]}}(c,h,f,d))}return n<120?5:n<1542?10:n<119151?19:40,r=[],i=[],{mergeRuns:function(){for(;u>1;){var t=u-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;c(t)}},forceMergeRuns:function(){for(;u>1;){var t=u-2;t>0&&i[t-1]<i[t+1]&&t--,c(t)}},pushRun:function(t,e){r[u]=t,i[u]=e,u+=1}}}function u(t,e,n,o){n||(n=0),o||(o=t.length);var a=o-n;if(!(a<2)){var u=0;if(a<32)i(t,n,o,n+(u=r(t,n,o,e)),e);else{var l=s(t,e),c=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(a);do{if((u=r(t,n,o,e))<c){var h=a;h>c&&(h=c),i(t,n,n+h,n+u,e),u=h}l.pushRun(n,u),l.mergeRuns(),a-=u,n+=u}while(0!==a);l.forceMergeRuns()}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"SourceManager",(function(){return c})),n.d(e,"disableTransformOptionMerge",(function(){return h}));var r=n(0),i=n(153),o=n(30),a=n(152),s=n(703),u=n(425),l=n(187),c=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,a=this._getUpstreamSourceManagers(),s=!!a.length;if(f(n)){var u=n,l=void 0,c=void 0,h=void 0;if(s){var d=a[0];d.prepareSource(),l=(h=d.getSource()).data,c=h.sourceFormat,e=[d._getVersionSign()]}else l=u.get("data",!0),c=Object(r.isTypedArray)(l)?o.SOURCE_FORMAT_TYPED_ARRAY:o.SOURCE_FORMAT_ORIGINAL,e=[];var p=this._getSourceMetaRawOption()||{},g=h&&h.metaRawOption||{},v=Object(r.retrieve2)(p.seriesLayoutBy,g.seriesLayoutBy)||null,m=Object(r.retrieve2)(p.sourceHeader,g.sourceHeader),y=Object(r.retrieve2)(p.dimensions,g.dimensions);t=v!==g.seriesLayoutBy||!!m!=!!g.sourceHeader||y?[Object(i.createSource)(l,{seriesLayoutBy:v,sourceHeader:m,dimensions:y},c)]:[]}else{var b=n;if(s){var _=this._applyTransform(a);t=_.sourceList,e=_.upstreamSignList}else{var x=b.get("source",!0);t=[Object(i.createSource)(x,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,o=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(null!=a){1!==t.length&&d("")}var u=[],l=[];return Object(r.each)(t,(function(t){t.prepareSource();var e=t.getSource(a||0);null==a||e||d(""),u.push(e),l.push(t._getVersionSign())})),o?e=Object(s.applyDataTransform)(o,u,{datasetIndex:n.componentIndex}):null!=a&&(e=[Object(i.cloneSourceShallow)(u[0])]),{sourceList:e,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];f(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new u.default).initData(new l.DefaultDataProvider(e,t.length),t),i[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(f(t)){var e=Object(a.querySeriesUpstreamDatasetModel)(t);return e?[e.getSourceManager()]:[]}return Object(r.map)(Object(a.queryDatasetUpstreamDatasetModels)(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(f(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function h(t){t.option.transform&&Object(r.setAsPrimitive)(t.option.transform)}function f(t){return"series"===t.mainType}function d(t){throw new Error(t)}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=function(t){this.otherDims={},null!=t&&r.extend(this,t)};e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"prepareDataCoordInfo",(function(){return o})),n.d(e,"getStackedOnPoint",(function(){return a}));var r=n(147),i=n(0);function o(t,e,n){var o=t.getBaseAxis(),a=t.getOtherAxis(o),s=function(t,e){var n=0,r=t.scale.getExtent();"start"===e?n=r[0]:"end"===e?n=r[1]:Object(i.isNumber)(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(a,n),u=o.dim,l=a.dim,c=e.mapDimension(l),h=e.mapDimension(u),f="x"===l||"radius"===l?1:0,d=Object(i.map)(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,g=e.getCalculationInfo("stackResultDimension");return Object(r.isDimensionStacked)(e,d[0])&&(p=!0,d[0]=g),Object(r.isDimensionStacked)(e,d[1])&&(p=!0,d[1]=g),{dataDimsForPoint:d,valueStart:s,valueAxisDim:l,baseAxisDim:u,stacked:!!p,valueDim:c,baseDim:h,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function a(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(36),o=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,u=e.startAngle,l=e.endAngle,c=e.clockwise,h=2*Math.PI,f=c?l-u<h:u-l<h;f||(u=l-(c?h:-h));var d=Math.cos(u),p=Math.sin(u),g=Math.cos(l),v=Math.sin(l);f?(t.moveTo(d*i+n,p*i+r),t.arc(d*s+n,p*s+r,a,-Math.PI+u,u,!c)):t.moveTo(d*o+n,p*o+r),t.arc(n,r,o,u,l,!c),t.arc(g*s+n,v*s+r,a,l-2*Math.PI,l-Math.PI,!c),0!==i&&t.arc(n,r,i,l,u,c)},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(59),o=n(163),a=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.getInitialData=function(t,e){return Object(o.default)(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e&&e.clampData){var n=e.dataToPoint(e.clampData(t)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=i+o/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(i.default);i.default.registerClass(a),e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"rectCoordAxisBuildSplitArea",(function(){return s})),n.d(e,"rectCoordAxisHandleRemove",(function(){return u}));var r=n(0),i=n(79),o=n(9),a=Object(o.makeInner)();function s(t,e,n,o){var s=n.axis;if(!s.scale.isBlank()){var u=n.getModel("splitArea"),l=u.getModel("areaStyle"),c=l.get("color"),h=o.coordinateSystem.getRect(),f=s.getTicksCoords({tickModel:u,clamp:!0});if(f.length){var d=c.length,p=a(t).splitAreaColors,g=r.createHashMap(),v=0;if(p)for(var m=0;m<f.length;m++){var y=p.get(f[m].tickValue);if(null!=y){v=(y+(d-1)*m)%d;break}}var b=s.toGlobalCoord(f[0].coord),_=l.getAreaStyle();c=r.isArray(c)?c:[c];for(m=1;m<f.length;m++){var x=s.toGlobalCoord(f[m].coord),w=void 0,O=void 0,S=void 0,C=void 0;s.isHorizontal()?(w=b,O=h.y,S=x-w,C=h.height,b=w+S):(w=h.x,O=b,S=h.width,b=O+(C=x-O));var E=f[m-1].tickValue;null!=E&&g.set(E,v),e.add(new i.default({anid:null!=E?"area_"+E:null,shape:{x:w,y:O,width:S,height:C},style:r.defaults({fill:c[v]},_),autoBatch:!0,silent:!0})),v=(v+1)%d}a(t).splitAreaColors=g}}}function u(t){a(t).splitAreaColors=null}},function(t,e,n){"use strict";n.r(e),n.d(e,"take",(function(){return a})),n.d(e,"release",(function(){return s})),n.d(e,"isTaken",(function(){return u}));var r=n(139),i=n(0),o="\0_ec_interaction_mutex";function a(t,e,n){l(t)[e]=n}function s(t,e,n){var r=l(t);r[e]===n&&(r[e]=null)}function u(t,e){return!!l(t)[e]}function l(t){return t[o]||(t[o]={})}r.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},i.noop)},function(t,e,n){"use strict";n.r(e),n.d(e,"push",(function(){return s})),n.d(e,"pop",(function(){return u})),n.d(e,"clear",(function(){return l})),n.d(e,"count",(function(){return c}));var r=n(0),i=n(9),o=r.each,a=Object(i.makeInner)();function s(t,e){var n=h(t);o(e,(function(e,r){for(var i=n.length-1;i>=0;i--){if(n[i][r])break}if(i<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var a=o.getPercentRange();n[0][r]={dataZoomId:r,start:a[0],end:a[1]}}}})),n.push(e)}function u(t){var e=h(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return o(n,(function(t,n){for(var i=e.length-1;i>=0;i--)if(t=e[i][n]){r[n]=t;break}})),r}function l(t){a(t).snapshots=null}function c(t){return h(t).length}function h(t){var e=a(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(727),a=n(140),s=n(300),u=n(9),l=n(6),c=n(41),h=a.default.mapVisual,f=a.default.eachVisual,d=i.isArray,p=i.each,g=l.asc,v=l.linearMap,m=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&s.replaceVisualOption(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=i.bind(t,this),this.controllerVisuals=s.createVisualMappings(this.option.controller,e,t),this.targetVisuals=s.createVisualMappings(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=u.normalizeToArray(t),e},e.prototype.eachTargetSeries=function(t,e){i.each(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&t.call(e,r)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var r,o=this.option,a=o.precision,s=this.dataBound,u=o.formatter;n=n||["<",">"],i.isArray(t)&&(t=t.slice(),r=!0);var l=e?t:r?[c(t[0]),c(t[1])]:c(t);return i.isString(u)?u.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):i.isFunction(u)?r?u(t[0],t[1]):u(t):r?t[0]===s[0]?n[0]+" "+l[1]:t[1]===s[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function c(t){return t===s[0]?"min":t===s[1]?"max":(+t).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=t.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},r=e.target||(e.target={}),s=e.controller||(e.controller={});i.merge(r,n),i.merge(s,n);var u=this.isCategory();function l(n){d(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}l.call(this,r),l.call(this,s),function(t,e,n){var r=t[e],i=t[n];r&&!i&&(i=t[n]={},p(r,(function(t,e){if(a.default.isValidType(e)){var n=o.default.get(e,"inactive",u);null!=n&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}.call(this,r,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),o=this.getItemSymbol()||"roundRect";p(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:u?r:[r]}),null==l.symbol&&(l.symbol=e&&i.clone(e)||(u?o:[o])),null==l.symbolSize&&(l.symbolSize=n&&i.clone(n)||(u?s[0]:[s[0],s[0]])),l.symbol=h(l.symbol,(function(t){return"none"===t?o:t}));var c=l.symbolSize;if(null!=c){var d=-1/0;f(c,(function(t){t>d&&(d=t)})),l.symbolSize=h(c,(function(t){return v(t,[0,d],[0,s[0]],!0)}))}}),this)}.call(this,s)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(c.default);e.default=m},function(t,e,n){"use strict";n.r(e);var r=n(372),i=n(905),o=n(907),a=n(1561),s=n(582),u=n(1562),l=n(1560),c=n(522),h=n(523);e.default=function(t,e){var n,f=typeof e;return null==e||"boolean"===f?Object(c.default)(e):("number"===f?s.default:"string"===f?(n=Object(r.default)(e))?(e=n,i.default):l.default:e instanceof r.default?i.default:e instanceof Date?a.default:Object(h.isNumberArray)(e)?h.default:Array.isArray(e)?o.genericArray:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?u.default:s.default)(t,e)}},function(t,e,n){"use strict";n.r(e),e.default=function(t){return function(){return t}}},function(t,e,n){"use strict";function r(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}n.r(e),n.d(e,"isNumberArray",(function(){return r})),e.default=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}},function(t,e,n){"use strict";n.r(e);var r=n(1131);n.d(e,"createTheme",(function(){return r.createTheme}))},function(t,e,n){"use strict";n.r(e),n.d(e,"PaddingCal",(function(){return o}));var r=n(2),i=n(7),o=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=t,this.right=e,this.bottom=n,this.left=r}return t.instance=function(e,n,r,i){return void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=0),new t(e,n,r,i)},t.prototype.max=function(t){var e=Object(r.__read)(t,4),n=e[0],i=e[1],o=e[2],a=e[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,i),this.bottom=Math.max(this.bottom,o),this.left=Math.max(this.left,a),this},t.prototype.shrink=function(t){var e=Object(r.__read)(t,4),n=e[0],i=e[1],o=e[2],a=e[3];return this.top+=n,this.right+=i,this.bottom+=o,this.left+=a,this},t.prototype.inc=function(t,e){var n=t.width,r=t.height;switch(e){case i.DIRECTION.TOP:case i.DIRECTION.TOP_LEFT:case i.DIRECTION.TOP_RIGHT:this.top+=r;break;case i.DIRECTION.RIGHT:case i.DIRECTION.RIGHT_TOP:case i.DIRECTION.RIGHT_BOTTOM:this.right+=n;break;case i.DIRECTION.BOTTOM:case i.DIRECTION.BOTTOM_LEFT:case i.DIRECTION.BOTTOM_RIGHT:this.bottom+=r;break;case i.DIRECTION.LEFT:case i.DIRECTION.LEFT_TOP:case i.DIRECTION.LEFT_BOTTOM:this.left+=n}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t.prototype.clone=function(){return new(t.bind.apply(t,Object(r.__spreadArray)([void 0],Object(r.__read)(this.getPadding()),!1)))},t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"processRangeData",(function(){return o})),n.d(e,"getIndicatorData",(function(){return a})),n.d(e,"getRangeData",(function(){return s}));var r=n(1),i=n(158);function o(t,e){return t.map((function(n,r){var o;return(o={})[i.RANGE_VALUE]=n-(t[r-1]||0),o[i.RANGE_TYPE]=""+r,o[i.PERCENT]=e,o}))}function a(t){var e;return[(e={},e[i.PERCENT]=Object(r.clamp)(t,0,1),e)]}function s(t,e){var n=Object(r.get)(e,["ticks"],[]),i=Object(r.size)(n)?Object(r.uniq)(n):[0,Object(r.clamp)(t,0,1),1];return i[0]||i.shift(),o(i,t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"toPaddingOptions",(function(){return s}));var r=n(4),i=n.n(r);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={top:0,right:0,bottom:0,left:0};if("number"==typeof t)return{top:t,right:t,bottom:t,left:t};if(Array.isArray(t)){if(4===t.length)return{top:t[0],right:t[1],bottom:t[2],left:t[3]};if(2===t.length)return{top:t[0],right:t[1],bottom:t[0],left:t[1]}}return a(a({},e),t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"MAX_TAP_INTERVAL",(function(){return l})),n.d(e,"MAX_TOUCH_TIME",(function(){return c})),n.d(e,"MAX_DIST",(function(){return h})),n.d(e,"default",(function(){return f}));var r=n(19),i=n(20),o=n(75),a=n(603);function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var l=500,c=500,h=30,f=function(){function t(e){Object(r.default)(this,t),this.reset(),this.numTouches=e.numTouches}return Object(i.default)(t,[{key:"reset",value:function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1}},{key:"touchstart",value:function(t,e,n){(this.centroid||n.length>this.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=t.timeStamp),n.length===this.numTouches&&(this.centroid=function(t){var e,n=new o.default(0,0),r=s(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;n._add(i)}}catch(t){r.e(t)}finally{r.f()}return n.div(t.length)}(e),this.touches=Object(a.indexTouches)(n,e)))}},{key:"touchmove",value:function(t,e,n){if(!this.aborted&&this.centroid){var r=Object(a.indexTouches)(n,e);for(var i in this.touches)if(this.touches[i]){var o=this.touches[i],s=r[i];(!s||s.dist(o)>h)&&(this.aborted=!0)}}}},{key:"touchend",value:function(t,e,n){if((!this.centroid||t.timeStamp-this.startTime>c)&&(this.aborted=!0),0===n.length){var r=!this.aborted&&this.centroid;if(this.reset(),r)return r}}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"PerformanceMarkers",(function(){return s})),n.d(e,"PerformanceUtils",(function(){return u}));var r=n(45),i=null,o=[],a=r.$window.performance,s={create:"create",load:"load",fullLoad:"fullLoad"},u={mark:function(t){a.mark(t)},frame:function(t){var e=t;if(null!=i){var n=e-i;o.push(n)}i=e},clearMetrics:function(){for(var t in i=null,o=[],a.clearMeasures("loadTime"),a.clearMeasures("fullLoadTime"),s)a.clearMarks(s[t])},getPerformanceMetrics:function(){var t=a.measure("loadTime",s.create,s.load).duration,e=a.measure("fullLoadTime",s.create,s.fullLoad).duration,n=o.length,r=1/(o.reduce((function(t,e){return t+e}),0)/n/1e3),i=o.filter((function(t){return t>1e3/30})).reduce((function(t,e){return t+(e-1e3/30)/(1e3/30)}),0);return{loadTime:t,fullLoadTime:e,fps:r,percentDroppedFrames:i/(n+i)*100}}}},function(t,e,n){"use strict";function r(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}n.r(e),n.d(e,"newMessages",(function(){return r})),n.d(e,"messages",(function(){return i}));var i=r()},function(t,e,n){"use strict";n.r(e),n.d(e,"getChartSize",(function(){return a})),n.d(e,"removeDom",(function(){return s}));var r=n(7),i=n(92);function o(t){return"number"==typeof t&&!isNaN(t)}function a(t,e,n,i){var a=n,s=i;if(e){var u=function(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}(t);a=u.width?u.width:a,s=u.height?u.height:s}return{width:Math.max(o(a)?a:r.MIN_CHART_WIDTH,r.MIN_CHART_WIDTH),height:Math.max(o(s)?s:r.MIN_CHART_HEIGHT,r.MIN_CHART_HEIGHT)}}function s(t){var e=t.parentNode;e&&e.removeChild(t)}n.d(e,"createDom",(function(){return i.createDom})),n.d(e,"modifyCSS",(function(){return i.modifyCSS}))},function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.r(e),n.d(e,"extend",(function(){return r})),e.default=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";n.r(e),n.d(e,"parseFields",(function(){return i}));var r=n(1);function i(t){return Object(r.isArray)(t)?t:t.split("*")}},function(t,e,n){"use strict";n.r(e),n.d(e,"wordCloud",(function(){return o})),n.d(e,"transform",(function(){return a})),n.d(e,"functor",(function(){return _}));var r=n(1),i={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function o(t,e){return a(t,e=Object(r.assign)({},i,e))}function a(t,e){var n=function(){var t=[256,256],e=l,n=h,r=c,i=f,o=d,a=m,s=Math.random,w=[],O=1/0,S=u,C=c,E=b,T={};function A(e,n,r){for(var i,o,u,l,c,h=n.x,f=n.y,d=Math.sqrt(t[0]*t[0]+t[1]*t[1]),p=a(t),v=s()<.5?1:-1,m=-v;(i=p(m+=v))&&(o=~~i[0],u=~~i[1],!(Math.min(Math.abs(o),Math.abs(u))>=d));)if(n.x=h+o,n.y=f+u,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1]||r&&g(n,e,t[0])||r&&(c=r,!((l=n).x+l.x1>c[0].x&&l.x+l.x0<c[1].x&&l.y+l.y1>c[0].y&&l.y+l.y0<c[1].y)))){for(var y=n.sprite,b=n.width>>5,_=t[0]>>5,x=n.x-(b<<4),w=127&x,O=32-w,S=n.y1-n.y0,C=void 0,E=(n.y+n.y0)*_+(x>>5),T=0;T<S;T++){C=0;for(var A=0;A<=b;A++)e[E+A]|=C<<O|(A<b?(C=y[T*b+A])>>>w:0);E+=_}return delete n.sprite,!0}return!1}return T.start=function(){var a=t[0],u=t[1],l=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=2048/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(E()),c=T.board?T.board:y((t[0]>>5)*t[1]),h=w.length,f=[],d=w.map((function(t,a,s){return t.text=S.call(this,t,a,s),t.font=e.call(this,t,a,s),t.style=C.call(this,t,a,s),t.weight=r.call(this,t,a,s),t.rotate=i.call(this,t,a,s),t.size=~~n.call(this,t,a,s),t.padding=o.call(this,t,a,s),t})).sort((function(t,e){return e.size-t.size})),g=-1,m=T.board?[{x:0,y:0},{x:a,y:u}]:null;return function(){var e=Date.now();for(;Date.now()-e<O&&++g<h;){var n=d[g];n.x=a*(s()+.5)>>1,n.y=u*(s()+.5)>>1,p(l,n,d,g),n.hasText&&A(c,n,m)&&(f.push(n),m?T.hasImage||v(m,n):m=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}T._tags=f,T._bounds=m}(),T},T.createMask=function(e){var n=document.createElement("canvas"),r=t[0],i=t[1];if(r&&i){var o=r>>5,a=y((r>>5)*i);n.width=r,n.height=i;var s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height,0,0,r,i);for(var u=s.getImageData(0,0,r,i).data,l=0;l<i;l++)for(var c=0;c<r;c++){var h=o*l+(c>>5),f=l*r+c<<2,d=u[f]>=250&&u[f+1]>=250&&u[f+2]>=250?1<<31-c%32:0;a[h]|=d}T.board=a,T.hasImage=!0}},T.timeInterval=function(t){O=null==t?1/0:t},T.words=function(t){w=t},T.size=function(e){t=[+e[0],+e[1]]},T.font=function(t){e=_(t)},T.fontWeight=function(t){r=_(t)},T.rotate=function(t){i=_(t)},T.spiral=function(t){a=x[t]||t},T.fontSize=function(t){n=_(t)},T.padding=function(t){o=_(t)},T.random=function(t){s=_(t)},T}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){Object(r.isNil)(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var i=n.start()._tags;i.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var o=e.size,a=o[0],s=o[1];return i.push({text:"",value:0,x:0,y:0,opacity:0}),i.push({text:"",value:0,x:a,y:s,opacity:0}),i}var s=Math.PI/180;function u(t){return t.text}function l(){return"serif"}function c(){return"normal"}function h(t){return t.value}function f(){return 90*~~(2*Math.random())}function d(){return 1}function p(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,2048/o,2048/o);var a=0,u=0,l=0,c=n.length;for(--r;++r<c;){e=n[r],i.save(),i.font=e.style+" "+e.weight+" "+~~((e.size+1)/o)+"px "+e.font;var h=i.measureText(e.text+"m").width*o,f=e.size<<1;if(e.rotate){var d=Math.sin(e.rotate*s),p=Math.cos(e.rotate*s),g=h*p,v=h*d,m=f*p,y=f*d;h=Math.max(Math.abs(g+y),Math.abs(g-y))+31>>5<<5,f=~~Math.max(Math.abs(v+m),Math.abs(v-m))}else h=h+31>>5<<5;if(f>l&&(l=f),a+h>=2048&&(a=0,u+=l,l=0),u+f>=2048)break;i.translate((a+(h>>1))/o,(u+(f>>1))/o),e.rotate&&i.rotate(e.rotate*s),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=h,e.height=f,e.xoff=a,e.yoff=u,e.x1=h>>1,e.y1=f>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,a+=h}for(var b=i.getImageData(0,0,2048/o,2048/o).data,_=[];--r>=0;)if((e=n[r]).hasText){for(var x=(h=e.width)>>5,w=(f=e.y1-e.y0,0);w<f*x;w++)_[w]=0;if(null==(a=e.xoff))return;u=e.yoff;for(var O=0,S=-1,C=0;C<f;C++){for(w=0;w<h;w++){var E=x*C+(w>>5),T=b[2048*(u+C)+(a+w)<<2]?1<<31-w%32:0;_[E]|=T,O|=T}O?S=C:(e.y0++,f--,C--,u++)}e.y1=e.y0+S,e.sprite=_.slice(0,(e.y1-e.y0)*x)}}}function g(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,u=32-s,l=t.y1-t.y0,c=(t.y+t.y0)*n+(a>>5),h=0;h<l;h++){r=0;for(var f=0;f<=o;f++)if((r<<u|(f<o?(r=i[h*o+f])>>>s:0))&e[c+f])return!0;c+=n}return!1}function v(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function m(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function y(t){for(var e=[],n=-1;++n<t;)e[n]=0;return e}function b(){return document.createElement("canvas")}function _(t){return Object(r.isFunction)(t)?t:function(){return t}}var x={archimedean:m,rectangular:function(t){var e=4*t[0]/t[1],n=0,r=0;return function(t){var i=t<0?-1:1;switch(Math.sqrt(1+4*i*t)-i&3){case 0:n+=e;break;case 1:r+=4;break;case 2:n-=e;break;default:r-=4}return[n,r]}}}},function(t,e,n){"use strict";function r(t,e){var n=t.length*e;if(0===t.length)throw new Error("quantile requires at least one data point.");if(e<0||e>1)throw new Error("quantiles must be between 0 and 1");return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}function i(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function o(t,e,n,r){for(n=n||0,r=r||t.length-1;r>n;){if(r-n>600){var a=r-n+1,s=e-n+1,u=Math.log(a),l=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*l*(a-l)/a);s-a/2<0&&(c*=-1),o(t,e,Math.max(n,Math.floor(e-s*l/a+c)),Math.min(r,Math.floor(e+(a-s)*l/a+c)))}var h=t[e],f=n,d=r;for(i(t,n,e),t[r]>h&&i(t,n,r);f<d;){for(i(t,f,d),f++,d--;t[f]<h;)f++;for(;t[d]>h;)d--}t[n]===h?i(t,n,d):i(t,++d,r),d<=e&&(n=d+1),e<=d&&(r=d-1)}}function a(t,e){var n=t.slice();if(Array.isArray(e)){!function(t,e){for(var n=[0],r=0;r<e.length;r++)n.push(l(t.length,e[r]));n.push(t.length-1),n.sort(u);var i=[0,n.length-1];for(;i.length;){var o=Math.ceil(i.pop()),a=Math.floor(i.pop());if(!(o-a<=1)){var c=Math.floor((a+o)/2);s(t,n[c],Math.floor(n[a]),Math.ceil(n[o])),i.push(a,c,c,o)}}}(n,e);for(var i=[],o=0;o<e.length;o++)i[o]=r(n,e[o]);return i}return s(n,l(n.length,e),0,n.length-1),r(n,e)}function s(t,e,n,r){e%1==0?o(t,e,n,r):(o(t,e=Math.floor(e),n,r),o(t,e+1,e+1,r))}function u(t,e){return t-e}function l(t,e){var n=t*e;return 1===e?t-1:0===e?0:n%1!=0?Math.ceil(n)-1:t%2==0?n-.5:n}n.r(e),n.d(e,"quantileSorted",(function(){return r})),n.d(e,"swap",(function(){return i})),n.d(e,"quickselect",(function(){return o})),n.d(e,"quantile",(function(){return a}))},function(t,e,n){var r;
/*! Hammer.JS - v2.0.7 - 2016-04-22
* http://hammerjs.github.io/
*
* Copyright (c) 2016 Jorik Tangelder;
* Licensed under the MIT license */!function(i,o,a,s){"use strict";var u,l="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM,c="undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram),h=l||c,f=["","webkit","Moz","MS","ms","o"],d=h?"":o.createElement("div"),p=Math.round,g=Math.abs,v=Date.now;function m(t,e,n){return setTimeout(S(t,n),e)}function y(t,e,n){return!!Array.isArray(t)&&(b(t,n[e],n),!0)}function b(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function _(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}u="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var x=_((function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&void 0===t[r[i]])&&(t[r[i]]=e[r[i]]),i++;return t}),"extend","Use `assign`."),w=_((function(t,e){return x(t,e,!0)}),"merge","Use `assign`.");function O(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&u(r,n)}function S(t,e){return function(){return t.apply(e,arguments)}}function C(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function E(t,e){return void 0===t?e:t}function T(t,e,n){b(j(e),(function(e){t.addEventListener(e,n,!1)}))}function A(t,e,n){b(j(e),(function(e){t.removeEventListener(e,n,!1)}))}function M(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function I(t,e){return t.indexOf(e)>-1}function j(t){return t.trim().split(/\s+/g)}function k(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function P(t){return Array.prototype.slice.call(t,0)}function L(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];k(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}function R(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<f.length;){if((r=(n=f[o])?n+i:e)in t)return r;o++}}var D=1;function N(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}var B="ontouchstart"in i,F=void 0!==R(i,"PointerEvent"),z=B&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),V=["x","y"],U=["clientX","clientY"];function G(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){C(t.options.enable,[t])&&n.handler(e)},this.init()}function H(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&e&&r-i==0,a=12&e&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=W(e));i>1&&!n.firstMultiple?n.firstMultiple=W(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,u=e.center=Y(r);e.timeStamp=v(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Z(s,u),e.distance=q(s,u),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y});e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=$(e.deltaX,e.deltaY);var l=X(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=g(l.x)>g(l.y)?l.x:l.y,e.scale=a?(c=a.pointers,h=r,q(h[0],h[1],U)/q(c[0],c[1],U)):1,e.rotation=a?function(t,e){return Z(e[1],e[0],U)+Z(t[1],t[0],U)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(8!=e.eventType&&(s>25||void 0===a.velocity)){var u=e.deltaX-a.deltaX,l=e.deltaY-a.deltaY,c=X(s,u,l);r=c.x,i=c.y,n=g(c.x)>g(c.y)?c.x:c.y,o=$(u,l),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var c,h;var f=t.element;M(e.srcEvent.target,f)&&(f=e.srcEvent.target);e.target=f}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function W(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:p(t.pointers[n].clientX),clientY:p(t.pointers[n].clientY)},n++;return{timeStamp:v(),pointers:e,center:Y(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Y(t){var e=t.length;if(1===e)return{x:p(t[0].clientX),y:p(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:p(n/e),y:p(r/e)}}function X(t,e,n){return{x:e/t||0,y:n/t||0}}function $(t,e){return t===e?1:g(t)>=g(e)?t<0?2:4:e<0?8:16}function q(t,e,n){n||(n=V);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function Z(t,e,n){n||(n=V);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}G.prototype={handler:function(){},init:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(N(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(N(this.element),this.evWin,this.domHandler)}};var K={mousedown:1,mousemove:2,mouseup:4};function Q(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,G.apply(this,arguments)}O(Q,G,{handler:function(t){var e=K[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var J={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},tt={2:"touch",3:"pen",4:"mouse",5:"kinect"},et="pointerdown",nt="pointermove pointerup pointercancel";function rt(){this.evEl=et,this.evWin=nt,G.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}h||!i.MSPointerEvent||i.PointerEvent||(et="MSPointerDown",nt="MSPointerMove MSPointerUp MSPointerCancel"),O(rt,G,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=J[r],o=tt[t.pointerType]||t.pointerType,a="touch"==o,s=k(e,t.pointerId,"pointerId");1&i&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):12&i&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var it={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ot(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,G.apply(this,arguments)}function at(t,e){var n=P(t.touches),r=P(t.changedTouches);return 12&e&&(n=L(n.concat(r),"identifier",!0)),[n,r]}O(ot,G,{handler:function(t){var e=it[t.type];if(1===e&&(this.started=!0),this.started){var n=at.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var st={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ut(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},G.apply(this,arguments)}function lt(t,e){var n=P(t.touches),r=this.targetIds;if(3&e&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=P(t.changedTouches),s=[],u=this.target;if(o=n.filter((function(t){return M(t.target,u)})),1===e)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),12&e&&delete r[a[i].identifier],i++;return s.length?[L(o.concat(s),"identifier",!0),s]:void 0}O(ut,G,{handler:function(t){var e=st[t.type],n=lt.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});function ct(){G.apply(this,arguments);var t=S(this.handler,this);this.touch=new ut(this.manager,t),this.mouse=new Q(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function ht(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,ft.call(this,e)):12&t&&ft.call(this,e)}function ft(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)}),2500)}}function dt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}O(ct,G,{handler:function(t,e,n){var r="touch"==n.pointerType,i="mouse"==n.pointerType;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ht.call(this,e,n);else if(i&&dt.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var pt=h?void 0:R(d.style,"touchAction"),gt=void 0!==pt,vt=function(){if(!gt)return!1;var t={};if(h)return t;var e=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||i.CSS.supports("touch-action",n)})),t}();function mt(t,e){this.manager=t,this.set(e)}mt.prototype={set:function(t){"compute"==t&&(t=this.compute()),gt&&this.manager.element.style&&vt[t]&&(this.manager.element.style[pt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return b(this.manager.recognizers,(function(e){C(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(I(t,"none"))return"none";var e=I(t,"pan-x"),n=I(t,"pan-y");if(e&&n)return"none";if(e||n)return e?"pan-x":"pan-y";if(I(t,"manipulation"))return"manipulation";return"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=I(r,"none")&&!vt.none,o=I(r,"pan-y")&&!vt["pan-y"],a=I(r,"pan-x")&&!vt["pan-x"];if(i){var s=1===t.pointers.length,u=t.distance<2,l=t.deltaTime<250;if(s&&u&&l)return}if(!a||!o)return i||o&&6&n||a&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};function yt(t){this.options=u({},this.defaults,t||{}),this.id=D++,this.manager=null,this.options.enable=E(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function bt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function _t(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function xt(t,e){var n=e.manager;return n?n.get(t):t}function wt(){yt.apply(this,arguments)}function Ot(){wt.apply(this,arguments),this.pX=null,this.pY=null}function St(){wt.apply(this,arguments)}function Ct(){yt.apply(this,arguments),this._timer=null,this._input=null}function Et(){wt.apply(this,arguments)}function Tt(){wt.apply(this,arguments)}function At(){yt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Mt(t,e){return(e=e||{}).recognizers=E(e.recognizers,Mt.defaults.preset),new It(t,e)}yt.prototype={defaults:{},set:function(t){return u(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(y(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=xt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return y(t,"dropRecognizeWith",this)||(t=xt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(y(t,"requireFailure",this))return this;var e=this.requireFail;return-1===k(e,t=xt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(y(t,"dropRequireFailure",this))return this;t=xt(t,this);var e=k(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+bt(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+bt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=u({},t);if(!C(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},O(wt,yt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(8&n||!i)?16|e:r||i?4&n?8|e:2&e?4|e:2:32}}),O(Ot,wt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(6&e.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return wt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=_t(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),O(St,wt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),O(Ct,yt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||12&t.eventType&&!i)this.reset();else if(1&t.eventType)this.reset(),this._timer=m((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=v(),this.manager.emit(this.options.event,this._input)))}}),O(Et,wt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),O(Tt,wt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Ot.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&g(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=_t(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),O(At,yt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=t.eventType)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||q(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=m((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=m((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Mt.VERSION="2.0.7",Mt.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Et,{enable:!1}],[St,{enable:!1},["rotate"]],[Tt,{direction:6}],[Ot,{direction:6},["swipe"]],[At],[At,{event:"doubletap",taps:2},["tap"]],[Ct]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function It(t,e){var n;this.options=u({},Mt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(F?rt:z?ut:B?ct:Q))(n,H),this.touchAction=new mt(this,this.options.touchAction),jt(this,!0),b(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function jt(t,e){var n,r=t.element;r.style&&(b(t.options.cssProps,(function(i,o){n=R(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}(It.prototype={set:function(t){return u(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof yt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(y(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(y(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=k(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(void 0!==t&&void 0!==e){var n=this.handlers;return b(j(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(void 0!==t){var n=this.handlers;return b(j(t),(function(t){e?n[t]&&n[t].splice(k(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){if(h)return;var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&jt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},h)||(u(Mt,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:It,Input:G,TouchAction:mt,TouchInput:ut,MouseInput:Q,PointerEventInput:rt,TouchMouseInput:ct,SingleTouchInput:ot,Recognizer:yt,AttrRecognizer:wt,Tap:At,Pan:Ot,Swipe:Tt,Pinch:St,Rotate:Et,Press:Ct,on:T,off:A,each:b,merge:w,extend:x,assign:u,inherit:O,bindFn:S,prefixed:R}),("undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Hammer=Mt,void 0===(r=function(){return Mt}.call(e,n,e,t))||(t.exports=r))}("undefined"!=typeof window?window:{console:null,MSPointerEvent:null,PointerEvent:null,CSS:null},document)},function(t,e,n){t.exports=function(){"use strict";var t,e,n;function r(r,i){if(t)if(e){var o="var sharedChunk = {}; ("+t+")(sharedChunk); ("+e+")(sharedChunk);",a={};t(a),n=i(a),"undefined"!=typeof window&&(n.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}else e=i;else t=i}return r(0,(function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=r;function r(t,e,n,r){this.cx=3*t,this.bx=3*(n-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(r-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=r,this.p2x=n,this.p2y=r}r.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},r.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},r.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},r.prototype.solveCurveX=function(t,e){var n,r,i,o,a;for(void 0===e&&(e=1e-6),i=t,a=0;a<8;a++){if(o=this.sampleCurveX(i)-t,Math.abs(o)<e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=o/s}if((i=t)<(n=0))return n;if(i>(r=1))return r;for(;n<r;){if(o=this.sampleCurveX(i),Math.abs(o-t)<e)return i;t>o?n=i:r=i,i=.5*(r-n)+n}return i},r.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var i=o;function o(t,e){this.x=t,this.y=e}o.prototype={clone:function(){return new o(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,n=t.y-this.y;return e*e+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),n=Math.sin(t),r=n*this.x+e*this.y;return this.x=e*this.x-n*this.y,this.y=r,this},_rotateAround:function(t,e){var n=Math.cos(t),r=Math.sin(t),i=e.y+r*(this.x-e.x)+n*(this.y-e.y);return this.x=e.x+n*(this.x-e.x)-r*(this.y-e.y),this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},o.convert=function(t){return t instanceof o?t:Array.isArray(t)?new o(t[0],t[1]):t};var a="undefined"!=typeof self?self:{},s=Math.pow(2,53)-1;function u(t,e,r,i){var o=new n(t,e,r,i);return function(t){return o.solve(t)}}var l=u(.25,.1,.25,1);function c(t,e,n){return Math.min(n,Math.max(e,t))}function h(t,e,n){var r=n-e,i=((t-e)%r+r)%r+e;return i===e?n:i}function f(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];for(var r=0,i=e;r<i.length;r+=1){var o=i[r];for(var a in o)t[a]=o[a]}return t}var d=1;function p(){return d++}function g(){return function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function v(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function m(t,e){t.forEach((function(t){e[t]&&(e[t]=e[t].bind(e))}))}function y(t,e){return-1!==t.indexOf(e,t.length-e.length)}function b(t,e,n){var r={};for(var i in t)r[i]=e.call(n||this,t[i],i,t);return r}function _(t,e,n){var r={};for(var i in t)e.call(n||this,t[i],i,t)&&(r[i]=t[i]);return r}function x(t){return Array.isArray(t)?t.map(x):"object"==typeof t&&t?b(t,x):t}var w={};function O(t){w[t]||("undefined"!=typeof console&&console.warn(t),w[t]=!0)}function S(t,e,n){return(n.y-t.y)*(e.x-t.x)>(e.y-t.y)*(n.x-t.x)}function C(t){for(var e=0,n=0,r=t.length,i=r-1,o=void 0,a=void 0;n<r;i=n++)e+=((a=t[i]).x-(o=t[n]).x)*(o.y+a.y);return e}function E(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function T(t){var e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(function(t,n,r,i){var o=r||i;return e[n]=!o||o.toLowerCase(),""})),e["max-age"]){var n=parseInt(e["max-age"],10);isNaN(n)?delete e["max-age"]:e["max-age"]=n}return e}var A=null;function M(t){if(null==A){var e=t.navigator?t.navigator.userAgent:null;A=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return A}function I(t){try{var e=a[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch(t){return!1}}var j,k,P,L,R=a.performance&&a.performance.now?a.performance.now.bind(a.performance):Date.now.bind(Date),D=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||a.msRequestAnimationFrame,N=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame||a.msCancelAnimationFrame,B={now:R,frame:function(t){var e=D(t);return{cancel:function(){return N(e)}}},getImageData:function(t,e){void 0===e&&(e=0);var n=a.document.createElement("canvas"),r=n.getContext("2d");if(!r)throw new Error("failed to create canvas 2d context");return n.width=t.width,n.height=t.height,r.drawImage(t,0,0,t.width,t.height),r.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return j||(j=a.document.createElement("a")),j.href=t,j.href},hardwareConcurrency:a.navigator&&a.navigator.hardwareConcurrency||4,get devicePixelRatio(){return a.devicePixelRatio},get prefersReducedMotion(){return!!a.matchMedia&&(null==k&&(k=a.matchMedia("(prefers-reduced-motion: reduce)")),k.matches)}},F={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},z={supported:!1,testSupport:function(t){!V&&L&&(U?G(t):P=t)}},V=!1,U=!1;function G(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,L),t.isContextLost())return;z.supported=!0}catch(t){}t.deleteTexture(e),V=!0}a.document&&((L=a.document.createElement("img")).onload=function(){P&&G(P),P=null,U=!0},L.onerror=function(){V=!0,P=null},L.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var H="01",W=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function Y(t){return 0===t.indexOf("mapbox:")}W.prototype._createSkuToken=function(){var t=function(){for(var t="",e=0;e<10;e++)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",H,t].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},W.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},W.prototype.transformRequest=function(t,e){return this._transformRequestFn&&this._transformRequestFn(t,e)||{url:t}},W.prototype.normalizeStyleURL=function(t,e){if(!Y(t))return t;var n=Z(t);return n.path="/styles/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||e)},W.prototype.normalizeGlyphsURL=function(t,e){if(!Y(t))return t;var n=Z(t);return n.path="/fonts/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||e)},W.prototype.normalizeSourceURL=function(t,e){if(!Y(t))return t;var n=Z(t);return n.path="/v4/"+n.authority+".json",n.params.push("secure"),this._makeAPIURL(n,this._customAccessToken||e)},W.prototype.normalizeSpriteURL=function(t,e,n,r){var i=Z(t);return Y(t)?(i.path="/styles/v1"+i.path+"/sprite"+e+n,this._makeAPIURL(i,this._customAccessToken||r)):(i.path+=""+e+n,K(i))},W.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!Y(t))return t;var n=Z(t);n.path=n.path.replace(/(\.(png|jpg)\d*)(?=$)/,(B.devicePixelRatio>=2||512===e?"@2x":"")+(z.supported?".webp":"$1")),n.path=n.path.replace(/^.+\/v4\//,"/"),n.path="/v4"+n.path;var r=this._customAccessToken||function(t){for(var e=0,n=t;e<n.length;e+=1){var r=n[e].match(/^access_token=(.*)$/);if(r)return r[1]}return null}(n.params)||F.ACCESS_TOKEN;return F.REQUIRE_ACCESS_TOKEN&&r&&this._skuToken&&n.params.push("sku="+this._skuToken),this._makeAPIURL(n,r)},W.prototype.canonicalizeTileURL=function(t,e){var n=Z(t);if(!n.path.match(/(^\/v4\/)/)||!n.path.match(/\.[\w]+$/))return t;var r="mapbox://tiles/";r+=n.path.replace("/v4/","");var i=n.params;return e&&(i=i.filter((function(t){return!t.match(/^access_token=/)}))),i.length&&(r+="?"+i.join("&")),r},W.prototype.canonicalizeTileset=function(t,e){for(var n=!!e&&Y(e),r=[],i=0,o=t.tiles||[];i<o.length;i+=1){var a=o[i];$(a)?r.push(this.canonicalizeTileURL(a,n)):r.push(a)}return r},W.prototype._makeAPIURL=function(t,e){var n="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",r=Z(F.API_URL);if(t.protocol=r.protocol,t.authority=r.authority,"http"===t.protocol){var i=t.params.indexOf("secure");i>=0&&t.params.splice(i,1)}if("/"!==r.path&&(t.path=""+r.path+t.path),!F.REQUIRE_ACCESS_TOKEN)return K(t);if(!(e=e||F.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+n);if("s"===e[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+n);return t.params=t.params.filter((function(t){return-1===t.indexOf("access_token")})),t.params.push("access_token="+e),K(t)};var X=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function $(t){return X.test(t)}var q=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Z(t){var e=t.match(q);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function K(t){var e=t.params.length?"?"+t.params.join("&"):"";return t.protocol+"://"+t.authority+t.path+e}function Q(t){if(!t)return null;var e=t.split(".");if(!e||3!==e.length)return null;try{return JSON.parse(decodeURIComponent(a.atob(e[1]).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join("")))}catch(t){return null}}var J=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};J.prototype.getStorageKey=function(t){var e,n=Q(F.ACCESS_TOKEN);return e=n&&n.u?a.btoa(encodeURIComponent(n.u).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number("0x"+e))}))):F.ACCESS_TOKEN||"",t?"mapbox.eventData."+t+":"+e:"mapbox.eventData:"+e},J.prototype.fetchEventData=function(){var t=I("localStorage"),e=this.getStorageKey(),n=this.getStorageKey("uuid");if(t)try{var r=a.localStorage.getItem(e);r&&(this.eventData=JSON.parse(r));var i=a.localStorage.getItem(n);i&&(this.anonId=i)}catch(t){O("Unable to read from LocalStorage")}},J.prototype.saveEventData=function(){var t=I("localStorage"),e=this.getStorageKey(),n=this.getStorageKey("uuid");if(t)try{a.localStorage.setItem(n,this.anonId),Object.keys(this.eventData).length>=1&&a.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){O("Unable to write to LocalStorage")}},J.prototype.processRequests=function(t){},J.prototype.postEvent=function(t,e,n,r){var i=this;if(F.EVENTS_URL){var o=Z(F.EVENTS_URL);o.params.push("access_token="+(r||F.ACCESS_TOKEN||""));var a={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.2",skuId:H,userId:this.anonId},s=e?f(a,e):a,u={url:K(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=xt(u,(function(t){i.pendingRequest=null,n(t),i.saveEventData(),i.processRequests(r)}))}},J.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var tt,et,nt=function(t){function e(){t.call(this,"map.load"),this.success={},this.skuToken=""}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.postMapLoadEvent=function(t,e,n,r){this.skuToken=n,(F.EVENTS_URL&&r||F.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return Y(t)||$(t)})))&&this.queueRequest({id:e,timestamp:Date.now()},r)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){var n=this.queue.shift(),r=n.id,i=n.timestamp;r&&this.success[r]||(this.anonId||this.fetchEventData(),v(this.anonId)||(this.anonId=g()),this.postEvent(i,{skuToken:this.skuToken},(function(t){t||r&&(e.success[r]=!0)}),t))}},e}(J),rt=new(function(t){function e(e){t.call(this,"appUserTurnstile"),this._customAccessToken=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.postTurnstileEvent=function(t,e){F.EVENTS_URL&&F.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return Y(t)||$(t)}))&&this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var n=Q(F.ACCESS_TOKEN),r=n?n.u:F.ACCESS_TOKEN,i=r!==this.eventData.tokenU;v(this.anonId)||(this.anonId=g(),i=!0);var o=this.queue.shift();if(this.eventData.lastSuccess){var a=new Date(this.eventData.lastSuccess),s=new Date(o),u=(o-this.eventData.lastSuccess)/864e5;i=i||u>=1||u<-1||a.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(o,{"enabled.telemetry":!1},(function(t){t||(e.eventData.lastSuccess=o,e.eventData.tokenU=r)}),t)}},e}(J)),it=rt.postTurnstileEvent.bind(rt),ot=new nt,at=ot.postMapLoadEvent.bind(ot),st=500,ut=50;function lt(){a.caches&&!tt&&(tt=a.caches.open("mapbox-tiles"))}function ct(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var ht,ft=1/0;function dt(){return null==ht&&(ht=a.OffscreenCanvas&&new a.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof a.createImageBitmap),ht}var pt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(pt);var gt,vt,mt=function(t){function e(e,n,r){401===n&&$(r)&&(e+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),t.call(this,e),this.status=n,this.url=r,this.name=this.constructor.name,this.message=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},e}(Error),yt=E()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===a.location.protocol?a.parent:a).location.href},bt=function(t,e){if(!(/^file:/.test(n=t.url)||/^file:/.test(yt())&&!/^\w+:/.test(n))){if(a.fetch&&a.Request&&a.AbortController&&a.Request.prototype.hasOwnProperty("signal"))return function(t,e){var n,r=new a.AbortController,i=new a.Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,referrer:yt(),signal:r.signal}),o=!1,s=!1,u=(n=i.url).indexOf("sku=")>0&&$(n);"json"===t.type&&i.headers.set("Accept","application/json");var l=function(n,r,o){if(!s){if(n&&"SecurityError"!==n.message&&O(n),r&&o)return c(r);var l=Date.now();a.fetch(i).then((function(n){if(n.ok){var r=u?n.clone():null;return c(n,r,l)}return e(new mt(n.statusText,n.status,t.url))})).catch((function(t){20!==t.code&&e(new Error(t.message))}))}},c=function(n,r,u){("arrayBuffer"===t.type?n.arrayBuffer():"json"===t.type?n.json():n.text()).then((function(t){s||(r&&u&&function(t,e,n){if(lt(),tt){var r={status:e.status,statusText:e.statusText,headers:new a.Headers};e.headers.forEach((function(t,e){return r.headers.set(e,t)}));var i=T(e.headers.get("Cache-Control")||"");i["no-store"]||(i["max-age"]&&r.headers.set("Expires",new Date(n+1e3*i["max-age"]).toUTCString()),new Date(r.headers.get("Expires")).getTime()-n<42e4||function(t,e){if(void 0===et)try{new Response(new ReadableStream),et=!0}catch(t){et=!1}et?e(t.body):t.blob().then(e)}(e,(function(e){var n=new a.Response(e,r);lt(),tt&&tt.then((function(e){return e.put(ct(t.url),n)})).catch((function(t){return O(t.message)}))})))}}(i,r,u),o=!0,e(null,t,n.headers.get("Cache-Control"),n.headers.get("Expires")))})).catch((function(t){s||e(new Error(t.message))}))};return u?function(t,e){if(lt(),!tt)return e(null);var n=ct(t.url);tt.then((function(t){t.match(n).then((function(r){var i=function(t){if(!t)return!1;var e=new Date(t.headers.get("Expires")||0),n=T(t.headers.get("Cache-Control")||"");return e>Date.now()&&!n["no-cache"]}(r);t.delete(n),i&&t.put(n,r.clone()),e(null,r,i)})).catch(e)})).catch(e)}(i,l):l(null,null),{cancel:function(){s=!0,o||r.abort()}}}(t,e);if(E()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e,void 0,!0)}var n;return function(t,e){var n=new a.XMLHttpRequest;for(var r in n.open(t.method||"GET",t.url,!0),"arrayBuffer"===t.type&&(n.responseType="arraybuffer"),t.headers)n.setRequestHeader(r,t.headers[r]);return"json"===t.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===t.credentials,n.onerror=function(){e(new Error(n.statusText))},n.onload=function(){if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){var r=n.response;if("json"===t.type)try{r=JSON.parse(n.response)}catch(t){return e(t)}e(null,r,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"))}else e(new mt(n.statusText,n.status,t.url))},n.send(t.body),{cancel:function(){return n.abort()}}}(t,e)},_t=function(t,e){return bt(f(t,{type:"arrayBuffer"}),e)},xt=function(t,e){return bt(f(t,{method:"POST"}),e)},wt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";gt=[],vt=0;var Ot=function(t,e){if(z.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),vt>=F.MAX_PARALLEL_IMAGE_REQUESTS){var n={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return gt.push(n),n}vt++;var r=!1,i=function(){if(!r)for(r=!0,vt--;gt.length&&vt<F.MAX_PARALLEL_IMAGE_REQUESTS;){var t=gt.shift();t.cancelled||(t.cancel=Ot(t.requestParameters,t.callback).cancel)}},o=_t(t,(function(t,n,r,o){i(),t?e(t):n&&(dt()?function(t,e){var n=new a.Blob([new Uint8Array(t)],{type:"image/png"});a.createImageBitmap(n).then((function(t){e(null,t)})).catch((function(t){e(new Error("Could not load image because of "+t.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))}))}(n,e):function(t,e,n,r){var i=new a.Image,o=a.URL;i.onload=function(){e(null,i),o.revokeObjectURL(i.src),i.onload=null,a.requestAnimationFrame((function(){i.src=wt}))},i.onerror=function(){return e(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var s=new a.Blob([new Uint8Array(t)],{type:"image/png"});i.cacheControl=n,i.expires=r,i.src=t.byteLength?o.createObjectURL(s):wt}(n,e,r,o))}));return{cancel:function(){o.cancel(),i()}}};function St(t,e,n){n[t]&&-1!==n[t].indexOf(e)||(n[t]=n[t]||[],n[t].push(e))}function Ct(t,e,n){if(n&&n[t]){var r=n[t].indexOf(e);-1!==r&&n[t].splice(r,1)}}var Et=function(t,e){void 0===e&&(e={}),f(this,e),this.type=t},Tt=function(t){function e(e,n){void 0===n&&(n={}),t.call(this,"error",f({error:e},n))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Et),At=function(){};At.prototype.on=function(t,e){return this._listeners=this._listeners||{},St(t,e,this._listeners),this},At.prototype.off=function(t,e){return Ct(t,e,this._listeners),Ct(t,e,this._oneTimeListeners),this},At.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},St(t,e,this._oneTimeListeners),this},At.prototype.fire=function(t,e){"string"==typeof t&&(t=new Et(t,e||{}));var n=t.type;if(this.listens(n)){t.target=this;for(var r=0,i=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];r<i.length;r+=1)i[r].call(this,t);for(var o=0,a=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];o<a.length;o+=1){var s=a[o];Ct(n,s,this._oneTimeListeners),s.call(this,t)}var u=this._eventedParent;u&&(f(t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),u.fire(t))}else t instanceof Tt&&console.error(t.error);return this},At.prototype.listens=function(t){return this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)},At.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var Mt={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},It=function(t,e,n,r){this.message=(t?t+": ":"")+n,r&&(this.identifier=r),null!=e&&e.__line__&&(this.line=e.__line__)};function jt(t){var e=t.value;return e?[new It(t.key,e,"constants have been deprecated as of v8")]:[]}function kt(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];for(var r=0,i=e;r<i.length;r+=1){var o=i[r];for(var a in o)t[a]=o[a]}return t}function Pt(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function Lt(t){if(Array.isArray(t))return t.map(Lt);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var n in t)e[n]=Lt(t[n]);return e}return Pt(t)}var Rt=function(t){function e(e,n){t.call(this,n),this.message=n,this.key=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Error),Dt=function(t,e){void 0===e&&(e=[]),this.parent=t,this.bindings={};for(var n=0,r=e;n<r.length;n+=1){var i=r[n];this.bindings[i[0]]=i[1]}};Dt.prototype.concat=function(t){return new Dt(this,t)},Dt.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+" not found in scope.")},Dt.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};var Nt={kind:"null"},Bt={kind:"number"},Ft={kind:"string"},zt={kind:"boolean"},Vt={kind:"color"},Ut={kind:"object"},Gt={kind:"value"},Ht={kind:"collator"},Wt={kind:"formatted"},Yt={kind:"resolvedImage"};function Xt(t,e){return{kind:"array",itemType:t,N:e}}function $t(t){if("array"===t.kind){var e=$t(t.itemType);return"number"==typeof t.N?"array<"+e+", "+t.N+">":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var qt=[Nt,Bt,Ft,zt,Vt,Wt,Ut,Xt(Gt),Yt];function Zt(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!Zt(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var n=0,r=qt;n<r.length;n+=1)if(!Zt(r[n],e))return null}return"Expected "+$t(t)+" but found "+$t(e)+" instead."}function Kt(t,e){return e.some((function(e){return e.kind===t.kind}))}function Qt(t,e){return e.some((function(e){return"null"===e?null===t:"array"===e?Array.isArray(t):"object"===e?t&&!Array.isArray(t)&&"object"==typeof t:e===typeof t}))}var Jt=e((function(t,e){var n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(t){return(t=Math.round(t))<0?0:t>255?255:t}function i(t){return r("%"===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function o(t){return(e="%"===t[t.length-1]?parseFloat(t)/100:parseFloat(t))<0?0:e>1?1:e;var e}function a(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}try{e.parseCSSColor=function(t){var e,s=t.replace(/ /g,"").toLowerCase();if(s in n)return n[s].slice();if("#"===s[0])return 4===s.length?(e=parseInt(s.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===s.length&&(e=parseInt(s.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var u=s.indexOf("("),l=s.indexOf(")");if(-1!==u&&l+1===s.length){var c=s.substr(0,u),h=s.substr(u+1,l-(u+1)).split(","),f=1;switch(c){case"rgba":if(4!==h.length)return null;f=o(h.pop());case"rgb":return 3!==h.length?null:[i(h[0]),i(h[1]),i(h[2]),f];case"hsla":if(4!==h.length)return null;f=o(h.pop());case"hsl":if(3!==h.length)return null;var d=(parseFloat(h[0])%360+360)%360/360,p=o(h[1]),g=o(h[2]),v=g<=.5?g*(p+1):g+p-g*p,m=2*g-v;return[r(255*a(m,v,d+1/3)),r(255*a(m,v,d)),r(255*a(m,v,d-1/3)),f];default:return null}}return null}}catch(t){}})).parseCSSColor,te=function(t,e,n,r){void 0===r&&(r=1),this.r=t,this.g=e,this.b=n,this.a=r};te.parse=function(t){if(t){if(t instanceof te)return t;if("string"==typeof t){var e=Jt(t);if(e)return new te(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},te.prototype.toString=function(){var t=this.toArray(),e=t[1],n=t[2],r=t[3];return"rgba("+Math.round(t[0])+","+Math.round(e)+","+Math.round(n)+","+r+")"},te.prototype.toArray=function(){var t=this.a;return 0===t?[0,0,0,0]:[255*this.r/t,255*this.g/t,255*this.b/t,t]},te.black=new te(0,0,0,1),te.white=new te(1,1,1,1),te.transparent=new te(0,0,0,0),te.red=new te(1,0,0,1);var ee=function(t,e,n){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};ee.prototype.compare=function(t,e){return this.collator.compare(t,e)},ee.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var ne=function(t,e,n,r,i){this.text=t,this.image=e,this.scale=n,this.fontStack=r,this.textColor=i},re=function(t){this.sections=t};re.fromString=function(t){return new re([new ne(t,null,null,null,null)])},re.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&&0!==t.image.name.length}))},re.factory=function(t){return t instanceof re?t:re.fromString(t)},re.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(t){return t.text})).join("")},re.prototype.serialize=function(){for(var t=["format"],e=0,n=this.sections;e<n.length;e+=1){var r=n[e];if(r.image)t.push(["image",r.image.name]);else{t.push(r.text);var i={};r.fontStack&&(i["text-font"]=["literal",r.fontStack.split(",")]),r.scale&&(i["font-scale"]=r.scale),r.textColor&&(i["text-color"]=["rgba"].concat(r.textColor.toArray())),t.push(i)}}return t};var ie=function(t){this.name=t.name,this.available=t.available};function oe(t,e,n,r){return"number"==typeof t&&t>=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:"Invalid rgba value ["+[t,e,n,r].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof r?[t,e,n,r]:[t,e,n]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function ae(t){if(null===t)return!0;if("string"==typeof t)return!0;if("boolean"==typeof t)return!0;if("number"==typeof t)return!0;if(t instanceof te)return!0;if(t instanceof ee)return!0;if(t instanceof re)return!0;if(t instanceof ie)return!0;if(Array.isArray(t)){for(var e=0,n=t;e<n.length;e+=1)if(!ae(n[e]))return!1;return!0}if("object"==typeof t){for(var r in t)if(!ae(t[r]))return!1;return!0}return!1}function se(t){if(null===t)return Nt;if("string"==typeof t)return Ft;if("boolean"==typeof t)return zt;if("number"==typeof t)return Bt;if(t instanceof te)return Vt;if(t instanceof ee)return Ht;if(t instanceof re)return Wt;if(t instanceof ie)return Yt;if(Array.isArray(t)){for(var e,n=t.length,r=0,i=t;r<i.length;r+=1){var o=se(i[r]);if(e){if(e===o)continue;e=Gt;break}e=o}return Xt(e||Gt,n)}return Ut}function ue(t){var e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof te||t instanceof re||t instanceof ie?t.toString():JSON.stringify(t)}ie.prototype.toString=function(){return this.name},ie.fromString=function(t){return t?new ie({name:t,available:!1}):null},ie.prototype.serialize=function(){return["image",this.name]};var le=function(t,e){this.type=t,this.value=e};le.parse=function(t,e){if(2!==t.length)return e.error("'literal' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(!ae(t[1]))return e.error("invalid value");var n=t[1],r=se(n),i=e.expectedType;return"array"!==r.kind||0!==r.N||!i||"array"!==i.kind||"number"==typeof i.N&&0!==i.N||(r=i),new le(r,n)},le.prototype.evaluate=function(){return this.value},le.prototype.eachChild=function(){},le.prototype.outputDefined=function(){return!0},le.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof te?["rgba"].concat(this.value.toArray()):this.value instanceof re?this.value.serialize():this.value};var ce=function(t){this.name="ExpressionEvaluationError",this.message=t};ce.prototype.toJSON=function(){return this.message};var he={string:Ft,number:Bt,boolean:zt,object:Ut},fe=function(t,e){this.type=t,this.args=e};fe.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var n,r=1,i=t[0];if("array"===i){var o,a;if(t.length>2){var s=t[1];if("string"!=typeof s||!(s in he)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=he[s],r++}else o=Gt;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);a=t[2],r++}n=Xt(o,a)}else n=he[i];for(var u=[];r<t.length;r++){var l=e.parse(t[r],r,Gt);if(!l)return null;u.push(l)}return new fe(n,u)},fe.prototype.evaluate=function(t){for(var e=0;e<this.args.length;e++){var n=this.args[e].evaluate(t);if(!Zt(this.type,se(n)))return n;if(e===this.args.length-1)throw new ce("Expected value to be of type "+$t(this.type)+", but found "+$t(se(n))+" instead.")}return null},fe.prototype.eachChild=function(t){this.args.forEach(t)},fe.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},fe.prototype.serialize=function(){var t=this.type,e=[t.kind];if("array"===t.kind){var n=t.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){e.push(n.kind);var r=t.N;("number"==typeof r||this.args.length>1)&&e.push(r)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var de=function(t){this.type=Wt,this.sections=t};de.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var n=t[1];if(!Array.isArray(n)&&"object"==typeof n)return e.error("First argument must be an image or text section.");for(var r=[],i=!1,o=1;o<=t.length-1;++o){var a=t[o];if(i&&"object"==typeof a&&!Array.isArray(a)){i=!1;var s=null;if(a["font-scale"]&&!(s=e.parse(a["font-scale"],1,Bt)))return null;var u=null;if(a["text-font"]&&!(u=e.parse(a["text-font"],1,Xt(Ft))))return null;var l=null;if(a["text-color"]&&!(l=e.parse(a["text-color"],1,Vt)))return null;var c=r[r.length-1];c.scale=s,c.font=u,c.textColor=l}else{var h=e.parse(t[o],1,Gt);if(!h)return null;var f=h.type.kind;if("string"!==f&&"value"!==f&&"null"!==f&&"resolvedImage"!==f)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,r.push({content:h,scale:null,font:null,textColor:null})}}return new de(r)},de.prototype.evaluate=function(t){return new re(this.sections.map((function(e){var n=e.content.evaluate(t);return se(n)===Yt?new ne("",n,null,null,null):new ne(ue(n),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)})))},de.prototype.eachChild=function(t){for(var e=0,n=this.sections;e<n.length;e+=1){var r=n[e];t(r.content),r.scale&&t(r.scale),r.font&&t(r.font),r.textColor&&t(r.textColor)}},de.prototype.outputDefined=function(){return!1},de.prototype.serialize=function(){for(var t=["format"],e=0,n=this.sections;e<n.length;e+=1){var r=n[e];t.push(r.content.serialize());var i={};r.scale&&(i["font-scale"]=r.scale.serialize()),r.font&&(i["text-font"]=r.font.serialize()),r.textColor&&(i["text-color"]=r.textColor.serialize()),t.push(i)}return t};var pe=function(t){this.type=Yt,this.input=t};pe.parse=function(t,e){if(2!==t.length)return e.error("Expected two arguments.");var n=e.parse(t[1],1,Ft);return n?new pe(n):e.error("No image name provided.")},pe.prototype.evaluate=function(t){var e=this.input.evaluate(t),n=ie.fromString(e);return n&&t.availableImages&&(n.available=t.availableImages.indexOf(e)>-1),n},pe.prototype.eachChild=function(t){t(this.input)},pe.prototype.outputDefined=function(){return!1},pe.prototype.serialize=function(){return["image",this.input.serialize()]};var ge={"to-boolean":zt,"to-color":Vt,"to-number":Bt,"to-string":Ft},ve=function(t,e){this.type=t,this.args=e};ve.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var n=t[0];if(("to-boolean"===n||"to-string"===n)&&2!==t.length)return e.error("Expected one argument.");for(var r=ge[n],i=[],o=1;o<t.length;o++){var a=e.parse(t[o],o,Gt);if(!a)return null;i.push(a)}return new ve(r,i)},ve.prototype.evaluate=function(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){for(var e,n,r=0,i=this.args;r<i.length;r+=1){if(n=null,(e=i[r].evaluate(t))instanceof te)return e;if("string"==typeof e){var o=t.parseColor(e);if(o)return o}else if(Array.isArray(e)&&!(n=e.length<3||e.length>4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":oe(e[0],e[1],e[2],e[3])))return new te(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new ce(n||"Could not parse color from value '"+("string"==typeof e?e:String(JSON.stringify(e)))+"'")}if("number"===this.type.kind){for(var a=null,s=0,u=this.args;s<u.length;s+=1){if(null===(a=u[s].evaluate(t)))return 0;var l=Number(a);if(!isNaN(l))return l}throw new ce("Could not convert "+JSON.stringify(a)+" to number.")}return"formatted"===this.type.kind?re.fromString(ue(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?ie.fromString(ue(this.args[0].evaluate(t))):ue(this.args[0].evaluate(t))},ve.prototype.eachChild=function(t){this.args.forEach(t)},ve.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ve.prototype.serialize=function(){if("formatted"===this.type.kind)return new de([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new pe(this.args[0]).serialize();var t=["to-"+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var me=["Unknown","Point","LineString","Polygon"],ye=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};ye.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},ye.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?me[this.feature.type]:this.feature.type:null},ye.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},ye.prototype.canonicalID=function(){return this.canonical},ye.prototype.properties=function(){return this.feature&&this.feature.properties||{}},ye.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=te.parse(t)),e};var be=function(t,e,n,r){this.name=t,this.type=e,this._evaluate=n,this.args=r};be.prototype.evaluate=function(t){return this._evaluate(t,this.args)},be.prototype.eachChild=function(t){this.args.forEach(t)},be.prototype.outputDefined=function(){return!1},be.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},be.parse=function(t,e){var n,r=t[0],i=be.definitions[r];if(!i)return e.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0);for(var o=Array.isArray(i)?i[0]:i.type,a=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=a.filter((function(e){var n=e[0];return!Array.isArray(n)||n.length===t.length-1})),u=null,l=0,c=s;l<c.length;l+=1){var h=c[l],f=h[0],d=h[1];u=new Ve(e.registry,e.path,null,e.scope);for(var p=[],g=!1,v=1;v<t.length;v++){var m=t[v],y=Array.isArray(f)?f[v-1]:f.type,b=u.parse(m,1+p.length,y);if(!b){g=!0;break}p.push(b)}if(!g)if(Array.isArray(f)&&f.length!==p.length)u.error("Expected "+f.length+" arguments, but found "+p.length+" instead.");else{for(var _=0;_<p.length;_++){var x=Array.isArray(f)?f[_]:f.type,w=p[_];u.concat(_+1).checkSubtype(x,w.type)}if(0===u.errors.length)return new be(r,o,d,p)}}if(1===s.length)(n=e.errors).push.apply(n,u.errors);else{for(var O=(s.length?s:a).map((function(t){var e;return e=t[0],Array.isArray(e)?"("+e.map($t).join(", ")+")":"("+$t(e.type)+"...)"})).join(" | "),S=[],C=1;C<t.length;C++){var E=e.parse(t[C],1+S.length);if(!E)return null;S.push($t(E.type))}e.error("Expected arguments of type "+O+", but found ("+S.join(", ")+") instead.")}return null},be.register=function(t,e){for(var n in be.definitions=e,e)t[n]=be};var _e=function(t,e,n){this.type=Ht,this.locale=n,this.caseSensitive=t,this.diacriticSensitive=e};function xe(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function we(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function Oe(t,e){var n=(180+t[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,i=Math.pow(2,e.z);return[Math.round(n*i*8192),Math.round(r*i*8192)]}function Se(t,e,n){return e[1]>t[1]!=n[1]>t[1]&&t[0]<(n[0]-e[0])*(t[1]-e[1])/(n[1]-e[1])+e[0]}function Ce(t,e){for(var n,r,i,o,a,s,u,l=!1,c=0,h=e.length;c<h;c++)for(var f=e[c],d=0,p=f.length;d<p-1;d++){if((o=(n=t)[0]-(r=f[d])[0])*(u=n[1]-(i=f[d+1])[1])-(s=n[0]-i[0])*(a=n[1]-r[1])==0&&o*s<=0&&a*u<=0)return!1;Se(t,f[d],f[d+1])&&(l=!l)}return l}function Ee(t,e){for(var n=0;n<e.length;n++)if(Ce(t,e[n]))return!0;return!1}function Te(t,e,n,r){var i=r[0]-n[0],o=r[1]-n[1],a=(t[0]-n[0])*o-i*(t[1]-n[1]),s=(e[0]-n[0])*o-i*(e[1]-n[1]);return a>0&&s<0||a<0&&s>0}function Ae(t,e,n){for(var r=0,i=n;r<i.length;r+=1)for(var o=i[r],a=0;a<o.length-1;++a)if(0!=(h=[(c=o[a+1])[0]-(l=o[a])[0],c[1]-l[1]])[0]*(f=[(u=e)[0]-(s=t)[0],u[1]-s[1]])[1]-h[1]*f[0]&&Te(s,u,l,c)&&Te(l,c,s,u))return!0;var s,u,l,c,h,f;return!1}function Me(t,e){for(var n=0;n<t.length;++n)if(!Ce(t[n],e))return!1;for(var r=0;r<t.length-1;++r)if(Ae(t[r],t[r+1],e))return!1;return!0}function Ie(t,e){for(var n=0;n<e.length;n++)if(Me(t,e[n]))return!0;return!1}function je(t,e,n){for(var r=[],i=0;i<t.length;i++){for(var o=[],a=0;a<t[i].length;a++){var s=Oe(t[i][a],n);xe(e,s),o.push(s)}r.push(o)}return r}function ke(t,e,n){for(var r=[],i=0;i<t.length;i++){var o=je(t[i],e,n);r.push(o)}return r}function Pe(t,e,n,r){if(t[0]<n[0]||t[0]>n[2]){var i=.5*r,o=t[0]-n[0]>i?-r:n[0]-t[0]>i?r:0;0===o&&(o=t[0]-n[2]>i?-r:n[2]-t[0]>i?r:0),t[0]+=o}xe(e,t)}function Le(t,e,n,r){for(var i=8192*Math.pow(2,r.z),o=[8192*r.x,8192*r.y],a=[],s=0,u=t;s<u.length;s+=1)for(var l=0,c=u[s];l<c.length;l+=1){var h=c[l],f=[h.x+o[0],h.y+o[1]];Pe(f,e,n,i),a.push(f)}return a}function Re(t,e,n,r){for(var i,o=8192*Math.pow(2,r.z),a=[8192*r.x,8192*r.y],s=[],u=0,l=t;u<l.length;u+=1){for(var c=[],h=0,f=l[u];h<f.length;h+=1){var d=f[h],p=[d.x+a[0],d.y+a[1]];xe(e,p),c.push(p)}s.push(c)}if(e[2]-e[0]<=o/2){(i=e)[0]=i[1]=1/0,i[2]=i[3]=-1/0;for(var g=0,v=s;g<v.length;g+=1)for(var m=0,y=v[g];m<y.length;m+=1)Pe(y[m],e,n,o)}return s}_e.parse=function(t,e){if(2!==t.length)return e.error("Expected one argument.");var n=t[1];if("object"!=typeof n||Array.isArray(n))return e.error("Collator options argument must be an object.");var r=e.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,zt);if(!r)return null;var i=e.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,zt);if(!i)return null;var o=null;return n.locale&&!(o=e.parse(n.locale,1,Ft))?null:new _e(r,i,o)},_e.prototype.evaluate=function(t){return new ee(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},_e.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)},_e.prototype.outputDefined=function(){return!1},_e.prototype.serialize=function(){var t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),["collator",t]};var De=function(t,e){this.type=zt,this.geojson=t,this.geometries=e};function Ne(t){if(t instanceof be){if("get"===t.name&&1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&&1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof De)return!1;var e=!0;return t.eachChild((function(t){e&&!Ne(t)&&(e=!1)})),e}function Be(t){if(t instanceof be&&"feature-state"===t.name)return!1;var e=!0;return t.eachChild((function(t){e&&!Be(t)&&(e=!1)})),e}function Fe(t,e){if(t instanceof be&&e.indexOf(t.name)>=0)return!1;var n=!0;return t.eachChild((function(t){n&&!Fe(t,e)&&(n=!1)})),n}De.parse=function(t,e){if(2!==t.length)return e.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(ae(t[1])){var n=t[1];if("FeatureCollection"===n.type)for(var r=0;r<n.features.length;++r){var i=n.features[r].geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new De(n,n.features[r].geometry)}else if("Feature"===n.type){var o=n.geometry.type;if("Polygon"===o||"MultiPolygon"===o)return new De(n,n.geometry)}else if("Polygon"===n.type||"MultiPolygon"===n.type)return new De(n,n)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")},De.prototype.evaluate=function(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return function(t,e){var n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if("Polygon"===e.type){var o=je(e.coordinates,r,i),a=Le(t.geometry(),n,r,i);if(!we(n,r))return!1;for(var s=0,u=a;s<u.length;s+=1)if(!Ce(u[s],o))return!1}if("MultiPolygon"===e.type){var l=ke(e.coordinates,r,i),c=Le(t.geometry(),n,r,i);if(!we(n,r))return!1;for(var h=0,f=c;h<f.length;h+=1)if(!Ee(f[h],l))return!1}return!0}(t,this.geometries);if("LineString"===t.geometryType())return function(t,e){var n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if("Polygon"===e.type){var o=je(e.coordinates,r,i),a=Re(t.geometry(),n,r,i);if(!we(n,r))return!1;for(var s=0,u=a;s<u.length;s+=1)if(!Me(u[s],o))return!1}if("MultiPolygon"===e.type){var l=ke(e.coordinates,r,i),c=Re(t.geometry(),n,r,i);if(!we(n,r))return!1;for(var h=0,f=c;h<f.length;h+=1)if(!Ie(f[h],l))return!1}return!0}(t,this.geometries)}return!1},De.prototype.eachChild=function(){},De.prototype.outputDefined=function(){return!0},De.prototype.serialize=function(){return["within",this.geojson]};var ze=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};ze.parse=function(t,e){if(2!==t.length||"string"!=typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");var n=t[1];return e.scope.has(n)?new ze(n,e.scope.get(n)):e.error('Unknown variable "'+n+'". Make sure "'+n+'" has been bound in an enclosing "let" expression before using it.',1)},ze.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},ze.prototype.eachChild=function(){},ze.prototype.outputDefined=function(){return!1},ze.prototype.serialize=function(){return["var",this.name]};var Ve=function(t,e,n,r,i){void 0===e&&(e=[]),void 0===r&&(r=new Dt),void 0===i&&(i=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return"["+t+"]"})).join(""),this.scope=r,this.errors=i,this.expectedType=n};function Ue(t,e){for(var n,r=t.length-1,i=0,o=r,a=0;i<=o;)if((n=t[a=Math.floor((i+o)/2)])<=e){if(a===r||e<t[a+1])return a;i=a+1}else{if(!(n>e))throw new ce("Input is not a number.");o=a-1}return 0}Ve.prototype.parse=function(t,e,n,r,i){return void 0===i&&(i={}),e?this.concat(e,n,r)._parse(t,i):this._parse(t,i)},Ve.prototype._parse=function(t,e){function n(t,e,n){return"assert"===n?new fe(e,[t]):"coerce"===n?new ve(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var r=t[0];if("string"!=typeof r)return this.error("Expression name must be a string, but found "+typeof r+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var i=this.registry[r];if(i){var o=i.parse(t,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=n(o,a,e.typeAnnotation||"coerce");else o=n(o,a,e.typeAnnotation||"assert")}if(!(o instanceof le)&&"resolvedImage"!==o.type.kind&&function t(e){if(e instanceof ze)return t(e.boundExpression);if(e instanceof be&&"error"===e.name)return!1;if(e instanceof _e)return!1;if(e instanceof De)return!1;var n=e instanceof ve||e instanceof fe,r=!0;return e.eachChild((function(e){r=n?r&&t(e):r&&e instanceof le})),!!r&&Ne(e)&&Fe(e,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(o)){var u=new ye;try{o=new le(o.type,o.evaluate(u))}catch(t){return this.error(t.message),null}}return o}return this.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(void 0===t?"'undefined' value invalid. Use null instead.":"object"==typeof t?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof t+" instead.")},Ve.prototype.concat=function(t,e,n){var r="number"==typeof t?this.path.concat(t):this.path,i=n?this.scope.concat(n):this.scope;return new Ve(this.registry,r,e||null,i,this.errors)},Ve.prototype.error=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var r=""+this.key+e.map((function(t){return"["+t+"]"})).join("");this.errors.push(new Rt(r,t))},Ve.prototype.checkSubtype=function(t,e){var n=Zt(t,e);return n&&this.error(n),n};var Ge=function(t,e,n){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var r=0,i=n;r<i.length;r+=1){var o=i[r],a=o[1];this.labels.push(o[0]),this.outputs.push(a)}};function He(t,e,n){return t*(1-n)+e*n}Ge.parse=function(t,e){if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");var n=e.parse(t[1],1,Bt);if(!n)return null;var r=[],i=null;e.expectedType&&"value"!==e.expectedType.kind&&(i=e.expectedType);for(var o=1;o<t.length;o+=2){var a=1===o?-1/0:t[o],s=t[o+1],u=o,l=o+1;if("number"!=typeof a)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',u);if(r.length&&r[r.length-1][0]>=a)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);var c=e.parse(s,l,i);if(!c)return null;i=i||c.type,r.push([a,c])}return new Ge(i,n,r)},Ge.prototype.evaluate=function(t){var e=this.labels,n=this.outputs;if(1===e.length)return n[0].evaluate(t);var r=this.input.evaluate(t);if(r<=e[0])return n[0].evaluate(t);var i=e.length;return r>=e[i-1]?n[i-1].evaluate(t):n[Ue(e,r)].evaluate(t)},Ge.prototype.eachChild=function(t){t(this.input);for(var e=0,n=this.outputs;e<n.length;e+=1)t(n[e])},Ge.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},Ge.prototype.serialize=function(){for(var t=["step",this.input.serialize()],e=0;e<this.labels.length;e++)e>0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var We=Object.freeze({__proto__:null,number:He,color:function(t,e,n){return new te(He(t.r,e.r,n),He(t.g,e.g,n),He(t.b,e.b,n),He(t.a,e.a,n))},array:function(t,e,n){return t.map((function(t,r){return He(t,e[r],n)}))}}),Ye=6/29*3*(6/29),Xe=Math.PI/180,$e=180/Math.PI;function qe(t){return t>.008856451679035631?Math.pow(t,1/3):t/Ye+4/29}function Ze(t){return t>6/29?t*t*t:Ye*(t-4/29)}function Ke(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Qe(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Je(t){var e=Qe(t.r),n=Qe(t.g),r=Qe(t.b),i=qe((.4124564*e+.3575761*n+.1804375*r)/.95047),o=qe((.2126729*e+.7151522*n+.072175*r)/1);return{l:116*o-16,a:500*(i-o),b:200*(o-qe((.0193339*e+.119192*n+.9503041*r)/1.08883)),alpha:t.a}}function tn(t){var e=(t.l+16)/116,n=isNaN(t.a)?e:e+t.a/500,r=isNaN(t.b)?e:e-t.b/200;return e=1*Ze(e),n=.95047*Ze(n),r=1.08883*Ze(r),new te(Ke(3.2404542*n-1.5371385*e-.4985314*r),Ke(-.969266*n+1.8760108*e+.041556*r),Ke(.0556434*n-.2040259*e+1.0572252*r),t.alpha)}function en(t,e,n){var r=e-t;return t+n*(r>180||r<-180?r-360*Math.round(r/360):r)}var nn={forward:Je,reverse:tn,interpolate:function(t,e,n){return{l:He(t.l,e.l,n),a:He(t.a,e.a,n),b:He(t.b,e.b,n),alpha:He(t.alpha,e.alpha,n)}}},rn={forward:function(t){var e=Je(t),n=e.l,r=e.a,i=e.b,o=Math.atan2(i,r)*$e;return{h:o<0?o+360:o,c:Math.sqrt(r*r+i*i),l:n,alpha:t.a}},reverse:function(t){var e=t.h*Xe,n=t.c;return tn({l:t.l,a:Math.cos(e)*n,b:Math.sin(e)*n,alpha:t.alpha})},interpolate:function(t,e,n){return{h:en(t.h,e.h,n),c:He(t.c,e.c,n),l:He(t.l,e.l,n),alpha:He(t.alpha,e.alpha,n)}}},on=Object.freeze({__proto__:null,lab:nn,hcl:rn}),an=function(t,e,n,r,i){this.type=t,this.operator=e,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(var o=0,a=i;o<a.length;o+=1){var s=a[o],u=s[1];this.labels.push(s[0]),this.outputs.push(u)}};function sn(t,e,n,r){var i=r-n,o=t-n;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}an.interpolationFactor=function(t,e,r,i){var o=0;if("exponential"===t.name)o=sn(e,t.base,r,i);else if("linear"===t.name)o=sn(e,1,r,i);else if("cubic-bezier"===t.name){var a=t.controlPoints;o=new n(a[0],a[1],a[2],a[3]).solve(sn(e,1,r,i))}return o},an.parse=function(t,e){var n=t[0],r=t[1],i=t[2],o=t.slice(3);if(!Array.isArray(r)||0===r.length)return e.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){var a=r[1];if("number"!=typeof a)return e.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:a}}else{if("cubic-bezier"!==r[0])return e.error("Unknown interpolation type "+String(r[0]),1,0);var s=r.slice(1);if(4!==s.length||s.some((function(t){return"number"!=typeof t||t<0||t>1})))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(i=e.parse(i,2,Bt)))return null;var u=[],l=null;"interpolate-hcl"===n||"interpolate-lab"===n?l=Vt:e.expectedType&&"value"!==e.expectedType.kind&&(l=e.expectedType);for(var c=0;c<o.length;c+=2){var h=o[c],f=o[c+1],d=c+3,p=c+4;if("number"!=typeof h)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',d);if(u.length&&u[u.length-1][0]>=h)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',d);var g=e.parse(f,p,l);if(!g)return null;l=l||g.type,u.push([h,g])}return"number"===l.kind||"color"===l.kind||"array"===l.kind&&"number"===l.itemType.kind&&"number"==typeof l.N?new an(l,n,r,i,u):e.error("Type "+$t(l)+" is not interpolatable.")},an.prototype.evaluate=function(t){var e=this.labels,n=this.outputs;if(1===e.length)return n[0].evaluate(t);var r=this.input.evaluate(t);if(r<=e[0])return n[0].evaluate(t);var i=e.length;if(r>=e[i-1])return n[i-1].evaluate(t);var o=Ue(e,r),a=an.interpolationFactor(this.interpolation,r,e[o],e[o+1]),s=n[o].evaluate(t),u=n[o+1].evaluate(t);return"interpolate"===this.operator?We[this.type.kind.toLowerCase()](s,u,a):"interpolate-hcl"===this.operator?rn.reverse(rn.interpolate(rn.forward(s),rn.forward(u),a)):nn.reverse(nn.interpolate(nn.forward(s),nn.forward(u),a))},an.prototype.eachChild=function(t){t(this.input);for(var e=0,n=this.outputs;e<n.length;e+=1)t(n[e])},an.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},an.prototype.serialize=function(){var t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],n=0;n<this.labels.length;n++)e.push(this.labels[n],this.outputs[n].serialize());return e};var un=function(t,e){this.type=t,this.args=e};un.parse=function(t,e){if(t.length<2)return e.error("Expectected at least one argument.");var n=null,r=e.expectedType;r&&"value"!==r.kind&&(n=r);for(var i=[],o=0,a=t.slice(1);o<a.length;o+=1){var s=e.parse(a[o],1+i.length,n,void 0,{typeAnnotation:"omit"});if(!s)return null;n=n||s.type,i.push(s)}var u=r&&i.some((function(t){return Zt(r,t.type)}));return new un(u?Gt:n,i)},un.prototype.evaluate=function(t){for(var e,n=null,r=0,i=0,o=this.args;i<o.length&&(r++,(n=o[i].evaluate(t))&&n instanceof ie&&!n.available&&(e||(e=n.name),n=null,r===this.args.length&&(n=e)),null===n);i+=1);return n},un.prototype.eachChild=function(t){this.args.forEach(t)},un.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},un.prototype.serialize=function(){var t=["coalesce"];return this.eachChild((function(e){t.push(e.serialize())})),t};var ln=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};ln.prototype.evaluate=function(t){return this.result.evaluate(t)},ln.prototype.eachChild=function(t){for(var e=0,n=this.bindings;e<n.length;e+=1)t(n[e][1]);t(this.result)},ln.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found "+(t.length-1)+" instead.");for(var n=[],r=1;r<t.length-1;r+=2){var i=t[r];if("string"!=typeof i)return e.error("Expected string, but found "+typeof i+" instead.",r);if(/[^a-zA-Z0-9_]/.test(i))return e.error("Variable names must contain only alphanumeric characters or '_'.",r);var o=e.parse(t[r+1],r+1);if(!o)return null;n.push([i,o])}var a=e.parse(t[t.length-1],t.length-1,e.expectedType,n);return a?new ln(n,a):null},ln.prototype.outputDefined=function(){return this.result.outputDefined()},ln.prototype.serialize=function(){for(var t=["let"],e=0,n=this.bindings;e<n.length;e+=1){var r=n[e];t.push(r[0],r[1].serialize())}return t.push(this.result.serialize()),t};var cn=function(t,e,n){this.type=t,this.index=e,this.input=n};cn.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,Bt),r=e.parse(t[2],2,Xt(e.expectedType||Gt));return n&&r?new cn(r.type.itemType,n,r):null},cn.prototype.evaluate=function(t){var e=this.index.evaluate(t),n=this.input.evaluate(t);if(e<0)throw new ce("Array index out of bounds: "+e+" < 0.");if(e>=n.length)throw new ce("Array index out of bounds: "+e+" > "+(n.length-1)+".");if(e!==Math.floor(e))throw new ce("Array index must be an integer, but found "+e+" instead.");return n[e]},cn.prototype.eachChild=function(t){t(this.index),t(this.input)},cn.prototype.outputDefined=function(){return!1},cn.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var hn=function(t,e){this.type=zt,this.needle=t,this.haystack=e};hn.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,Gt),r=e.parse(t[2],2,Gt);return n&&r?Kt(n.type,[zt,Ft,Bt,Nt,Gt])?new hn(n,r):e.error("Expected first argument to be of type boolean, string, number or null, but found "+$t(n.type)+" instead"):null},hn.prototype.evaluate=function(t){var e=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!n)return!1;if(!Qt(e,["boolean","string","number","null"]))throw new ce("Expected first argument to be of type boolean, string, number or null, but found "+$t(se(e))+" instead.");if(!Qt(n,["string","array"]))throw new ce("Expected second argument to be of type array or string, but found "+$t(se(n))+" instead.");return n.indexOf(e)>=0},hn.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},hn.prototype.outputDefined=function(){return!0},hn.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var fn=function(t,e,n){this.type=Bt,this.needle=t,this.haystack=e,this.fromIndex=n};fn.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,Gt),r=e.parse(t[2],2,Gt);if(!n||!r)return null;if(!Kt(n.type,[zt,Ft,Bt,Nt,Gt]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+$t(n.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,Bt);return i?new fn(n,r,i):null}return new fn(n,r)},fn.prototype.evaluate=function(t){var e=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!Qt(e,["boolean","string","number","null"]))throw new ce("Expected first argument to be of type boolean, string, number or null, but found "+$t(se(e))+" instead.");if(!Qt(n,["string","array"]))throw new ce("Expected second argument to be of type array or string, but found "+$t(se(n))+" instead.");if(this.fromIndex){var r=this.fromIndex.evaluate(t);return n.indexOf(e,r)}return n.indexOf(e)},fn.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},fn.prototype.outputDefined=function(){return!1},fn.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var dn=function(t,e,n,r,i,o){this.inputType=t,this.type=e,this.input=n,this.cases=r,this.outputs=i,this.otherwise=o};dn.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!=1)return e.error("Expected an even number of arguments.");var n,r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(var i={},o=[],a=2;a<t.length-1;a+=2){var s=t[a],u=t[a+1];Array.isArray(s)||(s=[s]);var l=e.concat(a);if(0===s.length)return l.error("Expected at least one branch label.");for(var c=0,h=s;c<h.length;c+=1){var f=h[c];if("number"!=typeof f&&"string"!=typeof f)return l.error("Branch labels must be numbers or strings.");if("number"==typeof f&&Math.abs(f)>Number.MAX_SAFE_INTEGER)return l.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof f&&Math.floor(f)!==f)return l.error("Numeric branch labels must be integer values.");if(n){if(l.checkSubtype(n,se(f)))return null}else n=se(f);if(void 0!==i[String(f)])return l.error("Branch labels must be unique.");i[String(f)]=o.length}var d=e.parse(u,a,r);if(!d)return null;r=r||d.type,o.push(d)}var p=e.parse(t[1],1,Gt);if(!p)return null;var g=e.parse(t[t.length-1],t.length-1,r);return g?"value"!==p.type.kind&&e.concat(1).checkSubtype(n,p.type)?null:new dn(n,r,p,i,o,g):null},dn.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(se(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},dn.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},dn.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},dn.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],n=[],r={},i=0,o=Object.keys(this.cases).sort();i<o.length;i+=1){var a=o[i];void 0===(h=r[this.cases[a]])?(r[this.cases[a]]=n.length,n.push([this.cases[a],[a]])):n[h][1].push(a)}for(var s=function(e){return"number"===t.inputType.kind?Number(e):e},u=0,l=n;u<l.length;u+=1){var c=l[u],h=c[0],f=c[1];e.push(1===f.length?s(f[0]):f.map(s)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};var pn=function(t,e,n){this.type=t,this.branches=e,this.otherwise=n};pn.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found only "+(t.length-1)+".");if(t.length%2!=0)return e.error("Expected an odd number of arguments.");var n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);for(var r=[],i=1;i<t.length-1;i+=2){var o=e.parse(t[i],i,zt);if(!o)return null;var a=e.parse(t[i+1],i+1,n);if(!a)return null;r.push([o,a]),n=n||a.type}var s=e.parse(t[t.length-1],t.length-1,n);return s?new pn(n,r,s):null},pn.prototype.evaluate=function(t){for(var e=0,n=this.branches;e<n.length;e+=1){var r=n[e],i=r[1];if(r[0].evaluate(t))return i.evaluate(t)}return this.otherwise.evaluate(t)},pn.prototype.eachChild=function(t){for(var e=0,n=this.branches;e<n.length;e+=1){var r=n[e],i=r[1];t(r[0]),t(i)}t(this.otherwise)},pn.prototype.outputDefined=function(){return this.branches.every((function(t){return t[1].outputDefined()}))&&this.otherwise.outputDefined()},pn.prototype.serialize=function(){var t=["case"];return this.eachChild((function(e){t.push(e.serialize())})),t};var gn=function(t,e,n,r){this.type=t,this.input=e,this.beginIndex=n,this.endIndex=r};function vn(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function mn(t,e,n,r){return 0===r.compare(e,n)}function yn(t,e,n){var r="=="!==t&&"!="!==t;return function(){function i(t,e,n){this.type=zt,this.lhs=t,this.rhs=e,this.collator=n,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}return i.parse=function(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");var n=t[0],o=e.parse(t[1],1,Gt);if(!o)return null;if(!vn(n,o.type))return e.concat(1).error('"'+n+"\" comparisons are not supported for type '"+$t(o.type)+"'.");var a=e.parse(t[2],2,Gt);if(!a)return null;if(!vn(n,a.type))return e.concat(2).error('"'+n+"\" comparisons are not supported for type '"+$t(a.type)+"'.");if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot compare types '"+$t(o.type)+"' and '"+$t(a.type)+"'.");r&&("value"===o.type.kind&&"value"!==a.type.kind?o=new fe(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new fe(o.type,[a])));var s=null;if(4===t.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot use collator to compare non-string types.");if(!(s=e.parse(t[3],3,Ht)))return null}return new i(o,a,s)},i.prototype.evaluate=function(i){var o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(r&&this.hasUntypedArgument){var s=se(o),u=se(a);if(s.kind!==u.kind||"string"!==s.kind&&"number"!==s.kind)throw new ce('Expected arguments for "'+t+'" to be (string, string) or (number, number), but found ('+s.kind+", "+u.kind+") instead.")}if(this.collator&&!r&&this.hasUntypedArgument){var l=se(o),c=se(a);if("string"!==l.kind||"string"!==c.kind)return e(i,o,a)}return this.collator?n(i,o,a,this.collator.evaluate(i)):e(i,o,a)},i.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},i}()}gn.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,Gt),r=e.parse(t[2],2,Bt);if(!n||!r)return null;if(!Kt(n.type,[Xt(Gt),Ft,Gt]))return e.error("Expected first argument to be of type array or string, but found "+$t(n.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,Bt);return i?new gn(n.type,n,r,i):null}return new gn(n.type,n,r)},gn.prototype.evaluate=function(t){var e=this.input.evaluate(t),n=this.beginIndex.evaluate(t);if(!Qt(e,["string","array"]))throw new ce("Expected first argument to be of type array or string, but found "+$t(se(e))+" instead.");if(this.endIndex){var r=this.endIndex.evaluate(t);return e.slice(n,r)}return e.slice(n)},gn.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},gn.prototype.outputDefined=function(){return!1},gn.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var bn=yn("==",(function(t,e,n){return e===n}),mn),_n=yn("!=",(function(t,e,n){return e!==n}),(function(t,e,n,r){return!mn(0,e,n,r)})),xn=yn("<",(function(t,e,n){return e<n}),(function(t,e,n,r){return r.compare(e,n)<0})),wn=yn(">",(function(t,e,n){return e>n}),(function(t,e,n,r){return r.compare(e,n)>0})),On=yn("<=",(function(t,e,n){return e<=n}),(function(t,e,n,r){return r.compare(e,n)<=0})),Sn=yn(">=",(function(t,e,n){return e>=n}),(function(t,e,n,r){return r.compare(e,n)>=0})),Cn=function(t,e,n,r,i){this.type=Ft,this.number=t,this.locale=e,this.currency=n,this.minFractionDigits=r,this.maxFractionDigits=i};Cn.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var n=e.parse(t[1],1,Bt);if(!n)return null;var r=t[2];if("object"!=typeof r||Array.isArray(r))return e.error("NumberFormat options argument must be an object.");var i=null;if(r.locale&&!(i=e.parse(r.locale,1,Ft)))return null;var o=null;if(r.currency&&!(o=e.parse(r.currency,1,Ft)))return null;var a=null;if(r["min-fraction-digits"]&&!(a=e.parse(r["min-fraction-digits"],1,Bt)))return null;var s=null;return r["max-fraction-digits"]&&!(s=e.parse(r["max-fraction-digits"],1,Bt))?null:new Cn(n,i,o,a,s)},Cn.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},Cn.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},Cn.prototype.outputDefined=function(){return!1},Cn.prototype.serialize=function(){var t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};var En=function(t){this.type=Bt,this.input=t};En.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?e.error("Expected argument of type string or array, but found "+$t(n.type)+" instead."):new En(n):null},En.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new ce("Expected value to be of type string or array, but found "+$t(se(e))+" instead.")},En.prototype.eachChild=function(t){t(this.input)},En.prototype.outputDefined=function(){return!1},En.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var Tn={"==":bn,"!=":_n,">":wn,"<":xn,">=":Sn,"<=":On,array:fe,at:cn,boolean:fe,case:pn,coalesce:un,collator:_e,format:de,image:pe,in:hn,"index-of":fn,interpolate:an,"interpolate-hcl":an,"interpolate-lab":an,length:En,let:ln,literal:le,match:dn,number:fe,"number-format":Cn,object:fe,slice:gn,step:Ge,string:fe,"to-boolean":ve,"to-color":ve,"to-number":ve,"to-string":ve,var:ze,within:De};function An(t,e){var n=e[0],r=e[1],i=e[2],o=e[3];n=n.evaluate(t),r=r.evaluate(t),i=i.evaluate(t);var a=o?o.evaluate(t):1,s=oe(n,r,i,a);if(s)throw new ce(s);return new te(n/255*a,r/255*a,i/255*a,a)}function Mn(t,e){return t in e}function In(t,e){var n=e[t];return void 0===n?null:n}function jn(t){return{type:t}}function kn(t){return{result:"success",value:t}}function Pn(t){return{result:"error",value:t}}function Ln(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function Rn(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Dn(t){return!!t.expression&&t.expression.interpolated}function Nn(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function Bn(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function Fn(t){return t}function zn(t,e,n){return void 0!==t?t:void 0!==e?e:void 0!==n?n:void 0}function Vn(t,e,n,r,i){return zn(typeof n===i?r[n]:void 0,t.default,e.default)}function Un(t,e,n){if("number"!==Nn(n))return zn(t.default,e.default);var r=t.stops.length;if(1===r)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[r-1][0])return t.stops[r-1][1];var i=Ue(t.stops.map((function(t){return t[0]})),n);return t.stops[i][1]}function Gn(t,e,n){var r=void 0!==t.base?t.base:1;if("number"!==Nn(n))return zn(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[i-1][0])return t.stops[i-1][1];var o=Ue(t.stops.map((function(t){return t[0]})),n),a=function(t,e,n,r){var i=r-n,o=t-n;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}(n,r,t.stops[o][0],t.stops[o+1][0]),s=t.stops[o][1],u=t.stops[o+1][1],l=We[e.type]||Fn;if(t.colorSpace&&"rgb"!==t.colorSpace){var c=on[t.colorSpace];l=function(t,e){return c.reverse(c.interpolate(c.forward(t),c.forward(e),a))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=s.evaluate.apply(void 0,t),r=u.evaluate.apply(void 0,t);if(void 0!==n&&void 0!==r)return l(n,r,a)}}:l(s,u,a)}function Hn(t,e,n){return"color"===e.type?n=te.parse(n):"formatted"===e.type?n=re.fromString(n.toString()):"resolvedImage"===e.type?n=ie.fromString(n.toString()):Nn(n)===e.type||"enum"===e.type&&e.values[n]||(n=void 0),zn(n,t.default,e.default)}be.register(Tn,{error:[{kind:"error"},[Ft],function(t,e){throw new ce(e[0].evaluate(t))}],typeof:[Ft,[Gt],function(t,e){return $t(se(e[0].evaluate(t)))}],"to-rgba":[Xt(Bt,4),[Vt],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Vt,[Bt,Bt,Bt],An],rgba:[Vt,[Bt,Bt,Bt,Bt],An],has:{type:zt,overloads:[[[Ft],function(t,e){return Mn(e[0].evaluate(t),t.properties())}],[[Ft,Ut],function(t,e){var n=e[1];return Mn(e[0].evaluate(t),n.evaluate(t))}]]},get:{type:Gt,overloads:[[[Ft],function(t,e){return In(e[0].evaluate(t),t.properties())}],[[Ft,Ut],function(t,e){var n=e[1];return In(e[0].evaluate(t),n.evaluate(t))}]]},"feature-state":[Gt,[Ft],function(t,e){return In(e[0].evaluate(t),t.featureState||{})}],properties:[Ut,[],function(t){return t.properties()}],"geometry-type":[Ft,[],function(t){return t.geometryType()}],id:[Gt,[],function(t){return t.id()}],zoom:[Bt,[],function(t){return t.globals.zoom}],"heatmap-density":[Bt,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[Bt,[],function(t){return t.globals.lineProgress||0}],accumulated:[Gt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[Bt,jn(Bt),function(t,e){for(var n=0,r=0,i=e;r<i.length;r+=1)n+=i[r].evaluate(t);return n}],"*":[Bt,jn(Bt),function(t,e){for(var n=1,r=0,i=e;r<i.length;r+=1)n*=i[r].evaluate(t);return n}],"-":{type:Bt,overloads:[[[Bt,Bt],function(t,e){var n=e[1];return e[0].evaluate(t)-n.evaluate(t)}],[[Bt],function(t,e){return-e[0].evaluate(t)}]]},"/":[Bt,[Bt,Bt],function(t,e){var n=e[1];return e[0].evaluate(t)/n.evaluate(t)}],"%":[Bt,[Bt,Bt],function(t,e){var n=e[1];return e[0].evaluate(t)%n.evaluate(t)}],ln2:[Bt,[],function(){return Math.LN2}],pi:[Bt,[],function(){return Math.PI}],e:[Bt,[],function(){return Math.E}],"^":[Bt,[Bt,Bt],function(t,e){var n=e[1];return Math.pow(e[0].evaluate(t),n.evaluate(t))}],sqrt:[Bt,[Bt],function(t,e){return Math.sqrt(e[0].evaluate(t))}],log10:[Bt,[Bt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN10}],ln:[Bt,[Bt],function(t,e){return Math.log(e[0].evaluate(t))}],log2:[Bt,[Bt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN2}],sin:[Bt,[Bt],function(t,e){return Math.sin(e[0].evaluate(t))}],cos:[Bt,[Bt],function(t,e){return Math.cos(e[0].evaluate(t))}],tan:[Bt,[Bt],function(t,e){return Math.tan(e[0].evaluate(t))}],asin:[Bt,[Bt],function(t,e){return Math.asin(e[0].evaluate(t))}],acos:[Bt,[Bt],function(t,e){return Math.acos(e[0].evaluate(t))}],atan:[Bt,[Bt],function(t,e){return Math.atan(e[0].evaluate(t))}],min:[Bt,jn(Bt),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[Bt,jn(Bt),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[Bt,[Bt],function(t,e){return Math.abs(e[0].evaluate(t))}],round:[Bt,[Bt],function(t,e){var n=e[0].evaluate(t);return n<0?-Math.round(-n):Math.round(n)}],floor:[Bt,[Bt],function(t,e){return Math.floor(e[0].evaluate(t))}],ceil:[Bt,[Bt],function(t,e){return Math.ceil(e[0].evaluate(t))}],"filter-==":[zt,[Ft,Gt],function(t,e){var n=e[0],r=e[1];return t.properties()[n.value]===r.value}],"filter-id-==":[zt,[Gt],function(t,e){var n=e[0];return t.id()===n.value}],"filter-type-==":[zt,[Ft],function(t,e){var n=e[0];return t.geometryType()===n.value}],"filter-<":[zt,[Ft,Gt],function(t,e){var n=e[0],r=e[1],i=t.properties()[n.value],o=r.value;return typeof i==typeof o&&i<o}],"filter-id-<":[zt,[Gt],function(t,e){var n=e[0],r=t.id(),i=n.value;return typeof r==typeof i&&r<i}],"filter->":[zt,[Ft,Gt],function(t,e){var n=e[0],r=e[1],i=t.properties()[n.value],o=r.value;return typeof i==typeof o&&i>o}],"filter-id->":[zt,[Gt],function(t,e){var n=e[0],r=t.id(),i=n.value;return typeof r==typeof i&&r>i}],"filter-<=":[zt,[Ft,Gt],function(t,e){var n=e[0],r=e[1],i=t.properties()[n.value],o=r.value;return typeof i==typeof o&&i<=o}],"filter-id-<=":[zt,[Gt],function(t,e){var n=e[0],r=t.id(),i=n.value;return typeof r==typeof i&&r<=i}],"filter->=":[zt,[Ft,Gt],function(t,e){var n=e[0],r=e[1],i=t.properties()[n.value],o=r.value;return typeof i==typeof o&&i>=o}],"filter-id->=":[zt,[Gt],function(t,e){var n=e[0],r=t.id(),i=n.value;return typeof r==typeof i&&r>=i}],"filter-has":[zt,[Gt],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[zt,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[zt,[Xt(Ft)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[zt,[Xt(Gt)],function(t,e){return e[0].value.indexOf(t.id())>=0}],"filter-in-small":[zt,[Ft,Xt(Gt)],function(t,e){var n=e[0];return e[1].value.indexOf(t.properties()[n.value])>=0}],"filter-in-large":[zt,[Ft,Xt(Gt)],function(t,e){var n=e[0],r=e[1];return function(t,e,n,r){for(;n<=r;){var i=n+r>>1;if(e[i]===t)return!0;e[i]>t?r=i-1:n=i+1}return!1}(t.properties()[n.value],r.value,0,r.value.length-1)}],all:{type:zt,overloads:[[[zt,zt],function(t,e){var n=e[1];return e[0].evaluate(t)&&n.evaluate(t)}],[jn(zt),function(t,e){for(var n=0,r=e;n<r.length;n+=1)if(!r[n].evaluate(t))return!1;return!0}]]},any:{type:zt,overloads:[[[zt,zt],function(t,e){var n=e[1];return e[0].evaluate(t)||n.evaluate(t)}],[jn(zt),function(t,e){for(var n=0,r=e;n<r.length;n+=1)if(r[n].evaluate(t))return!0;return!1}]]},"!":[zt,[zt],function(t,e){return!e[0].evaluate(t)}],"is-supported-script":[zt,[Ft],function(t,e){var n=t.globals&&t.globals.isSupportedScript;return!n||n(e[0].evaluate(t))}],upcase:[Ft,[Ft],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[Ft,[Ft],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[Ft,jn(Gt),function(t,e){return e.map((function(e){return ue(e.evaluate(t))})).join("")}],"resolved-locale":[Ft,[Ht],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var Wn=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new ye,this._defaultValue=e?function(t){return"color"===t.type&&Bn(t.default)?new te(0,0,0,0):"color"===t.type?te.parse(t.default)||null:void 0===t.default?null:t.default}(e):null,this._enumValues=e&&"enum"===e.type?e.values:null};function Yn(t){return Array.isArray(t)&&t.length>0&&"string"==typeof t[0]&&t[0]in Tn}function Xn(t,e){var n=new Ve(Tn,[],e?function(t){var e={color:Vt,string:Ft,number:Bt,enum:Ft,boolean:zt,formatted:Wt,resolvedImage:Yt};return"array"===t.type?Xt(e[t.value]||Gt,t.length):e[t.type]}(e):void 0),r=n.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return r?kn(new Wn(r,e)):Pn(n.errors)}Wn.prototype.evaluateWithoutErrorHandling=function(t,e,n,r,i,o){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=n,this._evaluator.canonical=r,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this.expression.evaluate(this._evaluator)},Wn.prototype.evaluate=function(t,e,n,r,i,o){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null;try{var a=this.expression.evaluate(this._evaluator);if(null==a||"number"==typeof a&&a!=a)return this._defaultValue;if(this._enumValues&&!(a in this._enumValues))throw new ce("Expected value to be one of "+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", ")+", but found "+JSON.stringify(a)+" instead.");return a}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}};var $n=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Be(e.expression)};$n.prototype.evaluateWithoutErrorHandling=function(t,e,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,n,r,i,o)},$n.prototype.evaluate=function(t,e,n,r,i,o){return this._styleExpression.evaluate(t,e,n,r,i,o)};var qn=function(t,e,n,r){this.kind=t,this.zoomStops=n,this._styleExpression=e,this.isStateDependent="camera"!==t&&!Be(e.expression),this.interpolationType=r};function Zn(t,e){if("error"===(t=Xn(t,e)).result)return t;var n=t.value.expression,r=Ne(n);if(!r&&!Ln(e))return Pn([new Rt("","data expressions not supported")]);var i=Fe(n,["zoom"]);if(!i&&!Rn(e))return Pn([new Rt("","zoom expressions not supported")]);var o=function t(e){var n=null;if(e instanceof ln)n=t(e.result);else if(e instanceof un)for(var r=0,i=e.args;r<i.length&&!(n=t(i[r]));r+=1);else(e instanceof Ge||e instanceof an)&&e.input instanceof be&&"zoom"===e.input.name&&(n=e);return n instanceof Rt||e.eachChild((function(e){var r=t(e);r instanceof Rt?n=r:!n&&r?n=new Rt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&r&&n!==r&&(n=new Rt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),n}(n);return o||i?o instanceof Rt?Pn([o]):o instanceof an&&!Dn(e)?Pn([new Rt("",'"interpolate" expressions cannot be used with this property')]):kn(o?new qn(r?"camera":"composite",t.value,o.labels,o instanceof an?o.interpolation:void 0):new $n(r?"constant":"source",t.value)):Pn([new Rt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}qn.prototype.evaluateWithoutErrorHandling=function(t,e,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,n,r,i,o)},qn.prototype.evaluate=function(t,e,n,r,i,o){return this._styleExpression.evaluate(t,e,n,r,i,o)},qn.prototype.interpolationFactor=function(t,e,n){return this.interpolationType?an.interpolationFactor(this.interpolationType,t,e,n):0};var Kn=function(t,e){this._parameters=t,this._specification=e,kt(this,function t(e,n){var r,i,o,a="color"===n.type,s=e.stops&&"object"==typeof e.stops[0][0],u=s||!(s||void 0!==e.property),l=e.type||(Dn(n)?"exponential":"interval");if(a&&((e=kt({},e)).stops&&(e.stops=e.stops.map((function(t){return[t[0],te.parse(t[1])]}))),e.default=te.parse(e.default?e.default:n.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!on[e.colorSpace])throw new Error("Unknown color space: "+e.colorSpace);if("exponential"===l)r=Gn;else if("interval"===l)r=Un;else if("categorical"===l){r=Vn,i=Object.create(null);for(var c=0,h=e.stops;c<h.length;c+=1){var f=h[c];i[f[0]]=f[1]}o=typeof e.stops[0][0]}else{if("identity"!==l)throw new Error('Unknown function type "'+l+'"');r=Hn}if(s){for(var d={},p=[],g=0;g<e.stops.length;g++){var v=e.stops[g],m=v[0].zoom;void 0===d[m]&&(d[m]={zoom:m,type:e.type,property:e.property,default:e.default,stops:[]},p.push(m)),d[m].stops.push([v[0].value,v[1]])}for(var y=[],b=0,_=p;b<_.length;b+=1){var x=_[b];y.push([d[x].zoom,t(d[x],n)])}var w={name:"linear"};return{kind:"composite",interpolationType:w,interpolationFactor:an.interpolationFactor.bind(void 0,w),zoomStops:y.map((function(t){return t[0]})),evaluate:function(t,r){var i=t.zoom;return Gn({stops:y,base:e.base},n,i).evaluate(i,r)}}}if(u){var O="exponential"===l?{name:"exponential",base:void 0!==e.base?e.base:1}:null;return{kind:"camera",interpolationType:O,interpolationFactor:an.interpolationFactor.bind(void 0,O),zoomStops:e.stops.map((function(t){return t[0]})),evaluate:function(t){return r(e,n,t.zoom,i,o)}}}return{kind:"source",evaluate:function(t,a){var s=a&&a.properties?a.properties[e.property]:void 0;return void 0===s?zn(e.default,n.default):r(e,n,s,i,o)}}}(this._parameters,this._specification))};function Qn(t){var e=t.key,n=t.value,r=t.valueSpec||{},i=t.objectElementValidators||{},o=t.style,a=t.styleSpec,s=[],u=Nn(n);if("object"!==u)return[new It(e,n,"object expected, "+u+" found")];for(var l in n){var c=l.split(".")[0],h=r[c]||r["*"],f=void 0;if(i[c])f=i[c];else if(r[c])f=Or;else if(i["*"])f=i["*"];else{if(!r["*"]){s.push(new It(e,n[l],'unknown property "'+l+'"'));continue}f=Or}s=s.concat(f({key:(e?e+".":e)+l,value:n[l],valueSpec:h,style:o,styleSpec:a,object:n,objectKey:l},n))}for(var d in r)i[d]||r[d].required&&void 0===r[d].default&&void 0===n[d]&&s.push(new It(e,n,'missing required property "'+d+'"'));return s}function Jn(t){var e=t.value,n=t.valueSpec,r=t.style,i=t.styleSpec,o=t.key,a=t.arrayElementValidator||Or;if("array"!==Nn(e))return[new It(o,e,"array expected, "+Nn(e)+" found")];if(n.length&&e.length!==n.length)return[new It(o,e,"array length "+n.length+" expected, length "+e.length+" found")];if(n["min-length"]&&e.length<n["min-length"])return[new It(o,e,"array length at least "+n["min-length"]+" expected, length "+e.length+" found")];var s={type:n.value,values:n.values};i.$version<7&&(s.function=n.function),"object"===Nn(n.value)&&(s=n.value);for(var u=[],l=0;l<e.length;l++)u=u.concat(a({array:e,arrayIndex:l,value:e[l],valueSpec:s,style:r,styleSpec:i,key:o+"["+l+"]"}));return u}function tr(t){var e=t.key,n=t.value,r=t.valueSpec,i=Nn(n);return"number"===i&&n!=n&&(i="NaN"),"number"!==i?[new It(e,n,"number expected, "+i+" found")]:"minimum"in r&&n<r.minimum?[new It(e,n,n+" is less than the minimum value "+r.minimum)]:"maximum"in r&&n>r.maximum?[new It(e,n,n+" is greater than the maximum value "+r.maximum)]:[]}function er(t){var e,n,r,i=t.valueSpec,o=Pt(t.value.type),a={},s="categorical"!==o&&void 0===t.value.property,u=!s,l="array"===Nn(t.value.stops)&&"array"===Nn(t.value.stops[0])&&"object"===Nn(t.value.stops[0][0]),c=Qn({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===o)return[new It(t.key,t.value,'identity function may not have a "stops" property')];var e=[],n=t.value;return e=e.concat(Jn({key:t.key,value:n,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:h})),"array"===Nn(n)&&0===n.length&&e.push(new It(t.key,n,"array must have at least one stop")),e},default:function(t){return Or({key:t.key,value:t.value,valueSpec:i,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===o&&s&&c.push(new It(t.key,t.value,'missing required property "property"')),"identity"===o||t.value.stops||c.push(new It(t.key,t.value,'missing required property "stops"')),"exponential"===o&&t.valueSpec.expression&&!Dn(t.valueSpec)&&c.push(new It(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(u&&!Ln(t.valueSpec)?c.push(new It(t.key,t.value,"property functions not supported")):s&&!Rn(t.valueSpec)&&c.push(new It(t.key,t.value,"zoom functions not supported"))),"categorical"!==o&&!l||void 0!==t.value.property||c.push(new It(t.key,t.value,'"property" property is required')),c;function h(t){var e=[],o=t.value,s=t.key;if("array"!==Nn(o))return[new It(s,o,"array expected, "+Nn(o)+" found")];if(2!==o.length)return[new It(s,o,"array length 2 expected, length "+o.length+" found")];if(l){if("object"!==Nn(o[0]))return[new It(s,o,"object expected, "+Nn(o[0])+" found")];if(void 0===o[0].zoom)return[new It(s,o,"object stop key must have zoom")];if(void 0===o[0].value)return[new It(s,o,"object stop key must have value")];if(r&&r>Pt(o[0].zoom))return[new It(s,o[0].zoom,"stop zoom values must appear in ascending order")];Pt(o[0].zoom)!==r&&(r=Pt(o[0].zoom),n=void 0,a={}),e=e.concat(Qn({key:s+"[0]",value:o[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:tr,value:f}}))}else e=e.concat(f({key:s+"[0]",value:o[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},o));return Yn(Lt(o[1]))?e.concat([new It(s+"[1]",o[1],"expressions are not allowed in function stops.")]):e.concat(Or({key:s+"[1]",value:o[1],valueSpec:i,style:t.style,styleSpec:t.styleSpec}))}function f(t,r){var s=Nn(t.value),u=Pt(t.value),l=null!==t.value?t.value:r;if(e){if(s!==e)return[new It(t.key,l,s+" stop domain type must match previous stop domain type "+e)]}else e=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new It(t.key,l,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==o){var c="number expected, "+s+" found";return Ln(i)&&void 0===o&&(c+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new It(t.key,l,c)]}return"categorical"!==o||"number"!==s||isFinite(u)&&Math.floor(u)===u?"categorical"!==o&&"number"===s&&void 0!==n&&u<n?[new It(t.key,l,"stop domain values must appear in ascending order")]:(n=u,"categorical"===o&&u in a?[new It(t.key,l,"stop domain values must be unique")]:(a[u]=!0,[])):[new It(t.key,l,"integer expected, found "+u)]}}function nr(t){var e=("property"===t.expressionContext?Zn:Xn)(Lt(t.value),t.valueSpec);if("error"===e.result)return e.value.map((function(e){return new It(""+t.key+e.key,t.value,e.message)}));var n=e.value.expression||e.value._styleExpression.expression;if("property"===t.expressionContext&&"text-font"===t.propertyKey&&!n.outputDefined())return[new It(t.key,t.value,'Invalid data expression for "'+t.propertyKey+'". Output values must be contained as literals within the expression.')];if("property"===t.expressionContext&&"layout"===t.propertyType&&!Be(n))return[new It(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===t.expressionContext&&!Be(n))return[new It(t.key,t.value,'"feature-state" data expressions are not supported with filters.')];if(t.expressionContext&&0===t.expressionContext.indexOf("cluster")){if(!Fe(n,["zoom","feature-state"]))return[new It(t.key,t.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===t.expressionContext&&!Ne(n))return[new It(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function rr(t){var e=t.key,n=t.value,r=t.valueSpec,i=[];return Array.isArray(r.values)?-1===r.values.indexOf(Pt(n))&&i.push(new It(e,n,"expected one of ["+r.values.join(", ")+"], "+JSON.stringify(n)+" found")):-1===Object.keys(r.values).indexOf(Pt(n))&&i.push(new It(e,n,"expected one of ["+Object.keys(r.values).join(", ")+"], "+JSON.stringify(n)+" found")),i}function ir(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,n=t.slice(1);e<n.length;e+=1){var r=n[e];if(!ir(r)&&"boolean"!=typeof r)return!1}return!0;default:return!0}}Kn.deserialize=function(t){return new Kn(t._parameters,t._specification)},Kn.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var or={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function ar(t){if(null==t)return{filter:function(){return!0},needGeometry:!1};ir(t)||(t=ur(t));var e=Xn(t,or);if("error"===e.result)throw new Error(e.value.map((function(t){return t.key+": "+t.message})).join(", "));return{filter:function(t,n,r){return e.value.evaluate(t,n,{},r)},needGeometry:function t(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(var n=1;n<e.length;n++)if(t(e[n]))return!0;return!1}(t)}}function sr(t,e){return t<e?-1:t>e?1:0}function ur(t){if(!t)return!0;var e,n=t[0];return t.length<=1?"any"!==n:"=="===n?lr(t[1],t[2],"=="):"!="===n?fr(lr(t[1],t[2],"==")):"<"===n||">"===n||"<="===n||">="===n?lr(t[1],t[2],n):"any"===n?(e=t.slice(1),["any"].concat(e.map(ur))):"all"===n?["all"].concat(t.slice(1).map(ur)):"none"===n?["all"].concat(t.slice(1).map(ur).map(fr)):"in"===n?cr(t[1],t.slice(2)):"!in"===n?fr(cr(t[1],t.slice(2))):"has"===n?hr(t[1]):"!has"===n?fr(hr(t[1])):"within"!==n||t}function lr(t,e,n){switch(t){case"$type":return["filter-type-"+n,e];case"$id":return["filter-id-"+n,e];default:return["filter-"+n,t,e]}}function cr(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((function(t){return typeof t!=typeof e[0]}))?["filter-in-large",t,["literal",e.sort(sr)]]:["filter-in-small",t,["literal",e]]}}function hr(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function fr(t){return["!",t]}function dr(t){return ir(Lt(t.value))?nr(kt({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function t(e){var n=e.value,r=e.key;if("array"!==Nn(n))return[new It(r,n,"array expected, "+Nn(n)+" found")];var i,o=e.styleSpec,a=[];if(n.length<1)return[new It(r,n,"filter array must have at least 1 element")];switch(a=a.concat(rr({key:r+"[0]",value:n[0],valueSpec:o.filter_operator,style:e.style,styleSpec:e.styleSpec})),Pt(n[0])){case"<":case"<=":case">":case">=":n.length>=2&&"$type"===Pt(n[1])&&a.push(new It(r,n,'"$type" cannot be use with operator "'+n[0]+'"'));case"==":case"!=":3!==n.length&&a.push(new It(r,n,'filter array for operator "'+n[0]+'" must have 3 elements'));case"in":case"!in":n.length>=2&&"string"!==(i=Nn(n[1]))&&a.push(new It(r+"[1]",n[1],"string expected, "+i+" found"));for(var s=2;s<n.length;s++)i=Nn(n[s]),"$type"===Pt(n[1])?a=a.concat(rr({key:r+"["+s+"]",value:n[s],valueSpec:o.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==i&&"number"!==i&&"boolean"!==i&&a.push(new It(r+"["+s+"]",n[s],"string, number, or boolean expected, "+i+" found"));break;case"any":case"all":case"none":for(var u=1;u<n.length;u++)a=a.concat(t({key:r+"["+u+"]",value:n[u],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":i=Nn(n[1]),2!==n.length?a.push(new It(r,n,'filter array for "'+n[0]+'" operator must have 2 elements')):"string"!==i&&a.push(new It(r+"[1]",n[1],"string expected, "+i+" found"));break;case"within":i=Nn(n[1]),2!==n.length?a.push(new It(r,n,'filter array for "'+n[0]+'" operator must have 2 elements')):"object"!==i&&a.push(new It(r+"[1]",n[1],"object expected, "+i+" found"))}return a}(t)}function pr(t,e){var n=t.key,r=t.style,i=t.styleSpec,o=t.value,a=t.objectKey,s=i[e+"_"+t.layerType];if(!s)return[];var u=a.match(/^(.*)-transition$/);if("paint"===e&&u&&s[u[1]]&&s[u[1]].transition)return Or({key:n,value:o,valueSpec:i.transition,style:r,styleSpec:i});var l,c=t.valueSpec||s[a];if(!c)return[new It(n,o,'unknown property "'+a+'"')];if("string"===Nn(o)&&Ln(c)&&!c.tokens&&(l=/^{([^}]+)}$/.exec(o)))return[new It(n,o,'"'+a+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(l[1])+" }`.")];var h=[];return"symbol"===t.layerType&&("text-field"===a&&r&&!r.glyphs&&h.push(new It(n,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&Bn(Lt(o))&&"identity"===Pt(o.type)&&h.push(new It(n,o,'"text-font" does not support identity functions'))),h.concat(Or({key:t.key,value:o,valueSpec:c,style:r,styleSpec:i,expressionContext:"property",propertyType:e,propertyKey:a}))}function gr(t){return pr(t,"paint")}function vr(t){return pr(t,"layout")}function mr(t){var e=[],n=t.value,r=t.key,i=t.style,o=t.styleSpec;n.type||n.ref||e.push(new It(r,n,'either "type" or "ref" is required'));var a,s=Pt(n.type),u=Pt(n.ref);if(n.id)for(var l=Pt(n.id),c=0;c<t.arrayIndex;c++){var h=i.layers[c];Pt(h.id)===l&&e.push(new It(r,n.id,'duplicate layer id "'+n.id+'", previously used at line '+h.id.__line__))}if("ref"in n)["type","source","source-layer","filter","layout"].forEach((function(t){t in n&&e.push(new It(r,n[t],'"'+t+'" is prohibited for ref layers'))})),i.layers.forEach((function(t){Pt(t.id)===u&&(a=t)})),a?a.ref?e.push(new It(r,n.ref,"ref cannot reference another ref layer")):s=Pt(a.type):e.push(new It(r,n.ref,'ref layer "'+u+'" not found'));else if("background"!==s)if(n.source){var f=i.sources&&i.sources[n.source],d=f&&Pt(f.type);f?"vector"===d&&"raster"===s?e.push(new It(r,n.source,'layer "'+n.id+'" requires a raster source')):"raster"===d&&"raster"!==s?e.push(new It(r,n.source,'layer "'+n.id+'" requires a vector source')):"vector"!==d||n["source-layer"]?"raster-dem"===d&&"hillshade"!==s?e.push(new It(r,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!n.paint||!n.paint["line-gradient"]||"geojson"===d&&f.lineMetrics||e.push(new It(r,n,'layer "'+n.id+'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new It(r,n,'layer "'+n.id+'" must specify a "source-layer"')):e.push(new It(r,n.source,'source "'+n.source+'" not found'))}else e.push(new It(r,n,'missing required property "source"'));return e=e.concat(Qn({key:r,value:n,valueSpec:o.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return Or({key:r+".type",value:n.type,valueSpec:o.layer.type,style:t.style,styleSpec:t.styleSpec,object:n,objectKey:"type"})},filter:dr,layout:function(t){return Qn({layer:n,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return vr(kt({layerType:s},t))}}})},paint:function(t){return Qn({layer:n,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return gr(kt({layerType:s},t))}}})}}}))}function yr(t){var e=t.value,n=t.key,r=Nn(e);return"string"!==r?[new It(n,e,"string expected, "+r+" found")]:[]}var br={promoteId:function(t){var e=t.key,n=t.value;if("string"===Nn(n))return yr({key:e,value:n});var r=[];for(var i in n)r.push.apply(r,yr({key:e+"."+i,value:n[i]}));return r}};function _r(t){var e=t.value,n=t.key,r=t.styleSpec,i=t.style;if(!e.type)return[new It(n,e,'"type" is required')];var o,a=Pt(e.type);switch(a){case"vector":case"raster":case"raster-dem":return Qn({key:n,value:e,valueSpec:r["source_"+a.replace("-","_")],style:t.style,styleSpec:r,objectElementValidators:br});case"geojson":if(o=Qn({key:n,value:e,valueSpec:r.source_geojson,style:i,styleSpec:r,objectElementValidators:br}),e.cluster)for(var s in e.clusterProperties){var u=e.clusterProperties[s],l=u[0],c="string"==typeof l?[l,["accumulated"],["get",s]]:l;o.push.apply(o,nr({key:n+"."+s+".map",value:u[1],expressionContext:"cluster-map"})),o.push.apply(o,nr({key:n+"."+s+".reduce",value:c,expressionContext:"cluster-reduce"}))}return o;case"video":return Qn({key:n,value:e,valueSpec:r.source_video,style:i,styleSpec:r});case"image":return Qn({key:n,value:e,valueSpec:r.source_image,style:i,styleSpec:r});case"canvas":return[new It(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return rr({key:n+".type",value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:i,styleSpec:r})}}function xr(t){var e=t.value,n=t.styleSpec,r=n.light,i=t.style,o=[],a=Nn(e);if(void 0===e)return o;if("object"!==a)return o.concat([new It("light",e,"object expected, "+a+" found")]);for(var s in e){var u=s.match(/^(.*)-transition$/);o=o.concat(u&&r[u[1]]&&r[u[1]].transition?Or({key:s,value:e[s],valueSpec:n.transition,style:i,styleSpec:n}):r[s]?Or({key:s,value:e[s],valueSpec:r[s],style:i,styleSpec:n}):[new It(s,e[s],'unknown property "'+s+'"')])}return o}var wr={"*":function(){return[]},array:Jn,boolean:function(t){var e=t.value,n=t.key,r=Nn(e);return"boolean"!==r?[new It(n,e,"boolean expected, "+r+" found")]:[]},number:tr,color:function(t){var e=t.key,n=t.value,r=Nn(n);return"string"!==r?[new It(e,n,"color expected, "+r+" found")]:null===Jt(n)?[new It(e,n,'color expected, "'+n+'" found')]:[]},constants:jt,enum:rr,filter:dr,function:er,layer:mr,object:Qn,source:_r,light:xr,string:yr,formatted:function(t){return 0===yr(t).length?[]:nr(t)},resolvedImage:function(t){return 0===yr(t).length?[]:nr(t)}};function Or(t){var e=t.value,n=t.valueSpec,r=t.styleSpec;return n.expression&&Bn(Pt(e))?er(t):n.expression&&Yn(Lt(e))?nr(t):n.type&&wr[n.type]?wr[n.type](t):Qn(kt({},t,{valueSpec:n.type?r[n.type]:n}))}function Sr(t){var e=t.value,n=t.key,r=yr(t);return r.length||(-1===e.indexOf("{fontstack}")&&r.push(new It(n,e,'"glyphs" url must include a "{fontstack}" token')),-1===e.indexOf("{range}")&&r.push(new It(n,e,'"glyphs" url must include a "{range}" token'))),r}function Cr(t,e){void 0===e&&(e=Mt);var n=[];return n=n.concat(Or({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:Sr,"*":function(){return[]}}})),t.constants&&(n=n.concat(jt({key:"constants",value:t.constants,style:t,styleSpec:e}))),Er(n)}function Er(t){return[].concat(t).sort((function(t,e){return t.line-e.line}))}function Tr(t){return function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return Er(t.apply(this,e))}}Cr.source=Tr(_r),Cr.light=Tr(xr),Cr.layer=Tr(mr),Cr.filter=Tr(dr),Cr.paintProperty=Tr(gr),Cr.layoutProperty=Tr(vr);var Ar=Cr,Mr=Ar.light,Ir=Ar.paintProperty,jr=Ar.layoutProperty;function kr(t,e){var n=!1;if(e&&e.length)for(var r=0,i=e;r<i.length;r+=1)t.fire(new Tt(new Error(i[r].message))),n=!0;return n}var Pr=Lr;function Lr(t,e,n){var r=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var i=new Int32Array(this.arrayBuffer);t=i[0],this.d=(e=i[1])+2*(n=i[2]);for(var o=0;o<this.d*this.d;o++){var a=i[3+o],s=i[3+o+1];r.push(a===s?null:i.subarray(a,s))}var u=i[3+r.length+1];this.keys=i.subarray(i[3+r.length],u),this.bboxes=i.subarray(u),this.insert=this._insertReadonly}else{this.d=e+2*n;for(var l=0;l<this.d*this.d;l++)r.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=n,this.scale=e/t,this.uid=0;var c=n/e*t;this.min=-c,this.max=t+c}Lr.prototype.insert=function(t,e,n,r,i){this._forEachCell(e,n,r,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i)},Lr.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},Lr.prototype._insertCell=function(t,e,n,r,i,o){this.cells[i].push(o)},Lr.prototype.query=function(t,e,n,r,i){var o=this.min,a=this.max;if(t<=o&&e<=o&&a<=n&&a<=r&&!i)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(t,e,n,r,this._queryCell,s,{},i),s},Lr.prototype._queryCell=function(t,e,n,r,i,o,a,s){var u=this.cells[i];if(null!==u)for(var l=this.keys,c=this.bboxes,h=0;h<u.length;h++){var f=u[h];if(void 0===a[f]){var d=4*f;(s?s(c[d+0],c[d+1],c[d+2],c[d+3]):t<=c[d+2]&&e<=c[d+3]&&n>=c[d+0]&&r>=c[d+1])?(a[f]=!0,o.push(l[f])):a[f]=!1}}},Lr.prototype._forEachCell=function(t,e,n,r,i,o,a,s){for(var u=this._convertToCellCoord(t),l=this._convertToCellCoord(e),c=this._convertToCellCoord(n),h=this._convertToCellCoord(r),f=u;f<=c;f++)for(var d=l;d<=h;d++){var p=this.d*d+f;if((!s||s(this._convertFromCellCoord(f),this._convertFromCellCoord(d),this._convertFromCellCoord(f+1),this._convertFromCellCoord(d+1)))&&i.call(this,t,e,n,r,p,o,a,s))return}},Lr.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},Lr.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},Lr.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,n=0,r=0;r<this.cells.length;r++)n+=this.cells[r].length;var i=new Int32Array(e+n+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var o=e,a=0;a<t.length;a++){var s=t[a];i[3+a]=o,i.set(s,o),o+=s.length}return i[3+t.length]=o,i.set(this.keys,o),i[3+t.length+1]=o+=this.keys.length,i.set(this.bboxes,o),o+=this.bboxes.length,i.buffer};var Rr=a.ImageData,Dr=a.ImageBitmap,Nr={};function Br(t,e,n){void 0===n&&(n={}),Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),Nr[t]={klass:e,omit:n.omit||[],shallow:n.shallow||[]}}for(var Fr in Br("Object",Object),Pr.serialize=function(t,e){var n=t.toArrayBuffer();return e&&e.push(n),{buffer:n}},Pr.deserialize=function(t){return new Pr(t.buffer)},Br("Grid",Pr),Br("Color",te),Br("Error",Error),Br("ResolvedImage",ie),Br("StylePropertyFunction",Kn),Br("StyleExpression",Wn,{omit:["_evaluator"]}),Br("ZoomDependentExpression",qn),Br("ZoomConstantExpression",$n),Br("CompoundExpression",be,{omit:["_evaluate"]}),Tn)Tn[Fr]._classRegistryKey||Br("Expression_"+Fr,Tn[Fr]);function zr(t){return t&&"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}function Vr(t){return Dr&&t instanceof Dr}function Ur(t,e){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(zr(t)||Vr(t))return e&&e.push(t),t;if(ArrayBuffer.isView(t)){var n=t;return e&&e.push(n.buffer),n}if(t instanceof Rr)return e&&e.push(t.data.buffer),t;if(Array.isArray(t)){for(var r=[],i=0,o=t;i<o.length;i+=1)r.push(Ur(o[i],e));return r}if("object"==typeof t){var a=t.constructor,s=a._classRegistryKey;if(!s)throw new Error("can't serialize object of unregistered class");var u=a.serialize?a.serialize(t,e):{};if(!a.serialize){for(var l in t)if(t.hasOwnProperty(l)&&!(Nr[s].omit.indexOf(l)>=0)){var c=t[l];u[l]=Nr[s].shallow.indexOf(l)>=0?c:Ur(c,e)}t instanceof Error&&(u.message=t.message)}if(u.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==s&&(u.$name=s),u}throw new Error("can't serialize object of type "+typeof t)}function Gr(t){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||zr(t)||Vr(t)||ArrayBuffer.isView(t)||t instanceof Rr)return t;if(Array.isArray(t))return t.map(Gr);if("object"==typeof t){var e=t.$name||"Object",n=Nr[e].klass;if(!n)throw new Error("can't deserialize unregistered class "+e);if(n.deserialize)return n.deserialize(t);for(var r=Object.create(n.prototype),i=0,o=Object.keys(t);i<o.length;i+=1){var a=o[i];if("$name"!==a){var s=t[a];r[a]=Nr[e].shallow.indexOf(a)>=0?s:Gr(s)}}return r}throw new Error("can't deserialize object of type "+typeof t)}var Hr=function(){this.first=!0};Hr.prototype.update=function(t,e){var n=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=e):this.lastFloorZoom<n&&(this.lastIntegerZoom=n,this.lastIntegerZoomTime=e),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=n,!0))};var Wr={"Latin-1 Supplement":function(t){return t>=128&&t<=255},Arabic:function(t){return t>=1536&&t<=1791},"Arabic Supplement":function(t){return t>=1872&&t<=1919},"Arabic Extended-A":function(t){return t>=2208&&t<=2303},"Hangul Jamo":function(t){return t>=4352&&t<=4607},"Unified Canadian Aboriginal Syllabics":function(t){return t>=5120&&t<=5759},Khmer:function(t){return t>=6016&&t<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(t){return t>=6320&&t<=6399},"General Punctuation":function(t){return t>=8192&&t<=8303},"Letterlike Symbols":function(t){return t>=8448&&t<=8527},"Number Forms":function(t){return t>=8528&&t<=8591},"Miscellaneous Technical":function(t){return t>=8960&&t<=9215},"Control Pictures":function(t){return t>=9216&&t<=9279},"Optical Character Recognition":function(t){return t>=9280&&t<=9311},"Enclosed Alphanumerics":function(t){return t>=9312&&t<=9471},"Geometric Shapes":function(t){return t>=9632&&t<=9727},"Miscellaneous Symbols":function(t){return t>=9728&&t<=9983},"Miscellaneous Symbols and Arrows":function(t){return t>=11008&&t<=11263},"CJK Radicals Supplement":function(t){return t>=11904&&t<=12031},"Kangxi Radicals":function(t){return t>=12032&&t<=12255},"Ideographic Description Characters":function(t){return t>=12272&&t<=12287},"CJK Symbols and Punctuation":function(t){return t>=12288&&t<=12351},Hiragana:function(t){return t>=12352&&t<=12447},Katakana:function(t){return t>=12448&&t<=12543},Bopomofo:function(t){return t>=12544&&t<=12591},"Hangul Compatibility Jamo":function(t){return t>=12592&&t<=12687},Kanbun:function(t){return t>=12688&&t<=12703},"Bopomofo Extended":function(t){return t>=12704&&t<=12735},"CJK Strokes":function(t){return t>=12736&&t<=12783},"Katakana Phonetic Extensions":function(t){return t>=12784&&t<=12799},"Enclosed CJK Letters and Months":function(t){return t>=12800&&t<=13055},"CJK Compatibility":function(t){return t>=13056&&t<=13311},"CJK Unified Ideographs Extension A":function(t){return t>=13312&&t<=19903},"Yijing Hexagram Symbols":function(t){return t>=19904&&t<=19967},"CJK Unified Ideographs":function(t){return t>=19968&&t<=40959},"Yi Syllables":function(t){return t>=40960&&t<=42127},"Yi Radicals":function(t){return t>=42128&&t<=42191},"Hangul Jamo Extended-A":function(t){return t>=43360&&t<=43391},"Hangul Syllables":function(t){return t>=44032&&t<=55215},"Hangul Jamo Extended-B":function(t){return t>=55216&&t<=55295},"Private Use Area":function(t){return t>=57344&&t<=63743},"CJK Compatibility Ideographs":function(t){return t>=63744&&t<=64255},"Arabic Presentation Forms-A":function(t){return t>=64336&&t<=65023},"Vertical Forms":function(t){return t>=65040&&t<=65055},"CJK Compatibility Forms":function(t){return t>=65072&&t<=65103},"Small Form Variants":function(t){return t>=65104&&t<=65135},"Arabic Presentation Forms-B":function(t){return t>=65136&&t<=65279},"Halfwidth and Fullwidth Forms":function(t){return t>=65280&&t<=65519}};function Yr(t){for(var e=0,n=t;e<n.length;e+=1)if(Xr(n[e].charCodeAt(0)))return!0;return!1}function Xr(t){return!(746!==t&&747!==t&&(t<4352||!(Wr["Bopomofo Extended"](t)||Wr.Bopomofo(t)||Wr["CJK Compatibility Forms"](t)&&!(t>=65097&&t<=65103)||Wr["CJK Compatibility Ideographs"](t)||Wr["CJK Compatibility"](t)||Wr["CJK Radicals Supplement"](t)||Wr["CJK Strokes"](t)||!(!Wr["CJK Symbols and Punctuation"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||Wr["CJK Unified Ideographs Extension A"](t)||Wr["CJK Unified Ideographs"](t)||Wr["Enclosed CJK Letters and Months"](t)||Wr["Hangul Compatibility Jamo"](t)||Wr["Hangul Jamo Extended-A"](t)||Wr["Hangul Jamo Extended-B"](t)||Wr["Hangul Jamo"](t)||Wr["Hangul Syllables"](t)||Wr.Hiragana(t)||Wr["Ideographic Description Characters"](t)||Wr.Kanbun(t)||Wr["Kangxi Radicals"](t)||Wr["Katakana Phonetic Extensions"](t)||Wr.Katakana(t)&&12540!==t||!(!Wr["Halfwidth and Fullwidth Forms"](t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||!(!Wr["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||Wr["Unified Canadian Aboriginal Syllabics"](t)||Wr["Unified Canadian Aboriginal Syllabics Extended"](t)||Wr["Vertical Forms"](t)||Wr["Yijing Hexagram Symbols"](t)||Wr["Yi Syllables"](t)||Wr["Yi Radicals"](t))))}function $r(t){return!(Xr(t)||function(t){return!!(Wr["Latin-1 Supplement"](t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||Wr["General Punctuation"](t)&&(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||Wr["Letterlike Symbols"](t)||Wr["Number Forms"](t)||Wr["Miscellaneous Technical"](t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215)||Wr["Control Pictures"](t)&&9251!==t||Wr["Optical Character Recognition"](t)||Wr["Enclosed Alphanumerics"](t)||Wr["Geometric Shapes"](t)||Wr["Miscellaneous Symbols"](t)&&!(t>=9754&&t<=9759)||Wr["Miscellaneous Symbols and Arrows"](t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||Wr["CJK Symbols and Punctuation"](t)||Wr.Katakana(t)||Wr["Private Use Area"](t)||Wr["CJK Compatibility Forms"](t)||Wr["Small Form Variants"](t)||Wr["Halfwidth and Fullwidth Forms"](t)||8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t)}(t))}function qr(t){return t>=1424&&t<=2303||Wr["Arabic Presentation Forms-A"](t)||Wr["Arabic Presentation Forms-B"](t)}function Zr(t,e){return!(!e&&qr(t)||t>=2304&&t<=3583||t>=3840&&t<=4255||Wr.Khmer(t))}function Kr(t){for(var e=0,n=t;e<n.length;e+=1)if(qr(n[e].charCodeAt(0)))return!0;return!1}var Qr=null,Jr="unavailable",ti=null,ei=function(t){t&&"string"==typeof t&&t.indexOf("NetworkError")>-1&&(Jr="error"),Qr&&Qr(t)};function ni(){ri.fire(new Et("pluginStateChange",{pluginStatus:Jr,pluginURL:ti}))}var ri=new At,ii=function(){return Jr},oi=function(){if("deferred"!==Jr||!ti)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Jr="loading",ni(),ti&&_t({url:ti},(function(t){t?ei(t):(Jr="loaded",ni())}))},ai={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return"loaded"===Jr||null!=ai.applyArabicShaping},isLoading:function(){return"loading"===Jr},setState:function(t){Jr=t.pluginStatus,ti=t.pluginURL},isParsed:function(){return null!=ai.applyArabicShaping&&null!=ai.processBidirectionalText&&null!=ai.processStyledBidirectionalText},getPluginURL:function(){return ti}},si=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Hr,this.transition={})};si.prototype.isSupportedScript=function(t){return function(t,e){for(var n=0,r=t;n<r.length;n+=1)if(!Zr(r[n].charCodeAt(0),e))return!1;return!0}(t,ai.isLoaded())},si.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},si.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),n=this.crossFadingFactor();return t>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*e}};var ui=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Bn(t))return new Kn(t,e);if(Yn(t)){var n=Zn(t,e);if("error"===n.result)throw new Error(n.value.map((function(t){return t.key+": "+t.message})).join(", "));return n.value}var r=t;return"string"==typeof t&&"color"===e.type&&(r=te.parse(t)),{kind:"constant",evaluate:function(){return r}}}(void 0===e?t.specification.default:e,t.specification)};ui.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},ui.prototype.possiblyEvaluate=function(t,e,n){return this.property.possiblyEvaluate(this,t,e,n)};var li=function(t){this.property=t,this.value=new ui(t,void 0)};li.prototype.transitioned=function(t,e){return new hi(this.property,this.value,e,f({},t.transition,this.transition),t.now)},li.prototype.untransitioned=function(){return new hi(this.property,this.value,null,{},0)};var ci=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};ci.prototype.getValue=function(t){return x(this._values[t].value.value)},ci.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new li(this._values[t].property)),this._values[t].value=new ui(this._values[t].property,null===e?void 0:x(e))},ci.prototype.getTransition=function(t){return x(this._values[t].transition)},ci.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new li(this._values[t].property)),this._values[t].transition=x(e)||void 0},ci.prototype.serialize=function(){for(var t={},e=0,n=Object.keys(this._values);e<n.length;e+=1){var r=n[e],i=this.getValue(r);void 0!==i&&(t[r]=i);var o=this.getTransition(r);void 0!==o&&(t[r+"-transition"]=o)}return t},ci.prototype.transitioned=function(t,e){for(var n=new fi(this._properties),r=0,i=Object.keys(this._values);r<i.length;r+=1){var o=i[r];n._values[o]=this._values[o].transitioned(t,e._values[o])}return n},ci.prototype.untransitioned=function(){for(var t=new fi(this._properties),e=0,n=Object.keys(this._values);e<n.length;e+=1){var r=n[e];t._values[r]=this._values[r].untransitioned()}return t};var hi=function(t,e,n,r,i){this.property=t,this.value=e,this.begin=i+r.delay||0,this.end=this.begin+r.duration||0,t.specification.transition&&(r.delay||r.duration)&&(this.prior=n)};hi.prototype.possiblyEvaluate=function(t,e,n){var r=t.now||0,i=this.value.possiblyEvaluate(t,e,n),o=this.prior;if(o){if(r>this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(r<this.begin)return o.possiblyEvaluate(t,e,n);var a=(r-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(t,e,n),i,function(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}(a))}return i};var fi=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};fi.prototype.possiblyEvaluate=function(t,e,n){for(var r=new gi(this._properties),i=0,o=Object.keys(this._values);i<o.length;i+=1){var a=o[i];r._values[a]=this._values[a].possiblyEvaluate(t,e,n)}return r},fi.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t<e.length;t+=1)if(this._values[e[t]].prior)return!0;return!1};var di=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};di.prototype.getValue=function(t){return x(this._values[t].value)},di.prototype.setValue=function(t,e){this._values[t]=new ui(this._values[t].property,null===e?void 0:x(e))},di.prototype.serialize=function(){for(var t={},e=0,n=Object.keys(this._values);e<n.length;e+=1){var r=n[e],i=this.getValue(r);void 0!==i&&(t[r]=i)}return t},di.prototype.possiblyEvaluate=function(t,e,n){for(var r=new gi(this._properties),i=0,o=Object.keys(this._values);i<o.length;i+=1){var a=o[i];r._values[a]=this._values[a].possiblyEvaluate(t,e,n)}return r};var pi=function(t,e,n){this.property=t,this.value=e,this.parameters=n};pi.prototype.isConstant=function(){return"constant"===this.value.kind},pi.prototype.constantOr=function(t){return"constant"===this.value.kind?this.value.value:t},pi.prototype.evaluate=function(t,e,n,r){return this.property.evaluate(this.value,this.parameters,t,e,n,r)};var gi=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};gi.prototype.get=function(t){return this._values[t]};var vi=function(t){this.specification=t};vi.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},vi.prototype.interpolate=function(t,e,n){var r=We[this.specification.type];return r?r(t,e,n):t};var mi=function(t,e){this.specification=t,this.overrides=e};mi.prototype.possiblyEvaluate=function(t,e,n,r){return new pi(this,"constant"===t.expression.kind||"camera"===t.expression.kind?{kind:"constant",value:t.expression.evaluate(e,null,{},n,r)}:t.expression,e)},mi.prototype.interpolate=function(t,e,n){if("constant"!==t.value.kind||"constant"!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new pi(this,{kind:"constant",value:void 0},t.parameters);var r=We[this.specification.type];return r?new pi(this,{kind:"constant",value:r(t.value.value,e.value.value,n)},t.parameters):t},mi.prototype.evaluate=function(t,e,n,r,i,o){return"constant"===t.kind?t.value:t.evaluate(e,n,r,i,o)};var yi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(t,e,n,r){if(void 0===t.value)return new pi(this,{kind:"constant",value:void 0},e);if("constant"===t.expression.kind){var i=t.expression.evaluate(e,null,{},n,r),o="resolvedImage"===t.property.specification.type&&"string"!=typeof i?i.name:i,a=this._calculate(o,o,o,e);return new pi(this,{kind:"constant",value:a},e)}if("camera"===t.expression.kind){var s=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new pi(this,{kind:"constant",value:s},e)}return new pi(this,t.expression,e)},e.prototype.evaluate=function(t,e,n,r,i,o){if("source"===t.kind){var a=t.evaluate(e,n,r,i,o);return this._calculate(a,a,a,e)}return"composite"===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},n,r),t.evaluate({zoom:Math.floor(e.zoom)},n,r),t.evaluate({zoom:Math.floor(e.zoom)+1},n,r),e):t.value},e.prototype._calculate=function(t,e,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:n,to:e}},e.prototype.interpolate=function(t){return t},e}(mi),bi=function(t){this.specification=t};bi.prototype.possiblyEvaluate=function(t,e,n,r){if(void 0!==t.value){if("constant"===t.expression.kind){var i=t.expression.evaluate(e,null,{},n,r);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new si(Math.floor(e.zoom-1),e)),t.expression.evaluate(new si(Math.floor(e.zoom),e)),t.expression.evaluate(new si(Math.floor(e.zoom+1),e)),e)}},bi.prototype._calculate=function(t,e,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:n,to:e}},bi.prototype.interpolate=function(t){return t};var _i=function(t){this.specification=t};_i.prototype.possiblyEvaluate=function(t,e,n,r){return!!t.expression.evaluate(e,null,{},n,r)},_i.prototype.interpolate=function(){return!1};var xi=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var n=t[e];n.specification.overridable&&this.overridableProperties.push(e);var r=this.defaultPropertyValues[e]=new ui(n,void 0),i=this.defaultTransitionablePropertyValues[e]=new li(n);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=r.possiblyEvaluate({})}};Br("DataDrivenProperty",mi),Br("DataConstantProperty",vi),Br("CrossFadedDataDrivenProperty",yi),Br("CrossFadedProperty",bi),Br("ColorRampProperty",_i);var wi=function(t){function e(e,n){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},"custom"!==e.type&&(this.metadata=(e=e).metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),n.layout&&(this._unevaluatedLayout=new di(n.layout)),n.paint)){for(var r in this._transitionablePaint=new ci(n.paint),e.paint)this.setPaintProperty(r,e.paint[r],{validate:!1});for(var i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new gi(n.paint)}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,n){void 0===n&&(n={}),null!=e&&this._validate(jr,"layers."+this.id+".layout."+t,t,e,n)||("visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e)},e.prototype.getPaintProperty=function(t){return y(t,"-transition")?this._transitionablePaint.getTransition(t.slice(0,-"-transition".length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,n){if(void 0===n&&(n={}),null!=e&&this._validate(Ir,"layers."+this.id+".paint."+t,t,e,n))return!1;if(y(t,"-transition"))return this._transitionablePaint.setTransition(t.slice(0,-"-transition".length),e||void 0),!1;var r=this._transitionablePaint._values[t],i="cross-faded-data-driven"===r.property.specification["property-type"],o=r.value.isDataDriven(),a=r.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var s=this._transitionablePaint._values[t].value;return s.isDataDriven()||o||i||this._handleOverridablePaintPropertyUpdate(t,a,s)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,n){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&&t<this.minzoom)||!!(this.maxzoom&&t>=this.maxzoom)||"none"===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(t.layout=t.layout||{},t.layout.visibility=this.visibility),_(t,(function(t,e){return!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length)}))},e.prototype._validate=function(t,e,n,r,i){return void 0===i&&(i={}),(!i||!1!==i.validate)&&kr(this,t.call(Ar,{key:e,layerType:this.type,objectKey:n,value:r,styleSpec:Mt,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof pi&&Ln(e.property.specification)&&("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent)return!0}return!1},e}(At),Oi={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Si=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Ci=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Ei(t,e){void 0===e&&(e=1);var n=0,r=0;return{members:t.map((function(t){var i=Oi[t.type].BYTES_PER_ELEMENT,o=n=Ti(n,Math.max(e,i)),a=t.components||1;return r=Math.max(r,i),n+=i*a,{name:t.name,type:t.type,components:a,offset:o}})),size:Ti(n,Math.max(r,e)),alignment:e}}function Ti(t,e){return Math.ceil(t/e)*e}Ci.serialize=function(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},Ci.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},Ci.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Ci.prototype.clear=function(){this.length=0},Ci.prototype.resize=function(t){this.reserve(t),this.length=t},Ci.prototype.reserve=function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}},Ci.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Ai=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var n=this.length;return this.resize(n+1),this.emplace(n,t,e)},e.prototype.emplace=function(t,e,n){var r=2*t;return this.int16[r+0]=e,this.int16[r+1]=n,t},e}(Ci);Ai.prototype.bytesPerElement=4,Br("StructArrayLayout2i4",Ai);var Mi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,n,r)},e.prototype.emplace=function(t,e,n,r,i){var o=4*t;return this.int16[o+0]=e,this.int16[o+1]=n,this.int16[o+2]=r,this.int16[o+3]=i,t},e}(Ci);Mi.prototype.bytesPerElement=8,Br("StructArrayLayout4i8",Mi);var Ii=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,r,i,o)},e.prototype.emplace=function(t,e,n,r,i,o,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=i,this.int16[s+4]=o,this.int16[s+5]=a,t},e}(Ci);Ii.prototype.bytesPerElement=12,Br("StructArrayLayout2i4i12",Ii);var ji=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,r,i,o)},e.prototype.emplace=function(t,e,n,r,i,o,a){var s=4*t,u=8*t;return this.int16[s+0]=e,this.int16[s+1]=n,this.uint8[u+4]=r,this.uint8[u+5]=i,this.uint8[u+6]=o,this.uint8[u+7]=a,t},e}(Ci);ji.prototype.bytesPerElement=8,Br("StructArrayLayout2i4ub8",ji);var ki=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var n=this.length;return this.resize(n+1),this.emplace(n,t,e)},e.prototype.emplace=function(t,e,n){var r=2*t;return this.float32[r+0]=e,this.float32[r+1]=n,t},e}(Ci);ki.prototype.bytesPerElement=8,Br("StructArrayLayout2f8",ki);var Pi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o,a,s,u,l){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,n,r,i,o,a,s,u,l)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,u,l,c){var h=10*t;return this.uint16[h+0]=e,this.uint16[h+1]=n,this.uint16[h+2]=r,this.uint16[h+3]=i,this.uint16[h+4]=o,this.uint16[h+5]=a,this.uint16[h+6]=s,this.uint16[h+7]=u,this.uint16[h+8]=l,this.uint16[h+9]=c,t},e}(Ci);Pi.prototype.bytesPerElement=20,Br("StructArrayLayout10ui20",Pi);var Li=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o,a,s,u,l,c,h){var f=this.length;return this.resize(f+1),this.emplace(f,t,e,n,r,i,o,a,s,u,l,c,h)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,u,l,c,h,f){var d=12*t;return this.int16[d+0]=e,this.int16[d+1]=n,this.int16[d+2]=r,this.int16[d+3]=i,this.uint16[d+4]=o,this.uint16[d+5]=a,this.uint16[d+6]=s,this.uint16[d+7]=u,this.int16[d+8]=l,this.int16[d+9]=c,this.int16[d+10]=h,this.int16[d+11]=f,t},e}(Ci);Li.prototype.bytesPerElement=24,Br("StructArrayLayout4i4ui4i24",Li);var Ri=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)},e.prototype.emplace=function(t,e,n,r){var i=3*t;return this.float32[i+0]=e,this.float32[i+1]=n,this.float32[i+2]=r,t},e}(Ci);Ri.prototype.bytesPerElement=12,Br("StructArrayLayout3f12",Ri);var Di=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint32[1*t+0]=e,t},e}(Ci);Di.prototype.bytesPerElement=4,Br("StructArrayLayout1ul4",Di);var Ni=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o,a,s,u){var l=this.length;return this.resize(l+1),this.emplace(l,t,e,n,r,i,o,a,s,u)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,u,l){var c=10*t,h=5*t;return this.int16[c+0]=e,this.int16[c+1]=n,this.int16[c+2]=r,this.int16[c+3]=i,this.int16[c+4]=o,this.int16[c+5]=a,this.uint32[h+3]=s,this.uint16[c+8]=u,this.uint16[c+9]=l,t},e}(Ci);Ni.prototype.bytesPerElement=20,Br("StructArrayLayout6i1ul2ui20",Ni);var Bi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,r,i,o)},e.prototype.emplace=function(t,e,n,r,i,o,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=i,this.int16[s+4]=o,this.int16[s+5]=a,t},e}(Ci);Bi.prototype.bytesPerElement=12,Br("StructArrayLayout2i2i2i12",Bi);var Fi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,n,r,i)},e.prototype.emplace=function(t,e,n,r,i,o){var a=4*t,s=8*t;return this.float32[a+0]=e,this.float32[a+1]=n,this.float32[a+2]=r,this.int16[s+6]=i,this.int16[s+7]=o,t},e}(Ci);Fi.prototype.bytesPerElement=16,Br("StructArrayLayout2f1f2i16",Fi);var zi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,n,r)},e.prototype.emplace=function(t,e,n,r,i){var o=12*t,a=3*t;return this.uint8[o+0]=e,this.uint8[o+1]=n,this.float32[a+1]=r,this.float32[a+2]=i,t},e}(Ci);zi.prototype.bytesPerElement=12,Br("StructArrayLayout2ub2f12",zi);var Vi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)},e.prototype.emplace=function(t,e,n,r){var i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=n,this.uint16[i+2]=r,t},e}(Ci);Vi.prototype.bytesPerElement=6,Br("StructArrayLayout3ui6",Vi);var Ui=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,v){var m=this.length;return this.resize(m+1),this.emplace(m,t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,v)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,v,m){var y=24*t,b=12*t,_=48*t;return this.int16[y+0]=e,this.int16[y+1]=n,this.uint16[y+2]=r,this.uint16[y+3]=i,this.uint32[b+2]=o,this.uint32[b+3]=a,this.uint32[b+4]=s,this.uint16[y+10]=u,this.uint16[y+11]=l,this.uint16[y+12]=c,this.float32[b+7]=h,this.float32[b+8]=f,this.uint8[_+36]=d,this.uint8[_+37]=p,this.uint8[_+38]=g,this.uint32[b+10]=v,this.int16[y+22]=m,t},e}(Ci);Ui.prototype.bytesPerElement=48,Br("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Ui);var Gi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,v,m,y,b,_,x,w,O,S,C,E,T){var A=this.length;return this.resize(A+1),this.emplace(A,t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,v,m,y,b,_,x,w,O,S,C,E,T)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,v,m,y,b,_,x,w,O,S,C,E,T,A){var M=34*t,I=17*t;return this.int16[M+0]=e,this.int16[M+1]=n,this.int16[M+2]=r,this.int16[M+3]=i,this.int16[M+4]=o,this.int16[M+5]=a,this.int16[M+6]=s,this.int16[M+7]=u,this.uint16[M+8]=l,this.uint16[M+9]=c,this.uint16[M+10]=h,this.uint16[M+11]=f,this.uint16[M+12]=d,this.uint16[M+13]=p,this.uint16[M+14]=g,this.uint16[M+15]=v,this.uint16[M+16]=m,this.uint16[M+17]=y,this.uint16[M+18]=b,this.uint16[M+19]=_,this.uint16[M+20]=x,this.uint16[M+21]=w,this.uint16[M+22]=O,this.uint32[I+12]=S,this.float32[I+13]=C,this.float32[I+14]=E,this.float32[I+15]=T,this.float32[I+16]=A,t},e}(Ci);Gi.prototype.bytesPerElement=68,Br("StructArrayLayout8i15ui1ul4f68",Gi);var Hi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.float32[1*t+0]=e,t},e}(Ci);Hi.prototype.bytesPerElement=4,Br("StructArrayLayout1f4",Hi);var Wi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)},e.prototype.emplace=function(t,e,n,r){var i=3*t;return this.int16[i+0]=e,this.int16[i+1]=n,this.int16[i+2]=r,t},e}(Ci);Wi.prototype.bytesPerElement=6,Br("StructArrayLayout3i6",Wi);var Yi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)},e.prototype.emplace=function(t,e,n,r){var i=4*t;return this.uint32[2*t+0]=e,this.uint16[i+2]=n,this.uint16[i+3]=r,t},e}(Ci);Yi.prototype.bytesPerElement=8,Br("StructArrayLayout1ul2ui8",Yi);var Xi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var n=this.length;return this.resize(n+1),this.emplace(n,t,e)},e.prototype.emplace=function(t,e,n){var r=2*t;return this.uint16[r+0]=e,this.uint16[r+1]=n,t},e}(Ci);Xi.prototype.bytesPerElement=4,Br("StructArrayLayout2ui4",Xi);var $i=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint16[1*t+0]=e,t},e}(Ci);$i.prototype.bytesPerElement=2,Br("StructArrayLayout1ui2",$i);var qi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,n,r)},e.prototype.emplace=function(t,e,n,r,i){var o=4*t;return this.float32[o+0]=e,this.float32[o+1]=n,this.float32[o+2]=r,this.float32[o+3]=i,t},e}(Ci);qi.prototype.bytesPerElement=16,Br("StructArrayLayout4f16",qi);var Zi=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return n.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},n.x1.get=function(){return this._structArray.int16[this._pos2+2]},n.y1.get=function(){return this._structArray.int16[this._pos2+3]},n.x2.get=function(){return this._structArray.int16[this._pos2+4]},n.y2.get=function(){return this._structArray.int16[this._pos2+5]},n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.anchorPoint.get=function(){return new i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,n),e}(Si);Zi.prototype.size=20;var Ki=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new Zi(this,t)},e}(Ni);Br("CollisionBoxArray",Ki);var Qi=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},n.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},n.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},n.segment.get=function(){return this._structArray.uint16[this._pos2+10]},n.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},n.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},n.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},n.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},n.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},n.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},n.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},n.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},n.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},n.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},n.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,n),e}(Si);Qi.prototype.size=48;var Ji=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new Qi(this,t)},e}(Ui);Br("PlacedSymbolArray",Ji);var to=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},n.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},n.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},n.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},n.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},n.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},n.key.get=function(){return this._structArray.uint16[this._pos2+8]},n.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},n.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},n.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},n.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},n.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},n.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},n.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},n.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},n.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},n.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},n.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},n.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},n.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},n.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},n.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},n.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},n.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},n.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,n),e}(Si);to.prototype.size=68;var eo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new to(this,t)},e}(Gi);Br("SymbolInstanceArray",eo);var no=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(Hi);Br("GlyphOffsetArray",no);var ro=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}(Wi);Br("SymbolLineVertexArray",ro);var io=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,n),e}(Si);io.prototype.size=8;var oo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new io(this,t)},e}(Yi);Br("FeatureIndexArray",oo);var ao=Ei([{name:"a_pos",components:2,type:"Int16"}],4).members,so=function(t){void 0===t&&(t=[]),this.segments=t};function uo(t,e){return 256*(t=c(Math.floor(t),0,255))+c(Math.floor(e),0,255)}so.prototype.prepareSegment=function(t,e,n,r){var i=this.segments[this.segments.length-1];return t>so.MAX_VERTEX_ARRAY_LENGTH&&O("Max vertices per segment is "+so.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+t),(!i||i.vertexLength+t>so.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==r)&&(i={vertexOffset:e.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==r&&(i.sortKey=r),this.segments.push(i)),i},so.prototype.get=function(){return this.segments},so.prototype.destroy=function(){for(var t=0,e=this.segments;t<e.length;t+=1){var n=e[t];for(var r in n.vaos)n.vaos[r].destroy()}},so.simpleSegment=function(t,e,n,r){return new so([{vertexOffset:t,primitiveOffset:e,vertexLength:n,primitiveLength:r,vaos:{},sortKey:0}])},so.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Br("SegmentVector",so);var lo=Ei([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),co=e((function(t){t.exports=function(t,e){var n,r,i,o,a,s,u,l;for(r=t.length-(n=3&t.length),i=e,a=3432918353,s=461845907,l=0;l<r;)u=255&t.charCodeAt(l)|(255&t.charCodeAt(++l))<<8|(255&t.charCodeAt(++l))<<16|(255&t.charCodeAt(++l))<<24,++l,i=27492+(65535&(o=5*(65535&(i=(i^=u=(65535&(u=(u=(65535&u)*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(u=0,n){case 3:u^=(255&t.charCodeAt(l+2))<<16;case 2:u^=(255&t.charCodeAt(l+1))<<8;case 1:i^=u=(65535&(u=(u=(65535&(u^=255&t.charCodeAt(l)))*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295}return i^=t.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}})),ho=e((function(t){t.exports=function(t,e){for(var n,r=t.length,i=e^r,o=0;r>=4;)n=1540483477*(65535&(n=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24))+((1540483477*(n>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:i^=(255&t.charCodeAt(o+2))<<16;case 2:i^=(255&t.charCodeAt(o+1))<<8;case 1:i=1540483477*(65535&(i^=255&t.charCodeAt(o)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0}})),fo=co,po=ho;fo.murmur3=co,fo.murmur2=po;var go=function(){this.ids=[],this.positions=[],this.indexed=!1};go.prototype.add=function(t,e,n,r){this.ids.push(mo(t)),this.positions.push(e,n,r)},go.prototype.getPositions=function(t){for(var e=mo(t),n=0,r=this.ids.length-1;n<r;){var i=n+r>>1;this.ids[i]>=e?r=i:n=i+1}for(var o=[];this.ids[n]===e;)o.push({index:this.positions[3*n],start:this.positions[3*n+1],end:this.positions[3*n+2]}),n++;return o},go.serialize=function(t,e){var n=new Float64Array(t.ids),r=new Uint32Array(t.positions);return function t(e,n,r,i){for(;r<i;){for(var o=e[r+i>>1],a=r-1,s=i+1;;){do{a++}while(e[a]<o);do{s--}while(e[s]>o);if(a>=s)break;yo(e,a,s),yo(n,3*a,3*s),yo(n,3*a+1,3*s+1),yo(n,3*a+2,3*s+2)}s-r<i-s?(t(e,n,r,s),r=s+1):(t(e,n,s+1,i),i=s)}}(n,r,0,n.length-1),e&&e.push(n.buffer,r.buffer),{ids:n,positions:r}},go.deserialize=function(t){var e=new go;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e};var vo=Math.pow(2,53)-1;function mo(t){var e=+t;return!isNaN(e)&&e<=vo?e:fo(String(t))}function yo(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}Br("FeaturePositionMap",go);var bo=function(t,e){this.gl=t.gl,this.location=e},_o=function(t){function e(e,n){t.call(this,e,n),this.current=0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&&(this.current=t,this.gl.uniform1i(this.location,t))},e}(bo),xo=function(t){function e(e,n){t.call(this,e,n),this.current=0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&&(this.current=t,this.gl.uniform1f(this.location,t))},e}(bo),wo=function(t){function e(e,n){t.call(this,e,n),this.current=[0,0]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},e}(bo),Oo=function(t){function e(e,n){t.call(this,e,n),this.current=[0,0,0]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},e}(bo),So=function(t){function e(e,n){t.call(this,e,n),this.current=[0,0,0,0]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]&&t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},e}(bo),Co=function(t){function e(e,n){t.call(this,e,n),this.current=te.transparent}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){t.r===this.current.r&&t.g===this.current.g&&t.b===this.current.b&&t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},e}(bo),Eo=new Float32Array(16),To=function(t){function e(e,n){t.call(this,e,n),this.current=Eo}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e<16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},e}(bo);function Ao(t){return[uo(255*t.r,255*t.g),uo(255*t.b,255*t.a)]}var Mo=function(t,e,n){this.value=t,this.uniformNames=e.map((function(t){return"u_"+t})),this.type=n};Mo.prototype.setUniform=function(t,e,n){t.set(n.constantOr(this.value))},Mo.prototype.getBinding=function(t,e,n){return"color"===this.type?new Co(t,e):new xo(t,e)};var Io=function(t,e){this.uniformNames=e.map((function(t){return"u_"+t})),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};Io.prototype.setConstantPatternPositions=function(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr},Io.prototype.setUniform=function(t,e,n,r){var i="u_pattern_to"===r?this.patternTo:"u_pattern_from"===r?this.patternFrom:"u_pixel_ratio_to"===r?this.pixelRatioTo:"u_pixel_ratio_from"===r?this.pixelRatioFrom:null;i&&t.set(i)},Io.prototype.getBinding=function(t,e,n){return"u_pattern"===n.substr(0,9)?new So(t,e):new xo(t,e)};var jo=function(t,e,n,r){this.expression=t,this.type=n,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:"a_"+t,type:"Float32",components:"color"===n?2:1,offset:0}})),this.paintVertexArray=new r};jo.prototype.populatePaintArray=function(t,e,n,r,i){var o=this.paintVertexArray.length,a=this.expression.evaluate(new si(0),e,{},r,[],i);this.paintVertexArray.resize(t),this._setPaintValue(o,t,a)},jo.prototype.updatePaintArray=function(t,e,n,r){var i=this.expression.evaluate({zoom:0},n,r);this._setPaintValue(t,e,i)},jo.prototype._setPaintValue=function(t,e,n){if("color"===this.type)for(var r=Ao(n),i=t;i<e;i++)this.paintVertexArray.emplace(i,r[0],r[1]);else{for(var o=t;o<e;o++)this.paintVertexArray.emplace(o,n);this.maxValue=Math.max(this.maxValue,Math.abs(n))}},jo.prototype.upload=function(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},jo.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()};var ko=function(t,e,n,r,i,o){this.expression=t,this.uniformNames=e.map((function(t){return"u_"+t+"_t"})),this.type=n,this.useIntegerZoom=r,this.zoom=i,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:"a_"+t,type:"Float32",components:"color"===n?4:2,offset:0}})),this.paintVertexArray=new o};ko.prototype.populatePaintArray=function(t,e,n,r,i){var o=this.expression.evaluate(new si(this.zoom),e,{},r,[],i),a=this.expression.evaluate(new si(this.zoom+1),e,{},r,[],i),s=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(s,t,o,a)},ko.prototype.updatePaintArray=function(t,e,n,r){var i=this.expression.evaluate({zoom:this.zoom},n,r),o=this.expression.evaluate({zoom:this.zoom+1},n,r);this._setPaintValue(t,e,i,o)},ko.prototype._setPaintValue=function(t,e,n,r){if("color"===this.type)for(var i=Ao(n),o=Ao(r),a=t;a<e;a++)this.paintVertexArray.emplace(a,i[0],i[1],o[0],o[1]);else{for(var s=t;s<e;s++)this.paintVertexArray.emplace(s,n,r);this.maxValue=Math.max(this.maxValue,Math.abs(n),Math.abs(r))}},ko.prototype.upload=function(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},ko.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},ko.prototype.setUniform=function(t,e){var n=this.useIntegerZoom?Math.floor(e.zoom):e.zoom,r=c(this.expression.interpolationFactor(n,this.zoom,this.zoom+1),0,1);t.set(r)},ko.prototype.getBinding=function(t,e,n){return new xo(t,e)};var Po=function(t,e,n,r,i,o){this.expression=t,this.type=e,this.useIntegerZoom=n,this.zoom=r,this.layerId=o,this.zoomInPaintVertexArray=new i,this.zoomOutPaintVertexArray=new i};Po.prototype.populatePaintArray=function(t,e,n){var r=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(r,t,e.patterns&&e.patterns[this.layerId],n)},Po.prototype.updatePaintArray=function(t,e,n,r,i){this._setPaintValues(t,e,n.patterns&&n.patterns[this.layerId],i)},Po.prototype._setPaintValues=function(t,e,n,r){if(r&&n){var i=r[n.min],o=r[n.mid],a=r[n.max];if(i&&o&&a)for(var s=t;s<e;s++)this.zoomInPaintVertexArray.emplace(s,o.tl[0],o.tl[1],o.br[0],o.br[1],i.tl[0],i.tl[1],i.br[0],i.br[1],o.pixelRatio,i.pixelRatio),this.zoomOutPaintVertexArray.emplace(s,o.tl[0],o.tl[1],o.br[0],o.br[1],a.tl[0],a.tl[1],a.br[0],a.br[1],o.pixelRatio,a.pixelRatio)}},Po.prototype.upload=function(t){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,lo.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,lo.members,this.expression.isStateDependent))},Po.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()};var Lo=function(t,e,n){this.binders={},this._buffers=[];var r=[];for(var i in t.paint._values)if(n(i)){var o=t.paint.get(i);if(o instanceof pi&&Ln(o.property.specification)){var a=Do(i,t.type),s=o.value,u=o.property.specification.type,l=o.property.useIntegerZoom,c=o.property.specification["property-type"],h="cross-faded"===c||"cross-faded-data-driven"===c;if("constant"===s.kind)this.binders[i]=h?new Io(s.value,a):new Mo(s.value,a,u),r.push("/u_"+i);else if("source"===s.kind||h){var f=No(i,u,"source");this.binders[i]=h?new Po(s,u,l,e,f,t.id):new jo(s,a,u,f),r.push("/a_"+i)}else{var d=No(i,u,"composite");this.binders[i]=new ko(s,a,u,l,e,d),r.push("/z_"+i)}}}this.cacheKey=r.sort().join("")};Lo.prototype.getMaxValue=function(t){var e=this.binders[t];return e instanceof jo||e instanceof ko?e.maxValue:0},Lo.prototype.populatePaintArrays=function(t,e,n,r,i){for(var o in this.binders){var a=this.binders[o];(a instanceof jo||a instanceof ko||a instanceof Po)&&a.populatePaintArray(t,e,n,r,i)}},Lo.prototype.setConstantPatternPositions=function(t,e){for(var n in this.binders){var r=this.binders[n];r instanceof Io&&r.setConstantPatternPositions(t,e)}},Lo.prototype.updatePaintArrays=function(t,e,n,r,i){var o=!1;for(var a in t)for(var s=0,u=e.getPositions(a);s<u.length;s+=1){var l=u[s],c=n.feature(l.index);for(var h in this.binders){var f=this.binders[h];if((f instanceof jo||f instanceof ko||f instanceof Po)&&!0===f.expression.isStateDependent){var d=r.paint.get(h);f.expression=d.value,f.updatePaintArray(l.start,l.end,c,t[a],i),o=!0}}}return o},Lo.prototype.defines=function(){var t=[];for(var e in this.binders){var n=this.binders[e];(n instanceof Mo||n instanceof Io)&&t.push.apply(t,n.uniformNames.map((function(t){return"#define HAS_UNIFORM_"+t})))}return t},Lo.prototype.getBinderAttributes=function(){var t=[];for(var e in this.binders){var n=this.binders[e];if(n instanceof jo||n instanceof ko)for(var r=0;r<n.paintVertexAttributes.length;r++)t.push(n.paintVertexAttributes[r].name);else if(n instanceof Po)for(var i=0;i<lo.members.length;i++)t.push(lo.members[i].name)}return t},Lo.prototype.getBinderUniforms=function(){var t=[];for(var e in this.binders){var n=this.binders[e];if(n instanceof Mo||n instanceof Io||n instanceof ko)for(var r=0,i=n.uniformNames;r<i.length;r+=1)t.push(i[r])}return t},Lo.prototype.getPaintVertexBuffers=function(){return this._buffers},Lo.prototype.getUniforms=function(t,e){var n=[];for(var r in this.binders){var i=this.binders[r];if(i instanceof Mo||i instanceof Io||i instanceof ko)for(var o=0,a=i.uniformNames;o<a.length;o+=1){var s=a[o];if(e[s]){var u=i.getBinding(t,e[s],s);n.push({name:s,property:r,binding:u})}}}return n},Lo.prototype.setUniforms=function(t,e,n,r){for(var i=0,o=e;i<o.length;i+=1){var a=o[i],s=a.name,u=a.property;this.binders[u].setUniform(a.binding,r,n.get(u),s)}},Lo.prototype.updatePaintBuffers=function(t){for(var e in this._buffers=[],this.binders){var n=this.binders[e];if(t&&n instanceof Po){var r=2===t.fromScale?n.zoomInPaintVertexBuffer:n.zoomOutPaintVertexBuffer;r&&this._buffers.push(r)}else(n instanceof jo||n instanceof ko)&&n.paintVertexBuffer&&this._buffers.push(n.paintVertexBuffer)}},Lo.prototype.upload=function(t){for(var e in this.binders){var n=this.binders[e];(n instanceof jo||n instanceof ko||n instanceof Po)&&n.upload(t)}this.updatePaintBuffers()},Lo.prototype.destroy=function(){for(var t in this.binders){var e=this.binders[t];(e instanceof jo||e instanceof ko||e instanceof Po)&&e.destroy()}};var Ro=function(t,e,n){void 0===n&&(n=function(){return!0}),this.programConfigurations={};for(var r=0,i=t;r<i.length;r+=1){var o=i[r];this.programConfigurations[o.id]=new Lo(o,e,n)}this.needsUpload=!1,this._featureMap=new go,this._bufferOffset=0};function Do(t,e){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[t]||[t.replace(e+"-","").replace(/-/g,"_")]}function No(t,e,n){var r={color:{source:ki,composite:qi},number:{source:Hi,composite:ki}},i=function(t){return{"line-pattern":{source:Pi,composite:Pi},"fill-pattern":{source:Pi,composite:Pi},"fill-extrusion-pattern":{source:Pi,composite:Pi}}[t]}(t);return i&&i[n]||r[e][n]}Ro.prototype.populatePaintArrays=function(t,e,n,r,i,o){for(var a in this.programConfigurations)this.programConfigurations[a].populatePaintArrays(t,e,r,i,o);void 0!==e.id&&this._featureMap.add(e.id,n,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0},Ro.prototype.updatePaintArrays=function(t,e,n,r){for(var i=0,o=n;i<o.length;i+=1){var a=o[i];this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(t,this._featureMap,e,a,r)||this.needsUpload}},Ro.prototype.get=function(t){return this.programConfigurations[t]},Ro.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},Ro.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},Br("ConstantBinder",Mo),Br("CrossFadedConstantBinder",Io),Br("SourceExpressionBinder",jo),Br("CrossFadedCompositeBinder",Po),Br("CompositeExpressionBinder",ko),Br("ProgramConfiguration",Lo,{omit:["_buffers"]}),Br("ProgramConfigurationSet",Ro);var Bo=Math.pow(2,14)-1,Fo=-Bo-1;function zo(t){for(var e=8192/t.extent,n=t.loadGeometry(),r=0;r<n.length;r++)for(var i=n[r],o=0;o<i.length;o++){var a=i[o],s=Math.round(a.x*e),u=Math.round(a.y*e);a.x=c(s,Fo,Bo),a.y=c(u,Fo,Bo),(s<a.x||s>a.x+1||u<a.y||u>a.y+1)&&O("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return n}function Vo(t,e){return{type:t.type,id:t.id,properties:t.properties,geometry:e?zo(t):[]}}function Uo(t,e,n,r,i){t.emplaceBack(2*e+(r+1)/2,2*n+(i+1)/2)}var Go=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Ai,this.indexArray=new Vi,this.segments=new so,this.programConfigurations=new Ro(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Ho(t,e){for(var n=0;n<t.length;n++)if(Jo(e,t[n]))return!0;for(var r=0;r<e.length;r++)if(Jo(t,e[r]))return!0;return!!$o(t,e)}function Wo(t,e,n){return!!Jo(t,e)||!!Zo(e,t,n)}function Yo(t,e){if(1===t.length)return Qo(e,t[0]);for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;i++)if(Jo(t,r[i]))return!0;for(var o=0;o<t.length;o++)if(Qo(e,t[o]))return!0;for(var a=0;a<e.length;a++)if($o(t,e[a]))return!0;return!1}function Xo(t,e,n){if(t.length>1){if($o(t,e))return!0;for(var r=0;r<e.length;r++)if(Zo(e[r],t,n))return!0}for(var i=0;i<t.length;i++)if(Zo(t[i],e,n))return!0;return!1}function $o(t,e){if(0===t.length||0===e.length)return!1;for(var n=0;n<t.length-1;n++)for(var r=t[n],i=t[n+1],o=0;o<e.length-1;o++)if(qo(r,i,e[o],e[o+1]))return!0;return!1}function qo(t,e,n,r){return S(t,n,r)!==S(e,n,r)&&S(t,e,n)!==S(t,e,r)}function Zo(t,e,n){var r=n*n;if(1===e.length)return t.distSqr(e[0])<r;for(var i=1;i<e.length;i++)if(Ko(t,e[i-1],e[i])<r)return!0;return!1}function Ko(t,e,n){var r=e.distSqr(n);if(0===r)return t.distSqr(e);var i=((t.x-e.x)*(n.x-e.x)+(t.y-e.y)*(n.y-e.y))/r;return t.distSqr(i<0?e:i>1?n:n.sub(e)._mult(i)._add(e))}function Qo(t,e){for(var n,r,i,o=!1,a=0;a<t.length;a++)for(var s=0,u=(n=t[a]).length-1;s<n.length;u=s++)(r=n[s]).y>e.y!=(i=n[u]).y>e.y&&e.x<(i.x-r.x)*(e.y-r.y)/(i.y-r.y)+r.x&&(o=!o);return o}function Jo(t,e){for(var n=!1,r=0,i=t.length-1;r<t.length;i=r++){var o=t[r],a=t[i];o.y>e.y!=a.y>e.y&&e.x<(a.x-o.x)*(e.y-o.y)/(a.y-o.y)+o.x&&(n=!n)}return n}function ta(t,e,n){var r=n[0],i=n[2];if(t.x<r.x&&e.x<r.x||t.x>i.x&&e.x>i.x||t.y<r.y&&e.y<r.y||t.y>i.y&&e.y>i.y)return!1;var o=S(t,e,n[0]);return o!==S(t,e,n[1])||o!==S(t,e,n[2])||o!==S(t,e,n[3])}function ea(t,e,n){var r=e.paint.get(t).value;return"constant"===r.kind?r.value:n.programConfigurations.get(e.id).getMaxValue(t)}function na(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ra(t,e,n,r,o){if(!e[0]&&!e[1])return t;var a=i.convert(e)._mult(o);"viewport"===n&&a._rotate(-r);for(var s=[],u=0;u<t.length;u++)s.push(t[u].sub(a));return s}Go.prototype.populate=function(t,e,n){var r=this.layers[0],i=[],o=null;"circle"===r.type&&(o=r.layout.get("circle-sort-key"));for(var a=0,s=t;a<s.length;a+=1){var u=s[a],l=u.feature,c=u.id,h=u.index,f=u.sourceLayerIndex,d=this.layers[0]._featureFilter.needGeometry,p=Vo(l,d);if(this.layers[0]._featureFilter.filter(new si(this.zoom),p,n)){var g=o?o.evaluate(p,{},n):void 0,v={id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:h,geometry:d?p.geometry:zo(l),patterns:{},sortKey:g};i.push(v)}}o&&i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var m=0,y=i;m<y.length;m+=1){var b=y[m],_=b.geometry,x=b.index,w=b.sourceLayerIndex,O=t[x].feature;this.addFeature(b,_,x,n),e.featureIndex.insert(O,_,x,w,this.index)}},Go.prototype.update=function(t,e,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n)},Go.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Go.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Go.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ao),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Go.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Go.prototype.addFeature=function(t,e,n,r){for(var i=0,o=e;i<o.length;i+=1)for(var a=0,s=o[i];a<s.length;a+=1){var u=s[a],l=u.x,c=u.y;if(!(l<0||l>=8192||c<0||c>=8192)){var h=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),f=h.vertexLength;Uo(this.layoutVertexArray,l,c,-1,-1),Uo(this.layoutVertexArray,l,c,1,-1),Uo(this.layoutVertexArray,l,c,1,1),Uo(this.layoutVertexArray,l,c,-1,1),this.indexArray.emplaceBack(f,f+1,f+2),this.indexArray.emplaceBack(f,f+3,f+2),h.vertexLength+=4,h.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,{},r)},Br("CircleBucket",Go,{omit:["layers"]});var ia=new xi({"circle-sort-key":new mi(Mt.layout_circle["circle-sort-key"])}),oa={paint:new xi({"circle-radius":new mi(Mt.paint_circle["circle-radius"]),"circle-color":new mi(Mt.paint_circle["circle-color"]),"circle-blur":new mi(Mt.paint_circle["circle-blur"]),"circle-opacity":new mi(Mt.paint_circle["circle-opacity"]),"circle-translate":new vi(Mt.paint_circle["circle-translate"]),"circle-translate-anchor":new vi(Mt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new vi(Mt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new vi(Mt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new mi(Mt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new mi(Mt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new mi(Mt.paint_circle["circle-stroke-opacity"])}),layout:ia},aa="undefined"!=typeof Float32Array?Float32Array:Array;function sa(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ua(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],g=e[12],v=e[13],m=e[14],y=e[15],b=n[0],_=n[1],x=n[2],w=n[3];return t[0]=b*r+_*s+x*h+w*g,t[1]=b*i+_*u+x*f+w*v,t[2]=b*o+_*l+x*d+w*m,t[3]=b*a+_*c+x*p+w*y,t[4]=(b=n[4])*r+(_=n[5])*s+(x=n[6])*h+(w=n[7])*g,t[5]=b*i+_*u+x*f+w*v,t[6]=b*o+_*l+x*d+w*m,t[7]=b*a+_*c+x*p+w*y,t[8]=(b=n[8])*r+(_=n[9])*s+(x=n[10])*h+(w=n[11])*g,t[9]=b*i+_*u+x*f+w*v,t[10]=b*o+_*l+x*d+w*m,t[11]=b*a+_*c+x*p+w*y,t[12]=(b=n[12])*r+(_=n[13])*s+(x=n[14])*h+(w=n[15])*g,t[13]=b*i+_*u+x*f+w*v,t[14]=b*o+_*l+x*d+w*m,t[15]=b*a+_*c+x*p+w*y,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,n=arguments.length;n--;)e+=t[n]*t[n];return Math.sqrt(e)});var la,ca=ua;function ha(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,t}la=new aa(3),aa!=Float32Array&&(la[0]=0,la[1]=0,la[2]=0),function(){var t=new aa(4);aa!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var fa=(function(){var t=new aa(2);aa!=Float32Array&&(t[0]=0,t[1]=0)}(),function(t){function e(e){t.call(this,e,oa)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new Go(t)},e.prototype.queryRadius=function(t){var e=t;return ea("circle-radius",this,e)+ea("circle-stroke-width",this,e)+na(this.paint.get("circle-translate"))},e.prototype.queryIntersectsFeature=function(t,e,n,r,i,o,a,s){for(var u=ra(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,a),l=this.paint.get("circle-radius").evaluate(e,n)+this.paint.get("circle-stroke-width").evaluate(e,n),c="map"===this.paint.get("circle-pitch-alignment"),h=c?u:function(t,e){return t.map((function(t){return da(t,e)}))}(u,s),f=c?l*a:l,d=0,p=r;d<p.length;d+=1)for(var g=0,v=p[d];g<v.length;g+=1){var m=v[g],y=c?m:da(m,s),b=f,_=ha([],[m.x,m.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?b*=_[3]/o.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(b*=o.cameraToCenterDistance/_[3]),Wo(h,y,b))return!0}return!1},e}(wi));function da(t,e){var n=ha([],[t.x,t.y,0,1],e);return new i(n[0]/n[3],n[1]/n[3])}var pa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Go);function ga(t,e,n,r){var i=e.width,o=e.height;if(r){if(r instanceof Uint8ClampedArray)r=new Uint8Array(r.buffer);else if(r.length!==i*o*n)throw new RangeError("mismatched image size")}else r=new Uint8Array(i*o*n);return t.width=i,t.height=o,t.data=r,t}function va(t,e,n){var r=e.width,i=e.height;if(r!==t.width||i!==t.height){var o=ga({},{width:r,height:i},n);ma(t,o,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,r),height:Math.min(t.height,i)},n),t.width=r,t.height=i,t.data=o.data}}function ma(t,e,n,r,i,o){if(0===i.width||0===i.height)return e;if(i.width>t.width||i.height>t.height||n.x>t.width-i.width||n.y>t.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>e.width||i.height>e.height||r.x>e.width-i.width||r.y>e.height-i.height)throw new RangeError("out of range destination coordinates for image copy");for(var a=t.data,s=e.data,u=0;u<i.height;u++)for(var l=((n.y+u)*t.width+n.x)*o,c=((r.y+u)*e.width+r.x)*o,h=0;h<i.width*o;h++)s[c+h]=a[l+h];return e}Br("HeatmapBucket",pa,{omit:["layers"]});var ya=function(t,e){ga(this,t,1,e)};ya.prototype.resize=function(t){va(this,t,1)},ya.prototype.clone=function(){return new ya({width:this.width,height:this.height},new Uint8Array(this.data))},ya.copy=function(t,e,n,r,i){ma(t,e,n,r,i,1)};var ba=function(t,e){ga(this,t,4,e)};ba.prototype.resize=function(t){va(this,t,4)},ba.prototype.replace=function(t,e){e?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t},ba.prototype.clone=function(){return new ba({width:this.width,height:this.height},new Uint8Array(this.data))},ba.copy=function(t,e,n,r,i){ma(t,e,n,r,i,4)},Br("AlphaImage",ya),Br("RGBAImage",ba);var _a={paint:new xi({"heatmap-radius":new mi(Mt.paint_heatmap["heatmap-radius"]),"heatmap-weight":new mi(Mt.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new vi(Mt.paint_heatmap["heatmap-intensity"]),"heatmap-color":new _i(Mt.paint_heatmap["heatmap-color"]),"heatmap-opacity":new vi(Mt.paint_heatmap["heatmap-opacity"])})};function xa(t){var e={},n=t.resolution||256,r=t.clips?t.clips.length:1,i=t.image||new ba({width:n,height:r}),o=function(n,r,o){e[t.evaluationKey]=o;var a=t.expression.evaluate(e);i.data[n+r+0]=Math.floor(255*a.r/a.a),i.data[n+r+1]=Math.floor(255*a.g/a.a),i.data[n+r+2]=Math.floor(255*a.b/a.a),i.data[n+r+3]=Math.floor(255*a.a)};if(t.clips)for(var a=0,s=0;a<r;++a,s+=4*n)for(var u=0,l=0;u<n;u++,l+=4){var c=u/(n-1),h=t.clips[a];o(s,l,h.start*(1-c)+h.end*c)}else for(var f=0,d=0;f<n;f++,d+=4)o(0,d,f/(n-1));return i}var wa=function(t){function e(e){t.call(this,e,_a),this._updateColorRamp()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new pa(t)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){"heatmap-color"===t&&this._updateColorRamp()},e.prototype._updateColorRamp=function(){this.colorRamp=xa({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility},e}(wi),Oa={paint:new xi({"hillshade-illumination-direction":new vi(Mt.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new vi(Mt.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new vi(Mt.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new vi(Mt.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new vi(Mt.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new vi(Mt.paint_hillshade["hillshade-accent-color"])})},Sa=function(t){function e(e){t.call(this,e,Oa)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility},e}(wi),Ca=Ei([{name:"a_pos",components:2,type:"Int16"}],4).members,Ea=Aa,Ta=Aa;function Aa(t,e,n){n=n||2;var r,i,o,a,s,u,l,c=e&&e.length,h=c?e[0]*n:t.length,f=Ma(t,0,h,n,!0),d=[];if(!f||f.next===f.prev)return d;if(c&&(f=function(t,e,n,r){var i,o,a,s=[];for(i=0,o=e.length;i<o;i++)(a=Ma(t,e[i]*r,i<o-1?e[i+1]*r:t.length,r,!1))===a.next&&(a.steiner=!0),s.push(za(a));for(s.sort(Da),i=0;i<s.length;i++)Na(s[i],n),n=Ia(n,n.next);return n}(t,e,f,n)),t.length>80*n){r=o=t[0],i=a=t[1];for(var p=n;p<h;p+=n)(s=t[p])<r&&(r=s),(u=t[p+1])<i&&(i=u),s>o&&(o=s),u>a&&(a=u);l=0!==(l=Math.max(o-r,a-i))?1/l:0}return ja(f,d,n,r,i,l),d}function Ma(t,e,n,r,i){var o,a;if(i===Ja(t,e,n,r)>0)for(o=e;o<n;o+=r)a=Za(o,t[o],t[o+1],a);else for(o=n-r;o>=e;o-=r)a=Za(o,t[o],t[o+1],a);return a&&Ha(a,a.next)&&(Ka(a),a=a.next),a}function Ia(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!Ha(r,r.next)&&0!==Ga(r.prev,r,r.next))r=r.next;else{if(Ka(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function ja(t,e,n,r,i,o,a){if(t){!a&&o&&function(t,e,n,r){var i=t;do{null===i.z&&(i.z=Fa(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,a,s,u,l=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,r=n,s=0,e=0;e<l&&(s++,r=r.nextZ);e++);for(u=l;s>0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(a>1)}(i)}(t,r,i,o);for(var s,u,l=t;t.prev!==t.next;)if(s=t.prev,u=t.next,o?Pa(t,r,i,o):ka(t))e.push(s.i/n),e.push(t.i/n),e.push(u.i/n),Ka(t),t=u.next,l=u.next;else if((t=u)===l){a?1===a?ja(t=La(Ia(t),e,n),e,n,r,i,o,2):2===a&&Ra(t,e,n,r,i,o):ja(Ia(t),e,n,r,i,o,1);break}}}function ka(t){var e=t.prev,n=t,r=t.next;if(Ga(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(Va(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&Ga(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function Pa(t,e,n,r){var i=t.prev,o=t,a=t.next;if(Ga(i,o,a)>=0)return!1;for(var s=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,u=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,l=Fa(i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,e,n,r),c=Fa(s,u,e,n,r),h=t.prevZ,f=t.nextZ;h&&h.z>=l&&f&&f.z<=c;){if(h!==t.prev&&h!==t.next&&Va(i.x,i.y,o.x,o.y,a.x,a.y,h.x,h.y)&&Ga(h.prev,h,h.next)>=0)return!1;if(h=h.prevZ,f!==t.prev&&f!==t.next&&Va(i.x,i.y,o.x,o.y,a.x,a.y,f.x,f.y)&&Ga(f.prev,f,f.next)>=0)return!1;f=f.nextZ}for(;h&&h.z>=l;){if(h!==t.prev&&h!==t.next&&Va(i.x,i.y,o.x,o.y,a.x,a.y,h.x,h.y)&&Ga(h.prev,h,h.next)>=0)return!1;h=h.prevZ}for(;f&&f.z<=c;){if(f!==t.prev&&f!==t.next&&Va(i.x,i.y,o.x,o.y,a.x,a.y,f.x,f.y)&&Ga(f.prev,f,f.next)>=0)return!1;f=f.nextZ}return!0}function La(t,e,n){var r=t;do{var i=r.prev,o=r.next.next;!Ha(i,o)&&Wa(i,r,r.next,o)&&$a(i,o)&&$a(o,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(o.i/n),Ka(r),Ka(r.next),r=t=o),r=r.next}while(r!==t);return Ia(r)}function Ra(t,e,n,r,i,o){var a=t;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&Ua(a,s)){var u=qa(a,s);return a=Ia(a,a.next),u=Ia(u,u.next),ja(a,e,n,r,i,o),void ja(u,e,n,r,i,o)}s=s.next}a=a.next}while(a!==t)}function Da(t,e){return t.x-e.x}function Na(t,e){if(e=function(t,e){var n,r=e,i=t.x,o=t.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(i===a)return n;var u,l=n,c=n.x,h=n.y,f=1/0;r=n;do{i>=r.x&&r.x>=c&&i!==r.x&&Va(o<h?i:a,o,c,h,o<h?a:i,o,r.x,r.y)&&(u=Math.abs(o-r.y)/(i-r.x),$a(r,t)&&(u<f||u===f&&(r.x>n.x||r.x===n.x&&Ba(n,r)))&&(n=r,f=u)),r=r.next}while(r!==l);return n}(t,e)){var n=qa(e,t);Ia(e,e.next),Ia(n,n.next)}}function Ba(t,e){return Ga(t.prev,t,e.prev)<0&&Ga(e.next,t,t.next)<0}function Fa(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function za(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function Va(t,e,n,r,i,o,a,s){return(i-a)*(e-s)-(t-a)*(o-s)>=0&&(t-a)*(r-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function Ua(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&Wa(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&($a(t,e)&&$a(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(Ga(t.prev,t,e.prev)||Ga(t,e.prev,e))||Ha(t,e)&&Ga(t.prev,t,t.next)>0&&Ga(e.prev,e,e.next)>0)}function Ga(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function Ha(t,e){return t.x===e.x&&t.y===e.y}function Wa(t,e,n,r){var i=Xa(Ga(t,e,n)),o=Xa(Ga(t,e,r)),a=Xa(Ga(n,r,t)),s=Xa(Ga(n,r,e));return i!==o&&a!==s||!(0!==i||!Ya(t,n,e))||!(0!==o||!Ya(t,r,e))||!(0!==a||!Ya(n,t,r))||!(0!==s||!Ya(n,e,r))}function Ya(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function Xa(t){return t>0?1:t<0?-1:0}function $a(t,e){return Ga(t.prev,t,t.next)<0?Ga(t,e,t.next)>=0&&Ga(t,t.prev,e)>=0:Ga(t,e,t.prev)<0||Ga(t,t.next,e)<0}function qa(t,e){var n=new Qa(t.i,t.x,t.y),r=new Qa(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function Za(t,e,n,r){var i=new Qa(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Ka(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Qa(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Ja(t,e,n,r){for(var i=0,o=e,a=n-r;o<n;o+=r)i+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return i}function ts(t,e,n,r,i){!function t(e,n,r,i,o){for(;i>r;){if(i-r>600){var a=i-r+1,s=n-r+1,u=Math.log(a),l=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*l*(a-l)/a)*(s-a/2<0?-1:1);t(e,n,Math.max(r,Math.floor(n-s*l/a+c)),Math.min(i,Math.floor(n+(a-s)*l/a+c)),o)}var h=e[n],f=r,d=i;for(es(e,r,n),o(e[i],h)>0&&es(e,r,i);f<d;){for(es(e,f,d),f++,d--;o(e[f],h)<0;)f++;for(;o(e[d],h)>0;)d--}0===o(e[r],h)?es(e,r,d):es(e,++d,i),d<=n&&(r=d+1),n<=d&&(i=d-1)}}(t,e,n||0,r||t.length-1,i||ns)}function es(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function ns(t,e){return t<e?-1:t>e?1:0}function rs(t,e){var n=t.length;if(n<=1)return[t];for(var r,i,o=[],a=0;a<n;a++){var s=C(t[a]);0!==s&&(t[a].area=Math.abs(s),void 0===i&&(i=s<0),i===s<0?(r&&o.push(r),r=[t[a]]):r.push(t[a]))}if(r&&o.push(r),e>1)for(var u=0;u<o.length;u++)o[u].length<=e||(ts(o[u],e,1,o[u].length-1,is),o[u]=o[u].slice(0,e));return o}function is(t,e){return e.area-t.area}function os(t,e,n){for(var r=n.patternDependencies,i=!1,o=0,a=e;o<a.length;o+=1){var s=a[o].paint.get(t+"-pattern");s.isConstant()||(i=!0);var u=s.constantOr(null);u&&(i=!0,r[u.to]=!0,r[u.from]=!0)}return i}function as(t,e,n,r,i){for(var o=i.patternDependencies,a=0,s=e;a<s.length;a+=1){var u=s[a],l=u.paint.get(t+"-pattern").value;if("constant"!==l.kind){var c=l.evaluate({zoom:r-1},n,{},i.availableImages),h=l.evaluate({zoom:r},n,{},i.availableImages),f=l.evaluate({zoom:r+1},n,{},i.availableImages);h=h&&h.name?h.name:h,f=f&&f.name?f.name:f,o[c=c&&c.name?c.name:c]=!0,o[h]=!0,o[f]=!0,n.patterns[u.id]={min:c,mid:h,max:f}}}return n}Aa.deviation=function(t,e,n,r){var i=e&&e.length,o=Math.abs(Ja(t,0,i?e[0]*n:t.length,n));if(i)for(var a=0,s=e.length;a<s;a++)o-=Math.abs(Ja(t,e[a]*n,a<s-1?e[a+1]*n:t.length,n));var u=0;for(a=0;a<r.length;a+=3){var l=r[a]*n,c=r[a+1]*n,h=r[a+2]*n;u+=Math.abs((t[l]-t[h])*(t[c+1]-t[l+1])-(t[l]-t[c])*(t[h+1]-t[l+1]))}return 0===o&&0===u?0:Math.abs((u-o)/o)},Aa.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[i][o][a]);i>0&&n.holes.push(r+=t[i-1].length)}return n},Ea.default=Ta;var ss=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Ai,this.indexArray=new Vi,this.indexArray2=new Xi,this.programConfigurations=new Ro(t.layers,t.zoom),this.segments=new so,this.segments2=new so,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};ss.prototype.populate=function(t,e,n){this.hasPattern=os("fill",this.layers,e);for(var r=this.layers[0].layout.get("fill-sort-key"),i=[],o=0,a=t;o<a.length;o+=1){var s=a[o],u=s.feature,l=s.id,c=s.index,h=s.sourceLayerIndex,f=this.layers[0]._featureFilter.needGeometry,d=Vo(u,f);if(this.layers[0]._featureFilter.filter(new si(this.zoom),d,n)){var p=r?r.evaluate(d,{},n,e.availableImages):void 0,g={id:l,properties:u.properties,type:u.type,sourceLayerIndex:h,index:c,geometry:f?d.geometry:zo(u),patterns:{},sortKey:p};i.push(g)}}r&&i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var v=0,m=i;v<m.length;v+=1){var y=m[v],b=y.geometry,_=y.index,x=y.sourceLayerIndex;if(this.hasPattern){var w=as("fill",this.layers,y,this.zoom,e);this.patternFeatures.push(w)}else this.addFeature(y,b,_,n,{});e.featureIndex.insert(t[_].feature,b,_,x,this.index)}},ss.prototype.update=function(t,e,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n)},ss.prototype.addFeatures=function(t,e,n){for(var r=0,i=this.patternFeatures;r<i.length;r+=1){var o=i[r];this.addFeature(o,o.geometry,o.index,e,n)}},ss.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},ss.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},ss.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ca),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},ss.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},ss.prototype.addFeature=function(t,e,n,r,i){for(var o=0,a=rs(e,500);o<a.length;o+=1){for(var s=a[o],u=0,l=0,c=s;l<c.length;l+=1)u+=c[l].length;for(var h=this.segments.prepareSegment(u,this.layoutVertexArray,this.indexArray),f=h.vertexLength,d=[],p=[],g=0,v=s;g<v.length;g+=1){var m=v[g];if(0!==m.length){m!==s[0]&&p.push(d.length/2);var y=this.segments2.prepareSegment(m.length,this.layoutVertexArray,this.indexArray2),b=y.vertexLength;this.layoutVertexArray.emplaceBack(m[0].x,m[0].y),this.indexArray2.emplaceBack(b+m.length-1,b),d.push(m[0].x),d.push(m[0].y);for(var _=1;_<m.length;_++)this.layoutVertexArray.emplaceBack(m[_].x,m[_].y),this.indexArray2.emplaceBack(b+_-1,b+_),d.push(m[_].x),d.push(m[_].y);y.vertexLength+=m.length,y.primitiveLength+=m.length}}for(var x=Ea(d,p),w=0;w<x.length;w+=3)this.indexArray.emplaceBack(f+x[w],f+x[w+1],f+x[w+2]);h.vertexLength+=u,h.primitiveLength+=x.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,i,r)},Br("FillBucket",ss,{omit:["layers","patternFeatures"]});var us=new xi({"fill-sort-key":new mi(Mt.layout_fill["fill-sort-key"])}),ls={paint:new xi({"fill-antialias":new vi(Mt.paint_fill["fill-antialias"]),"fill-opacity":new mi(Mt.paint_fill["fill-opacity"]),"fill-color":new mi(Mt.paint_fill["fill-color"]),"fill-outline-color":new mi(Mt.paint_fill["fill-outline-color"]),"fill-translate":new vi(Mt.paint_fill["fill-translate"]),"fill-translate-anchor":new vi(Mt.paint_fill["fill-translate-anchor"]),"fill-pattern":new yi(Mt.paint_fill["fill-pattern"])}),layout:us},cs=function(t){function e(e){t.call(this,e,ls)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.recalculate=function(e,n){t.prototype.recalculate.call(this,e,n);var r=this.paint._values["fill-outline-color"];"constant"===r.value.kind&&void 0===r.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])},e.prototype.createBucket=function(t){return new ss(t)},e.prototype.queryRadius=function(){return na(this.paint.get("fill-translate"))},e.prototype.queryIntersectsFeature=function(t,e,n,r,i,o,a){return Yo(ra(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,a),r)},e.prototype.isTileClipped=function(){return!0},e}(wi),hs=Ei([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4).members,fs=ds;function ds(t,e,n,r,i){this.properties={},this.extent=n,this.type=0,this._pbf=t,this._geometry=-1,this._keys=r,this._values=i,t.readFields(ps,this,e)}function ps(t,e,n){1==t?e.id=n.readVarint():2==t?function(t,e){for(var n=t.readVarint()+t.pos;t.pos<n;){var r=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[r]=i}}(n,e):3==t?e.type=n.readVarint():4==t&&(e._geometry=n.pos)}function gs(t){for(var e,n,r=0,i=0,o=t.length,a=o-1;i<o;a=i++)r+=((n=t[a]).x-(e=t[i]).x)*(e.y+n.y);return r}ds.types=["Unknown","Point","LineString","Polygon"],ds.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,n=t.readVarint()+t.pos,r=1,o=0,a=0,s=0,u=[];t.pos<n;){if(o<=0){var l=t.readVarint();r=7&l,o=l>>3}if(o--,1===r||2===r)a+=t.readSVarint(),s+=t.readSVarint(),1===r&&(e&&u.push(e),e=[]),e.push(new i(a,s));else{if(7!==r)throw new Error("unknown command "+r);e&&e.push(e[0].clone())}}return e&&u.push(e),u},ds.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,n=1,r=0,i=0,o=0,a=1/0,s=-1/0,u=1/0,l=-1/0;t.pos<e;){if(r<=0){var c=t.readVarint();n=7&c,r=c>>3}if(r--,1===n||2===n)(i+=t.readSVarint())<a&&(a=i),i>s&&(s=i),(o+=t.readSVarint())<u&&(u=o),o>l&&(l=o);else if(7!==n)throw new Error("unknown command "+n)}return[a,u,s,l]},ds.prototype.toGeoJSON=function(t,e,n){var r,i,o=this.extent*Math.pow(2,n),a=this.extent*t,s=this.extent*e,u=this.loadGeometry(),l=ds.types[this.type];function c(t){for(var e=0;e<t.length;e++){var n=t[e];t[e]=[360*(n.x+a)/o-180,360/Math.PI*Math.atan(Math.exp((180-360*(n.y+s)/o)*Math.PI/180))-90]}}switch(this.type){case 1:var h=[];for(r=0;r<u.length;r++)h[r]=u[r][0];c(u=h);break;case 2:for(r=0;r<u.length;r++)c(u[r]);break;case 3:for(u=function(t){var e=t.length;if(e<=1)return[t];for(var n,r,i=[],o=0;o<e;o++){var a=gs(t[o]);0!==a&&(void 0===r&&(r=a<0),r===a<0?(n&&i.push(n),n=[t[o]]):n.push(t[o]))}return n&&i.push(n),i}(u),r=0;r<u.length;r++)for(i=0;i<u[r].length;i++)c(u[r][i])}1===u.length?u=u[0]:l="Multi"+l;var f={type:"Feature",geometry:{type:l,coordinates:u},properties:this.properties};return"id"in this&&(f.id=this.id),f};var vs=ms;function ms(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(ys,this,e),this.length=this._features.length}function ys(t,e,n){15===t?e.version=n.readVarint():1===t?e.name=n.readString():5===t?e.extent=n.readVarint():2===t?e._features.push(n.pos):3===t?e._keys.push(n.readString()):4===t&&e._values.push(function(t){for(var e=null,n=t.readVarint()+t.pos;t.pos<n;){var r=t.readVarint()>>3;e=1===r?t.readString():2===r?t.readFloat():3===r?t.readDouble():4===r?t.readVarint64():5===r?t.readVarint():6===r?t.readSVarint():7===r?t.readBoolean():null}return e}(n))}function bs(t,e,n){if(3===t){var r=new vs(n,n.readVarint()+n.pos);r.length&&(e[r.name]=r)}}ms.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new fs(this._pbf,e,this.extent,this._keys,this._values)};var _s={VectorTile:function(t,e){this.layers=t.readFields(bs,{},e)},VectorTileFeature:fs,VectorTileLayer:vs},xs=_s.VectorTileFeature.types,ws=Math.pow(2,13);function Os(t,e,n,r,i,o,a,s){t.emplaceBack(e,n,2*Math.floor(r*ws)+a,i*ws*2,o*ws*2,Math.round(s))}var Ss=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Ii,this.indexArray=new Vi,this.programConfigurations=new Ro(t.layers,t.zoom),this.segments=new so,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Cs(t,e){return t.x===e.x&&(t.x<0||t.x>8192)||t.y===e.y&&(t.y<0||t.y>8192)}Ss.prototype.populate=function(t,e,n){this.features=[],this.hasPattern=os("fill-extrusion",this.layers,e);for(var r=0,i=t;r<i.length;r+=1){var o=i[r],a=o.feature,s=o.id,u=o.index,l=o.sourceLayerIndex,c=this.layers[0]._featureFilter.needGeometry,h=Vo(a,c);if(this.layers[0]._featureFilter.filter(new si(this.zoom),h,n)){var f={id:s,sourceLayerIndex:l,index:u,geometry:c?h.geometry:zo(a),properties:a.properties,type:a.type,patterns:{}};this.hasPattern?this.features.push(as("fill-extrusion",this.layers,f,this.zoom,e)):this.addFeature(f,f.geometry,u,n,{}),e.featureIndex.insert(a,f.geometry,u,l,this.index,!0)}}},Ss.prototype.addFeatures=function(t,e,n){for(var r=0,i=this.features;r<i.length;r+=1){var o=i[r];this.addFeature(o,o.geometry,o.index,e,n)}},Ss.prototype.update=function(t,e,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n)},Ss.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Ss.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Ss.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,hs),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Ss.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Ss.prototype.addFeature=function(t,e,n,r,i){for(var o=0,a=rs(e,500);o<a.length;o+=1){for(var s=a[o],u=0,l=0,c=s;l<c.length;l+=1)u+=c[l].length;for(var h=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),f=0,d=s;f<d.length;f+=1){var p=d[f];if(0!==p.length&&!((k=p).every((function(t){return t.x<0}))||k.every((function(t){return t.x>8192}))||k.every((function(t){return t.y<0}))||k.every((function(t){return t.y>8192}))))for(var g=0,v=0;v<p.length;v++){var m=p[v];if(v>=1){var y=p[v-1];if(!Cs(m,y)){h.vertexLength+4>so.MAX_VERTEX_ARRAY_LENGTH&&(h=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var b=m.sub(y)._perp()._unit(),_=y.dist(m);g+_>32768&&(g=0),Os(this.layoutVertexArray,m.x,m.y,b.x,b.y,0,0,g),Os(this.layoutVertexArray,m.x,m.y,b.x,b.y,0,1,g),Os(this.layoutVertexArray,y.x,y.y,b.x,b.y,0,0,g+=_),Os(this.layoutVertexArray,y.x,y.y,b.x,b.y,0,1,g);var x=h.vertexLength;this.indexArray.emplaceBack(x,x+2,x+1),this.indexArray.emplaceBack(x+1,x+2,x+3),h.vertexLength+=4,h.primitiveLength+=2}}}}if(h.vertexLength+u>so.MAX_VERTEX_ARRAY_LENGTH&&(h=this.segments.prepareSegment(u,this.layoutVertexArray,this.indexArray)),"Polygon"===xs[t.type]){for(var w=[],O=[],S=h.vertexLength,C=0,E=s;C<E.length;C+=1){var T=E[C];if(0!==T.length){T!==s[0]&&O.push(w.length/2);for(var A=0;A<T.length;A++){var M=T[A];Os(this.layoutVertexArray,M.x,M.y,0,0,1,1,0),w.push(M.x),w.push(M.y)}}}for(var I=Ea(w,O),j=0;j<I.length;j+=3)this.indexArray.emplaceBack(S+I[j],S+I[j+2],S+I[j+1]);h.primitiveLength+=I.length/3,h.vertexLength+=u}}var k;this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,i,r)},Br("FillExtrusionBucket",Ss,{omit:["layers","features"]});var Es={paint:new xi({"fill-extrusion-opacity":new vi(Mt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new mi(Mt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new vi(Mt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new vi(Mt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new yi(Mt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new mi(Mt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new mi(Mt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new vi(Mt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})},Ts=function(t){function e(e){t.call(this,e,Es)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new Ss(t)},e.prototype.queryRadius=function(){return na(this.paint.get("fill-extrusion-translate"))},e.prototype.is3D=function(){return!0},e.prototype.queryIntersectsFeature=function(t,e,n,r,o,a,s,u){var l=ra(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),a.angle,s),c=this.paint.get("fill-extrusion-height").evaluate(e,n),h=this.paint.get("fill-extrusion-base").evaluate(e,n),f=function(t,e,n,r){for(var o=[],a=0,s=t;a<s.length;a+=1){var u=s[a],l=[u.x,u.y,0,1];ha(l,l,e),o.push(new i(l[0]/l[3],l[1]/l[3]))}return o}(l,u),d=function(t,e,n,r){for(var o=[],a=[],s=r[8]*e,u=r[9]*e,l=r[10]*e,c=r[11]*e,h=r[8]*n,f=r[9]*n,d=r[10]*n,p=r[11]*n,g=0,v=t;g<v.length;g+=1){for(var m=[],y=[],b=0,_=v[g];b<_.length;b+=1){var x=_[b],w=x.x,O=x.y,S=r[0]*w+r[4]*O+r[12],C=r[1]*w+r[5]*O+r[13],E=r[2]*w+r[6]*O+r[14],T=r[3]*w+r[7]*O+r[15],A=E+l,M=T+c,I=S+h,j=C+f,k=E+d,P=T+p,L=new i((S+s)/M,(C+u)/M);L.z=A/M,m.push(L);var R=new i(I/P,j/P);R.z=k/P,y.push(R)}o.push(m),a.push(y)}return[o,a]}(r,h,c,u);return function(t,e,n){var r=1/0;Yo(n,e)&&(r=Ms(n,e[0]));for(var i=0;i<e.length;i++)for(var o=e[i],a=t[i],s=0;s<o.length-1;s++){var u=o[s],l=[u,o[s+1],a[s+1],a[s],u];Ho(n,l)&&(r=Math.min(r,Ms(n,l)))}return r!==1/0&&r}(d[0],d[1],f)},e}(wi);function As(t,e){return t.x*e.x+t.y*e.y}function Ms(t,e){if(1===t.length){for(var n,r=0,i=e[r++];!n||i.equals(n);)if(!(n=e[r++]))return 1/0;for(;r<e.length;r++){var o=e[r],a=t[0],s=n.sub(i),u=o.sub(i),l=a.sub(i),c=As(s,s),h=As(s,u),f=As(u,u),d=As(l,s),p=As(l,u),g=c*f-h*h,v=(f*d-h*p)/g,m=(c*p-h*d)/g,y=i.z*(1-v-m)+n.z*v+o.z*m;if(isFinite(y))return y}return 1/0}for(var b=1/0,_=0,x=e;_<x.length;_+=1)b=Math.min(b,x[_].z);return b}var Is=Ei([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4).members,js=Ei([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]).members,ks=_s.VectorTileFeature.types,Ps=Math.cos(Math.PI/180*37.5),Ls=Math.pow(2,14)/.5,Rs=function(t){var e=this;this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach((function(t){e.gradients[t.id]={}})),this.layoutVertexArray=new ji,this.layoutVertexArray2=new ki,this.indexArray=new Vi,this.programConfigurations=new Ro(t.layers,t.zoom),this.segments=new so,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};Rs.prototype.populate=function(t,e,n){this.hasPattern=os("line",this.layers,e);for(var r=this.layers[0].layout.get("line-sort-key"),i=[],o=0,a=t;o<a.length;o+=1){var s=a[o],u=s.feature,l=s.id,c=s.index,h=s.sourceLayerIndex,f=this.layers[0]._featureFilter.needGeometry,d=Vo(u,f);if(this.layers[0]._featureFilter.filter(new si(this.zoom),d,n)){var p=r?r.evaluate(d,{},n):void 0,g={id:l,properties:u.properties,type:u.type,sourceLayerIndex:h,index:c,geometry:f?d.geometry:zo(u),patterns:{},sortKey:p};i.push(g)}}r&&i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var v=0,m=i;v<m.length;v+=1){var y=m[v],b=y.geometry,_=y.index,x=y.sourceLayerIndex;if(this.hasPattern){var w=as("line",this.layers,y,this.zoom,e);this.patternFeatures.push(w)}else this.addFeature(y,b,_,n,{});e.featureIndex.insert(t[_].feature,b,_,x,this.index)}},Rs.prototype.update=function(t,e,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n)},Rs.prototype.addFeatures=function(t,e,n){for(var r=0,i=this.patternFeatures;r<i.length;r+=1){var o=i[r];this.addFeature(o,o.geometry,o.index,e,n)}},Rs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Rs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Rs.prototype.upload=function(t){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=t.createVertexBuffer(this.layoutVertexArray2,js)),this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Is),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Rs.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Rs.prototype.lineFeatureClips=function(t){if(t.properties&&t.properties.hasOwnProperty("mapbox_clip_start")&&t.properties.hasOwnProperty("mapbox_clip_end"))return{start:+t.properties.mapbox_clip_start,end:+t.properties.mapbox_clip_end}},Rs.prototype.addFeature=function(t,e,n,r,i){var o=this.layers[0].layout,a=o.get("line-join").evaluate(t,{}),s=o.get("line-cap"),u=o.get("line-miter-limit"),l=o.get("line-round-limit");this.lineClips=this.lineFeatureClips(t);for(var c=0,h=e;c<h.length;c+=1)this.addLine(h[c],t,a,s,u,l);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,i,r)},Rs.prototype.addLine=function(t,e,n,r,i,o){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(var a=0;a<t.length-1;a++)this.totalDistance+=t[a].dist(t[a+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}for(var s="Polygon"===ks[e.type],u=t.length;u>=2&&t[u-1].equals(t[u-2]);)u--;for(var l=0;l<u-1&&t[l].equals(t[l+1]);)l++;if(!(u<(s?3:2))){"bevel"===n&&(i=1.05);var c,h=this.overscaling<=16?122880/(512*this.overscaling):0,f=this.segments.prepareSegment(10*u,this.layoutVertexArray,this.indexArray),d=void 0,p=void 0,g=void 0,v=void 0;this.e1=this.e2=-1,s&&(v=t[l].sub(c=t[u-2])._unit()._perp());for(var m=l;m<u;m++)if(!(p=m===u-1?s?t[l+1]:void 0:t[m+1])||!t[m].equals(p)){v&&(g=v),c&&(d=c),c=t[m],v=p?p.sub(c)._unit()._perp():g;var y=(g=g||v).add(v);0===y.x&&0===y.y||y._unit();var b=g.x*v.x+g.y*v.y,_=y.x*v.x+y.y*v.y,x=0!==_?1/_:1/0,w=2*Math.sqrt(2-2*_),O=_<Ps&&d&&p,S=g.x*v.y-g.y*v.x>0;if(O&&m>l){var C=c.dist(d);if(C>2*h){var E=c.sub(c.sub(d)._mult(h/C)._round());this.updateDistance(d,E),this.addCurrentVertex(E,g,0,0,f),d=E}}var T=d&&p,A=T?n:s?"butt":r;if(T&&"round"===A&&(x<o?A="miter":x<=2&&(A="fakeround")),"miter"===A&&x>i&&(A="bevel"),"bevel"===A&&(x>2&&(A="flipbevel"),x<i&&(A="miter")),d&&this.updateDistance(d,c),"miter"===A)y._mult(x),this.addCurrentVertex(c,y,0,0,f);else if("flipbevel"===A){if(x>100)y=v.mult(-1);else{var M=x*g.add(v).mag()/g.sub(v).mag();y._perp()._mult(M*(S?-1:1))}this.addCurrentVertex(c,y,0,0,f),this.addCurrentVertex(c,y.mult(-1),0,0,f)}else if("bevel"===A||"fakeround"===A){var I=-Math.sqrt(x*x-1),j=S?I:0,k=S?0:I;if(d&&this.addCurrentVertex(c,g,j,k,f),"fakeround"===A)for(var P=Math.round(180*w/Math.PI/20),L=1;L<P;L++){var R=L/P;if(.5!==R){var D=R-.5;R+=R*D*(R-1)*((1.0904+b*(b*(3.55645-1.43519*b)-3.2452))*D*D+(.848013+b*(.215638*b-1.06021)))}var N=v.sub(g)._mult(R)._add(g)._unit()._mult(S?-1:1);this.addHalfVertex(c,N.x,N.y,!1,S,0,f)}p&&this.addCurrentVertex(c,v,-j,-k,f)}else if("butt"===A)this.addCurrentVertex(c,y,0,0,f);else if("square"===A){var B=d?1:-1;this.addCurrentVertex(c,y,B,B,f)}else"round"===A&&(d&&(this.addCurrentVertex(c,g,0,0,f),this.addCurrentVertex(c,g,1,1,f,!0)),p&&(this.addCurrentVertex(c,v,-1,-1,f,!0),this.addCurrentVertex(c,v,0,0,f)));if(O&&m<u-1){var F=c.dist(p);if(F>2*h){var z=c.add(p.sub(c)._mult(h/F)._round());this.updateDistance(c,z),this.addCurrentVertex(z,v,0,0,f),c=z}}}}},Rs.prototype.addCurrentVertex=function(t,e,n,r,i,o){void 0===o&&(o=!1);var a=e.y*r-e.x,s=-e.y-e.x*r;this.addHalfVertex(t,e.x+e.y*n,e.y-e.x*n,o,!1,n,i),this.addHalfVertex(t,a,s,o,!0,-r,i),this.distance>Ls/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(t,e,n,r,i,o))},Rs.prototype.addHalfVertex=function(t,e,n,r,i,o,a){var s=.5*(this.lineClips?this.scaledDistance*(Ls-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((t.x<<1)+(r?1:0),(t.y<<1)+(i?1:0),Math.round(63*e)+128,Math.round(63*n)+128,1+(0===o?0:o<0?-1:1)|(63&s)<<2,s>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var u=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,u),a.primitiveLength++),i?this.e2=u:this.e1=u},Rs.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Rs.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},Br("LineBucket",Rs,{omit:["layers","patternFeatures"]});var Ds=new xi({"line-cap":new vi(Mt.layout_line["line-cap"]),"line-join":new mi(Mt.layout_line["line-join"]),"line-miter-limit":new vi(Mt.layout_line["line-miter-limit"]),"line-round-limit":new vi(Mt.layout_line["line-round-limit"]),"line-sort-key":new mi(Mt.layout_line["line-sort-key"])}),Ns={paint:new xi({"line-opacity":new mi(Mt.paint_line["line-opacity"]),"line-color":new mi(Mt.paint_line["line-color"]),"line-translate":new vi(Mt.paint_line["line-translate"]),"line-translate-anchor":new vi(Mt.paint_line["line-translate-anchor"]),"line-width":new mi(Mt.paint_line["line-width"]),"line-gap-width":new mi(Mt.paint_line["line-gap-width"]),"line-offset":new mi(Mt.paint_line["line-offset"]),"line-blur":new mi(Mt.paint_line["line-blur"]),"line-dasharray":new bi(Mt.paint_line["line-dasharray"]),"line-pattern":new yi(Mt.paint_line["line-pattern"]),"line-gradient":new _i(Mt.paint_line["line-gradient"])}),layout:Ds},Bs=new(function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(e,n){return n=new si(Math.floor(n.zoom),{now:n.now,fadeDuration:n.fadeDuration,zoomHistory:n.zoomHistory,transition:n.transition}),t.prototype.possiblyEvaluate.call(this,e,n)},e.prototype.evaluate=function(e,n,r,i){return n=f({},n,{zoom:Math.floor(n.zoom)}),t.prototype.evaluate.call(this,e,n,r,i)},e}(mi))(Ns.paint.properties["line-width"].specification);Bs.useIntegerZoom=!0;var Fs=function(t){function e(e){t.call(this,e,Ns),this.gradientVersion=0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){"line-gradient"===t&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Ge,this.gradientVersion=(this.gradientVersion+1)%s)},e.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},e.prototype.recalculate=function(e,n){t.prototype.recalculate.call(this,e,n),this.paint._values["line-floorwidth"]=Bs.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)},e.prototype.createBucket=function(t){return new Rs(t)},e.prototype.queryRadius=function(t){var e=t,n=zs(ea("line-width",this,e),ea("line-gap-width",this,e)),r=ea("line-offset",this,e);return n/2+Math.abs(r)+na(this.paint.get("line-translate"))},e.prototype.queryIntersectsFeature=function(t,e,n,r,o,a,s){var u=ra(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,s),l=s/2*zs(this.paint.get("line-width").evaluate(e,n),this.paint.get("line-gap-width").evaluate(e,n)),c=this.paint.get("line-offset").evaluate(e,n);return c&&(r=function(t,e){for(var n=[],r=new i(0,0),o=0;o<t.length;o++){for(var a=t[o],s=[],u=0;u<a.length;u++){var l=a[u],c=a[u+1],h=0===u?r:l.sub(a[u-1])._unit()._perp(),f=u===a.length-1?r:c.sub(l)._unit()._perp(),d=h._add(f)._unit();d._mult(1/(d.x*f.x+d.y*f.y)),s.push(d._mult(e)._add(l))}n.push(s)}return n}(r,c*s)),function(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];if(t.length>=3)for(var o=0;o<i.length;o++)if(Jo(t,i[o]))return!0;if(Xo(t,i,n))return!0}return!1}(u,r,l)},e.prototype.isTileClipped=function(){return!0},e}(wi);function zs(t,e){return e>0?e+2*t:t}var Vs=Ei([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Us=Ei([{name:"a_projected_pos",components:3,type:"Float32"}],4),Gs=(Ei([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Ei([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Hs=(Ei([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),Ei([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Ws=Ei([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Ys(t,e,n){return t.sections.forEach((function(t){t.text=function(t,e,n){var r=e.layout.get("text-transform").evaluate(n,{});return"uppercase"===r?t=t.toLocaleUpperCase():"lowercase"===r&&(t=t.toLocaleLowerCase()),ai.applyArabicShaping&&(t=ai.applyArabicShaping(t)),t}(t.text,e,n)})),t}Ei([{name:"triangle",components:3,type:"Uint16"}]),Ei([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Ei([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Ei([{type:"Float32",name:"offsetX"}]),Ei([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Xs={"!":"︕","#":"",$:"","%":"","&":"","(":"︵",")":"︶","*":"","+":"",",":"︐","-":"︲",".":"・","/":"",":":"︓",";":"︔","<":"︿","=":"",">":"﹀","?":"︖","@":"","[":"﹇","\\":"","]":"﹈","^":"",_:"︳","`":"","{":"︷","|":"―","}":"︸","~":"","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","":"︲","—":"︱","":"﹃","":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","":"︹","":"︺","〖":"︗","〗":"︘","":"︕","":"︵","":"︶","":"︐","":"︲","":"・","":"︓","":"︔","":"︿","":"﹀","":"︖","":"﹇","":"﹈","_":"︳","":"︷","":"―","":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},$s=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},qs=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,h=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[n+d]=255&a,d+=p,a/=256,l-=8);t[n+d-p]|=128*g},Zs=Ks;function Ks(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Ks.Varint=0,Ks.Fixed64=1,Ks.Bytes=2,Ks.Fixed32=5;var Qs="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function Js(t){return t.type===Ks.Bytes?t.readVarint()+t.pos:t.pos+1}function tu(t,e,n){return n?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function eu(t,e,n){var r=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=t;i--)n.buf[i+r]=n.buf[i]}function nu(t,e){for(var n=0;n<t.length;n++)e.writeVarint(t[n])}function ru(t,e){for(var n=0;n<t.length;n++)e.writeSVarint(t[n])}function iu(t,e){for(var n=0;n<t.length;n++)e.writeFloat(t[n])}function ou(t,e){for(var n=0;n<t.length;n++)e.writeDouble(t[n])}function au(t,e){for(var n=0;n<t.length;n++)e.writeBoolean(t[n])}function su(t,e){for(var n=0;n<t.length;n++)e.writeFixed32(t[n])}function uu(t,e){for(var n=0;n<t.length;n++)e.writeSFixed32(t[n])}function lu(t,e){for(var n=0;n<t.length;n++)e.writeFixed64(t[n])}function cu(t,e){for(var n=0;n<t.length;n++)e.writeSFixed64(t[n])}function hu(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function fu(t,e,n){t[n]=e,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function du(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function pu(t,e,n){1===t&&n.readMessage(gu,e)}function gu(t,e,n){if(3===t){var r=n.readMessage(vu,{}),i=r.width,o=r.height,a=r.left,s=r.top,u=r.advance;e.push({id:r.id,bitmap:new ya({width:i+6,height:o+6},r.bitmap),metrics:{width:i,height:o,left:a,top:s,advance:u}})}}function vu(t,e,n){1===t?e.id=n.readVarint():2===t?e.bitmap=n.readBytes():3===t?e.width=n.readVarint():4===t?e.height=n.readVarint():5===t?e.left=n.readSVarint():6===t?e.top=n.readSVarint():7===t&&(e.advance=n.readVarint())}function mu(t){for(var e=0,n=0,r=0,i=t;r<i.length;r+=1){var o=i[r];e+=o.w*o.h,n=Math.max(n,o.w)}t.sort((function(t,e){return e.h-t.h}));for(var a=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),n),h:1/0}],s=0,u=0,l=0,c=t;l<c.length;l+=1)for(var h=c[l],f=a.length-1;f>=0;f--){var d=a[f];if(!(h.w>d.w||h.h>d.h)){if(h.x=d.x,h.y=d.y,u=Math.max(u,h.y+h.h),s=Math.max(s,h.x+h.w),h.w===d.w&&h.h===d.h){var p=a.pop();f<a.length&&(a[f]=p)}else h.h===d.h?(d.x+=h.w,d.w-=h.w):h.w===d.w?(d.y+=h.h,d.h-=h.h):(a.push({x:d.x+h.w,y:d.y,w:d.w-h.w,h:h.h}),d.y+=h.h,d.h-=h.h);break}}return{w:s,h:u,fill:e/(s*u)||0}}Ks.prototype={destroy:function(){this.buf=null},readFields:function(t,e,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),i=r>>3,o=this.pos;this.type=7&r,t(i,e,this),this.pos===o&&this.skip(r)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=hu(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=du(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=hu(this.buf,this.pos)+4294967296*hu(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=hu(this.buf,this.pos)+4294967296*du(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=$s(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=$s(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,n,r=this.buf;return e=127&(n=r[this.pos++]),n<128?e:(e|=(127&(n=r[this.pos++]))<<7,n<128?e:(e|=(127&(n=r[this.pos++]))<<14,n<128?e:(e|=(127&(n=r[this.pos++]))<<21,n<128?e:function(t,e,n){var r,i,o=n.buf;if(r=(112&(i=o[n.pos++]))>>4,i<128)return tu(t,r,e);if(r|=(127&(i=o[n.pos++]))<<3,i<128)return tu(t,r,e);if(r|=(127&(i=o[n.pos++]))<<10,i<128)return tu(t,r,e);if(r|=(127&(i=o[n.pos++]))<<17,i<128)return tu(t,r,e);if(r|=(127&(i=o[n.pos++]))<<24,i<128)return tu(t,r,e);if(r|=(1&(i=o[n.pos++]))<<31,i<128)return tu(t,r,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(n=r[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&Qs?function(t,e,n){return Qs.decode(t.subarray(e,n))}(this.buf,e,t):function(t,e,n){for(var r="",i=e;i<n;){var o,a,s,u=t[i],l=null,c=u>239?4:u>223?3:u>191?2:1;if(i+c>n)break;1===c?u<128&&(l=u):2===c?128==(192&(o=t[i+1]))&&(l=(31&u)<<6|63&o)<=127&&(l=null):3===c?(a=t[i+2],128==(192&(o=t[i+1]))&&128==(192&a)&&((l=(15&u)<<12|(63&o)<<6|63&a)<=2047||l>=55296&&l<=57343)&&(l=null)):4===c&&(a=t[i+2],s=t[i+3],128==(192&(o=t[i+1]))&&128==(192&a)&&128==(192&s)&&((l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||l>=1114112)&&(l=null)),null===l?(l=65533,c=1):l>65535&&(l-=65536,r+=String.fromCharCode(l>>>10&1023|55296),l=56320|1023&l),r+=String.fromCharCode(l),i+=c}return r}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Ks.Bytes)return t.push(this.readVarint(e));var n=Js(this);for(t=t||[];this.pos<n;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==Ks.Bytes)return t.push(this.readSVarint());var e=Js(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==Ks.Bytes)return t.push(this.readBoolean());var e=Js(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==Ks.Bytes)return t.push(this.readFloat());var e=Js(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==Ks.Bytes)return t.push(this.readDouble());var e=Js(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==Ks.Bytes)return t.push(this.readFixed32());var e=Js(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==Ks.Bytes)return t.push(this.readSFixed32());var e=Js(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==Ks.Bytes)return t.push(this.readFixed64());var e=Js(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==Ks.Bytes)return t.push(this.readSFixed64());var e=Js(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===Ks.Varint)for(;this.buf[this.pos++]>127;);else if(e===Ks.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Ks.Fixed32)this.pos+=4;else{if(e!==Ks.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var n=new Uint8Array(e);n.set(this.buf),this.buf=n,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),fu(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),fu(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),fu(this.buf,-1&t,this.pos),fu(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),fu(this.buf,-1&t,this.pos),fu(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)>268435455||t<0?function(t,e){var n,r;if(t>=0?(n=t%4294967296|0,r=t/4294967296|0):(r=~(-t/4294967296),4294967295^(n=~(-t%4294967296))?n=n+1|0:(n=0,r=r+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,n){n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,n.buf[n.pos]=127&(t>>>=7)}(n,0,e),function(t,e){var n=(7&t)<<4;e.buf[e.pos++]|=n|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(r,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,n){for(var r,i,o=0;o<e.length;o++){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){r>56319||o+1===e.length?(t[n++]=239,t[n++]=191,t[n++]=189):i=r;continue}if(r<56320){t[n++]=239,t[n++]=191,t[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(t[n++]=239,t[n++]=191,t[n++]=189,i=null);r<128?t[n++]=r:(r<2048?t[n++]=r>>6|192:(r<65536?t[n++]=r>>12|224:(t[n++]=r>>18|240,t[n++]=r>>12&63|128),t[n++]=r>>6&63|128),t[n++]=63&r|128)}return n}(this.buf,t,this.pos);var n=this.pos-e;n>=128&&eu(e,n,this),this.pos=e-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),qs(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),qs(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var n=0;n<e;n++)this.buf[this.pos++]=t[n]},writeRawMessage:function(t,e){this.pos++;var n=this.pos;t(e,this);var r=this.pos-n;r>=128&&eu(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(t,e,n){this.writeTag(t,Ks.Bytes),this.writeRawMessage(e,n)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,nu,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,ru,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,au,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,iu,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,ou,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,su,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,uu,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,lu,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,cu,e)},writeBytesField:function(t,e){this.writeTag(t,Ks.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Ks.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Ks.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Ks.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Ks.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Ks.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Ks.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Ks.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Ks.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Ks.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var yu=function(t,e){var n=e.pixelRatio,r=e.version,i=e.stretchX,o=e.stretchY,a=e.content;this.paddedRect=t,this.pixelRatio=n,this.stretchX=i,this.stretchY=o,this.content=a,this.version=r},bu={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};bu.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},bu.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},bu.tlbr.get=function(){return this.tl.concat(this.br)},bu.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(yu.prototype,bu);var _u=function(t,e){var n={},r={};this.haveRenderCallbacks=[];var i=[];this.addImages(t,n,i),this.addImages(e,r,i);var o=mu(i),a=new ba({width:o.w||1,height:o.h||1});for(var s in t){var u=t[s],l=n[s].paddedRect;ba.copy(u.data,a,{x:0,y:0},{x:l.x+1,y:l.y+1},u.data)}for(var c in e){var h=e[c],f=r[c].paddedRect,d=f.x+1,p=f.y+1,g=h.data.width,v=h.data.height;ba.copy(h.data,a,{x:0,y:0},{x:d,y:p},h.data),ba.copy(h.data,a,{x:0,y:v-1},{x:d,y:p-1},{width:g,height:1}),ba.copy(h.data,a,{x:0,y:0},{x:d,y:p+v},{width:g,height:1}),ba.copy(h.data,a,{x:g-1,y:0},{x:d-1,y:p},{width:1,height:v}),ba.copy(h.data,a,{x:0,y:0},{x:d+g,y:p},{width:1,height:v})}this.image=a,this.iconPositions=n,this.patternPositions=r};_u.prototype.addImages=function(t,e,n){for(var r in t){var i=t[r],o={x:0,y:0,w:i.data.width+2,h:i.data.height+2};n.push(o),e[r]=new yu(o,i),i.hasRenderCallback&&this.haveRenderCallbacks.push(r)}},_u.prototype.patchUpdatedImages=function(t,e){for(var n in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[n],t.getImage(n),e),this.patchUpdatedImage(this.patternPositions[n],t.getImage(n),e)},_u.prototype.patchUpdatedImage=function(t,e,n){if(t&&e&&t.version!==e.version){t.version=e.version;var r=t.tl;n.update(e.data,void 0,{x:r[0],y:r[1]})}},Br("ImagePosition",yu),Br("ImageAtlas",_u);var xu={horizontal:1,vertical:2,horizontalOnly:3},wu=function(){this.scale=1,this.fontStack="",this.imageName=null};wu.forText=function(t,e){var n=new wu;return n.scale=t||1,n.fontStack=e,n},wu.forImage=function(t){var e=new wu;return e.imageName=t,e};var Ou=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function Su(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g){var v,m=Ou.fromFeature(t,i);h===xu.vertical&&m.verticalizePunctuation();var y=ai.processBidirectionalText,b=ai.processStyledBidirectionalText;if(y&&1===m.sections.length){v=[];for(var _=0,x=y(m.toString(),ju(m,l,o,e,r,d,p));_<x.length;_+=1){var w=x[_],O=new Ou;O.text=w,O.sections=m.sections;for(var S=0;S<w.length;S++)O.sectionIndex.push(0);v.push(O)}}else if(b){v=[];for(var C=0,E=b(m.text,m.sectionIndex,ju(m,l,o,e,r,d,p));C<E.length;C+=1){var T=E[C],A=new Ou;A.text=T[0],A.sectionIndex=T[1],A.sections=m.sections,v.push(A)}}else v=function(t,e){for(var n=[],r=t.text,i=0,o=0,a=e;o<a.length;o+=1){var s=a[o];n.push(t.substring(i,s)),i=s}return i<r.length&&n.push(t.substring(i,r.length)),n}(m,ju(m,l,o,e,r,d,p));var M=[],I={positionedLines:M,text:m.toString(),top:c[1],bottom:c[1],left:c[0],right:c[0],writingMode:h,iconsInText:!1,verticalizable:!1};return function(t,e,n,r,i,o,a,s,u,l,c,h){for(var f=0,d=-17,p=0,g=0,v="right"===s?1:"left"===s?0:.5,m=0,y=0,b=i;y<b.length;y+=1){var _=b[y];_.trim();var x=_.getMaxScale(),w=24*(x-1),O={positionedGlyphs:[],lineOffset:0};t.positionedLines[m]=O;var S=O.positionedGlyphs,C=0;if(_.length()){for(var E=0;E<_.length();E++){var T=_.getSection(E),A=_.getSectionIndex(E),M=_.getCharCode(E),I=0,j=null,k=null,P=null,L=24,R=!(u===xu.horizontal||!c&&!Xr(M)||c&&(Cu[M]||(H=M,Wr.Arabic(H)||Wr["Arabic Supplement"](H)||Wr["Arabic Extended-A"](H)||Wr["Arabic Presentation Forms-A"](H)||Wr["Arabic Presentation Forms-B"](H))));if(T.imageName){var D=r[T.imageName];if(!D)continue;P=T.imageName,t.iconsInText=t.iconsInText||!0,k=D.paddedRect;var N=D.displaySize;T.scale=24*T.scale/h,I=w+(24-N[1]*T.scale),L=(j={width:N[0],height:N[1],left:1,top:-3,advance:R?N[1]:N[0]}).advance;var B=R?N[0]*T.scale-24*x:N[1]*T.scale-24*x;B>0&&B>C&&(C=B)}else{var F=n[T.fontStack],z=F&&F[M];if(z&&z.rect)k=z.rect,j=z.metrics;else{var V=e[T.fontStack],U=V&&V[M];if(!U)continue;j=U.metrics}I=24*(x-T.scale)}R?(t.verticalizable=!0,S.push({glyph:M,imageName:P,x:f,y:d+I,vertical:R,scale:T.scale,fontStack:T.fontStack,sectionIndex:A,metrics:j,rect:k}),f+=L*T.scale+l):(S.push({glyph:M,imageName:P,x:f,y:d+I,vertical:R,scale:T.scale,fontStack:T.fontStack,sectionIndex:A,metrics:j,rect:k}),f+=j.advance*T.scale+l)}0!==S.length&&(p=Math.max(f-l,p),Pu(S,0,S.length-1,v,C)),f=0;var G=o*x+C;O.lineOffset=Math.max(C,w),d+=G,g=Math.max(G,g),++m}else d+=o,++m}var H,W=d- -17,Y=ku(a),X=Y.horizontalAlign,$=Y.verticalAlign;(function(t,e,n,r,i,o,a,s,u){var l,c=(e-n)*i;l=o!==a?-s*r- -17:(-r*u+.5)*a;for(var h=0,f=t;h<f.length;h+=1)for(var d=0,p=f[h].positionedGlyphs;d<p.length;d+=1){var g=p[d];g.x+=c,g.y+=l}})(t.positionedLines,v,X,$,p,g,o,W,i.length),t.top+=-$*W,t.bottom=t.top+W,t.left+=-X*p,t.right=t.left+p}(I,e,n,r,v,a,s,u,h,l,f,g),!function(t){for(var e=0,n=t;e<n.length;e+=1)if(0!==n[e].positionedGlyphs.length)return!1;return!0}(M)&&I}Ou.fromFeature=function(t,e){for(var n=new Ou,r=0;r<t.sections.length;r++){var i=t.sections[r];i.image?n.addImageSection(i):n.addTextSection(i,e)}return n},Ou.prototype.length=function(){return this.text.length},Ou.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},Ou.prototype.getSectionIndex=function(t){return this.sectionIndex[t]},Ou.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},Ou.prototype.verticalizePunctuation=function(){this.text=function(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n+1)||null,i=t.charCodeAt(n-1)||null;e+=r&&$r(r)&&!Xs[t[n+1]]||i&&$r(i)&&!Xs[t[n-1]]||!Xs[t[n]]?t[n]:Xs[t[n]]}return e}(this.text)},Ou.prototype.trim=function(){for(var t=0,e=0;e<this.text.length&&Cu[this.text.charCodeAt(e)];e++)t++;for(var n=this.text.length,r=this.text.length-1;r>=0&&r>=t&&Cu[this.text.charCodeAt(r)];r--)n--;this.text=this.text.substring(t,n),this.sectionIndex=this.sectionIndex.slice(t,n)},Ou.prototype.substring=function(t,e){var n=new Ou;return n.text=this.text.substring(t,e),n.sectionIndex=this.sectionIndex.slice(t,e),n.sections=this.sections,n},Ou.prototype.toString=function(){return this.text},Ou.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,n){return Math.max(e,t.sections[n].scale)}),0)},Ou.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(wu.forText(t.scale,t.fontStack||e));for(var n=this.sections.length-1,r=0;r<t.text.length;++r)this.sectionIndex.push(n)},Ou.prototype.addImageSection=function(t){var e=t.image?t.image.name:"";if(0!==e.length){var n=this.getNextImageSectionCharCode();n?(this.text+=String.fromCharCode(n),this.sections.push(wu.forImage(e)),this.sectionIndex.push(this.sections.length-1)):O("Reached maximum number of images 6401")}else O("Can't add FormattedSection with an empty image.")},Ou.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Cu={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Eu={};function Tu(t,e,n,r,i,o){if(e.imageName){var a=r[e.imageName];return a?a.displaySize[0]*e.scale*24/o+i:0}var s=n[e.fontStack],u=s&&s[t];return u?u.metrics.advance*e.scale+i:0}function Au(t,e,n,r){var i=Math.pow(t-e,2);return r?t<e?i/2:2*i:i+Math.abs(n)*n}function Mu(t,e,n){var r=0;return 10===t&&(r-=1e4),n&&(r+=150),40!==t&&65288!==t||(r+=50),41!==e&&65289!==e||(r+=50),r}function Iu(t,e,n,r,i,o){for(var a=null,s=Au(e,n,i,o),u=0,l=r;u<l.length;u+=1){var c=l[u],h=Au(e-c.x,n,i,o)+c.badness;h<=s&&(a=c,s=h)}return{index:t,x:e,priorBreak:a,badness:s}}function ju(t,e,n,r,i,o,a){if("point"!==o)return[];if(!t)return[];for(var s,u=[],l=function(t,e,n,r,i,o){for(var a=0,s=0;s<t.length();s++){var u=t.getSection(s);a+=Tu(t.getCharCode(s),u,r,i,e,o)}return a/Math.max(1,Math.ceil(a/n))}(t,e,n,r,i,a),c=t.text.indexOf("")>=0,h=0,f=0;f<t.length();f++){var d=t.getSection(f),p=t.getCharCode(f);if(Cu[p]||(h+=Tu(p,d,r,i,e,a)),f<t.length()-1){var g=!((s=p)<11904||!(Wr["Bopomofo Extended"](s)||Wr.Bopomofo(s)||Wr["CJK Compatibility Forms"](s)||Wr["CJK Compatibility Ideographs"](s)||Wr["CJK Compatibility"](s)||Wr["CJK Radicals Supplement"](s)||Wr["CJK Strokes"](s)||Wr["CJK Symbols and Punctuation"](s)||Wr["CJK Unified Ideographs Extension A"](s)||Wr["CJK Unified Ideographs"](s)||Wr["Enclosed CJK Letters and Months"](s)||Wr["Halfwidth and Fullwidth Forms"](s)||Wr.Hiragana(s)||Wr["Ideographic Description Characters"](s)||Wr["Kangxi Radicals"](s)||Wr["Katakana Phonetic Extensions"](s)||Wr.Katakana(s)||Wr["Vertical Forms"](s)||Wr["Yi Radicals"](s)||Wr["Yi Syllables"](s)));(Eu[p]||g||d.imageName)&&u.push(Iu(f+1,h,l,u,Mu(p,t.getCharCode(f+1),g&&c),!1))}}return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(Iu(t.length(),h,l,u,0,!0))}function ku(t){var e=.5,n=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:e,verticalAlign:n}}function Pu(t,e,n,r,i){if(r||i)for(var o=t[n],a=(t[n].x+o.metrics.advance*o.scale)*r,s=e;s<=n;s++)t[s].x-=a,t[s].y+=i}function Lu(t,e,n,r,i,o){var a,s=t.image;if(s.content){var u=s.content,l=s.pixelRatio||1;a=[u[0]/l,u[1]/l,s.displaySize[0]-u[2]/l,s.displaySize[1]-u[3]/l]}var c,h,f,d,p=e.left*o,g=e.right*o;"width"===n||"both"===n?(d=i[0]+p-r[3],h=i[0]+g+r[1]):h=(d=i[0]+(p+g-s.displaySize[0])/2)+s.displaySize[0];var v=e.top*o,m=e.bottom*o;return"height"===n||"both"===n?(c=i[1]+v-r[0],f=i[1]+m+r[2]):f=(c=i[1]+(v+m-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:c,right:h,bottom:f,left:d,collisionPadding:a}}Eu[10]=!0,Eu[32]=!0,Eu[38]=!0,Eu[40]=!0,Eu[41]=!0,Eu[43]=!0,Eu[45]=!0,Eu[47]=!0,Eu[173]=!0,Eu[183]=!0,Eu[8203]=!0,Eu[8208]=!0,Eu[8211]=!0,Eu[8231]=!0;var Ru=function(t){function e(e,n,r,i){t.call(this,e,n),this.angle=r,void 0!==i&&(this.segment=i)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(i);function Du(t,e){var n=e.expression;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new si(t+1))};if("source"===n.kind)return{kind:"source"};for(var r=n.zoomStops,i=n.interpolationType,o=0;o<r.length&&r[o]<=t;)o++;for(var a=o=Math.max(0,o-1);a<r.length&&r[a]<t+1;)a++;a=Math.min(r.length-1,a);var s=r[o],u=r[a];return"composite"===n.kind?{kind:"composite",minZoom:s,maxZoom:u,interpolationType:i}:{kind:"camera",minZoom:s,maxZoom:u,minSize:n.evaluate(new si(s)),maxSize:n.evaluate(new si(u)),interpolationType:i}}function Nu(t,e,n){var r=e.uSize,i=n.lowerSize;return"source"===t.kind?i/128:"composite"===t.kind?He(i/128,n.upperSize/128,e.uSizeT):r}function Bu(t,e){var n=0,r=0;if("constant"===t.kind)r=t.layoutSize;else if("source"!==t.kind){var i=t.interpolationType,o=i?c(an.interpolationFactor(i,e,t.minZoom,t.maxZoom),0,1):0;"camera"===t.kind?r=He(t.minSize,t.maxSize,o):n=o}return{uSizeT:n,uSize:r}}Br("Anchor",Ru);var Fu=Object.freeze({__proto__:null,getSizeData:Du,evaluateSizeForFeature:Nu,evaluateSizeForZoom:Bu,SIZE_PACK_FACTOR:128});function zu(t,e,n,r,i){if(void 0===e.segment)return!0;for(var o=e,a=e.segment+1,s=0;s>-n/2;){if(--a<0)return!1;s-=t[a].dist(o),o=t[a]}s+=t[a].dist(t[a+1]),a++;for(var u=[],l=0;s<n/2;){var c=t[a],h=t[a+1];if(!h)return!1;var f=t[a-1].angleTo(c)-c.angleTo(h);for(f=Math.abs((f+3*Math.PI)%(2*Math.PI)-Math.PI),u.push({distance:s,angleDelta:f}),l+=f;s-u[0].distance>r;)l-=u.shift().angleDelta;if(l>i)return!1;a++,s+=c.dist(h)}return!0}function Vu(t){for(var e=0,n=0;n<t.length-1;n++)e+=t[n].dist(t[n+1]);return e}function Uu(t,e,n){return t?.6*e*n:0}function Gu(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function Hu(t,e,n,r,i,o){for(var a=Uu(n,i,o),s=Gu(n,r)*o,u=0,l=Vu(t)/2,c=0;c<t.length-1;c++){var h=t[c],f=t[c+1],d=h.dist(f);if(u+d>l){var p=(l-u)/d,g=He(h.x,f.x,p),v=He(h.y,f.y,p),m=new Ru(g,v,f.angleTo(h),c);return m._round(),!a||zu(t,m,s,a,e)?m:void 0}u+=d}}function Wu(t,e,n,r,i,o,a,s,u){var l=Uu(r,o,a),c=Gu(r,i),h=c*a,f=0===t[0].x||t[0].x===u||0===t[0].y||t[0].y===u;return e-h<e/4&&(e=h+e/4),function t(e,n,r,i,o,a,s,u,l){for(var c=a/2,h=Vu(e),f=0,d=n-r,p=[],g=0;g<e.length-1;g++){for(var v=e[g],m=e[g+1],y=v.dist(m),b=m.angleTo(v);d+r<f+y;){var _=((d+=r)-f)/y,x=He(v.x,m.x,_),w=He(v.y,m.y,_);if(x>=0&&x<l&&w>=0&&w<l&&d-c>=0&&d+c<=h){var O=new Ru(x,w,b,g);O._round(),i&&!zu(e,O,a,i,o)||p.push(O)}}f+=y}return u||p.length||s||(p=t(e,f/2,r,i,o,a,s,!0,l)),p}(t,f?e/2*s%e:(c/2+2*o)*a*s%e,e,l,n,h,f,!1,u)}function Yu(t,e,n,r,o){for(var a=[],s=0;s<t.length;s++)for(var u=t[s],l=void 0,c=0;c<u.length-1;c++){var h=u[c],f=u[c+1];h.x<e&&f.x<e||(h.x<e?h=new i(e,h.y+(e-h.x)/(f.x-h.x)*(f.y-h.y))._round():f.x<e&&(f=new i(e,h.y+(e-h.x)/(f.x-h.x)*(f.y-h.y))._round()),h.y<n&&f.y<n||(h.y<n?h=new i(h.x+(n-h.y)/(f.y-h.y)*(f.x-h.x),n)._round():f.y<n&&(f=new i(h.x+(n-h.y)/(f.y-h.y)*(f.x-h.x),n)._round()),h.x>=r&&f.x>=r||(h.x>=r?h=new i(r,h.y+(r-h.x)/(f.x-h.x)*(f.y-h.y))._round():f.x>=r&&(f=new i(r,h.y+(r-h.x)/(f.x-h.x)*(f.y-h.y))._round()),h.y>=o&&f.y>=o||(h.y>=o?h=new i(h.x+(o-h.y)/(f.y-h.y)*(f.x-h.x),o)._round():f.y>=o&&(f=new i(h.x+(o-h.y)/(f.y-h.y)*(f.x-h.x),o)._round()),l&&h.equals(l[l.length-1])||a.push(l=[h]),l.push(f)))))}return a}function Xu(t,e,n,r){var o=[],a=t.image,s=a.pixelRatio,u=a.paddedRect.w-2,l=a.paddedRect.h-2,c=t.right-t.left,h=t.bottom-t.top,f=a.stretchX||[[0,u]],d=a.stretchY||[[0,l]],p=function(t,e){return t+e[1]-e[0]},g=f.reduce(p,0),v=d.reduce(p,0),m=u-g,y=l-v,b=0,_=g,x=0,w=v,O=0,S=m,C=0,E=y;if(a.content&&r){var T=a.content;b=$u(f,0,T[0]),x=$u(d,0,T[1]),_=$u(f,T[0],T[2]),w=$u(d,T[1],T[3]),O=T[0]-b,C=T[1]-x,S=T[2]-T[0]-_,E=T[3]-T[1]-w}var A=function(r,o,u,l){var f=Zu(r.stretch-b,_,c,t.left),d=Ku(r.fixed-O,S,r.stretch,g),p=Zu(o.stretch-x,w,h,t.top),m=Ku(o.fixed-C,E,o.stretch,v),y=Zu(u.stretch-b,_,c,t.left),T=Ku(u.fixed-O,S,u.stretch,g),A=Zu(l.stretch-x,w,h,t.top),M=Ku(l.fixed-C,E,l.stretch,v),I=new i(f,p),j=new i(y,p),k=new i(y,A),P=new i(f,A),L=new i(d/s,m/s),R=new i(T/s,M/s),D=e*Math.PI/180;if(D){var N=Math.sin(D),B=Math.cos(D),F=[B,-N,N,B];I._matMult(F),j._matMult(F),P._matMult(F),k._matMult(F)}var z=r.stretch+r.fixed,V=o.stretch+o.fixed;return{tl:I,tr:j,bl:P,br:k,tex:{x:a.paddedRect.x+1+z,y:a.paddedRect.y+1+V,w:u.stretch+u.fixed-z,h:l.stretch+l.fixed-V},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:L,pixelOffsetBR:R,minFontScaleX:S/s/c,minFontScaleY:E/s/h,isSDF:n}};if(r&&(a.stretchX||a.stretchY))for(var M=qu(f,m,g),I=qu(d,y,v),j=0;j<M.length-1;j++)for(var k=M[j],P=M[j+1],L=0;L<I.length-1;L++)o.push(A(k,I[L],P,I[L+1]));else o.push(A({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:u+1},{fixed:0,stretch:l+1}));return o}function $u(t,e,n){for(var r=0,i=0,o=t;i<o.length;i+=1){var a=o[i];r+=Math.max(e,Math.min(n,a[1]))-Math.max(e,Math.min(n,a[0]))}return r}function qu(t,e,n){for(var r=[{fixed:-1,stretch:0}],i=0,o=t;i<o.length;i+=1){var a=o[i],s=a[0],u=a[1],l=r[r.length-1];r.push({fixed:s-l.stretch,stretch:l.stretch}),r.push({fixed:s-l.stretch,stretch:l.stretch+(u-s)})}return r.push({fixed:e+1,stretch:n}),r}function Zu(t,e,n,r){return t/e*n+r}function Ku(t,e,n,r){return t-e*n/r}var Qu=function(t,e,n,r,o,a,s,u,l,c){if(this.boxStartIndex=t.length,l){var h=a.top,f=a.bottom,d=a.collisionPadding;d&&(h-=d[1],f+=d[3]);var p=f-h;p>0&&(p=Math.max(10,p),this.circleDiameter=p)}else{var g=a.top*s-u,v=a.bottom*s+u,m=a.left*s-u,y=a.right*s+u,b=a.collisionPadding;if(b&&(m-=b[0]*s,g-=b[1]*s,y+=b[2]*s,v+=b[3]*s),c){var _=new i(m,g),x=new i(y,g),w=new i(m,v),O=new i(y,v),S=c*Math.PI/180;_._rotate(S),x._rotate(S),w._rotate(S),O._rotate(S),m=Math.min(_.x,x.x,w.x,O.x),y=Math.max(_.x,x.x,w.x,O.x),g=Math.min(_.y,x.y,w.y,O.y),v=Math.max(_.y,x.y,w.y,O.y)}t.emplaceBack(e.x,e.y,m,g,y,v,n,r,o)}this.boxEndIndex=t.length},Ju=function(t,e){if(void 0===t&&(t=[]),void 0===e&&(e=tl),this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(var n=(this.length>>1)-1;n>=0;n--)this._down(n)};function tl(t,e){return t<e?-1:t>e?1:0}function el(t,e,n){void 0===e&&(e=1),void 0===n&&(n=!1);for(var r=1/0,o=1/0,a=-1/0,s=-1/0,u=t[0],l=0;l<u.length;l++){var c=u[l];(!l||c.x<r)&&(r=c.x),(!l||c.y<o)&&(o=c.y),(!l||c.x>a)&&(a=c.x),(!l||c.y>s)&&(s=c.y)}var h=Math.min(a-r,s-o),f=h/2,d=new Ju([],nl);if(0===h)return new i(r,o);for(var p=r;p<a;p+=h)for(var g=o;g<s;g+=h)d.push(new rl(p+f,g+f,f,t));for(var v=function(t){for(var e=0,n=0,r=0,i=t[0],o=0,a=i.length,s=a-1;o<a;s=o++){var u=i[o],l=i[s],c=u.x*l.y-l.x*u.y;n+=(u.x+l.x)*c,r+=(u.y+l.y)*c,e+=3*c}return new rl(n/e,r/e,0,t)}(t),m=d.length;d.length;){var y=d.pop();(y.d>v.d||!v.d)&&(v=y,n&&console.log("found best %d after %d probes",Math.round(1e4*y.d)/1e4,m)),y.max-v.d<=e||(d.push(new rl(y.p.x-(f=y.h/2),y.p.y-f,f,t)),d.push(new rl(y.p.x+f,y.p.y-f,f,t)),d.push(new rl(y.p.x-f,y.p.y+f,f,t)),d.push(new rl(y.p.x+f,y.p.y+f,f,t)),m+=4)}return n&&(console.log("num probes: "+m),console.log("best distance: "+v.d)),v.p}function nl(t,e){return e.max-t.max}function rl(t,e,n,r){this.p=new i(t,e),this.h=n,this.d=function(t,e){for(var n=!1,r=1/0,i=0;i<e.length;i++)for(var o=e[i],a=0,s=o.length,u=s-1;a<s;u=a++){var l=o[a],c=o[u];l.y>t.y!=c.y>t.y&&t.x<(c.x-l.x)*(t.y-l.y)/(c.y-l.y)+l.x&&(n=!n),r=Math.min(r,Ko(t,l,c))}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}Ju.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},Ju.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}},Ju.prototype.peek=function(){return this.data[0]},Ju.prototype._up=function(t){for(var e=this.data,n=this.compare,r=e[t];t>0;){var i=t-1>>1,o=e[i];if(n(r,o)>=0)break;e[t]=o,t=i}e[t]=r},Ju.prototype._down=function(t){for(var e=this.data,n=this.compare,r=this.length>>1,i=e[t];t<r;){var o=1+(t<<1),a=e[o],s=o+1;if(s<this.length&&n(e[s],a)<0&&(o=s,a=e[s]),n(a,i)>=0)break;e[t]=a,t=o}e[t]=i};var il=Number.POSITIVE_INFINITY;function ol(t,e){return e[1]!==il?function(t,e,n){var r=0,i=0;switch(e=Math.abs(e),n=Math.abs(n),t){case"top-right":case"top-left":case"top":i=n-7;break;case"bottom-right":case"bottom-left":case"bottom":i=7-n}switch(t){case"top-right":case"bottom-right":case"right":r=-e;break;case"top-left":case"bottom-left":case"left":r=e}return[r,i]}(t,e[0],e[1]):function(t,e){var n=0,r=0;e<0&&(e=0);var i=e/Math.sqrt(2);switch(t){case"top-right":case"top-left":r=i-7;break;case"bottom-right":case"bottom-left":r=7-i;break;case"bottom":r=7-e;break;case"top":r=e-7}switch(t){case"top-right":case"bottom-right":n=-i;break;case"top-left":case"bottom-left":n=i;break;case"left":n=e;break;case"right":n=-e}return[n,r]}(t,e[0])}function al(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function sl(t,e,n,r,o,a,s,u,l,c,h,f,d,p,g){var v=function(t,e,n,r,o,a,s,u){for(var l=r.layout.get("text-rotate").evaluate(a,{})*Math.PI/180,c=[],h=0,f=e.positionedLines;h<f.length;h+=1)for(var d=f[h],p=0,g=d.positionedGlyphs;p<g.length;p+=1){var v=g[p];if(v.rect){var m=v.rect||{},y=4,b=!0,_=1,x=0,w=(o||u)&&v.vertical,O=v.metrics.advance*v.scale/2;if(u&&e.verticalizable&&(x=d.lineOffset/2-(v.imageName?-(24-v.metrics.width*v.scale)/2:24*(v.scale-1))),v.imageName){var S=s[v.imageName];b=S.sdf,y=1/(_=S.pixelRatio)}var C=o?[v.x+O,v.y]:[0,0],E=o?[0,0]:[v.x+O+n[0],v.y+n[1]-x],T=[0,0];w&&(T=E,E=[0,0]);var A=(v.metrics.left-y)*v.scale-O+E[0],M=(-v.metrics.top-y)*v.scale+E[1],I=A+m.w*v.scale/_,j=M+m.h*v.scale/_,k=new i(A,M),P=new i(I,M),L=new i(A,j),R=new i(I,j);if(w){var D=new i(-O,O- -17),N=-Math.PI/2,B=12-O,F=new i(22-B,-(v.imageName?B:0)),z=new(Function.prototype.bind.apply(i,[null].concat(T)));k._rotateAround(N,D)._add(F)._add(z),P._rotateAround(N,D)._add(F)._add(z),L._rotateAround(N,D)._add(F)._add(z),R._rotateAround(N,D)._add(F)._add(z)}if(l){var V=Math.sin(l),U=Math.cos(l),G=[U,-V,V,U];k._matMult(G),P._matMult(G),L._matMult(G),R._matMult(G)}var H=new i(0,0),W=new i(0,0);c.push({tl:k,tr:P,bl:L,br:R,tex:m,writingMode:e.writingMode,glyphOffset:C,sectionIndex:v.sectionIndex,isSDF:b,pixelOffsetTL:H,pixelOffsetBR:W,minFontScaleX:0,minFontScaleY:0})}}return c}(0,n,u,o,a,s,r,t.allowVerticalPlacement),m=t.textSizeData,y=null;"source"===m.kind?(y=[128*o.layout.get("text-size").evaluate(s,{})])[0]>32640&&O(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):"composite"===m.kind&&((y=[128*p.compositeTextSizes[0].evaluate(s,{},g),128*p.compositeTextSizes[1].evaluate(s,{},g)])[0]>32640||y[1]>32640)&&O(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),t.addSymbols(t.text,v,y,u,a,s,c,e,l.lineStartIndex,l.lineLength,d,g);for(var b=0,_=h;b<_.length;b+=1)f[_[b]]=t.text.placedSymbolArray.length-1;return 4*v.length}function ul(t){for(var e in t)return t[e];return null}function ll(t,e,n,r){var i=t.compareText;if(e in i){for(var o=i[e],a=o.length-1;a>=0;a--)if(r.dist(o[a])<n)return!0}else i[e]=[];return i[e].push(r),!1}var cl=_s.VectorTileFeature.types,hl=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function fl(t,e,n,r,i,o,a,s,u,l,c,h,f){var d=s?Math.min(32640,Math.round(s[0])):0,p=s?Math.min(32640,Math.round(s[1])):0;t.emplaceBack(e,n,Math.round(32*r),Math.round(32*i),o,a,(d<<1)+(u?1:0),p,16*l,16*c,256*h,256*f)}function dl(t,e,n){t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n)}function pl(t){for(var e=0,n=t.sections;e<n.length;e+=1)if(Kr(n[e].text))return!0;return!1}var gl=function(t){this.layoutVertexArray=new Li,this.indexArray=new Vi,this.programConfigurations=t,this.segments=new so,this.dynamicLayoutVertexArray=new Ri,this.opacityVertexArray=new Di,this.placedSymbolArray=new Ji};gl.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length},gl.prototype.upload=function(t,e,n,r){this.isEmpty()||(n&&(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Vs.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,Us.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,hl,!0),this.opacityVertexBuffer.itemSize=1),(n||r)&&this.programConfigurations.upload(t))},gl.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},Br("SymbolBuffers",gl);var vl=function(t,e,n){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new n,this.segments=new so,this.collisionVertexArray=new zi};vl.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,Gs.members,!0)},vl.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},Br("CollisionBuffers",vl);var ml=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=sa([]),this.placementViewportMatrix=sa([]);var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Du(this.zoom,e["text-size"]),this.iconSizeData=Du(this.zoom,e["icon-size"]);var n=this.layers[0].layout,r=n.get("symbol-sort-key"),i=n.get("symbol-z-order");this.canOverlap=n.get("text-allow-overlap")||n.get("icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==i&&void 0!==r.constantOr(1),this.sortFeaturesByY=("viewport-y"===i||"auto"===i&&!this.sortFeaturesByKey)&&this.canOverlap,"point"===n.get("symbol-placement")&&(this.writingModes=n.get("text-writing-mode").map((function(t){return xu[t]}))),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id})),this.sourceID=t.sourceID};ml.prototype.createArrays=function(){this.text=new gl(new Ro(this.layers,this.zoom,(function(t){return/^text/.test(t)}))),this.icon=new gl(new Ro(this.layers,this.zoom,(function(t){return/^icon/.test(t)}))),this.glyphOffsetArray=new no,this.lineVertexArray=new ro,this.symbolInstances=new eo},ml.prototype.calculateGlyphDependencies=function(t,e,n,r,i){for(var o=0;o<t.length;o++)if(e[t.charCodeAt(o)]=!0,(n||r)&&i){var a=Xs[t.charAt(o)];a&&(e[a.charCodeAt(0)]=!0)}},ml.prototype.populate=function(t,e,n){var r=this.layers[0],i=r.layout,o=i.get("text-font"),a=i.get("text-field"),s=i.get("icon-image"),u=("constant"!==a.value.kind||a.value.value instanceof re&&!a.value.value.isEmpty()||a.value.value.toString().length>0)&&("constant"!==o.value.kind||o.value.value.length>0),l="constant"!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length>0,c=i.get("symbol-sort-key");if(this.features=[],u||l){for(var h=e.iconDependencies,f=e.glyphDependencies,d=e.availableImages,p=new si(this.zoom),g=0,v=t;g<v.length;g+=1){var m=v[g],y=m.feature,b=m.id,_=m.index,x=m.sourceLayerIndex,w=r._featureFilter.needGeometry,O=Vo(y,w);if(r._featureFilter.filter(p,O,n)){w||(O.geometry=zo(y));var S=void 0;if(u){var C=r.getValueAndResolveTokens("text-field",O,n,d),E=re.factory(C);pl(E)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===ii()||this.hasRTLText&&ai.isParsed())&&(S=Ys(E,r,O))}var T=void 0;if(l){var A=r.getValueAndResolveTokens("icon-image",O,n,d);T=A instanceof ie?A:ie.fromString(A)}if(S||T){var M=this.sortFeaturesByKey?c.evaluate(O,{},n):void 0;if(this.features.push({id:b,text:S,icon:T,index:_,sourceLayerIndex:x,geometry:O.geometry,properties:y.properties,type:cl[y.type],sortKey:M}),T&&(h[T.name]=!0),S){var I=o.evaluate(O,{},n).join(","),j="map"===i.get("text-rotation-alignment")&&"point"!==i.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(xu.vertical)>=0;for(var k=0,P=S.sections;k<P.length;k+=1){var L=P[k];if(L.image)h[L.image.name]=!0;else{var R=Yr(S.toString()),D=L.fontStack||I,N=f[D]=f[D]||{};this.calculateGlyphDependencies(L.text,N,j,this.allowVerticalPlacement,R)}}}}}}"line"===i.get("symbol-placement")&&(this.features=function(t){var e={},n={},r=[],i=0;function o(e){r.push(t[e]),i++}function a(t,e,i){var o=n[t];return delete n[t],n[e]=o,r[o].geometry[0].pop(),r[o].geometry[0]=r[o].geometry[0].concat(i[0]),o}function s(t,n,i){var o=e[n];return delete e[n],e[t]=o,r[o].geometry[0].shift(),r[o].geometry[0]=i[0].concat(r[o].geometry[0]),o}function u(t,e,n){var r=n?e[0][e[0].length-1]:e[0][0];return t+":"+r.x+":"+r.y}for(var l=0;l<t.length;l++){var c=t[l],h=c.geometry,f=c.text?c.text.toString():null;if(f){var d=u(f,h),p=u(f,h,!0);if(d in n&&p in e&&n[d]!==e[p]){var g=s(d,p,h),v=a(d,p,r[g].geometry);delete e[d],delete n[p],n[u(f,r[v].geometry,!0)]=v,r[g].geometry=null}else d in n?a(d,p,h):p in e?s(d,p,h):(o(l),e[d]=i-1,n[p]=i-1)}else o(l)}return r.filter((function(t){return t.geometry}))}(this.features)),this.sortFeaturesByKey&&this.features.sort((function(t,e){return t.sortKey-e.sortKey}))}},ml.prototype.update=function(t,e,n){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,n),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,n))},ml.prototype.isEmpty=function(){return 0===this.symbolInstances.length&&!this.hasRTLText},ml.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},ml.prototype.upload=function(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},ml.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},ml.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()},ml.prototype.addToLineVertexArray=function(t,e){var n=this.lineVertexArray.length;if(void 0!==t.segment){for(var r=t.dist(e[t.segment+1]),i=t.dist(e[t.segment]),o={},a=t.segment+1;a<e.length;a++)o[a]={x:e[a].x,y:e[a].y,tileUnitDistanceFromAnchor:r},a<e.length-1&&(r+=e[a+1].dist(e[a]));for(var s=t.segment||0;s>=0;s--)o[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s>0&&(i+=e[s-1].dist(e[s]));for(var u=0;u<e.length;u++){var l=o[u];this.lineVertexArray.emplaceBack(l.x,l.y,l.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}},ml.prototype.addSymbols=function(t,e,n,r,i,o,a,s,u,l,c,h){for(var f=t.indexArray,d=t.layoutVertexArray,p=t.segments.prepareSegment(4*e.length,d,f,this.canOverlap?o.sortKey:void 0),g=this.glyphOffsetArray.length,v=p.vertexLength,m=this.allowVerticalPlacement&&a===xu.vertical?Math.PI/2:0,y=o.text&&o.text.sections,b=0;b<e.length;b++){var _=e[b],x=_.tl,w=_.tr,O=_.bl,S=_.br,C=_.tex,E=_.pixelOffsetTL,T=_.pixelOffsetBR,A=_.minFontScaleX,M=_.minFontScaleY,I=_.glyphOffset,j=_.isSDF,k=_.sectionIndex,P=p.vertexLength,L=I[1];fl(d,s.x,s.y,x.x,L+x.y,C.x,C.y,n,j,E.x,E.y,A,M),fl(d,s.x,s.y,w.x,L+w.y,C.x+C.w,C.y,n,j,T.x,E.y,A,M),fl(d,s.x,s.y,O.x,L+O.y,C.x,C.y+C.h,n,j,E.x,T.y,A,M),fl(d,s.x,s.y,S.x,L+S.y,C.x+C.w,C.y+C.h,n,j,T.x,T.y,A,M),dl(t.dynamicLayoutVertexArray,s,m),f.emplaceBack(P,P+1,P+2),f.emplaceBack(P+1,P+2,P+3),p.vertexLength+=4,p.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(I[0]),b!==e.length-1&&k===e[b+1].sectionIndex||t.programConfigurations.populatePaintArrays(d.length,o,o.index,{},h,y&&y[k])}t.placedSymbolArray.emplaceBack(s.x,s.y,g,this.glyphOffsetArray.length-g,v,u,l,s.segment,n?n[0]:0,n?n[1]:0,r[0],r[1],a,0,!1,0,c)},ml.prototype._addCollisionDebugVertex=function(t,e,n,r,i,o){return e.emplaceBack(0,0),t.emplaceBack(n.x,n.y,r,i,Math.round(o.x),Math.round(o.y))},ml.prototype.addCollisionDebugVertices=function(t,e,n,r,o,a,s){var u=o.segments.prepareSegment(4,o.layoutVertexArray,o.indexArray),l=u.vertexLength,c=o.layoutVertexArray,h=o.collisionVertexArray,f=s.anchorX,d=s.anchorY;this._addCollisionDebugVertex(c,h,a,f,d,new i(t,e)),this._addCollisionDebugVertex(c,h,a,f,d,new i(n,e)),this._addCollisionDebugVertex(c,h,a,f,d,new i(n,r)),this._addCollisionDebugVertex(c,h,a,f,d,new i(t,r)),u.vertexLength+=4;var p=o.indexArray;p.emplaceBack(l,l+1),p.emplaceBack(l+1,l+2),p.emplaceBack(l+2,l+3),p.emplaceBack(l+3,l),u.primitiveLength+=4},ml.prototype.addDebugCollisionBoxes=function(t,e,n,r){for(var i=t;i<e;i++){var o=this.collisionBoxArray.get(i);this.addCollisionDebugVertices(o.x1,o.y1,o.x2,o.y2,r?this.textCollisionBox:this.iconCollisionBox,o.anchorPoint,n)}},ml.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new vl(Bi,Hs.members,Xi),this.iconCollisionBox=new vl(Bi,Hs.members,Xi);for(var t=0;t<this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.verticalTextBoxStartIndex,e.verticalTextBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e,!1),this.addDebugCollisionBoxes(e.verticalIconBoxStartIndex,e.verticalIconBoxEndIndex,e,!1)}},ml.prototype._deserializeCollisionBoxesForSymbol=function(t,e,n,r,i,o,a,s,u){for(var l={},c=e;c<n;c++){var h=t.get(c);l.textBox={x1:h.x1,y1:h.y1,x2:h.x2,y2:h.y2,anchorPointX:h.anchorPointX,anchorPointY:h.anchorPointY},l.textFeatureIndex=h.featureIndex;break}for(var f=r;f<i;f++){var d=t.get(f);l.verticalTextBox={x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2,anchorPointX:d.anchorPointX,anchorPointY:d.anchorPointY},l.verticalTextFeatureIndex=d.featureIndex;break}for(var p=o;p<a;p++){var g=t.get(p);l.iconBox={x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2,anchorPointX:g.anchorPointX,anchorPointY:g.anchorPointY},l.iconFeatureIndex=g.featureIndex;break}for(var v=s;v<u;v++){var m=t.get(v);l.verticalIconBox={x1:m.x1,y1:m.y1,x2:m.x2,y2:m.y2,anchorPointX:m.anchorPointX,anchorPointY:m.anchorPointY},l.verticalIconFeatureIndex=m.featureIndex;break}return l},ml.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e<this.symbolInstances.length;e++){var n=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex,n.verticalIconBoxStartIndex,n.verticalIconBoxEndIndex))}},ml.prototype.hasTextData=function(){return this.text.segments.get().length>0},ml.prototype.hasIconData=function(){return this.icon.segments.get().length>0},ml.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},ml.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},ml.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},ml.prototype.addIndicesForPlacedSymbol=function(t,e){for(var n=t.placedSymbolArray.get(e),r=n.vertexStartIndex+4*n.numGlyphs,i=n.vertexStartIndex;i<r;i+=4)t.indexArray.emplaceBack(i,i+1,i+2),t.indexArray.emplaceBack(i+1,i+2,i+3)},ml.prototype.getSortedSymbolIndexes=function(t){if(this.sortedAngle===t&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var e=Math.sin(t),n=Math.cos(t),r=[],i=[],o=[],a=0;a<this.symbolInstances.length;++a){o.push(a);var s=this.symbolInstances.get(a);r.push(0|Math.round(e*s.anchorX+n*s.anchorY)),i.push(s.featureIndex)}return o.sort((function(t,e){return r[t]-r[e]||i[e]-i[t]})),o},ml.prototype.addToSortKeyRanges=function(t,e){var n=this.sortKeyRanges[this.sortKeyRanges.length-1];n&&n.sortKey===e?n.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})},ml.prototype.sortFeatures=function(t){var e=this;if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var n=0,r=this.symbolInstanceIndexes;n<r.length;n+=1){var i=this.symbolInstances.get(r[n]);this.featureSortOrder.push(i.featureIndex),[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach((function(t,n,r){t>=0&&r.indexOf(t)===n&&e.addIndicesForPlacedSymbol(e.text,t)})),i.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,i.verticalPlacedTextSymbolIndex),i.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,i.placedIconSymbolIndex),i.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,i.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Br("SymbolBucket",ml,{omit:["layers","collisionBoxArray","features","compareText"]}),ml.MAX_GLYPHS=65535,ml.addDynamicAttributes=dl;var yl=new xi({"symbol-placement":new vi(Mt.layout_symbol["symbol-placement"]),"symbol-spacing":new vi(Mt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new vi(Mt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new mi(Mt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new vi(Mt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new vi(Mt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new vi(Mt.layout_symbol["icon-ignore-placement"]),"icon-optional":new vi(Mt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new vi(Mt.layout_symbol["icon-rotation-alignment"]),"icon-size":new mi(Mt.layout_symbol["icon-size"]),"icon-text-fit":new vi(Mt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new vi(Mt.layout_symbol["icon-text-fit-padding"]),"icon-image":new mi(Mt.layout_symbol["icon-image"]),"icon-rotate":new mi(Mt.layout_symbol["icon-rotate"]),"icon-padding":new vi(Mt.layout_symbol["icon-padding"]),"icon-keep-upright":new vi(Mt.layout_symbol["icon-keep-upright"]),"icon-offset":new mi(Mt.layout_symbol["icon-offset"]),"icon-anchor":new mi(Mt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new vi(Mt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new vi(Mt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new vi(Mt.layout_symbol["text-rotation-alignment"]),"text-field":new mi(Mt.layout_symbol["text-field"]),"text-font":new mi(Mt.layout_symbol["text-font"]),"text-size":new mi(Mt.layout_symbol["text-size"]),"text-max-width":new mi(Mt.layout_symbol["text-max-width"]),"text-line-height":new vi(Mt.layout_symbol["text-line-height"]),"text-letter-spacing":new mi(Mt.layout_symbol["text-letter-spacing"]),"text-justify":new mi(Mt.layout_symbol["text-justify"]),"text-radial-offset":new mi(Mt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new vi(Mt.layout_symbol["text-variable-anchor"]),"text-anchor":new mi(Mt.layout_symbol["text-anchor"]),"text-max-angle":new vi(Mt.layout_symbol["text-max-angle"]),"text-writing-mode":new vi(Mt.layout_symbol["text-writing-mode"]),"text-rotate":new mi(Mt.layout_symbol["text-rotate"]),"text-padding":new vi(Mt.layout_symbol["text-padding"]),"text-keep-upright":new vi(Mt.layout_symbol["text-keep-upright"]),"text-transform":new mi(Mt.layout_symbol["text-transform"]),"text-offset":new mi(Mt.layout_symbol["text-offset"]),"text-allow-overlap":new vi(Mt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new vi(Mt.layout_symbol["text-ignore-placement"]),"text-optional":new vi(Mt.layout_symbol["text-optional"])}),bl={paint:new xi({"icon-opacity":new mi(Mt.paint_symbol["icon-opacity"]),"icon-color":new mi(Mt.paint_symbol["icon-color"]),"icon-halo-color":new mi(Mt.paint_symbol["icon-halo-color"]),"icon-halo-width":new mi(Mt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new mi(Mt.paint_symbol["icon-halo-blur"]),"icon-translate":new vi(Mt.paint_symbol["icon-translate"]),"icon-translate-anchor":new vi(Mt.paint_symbol["icon-translate-anchor"]),"text-opacity":new mi(Mt.paint_symbol["text-opacity"]),"text-color":new mi(Mt.paint_symbol["text-color"],{runtimeType:Vt,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),"text-halo-color":new mi(Mt.paint_symbol["text-halo-color"]),"text-halo-width":new mi(Mt.paint_symbol["text-halo-width"]),"text-halo-blur":new mi(Mt.paint_symbol["text-halo-blur"]),"text-translate":new vi(Mt.paint_symbol["text-translate"]),"text-translate-anchor":new vi(Mt.paint_symbol["text-translate-anchor"])}),layout:yl},_l=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Nt,this.defaultValue=t};_l.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},_l.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},_l.prototype.outputDefined=function(){return!1},_l.prototype.serialize=function(){return null},Br("FormatSectionOverride",_l,{omit:["defaultValue"]});var xl=function(t){function e(e){t.call(this,e,bl)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.recalculate=function(e,n){if(t.prototype.recalculate.call(this,e,n),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var r=this.layout.get("text-writing-mode");if(r){for(var i=[],o=0,a=r;o<a.length;o+=1){var s=a[o];i.indexOf(s)<0&&i.push(s)}this.layout._values["text-writing-mode"]=i}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()},e.prototype.getValueAndResolveTokens=function(t,e,n,r){var i=this.layout.get(t).evaluate(e,{},n,r),o=this._unevaluatedLayout._values[t];return o.isDataDriven()||Yn(o.value)||!i?i:function(t,e){return e.replace(/{([^{}]+)}/g,(function(e,n){return n in t?String(t[n]):""}))}(e.properties,i)},e.prototype.createBucket=function(t){return new ml(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype._setPaintOverrides=function(){for(var t=0,n=bl.paint.overridableProperties;t<n.length;t+=1){var r=n[t];if(e.hasPaintOverride(this.layout,r)){var i,o=this.paint.get(r),a=new _l(o),s=new Wn(a,o.property.specification);i="constant"===o.value.kind||"source"===o.value.kind?new $n("source",s):new qn("composite",s,o.value.zoomStops,o.value._interpolationType),this.paint._values[r]=new pi(o.property,i,o.parameters)}}},e.prototype._handleOverridablePaintPropertyUpdate=function(t,n,r){return!(!this.layout||n.isDataDriven()||r.isDataDriven())&&e.hasPaintOverride(this.layout,t)},e.hasPaintOverride=function(t,e){var n=t.get("text-field"),r=bl.paint.properties[e],i=!1,o=function(t){for(var e=0,n=t;e<n.length;e+=1)if(r.overrides&&r.overrides.hasOverride(n[e]))return void(i=!0)};if("constant"===n.value.kind&&n.value.value instanceof re)o(n.value.value.sections);else if("source"===n.value.kind){var a=function(t){i||(t instanceof le&&se(t.value)===Wt?o(t.value.sections):t instanceof de?o(t.sections):t.eachChild(a))},s=n.value;s._styleExpression&&a(s._styleExpression.expression)}return i},e}(wi),wl={paint:new xi({"background-color":new vi(Mt.paint_background["background-color"]),"background-pattern":new bi(Mt.paint_background["background-pattern"]),"background-opacity":new vi(Mt.paint_background["background-opacity"])})},Ol=function(t){function e(e){t.call(this,e,wl)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(wi),Sl={paint:new xi({"raster-opacity":new vi(Mt.paint_raster["raster-opacity"]),"raster-hue-rotate":new vi(Mt.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new vi(Mt.paint_raster["raster-brightness-min"]),"raster-brightness-max":new vi(Mt.paint_raster["raster-brightness-max"]),"raster-saturation":new vi(Mt.paint_raster["raster-saturation"]),"raster-contrast":new vi(Mt.paint_raster["raster-contrast"]),"raster-resampling":new vi(Mt.paint_raster["raster-resampling"]),"raster-fade-duration":new vi(Mt.paint_raster["raster-fade-duration"])})},Cl=function(t){function e(e){t.call(this,e,Sl)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(wi),El=function(t){function e(e){t.call(this,e,{}),this.implementation=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.is3D=function(){return"3d"===this.implementation.renderingMode},e.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},e.prototype.recalculate=function(){},e.prototype.updateTransitions=function(){},e.prototype.hasTransition=function(){},e.prototype.serialize=function(){},e.prototype.onAdd=function(t){this.implementation.onAdd&&this.implementation.onAdd(t,t.painter.context.gl)},e.prototype.onRemove=function(t){this.implementation.onRemove&&this.implementation.onRemove(t,t.painter.context.gl)},e}(wi),Tl={circle:fa,heatmap:wa,hillshade:Sa,fill:cs,"fill-extrusion":Ts,line:Fs,symbol:xl,background:Ol,raster:Cl},Al=a.HTMLImageElement,Ml=a.HTMLCanvasElement,Il=a.HTMLVideoElement,jl=a.ImageData,kl=a.ImageBitmap,Pl=function(t,e,n,r){this.context=t,this.format=n,this.texture=t.gl.createTexture(),this.update(e,r)};Pl.prototype.update=function(t,e,n){var r=t.width,i=t.height,o=!(this.size&&this.size[0]===r&&this.size[1]===i||n),a=this.context,s=a.gl;if(this.useMipmap=Boolean(e&&e.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),a.pixelStoreUnpackFlipY.set(!1),a.pixelStoreUnpack.set(1),a.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&&(!e||!1!==e.premultiply)),o)this.size=[r,i],t instanceof Al||t instanceof Ml||t instanceof Il||t instanceof jl||kl&&t instanceof kl?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,t):s.texImage2D(s.TEXTURE_2D,0,this.format,r,i,0,this.format,s.UNSIGNED_BYTE,t.data);else{var u=n||{x:0,y:0},l=u.x,c=u.y;t instanceof Al||t instanceof Ml||t instanceof Il||t instanceof jl||kl&&t instanceof kl?s.texSubImage2D(s.TEXTURE_2D,0,l,c,s.RGBA,s.UNSIGNED_BYTE,t):s.texSubImage2D(s.TEXTURE_2D,0,l,c,r,i,s.RGBA,s.UNSIGNED_BYTE,t.data)}this.useMipmap&&this.isSizePowerOfTwo()&&s.generateMipmap(s.TEXTURE_2D)},Pl.prototype.bind=function(t,e,n){var r=this.context.gl;r.bindTexture(r.TEXTURE_2D,this.texture),n!==r.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(n=r.LINEAR),t!==this.filter&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,n||t),this.filter=t),e!==this.wrap&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,e),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,e),this.wrap=e)},Pl.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0},Pl.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var Ll=function(t){var e=this;this._callback=t,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){e._triggered=!1,e._callback()})};Ll.prototype.trigger=function(){var t=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){t._triggered=!1,t._callback()}),0))},Ll.prototype.remove=function(){delete this._channel,this._callback=function(){}};var Rl=function(t,e,n){this.target=t,this.parent=e,this.mapId=n,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},m(["receive","process"],this),this.invoker=new Ll(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=E()?t:a};function Dl(t,e,n){var r=2*Math.PI*6378137/256/Math.pow(2,n);return[t*r-2*Math.PI*6378137/2,e*r-2*Math.PI*6378137/2]}Rl.prototype.send=function(t,e,n,r,i){var o=this;void 0===i&&(i=!1);var a=Math.round(1e18*Math.random()).toString(36).substring(0,10);n&&(this.callbacks[a]=n);var s=M(this.globalScope)?void 0:[];return this.target.postMessage({id:a,type:t,hasCallback:!!n,targetMapId:r,mustQueue:i,sourceMapId:this.mapId,data:Ur(e,s)},s),{cancel:function(){n&&delete o.callbacks[a],o.target.postMessage({id:a,type:"<cancel>",targetMapId:r,sourceMapId:o.mapId})}}},Rl.prototype.receive=function(t){var e=t.data,n=e.id;if(n&&(!e.targetMapId||this.mapId===e.targetMapId))if("<cancel>"===e.type){delete this.tasks[n];var r=this.cancelCallbacks[n];delete this.cancelCallbacks[n],r&&r()}else E()||e.mustQueue?(this.tasks[n]=e,this.taskQueue.push(n),this.invoker.trigger()):this.processTask(n,e)},Rl.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&&this.invoker.trigger(),e&&this.processTask(t,e)}},Rl.prototype.processTask=function(t,e){var n=this;if("<response>"===e.type){var r=this.callbacks[t];delete this.callbacks[t],r&&(e.error?r(Gr(e.error)):r(null,Gr(e.data)))}else{var i=!1,o=M(this.globalScope)?void 0:[],a=e.hasCallback?function(e,r){i=!0,delete n.cancelCallbacks[t],n.target.postMessage({id:t,type:"<response>",sourceMapId:n.mapId,error:e?Ur(e):null,data:Ur(r,o)},o)}:function(t){i=!0},s=null,u=Gr(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,u,a);else if(this.parent.getWorkerSource){var l=e.type.split(".");s=this.parent.getWorkerSource(e.sourceMapId,l[0],u.source)[l[1]](u,a)}else a(new Error("Could not find function "+e.type));!i&&s&&s.cancel&&(this.cancelCallbacks[t]=s.cancel)}},Rl.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Nl=function(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};Nl.prototype.setNorthEast=function(t){return this._ne=t instanceof Bl?new Bl(t.lng,t.lat):Bl.convert(t),this},Nl.prototype.setSouthWest=function(t){return this._sw=t instanceof Bl?new Bl(t.lng,t.lat):Bl.convert(t),this},Nl.prototype.extend=function(t){var e,n,r=this._sw,i=this._ne;if(t instanceof Bl)e=t,n=t;else{if(!(t instanceof Nl))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(Nl.convert(t)):this.extend(Bl.convert(t)):this;if(n=t._ne,!(e=t._sw)||!n)return this}return r||i?(r.lng=Math.min(e.lng,r.lng),r.lat=Math.min(e.lat,r.lat),i.lng=Math.max(n.lng,i.lng),i.lat=Math.max(n.lat,i.lat)):(this._sw=new Bl(e.lng,e.lat),this._ne=new Bl(n.lng,n.lat)),this},Nl.prototype.getCenter=function(){return new Bl((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Nl.prototype.getSouthWest=function(){return this._sw},Nl.prototype.getNorthEast=function(){return this._ne},Nl.prototype.getNorthWest=function(){return new Bl(this.getWest(),this.getNorth())},Nl.prototype.getSouthEast=function(){return new Bl(this.getEast(),this.getSouth())},Nl.prototype.getWest=function(){return this._sw.lng},Nl.prototype.getSouth=function(){return this._sw.lat},Nl.prototype.getEast=function(){return this._ne.lng},Nl.prototype.getNorth=function(){return this._ne.lat},Nl.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Nl.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Nl.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Nl.prototype.contains=function(t){var e=Bl.convert(t),n=e.lng,r=e.lat,i=this._sw.lng<=n&&n<=this._ne.lng;return this._sw.lng>this._ne.lng&&(i=this._sw.lng>=n&&n>=this._ne.lng),this._sw.lat<=r&&r<=this._ne.lat&&i},Nl.convert=function(t){return!t||t instanceof Nl?t:new Nl(t)};var Bl=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid LngLat object: ("+t+", "+e+")");if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Bl.prototype.wrap=function(){return new Bl(h(this.lng,-180,180),this.lat)},Bl.prototype.toArray=function(){return[this.lng,this.lat]},Bl.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Bl.prototype.distanceTo=function(t){var e=Math.PI/180,n=this.lat*e,r=t.lat*e,i=Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(i,1))},Bl.prototype.toBounds=function(t){void 0===t&&(t=0);var e=360*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return new Nl(new Bl(this.lng-n,this.lat-e),new Bl(this.lng+n,this.lat+e))},Bl.convert=function(t){if(t instanceof Bl)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new Bl(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t)return new Bl(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")};var Fl=2*Math.PI*6371008.8;function zl(t){return Fl*Math.cos(t*Math.PI/180)}function Vl(t){return(180+t)/360}function Ul(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Gl(t,e){return t/zl(e)}function Hl(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}var Wl=function(t,e,n){void 0===n&&(n=0),this.x=+t,this.y=+e,this.z=+n};Wl.fromLngLat=function(t,e){void 0===e&&(e=0);var n=Bl.convert(t);return new Wl(Vl(n.lng),Ul(n.lat),Gl(e,n.lat))},Wl.prototype.toLngLat=function(){return new Bl(360*this.x-180,Hl(this.y))},Wl.prototype.toAltitude=function(){return this.z*zl(Hl(this.y))},Wl.prototype.meterInMercatorCoordinateUnits=function(){return 1/Fl*(t=Hl(this.y),1/Math.cos(t*Math.PI/180));var t};var Yl=function(t,e,n){this.z=t,this.x=e,this.y=n,this.key=ql(0,t,t,e,n)};Yl.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},Yl.prototype.url=function(t,e){var n,r,i,o,a,s=(r=this.y,i=this.z,o=Dl(256*(n=this.x),256*(r=Math.pow(2,i)-r-1),i),a=Dl(256*(n+1),256*(r+1),i),o[0]+","+o[1]+","+a[0]+","+a[1]),u=function(t,e,n){for(var r,i="",o=t;o>0;o--)i+=(e&(r=1<<o-1)?1:0)+(n&r?2:0);return i}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===e?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",u).replace("{bbox-epsg-3857}",s)},Yl.prototype.getTilePoint=function(t){var e=Math.pow(2,this.z);return new i(8192*(t.x*e-this.x),8192*(t.y*e-this.y))},Yl.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var Xl=function(t,e){this.wrap=t,this.canonical=e,this.key=ql(t,e.z,e.z,e.x,e.y)},$l=function(t,e,n,r,i){this.overscaledZ=t,this.wrap=e,this.canonical=new Yl(n,+r,+i),this.key=ql(e,t,n,r,i)};function ql(t,e,n,r,i){(t*=2)<0&&(t=-1*t-1);var o=1<<n;return(o*o*t+o*i+r).toString(36)+n.toString(36)+e.toString(36)}$l.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)},$l.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t>this.canonical.z?new $l(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new $l(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)},$l.prototype.calculateScaledKey=function(t,e){var n=this.canonical.z-t;return t>this.canonical.z?ql(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):ql(this.wrap*+e,t,t,this.canonical.x>>n,this.canonical.y>>n)},$l.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ<this.overscaledZ&&t.canonical.x===this.canonical.x>>e&&t.canonical.y===this.canonical.y>>e},$l.prototype.children=function(t){if(this.overscaledZ>=t)return[new $l(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,n=2*this.canonical.x,r=2*this.canonical.y;return[new $l(e,this.wrap,e,n,r),new $l(e,this.wrap,e,n+1,r),new $l(e,this.wrap,e,n,r+1),new $l(e,this.wrap,e,n+1,r+1)]},$l.prototype.isLessThan=function(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))},$l.prototype.wrapped=function(){return new $l(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},$l.prototype.unwrapTo=function(t){return new $l(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},$l.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},$l.prototype.toUnwrapped=function(){return new Xl(this.wrap,this.canonical)},$l.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},$l.prototype.getTilePoint=function(t){return this.canonical.getTilePoint(new Wl(t.x-this.wrap,t.y))},Br("CanonicalTileID",Yl),Br("OverscaledTileID",$l,{omit:["posMatrix"]});var Zl=function(t,e,n){if(this.uid=t,e.height!==e.width)throw new RangeError("DEM tiles must be square");if(n&&"mapbox"!==n&&"terrarium"!==n)return O('"'+n+'" is not a valid encoding type. Valid types include "mapbox" and "terrarium".');this.stride=e.height;var r=this.dim=e.height-2;this.data=new Uint32Array(e.data.buffer),this.encoding=n||"mapbox";for(var i=0;i<r;i++)this.data[this._idx(-1,i)]=this.data[this._idx(0,i)],this.data[this._idx(r,i)]=this.data[this._idx(r-1,i)],this.data[this._idx(i,-1)]=this.data[this._idx(i,0)],this.data[this._idx(i,r)]=this.data[this._idx(i,r-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(r,-1)]=this.data[this._idx(r-1,0)],this.data[this._idx(-1,r)]=this.data[this._idx(0,r-1)],this.data[this._idx(r,r)]=this.data[this._idx(r-1,r-1)]};Zl.prototype.get=function(t,e){var n=new Uint8Array(this.data.buffer),r=4*this._idx(t,e);return("terrarium"===this.encoding?this._unpackTerrarium:this._unpackMapbox)(n[r],n[r+1],n[r+2])},Zl.prototype.getUnpackVector=function(){return"terrarium"===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},Zl.prototype._idx=function(t,e){if(t<-1||t>=this.dim+1||e<-1||e>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(e+1)*this.stride+(t+1)},Zl.prototype._unpackMapbox=function(t,e,n){return(256*t*256+256*e+n)/10-1e4},Zl.prototype._unpackTerrarium=function(t,e,n){return 256*t+e+n/256-32768},Zl.prototype.getPixels=function(){return new ba({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Zl.prototype.backfillBorder=function(t,e,n){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");var r=e*this.dim,i=e*this.dim+this.dim,o=n*this.dim,a=n*this.dim+this.dim;switch(e){case-1:r=i-1;break;case 1:i=r+1}switch(n){case-1:o=a-1;break;case 1:a=o+1}for(var s=-e*this.dim,u=-n*this.dim,l=o;l<a;l++)for(var c=r;c<i;c++)this.data[this._idx(c,l)]=t.data[this._idx(c+s,l+u)]},Br("DEMData",Zl);var Kl=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e<t.length;e++){var n=t[e];this._stringToNumber[n]=e,this._numberToString[e]=n}};Kl.prototype.encode=function(t){return this._stringToNumber[t]},Kl.prototype.decode=function(t){return this._numberToString[t]};var Ql=function(t,e,n,r,i){this.type="Feature",this._vectorTileFeature=t,t._z=e,t._x=n,t._y=r,this.properties=t.properties,this.id=i},Jl={geometry:{configurable:!0}};Jl.geometry.get=function(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},Jl.geometry.set=function(t){this._geometry=t},Ql.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)"_geometry"!==e&&"_vectorTileFeature"!==e&&(t[e]=this[e]);return t},Object.defineProperties(Ql.prototype,Jl);var tc=function(){this.state={},this.stateChanges={},this.deletedStates={}};tc.prototype.updateState=function(t,e,n){var r=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][r]=this.stateChanges[t][r]||{},f(this.stateChanges[t][r],n),null===this.deletedStates[t])for(var i in this.deletedStates[t]={},this.state[t])i!==r&&(this.deletedStates[t][i]=null);else if(this.deletedStates[t]&&null===this.deletedStates[t][r])for(var o in this.deletedStates[t][r]={},this.state[t][r])n[o]||(this.deletedStates[t][r][o]=null);else for(var a in n)this.deletedStates[t]&&this.deletedStates[t][r]&&null===this.deletedStates[t][r][a]&&delete this.deletedStates[t][r][a]},tc.prototype.removeFeatureState=function(t,e,n){if(null!==this.deletedStates[t]){var r=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},n&&void 0!==e)null!==this.deletedStates[t][r]&&(this.deletedStates[t][r]=this.deletedStates[t][r]||{},this.deletedStates[t][r][n]=null);else if(void 0!==e)if(this.stateChanges[t]&&this.stateChanges[t][r])for(n in this.deletedStates[t][r]={},this.stateChanges[t][r])this.deletedStates[t][r][n]=null;else this.deletedStates[t][r]=null;else this.deletedStates[t]=null}},tc.prototype.getState=function(t,e){var n=String(e),r=f({},(this.state[t]||{})[n],(this.stateChanges[t]||{})[n]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){var i=this.deletedStates[t][e];if(null===i)return{};for(var o in i)delete r[o]}return r},tc.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},tc.prototype.coalesceChanges=function(t,e){var n={};for(var r in this.stateChanges){this.state[r]=this.state[r]||{};var i={};for(var o in this.stateChanges[r])this.state[r][o]||(this.state[r][o]={}),f(this.state[r][o],this.stateChanges[r][o]),i[o]=this.state[r][o];n[r]=i}for(var a in this.deletedStates){this.state[a]=this.state[a]||{};var s={};if(null===this.deletedStates[a])for(var u in this.state[a])s[u]={},this.state[a][u]={};else for(var l in this.deletedStates[a]){if(null===this.deletedStates[a][l])this.state[a][l]={};else for(var c=0,h=Object.keys(this.deletedStates[a][l]);c<h.length;c+=1)delete this.state[a][l][h[c]];s[l]=this.state[a][l]}n[a]=n[a]||{},f(n[a],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(var d in t)t[d].setFeatureState(n,e)};var ec=function(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new Pr(8192,16,0),this.grid3D=new Pr(8192,16,0),this.featureIndexArray=new oo,this.promoteId=e};function nc(t,e,n,r,i){return b(t,(function(t,o){var a=e instanceof gi?e.get(o):null;return a&&a.evaluate?a.evaluate(n,r,i):a}))}function rc(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0,a=t;o<a.length;o+=1){var s=a[o];e=Math.min(e,s.x),n=Math.min(n,s.y),r=Math.max(r,s.x),i=Math.max(i,s.y)}return{minX:e,minY:n,maxX:r,maxY:i}}function ic(t,e){return e-t}ec.prototype.insert=function(t,e,n,r,i,o){var a=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,r,i);for(var s=o?this.grid3D:this.grid,u=0;u<e.length;u++){for(var l=e[u],c=[1/0,1/0,-1/0,-1/0],h=0;h<l.length;h++){var f=l[h];c[0]=Math.min(c[0],f.x),c[1]=Math.min(c[1],f.y),c[2]=Math.max(c[2],f.x),c[3]=Math.max(c[3],f.y)}c[0]<8192&&c[1]<8192&&c[2]>=0&&c[3]>=0&&s.insert(a,c[0],c[1],c[2],c[3])}},ec.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new _s.VectorTile(new Zs(this.rawTileData)).layers,this.sourceLayerCoder=new Kl(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},ec.prototype.query=function(t,e,n,r){var o=this;this.loadVTLayers();for(var a=t.params||{},s=8192/t.tileSize/t.scale,u=ar(a.filter),l=t.queryGeometry,c=t.queryPadding*s,h=rc(l),f=this.grid.query(h.minX-c,h.minY-c,h.maxX+c,h.maxY+c),d=rc(t.cameraQueryGeometry),p=0,g=this.grid3D.query(d.minX-c,d.minY-c,d.maxX+c,d.maxY+c,(function(e,n,r,o){return function(t,e,n,r,o){for(var a=0,s=t;a<s.length;a+=1){var u=s[a];if(e<=u.x&&n<=u.y&&r>=u.x&&o>=u.y)return!0}var l=[new i(e,n),new i(e,o),new i(r,o),new i(r,n)];if(t.length>2)for(var c=0,h=l;c<h.length;c+=1)if(Jo(t,h[c]))return!0;for(var f=0;f<t.length-1;f++)if(ta(t[f],t[f+1],l))return!0;return!1}(t.cameraQueryGeometry,e-c,n-c,r+c,o+c)}));p<g.length;p+=1)f.push(g[p]);f.sort(ic);for(var v,m={},y=function(i){var c=f[i];if(c!==v){v=c;var h=o.featureIndexArray.get(c),d=null;o.loadMatchingFeature(m,h.bucketIndex,h.sourceLayerIndex,h.featureIndex,u,a.layers,a.availableImages,e,n,r,(function(e,n,r){return d||(d=zo(e)),n.queryIntersectsFeature(l,e,r,d,o.z,t.transform,s,t.pixelPosMatrix)}))}},b=0;b<f.length;b++)y(b);return m},ec.prototype.loadMatchingFeature=function(t,e,n,r,i,o,a,s,u,l,c){var h=this.bucketLayerIDs[e];if(!o||function(t,e){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])>=0)return!0;return!1}(o,h)){var d=this.sourceLayerCoder.decode(n),p=this.vtLayers[d].feature(r);if(i.needGeometry){var g=Vo(p,!0);if(!i.filter(new si(this.tileID.overscaledZ),g,this.tileID.canonical))return}else if(!i.filter(new si(this.tileID.overscaledZ),p))return;for(var v=this.getId(p,d),m=0;m<h.length;m++){var y=h[m];if(!(o&&o.indexOf(y)<0)){var b=s[y];if(b){var _={};void 0!==v&&l&&(_=l.getState(b.sourceLayer||"_geojsonTileLayer",v));var x=f({},u[y]);x.paint=nc(x.paint,b.paint,p,_,a),x.layout=nc(x.layout,b.layout,p,_,a);var w=!c||c(p,b,_);if(w){var O=new Ql(p,this.z,this.x,this.y,v);O.layer=x;var S=t[y];void 0===S&&(S=t[y]=[]),S.push({featureIndex:r,feature:O,intersectionZ:w})}}}}}},ec.prototype.lookupSymbolFeatures=function(t,e,n,r,i,o,a,s){var u={};this.loadVTLayers();for(var l=ar(i),c=0,h=t;c<h.length;c+=1)this.loadMatchingFeature(u,n,r,h[c],l,o,a,s,e);return u},ec.prototype.hasLayer=function(t){for(var e=0,n=this.bucketLayerIDs;e<n.length;e+=1)for(var r=0,i=n[e];r<i.length;r+=1)if(t===i[r])return!0;return!1},ec.prototype.getId=function(t,e){var n=t.id;return this.promoteId&&"boolean"==typeof(n=t.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[e]])&&(n=Number(n)),n},Br("FeatureIndex",ec,{omit:["rawTileData","sourceLayerCoder"]});var oc=function(t,e){this.tileID=t,this.uid=p(),this.uses=0,this.tileSize=e,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state="loading"};oc.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e<B.now()||this.fadeEndTime&&e<this.fadeEndTime||(this.fadeEndTime=e)},oc.prototype.wasRequested=function(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state},oc.prototype.loadVectorData=function(t,e,n){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",t){for(var r in t.featureIndex&&(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,e){var n={};if(!e)return n;for(var r=function(){var t=o[i],r=t.layerIds.map((function(t){return e.getLayer(t)})).filter(Boolean);if(0!==r.length){t.layers=r,t.stateDependentLayerIds&&(t.stateDependentLayers=t.stateDependentLayerIds.map((function(t){return r.filter((function(e){return e.id===t}))[0]})));for(var a=0,s=r;a<s.length;a+=1)n[s[a].id]=t}},i=0,o=t;i<o.length;i+=1)r();return n}(t.buckets,e.style),this.hasSymbolBuckets=!1,this.buckets){var i=this.buckets[r];if(i instanceof ml){if(this.hasSymbolBuckets=!0,!n)break;i.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var o in this.buckets){var a=this.buckets[o];if(a instanceof ml&&a.hasRTLText){this.hasRTLText=!0,ai.isLoading()||ai.isLoaded()||"deferred"!==ii()||oi();break}}for(var s in this.queryPadding=0,this.buckets){var u=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(s).queryRadius(u))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new Ki},oc.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"},oc.prototype.getBucket=function(t){return this.buckets[t.id]},oc.prototype.upload=function(t){for(var e in this.buckets){var n=this.buckets[e];n.uploadPending()&&n.upload(t)}var r=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Pl(t,this.imageAtlas.image,r.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Pl(t,this.glyphAtlasImage,r.ALPHA),this.glyphAtlasImage=null)},oc.prototype.prepare=function(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)},oc.prototype.queryRenderedFeatures=function(t,e,n,r,i,o,a,s,u,l){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:r,cameraQueryGeometry:i,scale:o,tileSize:this.tileSize,pixelPosMatrix:l,transform:s,params:a,queryPadding:this.queryPadding*u},t,e,n):{}},oc.prototype.querySourceFeatures=function(t,e){var n=this.latestFeatureIndex;if(n&&n.rawTileData){var r=n.loadVTLayers(),i=e?e.sourceLayer:"",o=r._geojsonTileLayer||r[i];if(o)for(var a=ar(e&&e.filter),s=this.tileID.canonical,u=s.z,l=s.x,c=s.y,h={z:u,x:l,y:c},f=0;f<o.length;f++){var d=o.feature(f);if(a.needGeometry){var p=Vo(d,!0);if(!a.filter(new si(this.tileID.overscaledZ),p,this.tileID.canonical))continue}else if(!a.filter(new si(this.tileID.overscaledZ),d))continue;var g=n.getId(d,i),v=new Ql(d,u,l,c,g);v.tile=h,t.push(v)}}},oc.prototype.hasData=function(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state},oc.prototype.patternsLoaded=function(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length},oc.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var n=T(t.cacheControl);n["max-age"]&&(this.expirationTime=Date.now()+1e3*n["max-age"])}else t.expires&&(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var r=Date.now(),i=!1;if(this.expirationTime>r)i=!1;else if(e)if(this.expirationTime<e)i=!0;else{var o=this.expirationTime-e;o?this.expirationTime=r+Math.max(o,3e4):i=!0}else i=!0;i?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}},oc.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},oc.prototype.setFeatureState=function(t,e){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData&&0!==Object.keys(t).length){var n=this.latestFeatureIndex.loadVTLayers();for(var r in this.buckets)if(e.style.hasLayer(r)){var i=this.buckets[r],o=i.layers[0].sourceLayer||"_geojsonTileLayer",a=n[o],s=t[o];if(a&&s&&0!==Object.keys(s).length){i.update(s,a,this.imageAtlas&&this.imageAtlas.patternPositions||{});var u=e&&e.style&&e.style.getLayer(r);u&&(this.queryPadding=Math.max(this.queryPadding,u.queryRadius(i)))}}}},oc.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},oc.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<B.now()},oc.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},oc.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=B.now()+t},oc.prototype.setDependencies=function(t,e){for(var n={},r=0,i=e;r<i.length;r+=1)n[i[r]]=!0;this.dependencies[t]=n},oc.prototype.hasDependency=function(t,e){for(var n=0,r=t;n<r.length;n+=1){var i=this.dependencies[r[n]];if(i)for(var o=0,a=e;o<a.length;o+=1)if(i[a[o]])return!0}return!1};var ac=a.performance,sc=function(t){this._marks={start:[t.url,"start"].join("#"),end:[t.url,"end"].join("#"),measure:t.url.toString()},ac.mark(this._marks.start)};sc.prototype.finish=function(){ac.mark(this._marks.end);var t=ac.getEntriesByName(this._marks.measure);return 0===t.length&&(ac.measure(this._marks.measure,this._marks.start,this._marks.end),t=ac.getEntriesByName(this._marks.measure),ac.clearMarks(this._marks.start),ac.clearMarks(this._marks.end),ac.clearMeasures(this._marks.measure)),t},t.Actor=Rl,t.AlphaImage=ya,t.CanonicalTileID=Yl,t.CollisionBoxArray=Ki,t.Color=te,t.DEMData=Zl,t.DataConstantProperty=vi,t.DictionaryCoder=Kl,t.EXTENT=8192,t.ErrorEvent=Tt,t.EvaluationParameters=si,t.Event=Et,t.Evented=At,t.FeatureIndex=ec,t.FillBucket=ss,t.FillExtrusionBucket=Ss,t.ImageAtlas=_u,t.ImagePosition=yu,t.LineBucket=Rs,t.LngLat=Bl,t.LngLatBounds=Nl,t.MercatorCoordinate=Wl,t.ONE_EM=24,t.OverscaledTileID=$l,t.Point=i,t.Point$1=i,t.Properties=xi,t.Protobuf=Zs,t.RGBAImage=ba,t.RequestManager=W,t.RequestPerformance=sc,t.ResourceType=pt,t.SegmentVector=so,t.SourceFeatureState=tc,t.StructArrayLayout1ui2=$i,t.StructArrayLayout2f1f2i16=Fi,t.StructArrayLayout2i4=Ai,t.StructArrayLayout3ui6=Vi,t.StructArrayLayout4i8=Mi,t.SymbolBucket=ml,t.Texture=Pl,t.Tile=oc,t.Transitionable=ci,t.Uniform1f=xo,t.Uniform1i=_o,t.Uniform2f=wo,t.Uniform3f=Oo,t.Uniform4f=So,t.UniformColor=Co,t.UniformMatrix4f=To,t.UnwrappedTileID=Xl,t.ValidationError=It,t.WritingMode=xu,t.ZoomHistory=Hr,t.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},t.addDynamicAttributes=dl,t.asyncAll=function(t,e,n){if(!t.length)return n(null,[]);var r=t.length,i=new Array(t.length),o=null;t.forEach((function(t,a){e(t,(function(t,e){t&&(o=t),i[a]=e,0==--r&&n(o,i)}))}))},t.bezier=u,t.bindAll=m,t.browser=B,t.cacheEntryPossiblyAdded=function(t){++ft>ut&&(t.getActor().send("enforceCacheSizeLimit",st),ft=0)},t.clamp=c,t.clearTileCache=function(t){var e=a.caches.delete("mapbox-tiles");t&&e.catch(t).then((function(){return t()}))},t.clipLine=Yu,t.clone=function(t){var e=new aa(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=x,t.clone$2=function(t){var e=new aa(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=Ws,t.config=F,t.create=function(){var t=new aa(16);return aa!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new aa(9);return aa!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new aa(4);return aa!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=Xn,t.createLayout=Ei,t.createStyleLayer=function(t){return"custom"===t.type?new El(t):new Tl[t.type](t)},t.cross=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],u=n[2];return t[0]=i*u-o*s,t[1]=o*a-r*u,t[2]=r*s-i*a,t},t.deepEqual=function t(e,n){if(Array.isArray(e)){if(!Array.isArray(n)||e.length!==n.length)return!1;for(var r=0;r<e.length;r++)if(!t(e[r],n[r]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==n){if("object"!=typeof n)return!1;if(Object.keys(e).length!==Object.keys(n).length)return!1;for(var i in e)if(!t(e[i],n[i]))return!1;return!0}return e===n},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},t.dot$1=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},t.ease=l,t.emitValidationErrors=kr,t.endsWith=y,t.enforceCacheSizeLimit=function(t){lt(),tt&&tt.then((function(e){e.keys().then((function(n){for(var r=0;r<n.length-t;r++)e.delete(n[r])}))}))},t.evaluateSizeForFeature=Nu,t.evaluateSizeForZoom=Bu,t.evaluateVariableOffset=ol,t.evented=ri,t.extend=f,t.featureFilter=ar,t.filterObject=_,t.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.getAnchorAlignment=ku,t.getAnchorJustification=al,t.getArrayBuffer=_t,t.getImage=Ot,t.getJSON=function(t,e){return bt(f(t,{type:"json"}),e)},t.getRTLTextPluginStatus=ii,t.getReferrer=yt,t.getVideo=function(t,e){var n,r,i=a.document.createElement("video");i.muted=!0,i.onloadstart=function(){e(null,i)};for(var o=0;o<t.length;o++){var s=a.document.createElement("source");n=t[o],r=void 0,(r=a.document.createElement("a")).href=n,(r.protocol!==a.document.location.protocol||r.host!==a.document.location.host)&&(i.crossOrigin="Anonymous"),s.src=t[o],i.appendChild(s)}return{cancel:function(){}}},t.identity=sa,t.invert=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=n*s-r*a,b=n*u-i*a,_=n*l-o*a,x=r*u-i*s,w=r*l-o*s,O=i*l-o*u,S=c*g-h*p,C=c*v-f*p,E=c*m-d*p,T=h*v-f*g,A=h*m-d*g,M=f*m-d*v,I=y*M-b*A+_*T+x*E-w*C+O*S;return I?(t[0]=(s*M-u*A+l*T)*(I=1/I),t[1]=(i*A-r*M-o*T)*I,t[2]=(g*O-v*w+m*x)*I,t[3]=(f*w-h*O-d*x)*I,t[4]=(u*E-a*M-l*C)*I,t[5]=(n*M-i*E+o*C)*I,t[6]=(v*_-p*O-m*b)*I,t[7]=(c*O-f*_+d*b)*I,t[8]=(a*A-s*E+l*S)*I,t[9]=(r*E-n*A-o*S)*I,t[10]=(p*w-g*_+m*y)*I,t[11]=(h*_-c*w-d*y)*I,t[12]=(s*C-a*T-u*S)*I,t[13]=(n*T-r*C+i*S)*I,t[14]=(g*b-p*x-v*y)*I,t[15]=(c*x-h*b+f*y)*I,t):null},t.isChar=Wr,t.isMapboxURL=Y,t.keysDifference=function(t,e){var n=[];for(var r in t)r in e||n.push(r);return n},t.makeRequest=bt,t.mapObject=b,t.mercatorXfromLng=Vl,t.mercatorYfromLat=Ul,t.mercatorZfromAltitude=Gl,t.mul=ca,t.multiply=ua,t.mvt=_s,t.nextPowerOfTwo=function(t){return t<=1?1:Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},t.normalize=function(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t},t.number=He,t.offscreenCanvasSupported=dt,t.ortho=function(t,e,n,r,i,o,a){var s=1/(e-n),u=1/(r-i),l=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(a+o)*l,t[15]=1,t},t.parseGlyphPBF=function(t){return new Zs(t).readFields(pu,[])},t.pbf=Zs,t.performSymbolLayout=function(t,e,n,r,i,o,a){t.createArrays(),t.tilePixelRatio=8192/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;var s=t.layers[0].layout,u=t.layers[0]._unevaluatedLayout._values,l={};if("composite"===t.textSizeData.kind){var c=t.textSizeData,h=c.maxZoom;l.compositeTextSizes=[u["text-size"].possiblyEvaluate(new si(c.minZoom),a),u["text-size"].possiblyEvaluate(new si(h),a)]}if("composite"===t.iconSizeData.kind){var f=t.iconSizeData,d=f.maxZoom;l.compositeIconSizes=[u["icon-size"].possiblyEvaluate(new si(f.minZoom),a),u["icon-size"].possiblyEvaluate(new si(d),a)]}l.layoutTextSize=u["text-size"].possiblyEvaluate(new si(t.zoom+1),a),l.layoutIconSize=u["icon-size"].possiblyEvaluate(new si(t.zoom+1),a),l.textMaxSize=u["text-size"].possiblyEvaluate(new si(18));for(var p=24*s.get("text-line-height"),g="map"===s.get("text-rotation-alignment")&&"point"!==s.get("symbol-placement"),v=s.get("text-keep-upright"),m=s.get("text-size"),y=function(){var o=_[b],u=s.get("text-font").evaluate(o,{},a).join(","),c=m.evaluate(o,{},a),h=l.layoutTextSize.evaluate(o,{},a),f=l.layoutIconSize.evaluate(o,{},a),d={horizontal:{},vertical:void 0},y=o.text,x=[0,0];if(y){var w=y.toString(),S=24*s.get("text-letter-spacing").evaluate(o,{},a),C=function(t){for(var e=0,n=t;e<n.length;e+=1)if(r=n[e].charCodeAt(0),Wr.Arabic(r)||Wr["Arabic Supplement"](r)||Wr["Arabic Extended-A"](r)||Wr["Arabic Presentation Forms-A"](r)||Wr["Arabic Presentation Forms-B"](r))return!1;var r;return!0}(w)?S:0,E=s.get("text-anchor").evaluate(o,{},a),T=s.get("text-variable-anchor");if(!T){var A=s.get("text-radial-offset").evaluate(o,{},a);x=A?ol(E,[24*A,il]):s.get("text-offset").evaluate(o,{},a).map((function(t){return 24*t}))}var M=g?"center":s.get("text-justify").evaluate(o,{},a),I=s.get("symbol-placement"),j="point"===I?24*s.get("text-max-width").evaluate(o,{},a):0,k=function(){t.allowVerticalPlacement&&Yr(w)&&(d.vertical=Su(y,e,n,i,u,j,p,E,"left",C,x,xu.vertical,!0,I,h,c))};if(!g&&T){for(var P="auto"===M?T.map((function(t){return al(t)})):[M],L=!1,R=0;R<P.length;R++){var D=P[R];if(!d.horizontal[D])if(L)d.horizontal[D]=d.horizontal[0];else{var N=Su(y,e,n,i,u,j,p,"center",D,C,x,xu.horizontal,!1,I,h,c);N&&(d.horizontal[D]=N,L=1===N.positionedLines.length)}}k()}else{"auto"===M&&(M=al(E));var B=Su(y,e,n,i,u,j,p,E,M,C,x,xu.horizontal,!1,I,h,c);B&&(d.horizontal[M]=B),k(),Yr(w)&&g&&v&&(d.vertical=Su(y,e,n,i,u,j,p,E,M,C,x,xu.vertical,!1,I,h,c))}}var F=void 0,z=!1;if(o.icon&&o.icon.name){var V=r[o.icon.name];V&&(F=function(t,e,n){var r=ku(n),i=e[0]-t.displaySize[0]*r.horizontalAlign,o=e[1]-t.displaySize[1]*r.verticalAlign;return{image:t,top:o,bottom:o+t.displaySize[1],left:i,right:i+t.displaySize[0]}}(i[o.icon.name],s.get("icon-offset").evaluate(o,{},a),s.get("icon-anchor").evaluate(o,{},a)),z=V.sdf,void 0===t.sdfIcons?t.sdfIcons=V.sdf:t.sdfIcons!==V.sdf&&O("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(V.pixelRatio!==t.pixelRatio||0!==s.get("icon-rotate").constantOr(1))&&(t.iconsNeedLinear=!0))}var U=ul(d.horizontal)||d.vertical;t.iconsInText=!!U&&U.iconsInText,(U||F)&&function(t,e,n,r,i,o,a,s,u,l,c){var h=o.textMaxSize.evaluate(e,{});void 0===h&&(h=a);var f,d=t.layers[0].layout,p=d.get("icon-offset").evaluate(e,{},c),g=ul(n.horizontal),v=a/24,m=t.tilePixelRatio*v,y=t.tilePixelRatio*h/24,b=t.tilePixelRatio*s,_=t.tilePixelRatio*d.get("symbol-spacing"),x=d.get("text-padding")*t.tilePixelRatio,w=d.get("icon-padding")*t.tilePixelRatio,S=d.get("text-max-angle")/180*Math.PI,C="map"===d.get("text-rotation-alignment")&&"point"!==d.get("symbol-placement"),E="map"===d.get("icon-rotation-alignment")&&"point"!==d.get("symbol-placement"),T=d.get("symbol-placement"),A=_/2,M=d.get("icon-text-fit");r&&"none"!==M&&(t.allowVerticalPlacement&&n.vertical&&(f=Lu(r,n.vertical,M,d.get("icon-text-fit-padding"),p,v)),g&&(r=Lu(r,g,M,d.get("icon-text-fit-padding"),p,v)));var I=function(s,h){h.x<0||h.x>=8192||h.y<0||h.y>=8192||function(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,v,m,y,b,_,x,w,S,C){var E,T,A,M,I,j=t.addToLineVertexArray(e,n),k=0,P=0,L=0,R=0,D=-1,N=-1,B={},F=fo(""),z=0,V=0;if(void 0===s._unevaluatedLayout.getValue("text-radial-offset")?(z=(E=s.layout.get("text-offset").evaluate(_,{},S).map((function(t){return 24*t})))[0],V=E[1]):(z=24*s.layout.get("text-radial-offset").evaluate(_,{},S),V=il),t.allowVerticalPlacement&&r.vertical){var U=s.layout.get("text-rotate").evaluate(_,{},S)+90;M=new Qu(u,e,l,c,h,r.vertical,f,d,p,U),a&&(I=new Qu(u,e,l,c,h,a,v,m,p,U))}if(i){var G=s.layout.get("icon-rotate").evaluate(_,{}),H="none"!==s.layout.get("icon-text-fit"),W=Xu(i,G,w,H),Y=a?Xu(a,G,w,H):void 0;A=new Qu(u,e,l,c,h,i,v,m,!1,G),k=4*W.length;var X=t.iconSizeData,$=null;"source"===X.kind?($=[128*s.layout.get("icon-size").evaluate(_,{})])[0]>32640&&O(t.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):"composite"===X.kind&&(($=[128*x.compositeIconSizes[0].evaluate(_,{},S),128*x.compositeIconSizes[1].evaluate(_,{},S)])[0]>32640||$[1]>32640)&&O(t.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),t.addSymbols(t.icon,W,$,b,y,_,!1,e,j.lineStartIndex,j.lineLength,-1,S),D=t.icon.placedSymbolArray.length-1,Y&&(P=4*Y.length,t.addSymbols(t.icon,Y,$,b,y,_,xu.vertical,e,j.lineStartIndex,j.lineLength,-1,S),N=t.icon.placedSymbolArray.length-1)}for(var q in r.horizontal){var Z=r.horizontal[q];if(!T){F=fo(Z.text);var K=s.layout.get("text-rotate").evaluate(_,{},S);T=new Qu(u,e,l,c,h,Z,f,d,p,K)}var Q=1===Z.positionedLines.length;if(L+=sl(t,e,Z,o,s,p,_,g,j,r.vertical?xu.horizontal:xu.horizontalOnly,Q?Object.keys(r.horizontal):[q],B,D,x,S),Q)break}r.vertical&&(R+=sl(t,e,r.vertical,o,s,p,_,g,j,xu.vertical,["vertical"],B,N,x,S));var J=T?T.boxStartIndex:t.collisionBoxArray.length,tt=T?T.boxEndIndex:t.collisionBoxArray.length,et=M?M.boxStartIndex:t.collisionBoxArray.length,nt=M?M.boxEndIndex:t.collisionBoxArray.length,rt=A?A.boxStartIndex:t.collisionBoxArray.length,it=A?A.boxEndIndex:t.collisionBoxArray.length,ot=I?I.boxStartIndex:t.collisionBoxArray.length,at=I?I.boxEndIndex:t.collisionBoxArray.length,st=-1,ut=function(t,e){return t&&t.circleDiameter?Math.max(t.circleDiameter,e):e};st=ut(T,st),st=ut(M,st),st=ut(A,st);var lt=(st=ut(I,st))>-1?1:0;lt&&(st*=C/24),t.glyphOffsetArray.length>=ml.MAX_GLYPHS&&O("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==_.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,_.sortKey),t.symbolInstances.emplaceBack(e.x,e.y,B.right>=0?B.right:-1,B.center>=0?B.center:-1,B.left>=0?B.left:-1,B.vertical||-1,D,N,F,J,tt,et,nt,rt,it,ot,at,l,L,R,k,P,lt,0,f,z,V,st)}(t,h,s,n,r,i,f,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,m,x,C,u,b,w,E,p,e,o,l,c,a)};if("line"===T)for(var j=0,k=Yu(e.geometry,0,0,8192,8192);j<k.length;j+=1)for(var P=k[j],L=0,R=Wu(P,_,S,n.vertical||g,r,24,y,t.overscaling,8192);L<R.length;L+=1){var D=R[L];g&&ll(t,g.text,A,D)||I(P,D)}else if("line-center"===T)for(var N=0,B=e.geometry;N<B.length;N+=1){var F=B[N];if(F.length>1){var z=Hu(F,S,n.vertical||g,r,24,y);z&&I(F,z)}}else if("Polygon"===e.type)for(var V=0,U=rs(e.geometry,0);V<U.length;V+=1){var G=U[V],H=el(G,16);I(G[0],new Ru(H.x,H.y,0))}else if("LineString"===e.type)for(var W=0,Y=e.geometry;W<Y.length;W+=1){var X=Y[W];I(X,new Ru(X[0].x,X[0].y,0))}else if("Point"===e.type)for(var $=0,q=e.geometry;$<q.length;$+=1)for(var Z=0,K=q[$];Z<K.length;Z+=1){var Q=K[Z];I([Q],new Ru(Q.x,Q.y,0))}}(t,o,d,F,r,l,h,f,x,z,a)},b=0,_=t.features;b<_.length;b+=1)y();o&&t.generateCollisionDebugBuffers()},t.perspective=function(t,e,n,r,i){var o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(t[10]=(i+r)*(o=1/(r-i)),t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t},t.pick=function(t,e){for(var n={},r=0;r<e.length;r++){var i=e[r];i in t&&(n[i]=t[i])}return n},t.plugin=ai,t.polygonIntersectsPolygon=Ho,t.postMapLoadEvent=at,t.postTurnstileEvent=it,t.potpack=mu,t.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],t.register=Br,t.registerForPluginStateChange=function(t){return t({pluginStatus:Jr,pluginURL:ti}),ri.on("pluginStateChange",t),t},t.renderColorRamp=xa,t.rotate=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+o*s,t[1]=i*u+a*s,t[2]=r*-s+o*u,t[3]=i*-s+a*u,t},t.rotateX=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[4],a=e[5],s=e[6],u=e[7],l=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+l*r,t[5]=a*i+c*r,t[6]=s*i+h*r,t[7]=u*i+f*r,t[8]=l*i-o*r,t[9]=c*i-a*r,t[10]=h*i-s*r,t[11]=f*i-u*r,t},t.rotateZ=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],l=e[4],c=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+l*r,t[1]=a*i+c*r,t[2]=s*i+h*r,t[3]=u*i+f*r,t[4]=l*i-o*r,t[5]=c*i-a*r,t[6]=h*i-s*r,t[7]=f*i-u*r,t},t.scale=function(t,e,n){var r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.scale$1=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},t.scale$2=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},t.setCacheLimits=function(t,e){st=t,ut=e},t.setRTLTextPlugin=function(t,e,n){if(void 0===n&&(n=!1),"deferred"===Jr||"loading"===Jr||"loaded"===Jr)throw new Error("setRTLTextPlugin cannot be called multiple times.");ti=B.resolveURL(t),Jr="deferred",Qr=e,ni(),n||oi()},t.sphericalToCartesian=function(t){var e=t[0],n=t[1],r=t[2];return n+=90,n*=Math.PI/180,r*=Math.PI/180,{x:e*Math.cos(n)*Math.sin(r),y:e*Math.sin(n)*Math.sin(r),z:e*Math.cos(r)}},t.sqrLen=function(t){var e=t[0],n=t[1];return e*e+n*n},t.styleSpec=Mt,t.sub=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t},t.symbolSize=Fu,t.transformMat3=function(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t},t.transformMat4=ha,t.translate=function(t,e,n){var r,i,o,a,s,u,l,c,h,f,d,p,g=n[0],v=n[1],m=n[2];return e===t?(t[12]=e[0]*g+e[4]*v+e[8]*m+e[12],t[13]=e[1]*g+e[5]*v+e[9]*m+e[13],t[14]=e[2]*g+e[6]*v+e[10]*m+e[14],t[15]=e[3]*g+e[7]*v+e[11]*m+e[15]):(i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],t[0]=r=e[0],t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=l,t[7]=c,t[8]=h,t[9]=f,t[10]=d,t[11]=p,t[12]=r*g+s*v+h*m+e[12],t[13]=i*g+u*v+f*m+e[13],t[14]=o*g+l*v+d*m+e[14],t[15]=a*g+c*v+p*m+e[15]),t},t.triggerPluginCompletionEvent=ei,t.uniqueId=p,t.validateCustomStyleLayer=function(t){var e=[],n=t.id;return void 0===n&&e.push({message:"layers."+n+': missing required property "id"'}),void 0===t.render&&e.push({message:"layers."+n+': missing required method "render"'}),t.renderingMode&&"2d"!==t.renderingMode&&"3d"!==t.renderingMode&&e.push({message:"layers."+n+': property "renderingMode" must be either "2d" or "3d"'}),e},t.validateLight=Mr,t.validateStyle=Ar,t.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},t.vectorTile=_s,t.version="1.13.2",t.warnOnce=O,t.webpSupported=z,t.window=a,t.wrap=h})),r(0,(function(t){function e(t){var n=typeof t;if("number"===n||"boolean"===n||"string"===n||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var r="[",i=0,o=t;i<o.length;i+=1)r+=e(o[i])+",";return r+"]"}for(var a=Object.keys(t).sort(),s="{",u=0;u<a.length;u++)s+=JSON.stringify(a[u])+":"+e(t[a[u]])+",";return s+"}"}function n(n){for(var r="",i=0,o=t.refProperties;i<o.length;i+=1)r+="/"+e(n[o[i]]);return r}var r=function(t){this.keyCache={},t&&this.replace(t)};r.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},r.prototype.update=function(e,r){for(var i=this,o=0,a=e;o<a.length;o+=1){var s=a[o];this._layerConfigs[s.id]=s;var u=this._layers[s.id]=t.createStyleLayer(s);u._featureFilter=t.featureFilter(u.filter),this.keyCache[s.id]&&delete this.keyCache[s.id]}for(var l=0,c=r;l<c.length;l+=1){var h=c[l];delete this.keyCache[h],delete this._layerConfigs[h],delete this._layers[h]}this.familiesBySource={};for(var f=0,d=function(t,e){for(var r={},i=0;i<t.length;i++){var o=e&&e[t[i].id]||n(t[i]);e&&(e[t[i].id]=o);var a=r[o];a||(a=r[o]=[]),a.push(t[i])}var s=[];for(var u in r)s.push(r[u]);return s}(t.values(this._layerConfigs),this.keyCache);f<d.length;f+=1){var p=d[f].map((function(t){return i._layers[t.id]})),g=p[0];if("none"!==g.visibility){var v=g.source||"",m=this.familiesBySource[v];m||(m=this.familiesBySource[v]={});var y=g.sourceLayer||"_geojsonTileLayer",b=m[y];b||(b=m[y]=[]),b.push(p)}}};var i=function(e){var n={},r=[];for(var i in e){var o=e[i],a=n[i]={};for(var s in o){var u=o[+s];if(u&&0!==u.bitmap.width&&0!==u.bitmap.height){var l={x:0,y:0,w:u.bitmap.width+2,h:u.bitmap.height+2};r.push(l),a[s]={rect:l,metrics:u.metrics}}}}var c=t.potpack(r),h=new t.AlphaImage({width:c.w||1,height:c.h||1});for(var f in e){var d=e[f];for(var p in d){var g=d[+p];if(g&&0!==g.bitmap.width&&0!==g.bitmap.height){var v=n[f][p].rect;t.AlphaImage.copy(g.bitmap,h,{x:0,y:0},{x:v.x+1,y:v.y+1},g.bitmap)}}}this.image=h,this.positions=n};t.register("GlyphAtlas",i);var o=function(e){this.tileID=new t.OverscaledTileID(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId};function a(e,n,r){for(var i=new t.EvaluationParameters(n),o=0,a=e;o<a.length;o+=1)a[o].recalculate(i,r)}function s(e,n){var r=t.getArrayBuffer(e.request,(function(e,r,i,o){e?n(e):r&&n(null,{vectorTile:new t.vectorTile.VectorTile(new t.pbf(r)),rawData:r,cacheControl:i,expires:o})}));return function(){r.cancel(),n()}}o.prototype.parse=function(e,n,r,o,s){var u=this;this.status="parsing",this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var l=new t.DictionaryCoder(Object.keys(e.layers).sort()),c=new t.FeatureIndex(this.tileID,this.promoteId);c.bucketLayerIDs=[];var h,f,d,p,g={},v={featureIndex:c,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:r},m=n.familiesBySource[this.source];for(var y in m){var b=e.layers[y];if(b){1===b.version&&t.warnOnce('Vector tile source "'+this.source+'" layer "'+y+'" does not use vector tile spec v2 and therefore may have some rendering errors.');for(var _=l.encode(y),x=[],w=0;w<b.length;w++){var O=b.feature(w),S=c.getId(O,y);x.push({feature:O,id:S,index:w,sourceLayerIndex:_})}for(var C=0,E=m[y];C<E.length;C+=1){var T=E[C],A=T[0];A.minzoom&&this.zoom<Math.floor(A.minzoom)||A.maxzoom&&this.zoom>=A.maxzoom||"none"!==A.visibility&&(a(T,this.zoom,r),(g[A.id]=A.createBucket({index:c.bucketLayerIDs.length,layers:T,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:_,sourceID:this.source})).populate(x,v,this.tileID.canonical),c.bucketLayerIDs.push(T.map((function(t){return t.id}))))}}}var M=t.mapObject(v.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(M).length?o.send("getGlyphs",{uid:this.uid,stacks:M},(function(t,e){h||(h=t,f=e,k.call(u))})):f={};var I=Object.keys(v.iconDependencies);I.length?o.send("getImages",{icons:I,source:this.source,tileID:this.tileID,type:"icons"},(function(t,e){h||(h=t,d=e,k.call(u))})):d={};var j=Object.keys(v.patternDependencies);function k(){if(h)return s(h);if(f&&d&&p){var e=new i(f),n=new t.ImageAtlas(d,p);for(var o in g){var u=g[o];u instanceof t.SymbolBucket?(a(u.layers,this.zoom,r),t.performSymbolLayout(u,f,e.positions,d,n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):u.hasPattern&&(u instanceof t.LineBucket||u instanceof t.FillBucket||u instanceof t.FillExtrusionBucket)&&(a(u.layers,this.zoom,r),u.addFeatures(v,this.tileID.canonical,n.patternPositions))}this.status="done",s(null,{buckets:t.values(g).filter((function(t){return!t.isEmpty()})),featureIndex:c,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:n,glyphMap:this.returnDependencies?f:null,iconMap:this.returnDependencies?d:null,glyphPositions:this.returnDependencies?e.positions:null})}}j.length?o.send("getImages",{icons:j,source:this.source,tileID:this.tileID,type:"patterns"},(function(t,e){h||(h=t,p=e,k.call(u))})):p={},k.call(this)};var u=function(t,e,n,r){this.actor=t,this.layerIndex=e,this.availableImages=n,this.loadVectorData=r||s,this.loading={},this.loaded={}};u.prototype.loadTile=function(e,n){var r=this,i=e.uid;this.loading||(this.loading={});var a=!!(e&&e.request&&e.request.collectResourceTiming)&&new t.RequestPerformance(e.request),s=this.loading[i]=new o(e);s.abort=this.loadVectorData(e,(function(e,o){if(delete r.loading[i],e||!o)return s.status="done",r.loaded[i]=s,n(e);var u=o.rawData,l={};o.expires&&(l.expires=o.expires),o.cacheControl&&(l.cacheControl=o.cacheControl);var c={};if(a){var h=a.finish();h&&(c.resourceTiming=JSON.parse(JSON.stringify(h)))}s.vectorTile=o.vectorTile,s.parse(o.vectorTile,r.layerIndex,r.availableImages,r.actor,(function(e,r){if(e||!r)return n(e);n(null,t.extend({rawTileData:u.slice(0)},r,l,c))})),r.loaded=r.loaded||{},r.loaded[i]=s}))},u.prototype.reloadTile=function(t,e){var n=this,r=this.loaded,i=t.uid,o=this;if(r&&r[i]){var a=r[i];a.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,r){var i=a.reloadCallback;i&&(delete a.reloadCallback,a.parse(a.vectorTile,o.layerIndex,n.availableImages,o.actor,i)),e(t,r)};"parsing"===a.status?a.reloadCallback=s:"done"===a.status&&(a.vectorTile?a.parse(a.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},u.prototype.abortTile=function(t,e){var n=this.loading,r=t.uid;n&&n[r]&&n[r].abort&&(n[r].abort(),delete n[r]),e()},u.prototype.removeTile=function(t,e){var n=this.loaded,r=t.uid;n&&n[r]&&delete n[r],e()};var l=t.window.ImageBitmap,c=function(){this.loaded={}};function h(t,e){if(0!==t.length){f(t[0],e);for(var n=1;n<t.length;n++)f(t[n],!e)}}function f(t,e){for(var n=0,r=0,i=t.length,o=i-1;r<i;o=r++)n+=(t[r][0]-t[o][0])*(t[o][1]+t[r][1]);n>=0!=!!e&&t.reverse()}c.prototype.loadTile=function(e,n){var r=e.uid,i=e.encoding,o=e.rawImageData,a=l&&o instanceof l?this.getImageData(o):o,s=new t.DEMData(r,a,i);this.loaded=this.loaded||{},this.loaded[r]=s,n(null,s)},c.prototype.getImageData=function(e){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);var n=this.offscreenCanvasContext.getImageData(-1,-1,e.width+2,e.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:n.width,height:n.height},n.data)},c.prototype.removeTile=function(t){var e=this.loaded,n=t.uid;e&&e[n]&&delete e[n]};var d=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,p=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,"id"in e&&!isNaN(e.id)&&(this.id=parseInt(e.id,10))};p.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],n=0,r=this._feature.geometry;n<r.length;n+=1){var i=r[n];e.push([new t.Point$1(i[0],i[1])])}return e}for(var o=[],a=0,s=this._feature.geometry;a<s.length;a+=1){for(var u=[],l=0,c=s[a];l<c.length;l+=1){var h=c[l];u.push(new t.Point$1(h[0],h[1]))}o.push(u)}return o},p.prototype.toGeoJSON=function(t,e,n){return d.call(this,t,e,n)};var g=function(e){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=t.EXTENT,this.length=e.length,this._features=e};g.prototype.feature=function(t){return new p(this._features[t])};var v=t.vectorTile.VectorTileFeature,m=y;function y(t,e){this.options=e||{},this.features=t,this.length=t.length}function b(t,e){this.id="number"==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}y.prototype.feature=function(t){return new b(this.features[t],this.options.extent)},b.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var n=0;n<e.length;n++){for(var r=e[n],i=[],o=0;o<r.length;o++)i.push(new t.Point$1(r[o][0],r[o][1]));this.geometry.push(i)}return this.geometry},b.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,n=-1/0,r=1/0,i=-1/0,o=0;o<t.length;o++)for(var a=t[o],s=0;s<a.length;s++){var u=a[s];e=Math.min(e,u.x),n=Math.max(n,u.x),r=Math.min(r,u.y),i=Math.max(i,u.y)}return[e,r,n,i]},b.prototype.toGeoJSON=v.prototype.toGeoJSON;var _=w,x=m;function w(e){var n=new t.pbf;return function(t,e){for(var n in t.layers)e.writeMessage(3,O,t.layers[n])}(e,n),n.finish()}function O(t,e){var n;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);var r={keys:[],values:[],keycache:{},valuecache:{}};for(n=0;n<t.length;n++)r.feature=t.feature(n),e.writeMessage(2,S,r);var i=r.keys;for(n=0;n<i.length;n++)e.writeStringField(3,i[n]);var o=r.values;for(n=0;n<o.length;n++)e.writeMessage(4,M,o[n])}function S(t,e){var n=t.feature;void 0!==n.id&&e.writeVarintField(1,n.id),e.writeMessage(2,C,t),e.writeVarintField(3,n.type),e.writeMessage(4,A,n)}function C(t,e){var n=t.feature,r=t.keys,i=t.values,o=t.keycache,a=t.valuecache;for(var s in n.properties){var u=o[s];void 0===u&&(r.push(s),o[s]=u=r.length-1),e.writeVarint(u);var l=n.properties[s],c=typeof l;"string"!==c&&"boolean"!==c&&"number"!==c&&(l=JSON.stringify(l));var h=c+":"+l,f=a[h];void 0===f&&(i.push(l),a[h]=f=i.length-1),e.writeVarint(f)}}function E(t,e){return(e<<3)+(7&t)}function T(t){return t<<1^t>>31}function A(t,e){for(var n=t.loadGeometry(),r=t.type,i=0,o=0,a=n.length,s=0;s<a;s++){var u=n[s],l=1;1===r&&(l=u.length),e.writeVarint(E(1,l));for(var c=3===r?u.length-1:u.length,h=0;h<c;h++){1===h&&1!==r&&e.writeVarint(E(2,c-1));var f=u[h].x-i,d=u[h].y-o;e.writeVarint(T(f)),e.writeVarint(T(d)),i+=f,o+=d}3===r&&e.writeVarint(E(7,1))}}function M(t,e){var n=typeof t;"string"===n?e.writeStringField(1,t):"boolean"===n?e.writeBooleanField(7,t):"number"===n&&(t%1!=0?e.writeDoubleField(3,t):t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function I(t,e,n,r){j(t,n,r),j(e,2*n,2*r),j(e,2*n+1,2*r+1)}function j(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function k(t,e,n,r){var i=t-n,o=e-r;return i*i+o*o}_.fromVectorTileJs=w,_.fromGeojsonVt=function(t,e){e=e||{};var n={};for(var r in t)n[r]=new m(t[r].features,e),n[r].name=r,n[r].version=e.version,n[r].extent=e.extent;return w({layers:n})},_.GeoJSONWrapper=x;var P=function(t){return t[0]},L=function(t){return t[1]},R=function(t,e,n,r,i){void 0===e&&(e=P),void 0===n&&(n=L),void 0===r&&(r=64),void 0===i&&(i=Float64Array),this.nodeSize=r,this.points=t;for(var o=t.length<65536?Uint16Array:Uint32Array,a=this.ids=new o(t.length),s=this.coords=new i(2*t.length),u=0;u<t.length;u++)a[u]=u,s[2*u]=e(t[u]),s[2*u+1]=n(t[u]);!function t(e,n,r,i,o,a){if(!(o-i<=r)){var s=i+o>>1;!function t(e,n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,u=r-i+1,l=Math.log(s),c=.5*Math.exp(2*l/3),h=.5*Math.sqrt(l*c*(s-c)/s)*(u-s/2<0?-1:1);t(e,n,r,Math.max(i,Math.floor(r-u*c/s+h)),Math.min(o,Math.floor(r+(s-u)*c/s+h)),a)}var f=n[2*r+a],d=i,p=o;for(I(e,n,i,r),n[2*o+a]>f&&I(e,n,i,o);d<p;){for(I(e,n,d,p),d++,p--;n[2*d+a]<f;)d++;for(;n[2*p+a]>f;)p--}n[2*i+a]===f?I(e,n,i,p):I(e,n,++p,o),p<=r&&(i=p+1),r<=p&&(o=p-1)}}(e,n,s,i,o,a%2),t(e,n,r,i,s-1,a+1),t(e,n,r,s+1,o,a+1)}}(a,s,r,0,a.length-1,0)};R.prototype.range=function(t,e,n,r){return function(t,e,n,r,i,o,a){for(var s,u,l=[0,t.length-1,0],c=[];l.length;){var h=l.pop(),f=l.pop(),d=l.pop();if(f-d<=a)for(var p=d;p<=f;p++)u=e[2*p+1],(s=e[2*p])>=n&&s<=i&&u>=r&&u<=o&&c.push(t[p]);else{var g=Math.floor((d+f)/2);u=e[2*g+1],(s=e[2*g])>=n&&s<=i&&u>=r&&u<=o&&c.push(t[g]);var v=(h+1)%2;(0===h?n<=s:r<=u)&&(l.push(d),l.push(g-1),l.push(v)),(0===h?i>=s:o>=u)&&(l.push(g+1),l.push(f),l.push(v))}}return c}(this.ids,this.coords,t,e,n,r,this.nodeSize)},R.prototype.within=function(t,e,n){return function(t,e,n,r,i,o){for(var a=[0,t.length-1,0],s=[],u=i*i;a.length;){var l=a.pop(),c=a.pop(),h=a.pop();if(c-h<=o)for(var f=h;f<=c;f++)k(e[2*f],e[2*f+1],n,r)<=u&&s.push(t[f]);else{var d=Math.floor((h+c)/2),p=e[2*d],g=e[2*d+1];k(p,g,n,r)<=u&&s.push(t[d]);var v=(l+1)%2;(0===l?n-i<=p:r-i<=g)&&(a.push(h),a.push(d-1),a.push(v)),(0===l?n+i>=p:r+i>=g)&&(a.push(d+1),a.push(c),a.push(v))}}return s}(this.ids,this.coords,t,e,n,this.nodeSize)};var D={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},N=function(t){this.options=H(Object.create(D),t),this.trees=new Array(this.options.maxZoom+1)};function B(t,e,n,r,i){return{x:t,y:e,zoom:1/0,id:n,parentId:-1,numPoints:r,properties:i}}function F(t,e){var n=t.geometry.coordinates,r=n[1];return{x:U(n[0]),y:G(r),zoom:1/0,index:e,parentId:-1}}function z(t){return{type:"Feature",id:t.id,properties:V(t),geometry:{type:"Point",coordinates:[(r=t.x,360*(r-.5)),(e=t.y,n=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var e,n,r}function V(t){var e=t.numPoints,n=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return H(H({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:n})}function U(t){return t/360+.5}function G(t){var e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function H(t,e){for(var n in e)t[n]=e[n];return t}function W(t){return t.x}function Y(t){return t.y}function X(t,e,n,r,i,o){var a=i-n,s=o-r;if(0!==a||0!==s){var u=((t-n)*a+(e-r)*s)/(a*a+s*s);u>1?(n=i,r=o):u>0&&(n+=a*u,r+=s*u)}return(a=t-n)*a+(s=e-r)*s}function $(t,e,n,r){var i={id:void 0===t?null:t,type:e,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,n=t.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)q(t,e);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r<e.length;r++)q(t,e[r]);else if("MultiPolygon"===n)for(r=0;r<e.length;r++)for(var i=0;i<e[r].length;i++)q(t,e[r][i])}(i),i}function q(t,e){for(var n=0;n<e.length;n+=3)t.minX=Math.min(t.minX,e[n]),t.minY=Math.min(t.minY,e[n+1]),t.maxX=Math.max(t.maxX,e[n]),t.maxY=Math.max(t.maxY,e[n+1])}function Z(t,e,n,r){if(e.geometry){var i=e.geometry.coordinates,o=e.geometry.type,a=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),s=[],u=e.id;if(n.promoteId?u=e.properties[n.promoteId]:n.generateId&&(u=r||0),"Point"===o)K(i,s);else if("MultiPoint"===o)for(var l=0;l<i.length;l++)K(i[l],s);else if("LineString"===o)Q(i,s,a,!1);else if("MultiLineString"===o){if(n.lineMetrics){for(l=0;l<i.length;l++)Q(i[l],s=[],a,!1),t.push($(u,"LineString",s,e.properties));return}J(i,s,a,!1)}else if("Polygon"===o)J(i,s,a,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"===o){for(l=0;l<e.geometry.geometries.length;l++)Z(t,{id:u,geometry:e.geometry.geometries[l],properties:e.properties},n,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(l=0;l<i.length;l++){var c=[];J(i[l],c,a,!0),s.push(c)}}t.push($(u,o,s,e.properties))}}function K(t,e){e.push(tt(t[0])),e.push(et(t[1])),e.push(0)}function Q(t,e,n,r){for(var i,o,a=0,s=0;s<t.length;s++){var u=tt(t[s][0]),l=et(t[s][1]);e.push(u),e.push(l),e.push(0),s>0&&(a+=r?(i*l-u*o)/2:Math.sqrt(Math.pow(u-i,2)+Math.pow(l-o,2))),i=u,o=l}var c=e.length-3;e[2]=1,function t(e,n,r,i){for(var o,a=i,s=r-n>>1,u=r-n,l=e[n],c=e[n+1],h=e[r],f=e[r+1],d=n+3;d<r;d+=3){var p=X(e[d],e[d+1],l,c,h,f);if(p>a)o=d,a=p;else if(p===a){var g=Math.abs(d-s);g<u&&(o=d,u=g)}}a>i&&(o-n>3&&t(e,n,o,i),e[o+2]=a,r-o>3&&t(e,o,r,i))}(e,0,c,n),e[c+2]=1,e.size=Math.abs(a),e.start=0,e.end=e.size}function J(t,e,n,r){for(var i=0;i<t.length;i++){var o=[];Q(t[i],o,n,r),e.push(o)}}function tt(t){return t/360+.5}function et(t){var e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function nt(t,e,n,r,i,o,a,s){if(r/=e,o>=(n/=e)&&a<r)return t;if(a<n||o>=r)return null;for(var u=[],l=0;l<t.length;l++){var c=t[l],h=c.geometry,f=c.type,d=0===i?c.minX:c.minY,p=0===i?c.maxX:c.maxY;if(d>=n&&p<r)u.push(c);else if(!(p<n||d>=r)){var g=[];if("Point"===f||"MultiPoint"===f)rt(h,g,n,r,i);else if("LineString"===f)it(h,g,n,r,i,!1,s.lineMetrics);else if("MultiLineString"===f)at(h,g,n,r,i,!1);else if("Polygon"===f)at(h,g,n,r,i,!0);else if("MultiPolygon"===f)for(var v=0;v<h.length;v++){var m=[];at(h[v],m,n,r,i,!0),m.length&&g.push(m)}if(g.length){if(s.lineMetrics&&"LineString"===f){for(v=0;v<g.length;v++)u.push($(c.id,f,g[v],c.tags));continue}"LineString"!==f&&"MultiLineString"!==f||(1===g.length?(f="LineString",g=g[0]):f="MultiLineString"),"Point"!==f&&"MultiPoint"!==f||(f=3===g.length?"Point":"MultiPoint"),u.push($(c.id,f,g,c.tags))}}}return u.length?u:null}function rt(t,e,n,r,i){for(var o=0;o<t.length;o+=3){var a=t[o+i];a>=n&&a<=r&&(e.push(t[o]),e.push(t[o+1]),e.push(t[o+2]))}}function it(t,e,n,r,i,o,a){for(var s,u,l=ot(t),c=0===i?ut:lt,h=t.start,f=0;f<t.length-3;f+=3){var d=t[f],p=t[f+1],g=t[f+2],v=t[f+3],m=t[f+4],y=0===i?d:p,b=0===i?v:m,_=!1;a&&(s=Math.sqrt(Math.pow(d-v,2)+Math.pow(p-m,2))),y<n?b>n&&(u=c(l,d,p,v,m,n),a&&(l.start=h+s*u)):y>r?b<r&&(u=c(l,d,p,v,m,r),a&&(l.start=h+s*u)):st(l,d,p,g),b<n&&y>=n&&(u=c(l,d,p,v,m,n),_=!0),b>r&&y<=r&&(u=c(l,d,p,v,m,r),_=!0),!o&&_&&(a&&(l.end=h+s*u),e.push(l),l=ot(t)),a&&(h+=s)}var x=t.length-3;d=t[x],p=t[x+1],g=t[x+2],(y=0===i?d:p)>=n&&y<=r&&st(l,d,p,g),x=l.length-3,o&&x>=3&&(l[x]!==l[0]||l[x+1]!==l[1])&&st(l,l[0],l[1],l[2]),l.length&&e.push(l)}function ot(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function at(t,e,n,r,i,o){for(var a=0;a<t.length;a++)it(t[a],e,n,r,i,o,!1)}function st(t,e,n,r){t.push(e),t.push(n),t.push(r)}function ut(t,e,n,r,i,o){var a=(o-e)/(r-e);return t.push(o),t.push(n+(i-n)*a),t.push(1),a}function lt(t,e,n,r,i,o){var a=(o-n)/(i-n);return t.push(e+(r-e)*a),t.push(o),t.push(1),a}function ct(t,e){for(var n=[],r=0;r<t.length;r++){var i,o=t[r],a=o.type;if("Point"===a||"MultiPoint"===a||"LineString"===a)i=ht(o.geometry,e);else if("MultiLineString"===a||"Polygon"===a){i=[];for(var s=0;s<o.geometry.length;s++)i.push(ht(o.geometry[s],e))}else if("MultiPolygon"===a)for(i=[],s=0;s<o.geometry.length;s++){for(var u=[],l=0;l<o.geometry[s].length;l++)u.push(ht(o.geometry[s][l],e));i.push(u)}n.push($(o.id,a,i,o.tags))}return n}function ht(t,e){var n=[];n.size=t.size,void 0!==t.start&&(n.start=t.start,n.end=t.end);for(var r=0;r<t.length;r+=3)n.push(t[r]+e,t[r+1],t[r+2]);return n}function ft(t,e){if(t.transformed)return t;var n,r,i,o=1<<t.z,a=t.x,s=t.y;for(n=0;n<t.features.length;n++){var u=t.features[n],l=u.geometry,c=u.type;if(u.geometry=[],1===c)for(r=0;r<l.length;r+=2)u.geometry.push(dt(l[r],l[r+1],e,o,a,s));else for(r=0;r<l.length;r++){var h=[];for(i=0;i<l[r].length;i+=2)h.push(dt(l[r][i],l[r][i+1],e,o,a,s));u.geometry.push(h)}}return t.transformed=!0,t}function dt(t,e,n,r,i,o){return[Math.round(n*(t*r-i)),Math.round(n*(e*r-o))]}function pt(t,e,n,r,i){for(var o=e===i.maxZoom?0:i.tolerance/((1<<e)*i.extent),a={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:n,y:r,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<t.length;s++){a.numFeatures++,gt(a,t[s],o,i);var u=t[s].minX,l=t[s].minY,c=t[s].maxX,h=t[s].maxY;u<a.minX&&(a.minX=u),l<a.minY&&(a.minY=l),c>a.maxX&&(a.maxX=c),h>a.maxY&&(a.maxY=h)}return a}function gt(t,e,n,r){var i=e.geometry,o=e.type,a=[];if("Point"===o||"MultiPoint"===o)for(var s=0;s<i.length;s+=3)a.push(i[s]),a.push(i[s+1]),t.numPoints++,t.numSimplified++;else if("LineString"===o)vt(a,i,t,n,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(s=0;s<i.length;s++)vt(a,i[s],t,n,"Polygon"===o,0===s);else if("MultiPolygon"===o)for(var u=0;u<i.length;u++){var l=i[u];for(s=0;s<l.length;s++)vt(a,l[s],t,n,!0,0===s)}if(a.length){var c=e.tags||null;if("LineString"===o&&r.lineMetrics){for(var h in c={},e.tags)c[h]=e.tags[h];c.mapbox_clip_start=i.start/i.size,c.mapbox_clip_end=i.end/i.size}var f={geometry:a,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:c};null!==e.id&&(f.id=e.id),t.features.push(f)}}function vt(t,e,n,r,i,o){var a=r*r;if(r>0&&e.size<(i?a:r))n.numPoints+=e.length/3;else{for(var s=[],u=0;u<e.length;u+=3)(0===r||e[u+2]>a)&&(n.numSimplified++,s.push(e[u]),s.push(e[u+1])),n.numPoints++;i&&function(t,e){for(var n=0,r=0,i=t.length,o=i-2;r<i;o=r,r+=2)n+=(t[r]-t[o])*(t[r+1]+t[o+1]);if(n>0===e)for(r=0,i=t.length;r<i/2;r+=2){var a=t[r],s=t[r+1];t[r]=t[i-2-r],t[r+1]=t[i-1-r],t[i-2-r]=a,t[i-1-r]=s}}(s,o),t.push(s)}}function mt(t,e){var n=(e=this.options=function(t,e){for(var n in e)t[n]=e[n];return t}(Object.create(this.options),e)).debug;if(n&&console.time("preprocess data"),e.maxZoom<0||e.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(t,e){var n=[];if("FeatureCollection"===t.type)for(var r=0;r<t.features.length;r++)Z(n,t.features[r],e,r);else Z(n,"Feature"===t.type?t:{geometry:t},e);return n}(t,e);this.tiles={},this.tileCoords=[],n&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(r=function(t,e){var n=e.buffer/e.extent,r=t,i=nt(t,1,-1-n,n,0,-1,2,e),o=nt(t,1,1-n,2+n,0,-1,2,e);return(i||o)&&(r=nt(t,1,-n,1+n,0,-1,2,e)||[],i&&(r=ct(i,1).concat(r)),o&&(r=r.concat(ct(o,-1)))),r}(r,e)).length&&this.splitTile(r,0,0,0),n&&(r.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function yt(t,e,n){return 32*((1<<t)*n+e)+t}function bt(t,e){var n=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var r=this._geoJSONIndex.getTile(n.z,n.x,n.y);if(!r)return e(null,null);var i=new g(r.features),o=_(i);0===o.byteOffset&&o.byteLength===o.buffer.byteLength||(o=new Uint8Array(o)),e(null,{vectorTile:i,rawData:o.buffer})}N.prototype.load=function(t){var e=this.options,n=e.log,r=e.minZoom,i=e.maxZoom,o=e.nodeSize;n&&console.time("total time");var a="prepare "+t.length+" points";n&&console.time(a),this.points=t;for(var s=[],u=0;u<t.length;u++)t[u].geometry&&s.push(F(t[u],u));this.trees[i+1]=new R(s,W,Y,o,Float32Array),n&&console.timeEnd(a);for(var l=i;l>=r;l--){var c=+Date.now();s=this._cluster(s,l),this.trees[l]=new R(s,W,Y,o,Float32Array),n&&console.log("z%d: %d clusters in %dms",l,s.length,+Date.now()-c)}return n&&console.timeEnd("total time"),this},N.prototype.getClusters=function(t,e){var n=((t[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)n=-180,i=180;else if(n>i){var a=this.getClusters([n,r,180,o],e),s=this.getClusters([-180,r,i,o],e);return a.concat(s)}for(var u=this.trees[this._limitZoom(e)],l=[],c=0,h=u.range(U(n),G(o),U(i),G(r));c<h.length;c+=1){var f=u.points[h[c]];l.push(f.numPoints?z(f):this.points[f.index])}return l},N.prototype.getChildren=function(t){var e=this._getOriginId(t),n=this._getOriginZoom(t),r="No cluster with the specified id.",i=this.trees[n];if(!i)throw new Error(r);var o=i.points[e];if(!o)throw new Error(r);for(var a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=[],u=0,l=i.within(o.x,o.y,a);u<l.length;u+=1){var c=i.points[l[u]];c.parentId===t&&s.push(c.numPoints?z(c):this.points[c.index])}if(0===s.length)throw new Error(r);return s},N.prototype.getLeaves=function(t,e,n){var r=[];return this._appendLeaves(r,t,e=e||10,n=n||0,0),r},N.prototype.getTile=function(t,e,n){var r=this.trees[this._limitZoom(t)],i=Math.pow(2,t),o=this.options,a=o.radius/o.extent,s=(n-a)/i,u=(n+1+a)/i,l={features:[]};return this._addTileFeatures(r.range((e-a)/i,s,(e+1+a)/i,u),r.points,e,n,i,l),0===e&&this._addTileFeatures(r.range(1-a/i,s,1,u),r.points,i,n,i,l),e===i-1&&this._addTileFeatures(r.range(0,s,a/i,u),r.points,-1,n,i,l),l.features.length?l:null},N.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e<=this.options.maxZoom;){var n=this.getChildren(t);if(e++,1!==n.length)break;t=n[0].properties.cluster_id}return e},N.prototype._appendLeaves=function(t,e,n,r,i){for(var o=0,a=this.getChildren(e);o<a.length;o+=1){var s=a[o],u=s.properties;if(u&&u.cluster?i+u.point_count<=r?i+=u.point_count:i=this._appendLeaves(t,u.cluster_id,n,r,i):i<r?i++:t.push(s),t.length===n)break}return i},N.prototype._addTileFeatures=function(t,e,n,r,i,o){for(var a=0,s=t;a<s.length;a+=1){var u=e[s[a]],l=u.numPoints,c={type:1,geometry:[[Math.round(this.options.extent*(u.x*i-n)),Math.round(this.options.extent*(u.y*i-r))]],tags:l?V(u):this.points[u.index].properties},h=void 0;l?h=u.id:this.options.generateId?h=u.index:this.points[u.index].id&&(h=this.points[u.index].id),void 0!==h&&(c.id=h),o.features.push(c)}},N.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(+t,this.options.maxZoom+1))},N.prototype._cluster=function(t,e){for(var n=[],r=this.options,i=r.reduce,o=r.minPoints,a=r.radius/(r.extent*Math.pow(2,e)),s=0;s<t.length;s++){var u=t[s];if(!(u.zoom<=e)){u.zoom=e;for(var l=this.trees[e+1],c=l.within(u.x,u.y,a),h=u.numPoints||1,f=h,d=0,p=c;d<p.length;d+=1){var g=l.points[p[d]];g.zoom>e&&(f+=g.numPoints||1)}if(f>=o){for(var v=u.x*h,m=u.y*h,y=i&&h>1?this._map(u,!0):null,b=(s<<5)+(e+1)+this.points.length,_=0,x=c;_<x.length;_+=1){var w=l.points[x[_]];if(!(w.zoom<=e)){w.zoom=e;var O=w.numPoints||1;v+=w.x*O,m+=w.y*O,w.parentId=b,i&&(y||(y=this._map(u,!0)),i(y,this._map(w)))}}u.parentId=b,n.push(B(v/f,m/f,b,f,y))}else if(n.push(u),f>1)for(var S=0,C=c;S<C.length;S+=1){var E=l.points[C[S]];E.zoom<=e||(E.zoom=e,n.push(E))}}}return n},N.prototype._getOriginId=function(t){return t-this.points.length>>5},N.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},N.prototype._map=function(t,e){if(t.numPoints)return e?H({},t.properties):t.properties;var n=this.points[t.index].properties,r=this.options.map(n);return e&&r===n?H({},r):r},mt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},mt.prototype.splitTile=function(t,e,n,r,i,o,a){for(var s=[t,e,n,r],u=this.options,l=u.debug;s.length;){r=s.pop(),n=s.pop(),e=s.pop(),t=s.pop();var c=1<<e,h=yt(e,n,r),f=this.tiles[h];if(!f&&(l>1&&console.time("creation"),f=this.tiles[h]=pt(t,e,n,r,u),this.tileCoords.push({z:e,x:n,y:r}),l)){l>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,n,r,f.numFeatures,f.numPoints,f.numSimplified),console.timeEnd("creation"));var d="z"+e;this.stats[d]=(this.stats[d]||0)+1,this.total++}if(f.source=t,i){if(e===u.maxZoom||e===i)continue;var p=1<<i-e;if(n!==Math.floor(o/p)||r!==Math.floor(a/p))continue}else if(e===u.indexMaxZoom||f.numPoints<=u.indexMaxPoints)continue;if(f.source=null,0!==t.length){l>1&&console.time("clipping");var g,v,m,y,b,_,x=.5*u.buffer/u.extent,w=.5-x,O=.5+x,S=1+x;g=v=m=y=null,b=nt(t,c,n-x,n+O,0,f.minX,f.maxX,u),_=nt(t,c,n+w,n+S,0,f.minX,f.maxX,u),t=null,b&&(g=nt(b,c,r-x,r+O,1,f.minY,f.maxY,u),v=nt(b,c,r+w,r+S,1,f.minY,f.maxY,u),b=null),_&&(m=nt(_,c,r-x,r+O,1,f.minY,f.maxY,u),y=nt(_,c,r+w,r+S,1,f.minY,f.maxY,u),_=null),l>1&&console.timeEnd("clipping"),s.push(g||[],e+1,2*n,2*r),s.push(v||[],e+1,2*n,2*r+1),s.push(m||[],e+1,2*n+1,2*r),s.push(y||[],e+1,2*n+1,2*r+1)}}},mt.prototype.getTile=function(t,e,n){var r=this.options,i=r.extent,o=r.debug;if(t<0||t>24)return null;var a=1<<t,s=yt(t,e=(e%a+a)%a,n);if(this.tiles[s])return ft(this.tiles[s],i);o>1&&console.log("drilling down to z%d-%d-%d",t,e,n);for(var u,l=t,c=e,h=n;!u&&l>0;)l--,c=Math.floor(c/2),h=Math.floor(h/2),u=this.tiles[yt(l,c,h)];return u&&u.source?(o>1&&console.log("found parent tile z%d-%d-%d",l,c,h),o>1&&console.time("drilling down"),this.splitTile(u.source,l,c,h,t,e,n),o>1&&console.timeEnd("drilling down"),this.tiles[s]?ft(this.tiles[s],i):null):null};var _t=function(e){function n(t,n,r,i){e.call(this,t,n,r,bt),i&&(this.loadGeoJSON=i)}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.loadData=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},n.prototype._loadData=function(){var e=this;if(this._pendingCallback&&this._pendingLoadDataParams){var n=this._pendingCallback,r=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var i=!!(r&&r.request&&r.request.collectResourceTiming)&&new t.RequestPerformance(r.request);this.loadGeoJSON(r,(function(o,a){if(o||!a)return n(o);if("object"!=typeof a)return n(new Error("Input data given to '"+r.source+"' is not a valid GeoJSON object."));!function t(e,n){var r,i=e&&e.type;if("FeatureCollection"===i)for(r=0;r<e.features.length;r++)t(e.features[r],n);else if("GeometryCollection"===i)for(r=0;r<e.geometries.length;r++)t(e.geometries[r],n);else if("Feature"===i)t(e.geometry,n);else if("Polygon"===i)h(e.coordinates,n);else if("MultiPolygon"===i)for(r=0;r<e.coordinates.length;r++)h(e.coordinates[r],n);return e}(a,!0);try{if(r.filter){var s=t.createExpression(r.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===s.result)throw new Error(s.value.map((function(t){return t.key+": "+t.message})).join(", "));var u=a.features.filter((function(t){return s.value.evaluate({zoom:0},t)}));a={type:"FeatureCollection",features:u}}e._geoJSONIndex=r.cluster?new N(function(e){var n=e.superclusterOptions,r=e.clusterProperties;if(!r||!n)return n;for(var i={},o={},a={accumulated:null,zoom:0},s={properties:null},u=Object.keys(r),l=0,c=u;l<c.length;l+=1){var h=c[l],f=r[h],d=f[0],p=t.createExpression(f[1]),g=t.createExpression("string"==typeof d?[d,["accumulated"],["get",h]]:d);i[h]=p.value,o[h]=g.value}return n.map=function(t){s.properties=t;for(var e={},n=0,r=u;n<r.length;n+=1){var o=r[n];e[o]=i[o].evaluate(a,s)}return e},n.reduce=function(t,e){s.properties=e;for(var n=0,r=u;n<r.length;n+=1){var i=r[n];a.accumulated=t[i],t[i]=o[i].evaluate(a,s)}},n}(r)).load(a.features):function(t,e){return new mt(t,e)}(a,r.geojsonVtOptions)}catch(o){return n(o)}e.loaded={};var l={};if(i){var c=i.finish();c&&(l.resourceTiming={},l.resourceTiming[r.source]=JSON.parse(JSON.stringify(c)))}n(null,l)}))}},n.prototype.coalesce=function(){"Coalescing"===this._state?this._state="Idle":"NeedsLoadData"===this._state&&(this._state="Coalescing",this._loadData())},n.prototype.reloadTile=function(t,n){var r=this.loaded;return r&&r[t.uid]?e.prototype.reloadTile.call(this,t,n):this.loadTile(t,n)},n.prototype.loadGeoJSON=function(e,n){if(e.request)t.getJSON(e.request,n);else{if("string"!=typeof e.data)return n(new Error("Input data given to '"+e.source+"' is not a valid GeoJSON object."));try{return n(null,JSON.parse(e.data))}catch(t){return n(new Error("Input data given to '"+e.source+"' is not a valid GeoJSON object."))}}},n.prototype.removeSource=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),e()},n.prototype.getClusterExpansionZoom=function(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(t){e(t)}},n.prototype.getClusterChildren=function(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(t){e(t)}},n.prototype.getClusterLeaves=function(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(t){e(t)}},n}(u),xt=function(e){var n=this;this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:u,geojson:_t},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(n.workerSourceTypes[t])throw new Error('Worker source with name "'+t+'" already registered.');n.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(e){if(t.plugin.isParsed())throw new Error("RTL text plugin already registered.");t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}};return xt.prototype.setReferrer=function(t,e){this.referrer=e},xt.prototype.setImages=function(t,e,n){for(var r in this.availableImages[t]=e,this.workerSources[t]){var i=this.workerSources[t][r];for(var o in i)i[o].availableImages=e}n()},xt.prototype.setLayers=function(t,e,n){this.getLayerIndex(t).replace(e),n()},xt.prototype.updateLayers=function(t,e,n){this.getLayerIndex(t).update(e.layers,e.removedIds),n()},xt.prototype.loadTile=function(t,e,n){this.getWorkerSource(t,e.type,e.source).loadTile(e,n)},xt.prototype.loadDEMTile=function(t,e,n){this.getDEMWorkerSource(t,e.source).loadTile(e,n)},xt.prototype.reloadTile=function(t,e,n){this.getWorkerSource(t,e.type,e.source).reloadTile(e,n)},xt.prototype.abortTile=function(t,e,n){this.getWorkerSource(t,e.type,e.source).abortTile(e,n)},xt.prototype.removeTile=function(t,e,n){this.getWorkerSource(t,e.type,e.source).removeTile(e,n)},xt.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},xt.prototype.removeSource=function(t,e,n){if(this.workerSources[t]&&this.workerSources[t][e.type]&&this.workerSources[t][e.type][e.source]){var r=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==r.removeSource?r.removeSource(e,n):n()}},xt.prototype.loadWorkerSource=function(t,e,n){try{this.self.importScripts(e.url),n()}catch(t){n(t.toString())}},xt.prototype.syncRTLPluginState=function(e,n,r){try{t.plugin.setState(n);var i=t.plugin.getPluginURL();if(t.plugin.isLoaded()&&!t.plugin.isParsed()&&null!=i){this.self.importScripts(i);var o=t.plugin.isParsed();r(o?void 0:new Error("RTL Text Plugin failed to import scripts from "+i),o)}}catch(t){r(t.toString())}},xt.prototype.getAvailableImages=function(t){var e=this.availableImages[t];return e||(e=[]),e},xt.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new r),e},xt.prototype.getWorkerSource=function(t,e,n){var r=this;return this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),this.workerSources[t][e][n]||(this.workerSources[t][e][n]=new this.workerSourceTypes[e]({send:function(e,n,i){r.actor.send(e,n,i,t)}},this.getLayerIndex(t),this.getAvailableImages(t))),this.workerSources[t][e][n]},xt.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new c),this.demWorkerSources[t][e]},xt.prototype.enforceCacheSizeLimit=function(e,n){t.enforceCacheSizeLimit(n)},"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new xt(self)),xt})),r(0,(function(t){var e=t.createCommonjsModule((function(t){function e(t){return!n(t)}function n(t){return"undefined"==typeof window||"undefined"==typeof document?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var t,e,n=new Blob([""],{type:"text/javascript"}),r=URL.createObjectURL(n);try{e=new Worker(r),t=!0}catch(e){t=!1}return e&&e.terminate(),URL.revokeObjectURL(r),t}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var t=document.createElement("canvas");t.width=t.height=1;var e=t.getContext("2d");if(!e)return!1;var n=e.getImageData(0,0,1,1);return n&&n.width===t.width}()?(void 0===r[n=t&&t.failIfMajorPerformanceCaveat]&&(r[n]=function(t){var n=function(t){var n=document.createElement("canvas"),r=Object.create(e.webGLContextAttributes);return r.failIfMajorPerformanceCaveat=t,n.probablySupportsContext?n.probablySupportsContext("webgl",r)||n.probablySupportsContext("experimental-webgl",r):n.supportsContext?n.supportsContext("webgl",r)||n.supportsContext("experimental-webgl",r):n.getContext("webgl",r)||n.getContext("experimental-webgl",r)}(t);if(!n)return!1;var r=n.createShader(n.VERTEX_SHADER);return!(!r||n.isContextLost())&&(n.shaderSource(r,"void main() {}"),n.compileShader(r),!0===n.getShaderParameter(r,n.COMPILE_STATUS))}(n)),r[n]?void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var n}t.exports?t.exports=e:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=e,window.mapboxgl.notSupportedReason=n);var r={};e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}})),n={create:function(e,n,r){var i=t.window.document.createElement(e);return void 0!==n&&(i.className=n),r&&r.appendChild(i),i},createNS:function(e,n){return t.window.document.createElementNS(e,n)}},r=t.window.document&&t.window.document.documentElement.style;function i(t){if(!r)return t[0];for(var e=0;e<t.length;e++)if(t[e]in r)return t[e];return t[0]}var o,a=i(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]);n.disableDrag=function(){r&&a&&(o=r[a],r[a]="none")},n.enableDrag=function(){r&&a&&(r[a]=o)};var s=i(["transform","WebkitTransform"]);n.setTransform=function(t,e){t.style[s]=e};var u=!1;try{var l=Object.defineProperty({},"passive",{get:function(){u=!0}});t.window.addEventListener("test",l,l),t.window.removeEventListener("test",l,l)}catch(t){u=!1}n.addEventListener=function(t,e,n,r){void 0===r&&(r={}),t.addEventListener(e,n,"passive"in r&&u?r:r.capture)},n.removeEventListener=function(t,e,n,r){void 0===r&&(r={}),t.removeEventListener(e,n,"passive"in r&&u?r:r.capture)};var c=function(e){e.preventDefault(),e.stopPropagation(),t.window.removeEventListener("click",c,!0)};function h(t){var e=t.userImage;return!!(e&&e.render&&e.render())&&(t.data.replace(new Uint8Array(e.data.buffer)),!0)}n.suppressClick=function(){t.window.addEventListener("click",c,!0),t.window.setTimeout((function(){t.window.removeEventListener("click",c,!0)}),0)},n.mousePos=function(e,n){var r=e.getBoundingClientRect();return new t.Point(n.clientX-r.left-e.clientLeft,n.clientY-r.top-e.clientTop)},n.touchPos=function(e,n){for(var r=e.getBoundingClientRect(),i=[],o=0;o<n.length;o++)i.push(new t.Point(n[o].clientX-r.left-e.clientLeft,n[o].clientY-r.top-e.clientTop));return i},n.mouseButton=function(e){return void 0!==t.window.InstallTrigger&&2===e.button&&e.ctrlKey&&t.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:e.button},n.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)};var f=function(e){function n(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.isLoaded=function(){return this.loaded},n.prototype.setLoaded=function(t){if(this.loaded!==t&&(this.loaded=t,t)){for(var e=0,n=this.requestors;e<n.length;e+=1){var r=n[e];this._notify(r.ids,r.callback)}this.requestors=[]}},n.prototype.getImage=function(t){return this.images[t]},n.prototype.addImage=function(t,e){this._validate(t,e)&&(this.images[t]=e)},n.prototype._validate=function(e,n){var r=!0;return this._validateStretch(n.stretchX,n.data&&n.data.width)||(this.fire(new t.ErrorEvent(new Error('Image "'+e+'" has invalid "stretchX" value'))),r=!1),this._validateStretch(n.stretchY,n.data&&n.data.height)||(this.fire(new t.ErrorEvent(new Error('Image "'+e+'" has invalid "stretchY" value'))),r=!1),this._validateContent(n.content,n)||(this.fire(new t.ErrorEvent(new Error('Image "'+e+'" has invalid "content" value'))),r=!1),r},n.prototype._validateStretch=function(t,e){if(!t)return!0;for(var n=0,r=0,i=t;r<i.length;r+=1){var o=i[r];if(o[0]<n||o[1]<o[0]||e<o[1])return!1;n=o[1]}return!0},n.prototype._validateContent=function(t,e){return!(t&&(4!==t.length||t[0]<0||e.data.width<t[0]||t[1]<0||e.data.height<t[1]||t[2]<0||e.data.width<t[2]||t[3]<0||e.data.height<t[3]||t[2]<t[0]||t[3]<t[1]))},n.prototype.updateImage=function(t,e){e.version=this.images[t].version+1,this.images[t]=e,this.updatedImages[t]=!0},n.prototype.removeImage=function(t){var e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&&e.userImage.onRemove&&e.userImage.onRemove()},n.prototype.listImages=function(){return Object.keys(this.images)},n.prototype.getImages=function(t,e){var n=!0;if(!this.isLoaded())for(var r=0,i=t;r<i.length;r+=1)this.images[i[r]]||(n=!1);this.isLoaded()||n?this._notify(t,e):this.requestors.push({ids:t,callback:e})},n.prototype._notify=function(e,n){for(var r={},i=0,o=e;i<o.length;i+=1){var a=o[i];this.images[a]||this.fire(new t.Event("styleimagemissing",{id:a}));var s=this.images[a];s?r[a]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,version:s.version,stretchX:s.stretchX,stretchY:s.stretchY,content:s.content,hasRenderCallback:Boolean(s.userImage&&s.userImage.render)}:t.warnOnce('Image "'+a+'" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.')}n(null,r)},n.prototype.getPixelSize=function(){var t=this.atlasImage;return{width:t.width,height:t.height}},n.prototype.getPattern=function(e){var n=this.patterns[e],r=this.getImage(e);if(!r)return null;if(n&&n.position.version===r.version)return n.position;if(n)n.position.version=r.version;else{var i={w:r.data.width+2,h:r.data.height+2,x:0,y:0},o=new t.ImagePosition(i,r);this.patterns[e]={bin:i,position:o}}return this._updatePatternAtlas(),this.patterns[e].position},n.prototype.bind=function(e){var n=e.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,n.RGBA),this.atlasTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)},n.prototype._updatePatternAtlas=function(){var e=[];for(var n in this.patterns)e.push(this.patterns[n].bin);var r=t.potpack(e),i=r.w,o=r.h,a=this.atlasImage;for(var s in a.resize({width:i||1,height:o||1}),this.patterns){var u=this.patterns[s].bin,l=u.x+1,c=u.y+1,h=this.images[s].data,f=h.width,d=h.height;t.RGBAImage.copy(h,a,{x:0,y:0},{x:l,y:c},{width:f,height:d}),t.RGBAImage.copy(h,a,{x:0,y:d-1},{x:l,y:c-1},{width:f,height:1}),t.RGBAImage.copy(h,a,{x:0,y:0},{x:l,y:c+d},{width:f,height:1}),t.RGBAImage.copy(h,a,{x:f-1,y:0},{x:l-1,y:c},{width:1,height:d}),t.RGBAImage.copy(h,a,{x:0,y:0},{x:l+f,y:c},{width:1,height:d})}this.dirty=!0},n.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},n.prototype.dispatchRenderCallbacks=function(t){for(var e=0,n=t;e<n.length;e+=1){var r=n[e];if(!this.callbackDispatchedThisFrame[r]){this.callbackDispatchedThisFrame[r]=!0;var i=this.images[r];h(i)&&this.updateImage(r,i)}}},n}(t.Evented),d=v,p=v,g=1e20;function v(t,e,n,r,i,o){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=r||.25,this.fontFamily=i||"sans-serif",this.fontWeight=o||"normal",this.radius=n||8;var a=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=a,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textBaseline="middle",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.d=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Int16Array(a),this.middle=Math.round(a/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function m(t,e,n,r,i,o,a){for(var s=0;s<e;s++){for(var u=0;u<n;u++)r[u]=t[u*e+s];for(y(r,i,o,a,n),u=0;u<n;u++)t[u*e+s]=i[u]}for(u=0;u<n;u++){for(s=0;s<e;s++)r[s]=t[u*e+s];for(y(r,i,o,a,e),s=0;s<e;s++)t[u*e+s]=Math.sqrt(i[s])}}function y(t,e,n,r,i){n[0]=0,r[0]=-g,r[1]=+g;for(var o=1,a=0;o<i;o++){for(var s=(t[o]+o*o-(t[n[a]]+n[a]*n[a]))/(2*o-2*n[a]);s<=r[a];)a--,s=(t[o]+o*o-(t[n[a]]+n[a]*n[a]))/(2*o-2*n[a]);n[++a]=o,r[a]=s,r[a+1]=+g}for(o=0,a=0;o<i;o++){for(;r[a+1]<o;)a++;e[o]=(o-n[a])*(o-n[a])+t[n[a]]}}v.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),n=new Uint8ClampedArray(this.size*this.size),r=0;r<this.size*this.size;r++){var i=e.data[4*r+3]/255;this.gridOuter[r]=1===i?0:0===i?g:Math.pow(Math.max(0,.5-i),2),this.gridInner[r]=1===i?g:0===i?0:Math.pow(Math.max(0,i-.5),2)}for(m(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),m(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),r=0;r<this.size*this.size;r++)n[r]=Math.max(0,Math.min(255,Math.round(255-255*((this.gridOuter[r]-this.gridInner[r])/this.radius+this.cutoff))));return n},d.default=p;var b=function(t,e){this.requestManager=t,this.localIdeographFontFamily=e,this.entries={}};b.prototype.setURL=function(t){this.url=t},b.prototype.getGlyphs=function(e,n){var r=this,i=[];for(var o in e)for(var a=0,s=e[o];a<s.length;a+=1)i.push({stack:o,id:s[a]});t.asyncAll(i,(function(t,e){var n=t.stack,i=t.id,o=r.entries[n];o||(o=r.entries[n]={glyphs:{},requests:{},ranges:{}});var a=o.glyphs[i];if(void 0===a){if(a=r._tinySDF(o,n,i))return o.glyphs[i]=a,void e(null,{stack:n,id:i,glyph:a});var s=Math.floor(i/256);if(256*s>65535)e(new Error("glyphs > 65535 not supported"));else if(o.ranges[s])e(null,{stack:n,id:i,glyph:a});else{var u=o.requests[s];u||(u=o.requests[s]=[],b.loadGlyphRange(n,s,r.url,r.requestManager,(function(t,e){if(e){for(var n in e)r._doesCharSupportLocalGlyph(+n)||(o.glyphs[+n]=e[+n]);o.ranges[s]=!0}for(var i=0,a=u;i<a.length;i+=1)(0,a[i])(t,e);delete o.requests[s]}))),u.push((function(t,r){t?e(t):r&&e(null,{stack:n,id:i,glyph:r[i]||null})}))}}else e(null,{stack:n,id:i,glyph:a})}),(function(t,e){if(t)n(t);else if(e){for(var r={},i=0,o=e;i<o.length;i+=1){var a=o[i],s=a.stack,u=a.id,l=a.glyph;(r[s]||(r[s]={}))[u]=l&&{id:l.id,bitmap:l.bitmap.clone(),metrics:l.metrics}}n(null,r)}}))},b.prototype._doesCharSupportLocalGlyph=function(e){return!!this.localIdeographFontFamily&&(t.isChar["CJK Unified Ideographs"](e)||t.isChar["Hangul Syllables"](e)||t.isChar.Hiragana(e)||t.isChar.Katakana(e))},b.prototype._tinySDF=function(e,n,r){var i=this.localIdeographFontFamily;if(i&&this._doesCharSupportLocalGlyph(r)){var o=e.tinySDF;if(!o){var a="400";/bold/i.test(n)?a="900":/medium/i.test(n)?a="500":/light/i.test(n)&&(a="200"),o=e.tinySDF=new b.TinySDF(24,3,8,.25,i,a)}return{id:r,bitmap:new t.AlphaImage({width:30,height:30},o.draw(String.fromCharCode(r))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},b.loadGlyphRange=function(e,n,r,i,o){var a=256*n,s=a+255,u=i.transformRequest(i.normalizeGlyphsURL(r).replace("{fontstack}",e).replace("{range}",a+"-"+s),t.ResourceType.Glyphs);t.getArrayBuffer(u,(function(e,n){if(e)o(e);else if(n){for(var r={},i=0,a=t.parseGlyphPBF(n);i<a.length;i+=1){var s=a[i];r[s.id]=s}o(null,r)}}))},b.TinySDF=d;var _=function(){this.specification=t.styleSpec.light.position};_.prototype.possiblyEvaluate=function(e,n){return t.sphericalToCartesian(e.expression.evaluate(n))},_.prototype.interpolate=function(e,n,r){return{x:t.number(e.x,n.x,r),y:t.number(e.y,n.y,r),z:t.number(e.z,n.z,r)}};var x=new t.Properties({anchor:new t.DataConstantProperty(t.styleSpec.light.anchor),position:new _,color:new t.DataConstantProperty(t.styleSpec.light.color),intensity:new t.DataConstantProperty(t.styleSpec.light.intensity)}),w=function(e){function n(n){e.call(this),this._transitionable=new t.Transitionable(x),this.setLight(n),this._transitioning=this._transitionable.untransitioned()}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.getLight=function(){return this._transitionable.serialize()},n.prototype.setLight=function(e,n){if(void 0===n&&(n={}),!this._validate(t.validateLight,e,n))for(var r in e){var i=e[r];t.endsWith(r,"-transition")?this._transitionable.setTransition(r.slice(0,-"-transition".length),i):this._transitionable.setValue(r,i)}},n.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},n.prototype.hasTransition=function(){return this._transitioning.hasTransition()},n.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},n.prototype._validate=function(e,n,r){return(!r||!1!==r.validate)&&t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:t.styleSpec})))},n}(t.Evented),O=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};O.prototype.getDash=function(t,e){var n=t.join(",")+String(e);return this.dashEntry[n]||(this.dashEntry[n]=this.addDash(t,e)),this.dashEntry[n]},O.prototype.getDashRanges=function(t,e,n){var r=[],i=t.length%2==1?-t[t.length-1]*n:0,o=t[0]*n,a=!0;r.push({left:i,right:o,isDash:a,zeroLength:0===t[0]});for(var s=t[0],u=1;u<t.length;u++){var l=t[u];r.push({left:i=s*n,right:o=(s+=l)*n,isDash:a=!a,zeroLength:0===l})}return r},O.prototype.addRoundDash=function(t,e,n){for(var r=e/2,i=-n;i<=n;i++)for(var o=this.width*(this.nextRow+n+i),a=0,s=t[a],u=0;u<this.width;u++){u/s.right>1&&(s=t[++a]);var l=Math.abs(u-s.left),c=Math.abs(u-s.right),h=Math.min(l,c),f=void 0,d=i/n*(r+1);if(s.isDash){var p=r-Math.abs(d);f=Math.sqrt(h*h+p*p)}else f=r-Math.sqrt(h*h+d*d);this.data[o+u]=Math.max(0,Math.min(255,f+128))}},O.prototype.addRegularDash=function(t){for(var e=t.length-1;e>=0;--e){var n=t[e],r=t[e+1];n.zeroLength?t.splice(e,1):r&&r.isDash===n.isDash&&(r.left=n.left,t.splice(e,1))}var i=t[0],o=t[t.length-1];i.isDash===o.isDash&&(i.left=o.left-this.width,o.right=i.right+this.width);for(var a=this.width*this.nextRow,s=0,u=t[s],l=0;l<this.width;l++){l/u.right>1&&(u=t[++s]);var c=Math.abs(l-u.left),h=Math.abs(l-u.right),f=Math.min(c,h);this.data[a+l]=Math.max(0,Math.min(255,(u.isDash?f:-f)+128))}},O.prototype.addDash=function(e,n){var r=n?7:0,i=2*r+1;if(this.nextRow+i>this.height)return t.warnOnce("LineAtlas out of space"),null;for(var o=0,a=0;a<e.length;a++)o+=e[a];if(0!==o){var s=this.width/o,u=this.getDashRanges(e,this.width,s);n?this.addRoundDash(u,s,r):this.addRegularDash(u)}var l={y:(this.nextRow+r+.5)/this.height,height:2*r/this.height,width:o};return this.nextRow+=i,this.dirty=!0,l},O.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.ALPHA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.ALPHA,this.width,this.height,0,e.ALPHA,e.UNSIGNED_BYTE,this.data))};var S=function e(n,r){this.workerPool=n,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var i=this.workerPool.acquire(this.id),o=0;o<i.length;o++){var a=new e.Actor(i[o],r,this.id);a.name="Worker "+o,this.actors.push(a)}};function C(e,n,r){var i=function(i,o){if(i)return r(i);if(o){var a=t.pick(t.extend(o,e),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);o.vector_layers&&(a.vectorLayers=o.vector_layers,a.vectorLayerIds=a.vectorLayers.map((function(t){return t.id}))),a.tiles=n.canonicalizeTileset(a,e.url),r(null,a)}};return e.url?t.getJSON(n.transformRequest(n.normalizeSourceURL(e.url),t.ResourceType.Source),i):t.browser.frame((function(){return i(null,e)}))}S.prototype.broadcast=function(e,n,r){t.asyncAll(this.actors,(function(t,r){t.send(e,n,r)}),r=r||function(){})},S.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},S.prototype.remove=function(){this.actors.forEach((function(t){t.remove()})),this.actors=[],this.workerPool.release(this.id)},S.Actor=t.Actor;var E=function(e,n,r){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=n||0,this.maxzoom=r||24};E.prototype.validateBounds=function(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},E.prototype.contains=function(e){var n=Math.pow(2,e.z),r=Math.floor(t.mercatorXfromLng(this.bounds.getWest())*n),i=Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*n),o=Math.ceil(t.mercatorXfromLng(this.bounds.getEast())*n),a=Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*n);return e.x>=r&&e.x<o&&e.y>=i&&e.y<a};var T=function(e){function n(n,r,i,o){if(e.call(this),this.id=n,this.dispatcher=i,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(r,["url","scheme","tileSize","promoteId"])),this._options=t.extend({type:"vector"},r),this._collectResourceTiming=r.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(o)}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=C(this._options,this.map._requestManager,(function(n,r){e._tileJSONRequest=null,e._loaded=!0,n?e.fire(new t.ErrorEvent(n)):r&&(t.extend(e,r),r.bounds&&(e.tileBounds=new E(r.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(r.tiles,e.map._requestManager._customAccessToken),t.postMapLoadEvent(r.tiles,e.map._getMapId(),e.map._requestManager._skuToken,e.map._requestManager._customAccessToken),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},n.prototype.onAdd=function(t){this.map=t,this.load()},n.prototype.setSourceProperty=function(t){this._tileJSONRequest&&this._tileJSONRequest.cancel(),t(),this.map.style.sourceCaches[this.id].clearTiles(),this.load()},n.prototype.setTiles=function(t){var e=this;return this.setSourceProperty((function(){e._options.tiles=t})),this},n.prototype.setUrl=function(t){var e=this;return this.setSourceProperty((function(){e.url=t,e._options.url=t})),this},n.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},n.prototype.serialize=function(){return t.extend({},this._options)},n.prototype.loadTile=function(e,n){var r=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(r,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function o(r,i){return delete e.request,e.aborted?n(null):r&&404!==r.status?n(r):(i&&i.resourceTiming&&(e.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&&i&&e.setExpiryData(i),e.loadVectorData(i,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),n(null),void(e.reloadCallback&&(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}i.request.collectResourceTiming=this._collectResourceTiming,e.actor&&"expired"!==e.state?"loading"===e.state?e.reloadCallback=n:e.request=e.actor.send("reloadTile",i,o.bind(this)):(e.actor=this.dispatcher.getActor(),e.request=e.actor.send("loadTile",i,o.bind(this)))},n.prototype.abortTile=function(t){t.request&&(t.request.cancel(),delete t.request),t.actor&&t.actor.send("abortTile",{uid:t.uid,type:this.type,source:this.id},void 0)},n.prototype.unloadTile=function(t){t.unloadVectorData(),t.actor&&t.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id},void 0)},n.prototype.hasTransition=function(){return!1},n}(t.Evented),A=function(e){function n(n,r,i,o){e.call(this),this.id=n,this.dispatcher=i,this.setEventedParent(o),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=t.extend({type:"raster"},r),t.extend(this,t.pick(r,["url","scheme","tileSize"]))}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=C(this._options,this.map._requestManager,(function(n,r){e._tileJSONRequest=null,e._loaded=!0,n?e.fire(new t.ErrorEvent(n)):r&&(t.extend(e,r),r.bounds&&(e.tileBounds=new E(r.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(r.tiles),t.postMapLoadEvent(r.tiles,e.map._getMapId(),e.map._requestManager._skuToken),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.onAdd=function(t){this.map=t,this.load()},n.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},n.prototype.serialize=function(){return t.extend({},this._options)},n.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},n.prototype.loadTile=function(e,n){var r=this,i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(i,t.ResourceType.Tile),(function(i,o){if(delete e.request,e.aborted)e.state="unloaded",n(null);else if(i)e.state="errored",n(i);else if(o){r.map._refreshExpiredTiles&&e.setExpiryData(o),delete o.cacheControl,delete o.expires;var a=r.map.painter.context,s=a.gl;e.texture=r.map.painter.getTileTexture(o.width),e.texture?e.texture.update(o,{useMipmap:!0}):(e.texture=new t.Texture(a,o,s.RGBA,{useMipmap:!0}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),a.extTextureFilterAnisotropic&&s.texParameterf(s.TEXTURE_2D,a.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,a.extTextureFilterAnisotropicMax)),e.state="loaded",t.cacheEntryPossiblyAdded(r.dispatcher),n(null)}}))},n.prototype.abortTile=function(t,e){t.request&&(t.request.cancel(),delete t.request),e()},n.prototype.unloadTile=function(t,e){t.texture&&this.map.painter.saveTileTexture(t.texture),e()},n.prototype.hasTransition=function(){return!1},n}(t.Evented),M=function(e){function n(n,r,i,o){e.call(this,n,r,i,o),this.type="raster-dem",this.maxzoom=22,this._options=t.extend({type:"raster-dem"},r),this.encoding=r.encoding||"mapbox"}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.serialize=function(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},n.prototype.loadTile=function(e,n){var r=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);function i(t,r){t&&(e.state="errored",n(t)),r&&(e.dem=r,e.needsHillshadePrepare=!0,e.state="loaded",n(null))}e.request=t.getImage(this.map._requestManager.transformRequest(r,t.ResourceType.Tile),function(r,o){if(delete e.request,e.aborted)e.state="unloaded",n(null);else if(r)e.state="errored",n(r);else if(o){this.map._refreshExpiredTiles&&e.setExpiryData(o),delete o.cacheControl,delete o.expires;var a=t.window.ImageBitmap&&o instanceof t.window.ImageBitmap&&t.offscreenCanvasSupported()?o:t.browser.getImageData(o,1),s={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:a,encoding:this.encoding};e.actor&&"expired"!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send("loadDEMTile",s,i.bind(this)))}}.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID)},n.prototype._getNeighboringTiles=function(e){var n=e.canonical,r=Math.pow(2,n.z),i=(n.x-1+r)%r,o=0===n.x?e.wrap-1:e.wrap,a=(n.x+1+r)%r,s=n.x+1===r?e.wrap+1:e.wrap,u={};return u[new t.OverscaledTileID(e.overscaledZ,o,n.z,i,n.y).key]={backfilled:!1},u[new t.OverscaledTileID(e.overscaledZ,s,n.z,a,n.y).key]={backfilled:!1},n.y>0&&(u[new t.OverscaledTileID(e.overscaledZ,o,n.z,i,n.y-1).key]={backfilled:!1},u[new t.OverscaledTileID(e.overscaledZ,e.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},u[new t.OverscaledTileID(e.overscaledZ,s,n.z,a,n.y-1).key]={backfilled:!1}),n.y+1<r&&(u[new t.OverscaledTileID(e.overscaledZ,o,n.z,i,n.y+1).key]={backfilled:!1},u[new t.OverscaledTileID(e.overscaledZ,e.wrap,n.z,n.x,n.y+1).key]={backfilled:!1},u[new t.OverscaledTileID(e.overscaledZ,s,n.z,a,n.y+1).key]={backfilled:!1}),u},n.prototype.unloadTile=function(t){t.demTexture&&this.map.painter.saveTileTexture(t.demTexture),t.fbo&&(t.fbo.destroy(),delete t.fbo),t.dem&&delete t.dem,delete t.neighboringTiles,t.state="unloaded",t.actor&&t.actor.send("removeDEMTile",{uid:t.uid,source:this.id})},n}(A),I=function(e){function n(n,r,i,o){e.call(this),this.id=n,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=i.getActor(),this.setEventedParent(o),this._data=r.data,this._options=t.extend({},r),this._collectResourceTiming=r.collectResourceTiming,this._resourceTiming=[],void 0!==r.maxzoom&&(this.maxzoom=r.maxzoom),r.type&&(this.type=r.type),r.attribution&&(this.attribution=r.attribution),this.promoteId=r.promoteId;var a=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:r.cluster||!1,geojsonVtOptions:{buffer:(void 0!==r.buffer?r.buffer:128)*a,tolerance:(void 0!==r.tolerance?r.tolerance:.375)*a,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:r.lineMetrics||!1,generateId:r.generateId||!1},superclusterOptions:{maxZoom:void 0!==r.clusterMaxZoom?Math.min(r.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,minPoints:Math.max(2,r.clusterMinPoints||2),extent:t.EXTENT,radius:(r.clusterRadius||50)*a,log:!1,generateId:r.generateId||!1},clusterProperties:r.clusterProperties,filter:r.filter},r.workerOptions)}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.load=function(){var e=this;this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(n){if(n)e.fire(new t.ErrorEvent(n));else{var r={dataType:"source",sourceDataType:"metadata"};e._collectResourceTiming&&e._resourceTiming&&e._resourceTiming.length>0&&(r.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event("data",r))}}))},n.prototype.onAdd=function(t){this.map=t,this.load()},n.prototype.setData=function(e){var n=this;return this._data=e,this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(e){if(e)n.fire(new t.ErrorEvent(e));else{var r={dataType:"source",sourceDataType:"content"};n._collectResourceTiming&&n._resourceTiming&&n._resourceTiming.length>0&&(r.resourceTiming=n._resourceTiming,n._resourceTiming=[]),n.fire(new t.Event("data",r))}})),this},n.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},e),this},n.prototype.getClusterChildren=function(t,e){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},e),this},n.prototype.getClusterLeaves=function(t,e,n,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:e,offset:n},r),this},n.prototype._updateWorkerData=function(e){var n=this;this._loaded=!1;var r=t.extend({},this.workerOptions),i=this._data;"string"==typeof i?(r.request=this.map._requestManager.transformRequest(t.browser.resolveURL(i),t.ResourceType.Source),r.request.collectResourceTiming=this._collectResourceTiming):r.data=JSON.stringify(i),this.actor.send(this.type+".loadData",r,(function(t,i){n._removed||i&&i.abandoned||(n._loaded=!0,i&&i.resourceTiming&&i.resourceTiming[n.id]&&(n._resourceTiming=i.resourceTiming[n.id].slice(0)),n.actor.send(n.type+".coalesce",{source:r.source},null),e(t))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.loadTile=function(e,n){var r=this,i=e.actor?"reloadTile":"loadTile";e.actor=this.actor,e.request=this.actor.send(i,{type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(function(t,o){return delete e.request,e.unloadVectorData(),e.aborted?n(null):t?n(t):(e.loadVectorData(o,r.map.painter,"reloadTile"===i),n(null))}))},n.prototype.abortTile=function(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0},n.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})},n.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},n.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},n.prototype.hasTransition=function(){return!1},n}(t.Evented),j=t.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),k=function(e){function n(t,n,r,i){e.call(this),this.id=t,this.dispatcher=r,this.coordinates=n.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=n}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.load=function(e,n){var r=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(i,o){r._loaded=!0,i?r.fire(new t.ErrorEvent(i)):o&&(r.image=o,e&&(r.coordinates=e),n&&n(),r._finishLoading())}))},n.prototype.loaded=function(){return this._loaded},n.prototype.updateImage=function(t){var e=this;return this.image&&t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},n.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})))},n.prototype.onAdd=function(t){this.map=t,this.load()},n.prototype.setCoordinates=function(e){var n=this;this.coordinates=e;var r=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var n=1/0,r=1/0,i=-1/0,o=-1/0,a=0,s=e;a<s.length;a+=1){var u=s[a];n=Math.min(n,u.x),r=Math.min(r,u.y),i=Math.max(i,u.x),o=Math.max(o,u.y)}var l=Math.max(i-n,o-r),c=Math.max(0,Math.floor(-Math.log(l)/Math.LN2)),h=Math.pow(2,c);return new t.CanonicalTileID(c,Math.floor((n+i)/2*h),Math.floor((r+o)/2*h))}(r),this.minzoom=this.maxzoom=this.tileID.z;var i=r.map((function(t){return n.tileID.getTilePoint(t)._round()}));return this._boundsArray=new t.StructArrayLayout4i8,this._boundsArray.emplaceBack(i[0].x,i[0].y,0,0),this._boundsArray.emplaceBack(i[1].x,i[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(i[3].x,i[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(i[2].x,i[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})),this},n.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&&this.image){var e=this.map.painter.context,n=e.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,j.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new t.Texture(e,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[r];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},n.prototype.loadTile=function(t,e){this.tileID&&this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state="errored",e(null))},n.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},n.prototype.hasTransition=function(){return!1},n}(t.Evented),P=function(e){function n(t,n,r,i){e.call(this,t,n,r,i),this.roundZoom=!0,this.type="video",this.options=n}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.load=function(){var e=this;this._loaded=!1;var n=this.options;this.urls=[];for(var r=0,i=n.urls;r<i.length;r+=1)this.urls.push(this.map._requestManager.transformRequest(i[r],t.ResourceType.Source).url);t.getVideo(this.urls,(function(n,r){e._loaded=!0,n?e.fire(new t.ErrorEvent(n)):r&&(e.video=r,e.video.loop=!0,e.video.addEventListener("playing",(function(){e.map.triggerRepaint()})),e.map&&e.video.play(),e._finishLoading())}))},n.prototype.pause=function(){this.video&&this.video.pause()},n.prototype.play=function(){this.video&&this.video.play()},n.prototype.seek=function(e){if(this.video){var n=this.video.seekable;e<n.start(0)||e>n.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+n.start(0)+" and "+n.end(0)+"-second mark."))):this.video.currentTime=e}},n.prototype.getVideo=function(){return this.video},n.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},n.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var e=this.map.painter.context,n=e.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,j.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[r];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this.video&&!this.video.paused},n}(k),L=function(e){function n(n,r,i,o){e.call(this,n,r,i,o),r.coordinates?Array.isArray(r.coordinates)&&4===r.coordinates.length&&!r.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return"number"!=typeof t}))}))||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'missing required property "coordinates"'))),r.animate&&"boolean"!=typeof r.animate&&this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'optional "animate" property must be a boolean value'))),r.canvas?"string"==typeof r.canvas||r.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'missing required property "canvas"'))),this.options=r,this.animate=void 0===r.animate||r.animate}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},n.prototype.getCanvas=function(){return this.canvas},n.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()},n.prototype.onRemove=function(){this.pause()},n.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var n=this.map.painter.context,r=n.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=n.createVertexBuffer(this._boundsArray,j.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(n,this.canvas,r.RGBA,{premultiply:!0}),this.tiles){var o=this.tiles[i];"loaded"!==o.state&&(o.state="loaded",o.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this._playing},n.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t<e.length;t+=1){var n=e[t];if(isNaN(n)||n<=0)return!0}return!1},n}(k),R={vector:T,raster:A,"raster-dem":M,geojson:I,video:P,image:k,canvas:L};function D(e,n){var r=t.identity([]);return t.translate(r,r,[1,1,0]),t.scale(r,r,[.5*e.width,.5*e.height,1]),t.multiply(r,r,e.calculatePosMatrix(n.toUnwrapped()))}function N(t,e,n,r,i,o){var a=function(t,e,n){if(t)for(var r=0,i=t;r<i.length;r+=1){var o=e[i[r]];if(o&&o.source===n&&"fill-extrusion"===o.type)return!0}else for(var a in e){var s=e[a];if(s.source===n&&"fill-extrusion"===s.type)return!0}return!1}(i&&i.layers,e,t.id),s=o.maxPitchScaleFactor(),u=t.tilesIn(r,s,a);u.sort(B);for(var l=[],c=0,h=u;c<h.length;c+=1){var f=h[c];l.push({wrappedTileID:f.tileID.wrapped().key,queryResults:f.tile.queryRenderedFeatures(e,n,t._state,f.queryGeometry,f.cameraQueryGeometry,f.scale,i,o,s,D(t.transform,f.tileID))})}var d=function(t){for(var e={},n={},r=0,i=t;r<i.length;r+=1){var o=i[r],a=o.queryResults,s=o.wrappedTileID,u=n[s]=n[s]||{};for(var l in a)for(var c=a[l],h=u[l]=u[l]||{},f=e[l]=e[l]||[],d=0,p=c;d<p.length;d+=1){var g=p[d];h[g.featureIndex]||(h[g.featureIndex]=!0,f.push(g))}}return e}(l);for(var p in d)d[p].forEach((function(e){var n=e.feature,r=t.getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&&(n.sourceLayer=n.layer["source-layer"]),n.state=r}));return d}function B(t,e){var n=t.tileID,r=e.tileID;return n.overscaledZ-r.overscaledZ||n.canonical.y-r.canonical.y||n.wrap-r.wrap||n.canonical.x-r.canonical.x}var F=function(t,e){this.max=t,this.onRemove=e,this.reset()};F.prototype.reset=function(){for(var t in this.data)for(var e=0,n=this.data[t];e<n.length;e+=1){var r=n[e];r.timeout&&clearTimeout(r.timeout),this.onRemove(r.value)}return this.data={},this.order=[],this},F.prototype.add=function(t,e,n){var r=this,i=t.wrapped().key;void 0===this.data[i]&&(this.data[i]=[]);var o={value:e,timeout:void 0};if(void 0!==n&&(o.timeout=setTimeout((function(){r.remove(t,o)}),n)),this.data[i].push(o),this.order.push(i),this.order.length>this.max){var a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this},F.prototype.has=function(t){return t.wrapped().key in this.data},F.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},F.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},F.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},F.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},F.prototype.remove=function(t,e){if(!this.has(t))return this;var n=t.wrapped().key,r=void 0===e?0:this.data[n].indexOf(e),i=this.data[n][r];return this.data[n].splice(r,1),i.timeout&&clearTimeout(i.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(i.value),this.order.splice(this.order.indexOf(n),1),this},F.prototype.setMaxSize=function(t){for(this.max=t;this.order.length>this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this},F.prototype.filter=function(t){var e=[];for(var n in this.data)for(var r=0,i=this.data[n];r<i.length;r+=1){var o=i[r];t(o.value)||e.push(o)}for(var a=0,s=e;a<s.length;a+=1){var u=s[a];this.remove(u.value.tileID,u)}};var z=function(t,e,n){this.context=t;var r=t.gl;this.buffer=r.createBuffer(),this.dynamicDraw=Boolean(n),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),r.bufferData(r.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};z.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},z.prototype.updateData=function(t){var e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},z.prototype.destroy=function(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var V={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},U=function(t,e,n,r){this.length=e.length,this.attributes=n,this.itemSize=e.bytesPerElement,this.dynamicDraw=r,this.context=t;var i=t.gl;this.buffer=i.createBuffer(),t.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};U.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},U.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},U.prototype.enableAttributes=function(t,e){for(var n=0;n<this.attributes.length;n++){var r=e.attributes[this.attributes[n].name];void 0!==r&&t.enableVertexAttribArray(r)}},U.prototype.setVertexAttribPointers=function(t,e,n){for(var r=0;r<this.attributes.length;r++){var i=this.attributes[r],o=e.attributes[i.name];void 0!==o&&t.vertexAttribPointer(o,i.components,t[V[i.type]],!1,this.itemSize,i.offset+this.itemSize*(n||0))}},U.prototype.destroy=function(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var G=function(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};G.prototype.get=function(){return this.current},G.prototype.set=function(t){},G.prototype.getDefault=function(){return this.default},G.prototype.setDefault=function(){this.set(this.default)};var H=function(e){function n(){e.apply(this,arguments)}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.getDefault=function(){return t.Color.transparent},n.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},n}(G),W=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return 1},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.clearDepth(t),this.current=t,this.dirty=!1)},e}(G),Y=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return 0},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.clearStencil(t),this.current=t,this.dirty=!1)},e}(G),X=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return[!0,!0,!0,!0]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(G),$=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!0},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.depthMask(t),this.current=t,this.dirty=!1)},e}(G),q=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return 255},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.stencilMask(t),this.current=t,this.dirty=!1)},e}(G),Z=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},e.prototype.set=function(t){var e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&&(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)},e}(G),K=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&&(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)},e}(G),Q=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}},e}(G),J=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return[0,1]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)},e}(G),tt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}},e}(G),et=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.LESS},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.depthFunc(t),this.current=t,this.dirty=!1)},e}(G),nt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}},e}(G),rt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.ONE,t.ZERO]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)},e}(G),it=function(e){function n(){e.apply(this,arguments)}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.getDefault=function(){return t.Color.transparent},n.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},n}(G),ot=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.FUNC_ADD},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.blendEquation(t),this.current=t,this.dirty=!1)},e}(G),at=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}},e}(G),st=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.BACK},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.cullFace(t),this.current=t,this.dirty=!1)},e}(G),ut=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.CCW},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.frontFace(t),this.current=t,this.dirty=!1)},e}(G),lt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.useProgram(t),this.current=t,this.dirty=!1)},e}(G),ct=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.TEXTURE0},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.activeTexture(t),this.current=t,this.dirty=!1)},e}(G),ht=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(G),ft=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}},e}(G),dt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(G),pt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}},e}(G),gt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},e}(G),vt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1},e}(G),mt=function(t){function e(e){t.call(this,e),this.vao=e.extVertexArrayObject}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){this.vao&&(t!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)},e}(G),yt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return 4},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}},e}(G),bt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}},e}(G),_t=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}},e}(G),xt=function(t){function e(e,n){t.call(this,e),this.context=e,this.parent=n}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e}(G),wt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.setDirty=function(){this.dirty=!0},e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e}(xt),Ot=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(xt),St=function(t,e,n,r){this.context=t,this.width=e,this.height=n;var i=this.framebuffer=t.gl.createFramebuffer();this.colorAttachment=new wt(t,i),r&&(this.depthAttachment=new Ot(t,i))};St.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();if(e&&t.deleteTexture(e),this.depthAttachment){var n=this.depthAttachment.get();n&&t.deleteRenderbuffer(n)}t.deleteFramebuffer(this.framebuffer)};var Ct=function(t,e,n){this.func=t,this.mask=e,this.range=n};Ct.ReadOnly=!1,Ct.ReadWrite=!0,Ct.disabled=new Ct(519,Ct.ReadOnly,[0,1]);var Et=function(t,e,n,r,i,o){this.test=t,this.ref=e,this.mask=n,this.fail=r,this.depthFail=i,this.pass=o};Et.disabled=new Et({func:519,mask:0},0,0,7680,7680,7680);var Tt=function(t,e,n){this.blendFunction=t,this.blendColor=e,this.mask=n};Tt.disabled=new Tt(Tt.Replace=[1,0],t.Color.transparent,[!1,!1,!1,!1]),Tt.unblended=new Tt(Tt.Replace,t.Color.transparent,[!0,!0,!0,!0]),Tt.alphaBlended=new Tt([1,771],t.Color.transparent,[!0,!0,!0,!0]);var At=function(t,e,n){this.enable=t,this.mode=e,this.frontFace=n};At.disabled=new At(!1,1029,2305),At.backCCW=new At(!0,1029,2305);var Mt=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new H(this),this.clearDepth=new W(this),this.clearStencil=new Y(this),this.colorMask=new X(this),this.depthMask=new $(this),this.stencilMask=new q(this),this.stencilFunc=new Z(this),this.stencilOp=new K(this),this.stencilTest=new Q(this),this.depthRange=new J(this),this.depthTest=new tt(this),this.depthFunc=new et(this),this.blend=new nt(this),this.blendFunc=new rt(this),this.blendColor=new it(this),this.blendEquation=new ot(this),this.cullFace=new at(this),this.cullFaceSide=new st(this),this.frontFace=new ut(this),this.program=new lt(this),this.activeTexture=new ct(this),this.viewport=new ht(this),this.bindFramebuffer=new ft(this),this.bindRenderbuffer=new dt(this),this.bindTexture=new pt(this),this.bindVertexBuffer=new gt(this),this.bindElementBuffer=new vt(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new mt(this),this.pixelStoreUnpack=new yt(this),this.pixelStoreUnpackPremultiplyAlpha=new bt(this),this.pixelStoreUnpackFlipY=new _t(this),this.extTextureFilterAnisotropic=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&(t.getExtension("OES_texture_half_float_linear"),this.extRenderToTextureHalfFloat=t.getExtension("EXT_color_buffer_half_float")),this.extTimerQuery=t.getExtension("EXT_disjoint_timer_query"),this.maxTextureSize=t.getParameter(t.MAX_TEXTURE_SIZE)};Mt.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},Mt.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Mt.prototype.createIndexBuffer=function(t,e){return new z(this,t,e)},Mt.prototype.createVertexBuffer=function(t,e,n){return new U(this,t,e,n)},Mt.prototype.createRenderbuffer=function(t,e,n){var r=this.gl,i=r.createRenderbuffer();return this.bindRenderbuffer.set(i),r.renderbufferStorage(r.RENDERBUFFER,t,e,n),this.bindRenderbuffer.set(null),i},Mt.prototype.createFramebuffer=function(t,e,n){return new St(this,t,e,n)},Mt.prototype.clear=function(t){var e=t.color,n=t.depth,r=this.gl,i=0;e&&(i|=r.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==n&&(i|=r.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(n),this.depthMask.set(!0)),r.clear(i)},Mt.prototype.setCullFace=function(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))},Mt.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},Mt.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},Mt.prototype.setColorMode=function(e){t.deepEqual(e.blendFunction,Tt.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)},Mt.prototype.unbindVAO=function(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)};var It=function(e){function n(n,r,i){var o=this;e.call(this),this.id=n,this.dispatcher=i,this.on("data",(function(t){"source"===t.dataType&&"metadata"===t.sourceDataType&&(o._sourceLoaded=!0),o._sourceLoaded&&!o._paused&&"source"===t.dataType&&"content"===t.sourceDataType&&(o.reload(),o.transform&&o.update(o.transform))})),this.on("error",(function(){o._sourceErrored=!0})),this._source=function(e,n,r,i){var o=new R[n.type](e,n,r,i);if(o.id!==e)throw new Error("Expected Source id to be "+e+" instead of "+o.id);return t.bindAll(["load","abort","unload","serialize","prepare"],o),o}(n,r,i,this),this._tiles={},this._cache=new F(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new t.SourceFeatureState}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&&this._source.onAdd&&this._source.onAdd(t)},n.prototype.onRemove=function(t){this._source&&this._source.onRemove&&this._source.onRemove(t)},n.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var t in this._tiles){var e=this._tiles[t];if("loaded"!==e.state&&"errored"!==e.state)return!1}return!0},n.prototype.getSource=function(){return this._source},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform)}},n.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},n.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,(function(){}))},n.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,(function(){}))},n.prototype.serialize=function(){return this._source.serialize()},n.prototype.prepare=function(t){for(var e in this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var n=this._tiles[e];n.upload(t),n.prepare(this.map.style.imageManager)}},n.prototype.getIds=function(){return t.values(this._tiles).map((function(t){return t.tileID})).sort(jt).map((function(t){return t.key}))},n.prototype.getRenderableIds=function(e){var n=this,r=[];for(var i in this._tiles)this._isIdRenderable(i,e)&&r.push(this._tiles[i]);return e?r.sort((function(e,r){var i=e.tileID,o=r.tileID,a=new t.Point(i.canonical.x,i.canonical.y)._rotate(n.transform.angle),s=new t.Point(o.canonical.x,o.canonical.y)._rotate(n.transform.angle);return i.overscaledZ-o.overscaledZ||s.y-a.y||s.x-a.x})).map((function(t){return t.tileID.key})):r.map((function(t){return t.tileID})).sort(jt).map((function(t){return t.key}))},n.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0);return!!e&&this._isIdRenderable(e.tileID.key)},n.prototype._isIdRenderable=function(t,e){return this._tiles[t]&&this._tiles[t].hasData()&&!this._coveredTiles[t]&&(e||!this._tiles[t].holdingForFade())},n.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)"errored"!==this._tiles[t].state&&this._reloadTile(t,"reloading")},n.prototype._reloadTile=function(t,e){var n=this._tiles[t];n&&("loading"!==n.state&&(n.state=e),this._loadTile(n,this._tileLoaded.bind(this,n,t,e)))},n.prototype._tileLoaded=function(e,n,r,i){if(i)return e.state="errored",void(404!==i.status?this._source.fire(new t.ErrorEvent(i,{tile:e})):this.update(this.transform));e.timeAdded=t.browser.now(),"expired"===r&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(n,e),"raster-dem"===this.getSource().type&&e.dem&&this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new t.Event("data",{dataType:"source",tile:e,coord:e.tileID}))},n.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),n=0;n<e.length;n++){var r=e[n];if(t.neighboringTiles&&t.neighboringTiles[r]){var i=this.getTileByID(r);o(t,i),o(i,t)}}function o(t,e){t.needsHillshadePrepare=!0;var n=e.tileID.canonical.x-t.tileID.canonical.x,r=e.tileID.canonical.y-t.tileID.canonical.y,i=Math.pow(2,t.tileID.canonical.z),o=e.tileID.key;0===n&&0===r||Math.abs(r)>1||(Math.abs(n)>1&&(1===Math.abs(n+i)?n+=i:1===Math.abs(n-i)&&(n-=i)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,n,r),t.neighboringTiles&&t.neighboringTiles[o]&&(t.neighboringTiles[o].backfilled=!0)))}},n.prototype.getTile=function(t){return this.getTileByID(t.key)},n.prototype.getTileByID=function(t){return this._tiles[t]},n.prototype._retainLoadedChildren=function(t,e,n,r){for(var i in this._tiles){var o=this._tiles[i];if(!(r[i]||!o.hasData()||o.tileID.overscaledZ<=e||o.tileID.overscaledZ>n)){for(var a=o.tileID;o&&o.tileID.overscaledZ>e+1;){var s=o.tileID.scaledTo(o.tileID.overscaledZ-1);(o=this._tiles[s.key])&&o.hasData()&&(a=s)}for(var u=a;u.overscaledZ>e;)if(t[(u=u.scaledTo(u.overscaledZ-1)).key]){r[a.key]=a;break}}}},n.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var n=this._loadedParentTiles[t.key];return n&&n.tileID.overscaledZ>=e?n:null}for(var r=t.overscaledZ-1;r>=e;r--){var i=t.scaledTo(r),o=this._getLoadedTile(i);if(o)return o}},n.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&&e.hasData()?e:this._cache.getByKey(t.wrapped().key)},n.prototype.updateCacheSize=function(t){var e=Math.ceil(t.width/this._source.tileSize)+1,n=Math.ceil(t.height/this._source.tileSize)+1,r=Math.floor(e*n*5),i="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(i)},n.prototype.handleWrapJump=function(t){var e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){var n={};for(var r in this._tiles){var i=this._tiles[r];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),n[i.tileID.key]=i}for(var o in this._tiles=n,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var a in this._tiles)this._setTileReloadTimer(a,this._tiles[a])}},n.prototype.update=function(e){var r=this;if(this.transform=e,this._sourceLoaded&&!this._paused){var i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(i=i.filter((function(t){return r._source.hasTile(t)})))):i=[];var o=e.coveringZoomLevel(this._source),a=Math.max(o-n.maxOverzooming,this._source.minzoom),s=Math.max(o+n.maxUnderzooming,this._source.minzoom),u=this._updateRetainedTiles(i,o);if(kt(this._source.type)){for(var l={},c={},h=0,f=Object.keys(u);h<f.length;h+=1){var d=f[h],p=u[d],g=this._tiles[d];if(g&&!(g.fadeEndTime&&g.fadeEndTime<=t.browser.now())){var v=this.findLoadedParent(p,a);v&&(this._addTile(v.tileID),l[v.tileID.key]=v.tileID),c[d]=p}}for(var m in this._retainLoadedChildren(c,o,s,u),l)u[m]||(this._coveredTiles[m]=!0,u[m]=l[m])}for(var y in u)this._tiles[y].clearFadeHold();for(var b=0,_=t.keysDifference(this._tiles,u);b<_.length;b+=1){var x=_[b],w=this._tiles[x];w.hasSymbolBuckets&&!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&&!w.symbolFadeFinished()||this._removeTile(x)}this._updateLoadedParentTileCache()}},n.prototype.releaseSymbolFadeTiles=function(){for(var t in this._tiles)this._tiles[t].holdingForFade()&&this._removeTile(t)},n.prototype._updateRetainedTiles=function(t,e){for(var r={},i={},o=Math.max(e-n.maxOverzooming,this._source.minzoom),a=Math.max(e+n.maxUnderzooming,this._source.minzoom),s={},u=0,l=t;u<l.length;u+=1){var c=l[u],h=this._addTile(c);r[c.key]=c,h.hasData()||e<this._source.maxzoom&&(s[c.key]=c)}this._retainLoadedChildren(s,e,a,r);for(var f=0,d=t;f<d.length;f+=1){var p=d[f],g=this._tiles[p.key];if(!g.hasData()){if(e+1>this._source.maxzoom){var v=p.children(this._source.maxzoom)[0],m=this.getTile(v);if(m&&m.hasData()){r[v.key]=v;continue}}else{var y=p.children(this._source.maxzoom);if(r[y[0].key]&&r[y[1].key]&&r[y[2].key]&&r[y[3].key])continue}for(var b=g.wasRequested(),_=p.overscaledZ-1;_>=o;--_){var x=p.scaledTo(_);if(i[x.key])break;if(i[x.key]=!0,!(g=this.getTile(x))&&b&&(g=this._addTile(x)),g&&(r[x.key]=x,b=g.wasRequested(),g.hasData()))break}}}return r},n.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],n=void 0,r=this._tiles[t].tileID;r.overscaledZ>0;){if(r.key in this._loadedParentTiles){n=this._loadedParentTiles[r.key];break}e.push(r.key);var i=r.scaledTo(r.overscaledZ-1);if(n=this._getLoadedTile(i))break;r=i}for(var o=0,a=e;o<a.length;o+=1)this._loadedParentTiles[a[o]]=n}},n.prototype._addTile=function(e){var n=this._tiles[e.key];if(n)return n;(n=this._cache.getAndRemove(e))&&(this._setTileReloadTimer(e.key,n),n.tileID=e,this._state.initializeTileState(n,this.map?this.map.painter:null),this._cacheTimers[e.key]&&(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,n)));var r=Boolean(n);return r||(n=new t.Tile(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(n,this._tileLoaded.bind(this,n,e.key,n.state))),n?(n.uses++,this._tiles[e.key]=n,r||this._source.fire(new t.Event("dataloading",{tile:n,coord:n.tileID,dataType:"source"})),n):null},n.prototype._setTileReloadTimer=function(t,e){var n=this;t in this._timers&&(clearTimeout(this._timers[t]),delete this._timers[t]);var r=e.getExpiryTimeout();r&&(this._timers[t]=setTimeout((function(){n._reloadTile(t,"expired"),delete n._timers[t]}),r))},n.prototype._removeTile=function(t){var e=this._tiles[t];e&&(e.uses--,delete this._tiles[t],this._timers[t]&&(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses>0||(e.hasData()&&"reloading"!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},n.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},n.prototype.tilesIn=function(e,n,r){var i=this,o=[],a=this.transform;if(!a)return o;for(var s=r?a.getCameraQueryGeometry(e):e,u=e.map((function(t){return a.pointCoordinate(t)})),l=s.map((function(t){return a.pointCoordinate(t)})),c=this.getIds(),h=1/0,f=1/0,d=-1/0,p=-1/0,g=0,v=l;g<v.length;g+=1){var m=v[g];h=Math.min(h,m.x),f=Math.min(f,m.y),d=Math.max(d,m.x),p=Math.max(p,m.y)}for(var y=function(e){var r=i._tiles[c[e]];if(!r.holdingForFade()){var s=r.tileID,g=Math.pow(2,a.zoom-r.tileID.overscaledZ),v=n*r.queryPadding*t.EXTENT/r.tileSize/g,m=[s.getTilePoint(new t.MercatorCoordinate(h,f)),s.getTilePoint(new t.MercatorCoordinate(d,p))];if(m[0].x-v<t.EXTENT&&m[0].y-v<t.EXTENT&&m[1].x+v>=0&&m[1].y+v>=0){var y=u.map((function(t){return s.getTilePoint(t)})),b=l.map((function(t){return s.getTilePoint(t)}));o.push({tile:r,tileID:s,queryGeometry:y,cameraQueryGeometry:b,scale:g})}}},b=0;b<c.length;b++)y(b);return o},n.prototype.getVisibleCoordinates=function(t){for(var e=this,n=this.getRenderableIds(t).map((function(t){return e._tiles[t].tileID})),r=0,i=n;r<i.length;r+=1){var o=i[r];o.posMatrix=this.transform.calculatePosMatrix(o.toUnwrapped())}return n},n.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(kt(this._source.type))for(var e in this._tiles){var n=this._tiles[e];if(void 0!==n.fadeEndTime&&n.fadeEndTime>=t.browser.now())return!0}return!1},n.prototype.setFeatureState=function(t,e,n){this._state.updateState(t=t||"_geojsonTileLayer",e,n)},n.prototype.removeFeatureState=function(t,e,n){this._state.removeFeatureState(t=t||"_geojsonTileLayer",e,n)},n.prototype.getFeatureState=function(t,e){return this._state.getState(t=t||"_geojsonTileLayer",e)},n.prototype.setDependencies=function(t,e,n){var r=this._tiles[t];r&&r.setDependencies(e,n)},n.prototype.reloadTilesForDependencies=function(t,e){for(var n in this._tiles)this._tiles[n].hasDependency(t,e)&&this._reloadTile(n,"reloading");this._cache.filter((function(n){return!n.hasDependency(t,e)}))},n}(t.Evented);function jt(t,e){var n=Math.abs(2*t.wrap)-+(t.wrap<0),r=Math.abs(2*e.wrap)-+(e.wrap<0);return t.overscaledZ-e.overscaledZ||r-n||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function kt(t){return"raster"===t||"image"===t||"video"===t}function Pt(){return new t.window.Worker(qi.workerUrl)}It.maxOverzooming=10,It.maxUnderzooming=3;var Lt="mapboxgl_preloaded_worker_pool",Rt=function(){this.active={}};Rt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length<Rt.workerCount;)this.workers.push(new Pt);return this.active[t]=!0,this.workers.slice()},Rt.prototype.release=function(t){delete this.active[t],0===this.numActive()&&(this.workers.forEach((function(t){t.terminate()})),this.workers=null)},Rt.prototype.isPreloaded=function(){return!!this.active[Lt]},Rt.prototype.numActive=function(){return Object.keys(this.active).length};var Dt,Nt=Math.floor(t.browser.hardwareConcurrency/2);function Bt(){return Dt||(Dt=new Rt),Dt}function Ft(e,n){var r={};for(var i in e)"ref"!==i&&(r[i]=e[i]);return t.refProperties.forEach((function(t){t in n&&(r[t]=n[t])})),r}function zt(t){t=t.slice();for(var e=Object.create(null),n=0;n<t.length;n++)e[t[n].id]=t[n];for(var r=0;r<t.length;r++)"ref"in t[r]&&(t[r]=Ft(t[r],e[t[r].ref]));return t}Rt.workerCount=Math.max(Math.min(Nt,6),1);var Vt={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight"};function Ut(t,e,n){n.push({command:Vt.addSource,args:[t,e[t]]})}function Gt(t,e,n){e.push({command:Vt.removeSource,args:[t]}),n[t]=!0}function Ht(t,e,n,r){Gt(t,n,r),Ut(t,e,n)}function Wt(e,n,r){var i;for(i in e[r])if(e[r].hasOwnProperty(i)&&"data"!==i&&!t.deepEqual(e[r][i],n[r][i]))return!1;for(i in n[r])if(n[r].hasOwnProperty(i)&&"data"!==i&&!t.deepEqual(e[r][i],n[r][i]))return!1;return!0}function Yt(e,n,r,i,o,a){var s;for(s in n=n||{},e=e||{})e.hasOwnProperty(s)&&(t.deepEqual(e[s],n[s])||r.push({command:a,args:[i,s,n[s],o]}));for(s in n)n.hasOwnProperty(s)&&!e.hasOwnProperty(s)&&(t.deepEqual(e[s],n[s])||r.push({command:a,args:[i,s,n[s],o]}))}function Xt(t){return t.id}function $t(t,e){return t[e.id]=e,t}var qt=function(t,e){this.reset(t,e)};qt.prototype.reset=function(t,e){this.points=t||[],this._distances=[0];for(var n=1;n<this.points.length;n++)this._distances[n]=this._distances[n-1]+this.points[n].dist(this.points[n-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding},qt.prototype.lerp=function(e){if(1===this.points.length)return this.points[0];e=t.clamp(e,0,1);for(var n=1,r=this._distances[n],i=e*this.paddedLength+this.padding;r<i&&n<this._distances.length;)r=this._distances[++n];var o=n-1,a=this._distances[o],s=r-a,u=s>0?(i-a)/s:0;return this.points[o].mult(1-u).add(this.points[n].mult(u))};var Zt=function(t,e,n){var r=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/n),this.yCellCount=Math.ceil(e/n);for(var o=0;o<this.xCellCount*this.yCellCount;o++)r.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};function Kt(e,n,r,i,o){var a=t.create();return n?(t.scale(a,a,[1/o,1/o,1]),r||t.rotateZ(a,a,i.angle)):t.multiply(a,i.labelPlaneMatrix,e),a}function Qt(e,n,r,i,o){if(n){var a=t.clone(e);return t.scale(a,a,[o,o,1]),r||t.rotateZ(a,a,-i.angle),a}return i.glCoordMatrix}function Jt(e,n){var r=[e.x,e.y,0,1];ce(r,r,n);var i=r[3];return{point:new t.Point(r[0]/i,r[1]/i),signedDistanceFromCamera:i}}function te(t,e){return.5+t/e*.5}function ee(t,e){var n=t[0]/t[3],r=t[1]/t[3];return n>=-e[0]&&n<=e[0]&&r>=-e[1]&&r<=e[1]}function ne(e,n,r,i,o,a,s,u){var l=i?e.textSizeData:e.iconSizeData,c=t.evaluateSizeForZoom(l,r.transform.zoom),h=[256/r.width*2+1,256/r.height*2+1],f=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;f.clear();for(var d=e.lineVertexArray,p=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,g=r.transform.width/r.transform.height,v=!1,m=0;m<p.length;m++){var y=p.get(m);if(y.hidden||y.writingMode===t.WritingMode.vertical&&!v)le(y.numGlyphs,f);else{v=!1;var b=[y.anchorX,y.anchorY,0,1];if(t.transformMat4(b,b,n),ee(b,h)){var _=te(r.transform.cameraToCenterDistance,b[3]),x=t.evaluateSizeForFeature(l,c,y),w=s?x/_:x*_,O=new t.Point(y.anchorX,y.anchorY),S=Jt(O,o).point,C={},E=oe(y,w,!1,u,n,o,a,e.glyphOffsetArray,d,f,S,O,C,g);v=E.useVertical,(E.notEnoughRoom||v||E.needsFlipping&&oe(y,w,!0,u,n,o,a,e.glyphOffsetArray,d,f,S,O,C,g).notEnoughRoom)&&le(y.numGlyphs,f)}else le(y.numGlyphs,f)}}i?e.text.dynamicLayoutVertexBuffer.updateData(f):e.icon.dynamicLayoutVertexBuffer.updateData(f)}function re(t,e,n,r,i,o,a,s,u,l,c){var h=s.glyphStartIndex+s.numGlyphs,f=s.lineStartIndex,d=s.lineStartIndex+s.lineLength,p=e.getoffsetX(s.glyphStartIndex),g=e.getoffsetX(h-1),v=se(t*p,n,r,i,o,a,s.segment,f,d,u,l,c);if(!v)return null;var m=se(t*g,n,r,i,o,a,s.segment,f,d,u,l,c);return m?{first:v,last:m}:null}function ie(e,n,r,i){return e===t.WritingMode.horizontal&&Math.abs(r.y-n.y)>Math.abs(r.x-n.x)*i?{useVertical:!0}:(e===t.WritingMode.vertical?n.y<r.y:n.x>r.x)?{needsFlipping:!0}:null}function oe(e,n,r,i,o,a,s,u,l,c,h,f,d,p){var g,v=n/24,m=e.lineOffsetX*v,y=e.lineOffsetY*v;if(e.numGlyphs>1){var b=e.glyphStartIndex+e.numGlyphs,_=e.lineStartIndex,x=e.lineStartIndex+e.lineLength,w=re(v,u,m,y,r,h,f,e,l,a,d);if(!w)return{notEnoughRoom:!0};var O=Jt(w.first.point,s).point,S=Jt(w.last.point,s).point;if(i&&!r){var C=ie(e.writingMode,O,S,p);if(C)return C}g=[w.first];for(var E=e.glyphStartIndex+1;E<b-1;E++)g.push(se(v*u.getoffsetX(E),m,y,r,h,f,e.segment,_,x,l,a,d));g.push(w.last)}else{if(i&&!r){var T=Jt(f,o).point,A=e.lineStartIndex+e.segment+1,M=new t.Point(l.getx(A),l.gety(A)),I=Jt(M,o),j=I.signedDistanceFromCamera>0?I.point:ae(f,M,T,1,o),k=ie(e.writingMode,T,j,p);if(k)return k}var P=se(v*u.getoffsetX(e.glyphStartIndex),m,y,r,h,f,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,l,a,d);if(!P)return{notEnoughRoom:!0};g=[P]}for(var L=0,R=g;L<R.length;L+=1){var D=R[L];t.addDynamicAttributes(c,D.point,D.angle)}return{}}function ae(t,e,n,r,i){var o=Jt(t.add(t.sub(e)._unit()),i).point,a=n.sub(o);return n.add(a._mult(r/a.mag()))}function se(e,n,r,i,o,a,s,u,l,c,h,f){var d=i?e-n:e+n,p=d>0?1:-1,g=0;i&&(p*=-1,g=Math.PI),p<0&&(g+=Math.PI);for(var v=p>0?u+s:u+s+1,m=o,y=o,b=0,_=0,x=Math.abs(d),w=[];b+_<=x;){if((v+=p)<u||v>=l)return null;if(y=m,w.push(m),void 0===(m=f[v])){var O=new t.Point(c.getx(v),c.gety(v)),S=Jt(O,h);if(S.signedDistanceFromCamera>0)m=f[v]=S.point;else{var C=v-p;m=ae(0===b?a:new t.Point(c.getx(C),c.gety(C)),O,y,x-b+1,h)}}b+=_,_=y.dist(m)}var E=(x-b)/_,T=m.sub(y),A=T.mult(E)._add(y);A._add(T._unit()._perp()._mult(r*p));var M=g+Math.atan2(m.y-y.y,m.x-y.x);return w.push(A),{point:A,angle:M,path:w}}Zt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Zt.prototype.insert=function(t,e,n,r,i){this._forEachCell(e,n,r,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i)},Zt.prototype.insertCircle=function(t,e,n,r){this._forEachCell(e-r,n-r,e+r,n+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(n),this.circles.push(r)},Zt.prototype._insertBoxCell=function(t,e,n,r,i,o){this.boxCells[i].push(o)},Zt.prototype._insertCircleCell=function(t,e,n,r,i,o){this.circleCells[i].push(o)},Zt.prototype._query=function(t,e,n,r,i,o){if(n<0||t>this.width||r<0||e>this.height)return!i&&[];var a=[];if(t<=0&&e<=0&&this.width<=n&&this.height<=r){if(i)return!0;for(var s=0;s<this.boxKeys.length;s++)a.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var u=0;u<this.circleKeys.length;u++){var l=this.circles[3*u],c=this.circles[3*u+1],h=this.circles[3*u+2];a.push({key:this.circleKeys[u],x1:l-h,y1:c-h,x2:l+h,y2:c+h})}return o?a.filter(o):a}return this._forEachCell(t,e,n,r,this._queryCell,a,{hitTest:i,seenUids:{box:{},circle:{}}},o),i?a.length>0:a},Zt.prototype._queryCircle=function(t,e,n,r,i){var o=t-n,a=t+n,s=e-n,u=e+n;if(a<0||o>this.width||u<0||s>this.height)return!r&&[];var l=[];return this._forEachCell(o,s,a,u,this._queryCellCircle,l,{hitTest:r,circle:{x:t,y:e,radius:n},seenUids:{box:{},circle:{}}},i),r?l.length>0:l},Zt.prototype.query=function(t,e,n,r,i){return this._query(t,e,n,r,!1,i)},Zt.prototype.hitTest=function(t,e,n,r,i){return this._query(t,e,n,r,!0,i)},Zt.prototype.hitTestCircle=function(t,e,n,r){return this._queryCircle(t,e,n,!0,r)},Zt.prototype._queryCell=function(t,e,n,r,i,o,a,s){var u=a.seenUids,l=this.boxCells[i];if(null!==l)for(var c=this.bboxes,h=0,f=l;h<f.length;h+=1){var d=f[h];if(!u.box[d]){u.box[d]=!0;var p=4*d;if(t<=c[p+2]&&e<=c[p+3]&&n>=c[p+0]&&r>=c[p+1]&&(!s||s(this.boxKeys[d]))){if(a.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[d],x1:c[p],y1:c[p+1],x2:c[p+2],y2:c[p+3]})}}}var g=this.circleCells[i];if(null!==g)for(var v=this.circles,m=0,y=g;m<y.length;m+=1){var b=y[m];if(!u.circle[b]){u.circle[b]=!0;var _=3*b;if(this._circleAndRectCollide(v[_],v[_+1],v[_+2],t,e,n,r)&&(!s||s(this.circleKeys[b]))){if(a.hitTest)return o.push(!0),!0;var x=v[_],w=v[_+1],O=v[_+2];o.push({key:this.circleKeys[b],x1:x-O,y1:w-O,x2:x+O,y2:w+O})}}}},Zt.prototype._queryCellCircle=function(t,e,n,r,i,o,a,s){var u=a.circle,l=a.seenUids,c=this.boxCells[i];if(null!==c)for(var h=this.bboxes,f=0,d=c;f<d.length;f+=1){var p=d[f];if(!l.box[p]){l.box[p]=!0;var g=4*p;if(this._circleAndRectCollide(u.x,u.y,u.radius,h[g+0],h[g+1],h[g+2],h[g+3])&&(!s||s(this.boxKeys[p])))return o.push(!0),!0}}var v=this.circleCells[i];if(null!==v)for(var m=this.circles,y=0,b=v;y<b.length;y+=1){var _=b[y];if(!l.circle[_]){l.circle[_]=!0;var x=3*_;if(this._circlesCollide(m[x],m[x+1],m[x+2],u.x,u.y,u.radius)&&(!s||s(this.circleKeys[_])))return o.push(!0),!0}}},Zt.prototype._forEachCell=function(t,e,n,r,i,o,a,s){for(var u=this._convertToXCellCoord(t),l=this._convertToYCellCoord(e),c=this._convertToXCellCoord(n),h=this._convertToYCellCoord(r),f=u;f<=c;f++)for(var d=l;d<=h;d++)if(i.call(this,t,e,n,r,this.xCellCount*d+f,o,a,s))return},Zt.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},Zt.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},Zt.prototype._circlesCollide=function(t,e,n,r,i,o){var a=r-t,s=i-e,u=n+o;return u*u>a*a+s*s},Zt.prototype._circleAndRectCollide=function(t,e,n,r,i,o,a){var s=(o-r)/2,u=Math.abs(t-(r+s));if(u>s+n)return!1;var l=(a-i)/2,c=Math.abs(e-(i+l));if(c>l+n)return!1;if(u<=s||c<=l)return!0;var h=u-s,f=c-l;return h*h+f*f<=n*n};var ue=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function le(t,e){for(var n=0;n<t;n++){var r=e.length;e.resize(r+4),e.float32.set(ue,3*r)}}function ce(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t[3]=n[3]*r+n[7]*i+n[15],t}var he=function(t,e,n){void 0===e&&(e=new Zt(t.width+200,t.height+200,25)),void 0===n&&(n=new Zt(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=n,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200};function fe(e,n,r){return n*(t.EXTENT/(e.tileSize*Math.pow(2,r-e.tileID.overscaledZ)))}he.prototype.placeCollisionBox=function(t,e,n,r,i){var o=this.projectAndGetPerspectiveRatio(r,t.anchorPointX,t.anchorPointY),a=n*o.perspectiveRatio,s=t.x1*a+o.point.x,u=t.y1*a+o.point.y,l=t.x2*a+o.point.x,c=t.y2*a+o.point.y;return!this.isInsideGrid(s,u,l,c)||!e&&this.grid.hitTest(s,u,l,c,i)?{box:[],offscreen:!1}:{box:[s,u,l,c],offscreen:this.isOffscreen(s,u,l,c)}},he.prototype.placeCollisionCircles=function(e,n,r,i,o,a,s,u,l,c,h,f,d){var p=[],g=new t.Point(n.anchorX,n.anchorY),v=Jt(g,a),m=te(this.transform.cameraToCenterDistance,v.signedDistanceFromCamera),y=(c?o/m:o*m)/t.ONE_EM,b=Jt(g,s).point,_=re(y,i,n.lineOffsetX*y,n.lineOffsetY*y,!1,b,g,n,r,s,{}),x=!1,w=!1,O=!0;if(_){for(var S=.5*f*m+d,C=new t.Point(-100,-100),E=new t.Point(this.screenRightBoundary,this.screenBottomBoundary),T=new qt,A=_.first,M=_.last,I=[],j=A.path.length-1;j>=1;j--)I.push(A.path[j]);for(var k=1;k<M.path.length;k++)I.push(M.path[k]);var P=2.5*S;if(u){var L=I.map((function(t){return Jt(t,u)}));I=L.some((function(t){return t.signedDistanceFromCamera<=0}))?[]:L.map((function(t){return t.point}))}var R=[];if(I.length>0){for(var D=I[0].clone(),N=I[0].clone(),B=1;B<I.length;B++)D.x=Math.min(D.x,I[B].x),D.y=Math.min(D.y,I[B].y),N.x=Math.max(N.x,I[B].x),N.y=Math.max(N.y,I[B].y);R=D.x>=C.x&&N.x<=E.x&&D.y>=C.y&&N.y<=E.y?[I]:N.x<C.x||D.x>E.x||N.y<C.y||D.y>E.y?[]:t.clipLine([I],C.x,C.y,E.x,E.y)}for(var F=0,z=R;F<z.length;F+=1){var V;T.reset(z[F],.25*S),V=T.length<=.5*S?1:Math.ceil(T.paddedLength/P)+1;for(var U=0;U<V;U++){var G=U/Math.max(V-1,1),H=T.lerp(G),W=H.x+100,Y=H.y+100;p.push(W,Y,S,0);var X=W-S,$=Y-S,q=W+S,Z=Y+S;if(O=O&&this.isOffscreen(X,$,q,Z),w=w||this.isInsideGrid(X,$,q,Z),!e&&this.grid.hitTestCircle(W,Y,S,h)&&(x=!0,!l))return{circles:[],offscreen:!1,collisionDetected:x}}}}return{circles:!l&&x||!w?[]:p,offscreen:O,collisionDetected:x}},he.prototype.queryRenderedSymbols=function(e){if(0===e.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};for(var n=[],r=1/0,i=1/0,o=-1/0,a=-1/0,s=0,u=e;s<u.length;s+=1){var l=u[s],c=new t.Point(l.x+100,l.y+100);r=Math.min(r,c.x),i=Math.min(i,c.y),o=Math.max(o,c.x),a=Math.max(a,c.y),n.push(c)}for(var h={},f={},d=0,p=this.grid.query(r,i,o,a).concat(this.ignoredGrid.query(r,i,o,a));d<p.length;d+=1){var g=p[d],v=g.key;if(void 0===h[v.bucketInstanceId]&&(h[v.bucketInstanceId]={}),!h[v.bucketInstanceId][v.featureIndex]){var m=[new t.Point(g.x1,g.y1),new t.Point(g.x2,g.y1),new t.Point(g.x2,g.y2),new t.Point(g.x1,g.y2)];t.polygonIntersectsPolygon(n,m)&&(h[v.bucketInstanceId][v.featureIndex]=!0,void 0===f[v.bucketInstanceId]&&(f[v.bucketInstanceId]=[]),f[v.bucketInstanceId].push(v.featureIndex))}}return f},he.prototype.insertCollisionBox=function(t,e,n,r,i){(e?this.ignoredGrid:this.grid).insert({bucketInstanceId:n,featureIndex:r,collisionGroupID:i},t[0],t[1],t[2],t[3])},he.prototype.insertCollisionCircles=function(t,e,n,r,i){for(var o=e?this.ignoredGrid:this.grid,a={bucketInstanceId:n,featureIndex:r,collisionGroupID:i},s=0;s<t.length;s+=4)o.insertCircle(a,t[s],t[s+1],t[s+2])},he.prototype.projectAndGetPerspectiveRatio=function(e,n,r){var i=[n,r,0,1];return ce(i,i,e),{point:new t.Point((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[3]*.5}},he.prototype.isOffscreen=function(t,e,n,r){return n<100||t>=this.screenRightBoundary||r<100||e>this.screenBottomBoundary},he.prototype.isInsideGrid=function(t,e,n,r){return n>=0&&t<this.gridRightBoundary&&r>=0&&e<this.gridBottomBoundary},he.prototype.getViewportMatrix=function(){var e=t.identity([]);return t.translate(e,e,[-100,-100,0]),e};var de=function(t,e,n,r){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):r&&n?1:0,this.placed=n};de.prototype.isHidden=function(){return 0===this.opacity&&!this.placed};var pe=function(t,e,n,r,i){this.text=new de(t?t.text:null,e,n,i),this.icon=new de(t?t.icon:null,e,r,i)};pe.prototype.isHidden=function(){return this.text.isHidden()&&this.icon.isHidden()};var ge=function(t,e,n){this.text=t,this.icon=e,this.skipFade=n},ve=function(){this.invProjMatrix=t.create(),this.viewportMatrix=t.create(),this.circles=[]},me=function(t,e,n,r,i){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=n,this.bucketIndex=r,this.tileID=i},ye=function(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}};function be(e,n,r,i,o){var a=t.getAnchorAlignment(e),s=-(a.horizontalAlign-.5)*n,u=-(a.verticalAlign-.5)*r,l=t.evaluateVariableOffset(e,i);return new t.Point(s+l[0]*o,u+l[1]*o)}function _e(e,n,r,i,o,a){var s=e.x1,u=e.x2,l=e.y1,c=e.y2,h=e.anchorPointX,f=e.anchorPointY,d=new t.Point(n,r);return i&&d._rotate(o?a:-a),{x1:s+d.x,y1:l+d.y,x2:u+d.x,y2:c+d.y,anchorPointX:h,anchorPointY:f}}ye.prototype.get=function(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){var e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:function(t){return t.collisionGroupID===e}}}return this.collisionGroups[t]};var xe=function(t,e,n,r){this.transform=t.clone(),this.collisionIndex=new he(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new ye(n),this.collisionCircleArrays={},this.prevPlacement=r,r&&(r.prevPlacement=void 0),this.placedOrientations={}};function we(t,e,n,r,i){t.emplaceBack(e?1:0,n?1:0,r||0,i||0),t.emplaceBack(e?1:0,n?1:0,r||0,i||0),t.emplaceBack(e?1:0,n?1:0,r||0,i||0),t.emplaceBack(e?1:0,n?1:0,r||0,i||0)}xe.prototype.getBucketParts=function(e,n,r,i){var o=r.getBucket(n),a=r.latestFeatureIndex;if(o&&a&&n.id===o.layerIds[0]){var s=r.collisionBoxArray,u=o.layers[0].layout,l=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),c=r.tileSize/t.EXTENT,h=this.transform.calculatePosMatrix(r.tileID.toUnwrapped()),f="map"===u.get("text-pitch-alignment"),d="map"===u.get("text-rotation-alignment"),p=fe(r,1,this.transform.zoom),g=Kt(h,f,d,this.transform,p),v=null;if(f){var m=Qt(h,f,d,this.transform,p);v=t.multiply([],this.transform.labelPlaneMatrix,m)}this.retainedQueryData[o.bucketInstanceId]=new me(o.bucketInstanceId,a,o.sourceLayerIndex,o.index,r.tileID);var y={bucket:o,layout:u,posMatrix:h,textLabelPlaneMatrix:g,labelToScreenMatrix:v,scale:l,textPixelRatio:c,holdingForFade:r.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:t.evaluateSizeForZoom(o.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(o.sourceID)};if(i)for(var b=0,_=o.sortKeyRanges;b<_.length;b+=1){var x=_[b];e.push({sortKey:x.sortKey,symbolInstanceStart:x.symbolInstanceStart,symbolInstanceEnd:x.symbolInstanceEnd,parameters:y})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:o.symbolInstances.length,parameters:y})}},xe.prototype.attemptAnchorPlacement=function(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p){var g,v=[h.textOffset0,h.textOffset1],m=be(t,n,r,v,i),y=this.collisionIndex.placeCollisionBox(_e(e,m.x,m.y,o,a,this.transform.angle),c,s,u,l.predicate);if(!p||0!==this.collisionIndex.placeCollisionBox(_e(p,m.x,m.y,o,a,this.transform.angle),c,s,u,l.predicate).box.length)return y.box.length>0?(this.prevPlacement&&this.prevPlacement.variableOffsets[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID].text&&(g=this.prevPlacement.variableOffsets[h.crossTileID].anchor),this.variableOffsets[h.crossTileID]={textOffset:v,width:n,height:r,anchor:t,textBoxScale:i,prevAnchor:g},this.markUsedJustification(f,t,h,d),f.allowVerticalPlacement&&(this.markUsedOrientation(f,d,h),this.placedOrientations[h.crossTileID]=d),{shift:m,placedGlyphBoxes:y}):void 0},xe.prototype.placeLayerBucketPart=function(e,n,r){var i=this,o=e.parameters,a=o.bucket,s=o.layout,u=o.posMatrix,l=o.textLabelPlaneMatrix,c=o.labelToScreenMatrix,h=o.textPixelRatio,f=o.holdingForFade,d=o.collisionBoxArray,p=o.partiallyEvaluatedTextSize,g=o.collisionGroup,v=s.get("text-optional"),m=s.get("icon-optional"),y=s.get("text-allow-overlap"),b=s.get("icon-allow-overlap"),_="map"===s.get("text-rotation-alignment"),x="map"===s.get("text-pitch-alignment"),w="none"!==s.get("icon-text-fit"),O="viewport-y"===s.get("symbol-z-order"),S=y&&(b||!a.hasIconData()||m),C=b&&(y||!a.hasTextData()||v);!a.collisionArrays&&d&&a.deserializeCollisionBoxes(d);var E=function(e,o){if(!n[e.crossTileID])if(f)i.placements[e.crossTileID]=new ge(!1,!1,!1);else{var d,O=!1,E=!1,T=!0,A=null,M={box:null,offscreen:null},I={box:null,offscreen:null},j=null,k=null,P=0,L=0,R=0;o.textFeatureIndex?P=o.textFeatureIndex:e.useRuntimeCollisionCircles&&(P=e.featureIndex),o.verticalTextFeatureIndex&&(L=o.verticalTextFeatureIndex);var D=o.textBox;if(D){var N=function(n){var r=t.WritingMode.horizontal;if(a.allowVerticalPlacement&&!n&&i.prevPlacement){var o=i.prevPlacement.placedOrientations[e.crossTileID];o&&(i.placedOrientations[e.crossTileID]=o,i.markUsedOrientation(a,r=o,e))}return r},B=function(n,r){if(a.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&o.verticalTextBox)for(var i=0,s=a.writingModes;i<s.length&&(s[i]===t.WritingMode.vertical?(M=r(),I=M):M=n(),!(M&&M.box&&M.box.length));i+=1);else M=n()};if(s.get("text-variable-anchor")){var F=s.get("text-variable-anchor");if(i.prevPlacement&&i.prevPlacement.variableOffsets[e.crossTileID]){var z=i.prevPlacement.variableOffsets[e.crossTileID];F.indexOf(z.anchor)>0&&(F=F.filter((function(t){return t!==z.anchor}))).unshift(z.anchor)}var V=function(t,n,r){for(var o=t.x2-t.x1,s=t.y2-t.y1,l=e.textBoxScale,c=w&&!b?n:null,f={box:[],offscreen:!1},d=y?2*F.length:F.length,p=0;p<d;++p){var v=i.attemptAnchorPlacement(F[p%F.length],t,o,s,l,_,x,h,u,g,p>=F.length,e,a,r,c);if(v&&(f=v.placedGlyphBoxes)&&f.box&&f.box.length){O=!0,A=v.shift;break}}return f};B((function(){return V(D,o.iconBox,t.WritingMode.horizontal)}),(function(){var n=o.verticalTextBox;return a.allowVerticalPlacement&&!(M&&M.box&&M.box.length)&&e.numVerticalGlyphVertices>0&&n?V(n,o.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),M&&(O=M.box,T=M.offscreen);var U=N(M&&M.box);if(!O&&i.prevPlacement){var G=i.prevPlacement.variableOffsets[e.crossTileID];G&&(i.variableOffsets[e.crossTileID]=G,i.markUsedJustification(a,G.anchor,e,U))}}else{var H=function(t,n){var r=i.collisionIndex.placeCollisionBox(t,y,h,u,g.predicate);return r&&r.box&&r.box.length&&(i.markUsedOrientation(a,n,e),i.placedOrientations[e.crossTileID]=n),r};B((function(){return H(D,t.WritingMode.horizontal)}),(function(){var n=o.verticalTextBox;return a.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&n?H(n,t.WritingMode.vertical):{box:null,offscreen:null}})),N(M&&M.box&&M.box.length)}}if(O=(d=M)&&d.box&&d.box.length>0,T=d&&d.offscreen,e.useRuntimeCollisionCircles){var W=a.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),Y=t.evaluateSizeForFeature(a.textSizeData,p,W),X=s.get("text-padding");j=i.collisionIndex.placeCollisionCircles(y,W,a.lineVertexArray,a.glyphOffsetArray,Y,u,l,c,r,x,g.predicate,e.collisionCircleDiameter,X),O=y||j.circles.length>0&&!j.collisionDetected,T=T&&j.offscreen}if(o.iconFeatureIndex&&(R=o.iconFeatureIndex),o.iconBox){var $=function(t){var e=w&&A?_e(t,A.x,A.y,_,x,i.transform.angle):t;return i.collisionIndex.placeCollisionBox(e,b,h,u,g.predicate)};E=I&&I.box&&I.box.length&&o.verticalIconBox?(k=$(o.verticalIconBox)).box.length>0:(k=$(o.iconBox)).box.length>0,T=T&&k.offscreen}var q=v||0===e.numHorizontalGlyphVertices&&0===e.numVerticalGlyphVertices,Z=m||0===e.numIconVertices;if(q||Z?Z?q||(E=E&&O):O=E&&O:E=O=E&&O,O&&d&&d.box&&i.collisionIndex.insertCollisionBox(d.box,s.get("text-ignore-placement"),a.bucketInstanceId,I&&I.box&&L?L:P,g.ID),E&&k&&i.collisionIndex.insertCollisionBox(k.box,s.get("icon-ignore-placement"),a.bucketInstanceId,R,g.ID),j&&(O&&i.collisionIndex.insertCollisionCircles(j.circles,s.get("text-ignore-placement"),a.bucketInstanceId,P,g.ID),r)){var K=a.bucketInstanceId,Q=i.collisionCircleArrays[K];void 0===Q&&(Q=i.collisionCircleArrays[K]=new ve);for(var J=0;J<j.circles.length;J+=4)Q.circles.push(j.circles[J+0]),Q.circles.push(j.circles[J+1]),Q.circles.push(j.circles[J+2]),Q.circles.push(j.collisionDetected?1:0)}i.placements[e.crossTileID]=new ge(O||S,E||C,T||a.justReloaded),n[e.crossTileID]=!0}};if(O)for(var T=a.getSortedSymbolIndexes(this.transform.angle),A=T.length-1;A>=0;--A){var M=T[A];E(a.symbolInstances.get(M),a.collisionArrays[M])}else for(var I=e.symbolInstanceStart;I<e.symbolInstanceEnd;I++)E(a.symbolInstances.get(I),a.collisionArrays[I]);if(r&&a.bucketInstanceId in this.collisionCircleArrays){var j=this.collisionCircleArrays[a.bucketInstanceId];t.invert(j.invProjMatrix,u),j.viewportMatrix=this.collisionIndex.getViewportMatrix()}a.justReloaded=!1},xe.prototype.markUsedJustification=function(e,n,r,i){var o;o=i===t.WritingMode.vertical?r.verticalPlacedTextSymbolIndex:{left:r.leftJustifiedTextSymbolIndex,center:r.centerJustifiedTextSymbolIndex,right:r.rightJustifiedTextSymbolIndex}[t.getAnchorJustification(n)];for(var a=0,s=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex,r.verticalPlacedTextSymbolIndex];a<s.length;a+=1){var u=s[a];u>=0&&(e.text.placedSymbolArray.get(u).crossTileID=o>=0&&u!==o?0:r.crossTileID)}},xe.prototype.markUsedOrientation=function(e,n,r){for(var i=n===t.WritingMode.horizontal||n===t.WritingMode.horizontalOnly?n:0,o=n===t.WritingMode.vertical?n:0,a=0,s=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];a<s.length;a+=1)e.text.placedSymbolArray.get(s[a]).placedOrientation=i;r.verticalPlacedTextSymbolIndex&&(e.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=o)},xe.prototype.commit=function(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;var e=this.prevPlacement,n=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;var r=e?e.symbolFadeChange(t):1,i=e?e.opacities:{},o=e?e.variableOffsets:{},a=e?e.placedOrientations:{};for(var s in this.placements){var u=this.placements[s],l=i[s];l?(this.opacities[s]=new pe(l,r,u.text,u.icon),n=n||u.text!==l.text.placed||u.icon!==l.icon.placed):(this.opacities[s]=new pe(null,r,u.text,u.icon,u.skipFade),n=n||u.text||u.icon)}for(var c in i){var h=i[c];if(!this.opacities[c]){var f=new pe(h,r,!1,!1);f.isHidden()||(this.opacities[c]=f,n=n||h.text.placed||h.icon.placed)}}for(var d in o)this.variableOffsets[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.variableOffsets[d]=o[d]);for(var p in a)this.placedOrientations[p]||!this.opacities[p]||this.opacities[p].isHidden()||(this.placedOrientations[p]=a[p]);n?this.lastPlacementChangeTime=t:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)},xe.prototype.updateLayerOpacities=function(t,e){for(var n={},r=0,i=e;r<i.length;r+=1){var o=i[r],a=o.getBucket(t);a&&o.latestFeatureIndex&&t.id===a.layerIds[0]&&this.updateBucketOpacities(a,n,o.collisionBoxArray)}},xe.prototype.updateBucketOpacities=function(e,n,r){var i=this;e.hasTextData()&&e.text.opacityVertexArray.clear(),e.hasIconData()&&e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexArray.clear();var o=e.layers[0].layout,a=new pe(null,0,!1,!1,!0),s=o.get("text-allow-overlap"),u=o.get("icon-allow-overlap"),l=o.get("text-variable-anchor"),c="map"===o.get("text-rotation-alignment"),h="map"===o.get("text-pitch-alignment"),f="none"!==o.get("icon-text-fit"),d=new pe(null,0,s&&(u||!e.hasIconData()||o.get("icon-optional")),u&&(s||!e.hasTextData()||o.get("text-optional")),!0);!e.collisionArrays&&r&&(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&&e.deserializeCollisionBoxes(r);for(var p=function(t,e,n){for(var r=0;r<e/4;r++)t.opacityVertexArray.emplaceBack(n)},g=function(r){var o=e.symbolInstances.get(r),s=o.numHorizontalGlyphVertices,u=o.numVerticalGlyphVertices,g=o.crossTileID,v=i.opacities[g];n[g]?v=a:v||(i.opacities[g]=v=d),n[g]=!0;var m=o.numIconVertices>0,y=i.placedOrientations[o.crossTileID],b=y===t.WritingMode.vertical,_=y===t.WritingMode.horizontal||y===t.WritingMode.horizontalOnly;if(s>0||u>0){var x=Ie(v.text);p(e.text,s,b?je:x),p(e.text,u,_?je:x);var w=v.text.isHidden();[o.rightJustifiedTextSymbolIndex,o.centerJustifiedTextSymbolIndex,o.leftJustifiedTextSymbolIndex].forEach((function(t){t>=0&&(e.text.placedSymbolArray.get(t).hidden=w||b?1:0)})),o.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(o.verticalPlacedTextSymbolIndex).hidden=w||_?1:0);var O=i.variableOffsets[o.crossTileID];O&&i.markUsedJustification(e,O.anchor,o,y);var S=i.placedOrientations[o.crossTileID];S&&(i.markUsedJustification(e,"left",o,S),i.markUsedOrientation(e,S,o))}if(m){var C=Ie(v.icon),E=!(f&&o.verticalPlacedIconSymbolIndex&&b);o.placedIconSymbolIndex>=0&&(p(e.icon,o.numIconVertices,E?C:je),e.icon.placedSymbolArray.get(o.placedIconSymbolIndex).hidden=v.icon.isHidden()),o.verticalPlacedIconSymbolIndex>=0&&(p(e.icon,o.numVerticalIconVertices,E?je:C),e.icon.placedSymbolArray.get(o.verticalPlacedIconSymbolIndex).hidden=v.icon.isHidden())}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var T=e.collisionArrays[r];if(T){var A=new t.Point(0,0);if(T.textBox||T.verticalTextBox){var M=!0;if(l){var I=i.variableOffsets[g];I?(A=be(I.anchor,I.width,I.height,I.textOffset,I.textBoxScale),c&&A._rotate(h?i.transform.angle:-i.transform.angle)):M=!1}T.textBox&&we(e.textCollisionBox.collisionVertexArray,v.text.placed,!M||b,A.x,A.y),T.verticalTextBox&&we(e.textCollisionBox.collisionVertexArray,v.text.placed,!M||_,A.x,A.y)}var j=Boolean(!_&&T.verticalIconBox);T.iconBox&&we(e.iconCollisionBox.collisionVertexArray,v.icon.placed,j,f?A.x:0,f?A.y:0),T.verticalIconBox&&we(e.iconCollisionBox.collisionVertexArray,v.icon.placed,!j,f?A.x:0,f?A.y:0)}}},v=0;v<e.symbolInstances.length;v++)g(v);if(e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&&(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&&e.text.opacityVertexBuffer&&e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&&e.icon.opacityVertexBuffer&&e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexBuffer&&e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexBuffer&&e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){var m=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=m.invProjMatrix,e.placementViewportMatrix=m.viewportMatrix,e.collisionCircleArray=m.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}},xe.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},xe.prototype.zoomAdjustment=function(t){return Math.max(0,(this.transform.zoom-t)/1.5)},xe.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime<this.fadeDuration},xe.prototype.stillRecent=function(t,e){var n=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*n>t},xe.prototype.setStale=function(){this.stale=!0};var Oe=Math.pow(2,25),Se=Math.pow(2,24),Ce=Math.pow(2,17),Ee=Math.pow(2,16),Te=Math.pow(2,9),Ae=Math.pow(2,8),Me=Math.pow(2,1);function Ie(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;var e=t.placed?1:0,n=Math.floor(127*t.opacity);return n*Oe+e*Se+n*Ce+e*Ee+n*Te+e*Ae+n*Me+e}var je=0,ke=function(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&void 0!==t.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};ke.prototype.continuePlacement=function(t,e,n,r,i){for(var o=this._bucketParts;this._currentTileIndex<t.length;)if(e.getBucketParts(o,r,t[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,i())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,o.sort((function(t,e){return t.sortKey-e.sortKey})));this._currentPartIndex<o.length;)if(e.placeLayerBucketPart(o[this._currentPartIndex],this._seenCrossTileIDs,n),this._currentPartIndex++,i())return!0;return!1};var Pe=function(t,e,n,r,i,o,a){this.placement=new xe(t,i,o,a),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=n,this._showCollisionBoxes=r,this._done=!1};Pe.prototype.isDone=function(){return this._done},Pe.prototype.continuePlacement=function(e,n,r){for(var i=this,o=t.browser.now(),a=function(){var e=t.browser.now()-o;return!i._forceFullPlacement&&e>2};this._currentPlacementIndex>=0;){var s=n[e[this._currentPlacementIndex]],u=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=u)&&(!s.maxzoom||s.maxzoom>u)){if(this._inProgressLayer||(this._inProgressLayer=new ke(s)),this._inProgressLayer.continuePlacement(r[s.source],this.placement,this._showCollisionBoxes,s,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Pe.prototype.commit=function(t){return this.placement.commit(t),this.placement};var Le=512/t.EXTENT/2,Re=function(t,e,n){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=n;for(var r=0;r<e.length;r++){var i=e.get(r),o=i.key;this.indexedSymbolInstances[o]||(this.indexedSymbolInstances[o]=[]),this.indexedSymbolInstances[o].push({crossTileID:i.crossTileID,coord:this.getScaledCoordinates(i,t)})}};Re.prototype.getScaledCoordinates=function(e,n){var r=Le/Math.pow(2,n.canonical.z-this.tileID.canonical.z);return{x:Math.floor((n.canonical.x*t.EXTENT+e.anchorX)*r),y:Math.floor((n.canonical.y*t.EXTENT+e.anchorY)*r)}},Re.prototype.findMatches=function(t,e,n){for(var r=this.tileID.canonical.z<e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),i=0;i<t.length;i++){var o=t.get(i);if(!o.crossTileID){var a=this.indexedSymbolInstances[o.key];if(a)for(var s=this.getScaledCoordinates(o,e),u=0,l=a;u<l.length;u+=1){var c=l[u];if(Math.abs(c.coord.x-s.x)<=r&&Math.abs(c.coord.y-s.y)<=r&&!n[c.crossTileID]){n[c.crossTileID]=!0,o.crossTileID=c.crossTileID;break}}}}};var De=function(){this.maxCrossTileID=0};De.prototype.generate=function(){return++this.maxCrossTileID};var Ne=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};Ne.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var n in this.indexes){var r=this.indexes[n],i={};for(var o in r){var a=r[o];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+e),i[a.tileID.key]=a}this.indexes[n]=i}this.lng=t},Ne.prototype.addBucket=function(t,e,n){if(this.indexes[t.overscaledZ]&&this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var r=0;r<e.symbolInstances.length;r++)e.symbolInstances.get(r).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var i=this.usedCrossTileIDs[t.overscaledZ];for(var o in this.indexes){var a=this.indexes[o];if(Number(o)>t.overscaledZ)for(var s in a){var u=a[s];u.tileID.isChildOf(t)&&u.findMatches(e.symbolInstances,t,i)}else{var l=a[t.scaledTo(Number(o)).key];l&&l.findMatches(e.symbolInstances,t,i)}}for(var c=0;c<e.symbolInstances.length;c++){var h=e.symbolInstances.get(c);h.crossTileID||(h.crossTileID=n.generate(),i[h.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&&(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new Re(t,e.symbolInstances,e.bucketInstanceId),!0},Ne.prototype.removeBucketCrossTileIDs=function(t,e){for(var n in e.indexedSymbolInstances)for(var r=0,i=e.indexedSymbolInstances[n];r<i.length;r+=1)delete this.usedCrossTileIDs[t][i[r].crossTileID]},Ne.prototype.removeStaleBuckets=function(t){var e=!1;for(var n in this.indexes){var r=this.indexes[n];for(var i in r)t[r[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,r[i]),delete r[i],e=!0)}return e};var Be=function(){this.layerIndexes={},this.crossTileIDs=new De,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Be.prototype.addLayer=function(t,e,n){var r=this.layerIndexes[t.id];void 0===r&&(r=this.layerIndexes[t.id]=new Ne);var i=!1,o={};r.handleWrapJump(n);for(var a=0,s=e;a<s.length;a+=1){var u=s[a],l=u.getBucket(t);l&&t.id===l.layerIds[0]&&(l.bucketInstanceId||(l.bucketInstanceId=++this.maxBucketInstanceId),r.addBucket(u.tileID,l,this.crossTileIDs)&&(i=!0),o[l.bucketInstanceId]=!0)}return r.removeStaleBuckets(o)&&(i=!0),i},Be.prototype.pruneUnusedLayers=function(t){var e={};for(var n in t.forEach((function(t){e[t]=!0})),this.layerIndexes)e[n]||delete this.layerIndexes[n]};var Fe=function(e,n){return t.emitValidationErrors(e,n&&n.filter((function(t){return"source.canvas"!==t.identifier})))},ze=t.pick(Vt,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData"]),Ve=t.pick(Vt,["setCenter","setZoom","setBearing","setPitch"]),Ue=function(){var e={},n=t.styleSpec.$version;for(var r in t.styleSpec.$root){var i,o=t.styleSpec.$root[r];o.required&&null!=(i="version"===r?n:"array"===o.type?[]:{})&&(e[r]=i)}return e}(),Ge=function(e){function n(r,i){var o=this;void 0===i&&(i={}),e.call(this),this.map=r,this.dispatcher=new S(Bt(),this),this.imageManager=new f,this.imageManager.setEventedParent(this),this.glyphManager=new b(r._requestManager,i.localIdeographFontFamily),this.lineAtlas=new O(256,512),this.crossTileSymbolIndex=new Be,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",t.getReferrer());var a=this;this._rtlTextPluginCallback=n.registerForPluginStateChange((function(e){a.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:e.pluginStatus,pluginURL:e.pluginURL},(function(e,n){if(t.triggerPluginCompletionEvent(e),n&&n.every((function(t){return t})))for(var r in a.sourceCaches)a.sourceCaches[r].reload()}))})),this.on("data",(function(t){if("source"===t.dataType&&"metadata"===t.sourceDataType){var e=o.sourceCaches[t.sourceId];if(e){var n=e.getSource();if(n&&n.vectorLayerIds)for(var r in o._layers){var i=o._layers[r];i.source===n.id&&o._validateLayer(i)}}}}))}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.loadURL=function(e,n){var r=this;void 0===n&&(n={}),this.fire(new t.Event("dataloading",{dataType:"style"}));var i="boolean"==typeof n.validate?n.validate:!t.isMapboxURL(e);e=this.map._requestManager.normalizeStyleURL(e,n.accessToken);var o=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(o,(function(e,n){r._request=null,e?r.fire(new t.ErrorEvent(e)):n&&r._load(n,i)}))},n.prototype.loadJSON=function(e,n){var r=this;void 0===n&&(n={}),this.fire(new t.Event("dataloading",{dataType:"style"})),this._request=t.browser.frame((function(){r._request=null,r._load(e,!1!==n.validate)}))},n.prototype.loadEmpty=function(){this.fire(new t.Event("dataloading",{dataType:"style"})),this._load(Ue,!1)},n.prototype._load=function(e,n){if(!n||!Fe(this,t.validateStyle(e))){for(var r in this._loaded=!0,this.stylesheet=e,e.sources)this.addSource(r,e.sources[r],{validate:!1});e.sprite?this._loadSprite(e.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);var i=zt(this.stylesheet.layers);this._order=i.map((function(t){return t.id})),this._layers={},this._serializedLayers={};for(var o=0,a=i;o<a.length;o+=1){var s=a[o];(s=t.createStyleLayer(s)).setEventedParent(this,{layer:{id:s.id}}),this._layers[s.id]=s,this._serializedLayers[s.id]=s.serialize()}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.fire(new t.Event("data",{dataType:"style"})),this.fire(new t.Event("style.load"))}},n.prototype._loadSprite=function(e){var n=this;this._spriteRequest=function(e,n,r){var i,o,a,s=t.browser.devicePixelRatio>1?"@2x":"",u=t.getJSON(n.transformRequest(n.normalizeSpriteURL(e,s,".json"),t.ResourceType.SpriteJSON),(function(t,e){u=null,a||(a=t,i=e,c())})),l=t.getImage(n.transformRequest(n.normalizeSpriteURL(e,s,".png"),t.ResourceType.SpriteImage),(function(t,e){l=null,a||(a=t,o=e,c())}));function c(){if(a)r(a);else if(i&&o){var e=t.browser.getImageData(o),n={};for(var s in i){var u=i[s],l=u.width,c=u.height,h=u.x,f=u.y,d=u.sdf,p=u.pixelRatio,g=u.stretchX,v=u.stretchY,m=u.content,y=new t.RGBAImage({width:l,height:c});t.RGBAImage.copy(e,y,{x:h,y:f},{x:0,y:0},{width:l,height:c}),n[s]={data:y,pixelRatio:p,sdf:d,stretchX:g,stretchY:v,content:m}}r(null,n)}}return{cancel:function(){u&&(u.cancel(),u=null),l&&(l.cancel(),l=null)}}}(e,this.map._requestManager,(function(e,r){if(n._spriteRequest=null,e)n.fire(new t.ErrorEvent(e));else if(r)for(var i in r)n.imageManager.addImage(i,r[i]);n.imageManager.setLoaded(!0),n._availableImages=n.imageManager.listImages(),n.dispatcher.broadcast("setImages",n._availableImages),n.fire(new t.Event("data",{dataType:"style"}))}))},n.prototype._validateLayer=function(e){var n=this.sourceCaches[e.source];if(n){var r=e.sourceLayer;if(r){var i=n.getSource();("geojson"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(r))&&this.fire(new t.ErrorEvent(new Error('Source layer "'+r+'" does not exist on source "'+i.id+'" as specified by style layer "'+e.id+'"')))}}},n.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},n.prototype._serializeLayers=function(t){for(var e=[],n=0,r=t;n<r.length;n+=1){var i=this._layers[r[n]];"custom"!==i.type&&e.push(i.serialize())}return e},n.prototype.hasTransitions=function(){if(this.light&&this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},n.prototype._checkLoaded=function(){if(!this._loaded)throw new Error("Style is not done loading")},n.prototype.update=function(e){if(this._loaded){var n=this._changed;if(this._changed){var r=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);for(var o in(r.length||i.length)&&this._updateWorkerLayers(r,i),this._updatedSources){var a=this._updatedSources[o];"reload"===a?this._reloadSource(o):"clear"===a&&this._clearSource(o)}for(var s in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[s].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates()}var u={};for(var l in this.sourceCaches){var c=this.sourceCaches[l];u[l]=c.used,c.used=!1}for(var h=0,f=this._order;h<f.length;h+=1){var d=this._layers[f[h]];d.recalculate(e,this._availableImages),!d.isHidden(e.zoom)&&d.source&&(this.sourceCaches[d.source].used=!0)}for(var p in u){var g=this.sourceCaches[p];u[p]!==g.used&&g.fire(new t.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:p}))}this.light.recalculate(e),this.z=e.zoom,n&&this.fire(new t.Event("data",{dataType:"style"}))}},n.prototype._updateTilesForChangedImages=function(){var t=Object.keys(this._changedImages);if(t.length){for(var e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies(["icons","patterns"],t);this._changedImages={}}},n.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(t),removedIds:e})},n.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},n.prototype.setState=function(e){var n=this;if(this._checkLoaded(),Fe(this,t.validateStyle(e)))return!1;(e=t.clone$1(e)).layers=zt(e.layers);var r=function(e,n){if(!e)return[{command:Vt.setStyle,args:[n]}];var r=[];try{if(!t.deepEqual(e.version,n.version))return[{command:Vt.setStyle,args:[n]}];t.deepEqual(e.center,n.center)||r.push({command:Vt.setCenter,args:[n.center]}),t.deepEqual(e.zoom,n.zoom)||r.push({command:Vt.setZoom,args:[n.zoom]}),t.deepEqual(e.bearing,n.bearing)||r.push({command:Vt.setBearing,args:[n.bearing]}),t.deepEqual(e.pitch,n.pitch)||r.push({command:Vt.setPitch,args:[n.pitch]}),t.deepEqual(e.sprite,n.sprite)||r.push({command:Vt.setSprite,args:[n.sprite]}),t.deepEqual(e.glyphs,n.glyphs)||r.push({command:Vt.setGlyphs,args:[n.glyphs]}),t.deepEqual(e.transition,n.transition)||r.push({command:Vt.setTransition,args:[n.transition]}),t.deepEqual(e.light,n.light)||r.push({command:Vt.setLight,args:[n.light]});var i={},o=[];!function(e,n,r,i){var o;for(o in n=n||{},e=e||{})e.hasOwnProperty(o)&&(n.hasOwnProperty(o)||Gt(o,r,i));for(o in n)n.hasOwnProperty(o)&&(e.hasOwnProperty(o)?t.deepEqual(e[o],n[o])||("geojson"===e[o].type&&"geojson"===n[o].type&&Wt(e,n,o)?r.push({command:Vt.setGeoJSONSourceData,args:[o,n[o].data]}):Ht(o,n,r,i)):Ut(o,n,r))}(e.sources,n.sources,o,i);var a=[];e.layers&&e.layers.forEach((function(t){i[t.source]?r.push({command:Vt.removeLayer,args:[t.id]}):a.push(t)})),r=r.concat(o),function(e,n,r){n=n||[];var i,o,a,s,u,l,c,h=(e=e||[]).map(Xt),f=n.map(Xt),d=e.reduce($t,{}),p=n.reduce($t,{}),g=h.slice(),v=Object.create(null);for(i=0,o=0;i<h.length;i++)p.hasOwnProperty(a=h[i])?o++:(r.push({command:Vt.removeLayer,args:[a]}),g.splice(g.indexOf(a,o),1));for(i=0,o=0;i<f.length;i++)g[g.length-1-i]!==(a=f[f.length-1-i])&&(d.hasOwnProperty(a)?(r.push({command:Vt.removeLayer,args:[a]}),g.splice(g.lastIndexOf(a,g.length-o),1)):o++,r.push({command:Vt.addLayer,args:[p[a],l=g[g.length-i]]}),g.splice(g.length-i,0,a),v[a]=!0);for(i=0;i<f.length;i++)if(s=d[a=f[i]],u=p[a],!v[a]&&!t.deepEqual(s,u))if(t.deepEqual(s.source,u.source)&&t.deepEqual(s["source-layer"],u["source-layer"])&&t.deepEqual(s.type,u.type)){for(c in Yt(s.layout,u.layout,r,a,null,Vt.setLayoutProperty),Yt(s.paint,u.paint,r,a,null,Vt.setPaintProperty),t.deepEqual(s.filter,u.filter)||r.push({command:Vt.setFilter,args:[a,u.filter]}),t.deepEqual(s.minzoom,u.minzoom)&&t.deepEqual(s.maxzoom,u.maxzoom)||r.push({command:Vt.setLayerZoomRange,args:[a,u.minzoom,u.maxzoom]}),s)s.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?Yt(s[c],u[c],r,a,c.slice(6),Vt.setPaintProperty):t.deepEqual(s[c],u[c])||r.push({command:Vt.setLayerProperty,args:[a,c,u[c]]}));for(c in u)u.hasOwnProperty(c)&&!s.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?Yt(s[c],u[c],r,a,c.slice(6),Vt.setPaintProperty):t.deepEqual(s[c],u[c])||r.push({command:Vt.setLayerProperty,args:[a,c,u[c]]}))}else r.push({command:Vt.removeLayer,args:[a]}),l=g[g.lastIndexOf(a)+1],r.push({command:Vt.addLayer,args:[u,l]})}(a,n.layers,r)}catch(t){console.warn("Unable to compute style diff:",t),r=[{command:Vt.setStyle,args:[n]}]}return r}(this.serialize(),e).filter((function(t){return!(t.command in Ve)}));if(0===r.length)return!1;var i=r.filter((function(t){return!(t.command in ze)}));if(i.length>0)throw new Error("Unimplemented: "+i.map((function(t){return t.command})).join(", ")+".");return r.forEach((function(t){"setTransition"!==t.command&&n[t.command].apply(n,t.args)})),this.stylesheet=e,!0},n.prototype.addImage=function(e,n){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(e,n),this._afterImageUpdated(e)},n.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},n.prototype.getImage=function(t){return this.imageManager.getImage(t)},n.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(e),this._afterImageUpdated(e)},n.prototype._afterImageUpdated=function(e){this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new t.Event("data",{dataType:"style"}))},n.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},n.prototype.addSource=function(e,n,r){var i=this;if(void 0===r&&(r={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error("There is already a source with this ID");if(!n.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(n).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(t.validateStyle.source,"sources."+e,n,null,r))){this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);var o=this.sourceCaches[e]=new It(e,n,this.dispatcher);o.style=this,o.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:o.serialize(),sourceId:e}})),o.onAdd(this.map),this._changed=!0}},n.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error("There is no source with this ID");for(var n in this._layers)if(this._layers[n].source===e)return this.fire(new t.ErrorEvent(new Error('Source "'+e+'" cannot be removed while layer "'+n+'" is using it.')));var r=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],r.fire(new t.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:e})),r.setEventedParent(null),r.clearTiles(),r.onRemove&&r.onRemove(this.map),this._changed=!0},n.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},n.prototype.getSource=function(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()},n.prototype.addLayer=function(e,n,r){void 0===r&&(r={}),this._checkLoaded();var i=e.id;if(this.getLayer(i))this.fire(new t.ErrorEvent(new Error('Layer with id "'+i+'" already exists on this map')));else{var o;if("custom"===e.type){if(Fe(this,t.validateCustomStyleLayer(e)))return;o=t.createStyleLayer(e)}else{if("object"==typeof e.source&&(this.addSource(i,e.source),e=t.clone$1(e),e=t.extend(e,{source:i})),this._validate(t.validateStyle.layer,"layers."+i,e,{arrayIndex:-1},r))return;o=t.createStyleLayer(e),this._validateLayer(o),o.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[o.id]=o.serialize()}var a=n?this._order.indexOf(n):this._order.length;if(n&&-1===a)this.fire(new t.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.')));else{if(this._order.splice(a,0,i),this._layerOrderChanged=!0,this._layers[i]=o,this._removedLayers[i]&&o.source&&"custom"!==o.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==o.type?this._updatedSources[o.source]="clear":(this._updatedSources[o.source]="reload",this.sourceCaches[o.source].pause())}this._updateLayer(o),o.onAdd&&o.onAdd(this.map)}}},n.prototype.moveLayer=function(e,n){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==n){var r=this._order.indexOf(e);this._order.splice(r,1);var i=n?this._order.indexOf(n):this._order.length;n&&-1===i?this.fire(new t.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.'))):(this._order.splice(i,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be moved.")))},n.prototype.removeLayer=function(e){this._checkLoaded();var n=this._layers[e];if(n){n.setEventedParent(null);var r=this._order.indexOf(e);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=n,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],n.onRemove&&n.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be removed.")))},n.prototype.getLayer=function(t){return this._layers[t]},n.prototype.hasLayer=function(t){return t in this._layers},n.prototype.setLayerZoomRange=function(e,n,r){this._checkLoaded();var i=this.getLayer(e);i?i.minzoom===n&&i.maxzoom===r||(null!=n&&(i.minzoom=n),null!=r&&(i.maxzoom=r),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot have zoom extent.")))},n.prototype.setFilter=function(e,n,r){void 0===r&&(r={}),this._checkLoaded();var i=this.getLayer(e);if(i){if(!t.deepEqual(i.filter,n))return null==n?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(t.validateStyle.filter,"layers."+i.id+".filter",n,null,r)||(i.filter=t.clone$1(n),this._updateLayer(i)))}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be filtered.")))},n.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},n.prototype.setLayoutProperty=function(e,n,r,i){void 0===i&&(i={}),this._checkLoaded();var o=this.getLayer(e);o?t.deepEqual(o.getLayoutProperty(n),r)||(o.setLayoutProperty(n,r,i),this._updateLayer(o)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getLayoutProperty=function(e,n){var r=this.getLayer(e);if(r)return r.getLayoutProperty(n);this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style.")))},n.prototype.setPaintProperty=function(e,n,r,i){void 0===i&&(i={}),this._checkLoaded();var o=this.getLayer(e);o?t.deepEqual(o.getPaintProperty(n),r)||(o.setPaintProperty(n,r,i)&&this._updateLayer(o),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},n.prototype.setFeatureState=function(e,n){this._checkLoaded();var r=e.source,i=e.sourceLayer,o=this.sourceCaches[r];if(void 0!==o){var a=o.getSource().type;"geojson"===a&&i?this.fire(new t.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==a||i?(void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),o.setFeatureState(i,e.id,n)):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.removeFeatureState=function(e,n){this._checkLoaded();var r=e.source,i=this.sourceCaches[r];if(void 0!==i){var o=i.getSource().type,a="vector"===o?e.sourceLayer:void 0;"vector"!==o||a?n&&"string"!=typeof e.id&&"number"!=typeof e.id?this.fire(new t.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):i.removeFeatureState(a,e.id,n):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.getFeatureState=function(e){this._checkLoaded();var n=e.source,r=e.sourceLayer,i=this.sourceCaches[n];if(void 0!==i){if("vector"!==i.getSource().type||r)return void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),i.getFeatureState(r,e.id);this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},n.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},n.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},n.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&"raster"!==this.sourceCaches[t.source].getSource().type&&(this._updatedSources[t.source]="reload",this.sourceCaches[t.source].pause()),this._changed=!0},n.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,n=function(t){return"fill-extrusion"===e._layers[t].type},r={},i=[],o=this._order.length-1;o>=0;o--){var a=this._order[o];if(n(a)){r[a]=o;for(var s=0,u=t;s<u.length;s+=1){var l=u[s][a];if(l)for(var c=0,h=l;c<h.length;c+=1)i.push(h[c])}}}i.sort((function(t,e){return e.intersectionZ-t.intersectionZ}));for(var f=[],d=this._order.length-1;d>=0;d--){var p=this._order[d];if(n(p))for(var g=i.length-1;g>=0;g--){var v=i[g].feature;if(r[v.layer.id]<d)break;f.push(v),i.pop()}else for(var m=0,y=t;m<y.length;m+=1){var b=y[m][p];if(b)for(var _=0,x=b;_<x.length;_+=1)f.push(x[_].feature)}}return f},n.prototype.queryRenderedFeatures=function(e,n,r){n&&n.filter&&this._validate(t.validateStyle.filter,"queryRenderedFeatures.filter",n.filter,null,n);var i={};if(n&&n.layers){if(!Array.isArray(n.layers))return this.fire(new t.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(var o=0,a=n.layers;o<a.length;o+=1){var s=a[o],u=this._layers[s];if(!u)return this.fire(new t.ErrorEvent(new Error("The layer '"+s+"' does not exist in the map's style and cannot be queried for features."))),[];i[u.source]=!0}}var l=[];for(var c in n.availableImages=this._availableImages,this.sourceCaches)n.layers&&!i[c]||l.push(N(this.sourceCaches[c],this._layers,this._serializedLayers,e,n,r));return this.placement&&l.push(function(t,e,n,r,i,o,a){for(var s={},u=o.queryRenderedSymbols(r),l=[],c=0,h=Object.keys(u).map(Number);c<h.length;c+=1)l.push(a[h[c]]);l.sort(B);for(var f=function(){var n=p[d],r=n.featureIndex.lookupSymbolFeatures(u[n.bucketInstanceId],e,n.bucketIndex,n.sourceLayerIndex,i.filter,i.layers,i.availableImages,t);for(var o in r){var a=s[o]=s[o]||[],l=r[o];l.sort((function(t,e){var r=n.featureSortOrder;if(r){var i=r.indexOf(t.featureIndex);return r.indexOf(e.featureIndex)-i}return e.featureIndex-t.featureIndex}));for(var c=0,h=l;c<h.length;c+=1)a.push(h[c])}},d=0,p=l;d<p.length;d+=1)f();var g=function(e){s[e].forEach((function(r){var i=r.feature,o=n[t[e].source].getFeatureState(i.layer["source-layer"],i.id);i.source=i.layer.source,i.layer["source-layer"]&&(i.sourceLayer=i.layer["source-layer"]),i.state=o}))};for(var v in s)g(v);return s}(this._layers,this._serializedLayers,this.sourceCaches,e,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(l)},n.prototype.querySourceFeatures=function(e,n){n&&n.filter&&this._validate(t.validateStyle.filter,"querySourceFeatures.filter",n.filter,null,n);var r=this.sourceCaches[e];return r?function(t,e){for(var n=t.getRenderableIds().map((function(e){return t.getTileByID(e)})),r=[],i={},o=0;o<n.length;o++){var a=n[o],s=a.tileID.canonical.key;i[s]||(i[s]=!0,a.querySourceFeatures(r,e))}return r}(r,n):[]},n.prototype.addSourceType=function(t,e,r){return n.getSourceType(t)?r(new Error('A source type called "'+t+'" already exists.')):(n.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:t,url:e.workerSourceURL},r):r(null,null))},n.prototype.getLight=function(){return this.light.getLight()},n.prototype.setLight=function(e,n){void 0===n&&(n={}),this._checkLoaded();var r=this.light.getLight(),i=!1;for(var o in e)if(!t.deepEqual(e[o],r[o])){i=!0;break}if(i){var a={now:t.browser.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,n),this.light.updateTransitions(a)}},n.prototype._validate=function(e,n,r,i,o){return void 0===o&&(o={}),(!o||!1!==o.validate)&&Fe(this,e.call(t.validateStyle,t.extend({key:n,style:this.serialize(),value:r,styleSpec:t.styleSpec},i)))},n.prototype._remove=function(){for(var e in this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off("pluginStateChange",this._rtlTextPluginCallback),this._layers)this._layers[e].setEventedParent(null);for(var n in this.sourceCaches)this.sourceCaches[n].clearTiles(),this.sourceCaches[n].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},n.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},n.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},n.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},n.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},n.prototype._updatePlacement=function(e,n,r,i,o){void 0===o&&(o=!1);for(var a=!1,s=!1,u={},l=0,c=this._order;l<c.length;l+=1){var h=this._layers[c[l]];if("symbol"===h.type){if(!u[h.source]){var f=this.sourceCaches[h.source];u[h.source]=f.getRenderableIds(!0).map((function(t){return f.getTileByID(t)})).sort((function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)}))}var d=this.crossTileSymbolIndex.addLayer(h,u[h.source],e.center.lng);a=a||d}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((o=o||this._layerOrderChanged||0===r)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(t.browser.now(),e.zoom))&&(this.pauseablePlacement=new Pe(e,this._order,o,n,r,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,u),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(t.browser.now()),s=!0),a&&this.pauseablePlacement.placement.setStale()),s||a)for(var p=0,g=this._order;p<g.length;p+=1){var v=this._layers[g[p]];"symbol"===v.type&&this.placement.updateLayerOpacities(v,u[v.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.browser.now())},n.prototype._releaseSymbolFadeTiles=function(){for(var t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()},n.prototype.getImages=function(t,e,n){this.imageManager.getImages(e.icons,n),this._updateTilesForChangedImages();var r=this.sourceCaches[e.source];r&&r.setDependencies(e.tileID.key,e.type,e.icons)},n.prototype.getGlyphs=function(t,e,n){this.glyphManager.getGlyphs(e.stacks,n)},n.prototype.getResource=function(e,n,r){return t.makeRequest(n,r)},n}(t.Evented);Ge.getSourceType=function(t){return R[t]},Ge.setSourceType=function(t,e){R[t]=e},Ge.registerForPluginStateChange=t.registerForPluginStateChange;var He=t.createLayout([{name:"a_pos",type:"Int16",components:2}]),We=yn("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}"),Ye=yn("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),Xe=yn("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),$e=yn("varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),qe=yn("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),Ze=yn("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}"),Ke=yn("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),Qe=yn("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Je=yn("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),tn=yn("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),en=yn("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),nn=yn("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),rn=yn("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),on=yn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),an=yn("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),sn=yn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),un=yn("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),ln=yn("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),cn=yn("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),hn=yn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),fn=yn("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),dn=yn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),pn=yn("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),gn=yn("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}"),vn=yn("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),mn=yn("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}");function yn(t,e){var n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=e.match(/attribute ([\w]+) ([\w]+)/g),i=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=o?o.concat(i):i,s={};return{fragmentSource:t=t.replace(n,(function(t,e,n,r,i){return s[i]=!0,"define"===e?"\n#ifndef HAS_UNIFORM_u_"+i+"\nvarying "+n+" "+r+" "+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n"})),vertexSource:e=e.replace(n,(function(t,e,n,r,i){var o="float"===r?"vec2":"vec4",a=i.match(/color/)?"color":o;return s[i]?"define"===e?"\n#ifndef HAS_UNIFORM_u_"+i+"\nuniform lowp float u_"+i+"_t;\nattribute "+n+" "+o+" a_"+i+";\nvarying "+n+" "+r+" "+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+i+" = a_"+i+";\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+i+" = unpack_mix_"+a+"(a_"+i+", u_"+i+"_t);\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"define"===e?"\n#ifndef HAS_UNIFORM_u_"+i+"\nuniform lowp float u_"+i+"_t;\nattribute "+n+" "+o+" a_"+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = a_"+i+";\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = unpack_mix_"+a+"(a_"+i+", u_"+i+"_t);\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n"})),staticAttributes:r,staticUniforms:a}}var bn=Object.freeze({__proto__:null,prelude:We,background:Ye,backgroundPattern:Xe,circle:$e,clippingMask:qe,heatmap:Ze,heatmapTexture:Ke,collisionBox:Qe,collisionCircle:Je,debug:tn,fill:en,fillOutline:nn,fillOutlinePattern:rn,fillPattern:on,fillExtrusion:an,fillExtrusionPattern:sn,hillshadePrepare:un,hillshade:ln,line:cn,lineGradient:hn,linePattern:fn,lineSDF:dn,raster:pn,symbolIcon:gn,symbolSDF:vn,symbolTextAndIcon:mn}),_n=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function xn(t){for(var e=[],n=0;n<t.length;n++)if(null!==t[n]){var r=t[n].split(" ");e.push(r.pop())}return e}_n.prototype.bind=function(t,e,n,r,i,o,a,s){this.context=t;for(var u=this.boundPaintVertexBuffers.length!==r.length,l=0;!u&&l<r.length;l++)this.boundPaintVertexBuffers[l]!==r[l]&&(u=!0);t.extVertexArrayObject&&this.vao&&this.boundProgram===e&&this.boundLayoutVertexBuffer===n&&!u&&this.boundIndexBuffer===i&&this.boundVertexOffset===o&&this.boundDynamicVertexBuffer===a&&this.boundDynamicVertexBuffer2===s?(t.bindVertexArrayOES.set(this.vao),a&&a.bind(),i&&i.dynamicDraw&&i.bind(),s&&s.bind()):this.freshBind(e,n,r,i,o,a,s)},_n.prototype.freshBind=function(t,e,n,r,i,o,a){var s,u=t.numAttributes,l=this.context,c=l.gl;if(l.extVertexArrayObject)this.vao&&this.destroy(),this.vao=l.extVertexArrayObject.createVertexArrayOES(),l.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=n,this.boundIndexBuffer=r,this.boundVertexOffset=i,this.boundDynamicVertexBuffer=o,this.boundDynamicVertexBuffer2=a;else{s=l.currentNumAttributes||0;for(var h=u;h<s;h++)c.disableVertexAttribArray(h)}e.enableAttributes(c,t);for(var f=0,d=n;f<d.length;f+=1)d[f].enableAttributes(c,t);o&&o.enableAttributes(c,t),a&&a.enableAttributes(c,t),e.bind(),e.setVertexAttribPointers(c,t,i);for(var p=0,g=n;p<g.length;p+=1){var v=g[p];v.bind(),v.setVertexAttribPointers(c,t,i)}o&&(o.bind(),o.setVertexAttribPointers(c,t,i)),r&&r.bind(),a&&(a.bind(),a.setVertexAttribPointers(c,t,i)),l.currentNumAttributes=u},_n.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var wn=function(t,e,n,r,i,o){var a=t.gl;this.program=a.createProgram();for(var s=xn(n.staticAttributes),u=r?r.getBinderAttributes():[],l=s.concat(u),c=n.staticUniforms?xn(n.staticUniforms):[],h=r?r.getBinderUniforms():[],f=[],d=0,p=c.concat(h);d<p.length;d+=1){var g=p[d];f.indexOf(g)<0&&f.push(g)}var v=r?r.defines():[];o&&v.push("#define OVERDRAW_INSPECTOR;");var m=v.concat(We.fragmentSource,n.fragmentSource).join("\n"),y=v.concat(We.vertexSource,n.vertexSource).join("\n"),b=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(b,m),a.compileShader(b),a.attachShader(this.program,b);var _=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(_,y),a.compileShader(_),a.attachShader(this.program,_),this.attributes={};var x={};this.numAttributes=l.length;for(var w=0;w<this.numAttributes;w++)l[w]&&(a.bindAttribLocation(this.program,w,l[w]),this.attributes[l[w]]=w);a.linkProgram(this.program),a.deleteShader(_),a.deleteShader(b);for(var O=0;O<f.length;O++){var S=f[O];if(S&&!x[S]){var C=a.getUniformLocation(this.program,S);C&&(x[S]=C)}}this.fixedUniforms=i(t,x),this.binderUniforms=r?r.getUniforms(t,x):[]}}};function On(t,e,n){var r=1/fe(n,1,e.transform.tileZoom),i=Math.pow(2,n.tileID.overscaledZ),o=n.tileSize*Math.pow(2,e.transform.tileZoom)/i,a=o*(n.tileID.canonical.x+n.tileID.wrap*i),s=o*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[r,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[a>>16,s>>16],u_pixel_coord_lower:[65535&a,65535&s]}}wn.prototype.draw=function(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g){var v,m=t.gl;if(!this.failedToCreate){for(var y in t.program.set(this.program),t.setDepthMode(n),t.setStencilMode(r),t.setColorMode(i),t.setCullFace(o),this.fixedUniforms)this.fixedUniforms[y].set(a[y]);d&&d.setUniforms(t,this.binderUniforms,h,{zoom:f});for(var b=(v={},v[m.LINES]=2,v[m.TRIANGLES]=3,v[m.LINE_STRIP]=1,v)[e],_=0,x=c.get();_<x.length;_+=1){var w=x[_],O=w.vaos||(w.vaos={});(O[s]||(O[s]=new _n)).bind(t,this,u,d?d.getPaintVertexBuffers():[],l,w.vertexOffset,p,g),m.drawElements(e,w.primitiveLength*b,m.UNSIGNED_SHORT,w.primitiveOffset*b*2)}}};var Sn=function(e,n,r,i){var o=n.style.light,a=o.properties.get("position"),s=[a.x,a.y,a.z],u=t.create$1();"viewport"===o.properties.get("anchor")&&t.fromRotation(u,-n.transform.angle),t.transformMat3(s,s,u);var l=o.properties.get("color");return{u_matrix:e,u_lightpos:s,u_lightintensity:o.properties.get("intensity"),u_lightcolor:[l.r,l.g,l.b],u_vertical_gradient:+r,u_opacity:i}},Cn=function(e,n,r,i,o,a,s){return t.extend(Sn(e,n,r,i),On(a,n,s),{u_height_factor:-Math.pow(2,o.overscaledZ)/s.tileSize/8})},En=function(t){return{u_matrix:t}},Tn=function(e,n,r,i){return t.extend(En(e),On(r,n,i))},An=function(t,e){return{u_matrix:t,u_world:e}},Mn=function(e,n,r,i,o){return t.extend(Tn(e,n,r,i),{u_world:o})},In=function(e,n,r,i){var o,a,s=e.transform;if("map"===i.paint.get("circle-pitch-alignment")){var u=fe(r,1,s.zoom);o=!0,a=[u,u]}else o=!1,a=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+("map"===i.paint.get("circle-pitch-scale")),u_matrix:e.translatePosMatrix(n.posMatrix,r,i.paint.get("circle-translate"),i.paint.get("circle-translate-anchor")),u_pitch_with_map:+o,u_device_pixel_ratio:t.browser.devicePixelRatio,u_extrude_scale:a}},jn=function(t,e,n){var r=fe(n,1,e.zoom),i=Math.pow(2,e.zoom-n.tileID.overscaledZ),o=n.tileID.overscaleFactor();return{u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:r,u_extrude_scale:[e.pixelsToGLUnits[0]/(r*i),e.pixelsToGLUnits[1]/(r*i)],u_overscale_factor:o}},kn=function(t,e,n){return{u_matrix:t,u_inv_matrix:e,u_camera_to_center_distance:n.cameraToCenterDistance,u_viewport_size:[n.width,n.height]}},Pn=function(t,e,n){return void 0===n&&(n=1),{u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:n}},Ln=function(t){return{u_matrix:t}},Rn=function(t,e,n,r){return{u_matrix:t,u_extrude_scale:fe(e,1,n),u_intensity:r}},Dn=function(e,n,r){var i=e.transform;return{u_matrix:Vn(e,n,r),u_ratio:1/fe(n,1,i.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Nn=function(e,n,r,i){return t.extend(Dn(e,n,r),{u_image:0,u_image_height:i})},Bn=function(e,n,r,i){var o=e.transform,a=zn(n,o);return{u_matrix:Vn(e,n,r),u_texsize:n.imageAtlasTexture.size,u_ratio:1/fe(n,1,o.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_image:0,u_scale:[a,i.fromScale,i.toScale],u_fade:i.t,u_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]]}},Fn=function(e,n,r,i,o){var a=e.lineAtlas,s=zn(n,e.transform),u="round"===r.layout.get("line-cap"),l=a.getDash(i.from,u),c=a.getDash(i.to,u),h=l.width*o.fromScale,f=c.width*o.toScale;return t.extend(Dn(e,n,r),{u_patternscale_a:[s/h,-l.height/2],u_patternscale_b:[s/f,-c.height/2],u_sdfgamma:a.width/(256*Math.min(h,f)*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:l.y,u_tex_y_b:c.y,u_mix:o.t})};function zn(t,e){return 1/fe(t,1,e.tileZoom)}function Vn(t,e,n){return t.translatePosMatrix(e.tileID.posMatrix,e,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}var Un=function(t,e,n,r,i){return{u_matrix:t,u_tl_parent:e,u_scale_parent:n,u_buffer_scale:1,u_fade_t:r.mix,u_opacity:r.opacity*i.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:i.paint.get("raster-brightness-min"),u_brightness_high:i.paint.get("raster-brightness-max"),u_saturation_factor:(a=i.paint.get("raster-saturation"),a>0?1-1/(1.001-a):-a),u_contrast_factor:(o=i.paint.get("raster-contrast"),o>0?1/(1-o):1+o),u_spin_weights:Gn(i.paint.get("raster-hue-rotate"))};var o,a};function Gn(t){t*=Math.PI/180;var e=Math.sin(t),n=Math.cos(t);return[(2*n+1)/3,(-Math.sqrt(3)*e-n+1)/3,(Math.sqrt(3)*e-n+1)/3]}var Hn,Wn=function(t,e,n,r,i,o,a,s,u,l){var c=i.transform;return{u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:c.cameraToCenterDistance,u_pitch:c.pitch/360*2*Math.PI,u_rotate_symbol:+n,u_aspect_ratio:c.width/c.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:o,u_label_plane_matrix:a,u_coord_matrix:s,u_is_text:+u,u_pitch_with_map:+r,u_texsize:l,u_texture:0}},Yn=function(e,n,r,i,o,a,s,u,l,c,h){var f=o.transform;return t.extend(Wn(e,n,r,i,o,a,s,u,l,c),{u_gamma_scale:i?Math.cos(f._pitch)*f.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+h})},Xn=function(e,n,r,i,o,a,s,u,l,c){return t.extend(Yn(e,n,r,i,o,a,s,u,!0,l,!0),{u_texsize_icon:c,u_texture_icon:1})},$n=function(t,e,n){return{u_matrix:t,u_opacity:e,u_color:n}},qn=function(e,n,r,i,o,a){return t.extend(function(t,e,n,r){var i=n.imageManager.getPattern(t.from.toString()),o=n.imageManager.getPattern(t.to.toString()),a=n.imageManager.getPixelSize(),s=a.width,u=a.height,l=Math.pow(2,r.tileID.overscaledZ),c=r.tileSize*Math.pow(2,n.transform.tileZoom)/l,h=c*(r.tileID.canonical.x+r.tileID.wrap*l),f=c*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:o.tl,u_pattern_br_b:o.br,u_texsize:[s,u],u_mix:e.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:o.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/fe(r,1,n.transform.tileZoom),u_pixel_coord_upper:[h>>16,f>>16],u_pixel_coord_lower:[65535&h,65535&f]}}(i,a,r,o),{u_matrix:e,u_opacity:n})},Zn={fillExtrusion:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_lightpos:new t.Uniform3f(e,n.u_lightpos),u_lightintensity:new t.Uniform1f(e,n.u_lightintensity),u_lightcolor:new t.Uniform3f(e,n.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,n.u_vertical_gradient),u_opacity:new t.Uniform1f(e,n.u_opacity)}},fillExtrusionPattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_lightpos:new t.Uniform3f(e,n.u_lightpos),u_lightintensity:new t.Uniform1f(e,n.u_lightintensity),u_lightcolor:new t.Uniform3f(e,n.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,n.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,n.u_height_factor),u_image:new t.Uniform1i(e,n.u_image),u_texsize:new t.Uniform2f(e,n.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade),u_opacity:new t.Uniform1f(e,n.u_opacity)}},fill:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}},fillPattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_image:new t.Uniform1i(e,n.u_image),u_texsize:new t.Uniform2f(e,n.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade)}},fillOutline:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_world:new t.Uniform2f(e,n.u_world)}},fillOutlinePattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_world:new t.Uniform2f(e,n.u_world),u_image:new t.Uniform1i(e,n.u_image),u_texsize:new t.Uniform2f(e,n.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade)}},circle:function(e,n){return{u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,n.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,n.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}},collisionBox:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,n.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,n.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,n.u_overscale_factor)}},collisionCircle:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,n.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,n.u_viewport_size)}},debug:function(e,n){return{u_color:new t.UniformColor(e,n.u_color),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_overlay:new t.Uniform1i(e,n.u_overlay),u_overlay_scale:new t.Uniform1f(e,n.u_overlay_scale)}},clippingMask:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}},heatmap:function(e,n){return{u_extrude_scale:new t.Uniform1f(e,n.u_extrude_scale),u_intensity:new t.Uniform1f(e,n.u_intensity),u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}},heatmapTexture:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_world:new t.Uniform2f(e,n.u_world),u_image:new t.Uniform1i(e,n.u_image),u_color_ramp:new t.Uniform1i(e,n.u_color_ramp),u_opacity:new t.Uniform1f(e,n.u_opacity)}},hillshade:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_image:new t.Uniform1i(e,n.u_image),u_latrange:new t.Uniform2f(e,n.u_latrange),u_light:new t.Uniform2f(e,n.u_light),u_shadow:new t.UniformColor(e,n.u_shadow),u_highlight:new t.UniformColor(e,n.u_highlight),u_accent:new t.UniformColor(e,n.u_accent)}},hillshadePrepare:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_image:new t.Uniform1i(e,n.u_image),u_dimension:new t.Uniform2f(e,n.u_dimension),u_zoom:new t.Uniform1f(e,n.u_zoom),u_unpack:new t.Uniform4f(e,n.u_unpack)}},line:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels)}},lineGradient:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels),u_image:new t.Uniform1i(e,n.u_image),u_image_height:new t.Uniform1f(e,n.u_image_height)}},linePattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_texsize:new t.Uniform2f(e,n.u_texsize),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_image:new t.Uniform1i(e,n.u_image),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade)}},lineSDF:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,n.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,n.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,n.u_sdfgamma),u_image:new t.Uniform1i(e,n.u_image),u_tex_y_a:new t.Uniform1f(e,n.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,n.u_tex_y_b),u_mix:new t.Uniform1f(e,n.u_mix)}},raster:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_tl_parent:new t.Uniform2f(e,n.u_tl_parent),u_scale_parent:new t.Uniform1f(e,n.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,n.u_buffer_scale),u_fade_t:new t.Uniform1f(e,n.u_fade_t),u_opacity:new t.Uniform1f(e,n.u_opacity),u_image0:new t.Uniform1i(e,n.u_image0),u_image1:new t.Uniform1i(e,n.u_image1),u_brightness_low:new t.Uniform1f(e,n.u_brightness_low),u_brightness_high:new t.Uniform1f(e,n.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,n.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,n.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,n.u_spin_weights)}},symbolIcon:function(e,n){return{u_is_size_zoom_constant:new t.Uniform1i(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,n.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,n.u_size_t),u_size:new t.Uniform1f(e,n.u_size),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,n.u_pitch),u_rotate_symbol:new t.Uniform1i(e,n.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,n.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,n.u_fade_change),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,n.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,n.u_coord_matrix),u_is_text:new t.Uniform1i(e,n.u_is_text),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_texsize:new t.Uniform2f(e,n.u_texsize),u_texture:new t.Uniform1i(e,n.u_texture)}},symbolSDF:function(e,n){return{u_is_size_zoom_constant:new t.Uniform1i(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,n.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,n.u_size_t),u_size:new t.Uniform1f(e,n.u_size),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,n.u_pitch),u_rotate_symbol:new t.Uniform1i(e,n.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,n.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,n.u_fade_change),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,n.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,n.u_coord_matrix),u_is_text:new t.Uniform1i(e,n.u_is_text),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_texsize:new t.Uniform2f(e,n.u_texsize),u_texture:new t.Uniform1i(e,n.u_texture),u_gamma_scale:new t.Uniform1f(e,n.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,n.u_is_halo)}},symbolTextAndIcon:function(e,n){return{u_is_size_zoom_constant:new t.Uniform1i(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,n.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,n.u_size_t),u_size:new t.Uniform1f(e,n.u_size),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,n.u_pitch),u_rotate_symbol:new t.Uniform1i(e,n.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,n.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,n.u_fade_change),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,n.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,n.u_coord_matrix),u_is_text:new t.Uniform1i(e,n.u_is_text),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_texsize:new t.Uniform2f(e,n.u_texsize),u_texsize_icon:new t.Uniform2f(e,n.u_texsize_icon),u_texture:new t.Uniform1i(e,n.u_texture),u_texture_icon:new t.Uniform1i(e,n.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,n.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,n.u_is_halo)}},background:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_opacity:new t.Uniform1f(e,n.u_opacity),u_color:new t.UniformColor(e,n.u_color)}},backgroundPattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_opacity:new t.Uniform1f(e,n.u_opacity),u_image:new t.Uniform1i(e,n.u_image),u_pattern_tl_a:new t.Uniform2f(e,n.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,n.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,n.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,n.u_pattern_br_b),u_texsize:new t.Uniform2f(e,n.u_texsize),u_mix:new t.Uniform1f(e,n.u_mix),u_pattern_size_a:new t.Uniform2f(e,n.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,n.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,n.u_scale_a),u_scale_b:new t.Uniform1f(e,n.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,n.u_tile_units_to_pixels)}}};function Kn(e,n,r,i,o,a,s){for(var u=e.context,l=u.gl,c=e.useProgram("collisionBox"),h=[],f=0,d=0,p=0;p<i.length;p++){var g=i[p],v=n.getTile(g),m=v.getBucket(r);if(m){var y=g.posMatrix;0===o[0]&&0===o[1]||(y=e.translatePosMatrix(g.posMatrix,v,o,a));var b=s?m.textCollisionBox:m.iconCollisionBox,_=m.collisionCircleArray;if(_.length>0){var x=t.create(),w=y;t.mul(x,m.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(x,x,m.placementViewportMatrix),h.push({circleArray:_,circleOffset:d,transform:w,invTransform:x}),d=f+=_.length/4}b&&c.draw(u,l.LINES,Ct.disabled,Et.disabled,e.colorModeForRenderPass(),At.disabled,jn(y,e.transform,v),r.id,b.layoutVertexBuffer,b.indexBuffer,b.segments,null,e.transform.zoom,null,null,b.collisionVertexBuffer)}}if(s&&h.length){var O=e.useProgram("collisionCircle"),S=new t.StructArrayLayout2f1f2i16;S.resize(4*f),S._trim();for(var C=0,E=0,T=h;E<T.length;E+=1)for(var A=T[E],M=0;M<A.circleArray.length/4;M++){var I=4*M,j=A.circleArray[I+0],k=A.circleArray[I+1],P=A.circleArray[I+2],L=A.circleArray[I+3];S.emplace(C++,j,k,P,L,0),S.emplace(C++,j,k,P,L,1),S.emplace(C++,j,k,P,L,2),S.emplace(C++,j,k,P,L,3)}(!Hn||Hn.length<2*f)&&(Hn=function(e){var n=2*e,r=new t.StructArrayLayout3ui6;r.resize(n),r._trim();for(var i=0;i<n;i++){var o=6*i;r.uint16[o+0]=4*i+0,r.uint16[o+1]=4*i+1,r.uint16[o+2]=4*i+2,r.uint16[o+3]=4*i+2,r.uint16[o+4]=4*i+3,r.uint16[o+5]=4*i+0}return r}(f));for(var R=u.createIndexBuffer(Hn,!0),D=u.createVertexBuffer(S,t.collisionCircleLayout.members,!0),N=0,B=h;N<B.length;N+=1){var F=B[N],z=kn(F.transform,F.invTransform,e.transform);O.draw(u,l.TRIANGLES,Ct.disabled,Et.disabled,e.colorModeForRenderPass(),At.disabled,z,r.id,D,R,t.SegmentVector.simpleSegment(0,2*F.circleOffset,F.circleArray.length,F.circleArray.length/2),null,e.transform.zoom,null,null,null)}D.destroy(),R.destroy()}}var Qn=t.identity(new Float32Array(16));function Jn(e,n,r,i,o,a){var s=t.getAnchorAlignment(e),u=-(s.horizontalAlign-.5)*n,l=-(s.verticalAlign-.5)*r,c=t.evaluateVariableOffset(e,i);return new t.Point((u/o+c[0])*a,(l/o+c[1])*a)}function tr(e,n,r,i,o,a,s,u,l,c,h){var f=e.text.placedSymbolArray,d=e.text.dynamicLayoutVertexArray,p=e.icon.dynamicLayoutVertexArray,g={};d.clear();for(var v=0;v<f.length;v++){var m=f.get(v),y=m.hidden||!m.crossTileID||e.allowVerticalPlacement&&!m.placedOrientation?null:i[m.crossTileID];if(y){var b=new t.Point(m.anchorX,m.anchorY),_=Jt(b,r?u:s),x=te(a.cameraToCenterDistance,_.signedDistanceFromCamera),w=o.evaluateSizeForFeature(e.textSizeData,c,m)*x/t.ONE_EM;r&&(w*=e.tilePixelRatio/l);for(var O=Jn(y.anchor,y.width,y.height,y.textOffset,y.textBoxScale,w),S=r?Jt(b.add(O),s).point:_.point.add(n?O.rotate(-a.angle):O),C=e.allowVerticalPlacement&&m.placedOrientation===t.WritingMode.vertical?Math.PI/2:0,E=0;E<m.numGlyphs;E++)t.addDynamicAttributes(d,S,C);h&&m.associatedIconIndex>=0&&(g[m.associatedIconIndex]={shiftedAnchor:S,angle:C})}else le(m.numGlyphs,d)}if(h){p.clear();for(var T=e.icon.placedSymbolArray,A=0;A<T.length;A++){var M=T.get(A);if(M.hidden)le(M.numGlyphs,p);else{var I=g[A];if(I)for(var j=0;j<M.numGlyphs;j++)t.addDynamicAttributes(p,I.shiftedAnchor,I.angle);else le(M.numGlyphs,p)}}e.icon.dynamicLayoutVertexBuffer.updateData(p)}e.text.dynamicLayoutVertexBuffer.updateData(d)}function er(t,e,n){return n.iconsInText&&e?"symbolTextAndIcon":t?"symbolSDF":"symbolIcon"}function nr(e,n,r,i,o,a,s,u,l,c,h,f){for(var d=e.context,p=d.gl,g=e.transform,v="map"===u,m="map"===l,y=v&&"point"!==r.layout.get("symbol-placement"),b=v&&!m&&!y,_=void 0!==r.layout.get("symbol-sort-key").constantOr(1),x=!1,w=e.depthModeForSublayer(0,Ct.ReadOnly),O=r.layout.get("text-variable-anchor"),S=[],C=0,E=i;C<E.length;C+=1){var T=E[C],A=n.getTile(T),M=A.getBucket(r);if(M){var I=o?M.text:M.icon;if(I&&I.segments.get().length){var j=I.programConfigurations.get(r.id),k=o||M.sdfIcons,P=o?M.textSizeData:M.iconSizeData,L=m||0!==g.pitch,R=e.useProgram(er(k,o,M),j),D=t.evaluateSizeForZoom(P,g.zoom),N=void 0,B=[0,0],F=void 0,z=void 0,V=null,U=void 0;if(o)F=A.glyphAtlasTexture,z=p.LINEAR,N=A.glyphAtlasTexture.size,M.iconsInText&&(B=A.imageAtlasTexture.size,V=A.imageAtlasTexture,U=L||e.options.rotating||e.options.zooming||"composite"===P.kind||"camera"===P.kind?p.LINEAR:p.NEAREST);else{var G=1!==r.layout.get("icon-size").constantOr(0)||M.iconsNeedLinear;F=A.imageAtlasTexture,z=k||e.options.rotating||e.options.zooming||G||L?p.LINEAR:p.NEAREST,N=A.imageAtlasTexture.size}var H=fe(A,1,e.transform.zoom),W=Kt(T.posMatrix,m,v,e.transform,H),Y=Qt(T.posMatrix,m,v,e.transform,H),X=O&&M.hasTextData(),$="none"!==r.layout.get("icon-text-fit")&&X&&M.hasIconData();y&&ne(M,T.posMatrix,e,o,W,Y,m,c);var q=e.translatePosMatrix(T.posMatrix,A,a,s),Z=y||o&&O||$?Qn:W,K=e.translatePosMatrix(Y,A,a,s,!0),Q=k&&0!==r.paint.get(o?"text-halo-width":"icon-halo-width").constantOr(1),J={program:R,buffers:I,uniformValues:k?M.iconsInText?Xn(P.kind,D,b,m,e,q,Z,K,N,B):Yn(P.kind,D,b,m,e,q,Z,K,o,N,!0):Wn(P.kind,D,b,m,e,q,Z,K,o,N),atlasTexture:F,atlasTextureIcon:V,atlasInterpolation:z,atlasInterpolationIcon:U,isSDF:k,hasHalo:Q};if(_&&M.canOverlap){x=!0;for(var tt=0,et=I.segments.get();tt<et.length;tt+=1){var nt=et[tt];S.push({segments:new t.SegmentVector([nt]),sortKey:nt.sortKey,state:J})}}else S.push({segments:I.segments,sortKey:0,state:J})}}}x&&S.sort((function(t,e){return t.sortKey-e.sortKey}));for(var rt=0,it=S;rt<it.length;rt+=1){var ot=it[rt],at=ot.state;if(d.activeTexture.set(p.TEXTURE0),at.atlasTexture.bind(at.atlasInterpolation,p.CLAMP_TO_EDGE),at.atlasTextureIcon&&(d.activeTexture.set(p.TEXTURE1),at.atlasTextureIcon&&at.atlasTextureIcon.bind(at.atlasInterpolationIcon,p.CLAMP_TO_EDGE)),at.isSDF){var st=at.uniformValues;at.hasHalo&&(st.u_is_halo=1,rr(at.buffers,ot.segments,r,e,at.program,w,h,f,st)),st.u_is_halo=0}rr(at.buffers,ot.segments,r,e,at.program,w,h,f,at.uniformValues)}}function rr(t,e,n,r,i,o,a,s,u){var l=r.context;i.draw(l,l.gl.TRIANGLES,o,a,s,At.disabled,u,n.id,t.layoutVertexBuffer,t.indexBuffer,e,n.paint,r.transform.zoom,t.programConfigurations.get(n.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function ir(t,e,n,r,i,o,a){var s,u,l,c,h,f=t.context.gl,d=n.paint.get("fill-pattern"),p=d&&d.constantOr(1),g=n.getCrossfadeParameters();a?(u=p&&!n.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",s=f.LINES):(u=p?"fillPattern":"fill",s=f.TRIANGLES);for(var v=0,m=r;v<m.length;v+=1){var y=m[v],b=e.getTile(y);if(!p||b.patternsLoaded()){var _=b.getBucket(n);if(_){var x=_.programConfigurations.get(n.id),w=t.useProgram(u,x);p&&(t.context.activeTexture.set(f.TEXTURE0),b.imageAtlasTexture.bind(f.LINEAR,f.CLAMP_TO_EDGE),x.updatePaintBuffers(g));var O=d.constantOr(null);if(O&&b.imageAtlas){var S=b.imageAtlas,C=S.patternPositions[O.to.toString()],E=S.patternPositions[O.from.toString()];C&&E&&x.setConstantPatternPositions(C,E)}var T=t.translatePosMatrix(y.posMatrix,b,n.paint.get("fill-translate"),n.paint.get("fill-translate-anchor"));if(a){c=_.indexBuffer2,h=_.segments2;var A=[f.drawingBufferWidth,f.drawingBufferHeight];l="fillOutlinePattern"===u&&p?Mn(T,t,g,b,A):An(T,A)}else c=_.indexBuffer,h=_.segments,l=p?Tn(T,t,g,b):En(T);w.draw(t.context,s,i,t.stencilModeForClipping(y),o,At.disabled,l,n.id,_.layoutVertexBuffer,c,h,n.paint,t.transform.zoom,x)}}}}function or(t,e,n,r,i,o,a){for(var s=t.context,u=s.gl,l=n.paint.get("fill-extrusion-pattern"),c=l.constantOr(1),h=n.getCrossfadeParameters(),f=n.paint.get("fill-extrusion-opacity"),d=0,p=r;d<p.length;d+=1){var g=p[d],v=e.getTile(g),m=v.getBucket(n);if(m){var y=m.programConfigurations.get(n.id),b=t.useProgram(c?"fillExtrusionPattern":"fillExtrusion",y);c&&(t.context.activeTexture.set(u.TEXTURE0),v.imageAtlasTexture.bind(u.LINEAR,u.CLAMP_TO_EDGE),y.updatePaintBuffers(h));var _=l.constantOr(null);if(_&&v.imageAtlas){var x=v.imageAtlas,w=x.patternPositions[_.to.toString()],O=x.patternPositions[_.from.toString()];w&&O&&y.setConstantPatternPositions(w,O)}var S=t.translatePosMatrix(g.posMatrix,v,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),C=n.paint.get("fill-extrusion-vertical-gradient"),E=c?Cn(S,t,C,f,g,h,v):Sn(S,t,C,f);b.draw(s,s.gl.TRIANGLES,i,o,a,At.backCCW,E,n.id,m.layoutVertexBuffer,m.indexBuffer,m.segments,n.paint,t.transform.zoom,y)}}}function ar(e,n,r,i,o,a){var s=e.context,u=s.gl,l=n.fbo;if(l){var c=e.useProgram("hillshade");s.activeTexture.set(u.TEXTURE0),u.bindTexture(u.TEXTURE_2D,l.colorAttachment.get());var h=function(e,n,r){var i=r.paint.get("hillshade-shadow-color"),o=r.paint.get("hillshade-highlight-color"),a=r.paint.get("hillshade-accent-color"),s=r.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===r.paint.get("hillshade-illumination-anchor")&&(s-=e.transform.angle);var u,l,c,h=!e.options.moving;return{u_matrix:e.transform.calculatePosMatrix(n.tileID.toUnwrapped(),h),u_image:0,u_latrange:(u=n.tileID,l=Math.pow(2,u.canonical.z),c=u.canonical.y,[new t.MercatorCoordinate(0,c/l).toLngLat().lat,new t.MercatorCoordinate(0,(c+1)/l).toLngLat().lat]),u_light:[r.paint.get("hillshade-exaggeration"),s],u_shadow:i,u_highlight:o,u_accent:a}}(e,n,r);c.draw(s,u.TRIANGLES,i,o,a,At.disabled,h,r.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}}function sr(e,n,r,i,o,a){var s=e.context,u=s.gl,l=n.dem;if(l&&l.data){var c=l.dim,h=l.stride,f=l.getPixels();if(s.activeTexture.set(u.TEXTURE1),s.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||e.getTileTexture(h),n.demTexture){var d=n.demTexture;d.update(f,{premultiply:!1}),d.bind(u.NEAREST,u.CLAMP_TO_EDGE)}else n.demTexture=new t.Texture(s,f,u.RGBA,{premultiply:!1}),n.demTexture.bind(u.NEAREST,u.CLAMP_TO_EDGE);s.activeTexture.set(u.TEXTURE0);var p=n.fbo;if(!p){var g=new t.Texture(s,{width:c,height:c,data:null},u.RGBA);g.bind(u.LINEAR,u.CLAMP_TO_EDGE),(p=n.fbo=s.createFramebuffer(c,c,!0)).colorAttachment.set(g.texture)}s.bindFramebuffer.set(p.framebuffer),s.viewport.set([0,0,c,c]),e.useProgram("hillshadePrepare").draw(s,u.TRIANGLES,i,o,a,At.disabled,function(e,n){var r=n.stride,i=t.create();return t.ortho(i,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(i,i,[0,-t.EXTENT,0]),{u_matrix:i,u_image:1,u_dimension:[r,r],u_zoom:e.overscaledZ,u_unpack:n.getUnpackVector()}}(n.tileID,l),r.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),n.needsHillshadePrepare=!1}}function ur(e,n,r,i,o){var a=i.paint.get("raster-fade-duration");if(a>0){var s=t.browser.now(),u=(s-e.timeAdded)/a,l=n?(s-n.timeAdded)/a:-1,c=r.getSource(),h=o.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),f=!n||Math.abs(n.tileID.overscaledZ-h)>Math.abs(e.tileID.overscaledZ-h),d=f&&e.refreshedUponExpiration?1:t.clamp(f?u:1-l,0,1);return e.refreshedUponExpiration&&u>=1&&(e.refreshedUponExpiration=!1),n?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return{opacity:1,mix:0}}var lr=new t.Color(1,0,0,1),cr=new t.Color(0,1,0,1),hr=new t.Color(0,0,1,1),fr=new t.Color(1,0,1,1),dr=new t.Color(0,1,1,1);function pr(t,e,n,r){vr(t,0,e+n/2,t.transform.width,n,r)}function gr(t,e,n,r){vr(t,e-n/2,0,n,t.transform.height,r)}function vr(e,n,r,i,o,a){var s=e.context,u=s.gl;u.enable(u.SCISSOR_TEST),u.scissor(n*t.browser.devicePixelRatio,r*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio,o*t.browser.devicePixelRatio),s.clear({color:a}),u.disable(u.SCISSOR_TEST)}function mr(e,n,r){var i=e.context,o=i.gl,a=r.posMatrix,s=e.useProgram("debug"),u=Ct.disabled,l=Et.disabled,c=e.colorModeForRenderPass();i.activeTexture.set(o.TEXTURE0),e.emptyTexture.bind(o.LINEAR,o.CLAMP_TO_EDGE),s.draw(i,o.LINE_STRIP,u,l,c,At.disabled,Pn(a,t.Color.red),"$debug",e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var h=n.getTileByID(r.key).latestRawTileData,f=Math.floor((h&&h.byteLength||0)/1024),d=n.getTile(r).tileSize,p=512/Math.min(d,512)*(r.overscaledZ/e.transform.zoom)*.5,g=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(g+=" => "+r.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var n=t.debugOverlayCanvas,r=t.context.gl,i=t.debugOverlayCanvas.getContext("2d");i.clearRect(0,0,n.width,n.height),i.shadowColor="white",i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle="white",i.textBaseline="top",i.font="bold 36px Open Sans, sans-serif",i.fillText(e,5,5),i.strokeText(e,5,5),t.debugOverlayTexture.update(n),t.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(e,g+" "+f+"kb"),s.draw(i,o.TRIANGLES,u,l,Tt.alphaBlended,At.disabled,Pn(a,t.Color.transparent,p),"$debug",e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}var yr={symbol:function(e,n,r,i,o){if("translucent"===e.renderPass){var a=Et.disabled,s=e.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(e,n,r,i,o,a,s){for(var u=n.transform,l="map"===o,c="map"===a,h=0,f=e;h<f.length;h+=1){var d=f[h],p=i.getTile(d),g=p.getBucket(r);if(g&&g.text&&g.text.segments.get().length){var v=t.evaluateSizeForZoom(g.textSizeData,u.zoom),m=fe(p,1,n.transform.zoom),y=Kt(d.posMatrix,c,l,n.transform,m),b="none"!==r.layout.get("icon-text-fit")&&g.hasIconData();if(v){var _=Math.pow(2,u.zoom-p.tileID.overscaledZ);tr(g,l,c,s,t.symbolSize,u,y,d.posMatrix,_,v,b)}}}}(i,e,r,n,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),o),0!==r.paint.get("icon-opacity").constantOr(1)&&nr(e,n,r,i,!1,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),r.layout.get("icon-rotation-alignment"),r.layout.get("icon-pitch-alignment"),r.layout.get("icon-keep-upright"),a,s),0!==r.paint.get("text-opacity").constantOr(1)&&nr(e,n,r,i,!0,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.layout.get("text-keep-upright"),a,s),n.map.showCollisionBoxes&&(Kn(e,n,r,i,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),!0),Kn(e,n,r,i,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),!1))}},circle:function(e,n,r,i){if("translucent"===e.renderPass){var o=r.paint.get("circle-opacity"),a=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),u=void 0!==r.layout.get("circle-sort-key").constantOr(1);if(0!==o.constantOr(1)||0!==a.constantOr(1)&&0!==s.constantOr(1)){for(var l=e.context,c=l.gl,h=e.depthModeForSublayer(0,Ct.ReadOnly),f=Et.disabled,d=e.colorModeForRenderPass(),p=[],g=0;g<i.length;g++){var v=i[g],m=n.getTile(v),y=m.getBucket(r);if(y){var b=y.programConfigurations.get(r.id),_={programConfiguration:b,program:e.useProgram("circle",b),layoutVertexBuffer:y.layoutVertexBuffer,indexBuffer:y.indexBuffer,uniformValues:In(e,v,m,r)};if(u)for(var x=0,w=y.segments.get();x<w.length;x+=1){var O=w[x];p.push({segments:new t.SegmentVector([O]),sortKey:O.sortKey,state:_})}else p.push({segments:y.segments,sortKey:0,state:_})}}u&&p.sort((function(t,e){return t.sortKey-e.sortKey}));for(var S=0,C=p;S<C.length;S+=1){var E=C[S],T=E.state;T.program.draw(l,c.TRIANGLES,h,f,d,At.disabled,T.uniformValues,r.id,T.layoutVertexBuffer,T.indexBuffer,E.segments,r.paint,e.transform.zoom,T.programConfiguration)}}}},heatmap:function(e,n,r,i){if(0!==r.paint.get("heatmap-opacity"))if("offscreen"===e.renderPass){var o=e.context,a=o.gl,s=Et.disabled,u=new Tt([a.ONE,a.ONE],t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,n){var r=t.gl;t.activeTexture.set(r.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var i=n.heatmapFbo;if(i)r.bindTexture(r.TEXTURE_2D,i.colorAttachment.get()),t.bindFramebuffer.set(i.framebuffer);else{var o=r.createTexture();r.bindTexture(r.TEXTURE_2D,o),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),i=n.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4,!1),function(t,e,n,r){var i=t.gl;i.texImage2D(i.TEXTURE_2D,0,i.RGBA,e.width/4,e.height/4,0,i.RGBA,t.extRenderToTextureHalfFloat?t.extTextureHalfFloat.HALF_FLOAT_OES:i.UNSIGNED_BYTE,null),r.colorAttachment.set(n)}(t,e,o,i)}}(o,e,r),o.clear({color:t.Color.transparent});for(var l=0;l<i.length;l++){var c=i[l];if(!n.hasRenderableParent(c)){var h=n.getTile(c),f=h.getBucket(r);if(f){var d=f.programConfigurations.get(r.id);e.useProgram("heatmap",d).draw(o,a.TRIANGLES,Ct.disabled,s,u,At.disabled,Rn(c.posMatrix,h,e.transform.zoom,r.paint.get("heatmap-intensity")),r.id,f.layoutVertexBuffer,f.indexBuffer,f.segments,r.paint,e.transform.zoom,d)}}}o.viewport.set([0,0,e.width,e.height])}else"translucent"===e.renderPass&&(e.context.setColorMode(e.colorModeForRenderPass()),function(e,n){var r=e.context,i=r.gl,o=n.heatmapFbo;if(o){r.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,o.colorAttachment.get()),r.activeTexture.set(i.TEXTURE1);var a=n.colorRampTexture;a||(a=n.colorRampTexture=new t.Texture(r,n.colorRamp,i.RGBA)),a.bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(r,i.TRIANGLES,Ct.disabled,Et.disabled,e.colorModeForRenderPass(),At.disabled,function(e,n,r,i){var o=t.create();t.ortho(o,0,e.width,e.height,0,0,1);var a=e.context.gl;return{u_matrix:o,u_world:[a.drawingBufferWidth,a.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:n.paint.get("heatmap-opacity")}}(e,n),n.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,n.paint,e.transform.zoom)}}(e,r))},line:function(e,n,r,i){if("translucent"===e.renderPass){var o=r.paint.get("line-opacity"),a=r.paint.get("line-width");if(0!==o.constantOr(1)&&0!==a.constantOr(1))for(var s=e.depthModeForSublayer(0,Ct.ReadOnly),u=e.colorModeForRenderPass(),l=r.paint.get("line-dasharray"),c=r.paint.get("line-pattern"),h=c.constantOr(1),f=r.paint.get("line-gradient"),d=r.getCrossfadeParameters(),p=h?"linePattern":l?"lineSDF":f?"lineGradient":"line",g=e.context,v=g.gl,m=!0,y=0,b=i;y<b.length;y+=1){var _=b[y],x=n.getTile(_);if(!h||x.patternsLoaded()){var w=x.getBucket(r);if(w){var O=w.programConfigurations.get(r.id),S=e.context.program.get(),C=e.useProgram(p,O),E=m||C.program!==S,T=c.constantOr(null);if(T&&x.imageAtlas){var A=x.imageAtlas,M=A.patternPositions[T.to.toString()],I=A.patternPositions[T.from.toString()];M&&I&&O.setConstantPatternPositions(M,I)}var j=h?Bn(e,x,r,d):l?Fn(e,x,r,l,d):f?Nn(e,x,r,w.lineClipsArray.length):Dn(e,x,r);if(h)g.activeTexture.set(v.TEXTURE0),x.imageAtlasTexture.bind(v.LINEAR,v.CLAMP_TO_EDGE),O.updatePaintBuffers(d);else if(l&&(E||e.lineAtlas.dirty))g.activeTexture.set(v.TEXTURE0),e.lineAtlas.bind(g);else if(f){var k=w.gradients[r.id],P=k.texture;if(r.gradientVersion!==k.version){var L=256;if(r.stepInterpolant){var R=n.getSource().maxzoom,D=_.canonical.z===R?Math.ceil(1<<e.transform.maxZoom-_.canonical.z):1;L=t.clamp(t.nextPowerOfTwo(w.maxLineLength/t.EXTENT*1024*D),256,g.maxTextureSize)}k.gradient=t.renderColorRamp({expression:r.gradientExpression(),evaluationKey:"lineProgress",resolution:L,image:k.gradient||void 0,clips:w.lineClipsArray}),k.texture?k.texture.update(k.gradient):k.texture=new t.Texture(g,k.gradient,v.RGBA),k.version=r.gradientVersion,P=k.texture}g.activeTexture.set(v.TEXTURE0),P.bind(r.stepInterpolant?v.NEAREST:v.LINEAR,v.CLAMP_TO_EDGE)}C.draw(g,v.TRIANGLES,s,e.stencilModeForClipping(_),u,At.disabled,j,r.id,w.layoutVertexBuffer,w.indexBuffer,w.segments,r.paint,e.transform.zoom,O,w.layoutVertexBuffer2),m=!1}}}}},fill:function(e,n,r,i){var o=r.paint.get("fill-color"),a=r.paint.get("fill-opacity");if(0!==a.constantOr(1)){var s=e.colorModeForRenderPass(),u=r.paint.get("fill-pattern"),l=e.opaquePassEnabledForLayer()&&!u.constantOr(1)&&1===o.constantOr(t.Color.transparent).a&&1===a.constantOr(0)?"opaque":"translucent";if(e.renderPass===l){var c=e.depthModeForSublayer(1,"opaque"===e.renderPass?Ct.ReadWrite:Ct.ReadOnly);ir(e,n,r,i,c,s,!1)}if("translucent"===e.renderPass&&r.paint.get("fill-antialias")){var h=e.depthModeForSublayer(r.getPaintProperty("fill-outline-color")?2:0,Ct.ReadOnly);ir(e,n,r,i,h,s,!0)}}},"fill-extrusion":function(t,e,n,r){var i=n.paint.get("fill-extrusion-opacity");if(0!==i&&"translucent"===t.renderPass){var o=new Ct(t.context.gl.LEQUAL,Ct.ReadWrite,t.depthRangeFor3D);if(1!==i||n.paint.get("fill-extrusion-pattern").constantOr(1))or(t,e,n,r,o,Et.disabled,Tt.disabled),or(t,e,n,r,o,t.stencilModeFor3D(),t.colorModeForRenderPass());else{var a=t.colorModeForRenderPass();or(t,e,n,r,o,Et.disabled,a)}}},hillshade:function(t,e,n,r){if("offscreen"===t.renderPass||"translucent"===t.renderPass){for(var i=t.context,o=t.depthModeForSublayer(0,Ct.ReadOnly),a=t.colorModeForRenderPass(),s="translucent"===t.renderPass?t.stencilConfigForOverlap(r):[{},r],u=s[0],l=0,c=s[1];l<c.length;l+=1){var h=c[l],f=e.getTile(h);f.needsHillshadePrepare&&"offscreen"===t.renderPass?sr(t,f,n,o,Et.disabled,a):"translucent"===t.renderPass&&ar(t,f,n,o,u[h.overscaledZ],a)}i.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,n,r){if("translucent"===t.renderPass&&0!==n.paint.get("raster-opacity")&&r.length)for(var i=t.context,o=i.gl,a=e.getSource(),s=t.useProgram("raster"),u=t.colorModeForRenderPass(),l=a instanceof k?[{},r]:t.stencilConfigForOverlap(r),c=l[0],h=l[1],f=h[h.length-1].overscaledZ,d=!t.options.moving,p=0,g=h;p<g.length;p+=1){var v=g[p],m=t.depthModeForSublayer(v.overscaledZ-f,1===n.paint.get("raster-opacity")?Ct.ReadWrite:Ct.ReadOnly,o.LESS),y=e.getTile(v),b=t.transform.calculatePosMatrix(v.toUnwrapped(),d);y.registerFadeDuration(n.paint.get("raster-fade-duration"));var _=e.findLoadedParent(v,0),x=ur(y,_,e,n,t.transform),w=void 0,O=void 0,S="nearest"===n.paint.get("raster-resampling")?o.NEAREST:o.LINEAR;i.activeTexture.set(o.TEXTURE0),y.texture.bind(S,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),i.activeTexture.set(o.TEXTURE1),_?(_.texture.bind(S,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,_.tileID.overscaledZ-y.tileID.overscaledZ),O=[y.tileID.canonical.x*w%1,y.tileID.canonical.y*w%1]):y.texture.bind(S,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST);var C=Un(b,O||[0,0],w||1,x,n);a instanceof k?s.draw(i,o.TRIANGLES,m,Et.disabled,u,At.disabled,C,n.id,a.boundsBuffer,t.quadTriangleIndexBuffer,a.boundsSegments):s.draw(i,o.TRIANGLES,m,c[v.overscaledZ],u,At.disabled,C,n.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}},background:function(t,e,n){var r=n.paint.get("background-color"),i=n.paint.get("background-opacity");if(0!==i){var o=t.context,a=o.gl,s=t.transform,u=s.tileSize,l=n.paint.get("background-pattern");if(!t.isPatternMissing(l)){var c=!l&&1===r.a&&1===i&&t.opaquePassEnabledForLayer()?"opaque":"translucent";if(t.renderPass===c){var h=Et.disabled,f=t.depthModeForSublayer(0,"opaque"===c?Ct.ReadWrite:Ct.ReadOnly),d=t.colorModeForRenderPass(),p=t.useProgram(l?"backgroundPattern":"background"),g=s.coveringTiles({tileSize:u});l&&(o.activeTexture.set(a.TEXTURE0),t.imageManager.bind(t.context));for(var v=n.getCrossfadeParameters(),m=0,y=g;m<y.length;m+=1){var b=y[m],_=t.transform.calculatePosMatrix(b.toUnwrapped()),x=l?qn(_,i,t,l,{tileID:b,tileSize:u},v):$n(_,i,r);p.draw(o,a.TRIANGLES,f,h,d,At.disabled,x,n.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}}}},debug:function(t,e,n){for(var r=0;r<n.length;r++)mr(t,e,n[r])},custom:function(t,e,n){var r=t.context,i=n.implementation;if("offscreen"===t.renderPass){var o=i.prerender;o&&(t.setCustomLayerDefaults(),r.setColorMode(t.colorModeForRenderPass()),o.call(i,r.gl,t.transform.customLayerMatrix()),r.setDirty(),t.setBaseState())}else if("translucent"===t.renderPass){t.setCustomLayerDefaults(),r.setColorMode(t.colorModeForRenderPass()),r.setStencilMode(Et.disabled);var a="3d"===i.renderingMode?new Ct(t.context.gl.LEQUAL,Ct.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,Ct.ReadOnly);r.setDepthMode(a),i.render(r.gl,t.transform.customLayerMatrix()),r.setDirty(),t.setBaseState(),r.bindFramebuffer.set(null)}}},br=function(t,e){this.context=new Mt(t),this.transform=e,this._tileTextures={},this.setup(),this.numSublayers=It.maxUnderzooming+It.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Be,this.gpuTimers={}};br.prototype.resize=function(e,n){if(this.width=e*t.browser.devicePixelRatio,this.height=n*t.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var r=0,i=this.style._order;r<i.length;r+=1)this.style._layers[i[r]].resize()},br.prototype.setup=function(){var e=this.context,n=new t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(t.EXTENT,0),n.emplaceBack(0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(n,He.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);var r=new t.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(t.EXTENT,0),r.emplaceBack(0,t.EXTENT),r.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(r,He.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);var i=new t.StructArrayLayout4i8;i.emplaceBack(0,0,0,0),i.emplaceBack(t.EXTENT,0,t.EXTENT,0),i.emplaceBack(0,t.EXTENT,0,t.EXTENT),i.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.rasterBoundsBuffer=e.createVertexBuffer(i,j.members),this.rasterBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);var o=new t.StructArrayLayout2i4;o.emplaceBack(0,0),o.emplaceBack(1,0),o.emplaceBack(0,1),o.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(o,He.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);var a=new t.StructArrayLayout1ui2;a.emplaceBack(0),a.emplaceBack(1),a.emplaceBack(3),a.emplaceBack(2),a.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(a);var s=new t.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s),this.emptyTexture=new t.Texture(e,{width:1,height:1,data:new Uint8Array([0,0,0,0])},e.gl.RGBA);var u=this.context.gl;this.stencilClearMode=new Et({func:u.ALWAYS,mask:0},0,255,u.ZERO,u.ZERO,u.ZERO)},br.prototype.clearStencil=function(){var e=this.context,n=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var r=t.create();t.ortho(r,0,this.width,this.height,0,0,1),t.scale(r,r,[n.drawingBufferWidth,n.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(e,n.TRIANGLES,Ct.disabled,this.stencilClearMode,Tt.disabled,At.disabled,Ln(r),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},br.prototype._renderTileClippingMasks=function(t,e){if(this.currentStencilSource!==t.source&&t.isTileClipped()&&e&&e.length){this.currentStencilSource=t.source;var n=this.context,r=n.gl;this.nextStencilID+e.length>256&&this.clearStencil(),n.setColorMode(Tt.disabled),n.setDepthMode(Ct.disabled);var i=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var o=0,a=e;o<a.length;o+=1){var s=a[o],u=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;i.draw(n,r.TRIANGLES,Ct.disabled,new Et({func:r.ALWAYS,mask:0},u,255,r.KEEP,r.KEEP,r.REPLACE),Tt.disabled,At.disabled,Ln(s.posMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},br.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new Et({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},br.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new Et({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},br.prototype.stencilConfigForOverlap=function(t){var e,n=this.context.gl,r=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),i=r[r.length-1].overscaledZ,o=r[0].overscaledZ-i+1;if(o>1){this.currentStencilSource=void 0,this.nextStencilID+o>256&&this.clearStencil();for(var a={},s=0;s<o;s++)a[s+i]=new Et({func:n.GEQUAL,mask:255},s+this.nextStencilID,255,n.KEEP,n.KEEP,n.REPLACE);return this.nextStencilID+=o,[a,r]}return[(e={},e[i]=Et.disabled,e),r]},br.prototype.colorModeForRenderPass=function(){var e=this.context.gl;return this._showOverdrawInspector?new Tt([e.CONSTANT_COLOR,e.ONE],new t.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):"opaque"===this.renderPass?Tt.unblended:Tt.alphaBlended},br.prototype.depthModeForSublayer=function(t,e,n){if(!this.opaquePassEnabledForLayer())return Ct.disabled;var r=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new Ct(n||this.context.gl.LEQUAL,e,[r,r])},br.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer<this.opaquePassCutoff},br.prototype.render=function(e,n){var r=this;this.style=e,this.options=n,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.browser.now()),this.imageManager.beginFrame();var i=this.style._order,o=this.style.sourceCaches;for(var a in o){var s=o[a];s.used&&s.prepare(this.context)}var u,l,c={},h={},f={};for(var d in o){var p=o[d];c[d]=p.getVisibleCoordinates(),h[d]=c[d].slice().reverse(),f[d]=p.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var g=0;g<i.length;g++)if(this.style._layers[i[g]].is3D()){this.opaquePassCutoff=g;break}this.renderPass="offscreen";for(var v=0,m=i;v<m.length;v+=1){var y=this.style._layers[m[v]];if(y.hasOffscreenPass()&&!y.isHidden(this.transform.zoom)){var b=h[y.source];("custom"===y.type||b.length)&&this.renderLayer(this,o[y.source],y,b)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:n.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=n.showOverdrawInspector,this.depthRangeFor3D=[0,1-(e._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass="opaque",this.currentLayer=i.length-1;this.currentLayer>=0;this.currentLayer--){var _=this.style._layers[i[this.currentLayer]],x=o[_.source],w=c[_.source];this._renderTileClippingMasks(_,w),this.renderLayer(this,x,_,w)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<i.length;this.currentLayer++){var O=this.style._layers[i[this.currentLayer]],S=o[O.source],C=("symbol"===O.type?f:h)[O.source];this._renderTileClippingMasks(O,c[O.source]),this.renderLayer(this,S,O,C)}this.options.showTileBoundaries&&(t.values(this.style._layers).forEach((function(t){t.source&&!t.isHidden(r.transform.zoom)&&(t.source!==(l&&l.id)&&(l=r.style.sourceCaches[t.source]),(!u||u.getSource().maxzoom<l.getSource().maxzoom)&&(u=l))})),u&&yr.debug(this,u,u.getVisibleCoordinates())),this.options.showPadding&&function(t){var e=t.transform.padding;pr(t,t.transform.height-(e.top||0),3,lr),pr(t,e.bottom||0,3,cr),gr(t,e.left||0,3,hr),gr(t,t.transform.width-(e.right||0),3,fr);var n=t.transform.centerPoint;!function(t,e,n,r){vr(t,e-1,n-10,2,20,r),vr(t,e-10,n-1,20,2,r)}(t,n.x,t.transform.height-n.y,dr)}(this),this.context.setDefault()},br.prototype.renderLayer=function(t,e,n,r){n.isHidden(this.transform.zoom)||("background"===n.type||"custom"===n.type||r.length)&&(this.id=n.id,this.gpuTimingStart(n),yr[n.type](t,e,n,r,this.style.placement.variableOffsets),this.gpuTimingEnd())},br.prototype.gpuTimingStart=function(t){if(this.options.gpuTiming){var e=this.context.extTimerQuery,n=this.gpuTimers[t.id];n||(n=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}),n.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,n.query)}},br.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}},br.prototype.collectGpuTimers=function(){var t=this.gpuTimers;return this.gpuTimers={},t},br.prototype.queryGpuTimers=function(t){var e={};for(var n in t){var r=t[n],i=this.context.extTimerQuery,o=i.getQueryObjectEXT(r.query,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(r.query),e[n]=o}return e},br.prototype.translatePosMatrix=function(e,n,r,i,o){if(!r[0]&&!r[1])return e;var a=o?"map"===i?this.transform.angle:0:"viewport"===i?-this.transform.angle:0;if(a){var s=Math.sin(a),u=Math.cos(a);r=[r[0]*u-r[1]*s,r[0]*s+r[1]*u]}var l=[o?r[0]:fe(n,r[0],this.transform.zoom),o?r[1]:fe(n,r[1],this.transform.zoom),0],c=new Float32Array(16);return t.translate(c,e,l),c},br.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},br.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&&e.length>0?e.pop():null},br.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),n=this.imageManager.getPattern(t.to.toString());return!e||!n},br.prototype.useProgram=function(t,e){this.cache=this.cache||{};var n=""+t+(e?e.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[n]||(this.cache[n]=new wn(this.context,t,bn[t],e,Zn[t],this._showOverdrawInspector)),this.cache[n]},br.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},br.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},br.prototype.initDebugOverlayCanvas=function(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=t.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},br.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var _r=function(t,e){this.points=t,this.planes=e};_r.fromInvProjectionMatrix=function(e,n,r){var i=Math.pow(2,r),o=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(n){return t.transformMat4([],n,e)})).map((function(e){return t.scale$1([],e,1/e[3]/n*i)})),a=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var n=t.sub([],o[e[0]],o[e[1]]),r=t.sub([],o[e[2]],o[e[1]]),i=t.normalize([],t.cross([],n,r)),a=-t.dot(i,o[e[1]]);return i.concat(a)}));return new _r(o,a)};var xr=function(e,n){this.min=e,this.max=n,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};xr.prototype.quadrant=function(e){for(var n=[e%2==0,e<2],r=t.clone$2(this.min),i=t.clone$2(this.max),o=0;o<n.length;o++)r[o]=n[o]?this.min[o]:this.center[o],i[o]=n[o]?this.center[o]:this.max[o];return i[2]=this.max[2],new xr(r,i)},xr.prototype.distanceX=function(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]},xr.prototype.distanceY=function(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]},xr.prototype.intersects=function(e){for(var n=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],r=!0,i=0;i<e.planes.length;i++){for(var o=e.planes[i],a=0,s=0;s<n.length;s++)a+=t.dot$1(o,n[s])>=0;if(0===a)return 0;a!==n.length&&(r=!1)}if(r)return 2;for(var u=0;u<3;u++){for(var l=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<e.points.length;h++){var f=e.points[h][u]-this.min[u];l=Math.min(l,f),c=Math.max(c,f)}if(c<0||l>this.max[u]-this.min[u])return 0}return 1};var wr=function(t,e,n,r){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),isNaN(t)||t<0||isNaN(e)||e<0||isNaN(n)||n<0||isNaN(r)||r<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=e,this.left=n,this.right=r};wr.prototype.interpolate=function(e,n,r){return null!=n.top&&null!=e.top&&(this.top=t.number(e.top,n.top,r)),null!=n.bottom&&null!=e.bottom&&(this.bottom=t.number(e.bottom,n.bottom,r)),null!=n.left&&null!=e.left&&(this.left=t.number(e.left,n.left,r)),null!=n.right&&null!=e.right&&(this.right=t.number(e.right,n.right,r)),this},wr.prototype.getCenter=function(e,n){var r=t.clamp((this.left+e-this.right)/2,0,e),i=t.clamp((this.top+n-this.bottom)/2,0,n);return new t.Point(r,i)},wr.prototype.equals=function(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right},wr.prototype.clone=function(){return new wr(this.top,this.bottom,this.left,this.right)},wr.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Or=function(e,n,r,i,o){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===o||o,this._minZoom=e||0,this._maxZoom=n||22,this._minPitch=null==r?0:r,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new wr,this._posMatrixCache={},this._alignedPosMatrixCache={}},Sr={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Or.prototype.clone=function(){var t=new Or(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},Sr.minZoom.get=function(){return this._minZoom},Sr.minZoom.set=function(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Sr.maxZoom.get=function(){return this._maxZoom},Sr.maxZoom.set=function(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Sr.minPitch.get=function(){return this._minPitch},Sr.minPitch.set=function(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},Sr.maxPitch.get=function(){return this._maxPitch},Sr.maxPitch.set=function(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},Sr.renderWorldCopies.get=function(){return this._renderWorldCopies},Sr.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t},Sr.worldSize.get=function(){return this.tileSize*this.scale},Sr.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Sr.size.get=function(){return new t.Point(this.width,this.height)},Sr.bearing.get=function(){return-this.angle/Math.PI*180},Sr.bearing.set=function(e){var n=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Sr.pitch.get=function(){return this._pitch/Math.PI*180},Sr.pitch.set=function(e){var n=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())},Sr.fov.get=function(){return this._fov/Math.PI*180},Sr.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Sr.zoom.get=function(){return this._zoom},Sr.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Sr.center.get=function(){return this._center},Sr.center.set=function(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Sr.padding.get=function(){return this._edgeInsets.toJSON()},Sr.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},Sr.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Or.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},Or.prototype.interpolatePadding=function(t,e,n){this._unmodified=!1,this._edgeInsets.interpolate(t,e,n),this._constrain(),this._calcMatrices()},Or.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},Or.prototype.getVisibleUnwrappedCoordinates=function(e){var n=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var r=this.pointCoordinate(new t.Point(0,0)),i=this.pointCoordinate(new t.Point(this.width,0)),o=this.pointCoordinate(new t.Point(this.width,this.height)),a=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(r.x,i.x,o.x,a.x)),u=Math.floor(Math.max(r.x,i.x,o.x,a.x)),l=s-1;l<=u+1;l++)0!==l&&n.push(new t.UnwrappedTileID(l,e));return n},Or.prototype.coveringTiles=function(e){var n=this.coveringZoomLevel(e),r=n;if(void 0!==e.minzoom&&n<e.minzoom)return[];void 0!==e.maxzoom&&n>e.maxzoom&&(n=e.maxzoom);var i=t.MercatorCoordinate.fromLngLat(this.center),o=Math.pow(2,n),a=[o*i.x,o*i.y,0],s=_r.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,n),u=e.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(u=n);var l=function(t){return{aabb:new xr([t*o,0,0],[(t+1)*o,o,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},c=[],h=[],f=n,d=e.reparseOverscaled?r:n;if(this._renderWorldCopies)for(var p=1;p<=3;p++)c.push(l(-p)),c.push(l(p));for(c.push(l(0));c.length>0;){var g=c.pop(),v=g.x,m=g.y,y=g.fullyVisible;if(!y){var b=g.aabb.intersects(s);if(0===b)continue;y=2===b}var _=g.aabb.distanceX(a),x=g.aabb.distanceY(a),w=Math.max(Math.abs(_),Math.abs(x));if(g.zoom===f||w>3+(1<<f-g.zoom)-2&&g.zoom>=u)h.push({tileID:new t.OverscaledTileID(g.zoom===f?d:g.zoom,g.wrap,g.zoom,v,m),distanceSq:t.sqrLen([a[0]-.5-v,a[1]-.5-m])});else for(var O=0;O<4;O++){var S=(v<<1)+O%2,C=(m<<1)+(O>>1);c.push({aabb:g.aabb.quadrant(O),zoom:g.zoom+1,x:S,y:C,wrap:g.wrap,fullyVisible:y})}}return h.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},Or.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Sr.unmodified.get=function(){return this._unmodified},Or.prototype.zoomScale=function(t){return Math.pow(2,t)},Or.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},Or.prototype.project=function(e){var n=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(n)*this.worldSize)},Or.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},Sr.point.get=function(){return this.project(this.center)},Or.prototype.setLocationAtPoint=function(e,n){var r=this.pointCoordinate(n),i=this.pointCoordinate(this.centerPoint),o=this.locationCoordinate(e),a=new t.MercatorCoordinate(o.x-(r.x-i.x),o.y-(r.y-i.y));this.center=this.coordinateLocation(a),this._renderWorldCopies&&(this.center=this.center.wrap())},Or.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},Or.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},Or.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},Or.prototype.coordinateLocation=function(t){return t.toLngLat()},Or.prototype.pointCoordinate=function(e){var n=[e.x,e.y,0,1],r=[e.x,e.y,1,1];t.transformMat4(n,n,this.pixelMatrixInverse),t.transformMat4(r,r,this.pixelMatrixInverse);var i=n[3],o=r[3],a=n[1]/i,s=r[1]/o,u=n[2]/i,l=r[2]/o,c=u===l?0:(0-u)/(l-u);return new t.MercatorCoordinate(t.number(n[0]/i,r[0]/o,c)/this.worldSize,t.number(a,s,c)/this.worldSize)},Or.prototype.coordinatePoint=function(e){var n=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(n,n,this.pixelMatrix),new t.Point(n[0]/n[3],n[1]/n[3])},Or.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},Or.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Or.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Or.prototype.calculatePosMatrix=function(e,n){void 0===n&&(n=!1);var r=e.key,i=n?this._alignedPosMatrixCache:this._posMatrixCache;if(i[r])return i[r];var o=e.canonical,a=this.worldSize/this.zoomScale(o.z),s=o.x+Math.pow(2,o.z)*e.wrap,u=t.identity(new Float64Array(16));return t.translate(u,u,[s*a,o.y*a,0]),t.scale(u,u,[a/t.EXTENT,a/t.EXTENT,1]),t.multiply(u,n?this.alignedProjMatrix:this.projMatrix,u),i[r]=new Float32Array(u),i[r]},Or.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Or.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var e,n,r,i,o=-90,a=90,s=-180,u=180,l=this.size,c=this._unmodified;if(this.latRange){var h=this.latRange;o=t.mercatorYfromLat(h[1])*this.worldSize,e=(a=t.mercatorYfromLat(h[0])*this.worldSize)-o<l.y?l.y/(a-o):0}if(this.lngRange){var f=this.lngRange;s=t.mercatorXfromLng(f[0])*this.worldSize,n=(u=t.mercatorXfromLng(f[1])*this.worldSize)-s<l.x?l.x/(u-s):0}var d=this.point,p=Math.max(n||0,e||0);if(p)return this.center=this.unproject(new t.Point(n?(u+s)/2:d.x,e?(a+o)/2:d.y)),this.zoom+=this.scaleZoom(p),this._unmodified=c,void(this._constraining=!1);if(this.latRange){var g=d.y,v=l.y/2;g-v<o&&(i=o+v),g+v>a&&(i=a-v)}if(this.lngRange){var m=d.x,y=l.x/2;m-y<s&&(r=s+y),m+y>u&&(r=u-y)}void 0===r&&void 0===i||(this.center=this.unproject(new t.Point(void 0!==r?r:d.x,void 0!==i?i:d.y))),this._unmodified=c,this._constraining=!1}},Or.prototype._calcMatrices=function(){if(this.height){var e=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var n=Math.PI/2+this._pitch,r=this._fov*(.5+e.y/this.height),i=Math.sin(r)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-n-r,.01,Math.PI-.01)),o=this.point,a=o.x,s=o.y,u=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),l=this.height/50,c=new Float64Array(16);t.perspective(c,this._fov,this.width/this.height,l,u),c[8]=2*-e.x/this.width,c[9]=2*e.y/this.height,t.scale(c,c,[1,-1,1]),t.translate(c,c,[0,0,-this.cameraToCenterDistance]),t.rotateX(c,c,this._pitch),t.rotateZ(c,c,this.angle),t.translate(c,c,[-a,-s,0]),this.mercatorMatrix=t.scale([],c,[this.worldSize,this.worldSize,this.worldSize]),t.scale(c,c,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=c,this.invProjMatrix=t.invert([],this.projMatrix);var h=this.width%2/2,f=this.height%2/2,d=Math.cos(this.angle),p=Math.sin(this.angle),g=a-Math.round(a)+d*h+p*f,v=s-Math.round(s)+d*f+p*h,m=new Float64Array(c);if(t.translate(m,m,[g>.5?g-1:g,v>.5?v-1:v,0]),this.alignedProjMatrix=m,c=t.create(),t.scale(c,c,[this.width/2,-this.height/2,1]),t.translate(c,c,[1,-1,0]),this.labelPlaneMatrix=c,c=t.create(),t.scale(c,c,[1,-1,1]),t.translate(c,c,[-1,-1,0]),t.scale(c,c,[2/this.width,2/this.height,1]),this.glCoordMatrix=c,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(c=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=c,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Or.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),n=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(n,n,this.pixelMatrix)[3]/this.cameraToCenterDistance},Or.prototype.getCameraPoint=function(){var e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,e))},Or.prototype.getCameraQueryGeometry=function(e){var n=this.getCameraPoint();if(1===e.length)return[e[0],n];for(var r=n.x,i=n.y,o=n.x,a=n.y,s=0,u=e;s<u.length;s+=1){var l=u[s];r=Math.min(r,l.x),i=Math.min(i,l.y),o=Math.max(o,l.x),a=Math.max(a,l.y)}return[new t.Point(r,i),new t.Point(o,i),new t.Point(o,a),new t.Point(r,a),new t.Point(r,i)]},Object.defineProperties(Or.prototype,Sr);var Cr=function(e){var n,r,i,o;this._hashName=e&&encodeURIComponent(e),t.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=(n=this._updateHashUnthrottled.bind(this),r=!1,i=null,o=function(){i=null,r&&(n(),i=setTimeout(o,300),r=!1)},function(){return r=!0,i||o(),i})};Cr.prototype.addTo=function(e){return this._map=e,t.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this},Cr.prototype.remove=function(){return t.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},Cr.prototype.getHashString=function(e){var n=this._map.getCenter(),r=Math.round(100*this._map.getZoom())/100,i=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),o=Math.pow(10,i),a=Math.round(n.lng*o)/o,s=Math.round(n.lat*o)/o,u=this._map.getBearing(),l=this._map.getPitch(),c="";if(c+=e?"/"+a+"/"+s+"/"+r:r+"/"+s+"/"+a,(u||l)&&(c+="/"+Math.round(10*u)/10),l&&(c+="/"+Math.round(l)),this._hashName){var h=this._hashName,f=!1,d=t.window.location.hash.slice(1).split("&").map((function(t){var e=t.split("=")[0];return e===h?(f=!0,e+"="+c):t})).filter((function(t){return t}));return f||d.push(h+"="+c),"#"+d.join("&")}return"#"+c},Cr.prototype._getCurrentHash=function(){var e,n=this,r=t.window.location.hash.replace("#","");return this._hashName?(r.split("&").map((function(t){return t.split("=")})).forEach((function(t){t[0]===n._hashName&&(e=t)})),(e&&e[1]||"").split("/")):r.split("/")},Cr.prototype._onHashChange=function(){var t=this._getCurrentHash();if(t.length>=3&&!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},Cr.prototype._updateHashUnthrottled=function(){var e=t.window.location.href.replace(/(#.+)?$/,this.getHashString());try{t.window.history.replaceState(t.window.history.state,null,e)}catch(t){}};var Er={linearity:.3,easing:t.bezier(0,0,.3,1)},Tr=t.extend({deceleration:2500,maxSpeed:1400},Er),Ar=t.extend({deceleration:20,maxSpeed:1400},Er),Mr=t.extend({deceleration:1e3,maxSpeed:360},Er),Ir=t.extend({deceleration:1e3,maxSpeed:90},Er),jr=function(t){this._map=t,this.clear()};function kr(t,e){(!t.duration||t.duration<e.duration)&&(t.duration=e.duration,t.easing=e.easing)}function Pr(e,n,r){var i=r.maxSpeed,o=r.linearity,a=r.deceleration,s=t.clamp(e*o/(n/1e3),-i,i),u=Math.abs(s)/(a*o);return{easing:r.easing,duration:1e3*u,amount:s*(u/2)}}jr.prototype.clear=function(){this._inertiaBuffer=[]},jr.prototype.record=function(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.browser.now(),settings:e})},jr.prototype._drainInertiaBuffer=function(){for(var e=this._inertiaBuffer,n=t.browser.now();e.length>0&&n-e[0].time>160;)e.shift()},jr.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var n={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},r=0,i=this._inertiaBuffer;r<i.length;r+=1){var o=i[r].settings;n.zoom+=o.zoomDelta||0,n.bearing+=o.bearingDelta||0,n.pitch+=o.pitchDelta||0,o.panDelta&&n.pan._add(o.panDelta),o.around&&(n.around=o.around),o.pinchAround&&(n.pinchAround=o.pinchAround)}var a=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,s={};if(n.pan.mag()){var u=Pr(n.pan.mag(),a,t.extend({},Tr,e||{}));s.offset=n.pan.mult(u.amount/n.pan.mag()),s.center=this._map.transform.center,kr(s,u)}if(n.zoom){var l=Pr(n.zoom,a,Ar);s.zoom=this._map.transform.zoom+l.amount,kr(s,l)}if(n.bearing){var c=Pr(n.bearing,a,Mr);s.bearing=this._map.transform.bearing+t.clamp(c.amount,-179,179),kr(s,c)}if(n.pitch){var h=Pr(n.pitch,a,Ir);s.pitch=this._map.transform.pitch+h.amount,kr(s,h)}if(s.zoom||s.bearing){var f=void 0===n.pinchAround?n.around:n.pinchAround;s.around=f?this._map.unproject(f):this._map.getCenter()}return this.clear(),t.extend(s,{noMoveStart:!0})}};var Lr=function(e){function r(r,i,o,a){void 0===a&&(a={});var s=n.mousePos(i.getCanvasContainer(),o),u=i.unproject(s);e.call(this,r,t.extend({point:s,lngLat:u,originalEvent:o},a)),this._defaultPrevented=!1,this.target=i}e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r;var i={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(r.prototype,i),r}(t.Event),Rr=function(e){function r(r,i,o){var a="touchend"===r?o.changedTouches:o.touches,s=n.touchPos(i.getCanvasContainer(),a),u=s.map((function(t){return i.unproject(t)})),l=s.reduce((function(t,e,n,r){return t.add(e.div(r.length))}),new t.Point(0,0)),c=i.unproject(l);e.call(this,r,{points:s,point:l,lngLats:u,lngLat:c,originalEvent:o}),this._defaultPrevented=!1}e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r;var i={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(r.prototype,i),r}(t.Event),Dr=function(t){function e(e,n,r){t.call(this,e,{originalEvent:r}),this._defaultPrevented=!1}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},n.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,n),e}(t.Event),Nr=function(t,e){this._map=t,this._clickTolerance=e.clickTolerance};Nr.prototype.reset=function(){delete this._mousedownPos},Nr.prototype.wheel=function(t){return this._firePreventable(new Dr(t.type,this._map,t))},Nr.prototype.mousedown=function(t,e){return this._mousedownPos=e,this._firePreventable(new Lr(t.type,this._map,t))},Nr.prototype.mouseup=function(t){this._map.fire(new Lr(t.type,this._map,t))},Nr.prototype.click=function(t,e){this._mousedownPos&&this._mousedownPos.dist(e)>=this._clickTolerance||this._map.fire(new Lr(t.type,this._map,t))},Nr.prototype.dblclick=function(t){return this._firePreventable(new Lr(t.type,this._map,t))},Nr.prototype.mouseover=function(t){this._map.fire(new Lr(t.type,this._map,t))},Nr.prototype.mouseout=function(t){this._map.fire(new Lr(t.type,this._map,t))},Nr.prototype.touchstart=function(t){return this._firePreventable(new Rr(t.type,this._map,t))},Nr.prototype.touchmove=function(t){this._map.fire(new Rr(t.type,this._map,t))},Nr.prototype.touchend=function(t){this._map.fire(new Rr(t.type,this._map,t))},Nr.prototype.touchcancel=function(t){this._map.fire(new Rr(t.type,this._map,t))},Nr.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},Nr.prototype.isEnabled=function(){return!0},Nr.prototype.isActive=function(){return!1},Nr.prototype.enable=function(){},Nr.prototype.disable=function(){};var Br=function(t){this._map=t};Br.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Br.prototype.mousemove=function(t){this._map.fire(new Lr(t.type,this._map,t))},Br.prototype.mousedown=function(){this._delayContextMenu=!0},Br.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Lr("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Br.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new Lr(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault()},Br.prototype.isEnabled=function(){return!0},Br.prototype.isActive=function(){return!1},Br.prototype.enable=function(){},Br.prototype.disable=function(){};var Fr=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function zr(t,e){for(var n={},r=0;r<t.length;r++)n[t[r].identifier]=e[r];return n}Fr.prototype.isEnabled=function(){return!!this._enabled},Fr.prototype.isActive=function(){return!!this._active},Fr.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Fr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Fr.prototype.mousedown=function(t,e){this.isEnabled()&&t.shiftKey&&0===t.button&&(n.disableDrag(),this._startPos=this._lastPos=e,this._active=!0)},Fr.prototype.mousemoveWindow=function(t,e){if(this._active){var r=e;if(!(this._lastPos.equals(r)||!this._box&&r.dist(this._startPos)<this._clickTolerance)){var i=this._startPos;this._lastPos=r,this._box||(this._box=n.create("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",t));var o=Math.min(i.x,r.x),a=Math.max(i.x,r.x),s=Math.min(i.y,r.y),u=Math.max(i.y,r.y);n.setTransform(this._box,"translate("+o+"px,"+s+"px)"),this._box.style.width=a-o+"px",this._box.style.height=u-s+"px"}}},Fr.prototype.mouseupWindow=function(e,r){var i=this;if(this._active&&0===e.button){var o=this._startPos,a=r;if(this.reset(),n.suppressClick(),o.x!==a.x||o.y!==a.y)return this._map.fire(new t.Event("boxzoomend",{originalEvent:e})),{cameraAnimation:function(t){return t.fitScreenCoordinates(o,a,i._map.getBearing(),{linear:!0})}};this._fireEvent("boxzoomcancel",e)}},Fr.prototype.keydown=function(t){this._active&&27===t.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",t))},Fr.prototype.blur=function(){this.reset()},Fr.prototype.reset=function(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(n.remove(this._box),this._box=null),n.enableDrag(),delete this._startPos,delete this._lastPos},Fr.prototype._fireEvent=function(e,n){return this._map.fire(new t.Event(e,{originalEvent:n}))};var Vr=function(t){this.reset(),this.numTouches=t.numTouches};Vr.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},Vr.prototype.touchstart=function(e,n,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=e.timeStamp),r.length===this.numTouches&&(this.centroid=function(e){for(var n=new t.Point(0,0),r=0,i=e;r<i.length;r+=1)n._add(i[r]);return n.div(e.length)}(n),this.touches=zr(r,n)))},Vr.prototype.touchmove=function(t,e,n){if(!this.aborted&&this.centroid){var r=zr(n,e);for(var i in this.touches){var o=r[i];(!o||o.dist(this.touches[i])>30)&&(this.aborted=!0)}}},Vr.prototype.touchend=function(t,e,n){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){var r=!this.aborted&&this.centroid;if(this.reset(),r)return r}};var Ur=function(t){this.singleTap=new Vr(t),this.numTaps=t.numTaps,this.reset()};Ur.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Ur.prototype.touchstart=function(t,e,n){this.singleTap.touchstart(t,e,n)},Ur.prototype.touchmove=function(t,e,n){this.singleTap.touchmove(t,e,n)},Ur.prototype.touchend=function(t,e,n){var r=this.singleTap.touchend(t,e,n);if(r){var i=t.timeStamp-this.lastTime<500,o=!this.lastTap||this.lastTap.dist(r)<30;if(i&&o||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}};var Gr=function(){this._zoomIn=new Ur({numTouches:1,numTaps:2}),this._zoomOut=new Ur({numTouches:2,numTaps:1}),this.reset()};Gr.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Gr.prototype.touchstart=function(t,e,n){this._zoomIn.touchstart(t,e,n),this._zoomOut.touchstart(t,e,n)},Gr.prototype.touchmove=function(t,e,n){this._zoomIn.touchmove(t,e,n),this._zoomOut.touchmove(t,e,n)},Gr.prototype.touchend=function(t,e,n){var r=this,i=this._zoomIn.touchend(t,e,n),o=this._zoomOut.touchend(t,e,n);return i?(this._active=!0,t.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(i)},{originalEvent:t})}}):o?(this._active=!0,t.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(o)},{originalEvent:t})}}):void 0},Gr.prototype.touchcancel=function(){this.reset()},Gr.prototype.enable=function(){this._enabled=!0},Gr.prototype.disable=function(){this._enabled=!1,this.reset()},Gr.prototype.isEnabled=function(){return this._enabled},Gr.prototype.isActive=function(){return this._active};var Hr={0:1,2:2},Wr=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};Wr.prototype.blur=function(){this.reset()},Wr.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Wr.prototype._correctButton=function(t,e){return!1},Wr.prototype._move=function(t,e){return{}},Wr.prototype.mousedown=function(t,e){if(!this._lastPoint){var r=n.mouseButton(t);this._correctButton(t,r)&&(this._lastPoint=e,this._eventButton=r)}},Wr.prototype.mousemoveWindow=function(t,e){var n=this._lastPoint;if(n)if(t.preventDefault(),function(t,e){var n=Hr[e];return void 0===t.buttons||(t.buttons&n)!==n}(t,this._eventButton))this.reset();else if(this._moved||!(e.dist(n)<this._clickTolerance))return this._moved=!0,this._lastPoint=e,this._move(n,e)},Wr.prototype.mouseupWindow=function(t){this._lastPoint&&n.mouseButton(t)===this._eventButton&&(this._moved&&n.suppressClick(),this.reset())},Wr.prototype.enable=function(){this._enabled=!0},Wr.prototype.disable=function(){this._enabled=!1,this.reset()},Wr.prototype.isEnabled=function(){return this._enabled},Wr.prototype.isActive=function(){return this._active};var Yr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.mousedown=function(e,n){t.prototype.mousedown.call(this,e,n),this._lastPoint&&(this._active=!0)},e.prototype._correctButton=function(t,e){return 0===e&&!t.ctrlKey},e.prototype._move=function(t,e){return{around:e,panDelta:e.sub(t)}},e}(Wr),Xr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._correctButton=function(t,e){return 0===e&&t.ctrlKey||2===e},e.prototype._move=function(t,e){var n=.8*(e.x-t.x);if(n)return this._active=!0,{bearingDelta:n}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(Wr),$r=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._correctButton=function(t,e){return 0===e&&t.ctrlKey||2===e},e.prototype._move=function(t,e){var n=-.5*(e.y-t.y);if(n)return this._active=!0,{pitchDelta:n}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(Wr),qr=function(t){this._minTouches=1,this._clickTolerance=t.clickTolerance||1,this.reset()};qr.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new t.Point(0,0)},qr.prototype.touchstart=function(t,e,n){return this._calculateTransform(t,e,n)},qr.prototype.touchmove=function(t,e,n){if(this._active&&!(n.length<this._minTouches))return t.preventDefault(),this._calculateTransform(t,e,n)},qr.prototype.touchend=function(t,e,n){this._calculateTransform(t,e,n),this._active&&n.length<this._minTouches&&this.reset()},qr.prototype.touchcancel=function(){this.reset()},qr.prototype._calculateTransform=function(e,n,r){r.length>0&&(this._active=!0);var i=zr(r,n),o=new t.Point(0,0),a=new t.Point(0,0),s=0;for(var u in i){var l=i[u],c=this._touches[u];c&&(o._add(l),a._add(l.sub(c)),s++,i[u]=l)}if(this._touches=i,!(s<this._minTouches)&&a.mag()){var h=a.div(s);if(this._sum._add(h),!(this._sum.mag()<this._clickTolerance))return{around:o.div(s),panDelta:h}}},qr.prototype.enable=function(){this._enabled=!0},qr.prototype.disable=function(){this._enabled=!1,this.reset()},qr.prototype.isEnabled=function(){return this._enabled},qr.prototype.isActive=function(){return this._active};var Zr=function(){this.reset()};function Kr(t,e,n){for(var r=0;r<t.length;r++)if(t[r].identifier===n)return e[r]}function Qr(t,e){return Math.log(t/e)/Math.LN2}Zr.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},Zr.prototype._start=function(t){},Zr.prototype._move=function(t,e,n){return{}},Zr.prototype.touchstart=function(t,e,n){this._firstTwoTouches||n.length<2||(this._firstTwoTouches=[n[0].identifier,n[1].identifier],this._start([e[0],e[1]]))},Zr.prototype.touchmove=function(t,e,n){if(this._firstTwoTouches){t.preventDefault();var r=this._firstTwoTouches,i=r[1],o=Kr(n,e,r[0]),a=Kr(n,e,i);if(o&&a){var s=this._aroundCenter?null:o.add(a).div(2);return this._move([o,a],s,t)}}},Zr.prototype.touchend=function(t,e,r){if(this._firstTwoTouches){var i=this._firstTwoTouches,o=i[1],a=Kr(r,e,i[0]),s=Kr(r,e,o);a&&s||(this._active&&n.suppressClick(),this.reset())}},Zr.prototype.touchcancel=function(){this.reset()},Zr.prototype.enable=function(t){this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around},Zr.prototype.disable=function(){this._enabled=!1,this.reset()},Zr.prototype.isEnabled=function(){return this._enabled},Zr.prototype.isActive=function(){return this._active};var Jr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._distance,delete this._startDistance},e.prototype._start=function(t){this._startDistance=this._distance=t[0].dist(t[1])},e.prototype._move=function(t,e){var n=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs(Qr(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:Qr(this._distance,n),pinchAround:e}},e}(Zr);function ti(t,e){return 180*t.angleWith(e)/Math.PI}var ei=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._minDiameter,delete this._startVector,delete this._vector},e.prototype._start=function(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])},e.prototype._move=function(t,e){var n=this._vector;if(this._vector=t[0].sub(t[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:ti(this._vector,n),pinchAround:e}},e.prototype._isBelowThreshold=function(t){this._minDiameter=Math.min(this._minDiameter,t.mag());var e=25/(Math.PI*this._minDiameter)*360,n=ti(t,this._startVector);return Math.abs(n)<e},e}(Zr);function ni(t){return Math.abs(t.y)>Math.abs(t.x)}var ri=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},e.prototype._start=function(t){this._lastPoints=t,ni(t[0].sub(t[1]))&&(this._valid=!1)},e.prototype._move=function(t,e,n){var r=t[0].sub(this._lastPoints[0]),i=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(r,i,n.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:(r.y+i.y)/2*-.5}},e.prototype.gestureBeginsVertically=function(t,e,n){if(void 0!==this._valid)return this._valid;var r=t.mag()>=2,i=e.mag()>=2;if(r||i){if(!r||!i)return void 0===this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;var o=t.y>0==e.y>0;return ni(t)&&ni(e)&&o}},e}(Zr),ii={panStep:100,bearingStep:15,pitchStep:10},oi=function(){var t=ii;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep,this._rotationDisabled=!1};function ai(t){return t*(2-t)}oi.prototype.blur=function(){this.reset()},oi.prototype.reset=function(){this._active=!1},oi.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var n=0,r=0,i=0,o=0,a=0;switch(t.keyCode){case 61:case 107:case 171:case 187:n=1;break;case 189:case 109:case 173:n=-1;break;case 37:t.shiftKey?r=-1:(t.preventDefault(),o=-1);break;case 39:t.shiftKey?r=1:(t.preventDefault(),o=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),a=-1);break;case 40:t.shiftKey?i=-1:(t.preventDefault(),a=1);break;default:return}return this._rotationDisabled&&(r=0,i=0),{cameraAnimation:function(s){var u=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:ai,zoom:n?Math.round(u)+n*(t.shiftKey?2:1):u,bearing:s.getBearing()+r*e._bearingStep,pitch:s.getPitch()+i*e._pitchStep,offset:[-o*e._panStep,-a*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},oi.prototype.enable=function(){this._enabled=!0},oi.prototype.disable=function(){this._enabled=!1,this.reset()},oi.prototype.isEnabled=function(){return this._enabled},oi.prototype.isActive=function(){return this._active},oi.prototype.disableRotation=function(){this._rotationDisabled=!0},oi.prototype.enableRotation=function(){this._rotationDisabled=!1};var si=function(e,n){this._map=e,this._el=e.getCanvasContainer(),this._handler=n,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,t.bindAll(["_onTimeout"],this)};si.prototype.setZoomRate=function(t){this._defaultZoomRate=t},si.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},si.prototype.isEnabled=function(){return!!this._enabled},si.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},si.prototype.isZooming=function(){return!!this._zooming},si.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&&"center"===t.around)},si.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},si.prototype.wheel=function(e){if(this.isEnabled()){var n=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,r=t.browser.now(),i=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==n&&n%4.000244140625==0?this._type="wheel":0!==n&&Math.abs(n)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),e.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=e,this._delta-=n,this._active||this._start(e)),e.preventDefault()}},si.prototype._onTimeout=function(t){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(t)},si.prototype._start=function(e){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var r=n.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(r)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},si.prototype.renderFrame=function(){var e=this;if(this._frameId&&(this._frameId=null,this.isActive())){var n=this._map.transform;if(0!==this._delta){var r="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,i=2/(1+Math.exp(-Math.abs(this._delta*r)));this._delta<0&&0!==i&&(i=1/i);var o="number"==typeof this._targetZoom?n.zoomScale(this._targetZoom):n.scale;this._targetZoom=Math.min(n.maxZoom,Math.max(n.minZoom,n.scaleZoom(o*i))),"wheel"===this._type&&(this._startZoom=n.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var a,s="number"==typeof this._targetZoom?this._targetZoom:n.zoom,u=this._startZoom,l=this._easing,c=!1;if("wheel"===this._type&&u&&l){var h=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),f=l(h);a=t.number(u,s,f),h<1?this._frameId||(this._frameId=!0):c=!0}else a=s,c=!0;return this._active=!0,c&&(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!c,zoomDelta:a-n.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},si.prototype._smoothOutEasing=function(e){var n=t.ease;if(this._prevEase){var r=this._prevEase,i=(t.browser.now()-r.start)/r.duration,o=r.easing(i+.01)-r.easing(i),a=.27/Math.sqrt(o*o+1e-4)*.01,s=Math.sqrt(.0729-a*a);n=t.bezier(a,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:n},n},si.prototype.blur=function(){this.reset()},si.prototype.reset=function(){this._active=!1};var ui=function(t,e){this._clickZoom=t,this._tapZoom=e};ui.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},ui.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},ui.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},ui.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var li=function(){this.reset()};li.prototype.reset=function(){this._active=!1},li.prototype.blur=function(){this.reset()},li.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(n){n.easeTo({duration:300,zoom:n.getZoom()+(t.shiftKey?-1:1),around:n.unproject(e)},{originalEvent:t})}}},li.prototype.enable=function(){this._enabled=!0},li.prototype.disable=function(){this._enabled=!1,this.reset()},li.prototype.isEnabled=function(){return this._enabled},li.prototype.isActive=function(){return this._active};var ci=function(){this._tap=new Ur({numTouches:1,numTaps:1}),this.reset()};ci.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},ci.prototype.touchstart=function(t,e,n){this._swipePoint||(this._tapTime&&t.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?n.length>0&&(this._swipePoint=e[0],this._swipeTouch=n[0].identifier):this._tap.touchstart(t,e,n))},ci.prototype.touchmove=function(t,e,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;var r=e[0],i=r.y-this._swipePoint.y;return this._swipePoint=r,t.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(t,e,n)},ci.prototype.touchend=function(t,e,n){this._tapTime?this._swipePoint&&0===n.length&&this.reset():this._tap.touchend(t,e,n)&&(this._tapTime=t.timeStamp)},ci.prototype.touchcancel=function(){this.reset()},ci.prototype.enable=function(){this._enabled=!0},ci.prototype.disable=function(){this._enabled=!1,this.reset()},ci.prototype.isEnabled=function(){return this._enabled},ci.prototype.isActive=function(){return this._active};var hi=function(t,e,n){this._el=t,this._mousePan=e,this._touchPan=n};hi.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},hi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},hi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},hi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var fi=function(t,e,n){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=n};fi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},fi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},fi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},fi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var di=function(t,e,n,r){this._el=t,this._touchZoom=e,this._touchRotate=n,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0};di.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},di.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},di.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},di.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},di.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},di.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var pi=function(t){return t.zoom||t.drag||t.pitch||t.rotate},gi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(t.Event);function vi(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var mi=function(e,r){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new jr(e),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r),t.bindAll(["handleEvent","handleWindowEvent"],this);var i=this._el;this._listeners=[[i,"touchstart",{passive:!0}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[t.window.document,"mousemove",{capture:!0}],[t.window.document,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[t.window,"blur",void 0]];for(var o=0,a=this._listeners;o<a.length;o+=1){var s=a[o],u=s[0];n.addEventListener(u,s[1],u===t.window.document?this.handleWindowEvent:this.handleEvent,s[2])}};mi.prototype.destroy=function(){for(var e=0,r=this._listeners;e<r.length;e+=1){var i=r[e],o=i[0];n.removeEventListener(o,i[1],o===t.window.document?this.handleWindowEvent:this.handleEvent,i[2])}},mi.prototype._addDefaultHandlers=function(t){var e=this._map,n=e.getCanvasContainer();this._add("mapEvent",new Nr(e,t));var r=e.boxZoom=new Fr(e,t);this._add("boxZoom",r);var i=new Gr,o=new li;e.doubleClickZoom=new ui(o,i),this._add("tapZoom",i),this._add("clickZoom",o);var a=new ci;this._add("tapDragZoom",a);var s=e.touchPitch=new ri;this._add("touchPitch",s);var u=new Xr(t),l=new $r(t);e.dragRotate=new fi(t,u,l),this._add("mouseRotate",u,["mousePitch"]),this._add("mousePitch",l,["mouseRotate"]);var c=new Yr(t),h=new qr(t);e.dragPan=new hi(n,c,h),this._add("mousePan",c),this._add("touchPan",h,["touchZoom","touchRotate"]);var f=new ei,d=new Jr;e.touchZoomRotate=new di(n,d,f,a),this._add("touchRotate",f,["touchPan","touchZoom"]),this._add("touchZoom",d,["touchPan","touchRotate"]);var p=e.scrollZoom=new si(e,this);this._add("scrollZoom",p,["mousePan"]);var g=e.keyboard=new oi;this._add("keyboard",g),this._add("blockableMapEvent",new Br(e));for(var v=0,m=["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"];v<m.length;v+=1){var y=m[v];t.interactive&&t[y]&&e[y].enable(t[y])}},mi.prototype._add=function(t,e,n){this._handlers.push({handlerName:t,handler:e,allowed:n}),this._handlersById[t]=e},mi.prototype.stop=function(t){if(!this._updatingCamera){for(var e=0,n=this._handlers;e<n.length;e+=1)n[e].handler.reset();this._inertia.clear(),this._fireEvents({},{},t),this._changes=[]}},mi.prototype.isActive=function(){for(var t=0,e=this._handlers;t<e.length;t+=1)if(e[t].handler.isActive())return!0;return!1},mi.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},mi.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},mi.prototype.isMoving=function(){return Boolean(pi(this._eventsInProgress))||this.isZooming()},mi.prototype._blockedByActive=function(t,e,n){for(var r in t)if(r!==n&&(!e||e.indexOf(r)<0))return!0;return!1},mi.prototype.handleWindowEvent=function(t){this.handleEvent(t,t.type+"Window")},mi.prototype._getMapTouches=function(t){for(var e=[],n=0,r=t;n<r.length;n+=1){var i=r[n];this._el.contains(i.target)&&e.push(i)}return e},mi.prototype.handleEvent=function(t,e){this._updatingCamera=!0;for(var r="renderFrame"===t.type?void 0:t,i={needsRenderFrame:!1},o={},a={},s=t.touches?this._getMapTouches(t.touches):void 0,u=s?n.touchPos(this._el,s):n.mousePos(this._el,t),l=0,c=this._handlers;l<c.length;l+=1){var h=c[l],f=h.handlerName,d=h.handler,p=h.allowed;if(d.isEnabled()){var g=void 0;this._blockedByActive(a,p,f)?d.reset():d[e||t.type]&&(g=d[e||t.type](t,u,s),this.mergeHandlerResult(i,o,g,f,r),g&&g.needsRenderFrame&&this._triggerRenderFrame()),(g||d.isActive())&&(a[f]=d)}}var v={};for(var m in this._previousActiveHandlers)a[m]||(v[m]=r);this._previousActiveHandlers=a,(Object.keys(v).length||vi(i))&&(this._changes.push([i,o,v]),this._triggerRenderFrame()),(Object.keys(a).length||vi(i))&&this._map._stop(!0),this._updatingCamera=!1;var y=i.cameraAnimation;y&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],y(this._map))},mi.prototype.mergeHandlerResult=function(e,n,r,i,o){if(r){t.extend(e,r);var a={handlerName:i,originalEvent:r.originalEvent||o};void 0!==r.zoomDelta&&(n.zoom=a),void 0!==r.panDelta&&(n.drag=a),void 0!==r.pitchDelta&&(n.pitch=a),void 0!==r.bearingDelta&&(n.rotate=a)}},mi.prototype._applyChanges=function(){for(var e={},n={},r={},i=0,o=this._changes;i<o.length;i+=1){var a=o[i],s=a[0],u=a[1],l=a[2];s.panDelta&&(e.panDelta=(e.panDelta||new t.Point(0,0))._add(s.panDelta)),s.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+s.zoomDelta),s.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+s.bearingDelta),s.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+s.pitchDelta),void 0!==s.around&&(e.around=s.around),void 0!==s.pinchAround&&(e.pinchAround=s.pinchAround),s.noInertia&&(e.noInertia=s.noInertia),t.extend(n,u),t.extend(r,l)}this._updateMapTransform(e,n,r),this._changes=[]},mi.prototype._updateMapTransform=function(t,e,n){var r=this._map,i=r.transform;if(!vi(t))return this._fireEvents(e,n,!0);var o=t.panDelta,a=t.zoomDelta,s=t.bearingDelta,u=t.pitchDelta,l=t.around,c=t.pinchAround;void 0!==c&&(l=c),r._stop(!0),l=l||r.transform.centerPoint;var h=i.pointLocation(o?l.sub(o):l);s&&(i.bearing+=s),u&&(i.pitch+=u),a&&(i.zoom+=a),i.setLocationAtPoint(h,l),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(e,n,!0)},mi.prototype._fireEvents=function(e,n,r){var i=this,o=pi(this._eventsInProgress),a=pi(e),s={};for(var u in e)this._eventsInProgress[u]||(s[u+"start"]=e[u].originalEvent),this._eventsInProgress[u]=e[u];for(var l in!o&&a&&this._fireEvent("movestart",a.originalEvent),s)this._fireEvent(l,s[l]);for(var c in a&&this._fireEvent("move",a.originalEvent),e)this._fireEvent(c,e[c].originalEvent);var h,f={};for(var d in this._eventsInProgress){var p=this._eventsInProgress[d],g=p.handlerName,v=p.originalEvent;this._handlersById[g].isActive()||(delete this._eventsInProgress[d],f[d+"end"]=h=n[g]||v)}for(var m in f)this._fireEvent(m,f[m]);var y=pi(this._eventsInProgress);if(r&&(o||a)&&!y){this._updatingCamera=!0;var b=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),_=function(t){return 0!==t&&-i._bearingSnap<t&&t<i._bearingSnap};b?(_(b.bearing||this._map.getBearing())&&(b.bearing=0),this._map.easeTo(b,{originalEvent:h})):(this._map.fire(new t.Event("moveend",{originalEvent:h})),_(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}},mi.prototype._fireEvent=function(e,n){this._map.fire(new t.Event(e,n?{originalEvent:n}:{}))},mi.prototype._requestFrame=function(){var t=this;return this._map.triggerRepaint(),this._map._renderTaskQueue.add((function(e){delete t._frameId,t.handleEvent(new gi("renderFrame",{timeStamp:e})),t._applyChanges()}))},mi.prototype._triggerRenderFrame=function(){void 0===this._frameId&&(this._frameId=this._requestFrame())};var yi=function(e){function n(n,r){e.call(this),this._moving=!1,this._zooming=!1,this.transform=n,this._bearingSnap=r.bearingSnap,t.bindAll(["_renderFrameCallback"],this)}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.getCenter=function(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)},n.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},n.prototype.panBy=function(e,n,r){return e=t.Point.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},n),r)},n.prototype.panTo=function(e,n,r){return this.easeTo(t.extend({center:e},n),r)},n.prototype.getZoom=function(){return this.transform.zoom},n.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},n.prototype.zoomTo=function(e,n,r){return this.easeTo(t.extend({zoom:e},n),r)},n.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},n.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},n.prototype.getBearing=function(){return this.transform.bearing},n.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},n.prototype.getPadding=function(){return this.transform.padding},n.prototype.setPadding=function(t,e){return this.jumpTo({padding:t},e),this},n.prototype.rotateTo=function(e,n,r){return this.easeTo(t.extend({bearing:e},n),r)},n.prototype.resetNorth=function(e,n){return this.rotateTo(0,t.extend({duration:1e3},e),n),this},n.prototype.resetNorthPitch=function(e,n){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),n),this},n.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(t,e):this},n.prototype.getPitch=function(){return this.transform.pitch},n.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},n.prototype.cameraForBounds=function(e,n){e=t.LngLatBounds.convert(e);var r=n&&n.bearing||0;return this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),r,n)},n.prototype._cameraForBoxAndBearing=function(e,n,r,i){var o={top:0,bottom:0,right:0,left:0};if("number"==typeof(i=t.extend({padding:o,offset:[0,0],maxZoom:this.transform.maxZoom},i)).padding){var a=i.padding;i.padding={top:a,bottom:a,right:a,left:a}}i.padding=t.extend(o,i.padding);var s=this.transform,u=s.padding,l=s.project(t.LngLat.convert(e)),c=s.project(t.LngLat.convert(n)),h=l.rotate(-r*Math.PI/180),f=c.rotate(-r*Math.PI/180),d=new t.Point(Math.max(h.x,f.x),Math.max(h.y,f.y)),p=new t.Point(Math.min(h.x,f.x),Math.min(h.y,f.y)),g=d.sub(p),v=(s.width-(u.left+u.right+i.padding.left+i.padding.right))/g.x,m=(s.height-(u.top+u.bottom+i.padding.top+i.padding.bottom))/g.y;if(!(m<0||v<0)){var y=Math.min(s.scaleZoom(s.scale*Math.min(v,m)),i.maxZoom),b="number"==typeof i.offset.x?new t.Point(i.offset.x,i.offset.y):t.Point.convert(i.offset),_=new t.Point((i.padding.left-i.padding.right)/2,(i.padding.top-i.padding.bottom)/2).rotate(r*Math.PI/180),x=b.add(_).mult(s.scale/s.zoomScale(y));return{center:s.unproject(l.add(c).div(2).sub(x)),zoom:y,bearing:r}}t.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")},n.prototype.fitBounds=function(t,e,n){return this._fitInternal(this.cameraForBounds(t,e),e,n)},n.prototype.fitScreenCoordinates=function(e,n,r,i,o){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(t.Point.convert(e)),this.transform.pointLocation(t.Point.convert(n)),r,i),i,o)},n.prototype._fitInternal=function(e,n,r){return e?(delete(n=t.extend(e,n)).padding,n.linear?this.easeTo(n,r):this.flyTo(n,r)):this},n.prototype.jumpTo=function(e,n){this.stop();var r=this.transform,i=!1,o=!1,a=!1;return"zoom"in e&&r.zoom!==+e.zoom&&(i=!0,r.zoom=+e.zoom),void 0!==e.center&&(r.center=t.LngLat.convert(e.center)),"bearing"in e&&r.bearing!==+e.bearing&&(o=!0,r.bearing=+e.bearing),"pitch"in e&&r.pitch!==+e.pitch&&(a=!0,r.pitch=+e.pitch),null==e.padding||r.isPaddingEqual(e.padding)||(r.padding=e.padding),this.fire(new t.Event("movestart",n)).fire(new t.Event("move",n)),i&&this.fire(new t.Event("zoomstart",n)).fire(new t.Event("zoom",n)).fire(new t.Event("zoomend",n)),o&&this.fire(new t.Event("rotatestart",n)).fire(new t.Event("rotate",n)).fire(new t.Event("rotateend",n)),a&&this.fire(new t.Event("pitchstart",n)).fire(new t.Event("pitch",n)).fire(new t.Event("pitchend",n)),this.fire(new t.Event("moveend",n))},n.prototype.easeTo=function(e,n){var r=this;this._stop(!1,e.easeId),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||!e.essential&&t.browser.prefersReducedMotion)&&(e.duration=0);var i=this.transform,o=this.getZoom(),a=this.getBearing(),s=this.getPitch(),u=this.getPadding(),l="zoom"in e?+e.zoom:o,c="bearing"in e?this._normalizeBearing(e.bearing,a):a,h="pitch"in e?+e.pitch:s,f="padding"in e?e.padding:i.padding,d=t.Point.convert(e.offset),p=i.centerPoint.add(d),g=i.pointLocation(p),v=t.LngLat.convert(e.center||g);this._normalizeCenter(v);var m,y,b=i.project(g),_=i.project(v).sub(b),x=i.zoomScale(l-o);e.around&&(m=t.LngLat.convert(e.around),y=i.locationPoint(m));var w={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||l!==o,this._rotating=this._rotating||a!==c,this._pitching=this._pitching||h!==s,this._padding=!i.isPaddingEqual(f),this._easeId=e.easeId,this._prepareEase(n,e.noMoveStart,w),this._ease((function(e){if(r._zooming&&(i.zoom=t.number(o,l,e)),r._rotating&&(i.bearing=t.number(a,c,e)),r._pitching&&(i.pitch=t.number(s,h,e)),r._padding&&(i.interpolatePadding(u,f,e),p=i.centerPoint.add(d)),m)i.setLocationAtPoint(m,y);else{var g=i.zoomScale(i.zoom-o),v=l>o?Math.min(2,x):Math.max(.5,x),w=Math.pow(v,1-e),O=i.unproject(b.add(_.mult(e*w)).mult(g));i.setLocationAtPoint(i.renderWorldCopies?O.wrap():O,p)}r._fireMoveEvents(n)}),(function(t){r._afterEase(n,t)}),e),this},n.prototype._prepareEase=function(e,n,r){void 0===r&&(r={}),this._moving=!0,n||r.moving||this.fire(new t.Event("movestart",e)),this._zooming&&!r.zooming&&this.fire(new t.Event("zoomstart",e)),this._rotating&&!r.rotating&&this.fire(new t.Event("rotatestart",e)),this._pitching&&!r.pitching&&this.fire(new t.Event("pitchstart",e))},n.prototype._fireMoveEvents=function(e){this.fire(new t.Event("move",e)),this._zooming&&this.fire(new t.Event("zoom",e)),this._rotating&&this.fire(new t.Event("rotate",e)),this._pitching&&this.fire(new t.Event("pitch",e))},n.prototype._afterEase=function(e,n){if(!this._easeId||!n||this._easeId!==n){delete this._easeId;var r=this._zooming,i=this._rotating,o=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new t.Event("zoomend",e)),i&&this.fire(new t.Event("rotateend",e)),o&&this.fire(new t.Event("pitchend",e)),this.fire(new t.Event("moveend",e))}},n.prototype.flyTo=function(e,n){var r=this;if(!e.essential&&t.browser.prefersReducedMotion){var i=t.pick(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(i,n)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var o=this.transform,a=this.getZoom(),s=this.getBearing(),u=this.getPitch(),l=this.getPadding(),c="zoom"in e?t.clamp(+e.zoom,o.minZoom,o.maxZoom):a,h="bearing"in e?this._normalizeBearing(e.bearing,s):s,f="pitch"in e?+e.pitch:u,d="padding"in e?e.padding:o.padding,p=o.zoomScale(c-a),g=t.Point.convert(e.offset),v=o.centerPoint.add(g),m=o.pointLocation(v),y=t.LngLat.convert(e.center||m);this._normalizeCenter(y);var b=o.project(m),_=o.project(y).sub(b),x=e.curve,w=Math.max(o.width,o.height),O=w/p,S=_.mag();if("minZoom"in e){var C=t.clamp(Math.min(e.minZoom,a,c),o.minZoom,o.maxZoom),E=w/o.zoomScale(C-a);x=Math.sqrt(E/S*2)}var T=x*x;function A(t){var e=(O*O-w*w+(t?-1:1)*T*T*S*S)/(2*(t?O:w)*T*S);return Math.log(Math.sqrt(e*e+1)-e)}function M(t){return(Math.exp(t)-Math.exp(-t))/2}function I(t){return(Math.exp(t)+Math.exp(-t))/2}var j=A(0),k=function(t){return I(j)/I(j+x*t)},P=function(t){return w*((I(j)*(M(e=j+x*t)/I(e))-M(j))/T)/S;var e},L=(A(1)-j)/x;if(Math.abs(S)<1e-6||!isFinite(L)){if(Math.abs(w-O)<1e-6)return this.easeTo(e,n);var R=O<w?-1:1;L=Math.abs(Math.log(O/w))/x,P=function(){return 0},k=function(t){return Math.exp(R*x*t)}}return e.duration="duration"in e?+e.duration:1e3*L/("screenSpeed"in e?+e.screenSpeed/x:+e.speed),e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=s!==h,this._pitching=f!==u,this._padding=!o.isPaddingEqual(d),this._prepareEase(n,!1),this._ease((function(e){var i=e*L,p=1/k(i);o.zoom=1===e?c:a+o.scaleZoom(p),r._rotating&&(o.bearing=t.number(s,h,e)),r._pitching&&(o.pitch=t.number(u,f,e)),r._padding&&(o.interpolatePadding(l,d,e),v=o.centerPoint.add(g));var m=1===e?y:o.unproject(b.add(_.mult(P(i))).mult(p));o.setLocationAtPoint(o.renderWorldCopies?m.wrap():m,v),r._fireMoveEvents(n)}),(function(){return r._afterEase(n)}),e),this},n.prototype.isEasing=function(){return!!this._easeFrameId},n.prototype.stop=function(){return this._stop()},n.prototype._stop=function(t,e){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var n=this._onEaseEnd;delete this._onEaseEnd,n.call(this,e)}if(!t){var r=this.handlers;r&&r.stop(!1)}return this},n.prototype._ease=function(e,n,r){!1===r.animate||0===r.duration?(e(1),n()):(this._easeStart=t.browser.now(),this._easeOptions=r,this._onEaseFrame=e,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},n.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},n.prototype._normalizeBearing=function(e,n){e=t.wrap(e,-180,180);var r=Math.abs(e-n);return Math.abs(e-360-n)<r&&(e-=360),Math.abs(e+360-n)<r&&(e+=360),e},n.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&&!e.lngRange){var n=t.lng-e.center.lng;t.lng+=n>180?-360:n<-180?360:0}},n}(t.Evented),bi=function(e){void 0===e&&(e={}),this.options=e,t.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};bi.prototype.getDefaultPosition=function(){return"bottom-right"},bi.prototype.onAdd=function(t){var e=this.options&&this.options.compact;return this._map=t,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=n.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=n.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),e&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===e&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},bi.prototype.onRemove=function(){n.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},bi.prototype._setElementTitle=function(t,e){var n=this._map._getUIString("AttributionControl."+e);t.title=n,t.setAttribute("aria-label",n)},bi.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},bi.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(".mapbox-improve-map"));var n=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){var r=n.reduce((function(t,e,r){return e.value&&(t+=e.key+"="+e.value+(r<n.length-1?"&":"")),t}),"?");e.href=t.config.FEEDBACK_URL+"/"+r+(this._map._hash?this._map._hash.getHashString(!0):""),e.rel="noopener nofollow",this._setElementTitle(e,"MapFeedback")}},bi.prototype._updateData=function(t){!t||"metadata"!==t.sourceDataType&&"visibility"!==t.sourceDataType&&"style"!==t.dataType||(this._updateAttributions(),this._updateEditLink())},bi.prototype._updateAttributions=function(){if(this._map.style){var t=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((function(t){return"string"!=typeof t?"":t}))):"string"==typeof this.options.customAttribution&&t.push(this.options.customAttribution)),this._map.style.stylesheet){var e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}var n=this._map.style.sourceCaches;for(var r in n){var i=n[r];if(i.used){var o=i.getSource();o.attribution&&t.indexOf(o.attribution)<0&&t.push(o.attribution)}}t.sort((function(t,e){return t.length-e.length}));var a=(t=t.filter((function(e,n){for(var r=n+1;r<t.length;r++)if(t[r].indexOf(e)>=0)return!1;return!0}))).join(" | ");a!==this._attribHTML&&(this._attribHTML=a,t.length?(this._innerContainer.innerHTML=a,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},bi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var _i=function(){t.bindAll(["_updateLogo"],this),t.bindAll(["_updateCompact"],this)};_i.prototype.onAdd=function(t){this._map=t,this._container=n.create("div","mapboxgl-ctrl");var e=n.create("a","mapboxgl-ctrl-logo");return e.target="_blank",e.rel="noopener nofollow",e.href="https://www.mapbox.com/",e.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),e.setAttribute("rel","noopener nofollow"),this._container.appendChild(e),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},_i.prototype.onRemove=function(){n.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},_i.prototype.getDefaultPosition=function(){return"bottom-left"},_i.prototype._updateLogo=function(t){t&&"metadata"!==t.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},_i.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},_i.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth<250?e.classList.add("mapboxgl-compact"):e.classList.remove("mapboxgl-compact")}};var xi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};xi.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},xi.prototype.remove=function(t){for(var e=this._currentlyRunning,n=0,r=e?this._queue.concat(e):this._queue;n<r.length;n+=1){var i=r[n];if(i.id===t)return void(i.cancelled=!0)}},xi.prototype.run=function(t){void 0===t&&(t=0);var e=this._currentlyRunning=this._queue;this._queue=[];for(var n=0,r=e;n<r.length;n+=1){var i=r[n];if(!i.cancelled&&(i.callback(t),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},xi.prototype.clear=function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]};var wi={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm"},Oi=t.window.HTMLImageElement,Si=t.window.HTMLElement,Ci=t.window.ImageBitmap,Ei={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Ti=function(r){function i(e){var n=this;if(null!=(e=t.extend({},Ei,e)).minZoom&&null!=e.maxZoom&&e.minZoom>e.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=e.minPitch&&null!=e.maxPitch&&e.minPitch>e.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=e.minPitch&&e.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=e.maxPitch&&e.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var i=new Or(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(r.call(this,i,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new xi,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},wi,e.locale),this._clickTolerance=e.clickTolerance,this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),"string"==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error("Container '"+e.container+"' not found.")}else{if(!(e.container instanceof Si))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=e.container}if(e.maxBounds&&this.setMaxBounds(e.maxBounds),t.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(function(){return n._update(!1)})),this.on("moveend",(function(){return n._update(!1)})),this.on("zoom",(function(){return n._update(!0)})),void 0!==t.window&&(t.window.addEventListener("online",this._onWindowOnline,!1),t.window.addEventListener("resize",this._onWindowResize,!1),t.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new mi(this,e),this._hash=e.hash&&new Cr("string"==typeof e.hash&&e.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&&(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&&this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&&this.addControl(new bi({customAttribution:e.customAttribution})),this.addControl(new _i,e.logoPosition),this.on("style.load",(function(){n.transform.unmodified&&n.jumpTo(n.style.stylesheet)})),this.on("data",(function(e){n._update("style"===e.dataType),n.fire(new t.Event(e.dataType+"data",e))})),this.on("dataloading",(function(e){n.fire(new t.Event(e.dataType+"dataloading",e))}))}r&&(i.__proto__=r),(i.prototype=Object.create(r&&r.prototype)).constructor=i;var o={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(e,n){if(void 0===n&&(n=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var r=e.onAdd(this);this._controls.push(e);var i=this._controlPositions[n];return-1!==n.indexOf("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this},i.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var n=this._controls.indexOf(e);return n>-1&&this._controls.splice(n,1),e.onRemove(this),this},i.prototype.hasControl=function(t){return this._controls.indexOf(t)>-1},i.prototype.resize=function(e){var n=this._containerDimensions(),r=n[0],i=n[1];if(r===this.transform.width&&i===this.transform.height)return this;this._resizeCanvas(r,i),this.transform.resize(r,i),this.painter.resize(r,i);var o=!this._moving;return o&&this.fire(new t.Event("movestart",e)).fire(new t.Event("move",e)),this.fire(new t.Event("resize",e)),o&&this.fire(new t.Event("moveend",e)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},i.prototype.setMinZoom=function(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t&&this.setZoom(t),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")},i.prototype.getMinZoom=function(){return this.transform.minZoom},i.prototype.setMaxZoom=function(t){if((t=null==t?22:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.setMinPitch=function(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()<t&&this.setPitch(t),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")},i.prototype.getMinPitch=function(){return this.transform.minPitch},i.prototype.setMaxPitch=function(t){if((t=null==t?60:t)>60)throw new Error("maxPitch must be less than or equal to 60");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t&&this.setPitch(t),this;throw new Error("maxPitch must be greater than the current minPitch")},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},i.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},i.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(t,e,n){var r,i=this;if("mouseenter"===t||"mouseover"===t){var o=!1;return{layer:e,listener:n,delegates:{mousemove:function(r){var a=i.getLayer(e)?i.queryRenderedFeatures(r.point,{layers:[e]}):[];a.length?o||(o=!0,n.call(i,new Lr(t,i,r.originalEvent,{features:a}))):o=!1},mouseout:function(){o=!1}}}}if("mouseleave"===t||"mouseout"===t){var a=!1;return{layer:e,listener:n,delegates:{mousemove:function(r){(i.getLayer(e)?i.queryRenderedFeatures(r.point,{layers:[e]}):[]).length?a=!0:a&&(a=!1,n.call(i,new Lr(t,i,r.originalEvent)))},mouseout:function(e){a&&(a=!1,n.call(i,new Lr(t,i,e.originalEvent)))}}}}return{layer:e,listener:n,delegates:(r={},r[t]=function(t){var r=i.getLayer(e)?i.queryRenderedFeatures(t.point,{layers:[e]}):[];r.length&&(t.features=r,n.call(i,t),delete t.features)},r)}},i.prototype.on=function(t,e,n){if(void 0===n)return r.prototype.on.call(this,t,e);var i=this._createDelegatedListener(t,e,n);for(var o in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i),i.delegates)this.on(o,i.delegates[o]);return this},i.prototype.once=function(t,e,n){if(void 0===n)return r.prototype.once.call(this,t,e);var i=this._createDelegatedListener(t,e,n);for(var o in i.delegates)this.once(o,i.delegates[o]);return this},i.prototype.off=function(t,e,n){var i=this;return void 0===n?r.prototype.off.call(this,t,e):(this._delegatedListeners&&this._delegatedListeners[t]&&function(r){for(var o=r[t],a=0;a<o.length;a++){var s=o[a];if(s.layer===e&&s.listener===n){for(var u in s.delegates)i.off(u,s.delegates[u]);return o.splice(a,1),i}}}(this._delegatedListeners),this)},i.prototype.queryRenderedFeatures=function(e,n){if(!this.style)return[];var r;if(void 0!==n||void 0===e||e instanceof t.Point||Array.isArray(e)||(n=e,e=void 0),n=n||{},(e=e||[[0,0],[this.transform.width,this.transform.height]])instanceof t.Point||"number"==typeof e[0])r=[t.Point.convert(e)];else{var i=t.Point.convert(e[0]),o=t.Point.convert(e[1]);r=[i,new t.Point(o.x,i.y),o,new t.Point(i.x,o.y),i]}return this.style.queryRenderedFeatures(r,n,this.transform)},i.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},i.prototype.setStyle=function(e,n){return!1!==(n=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},n)).diff&&n.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&e?(this._diffStyle(e,n),this):(this._localIdeographFontFamily=n.localIdeographFontFamily,this._updateStyle(e,n))},i.prototype._getUIString=function(t){var e=this._locale[t];if(null==e)throw new Error("Missing UI string '"+t+"'");return e},i.prototype._updateStyle=function(t,e){return this.style&&(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new Ge(this,e||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof t?this.style.loadURL(t):this.style.loadJSON(t),this):(delete this.style,this)},i.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new Ge(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},i.prototype._diffStyle=function(e,n){var r=this;if("string"==typeof e){var i=this._requestManager.normalizeStyleURL(e),o=this._requestManager.transformRequest(i,t.ResourceType.Style);t.getJSON(o,(function(e,i){e?r.fire(new t.ErrorEvent(e)):i&&r._updateDiff(i,n)}))}else"object"==typeof e&&this._updateDiff(e,n)},i.prototype._updateDiff=function(e,n){try{this.style.setState(e)&&this._update(!0)}catch(r){t.warnOnce("Unable to perform style diff: "+(r.message||r.error||r)+". Rebuilding the style from scratch."),this._updateStyle(e,n)}},i.prototype.getStyle=function(){if(this.style)return this.style.serialize()},i.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():t.warnOnce("There is no style added to the map.")},i.prototype.addSource=function(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)},i.prototype.isSourceLoaded=function(e){var n=this.style&&this.style.sourceCaches[e];if(void 0!==n)return n.loaded();this.fire(new t.ErrorEvent(new Error("There is no source with ID '"+e+"'")))},i.prototype.areTilesLoaded=function(){var t=this.style&&this.style.sourceCaches;for(var e in t){var n=t[e]._tiles;for(var r in n){var i=n[r];if("loaded"!==i.state&&"errored"!==i.state)return!1}}return!0},i.prototype.addSourceType=function(t,e,n){return this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,n)},i.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0)},i.prototype.getSource=function(t){return this.style.getSource(t)},i.prototype.addImage=function(e,n,r){void 0===r&&(r={});var i=r.pixelRatio;void 0===i&&(i=1);var o=r.sdf;void 0===o&&(o=!1);var a=r.stretchX,s=r.stretchY,u=r.content;if(this._lazyInitEmptyStyle(),n instanceof Oi||Ci&&n instanceof Ci){var l=t.browser.getImageData(n);this.style.addImage(e,{data:new t.RGBAImage({width:l.width,height:l.height},l.data),pixelRatio:i,stretchX:a,stretchY:s,content:u,sdf:o,version:0})}else{if(void 0===n.width||void 0===n.height)return this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));var c=n;this.style.addImage(e,{data:new t.RGBAImage({width:n.width,height:n.height},new Uint8Array(n.data)),pixelRatio:i,stretchX:a,stretchY:s,content:u,sdf:o,version:0,userImage:c}),c.onAdd&&c.onAdd(this,e)}},i.prototype.updateImage=function(e,n){var r=this.style.getImage(e);if(!r)return this.fire(new t.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));var i=n instanceof Oi||Ci&&n instanceof Ci?t.browser.getImageData(n):n,o=i.width,a=i.height,s=i.data;return void 0===o||void 0===a?this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))):o!==r.data.width||a!==r.data.height?this.fire(new t.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image"))):(r.data.replace(s,!(n instanceof Oi||Ci&&n instanceof Ci)),void this.style.updateImage(e,r))},i.prototype.hasImage=function(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error("Missing required image id"))),!1)},i.prototype.removeImage=function(t){this.style.removeImage(t)},i.prototype.loadImage=function(e,n){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),n)},i.prototype.listImages=function(){return this.style.listImages()},i.prototype.addLayer=function(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)},i.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0)},i.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0)},i.prototype.getLayer=function(t){return this.style.getLayer(t)},i.prototype.setLayerZoomRange=function(t,e,n){return this.style.setLayerZoomRange(t,e,n),this._update(!0)},i.prototype.setFilter=function(t,e,n){return void 0===n&&(n={}),this.style.setFilter(t,e,n),this._update(!0)},i.prototype.getFilter=function(t){return this.style.getFilter(t)},i.prototype.setPaintProperty=function(t,e,n,r){return void 0===r&&(r={}),this.style.setPaintProperty(t,e,n,r),this._update(!0)},i.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},i.prototype.setLayoutProperty=function(t,e,n,r){return void 0===r&&(r={}),this.style.setLayoutProperty(t,e,n,r),this._update(!0)},i.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},i.prototype.setLight=function(t,e){return void 0===e&&(e={}),this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)},i.prototype.getLight=function(){return this.style.getLight()},i.prototype.setFeatureState=function(t,e){return this.style.setFeatureState(t,e),this._update()},i.prototype.removeFeatureState=function(t,e){return this.style.removeFeatureState(t,e),this._update()},i.prototype.getFeatureState=function(t){return this.style.getFeatureState(t)},i.prototype.getContainer=function(){return this._container},i.prototype.getCanvasContainer=function(){return this._canvasContainer},i.prototype.getCanvas=function(){return this._canvas},i.prototype._containerDimensions=function(){var t=0,e=0;return this._container&&(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]},i.prototype._detectMissingCSS=function(){"rgb(250, 128, 114)"!==t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&t.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")},i.prototype._setupContainer=function(){var t=this._container;t.classList.add("mapboxgl-map"),(this._missingCSSCanary=n.create("div","mapboxgl-canary",t)).style.visibility="hidden",this._detectMissingCSS();var e=this._canvasContainer=n.create("div","mapboxgl-canvas-container",t);this._interactive&&e.classList.add("mapboxgl-interactive"),this._canvas=n.create("canvas","mapboxgl-canvas",e),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","region");var r=this._containerDimensions();this._resizeCanvas(r[0],r[1]);var i=this._controlContainer=n.create("div","mapboxgl-control-container",t),o=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((function(t){o[t]=n.create("div","mapboxgl-ctrl-"+t,i)})),this._container.addEventListener("scroll",this._onMapScroll,!1)},i.prototype._resizeCanvas=function(e,n){var r=t.browser.devicePixelRatio||1;this._canvas.width=r*e,this._canvas.height=r*n,this._canvas.style.width=e+"px",this._canvas.style.height=n+"px"},i.prototype._setupPainter=function(){var n=t.extend({},e.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),r=this._canvas.getContext("webgl",n)||this._canvas.getContext("experimental-webgl",n);r?(this.painter=new br(r,this.transform),t.webpSupported.testSupport(r)):this.fire(new t.ErrorEvent(new Error("Failed to initialize WebGL")))},i.prototype._contextLost=function(e){e.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new t.Event("webglcontextlost",{originalEvent:e}))},i.prototype._contextRestored=function(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event("webglcontextrestored",{originalEvent:e}))},i.prototype._onMapScroll=function(t){if(t.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},i.prototype.loaded=function(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()},i.prototype._update=function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this},i.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},i.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},i.prototype._render=function(e){var n,r=this,i=0,o=this.painter.context.extTimerQuery;if(this.listens("gpu-timing-frame")&&(n=o.createQueryEXT(),o.beginQueryEXT(o.TIME_ELAPSED_EXT,n),i=t.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),!this._removed){var a=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;var s=this.transform.zoom,u=t.browser.now();this.style.zoomHistory.update(s,u);var l=new t.EvaluationParameters(s,{now:u,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),c=l.crossFadingFactor();1===c&&c===this._crossFadingFactor||(a=!0,this._crossFadingFactor=c),this.style.update(l)}if(this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer")}),this.fire(new t.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new t.Event("load"))),this.style&&(this.style.hasTransitions()||a)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){var h=t.browser.now()-i;o.endQueryEXT(o.TIME_ELAPSED_EXT,n),setTimeout((function(){var e=o.getQueryObjectEXT(n,o.QUERY_RESULT_EXT)/1e6;o.deleteQueryEXT(n),r.fire(new t.Event("gpu-timing-frame",{cpuTime:h,gpuTime:e}))}),50)}if(this.listens("gpu-timing-layer")){var f=this.painter.collectGpuTimers();setTimeout((function(){var e=r.painter.queryGpuTimers(f);r.fire(new t.Event("gpu-timing-layer",{layerTimes:e}))}),50)}var d=this._sourcesDirty||this._styleDirty||this._placementDirty;return d||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new t.Event("idle")),!this._loaded||this._fullyLoaded||d||(this._fullyLoaded=!0),this}},i.prototype.remove=function(){this._hash&&this._hash.remove();for(var e=0,n=this._controls;e<n.length;e+=1)n[e].onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),void 0!==t.window&&(t.window.removeEventListener("resize",this._onWindowResize,!1),t.window.removeEventListener("orientationchange",this._onWindowResize,!1),t.window.removeEventListener("online",this._onWindowOnline,!1));var r=this.painter.context.gl.getExtension("WEBGL_lose_context");r&&r.loseContext(),Ai(this._canvasContainer),Ai(this._controlContainer),Ai(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),this._removed=!0,this.fire(new t.Event("remove"))},i.prototype.triggerRepaint=function(){var e=this;this.style&&!this._frame&&(this._frame=t.browser.frame((function(t){e._frame=null,e._render(t)})))},i.prototype._onWindowOnline=function(){this._update()},i.prototype._onWindowResize=function(t){this._trackResize&&this.resize({originalEvent:t})._update()},o.showTileBoundaries.get=function(){return!!this._showTileBoundaries},o.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())},o.showPadding.get=function(){return!!this._showPadding},o.showPadding.set=function(t){this._showPadding!==t&&(this._showPadding=t,this._update())},o.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},o.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},o.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},o.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())},o.repaint.get=function(){return!!this._repaint},o.repaint.set=function(t){this._repaint!==t&&(this._repaint=t,this.triggerRepaint())},o.vertices.get=function(){return!!this._vertices},o.vertices.set=function(t){this._vertices=t,this._update()},i.prototype._setCacheLimits=function(e,n){t.setCacheLimits(e,n)},o.version.get=function(){return t.version},Object.defineProperties(i.prototype,o),i}(yi);function Ai(t){t.parentNode&&t.parentNode.removeChild(t)}var Mi={showCompass:!0,showZoom:!0,visualizePitch:!1},Ii=function(e){var r=this;this.options=t.extend({},Mi,e),this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this.options.showZoom&&(t.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",(function(t){return r._map.zoomIn({},{originalEvent:t})})),n.create("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden",!0),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",(function(t){return r._map.zoomOut({},{originalEvent:t})})),n.create("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden",!0)),this.options.showCompass&&(t.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",(function(t){r.options.visualizePitch?r._map.resetNorthPitch({},{originalEvent:t}):r._map.resetNorth({},{originalEvent:t})})),this._compassIcon=n.create("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden",!0))};Ii.prototype._updateZoomButtons=function(){var t=this._map.getZoom(),e=t===this._map.getMaxZoom(),n=t===this._map.getMinZoom();this._zoomInButton.disabled=e,this._zoomOutButton.disabled=n,this._zoomInButton.setAttribute("aria-disabled",e.toString()),this._zoomOutButton.setAttribute("aria-disabled",n.toString())},Ii.prototype._rotateCompassArrow=function(){var t=this.options.visualizePitch?"scale("+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+") rotateX("+this._map.transform.pitch+"deg) rotateZ("+this._map.transform.angle*(180/Math.PI)+"deg)":"rotate("+this._map.transform.angle*(180/Math.PI)+"deg)";this._compassIcon.style.transform=t},Ii.prototype.onAdd=function(t){return this._map=t,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new ji(this._map,this._compass,this.options.visualizePitch)),this._container},Ii.prototype.onRemove=function(){n.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map},Ii.prototype._createButton=function(t,e){var r=n.create("button",t,this._container);return r.type="button",r.addEventListener("click",e),r},Ii.prototype._setButtonTitle=function(t,e){var n=this._map._getUIString("NavigationControl."+e);t.title=n,t.setAttribute("aria-label",n)};var ji=function(e,r,i){void 0===i&&(i=!1),this._clickTolerance=10,this.element=r,this.mouseRotate=new Xr({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,i&&(this.mousePitch=new $r({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),t.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),n.addEventListener(r,"mousedown",this.mousedown),n.addEventListener(r,"touchstart",this.touchstart,{passive:!1}),n.addEventListener(r,"touchmove",this.touchmove),n.addEventListener(r,"touchend",this.touchend),n.addEventListener(r,"touchcancel",this.reset)};function ki(e,n,r){if(e=new t.LngLat(e.lng,e.lat),n){var i=new t.LngLat(e.lng-360,e.lat),o=new t.LngLat(e.lng+360,e.lat),a=r.locationPoint(e).distSqr(n);r.locationPoint(i).distSqr(n)<a?e=i:r.locationPoint(o).distSqr(n)<a&&(e=o)}for(;Math.abs(e.lng-r.center.lng)>180;){var s=r.locationPoint(e);if(s.x>=0&&s.y>=0&&s.x<=r.width&&s.y<=r.height)break;e.lng>r.center.lng?e.lng-=360:e.lng+=360}return e}ji.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&&this.mousePitch.mousedown(t,e),n.disableDrag()},ji.prototype.move=function(t,e){var n=this.map,r=this.mouseRotate.mousemoveWindow(t,e);if(r&&r.bearingDelta&&n.setBearing(n.getBearing()+r.bearingDelta),this.mousePitch){var i=this.mousePitch.mousemoveWindow(t,e);i&&i.pitchDelta&&n.setPitch(n.getPitch()+i.pitchDelta)}},ji.prototype.off=function(){var t=this.element;n.removeEventListener(t,"mousedown",this.mousedown),n.removeEventListener(t,"touchstart",this.touchstart,{passive:!1}),n.removeEventListener(t,"touchmove",this.touchmove),n.removeEventListener(t,"touchend",this.touchend),n.removeEventListener(t,"touchcancel",this.reset),this.offTemp()},ji.prototype.offTemp=function(){n.enableDrag(),n.removeEventListener(t.window,"mousemove",this.mousemove),n.removeEventListener(t.window,"mouseup",this.mouseup)},ji.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),n.mousePos(this.element,e)),n.addEventListener(t.window,"mousemove",this.mousemove),n.addEventListener(t.window,"mouseup",this.mouseup)},ji.prototype.mousemove=function(t){this.move(t,n.mousePos(this.element,t))},ji.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&&this.mousePitch.mouseupWindow(t),this.offTemp()},ji.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=n.touchPos(this.element,t.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},ji.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=n.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},ji.prototype.touchend=function(t){0===t.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()},ji.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var Pi={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Li(t,e,n){var r=t.classList;for(var i in Pi)r.remove("mapboxgl-"+n+"-anchor-"+i);r.add("mapboxgl-"+n+"-anchor-"+e)}var Ri,Di=function(e){function r(r,i){if(e.call(this),(r instanceof t.window.HTMLElement||i)&&(r=t.extend({element:r},i)),t.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=r&&r.anchor||"center",this._color=r&&r.color||"#3FB1CE",this._scale=r&&r.scale||1,this._draggable=r&&r.draggable||!1,this._clickTolerance=r&&r.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=r&&r.rotation||0,this._rotationAlignment=r&&r.rotationAlignment||"auto",this._pitchAlignment=r&&r.pitchAlignment&&"auto"!==r.pitchAlignment?r.pitchAlignment:this._rotationAlignment,r&&r.element)this._element=r.element,this._offset=t.Point.convert(r&&r.offset||[0,0]);else{this._defaultMarker=!0,this._element=n.create("div"),this._element.setAttribute("aria-label","Map marker");var o=n.createNS("http://www.w3.org/2000/svg","svg");o.setAttributeNS(null,"display","block"),o.setAttributeNS(null,"height","41px"),o.setAttributeNS(null,"width","27px"),o.setAttributeNS(null,"viewBox","0 0 27 41");var a=n.createNS("http://www.w3.org/2000/svg","g");a.setAttributeNS(null,"stroke","none"),a.setAttributeNS(null,"stroke-width","1"),a.setAttributeNS(null,"fill","none"),a.setAttributeNS(null,"fill-rule","evenodd");var s=n.createNS("http://www.w3.org/2000/svg","g");s.setAttributeNS(null,"fill-rule","nonzero");var u=n.createNS("http://www.w3.org/2000/svg","g");u.setAttributeNS(null,"transform","translate(3.0, 29.0)"),u.setAttributeNS(null,"fill","#000000");for(var l=0,c=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];l<c.length;l+=1){var h=c[l],f=n.createNS("http://www.w3.org/2000/svg","ellipse");f.setAttributeNS(null,"opacity","0.04"),f.setAttributeNS(null,"cx","10.5"),f.setAttributeNS(null,"cy","5.80029008"),f.setAttributeNS(null,"rx",h.rx),f.setAttributeNS(null,"ry",h.ry),u.appendChild(f)}var d=n.createNS("http://www.w3.org/2000/svg","g");d.setAttributeNS(null,"fill",this._color);var p=n.createNS("http://www.w3.org/2000/svg","path");p.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),d.appendChild(p);var g=n.createNS("http://www.w3.org/2000/svg","g");g.setAttributeNS(null,"opacity","0.25"),g.setAttributeNS(null,"fill","#000000");var v=n.createNS("http://www.w3.org/2000/svg","path");v.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),g.appendChild(v);var m=n.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"transform","translate(6.0, 7.0)"),m.setAttributeNS(null,"fill","#FFFFFF");var y=n.createNS("http://www.w3.org/2000/svg","g");y.setAttributeNS(null,"transform","translate(8.0, 8.0)");var b=n.createNS("http://www.w3.org/2000/svg","circle");b.setAttributeNS(null,"fill","#000000"),b.setAttributeNS(null,"opacity","0.25"),b.setAttributeNS(null,"cx","5.5"),b.setAttributeNS(null,"cy","5.5"),b.setAttributeNS(null,"r","5.4999962");var _=n.createNS("http://www.w3.org/2000/svg","circle");_.setAttributeNS(null,"fill","#FFFFFF"),_.setAttributeNS(null,"cx","5.5"),_.setAttributeNS(null,"cy","5.5"),_.setAttributeNS(null,"r","5.4999962"),y.appendChild(b),y.appendChild(_),s.appendChild(u),s.appendChild(d),s.appendChild(g),s.appendChild(m),s.appendChild(y),o.appendChild(s),o.setAttributeNS(null,"height",41*this._scale+"px"),o.setAttributeNS(null,"width",27*this._scale+"px"),this._element.appendChild(o),this._offset=t.Point.convert(r&&r.offset||[0,-14])}this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",(function(t){t.preventDefault()})),this._element.addEventListener("mousedown",(function(t){t.preventDefault()})),Li(this._element,this._anchor,"marker"),this._popup=null}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.addTo=function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on("move",this._update),t.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this},r.prototype.remove=function(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),n.remove(this._element),this._popup&&this._popup.remove(),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this},r.prototype.getElement=function(){return this._element},r.prototype.setPopup=function(t){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),t){if(!("offset"in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[e,-1*(24.6+e)],"bottom-right":[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this},r.prototype._onKeyPress=function(t){var e=t.code,n=t.charCode||t.keyCode;"Space"!==e&&"Enter"!==e&&32!==n&&13!==n||this.togglePopup()},r.prototype._onMapClick=function(t){var e=t.originalEvent.target,n=this._element;this._popup&&(e===n||n.contains(e))&&this.togglePopup()},r.prototype.getPopup=function(){return this._popup},r.prototype.togglePopup=function(){var t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this},r.prototype._update=function(t){if(this._map){this._map.transform.renderWorldCopies&&(this._lngLat=ki(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var e="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?e="rotateZ("+this._rotation+"deg)":"map"===this._rotationAlignment&&(e="rotateZ("+(this._rotation-this._map.getBearing())+"deg)");var r="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?r="rotateX(0deg)":"map"===this._pitchAlignment&&(r="rotateX("+this._map.getPitch()+"deg)"),t&&"moveend"!==t.type||(this._pos=this._pos.round()),n.setTransform(this._element,Pi[this._anchor]+" translate("+this._pos.x+"px, "+this._pos.y+"px) "+r+" "+e)}},r.prototype.getOffset=function(){return this._offset},r.prototype.setOffset=function(e){return this._offset=t.Point.convert(e),this._update(),this},r.prototype._onMove=function(e){if(!this._isDragging){var n=this._clickTolerance||this._map._clickTolerance;this._isDragging=e.point.dist(this._pointerdownPos)>=n}this._isDragging&&(this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new t.Event("dragstart"))),this.fire(new t.Event("drag")))},r.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new t.Event("dragend")),this._state="inactive"},r.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._pointerdownPos=t.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},r.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&&(t?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},r.prototype.isDraggable=function(){return this._draggable},r.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},r.prototype.getRotation=function(){return this._rotation},r.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||"auto",this._update(),this},r.prototype.getRotationAlignment=function(){return this._rotationAlignment},r.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&&"auto"!==t?t:this._rotationAlignment,this._update(),this},r.prototype.getPitchAlignment=function(){return this._pitchAlignment},r}(t.Evented),Ni={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Bi=0,Fi=!1,zi=function(e){function r(n){e.call(this),this.options=t.extend({},Ni,n),t.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.onAdd=function(e){var r;return this._map=e,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),r=this._setupUI,void 0!==Ri?r(Ri):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:"geolocation"}).then((function(t){r(Ri="denied"!==t.state)})):r(Ri=!!t.window.navigator.geolocation),this._container},r.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),n.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Bi=0,Fi=!1},r.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),n=t.coords;return e&&(n.longitude<e.getWest()||n.longitude>e.getEast()||n.latitude<e.getSouth()||n.latitude>e.getNorth())},r.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},r.prototype._onSuccess=function(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event("outofmaxbounds",e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(e),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(e),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("geolocate",e)),this._finish()}},r.prototype._updateCamera=function(e){var n=new t.LngLat(e.coords.longitude,e.coords.latitude),r=e.coords.accuracy,i=this._map.getBearing(),o=t.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(r),o,{geolocateSource:!0})},r.prototype._updateMarker=function(e){if(e){var n=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},r.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),n=this._map.unproject([1,t]),r=e.distanceTo(n),i=Math.ceil(2*this._accuracy/r);this._circleElement.style.width=i+"px",this._circleElement.style.height=i+"px"},r.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},r.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=n,this._geolocateButton.setAttribute("aria-label",n),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===e.code&&Fi)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("error",e)),this._finish()}},r.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},r.prototype._setupUI=function(e){var r=this;if(this._container.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this._geolocateButton=n.create("button","mapboxgl-ctrl-geolocate",this._container),n.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===e){t.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var i=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute("aria-label",i)}else{var o=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=o,this._geolocateButton.setAttribute("aria-label",o)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=n.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Di(this._dotElement),this._circleElement=n.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Di({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(function(e){e.geolocateSource||"ACTIVE_LOCK"!==r._watchState||e.originalEvent&&"resize"===e.originalEvent.type||(r._watchState="BACKGROUND",r._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),r._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),r.fire(new t.Event("trackuserlocationend")))}))},r.prototype.trigger=function(){if(!this._setup)return t.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new t.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Bi--,Fi=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new t.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var e;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Bi>1?(e={maximumAge:6e5,timeout:0},Fi=!0):(e=this.options.positionOptions,Fi=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},r.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},r}(t.Evented),Vi={maxWidth:100,unit:"metric"},Ui=function(e){this.options=t.extend({},Vi,e),t.bindAll(["_onMove","setUnit"],this)};function Gi(t,e,n){var r=n&&n.maxWidth||100,i=t._container.clientHeight/2,o=t.unproject([0,i]),a=t.unproject([r,i]),s=o.distanceTo(a);if(n&&"imperial"===n.unit){var u=3.2808*s;u>5280?Hi(e,r,u/5280,t._getUIString("ScaleControl.Miles")):Hi(e,r,u,t._getUIString("ScaleControl.Feet"))}else n&&"nautical"===n.unit?Hi(e,r,s/1852,t._getUIString("ScaleControl.NauticalMiles")):s>=1e3?Hi(e,r,s/1e3,t._getUIString("ScaleControl.Kilometers")):Hi(e,r,s,t._getUIString("ScaleControl.Meters"))}function Hi(t,e,n,r){var i,o,a,s=(i=n,(o=Math.pow(10,(""+Math.floor(i)).length-1))*(a=(a=i/o)>=10?10:a>=5?5:a>=3?3:a>=2?2:a>=1?1:function(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(a)));t.style.width=e*(s/n)+"px",t.innerHTML=s+"&nbsp;"+r}Ui.prototype.getDefaultPosition=function(){return"bottom-left"},Ui.prototype._onMove=function(){Gi(this._map,this._container,this.options)},Ui.prototype.onAdd=function(t){return this._map=t,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",t.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Ui.prototype.onRemove=function(){n.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Ui.prototype.setUnit=function(t){this.options.unit=t,Gi(this._map,this._container,this.options)};var Wi=function(e){this._fullscreen=!1,e&&e.container&&(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce("Full screen control 'container' must be a DOM element.")),t.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in t.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in t.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in t.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in t.window.document&&(this._fullscreenchange="MSFullscreenChange")};Wi.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",t.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Wi.prototype.onRemove=function(){n.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Wi.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},Wi.prototype._setupUI=function(){var e=this._fullscreenButton=n.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);n.create("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden",!0),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Wi.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.title=t},Wi.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Wi.prototype._isFullscreen=function(){return this._fullscreen},Wi.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Wi.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&&t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Yi={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Xi=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),$i=function(e){function r(n){e.call(this),this.options=t.extend(Object.create(Yi),n),t.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.addTo=function(e){return this._map&&this.remove(),this._map=e,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new t.Event("open")),this},r.prototype.isOpen=function(){return!!this._map},r.prototype.remove=function(){return this._content&&n.remove(this._content),this._container&&(n.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new t.Event("close")),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},r.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},r.prototype.getElement=function(){return this._container},r.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},r.prototype.setHTML=function(e){var n,r=t.window.document.createDocumentFragment(),i=t.window.document.createElement("body");for(i.innerHTML=e;n=i.firstChild;)r.appendChild(n);return this.setDOMContent(r)},r.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},r.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},r.prototype.setDOMContent=function(t){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=n.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(t),this._createCloseButton(),this._update(),this._focusFirstElement(),this},r.prototype.addClassName=function(t){this._container&&this._container.classList.add(t)},r.prototype.removeClassName=function(t){this._container&&this._container.classList.remove(t)},r.prototype.setOffset=function(t){return this.options.offset=t,this._update(),this},r.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},r.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=n.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="&#215;",this._closeButton.addEventListener("click",this._onClose))},r.prototype._onMouseUp=function(t){this._update(t.point)},r.prototype._onMouseMove=function(t){this._update(t.point)},r.prototype._onDrag=function(t){this._update(t.point)},r.prototype._update=function(e){var r=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=n.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=n.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach((function(t){return r._container.classList.add(t)})),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=ki(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var i=this._pos=this._trackPointer&&e?e:this._map.project(this._lngLat),o=this.options.anchor,a=function e(n){if(n){if("number"==typeof n){var r=Math.round(Math.sqrt(.5*Math.pow(n,2)));return{center:new t.Point(0,0),top:new t.Point(0,n),"top-left":new t.Point(r,r),"top-right":new t.Point(-r,r),bottom:new t.Point(0,-n),"bottom-left":new t.Point(r,-r),"bottom-right":new t.Point(-r,-r),left:new t.Point(n,0),right:new t.Point(-n,0)}}if(n instanceof t.Point||Array.isArray(n)){var i=t.Point.convert(n);return{center:i,top:i,"top-left":i,"top-right":i,bottom:i,"bottom-left":i,"bottom-right":i,left:i,right:i}}return{center:t.Point.convert(n.center||[0,0]),top:t.Point.convert(n.top||[0,0]),"top-left":t.Point.convert(n["top-left"]||[0,0]),"top-right":t.Point.convert(n["top-right"]||[0,0]),bottom:t.Point.convert(n.bottom||[0,0]),"bottom-left":t.Point.convert(n["bottom-left"]||[0,0]),"bottom-right":t.Point.convert(n["bottom-right"]||[0,0]),left:t.Point.convert(n.left||[0,0]),right:t.Point.convert(n.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!o){var s,u=this._container.offsetWidth,l=this._container.offsetHeight;s=i.y+a.bottom.y<l?["top"]:i.y>this._map.transform.height-l?["bottom"]:[],i.x<u/2?s.push("left"):i.x>this._map.transform.width-u/2&&s.push("right"),o=0===s.length?"bottom":s.join("-")}var c=i.add(a[o]).round();n.setTransform(this._container,Pi[o]+" translate("+c.x+"px,"+c.y+"px)"),Li(this._container,o,"popup")}},r.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var t=this._container.querySelector(Xi);t&&t.focus()}},r.prototype._onClose=function(){this.remove()},r}(t.Evented),qi={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Ti,NavigationControl:Ii,GeolocateControl:zi,AttributionControl:bi,ScaleControl:Ui,FullscreenControl:Wi,Popup:$i,Marker:Di,Style:Ge,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:function(){Bt().acquire(Lt)},clearPrewarmedResources:function(){var t=Dt;t&&(t.isPreloaded()&&1===t.numActive()?(t.release(Lt),Dt=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Rt.workerCount},set workerCount(t){Rt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:""};return qi})),n}()},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";function r(t){return t*t}function i(t){return t*(2-t)}function o(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}n.r(e),n.d(e,"quadIn",(function(){return r})),n.d(e,"quadOut",(function(){return i})),n.d(e,"quadInOut",(function(){return o}))},function(t,e,n){"use strict";function r(t){return t*t*t}function i(t){return--t*t*t+1}function o(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.r(e),n.d(e,"cubicIn",(function(){return r})),n.d(e,"cubicOut",(function(){return i})),n.d(e,"cubicInOut",(function(){return o}))},function(t,e,n){"use strict";n.r(e),n.d(e,"polyIn",(function(){return r})),n.d(e,"polyOut",(function(){return i})),n.d(e,"polyInOut",(function(){return o}));var r=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),i=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),o=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";n.r(e),n.d(e,"sinIn",(function(){return o})),n.d(e,"sinOut",(function(){return a})),n.d(e,"sinInOut",(function(){return s}));var r=Math.PI,i=r/2;function o(t){return 1==+t?1:1-Math.cos(t*i)}function a(t){return Math.sin(t*i)}function s(t){return(1-Math.cos(r*t))/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"expIn",(function(){return i})),n.d(e,"expOut",(function(){return o})),n.d(e,"expInOut",(function(){return a}));var r=n(343);function i(t){return Object(r.tpmt)(1-+t)}function o(t){return 1-Object(r.tpmt)(t)}function a(t){return((t*=2)<=1?Object(r.tpmt)(1-t):2-Object(r.tpmt)(t-1))/2}},function(t,e,n){"use strict";function r(t){return 1-Math.sqrt(1-t*t)}function i(t){return Math.sqrt(1- --t*t)}function o(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}n.r(e),n.d(e,"circleIn",(function(){return r})),n.d(e,"circleOut",(function(){return i})),n.d(e,"circleInOut",(function(){return o}))},function(t,e,n){"use strict";n.r(e),n.d(e,"bounceIn",(function(){return i})),n.d(e,"bounceOut",(function(){return o})),n.d(e,"bounceInOut",(function(){return a}));var r=7.5625;function i(t){return 1-o(1-t)}function o(t){return(t=+t)<4/11?r*t*t:t<8/11?r*(t-=6/11)*t+3/4:t<10/11?r*(t-=9/11)*t+15/16:r*(t-=21/22)*t+63/64}function a(t){return((t*=2)<=1?1-o(1-t):o(t-1)+1)/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"backIn",(function(){return r})),n.d(e,"backOut",(function(){return i})),n.d(e,"backInOut",(function(){return o}));var r=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(1.70158),i=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(1.70158),o=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158)},function(t,e,n){"use strict";n.r(e),n.d(e,"elasticIn",(function(){return o})),n.d(e,"elasticOut",(function(){return a})),n.d(e,"elasticInOut",(function(){return s}));var r=n(343),i=2*Math.PI,o=function t(e,n){var o=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function a(t){return e*Object(r.tpmt)(- --t)*Math.sin((o-t)/n)}return a.amplitude=function(e){return t(e,n*i)},a.period=function(n){return t(e,n)},a}(1,.3),a=function t(e,n){var o=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function a(t){return 1-e*Object(r.tpmt)(t=+t)*Math.sin((t+o)/n)}return a.amplitude=function(e){return t(e,n*i)},a.period=function(n){return t(e,n)},a}(1,.3),s=function t(e,n){var o=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function a(t){return((t=2*t-1)<0?e*Object(r.tpmt)(-t)*Math.sin((o-t)/n):2-e*Object(r.tpmt)(t)*Math.sin((o+t)/n))/2}return a.amplitude=function(e){return t(e,n*i)},a.period=function(n){return t(e,n)},a}(1,.3)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.circularDependencyToException=e.listMetadataForTarget=e.listRegisteredBindingsForServiceIdentifier=e.getServiceIdentifierAsString=e.getFunctionName=void 0;var r=n(241);function i(t){return"function"==typeof t?t.name:"symbol"==typeof t?t.toString():t}function o(t){if(t.name)return t.name;var e=t.toString(),n=e.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+e}e.getServiceIdentifierAsString=i,e.listRegisteredBindingsForServiceIdentifier=function(t,e,n){var r="",i=n(t,e);return 0!==i.length&&(r="\nRegistered bindings:",i.forEach((function(t){var e="Object";null!==t.implementationType&&(e=o(t.implementationType)),r=r+"\n "+e,t.constraint.metaData&&(r=r+" - "+t.constraint.metaData)}))),r},e.circularDependencyToException=function t(e){e.childRequests.forEach((function(e){if(function t(e,n){return null!==e.parentRequest&&(e.parentRequest.serviceIdentifier===n||t(e.parentRequest,n))}(e,e.serviceIdentifier)){var n=function(t){return function t(e,n){void 0===n&&(n=[]);var r=i(e.serviceIdentifier);return n.push(r),null!==e.parentRequest?t(e.parentRequest,n):n}(t).reverse().join(" --\x3e ")}(e);throw new Error(r.CIRCULAR_DEPENDENCY+" "+n)}t(e)}))},e.listMetadataForTarget=function(t,e){if(e.isTagged()||e.isNamed()){var n="",r=e.getNamedTag(),i=e.getCustomTags();return null!==r&&(n+=r.toString()+"\n"),null!==i&&i.forEach((function(t){n+=t.toString()+"\n"}))," "+t+"\n "+t+" - "+n}return" "+t},e.getFunctionName=o},function(t,e,n){var r=n(854),i=n(2070),o=n(2071),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},function(t,e,n){"use strict";n.r(e);var r=n(66),i=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return Object(r.__extends)(e,t),e}(n(702).default);e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"getEngine",(function(){return i})),n.d(e,"registerEngine",(function(){return o}));var r={};function i(t){var e=r[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}function o(t,e){r[t]=e}},function(t,e,n){"use strict";n.r(e),n.d(e,"View",(function(){return C})),n.d(e,"registerGeometry",(function(){return E}));var r=n(2),i=n(1),o=n(7),a=n(487),s=n(414),u=n(311),l=n(423),c=n(126),h=n(98),f=n(86),d=n(388),p=n(431),g=n(171),v=n(524),m=n(563),y=n(1600),b=n(276),_=n(1601),x=n(1602),w=n(525),O=n(1603),S=n(1604),C=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=Object(m.getComponentControllerNames)(),n.scalePool=new x.ScalePool,n.layoutFunc=_.default,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var r=n.createViewEvent(t);n.doPlotEvent(r),n.emit(e,r)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var r=n.createViewEvent(t);n.emit(e,r)}};var o=e.id,a=void 0===o?Object(i.uniqueId)("view"):o,s=e.parent,u=e.canvas,c=e.backgroundGroup,h=e.middleGroup,f=e.foregroundGroup,d=e.region,p=void 0===d?{start:{x:0,y:0},end:{x:1,y:1}}:d,g=e.padding,y=e.appendPadding,b=e.theme,w=e.options,O=e.limitInPlot,S=e.syncViewPadding;return n.parent=s,n.canvas=u,n.backgroundGroup=c,n.middleGroup=h,n.foregroundGroup=f,n.region=p,n.padding=g,n.appendPadding=y,n.options=Object(r.__assign)(Object(r.__assign)({},n.options),w),n.limitInPlot=O,n.id=a,n.syncViewPadding=S,n.themeObject=Object(i.isObject)(b)?Object(i.deepMix)({},Object(l.getTheme)("default"),Object(v.createTheme)(b)):Object(l.getTheme)(b),n.init(),n}return Object(r.__extends)(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(o.VIEW_LIFE_CIRCLE.BEFORE_RENDER,b.default.fromData(this,o.VIEW_LIFE_CIRCLE.BEFORE_RENDER,e)),this.paint(t),this.emit(o.VIEW_LIFE_CIRCLE.AFTER_RENDER,b.default.fromData(this,o.VIEW_LIFE_CIRCLE.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(o.VIEW_LIFE_CIRCLE.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear(),e[n].container.remove(!0),e[n].labelsContainer.remove(!0);this.geometries=[];var r=this.controllers;for(n=0;n<r.length;n++)"annotation"===r[n].name?r[n].clear(!0):r[n].clear();this.createdScaleKeys.forEach((function(e,n){t.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();var i=this.views;for(n=0;n<i.length;n++)i[n].clear();this.emit(o.VIEW_LIFE_CIRCLE.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(o.VIEW_LIFE_CIRCLE.BEFORE_DESTROY);var e=this.interactions;Object(i.each)(e,(function(t){t&&t.destroy()})),this.clear();for(var n=this.controllers,r=0,a=n.length;r<a;r++){n[r].destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.geometries,r=0,i=n.length;r<i;r++){n[r].changeVisible(e)}var o=this.controllers;for(r=0,i=o.length;r<i;r++){o[r].changeVisible(e)}return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return Object(i.set)(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},e.prototype.filter=function(t,e){return Object(i.isFunction)(e)?(Object(i.set)(this.options,["filters",t],e),this):(!e&&Object(i.get)(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return Object(i.isBoolean)(t)?Object(i.set)(this.options,["axes"],t):Object(i.set)(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return Object(i.isBoolean)(t)?Object(i.set)(this.options,["legends"],t):Object(i.isString)(t)?(Object(i.set)(this.options,["legends",t],e),Object(i.isPlainObject)(e)&&(null==e?void 0:e.selected)&&Object(i.set)(this.options,["filters",t],(function(t){var n;return null===(n=null==e?void 0:e.selected[t])||void 0===n||n}))):Object(i.set)(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return Object(i.isString)(t)?Object(i.set)(this.options,["scales",t],e):Object(i.isObject)(t)&&Object(i.each)(t,(function(t,e){Object(i.set)(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return Object(i.set)(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},e.prototype.coordinate=function(t,e){return Object(i.isString)(t)?Object(i.set)(this.options,"coordinate",{type:t,cfg:e}):Object(i.set)(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=Object(s.getFacet)(t);if(!n)throw new Error("facet '".concat(t,"' is not exist!"));return this.facetInstance=new n(this,Object(r.__assign)(Object(r.__assign)({},e),{type:t})),this},e.prototype.animate=function(t){return Object(i.set)(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),Object(i.mix)(this.options,t),this.views.forEach((function(t){return t.destroy()})),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},e.prototype.option=function(t,n){if(e.prototype[t])throw new Error("Can't use built in variable name \"".concat(t,'", please change another one.'));return Object(i.set)(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=Object(i.isObject)(t)?Object(i.deepMix)({},this.themeObject,Object(v.createTheme)(t)):Object(l.getTheme)(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var r=Object(u.createInteraction)(t,this,e);return r&&(r.init(),this.interactions[t]=r),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,b.default.fromData(this,o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].changeData(t)}this.emit(o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,b.default.fromData(this,o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.createView=function(t){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var n={data:this.options.data,scales:Object(i.clone)(this.options.scales),axes:Object(i.clone)(this.options.axes),coordinate:Object(i.clone)(this.coordinateController.getOption()),tooltip:Object(i.clone)(this.options.tooltip),legends:Object(i.clone)(this.options.legends),animate:this.options.animate,visible:this.visible},a=new e(Object(r.__assign)(Object(r.__assign)({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:o.GROUP_Z_INDEX.BG}),middleGroup:this.middleGroup.addGroup({zIndex:o.GROUP_Z_INDEX.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:o.GROUP_Z_INDEX.FORE}),theme:this.themeObject,padding:this.padding},t),{options:Object(r.__assign)(Object(r.__assign)({},n),Object(i.get)(t,"options",{}))}));return this.views.push(a),a},e.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},e.prototype.removeView=function(t){var e=Object(i.remove)(this.views,(function(e){return e===t}))[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={},e=[];return this.geometries.forEach((function(n){var r=n.getYScale(),i=r.field;t[i]||(t[i]=!0,e.push(r))})),e},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},r=0,i=e.length;r<i;r++){var o=e[r],a="x"===t?o.getXScale():o.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},e.prototype.getScale=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getScaleByField=function(t,e){return this.getScale(t,e)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getOriginalData=function(){return this.options.data},e.prototype.getPadding=function(){return this.autoPadding.getPadding()},e.prototype.getGeometries=function(){return this.geometries},e.prototype.getElements=function(){return Object(i.reduce)(this.geometries,(function(t,e){return t.concat(e.getElements())}),[])},e.prototype.getElementsBy=function(t){return this.getElements().filter((function(e){return t(e)}))},e.prototype.getLayer=function(t){return t===o.LAYER.BG?this.backgroundGroup:t===o.LAYER.MID?this.middleGroup:(o.LAYER.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return Object(h.isPointInCoordinate)(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return Object(i.flatten)(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return Object(f.uniq)(Object(i.flatten)(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.getXY=function(t){var e,n,r=this.getCoordinate(),o=this.getScalesByDim("x"),a=this.getScalesByDim("y");if(Object(i.each)(t,(function(t,r){o[r]&&(e=o[r].scale(t)),a[r]&&(n=a[r].scale(t))})),!Object(i.isNil)(e)&&!Object(i.isNil)(n))return r.convert({x:e,y:n})},e.prototype.getController=function(t){return Object(i.find)(this.controllers,(function(e){return e.name===t}))},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],r=0,i=e.length;r<i;r++){var o=e[r],a=o.dataArray;o.sort(a);for(var s=void 0,u=0,l=a.length;u<l;u++){var c=a[u];(s=Object(d.findDataByPoint)(t,c,o))&&n.push(s)}}var h=this.views;for(r=0,i=h.length;r<i;r++){var f=h[r].getSnapRecords(t);n=n.concat(f)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,r=e.length;n<r;n++){var i=e[n];t=t.concat(i.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===Object(i.size)(e)?t:Object(i.filter)(t,(function(t,n){return Object.keys(e).every((function(r){return(0,e[r])(t[r],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,r=Object(i.get)(n,t);return Object(i.isUndefined)(r)?e:e.filter((function(e,n){return r(e[t],e,n)}))},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,n=t.end,r=this.coordinateBBox.bl,o=this.coordinateBBox.tr;Object(i.isEqual)(e,r)&&Object(i.isEqual)(n,o)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(r,o))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(o.VIEW_LIFE_CIRCLE.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(o.VIEW_LIFE_CIRCLE.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=Object(i.get)(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var e=this.viewBBox,n=e.x,r=e.y,o=e.width,a=e.height;this.backgroundStyleRectShape.attr({fill:t,x:n,y:r,width:o,height:a})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},e.prototype.renderPaddingRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=Object(O.calculatePadding)(this).shrink(Object(p.parsePadding)(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate(),this.controllers.find((function(t){return"tooltip"===t.name})).update();for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderPaddingRecursive(t)}},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?S.defaultSyncViewPadding:Object(i.isFunction)(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,w.PaddingCal),this.views.forEach((function(t){t.coordinateBBox=t.viewBBox.shrink(t.autoPadding.getPadding()),t.adjustCoordinate()}))),this.doLayout();for(var n=this.views,r=0,o=n.length;r<o;r++){n[r].renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=Object(h.getCoordinateClipCfg)(this.coordinateInstance),r=n.type,i=n.attrs;e.setClip({type:r,attrs:i})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var o=this.views,a=0,s=o.length;a<s;a++){o[a].renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,o){var a=Object(i.get)(this.options.scales,[t]),s=Object(r.__assign)(Object(r.__assign)({},a),n);return this.parent?this.parent.createScale(t,e,s,o):this.scalePool.createScale(t,e,s,o)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,n,r;if(this.parent){var i=this.parent.coordinateBBox;t=i.x,e=i.y,n=i.width,r=i.height}else t=0,e=0,n=this.canvas.get("width"),r=this.canvas.get("height");var o=this.region,a=o.start,s=o.end,u=new c.BBox(t+n*a.x,e+r*a.y,n*(s.x-a.x),r*(s.y-a.y));this.viewBBox&&this.viewBBox.isEqual(u)||(this.viewBBox=new c.BBox(t+n*a.x,e+r*a.y,n*(s.x-a.x),r*(s.y-a.y))),this.coordinateBBox=this.viewBBox},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var r=t[e],i=Object(m.getComponentController)(r);i&&this.controllers.push(new i(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,r=e?e.get("origin"):null,i=new b.default(this,t,r);return i.type=n,i},e.prototype.doPlotEvent=function(t){var e=t.type,n={x:t.x,y:t.y};if(["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"].includes(e)){var r=this.isPointInPlot(n),i=t.clone();if(r){var a="plot:".concat(e);i.type=a,this.emit(a,i),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!r?("mousemove"===e&&(i.type=o.PLOT_EVENTS.MOUSE_LEAVE,this.emit(o.PLOT_EVENTS.MOUSE_LEAVE,i)),i.type=o.PLOT_EVENTS.LEAVE,this.emit(o.PLOT_EVENTS.LEAVE,i)):!this.isPreMouseInPlot&&r&&("mousemove"===e&&(i.type=o.PLOT_EVENTS.MOUSE_ENTER,this.emit(o.PLOT_EVENTS.MOUSE_ENTER,i)),i.type=o.PLOT_EVENTS.ENTER,this.emit(o.PLOT_EVENTS.ENTER,i)),this.isPreMouseInPlot=r):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(i.type=o.PLOT_EVENTS.MOUSE_LEAVE,this.emit(o.PLOT_EVENTS.MOUSE_LEAVE,i)),i.type=o.PLOT_EVENTS.LEAVE,this.emit(o.PLOT_EVENTS.LEAVE,i),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=Object(i.get)(this.options,"scales",{}),r=this.geometries,o=0,a=r.length;o<a;o++){var s=r[o];s.scales=this.getGeometryScales();var u={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?s.update(u):s.init(u)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),r=n.data,i=n.scales,o=void 0===i?{}:i,a=this.filteredData,s=0,u=t.length;s<u;s++){var l=t[s],c=o[l],h=this.getScaleKey(l);this.createScale(l,e.includes(l)?r:a,c,h),this.createdScaleKeys.set(h,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var r=t[n];e[r]=this.getScaleByField(r)}return e},e.prototype.getScaleFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){var i=n[r].getScaleFields();Object(f.uniq)(i,t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){var i=n[r].getGroupFields();Object(f.uniq)(i,t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=Object(r.__spreadArray)([this.getXScale()],Object(r.__read)(this.getYScales()),!1).filter((function(t){return!!t})),n=this.getCoordinate(),o=this.options.scales;Object(i.each)(e,(function(e){var r=e.field,a=e.values,s=e.isCategory,u=e.isIdentity;(s||u)&&a&&!Object(i.get)(o,[r,"range"])&&(e.range=Object(g.getDefaultCategoryScaleRange)(e,n,t.theme))}))},e.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var r=e[n];t?r.update():(r.clear(),r.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),r={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},i=this.geometries,o=0;o<i.length;o++){var a=i[o];a.coordinate=n,a.canvasRegion=r,e||a.animate(!1),a.paint(t)}},e.prototype.renderComponents=function(t){for(var e=this.getComponents(),n=0;n<e.length;n++){e[n].component.render()}},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){var t=this,e=this.options,n=e.geometries,o=void 0===n?[]:n,a=e.interactions,s=void 0===a?[]:a,u=e.views,l=void 0===u?[]:u,c=e.annotations,h=void 0===c?[]:c,f=e.coordinate,d=e.events,p=e.facets;this.coordinateController?f&&this.coordinateController.update(f):this.coordinateController=new y.default(f);for(var g=0;g<o.length;g++){var v=o[g];this.createGeometry(v)}for(var m=0;m<s.length;m++){var b=s[m],_=b.type,x=b.cfg;this.interaction(_,x)}for(var w=0;w<l.length;w++){var O=l[w];this.createView(O)}for(var S=this.getController("annotation"),C=0;C<h.length;C++){var E=h[C];S.annotation(E)}d&&Object(i.each)(d,(function(e,n){t.on(n,e)})),p&&Object(i.each)(p,(function(e){var n=e.type,i=Object(r.__rest)(e,["type"]);t.facet(n,i)}))},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,r=void 0===n?{}:n;if(this[e]){var o=this[e](r);Object(i.each)(t,(function(t,e){Object(i.isFunction)(o[e])&&o[e](t)}))}},e.prototype.getScaleKey=function(t){return"".concat(this.id,"-").concat(t)},e}(a.default);function E(t,e){C.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=Object(r.__assign)({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),i=new e(n);return this.geometries.push(i),i}}e.default=C},function(t,e,n){"use strict";n.r(e),n.d(e,"adapteStyle",(function(){return a})),n.d(e,"setStatisticContainerStyle",(function(){return s})),n.d(e,"renderStatistic",(function(){return u})),n.d(e,"renderGaugeStatistic",(function(){return l}));var r=n(2),i=n(1),o=n(3);function a(t){var e={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",display:"flex",justifyContent:"center",alignItems:"center"},n=["stroke","lineWidth","shadowColor","strokeOpacity","shadowBlur","shadowOffsetX","shadowOffsetY","fill"];Object(i.get)(t,"fill")&&(e.color=t.fill);var r=Object(o.pick)(t,n),a=r.shadowColor,s=r.shadowBlur,u=void 0===s?0:s,l=r.shadowOffsetX,c=void 0===l?0:l,h=r.shadowOffsetY,f=void 0===h?0:h;e["text-shadow"]=""+[a,c+"px",f+"px",u+"px"].join(" ");var d=Object(o.pick)(t,n),p=d.stroke,g=d.lineWidth,v=void 0===g?0:g;return e["-webkit-text-stroke"]=""+[v+"px",p].join(" "),Object(i.each)(t,(function(t,r){["fontSize"].includes(r)&&Object(i.isNumber)(t)?e[Object(o.kebabCase)(r)]=t+"px":r&&!n.includes(r)&&(e[Object(o.kebabCase)(r)]=""+t)})),e}function s(t,e){t.style["pointer-events"]="none",Object(i.each)(e,(function(e,n){n&&e&&(t.style[n]=e)}))}var u=function(t,e,n){var u=e.statistic,l=e.plotType,c=u.title,h=u.content;[c,h].forEach((function(e,u){if(e){var f="";f=0===u?h?"translate(-50%, -100%)":"translate(-50%, -50%)":c?"translate(-50%, 0)":"translate(-50%, -50%)";var d=Object(i.isFunction)(e.style)?e.style(n):e.style;t.annotation().html(Object(r.__assign)({position:["50%","50%"],html:function(t,o){var u=o.getCoordinate(),c=0;if("pie"===l||"ring-progress"===l)c=u.getRadius()*u.innerRadius*2;else if("liquid"===l){var h=Object(i.get)(o.geometries,[0,"elements",0,"shape"]);if(h)c=h.find((function(t){return"wrap"===t.get("name")})).getCanvasBBox().width}else c||(c=u.getWidth());s(t,Object(r.__assign)({width:c+"px",transform:f},a(d)));var p=o.getData();if(e.customHtml)return e.customHtml(t,o,n,p);var g=e.content;return e.formatter&&(g=e.formatter(n,p)),g?Object(i.isString)(g)?g:""+g:"<div></div>"},key:(0===u?"top":"bottom")+"-statistic"},Object(o.pick)(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},l=function(t,e,n){var u=e.statistic;[u.title,u.content].forEach((function(e){if(e){var u=Object(i.isFunction)(e.style)?e.style(n):e.style;t.annotation().html(Object(r.__assign)({position:["50%","100%"],html:function(t,o){var l=o.getCoordinate(),c=o.views[0].getCoordinate(),h=c.getCenter(),f=c.getRadius(),d=Math.max(Math.sin(c.startAngle),Math.sin(c.endAngle))*f,p=h.y+d-l.y.start-parseFloat(Object(i.get)(u,"fontSize",0)),g=l.getRadius()*l.innerRadius*2;s(t,Object(r.__assign)({width:g+"px",transform:"translate(-50%, "+p+"px)"},a(u)));var v=o.getData();if(e.customHtml)return e.customHtml(t,o,n,v);var m=e.content;return e.formatter&&(m=e.formatter(n,v)),m?Object(i.isString)(m)?m:""+m:"<div></div>"}},Object(o.pick)(e,["offsetX","offsetY","rotate","style","formatter"])))}}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"Funnel",(function(){return l}));var r=n(2),i=n(1),o=n(26),a=n(3),s=n(764),u=n(81);n.d(e,"FUNNEL_CONVERSATION_FIELD",(function(){return u.FUNNEL_CONVERSATION}));n(594);var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="funnel",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return u.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=Object(a.getAllElementsRecursively)(this.chart);Object(i.each)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=Object(a.getAllElementsRecursively)(this.chart),e=[];return Object(i.each)(t,(function(t){var n=t.getData(),r=t.getStates();Object(i.each)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.CONVERSATION_FIELD=u.FUNNEL_CONVERSATION,e.PERCENT_FIELD=u.FUNNEL_PERCENT,e.TOTAL_PERCENT_FIELD=u.FUNNEL_TOTAL_PERCENT,e}(o.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"ArcShape",(function(){return o}));var r=n(66),i=n(36),o=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,u=Math.cos(o),l=Math.sin(o);t.moveTo(u*i+n,l*i+r),t.arc(n,r,i,o,a,!s)},e}(i.default);a.prototype.type="arc",e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"parseXML",(function(){return i}));var r=n(0);function i(t){Object(r.isString)(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(658),i=n(1569);function o(t,e){void 0===e&&(e=!1);for(var n,o,s=Object(r.default)(t),u={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},l=[],c="",h=s.length,f=[],d=0;d<h;d+=1)s[d]&&(c=s[d][0]),l[d]=c,s[d]=Object(i.segmentToCubic)(s[d],u),a(s,l,d),h=s.length,"Z"===c&&f.push(d),o=(n=s[d]).length,u.x1=+n[o-2],u.y1=+n[o-1],u.x2=+n[o-4]||u.x1,u.y2=+n[o-3]||u.y1;return e?[s,f]:s}function a(t,e,n){if(t[n].length>7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function o(t,e,n){var o=!1,a=t.length;if(a<=2)return!1;for(var s=0;s<a;s++){var u=t[s],l=t[(s+1)%a];if(i(u,l,[e,n]))return!0;r(u[1]-n)>0!=r(l[1]-n)>0&&r(e-(n-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(o=!o)}return o}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(r.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(n(386).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(r.__extends)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),o=Math.floor(r*(n-1));if(o>=n-1)return Object(i.last)(e);if(o<0)return Object(i.head)(e);var a=e[o],s=o/(n-1);return a+(r-s)/((o+1)/(n-1)-s)*(e[o+1]-a)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(Object(i.last)(e)!==this.max&&e.push(this.max),Object(i.head)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<Object(i.head)(e))return 0;if(t>Object(i.last)(e))return 1;var n=0;return Object(i.each)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(n(386).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"registerComponentController",(function(){return i})),n.d(e,"unregisterComponentController",(function(){return o})),n.d(e,"getComponentControllerNames",(function(){return a})),n.d(e,"getComponentController",(function(){return s}));var r={};function i(t,e){r[t]=e}function o(t){delete r[t]}function a(){return Object.keys(r)}function s(t){return r[t]}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(62);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function a(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}function s(t,e){var n=e[1],i=e[2],s=Object(r.mod)(Object(r.toRadian)(e[3]),2*Math.PI),u=e[4],l=e[5],c=t[0],h=t[1],f=e[6],d=e[7],p=Math.cos(s)*(c-f)/2+Math.sin(s)*(h-d)/2,g=-1*Math.sin(s)*(c-f)/2+Math.cos(s)*(h-d)/2,v=p*p/(n*n)+g*g/(i*i);v>1&&(n*=Math.sqrt(v),i*=Math.sqrt(v));var m=n*n*(g*g)+i*i*(p*p),y=m?Math.sqrt((n*n*(i*i)-m)/m):1;u===l&&(y*=-1),isNaN(y)&&(y=0);var b=i?y*n*g/i:0,_=n?y*-i*p/n:0,x=(c+f)/2+Math.cos(s)*b-Math.sin(s)*_,w=(h+d)/2+Math.sin(s)*b+Math.cos(s)*_,O=[(p-b)/n,(g-_)/i],S=[(-1*p-b)/n,(-1*g-_)/i],C=a([1,0],O),E=a(O,S);return o(O,S)<=-1&&(E=Math.PI),o(O,S)>=1&&(E=0),0===l&&E>0&&(E-=2*Math.PI),1===l&&E<0&&(E+=2*Math.PI),{cx:x,cy:w,rx:Object(r.isSamePoint)(t,[f,d])?0:n,ry:Object(r.isSamePoint)(t,[f,d])?0:i,startAngle:C,endAngle:C+E,xRotation:s,arcFlag:u,sweepFlag:l}}},function(t,e,n){"use strict";n.r(e);var r=n(1194);n.d(e,"cluster",(function(){return r.default}));var i=n(333);n.d(e,"hierarchy",(function(){return i.default}));var o=n(876);n.d(e,"pack",(function(){return o.default}));var a=n(684);n.d(e,"packSiblings",(function(){return a.default}));var s=n(685);n.d(e,"packEnclose",(function(){return s.default}));var u=n(875);n.d(e,"partition",(function(){return u.default}));var l=n(1195);n.d(e,"stratify",(function(){return l.default}));var c=n(1196);n.d(e,"tree",(function(){return c.default}));var h=n(877);n.d(e,"treemap",(function(){return h.default}));var f=n(1197);n.d(e,"treemapBinary",(function(){return f.default}));var d=n(315);n.d(e,"treemapDice",(function(){return d.default}));var p=n(382);n.d(e,"treemapSlice",(function(){return p.default}));var g=n(1198);n.d(e,"treemapSliceDice",(function(){return g.default}));var v=n(424);n.d(e,"treemapSquarify",(function(){return v.default}));var m=n(1199);n.d(e,"treemapResquarify",(function(){return m.default}))},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return v})),n.d(e,"NullWorker",(function(){return m}));var r=n(225);n.d(e,"assert",(function(){return r.assert}));var i=n(362);n.d(e,"isWorker",(function(){return i.isWorker}));var o=n(688);n.d(e,"WorkerJob",(function(){return o.default}));var a=n(471);n.d(e,"WorkerThread",(function(){return a.default}));var s=n(567);n.d(e,"WorkerFarm",(function(){return s.default}));var u=n(689);n.d(e,"WorkerPool",(function(){return u.default}));var l=n(283);n.d(e,"WorkerBody",(function(){return l.default}));var c=n(859);n.d(e,"processOnWorker",(function(){return c.processOnWorker})),n.d(e,"canProcessOnWorker",(function(){return c.canProcessOnWorker}));var h=n(1292);n.d(e,"createWorker",(function(){return h.createWorker}));var f=n(568);n.d(e,"getWorkerURL",(function(){return f.getWorkerURL}));var d=n(472);n.d(e,"getTransferList",(function(){return d.getTransferList}));var p=n(860);n.d(e,"getLibraryUrl",(function(){return p.getLibraryUrl})),n.d(e,"loadLibrary",(function(){return p.loadLibrary}));var g=n(690);n.d(e,"AsyncQueue",(function(){return g.default}));var v="0.0.3",m={id:"null",name:"null",module:"web-worker-helper",options:{}}},function(t,e,n){"use strict";n.r(e);var r=n(689),i=n(471),o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},a=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},u=function(){function t(t){this.workerPools=new Map,this.props=o({},s),this.setProps(t),this.workerPools=new Map}return t.isSupported=function(){return i.default.isSupported()},t.getWorkerFarm=function(e){return void 0===e&&(e={}),t.workerFarm=t.workerFarm||new t({}),t.workerFarm.setProps(e),t.workerFarm},t.prototype.destroy=function(){var t,e;try{for(var n=a(this.workerPools.values()),r=n.next();!r.done;r=n.next()){r.value.destroy()}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},t.prototype.setProps=function(t){var e,n;this.props=o(o({},this.props),t);try{for(var r=a(this.workerPools.values()),i=r.next();!i.done;i=r.next()){i.value.setProps(this.getWorkerPoolProps())}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.getWorkerPool=function(t){var e=t.name,n=t.source,i=t.url,o=this.workerPools.get(e);return o||((o=new r.default({name:e,source:n,url:i})).setProps(this.getWorkerPoolProps()),this.workerPools.set(e,o)),o},t.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}},t}();e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"getWorkerName",(function(){return i})),n.d(e,"getWorkerURL",(function(){return o}));var r=n(225);function i(t){return""+t.name}function o(t,e){void 0===e&&(e={});var n=e[t.id]||{},i=t.name+".worker.js",o=n.workerUrl;return"test"===e._workerType&&(o=t.module+"/dist/"+i),o||(o="https://unpkg.com/"+t.module+"/dist/"+i),Object(r.assert)(o),o}},function(t,e,n){"use strict";var r;n.r(e),r=n(54).default.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},e.default=r},function(t,e,n){"use strict";n.r(e);var r=n(57),i=[0,0],o=[0,0],a=new r.default,s=new r.default,u=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new r.default;for(n=0;n<2;n++)this._axes[n]=new r.default;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,o=t.x,a=t.y,s=o+t.width,u=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,u),n[3].set(o,u),e)for(var l=0;l<4;l++)n[l].transform(e);r.default.sub(i[0],n[1],n[0]),r.default.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,t,a,s,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,a,s,i,-1)&&(n=!1,i)||i||r.default.copy(e,n?a:s),n},t.prototype._intersectCheckOneSide=function(t,e,n,a,s,u){for(var l=!0,c=0;c<2;c++){var h=this._axes[c];if(this._getProjMinMaxOnAxis(c,t._corners,i),this._getProjMinMaxOnAxis(c,e._corners,o),i[1]<o[0]||i[0]>o[1]){if(l=!1,s)return l;var f=Math.abs(o[0]-i[1]),d=Math.abs(i[0]-o[1]);Math.min(f,d)>a.len()&&(f<d?r.default.scale(a,h,-f*u):r.default.scale(a,h,d*u))}else if(n){f=Math.abs(o[0]-i[1]),d=Math.abs(i[0]-o[1]);Math.min(f,d)<n.len()&&(f<d?r.default.scale(n,h,f*u):r.default.scale(n,h,-d*u))}}return l},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,u=1;u<e.length;u++){var l=e[u].dot(r)+i[t];a=Math.min(l,a),s=Math.max(l,s)}n[0]=a,n[1]=s},t}();e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"registerImpl",(function(){return i})),n.d(e,"getImpl",(function(){return o}));var r={};function i(t,e){r[t]=e}function o(t){return r[t]}},function(t,e,n){"use strict";n.r(e),n.d(e,"normalizeLineDash",(function(){return i})),n.d(e,"getLineDash",(function(){return o}));var r=n(0);function i(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(r.isNumber)(t)?[t]:Object(r.isArray)(t)?t:null:null}function o(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&i(e.lineDash,e.lineWidth),o=e.lineDashOffset;if(n){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(n=Object(r.map)(n,(function(t){return t/a})),o/=a)}return[n,o]}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(228),o=n(574),a=n(123),s=n(0),u=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new o.default({})),Object(s.isArray)(r)&&(r=new o.default({categories:Object(s.map)(r,(function(t){return Object(s.isObject)(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return Object(r.__extends)(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(s.isString)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),a.contain(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),a.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(a.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i<a;++i){var s=e[i];n[i]=s,r[s]=i}for(var u=0;i<o;++i){for(;null!=r[u];)u++;n.push(u),r[u]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(i.default);i.default.registerClass(u),e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(0),i=0,o=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++i}return t.createByAxisModel=function(e){var n=e.option,i=n.data,o=i&&Object(r.map)(i,a);return new t({categories:o,needCollect:!o,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(r.isString)(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(r.createHashMap)(this.categories))},t}();function a(t){return Object(r.isObject)(t)&&null!=t.value?t.value:t+""}e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"ECPolyline",(function(){return f})),n.d(e,"ECPolygon",(function(){return p}));var r=n(5),i=n(36),o=n(151),a=n(53),s=Math.min,u=Math.max;function l(t,e){return isNaN(t)||isNaN(e)}function c(t,e,n,r,i,o,a,c,h){for(var f,d,p,g,v,m,y=n,b=0;b<r;b++){var _=e[2*y],x=e[2*y+1];if(y>=i||y<0)break;if(l(_,x)){if(h){y+=o;continue}break}if(y===n)t[o>0?"moveTo":"lineTo"](_,x),p=_,g=x;else{var w=_-f,O=x-d;if(w*w+O*O<.5){y+=o;continue}if(a>0){for(var S=y+o,C=e[2*S],E=e[2*S+1];C===_&&E===x&&b<r;)b++,y+=o,C=e[2*(S+=o)],E=e[2*S+1],w=(_=e[2*y])-f,O=(x=e[2*y+1])-d;var T=b+1;if(h)for(;l(C,E)&&T<r;)T++,C=e[2*(S+=o)],E=e[2*S+1];var A=.5,M=0,I=0,j=void 0,k=void 0;if(T>=r||l(C,E))v=_,m=x;else{M=C-f,I=E-d;var P=_-f,L=C-_,R=x-d,D=E-x,N=void 0,B=void 0;if("x"===c){var F=M>0?1:-1;v=_-F*(N=Math.abs(P))*a,m=x,j=_+F*(B=Math.abs(L))*a,k=x}else if("y"===c){var z=I>0?1:-1;v=_,m=x-z*(N=Math.abs(R))*a,j=_,k=x+z*(B=Math.abs(D))*a}else N=Math.sqrt(P*P+R*R),v=_-M*a*(1-(A=(B=Math.sqrt(L*L+D*D))/(B+N))),m=x-I*a*(1-A),k=x+I*a*A,j=s(j=_+M*a*A,u(C,_)),k=s(k,u(E,x)),j=u(j,s(C,_)),m=x-(I=(k=u(k,s(E,x)))-x)*N/B,v=s(v=_-(M=j-_)*N/B,u(f,_)),m=s(m,u(d,x)),j=_+(M=_-(v=u(v,s(f,_))))*B/N,k=x+(I=x-(m=u(m,s(d,x))))*B/N}t.bezierCurveTo(p,g,v,m,_,x),p=j,g=k}else t.lineTo(_,x)}f=_,d=x,y+=o}return b}var h=function(){this.smooth=0,this.smoothConstraint=!0},f=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return Object(r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new h},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0&&l(n[2*i-2],n[2*i-1]);i--);for(;r<i&&l(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=c(t,n,r,i,i,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,s=o.default.CMD,u="x"===e,l=[],c=0;c<i.length;){var h=void 0,f=void 0,d=void 0,p=void 0,g=void 0,v=void 0,m=void 0;switch(i[c++]){case s.M:n=i[c++],r=i[c++];break;case s.L:if(h=i[c++],f=i[c++],(m=u?(t-n)/(h-n):(t-r)/(f-r))<=1&&m>=0){var y=u?(f-r)*m+r:(h-n)*m+n;return u?[t,y]:[y,t]}n=h,r=f;break;case s.C:h=i[c++],f=i[c++],d=i[c++],p=i[c++],g=i[c++],v=i[c++];var b=u?Object(a.cubicRootAt)(n,h,d,g,t,l):Object(a.cubicRootAt)(r,f,p,v,t,l);if(b>0)for(var _=0;_<b;_++){var x=l[_];if(x<=1&&x>=0){y=u?Object(a.cubicAt)(r,f,p,v,x):Object(a.cubicAt)(n,h,d,g,x);return u?[t,y]:[y,t]}}n=g,r=v}}},e}(i.default),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(h),p=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new d},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&l(n[2*o-2],n[2*o-1]);o--);for(;i<o&&l(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=c(t,n,i,o,o,1,e.smooth,a,e.connectNulls);c(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}},e}(i.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"layout",(function(){return i}));var r=n(0);function i(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,o={},a=i.position,s=i.orient,u=n.getRect(),l=[u.x,u.x+u.width,u.y,u.y+u.height],c={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};o.position=["vertical"===s?c.vertical[a]:l[0],"horizontal"===s?c.horizontal[a]:l[3]];o.rotation=Math.PI/2*{horizontal:0,vertical:1}[s];o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,right:1,left:-1}[a],t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),r.retrieve(e.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var h=e.rotate;return null==h&&(h=t.get(["axisLabel","rotate"])),o.labelRotation="top"===a?-h:h,o.z2=1,o}},function(t,e,n){"use strict";n.r(e),n.d(e,"layout",(function(){return a})),n.d(e,"makeBackground",(function(){return s}));var r=n(33),i=n(71),o=n(79);function a(t,e,n){var i=e.getBoxLayoutParams(),o=e.get("padding"),a={width:n.getWidth(),height:n.getHeight()},s=Object(r.getLayoutRect)(i,a,o);Object(r.box)(e.get("orient"),t,e.get("itemGap"),s.width,s.height),Object(r.positionElement)(t,i,a,o)}function s(t,e){var n=i.normalizeCssArray(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new o.default({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1})}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(12),o=n(401),a=n(9),s=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],u=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var o=c(e,t);Object(r.each)(h,(function(t,e){(!n||!n.include||Object(r.indexOf)(n.include,e)>=0)&&t(o,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var r=p[t.brushType](0,n,e);t.__rangeOffset={offset:v[t.brushType](r.values,t.range,[1,1]),xyMinMax:r.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Object(r.each)(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&Object(r.each)(i.coordSyses,(function(r){var i=p[t.brushType](1,r,t.range,!0);n(t,i.values,r,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(r.each)(t,(function(t){var n,r,i,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var u=p[t.brushType](0,s.coordSys,t.coordRange),l=t.__rangeOffset;t.range=l?v[t.brushType](u.values,l.offset,(n=u.xyMinMax,r=l.xyMinMax,i=y(n),o=y(r),a=[i[0]/o[0],i[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):u.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(r.map)(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:o.makeRectPanelClipPath(r),isTargetByCursor:o.makeRectIsTargetByCursor(r,t,n.coordSysModel),getLinearBrushOtherExtent:o.makeLinearBrushOtherExtent(r)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&Object(r.indexOf)(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,r=c(e,t),i=0;i<n.length;i++){var o=n[i],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<f.length;s++)if(f[s](r,o))return o}return!0},t}();function l(t){return t[0]>t[1]&&t.reverse(),t}function c(t,e){return Object(a.parseFinder)(t,e,{includeMainTypes:s})}var h={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,o=t.gridModels,a=Object(r.createHashMap)(),s={},u={};(n||i||o)&&(Object(r.each)(n,(function(t){var e=t.axis.grid.model;a.set(e.id,e),s[e.id]=!0})),Object(r.each)(i,(function(t){var e=t.axis.grid.model;a.set(e.id,e),u[e.id]=!0})),Object(r.each)(o,(function(t){a.set(t.id,t),s[t.id]=!0,u[t.id]=!0})),a.each((function(t){var o=t.coordinateSystem,a=[];Object(r.each)(o.getCartesians(),(function(t,e){(Object(r.indexOf)(n,t.getAxis("x").model)>=0||Object(r.indexOf)(i,t.getAxis("y").model)>=0)&&a.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:d.grid,xAxisDeclared:s[t.id],yAxisDeclared:u[t.id]})})))},geo:function(t,e){Object(r.each)(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:d.geo})}))}},f=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,i=t.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],d={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(i.getTransform(t)),e}},p={lineX:Object(r.curry)(g,0),lineY:Object(r.curry)(g,1),rect:function(t,e,n,r){var i=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),o=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),a=[l([i[0],o[0]]),l([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:Object(r.map)(n,(function(n){var r=t?e.pointToData(n,i):e.dataToPoint(n,i);return o[0][0]=Math.min(o[0][0],r[0]),o[1][0]=Math.min(o[1][0],r[1]),o[0][1]=Math.max(o[0][1],r[0]),o[1][1]=Math.max(o[1][1],r[1]),r})),xyMinMax:o}}};function g(t,e,n,i){var o=n.getAxis(["x","y"][t]),a=l(Object(r.map)([0,1],(function(t){return e?o.coordToData(o.toLocalCoord(i[t]),!0):o.toGlobalCoord(o.dataToCoord(i[t]))}))),s=[];return s[t]=a,s[1-t]=[NaN,NaN],{values:a,xyMinMax:s}}var v={lineX:Object(r.curry)(m,0),lineY:Object(r.curry)(m,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(r.map)(t,(function(t,r){return[t[0]-n[0]*e[r][0],t[1]-n[1]*e[r][1]]}))}};function m(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function y(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(64),a=n(9),s=n(41),u=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),i.isArray(e)&&i.each(e,(function(t,r){i.isString(t)&&(t={type:t}),e[r]=i.merge(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var r=t[n].get("name");if(this.isSelected(r)){this.select(r),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var s=r.legendVisualProvider.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(s)),s.length?e=e.concat(s):i=!0}else i=!0;i&&Object(a.isNameSpecified)(r)&&e.push(r.name)})),this._availableNames=n;var r=this.get("data")||e,s=i.map(r,(function(t){return(i.isString(t)||i.isNumber(t))&&(t={name:t}),new o.default(t,this,this.ecModel)}),this);this._data=s},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;i.each(n,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;i.each(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;i.each(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&i.indexOf(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(s.default);e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"setViewInfoToCoordSysRecord",(function(){return l})),n.d(e,"disposeCoordSysRecordIfNeeded",(function(){return c})),n.d(e,"installDataZoomRoamProcessor",(function(){return p}));var r=n(321),i=n(143),o=n(9),a=n(0),s=n(172),u=Object(o.makeInner)();function l(t,e,n){u(t).coordSysRecordMap.each((function(t){var r=t.dataZoomInfoMap.get(e.uid);r&&(r.getRange=n)}))}function c(t,e){for(var n=u(t).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o=r[i],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||h(n,a))}}}function h(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function f(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function d(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function p(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=u(e),o=n.coordSysRecordMap||(n.coordSysRecordMap=Object(a.createHashMap)());o.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=Object(s.collectReferCoordSysModelInfo)(t);Object(a.each)(n.infoList,(function(n){var i=n.model.uid,s=o.get(i)||o.set(i,function(t,e){var n={model:e,containsPoint:Object(a.curry)(d,e),dispatchAction:Object(a.curry)(f,t),dataZoomInfoMap:null,controller:null},i=n.controller=new r.default(t.getZr());return Object(a.each)(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var r=[];n.dataZoomInfoMap.each((function(i){if(e.isAvailableBehavior(i.model.option)){var o=(i.getRange||{})[t],a=o&&o(i.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!i.model.get("disabled",!0)&&a&&r.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}})),r.length&&n.dispatchAction(r)}))})),n}(e,n.model));(s.dataZoomInfoMap||(s.dataZoomInfoMap=Object(a.createHashMap)())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),o.each((function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var a=r.keys()[0];null!=a&&(e=r.get(a))}if(e){var s=function(t){var e,n={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each((function(t){var i=t.model,o=!i.get("disabled",!0)&&(!i.get("zoomLock",!0)||"move");n["type_"+o]>n["type_"+e]&&(e=o),r=r&&i.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(s.controlType,s.opt),n.setPointerChecker(t.containsPoint),i.createOrUpdate(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else h(o,t)}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"pathToBezierCurves",(function(){return a})),n.d(e,"pathToPolygons",(function(){return u}));var r=n(53),i=n(151).default.CMD;function o(t,e){return Math.abs(t-e)<1e-5}function a(t){var e,n,r,a,s,u=t.data,l=t.len(),c=[],h=0,f=0,d=0,p=0;function g(t,n){e&&e.length>2&&c.push(e),e=[t,n]}function v(t,n,r,i){o(t,r)&&o(n,i)||e.push(t,n,r,i,r,i)}function m(t,n,r,i,o,a){var s=Math.abs(n-t),u=4*Math.tan(s/4)/3,l=n<t?-1:1,c=Math.cos(t),h=Math.sin(t),f=Math.cos(n),d=Math.sin(n),p=c*o+r,g=h*a+i,v=f*o+r,m=d*a+i,y=o*u*l,b=a*u*l;e.push(p-y*h,g+b*c,v+y*d,m-b*f,v,m)}for(var y=0;y<l;){var b=u[y++],_=1===y;switch(_&&(d=h=u[y],p=f=u[y+1],b!==i.L&&b!==i.C&&b!==i.Q||(e=[d,p])),b){case i.M:h=d=u[y++],f=p=u[y++],g(d,p);break;case i.L:v(h,f,n=u[y++],r=u[y++]),h=n,f=r;break;case i.C:e.push(u[y++],u[y++],u[y++],u[y++],h=u[y++],f=u[y++]);break;case i.Q:n=u[y++],r=u[y++],a=u[y++],s=u[y++],e.push(h+2/3*(n-h),f+2/3*(r-f),a+2/3*(n-a),s+2/3*(r-s),a,s),h=a,f=s;break;case i.A:var x=u[y++],w=u[y++],O=u[y++],S=u[y++],C=u[y++],E=u[y++]+C;y+=1;var T=!u[y++];n=Math.cos(C)*O+x,r=Math.sin(C)*S+w,_?g(d=n,p=r):v(h,f,n,r),h=Math.cos(E)*O+x,f=Math.sin(E)*S+w;for(var A=(T?-1:1)*Math.PI/2,M=C;T?M>E:M<E;M+=A){m(M,T?Math.max(M+A,E):Math.min(M+A,E),x,w,O,S)}break;case i.R:d=h=u[y++],p=f=u[y++],n=d+u[y++],r=p+u[y++],g(n,p),v(n,p,n,r),v(n,r,d,r),v(d,r,d,p),v(d,p,n,p);break;case i.Z:e&&v(h,f,d,p),h=d,f=p}}return e&&e.length>2&&c.push(e),c}function s(t,e,n,i,a,u,l,c,h,f){if(o(t,n)&&o(e,i)&&o(a,l)&&o(u,c))h.push(l,c);else{var d=2/f,p=d*d,g=l-t,v=c-e,m=Math.sqrt(g*g+v*v);g/=m,v/=m;var y=n-t,b=i-e,_=a-l,x=u-c,w=y*y+b*b,O=_*_+x*x;if(w<p&&O<p)h.push(l,c);else{var S=g*y+v*b,C=-g*_-v*x;if(w-S*S<p&&S>=0&&O-C*C<p&&C>=0)h.push(l,c);else{var E=[],T=[];Object(r.cubicSubdivide)(t,n,a,l,.5,E),Object(r.cubicSubdivide)(e,i,u,c,.5,T),s(E[0],T[0],E[1],T[1],E[2],T[2],E[3],T[3],h,f),s(E[4],T[4],E[5],T[5],E[6],T[6],E[7],T[7],h,f)}}}}function u(t,e){var n=a(t),r=[];e=e||1;for(var i=0;i<n.length;i++){var o=n[i],u=[],l=o[0],c=o[1];u.push(l,c);for(var h=2;h<o.length;){var f=o[h++],d=o[h++],p=o[h++],g=o[h++],v=o[h++],m=o[h++];s(l,c,f,d,p,g,v,m,u,e),l=v,c=m}r.push(u)}return r}},function(t,e,n){"use strict";n.r(e),e.default=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}},function(t,e,n){"use strict";n.r(e),n.d(e,"nearestPoint",(function(){return i})),n.d(e,"snapLength",(function(){return o}));var r=n(91);function i(t,e,n,i,o,a){var s,u=1/0,l=[n,i],c=20;a&&a>200&&(c=a/10);for(var h=1/c,f=h/10,d=0;d<=c;d++){var p=d*h,g=[o.apply(null,t.concat([p])),o.apply(null,e.concat([p]))];(b=Object(r.distance)(l[0],l[1],g[0],g[1]))<u&&(s=p,u=b)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var v=t.length;return{x:t[v-1],y:e[v-1]}}u=1/0;for(d=0;d<32&&!(f<1e-4);d++){var m=s-f,y=s+f,b=(g=[o.apply(null,t.concat([m])),o.apply(null,e.concat([m]))],Object(r.distance)(l[0],l[1],g[0],g[1]));if(m>=0&&b<u)s=m,u=b;else{var _=[o.apply(null,t.concat([y])),o.apply(null,e.concat([y]))],x=Object(r.distance)(l[0],l[1],_[0],_[1]);y<=1&&x<u?(s=y,u=x):f*=.5}}return{x:o.apply(null,t.concat([s])),y:o.apply(null,e.concat([s]))}}function o(t,e){for(var n=0,i=t.length,o=0;o<i;o++){var a=t[o],s=e[o],u=t[(o+1)%i],l=e[(o+1)%i];n+=Object(r.distance)(a,s,u,l)}return n/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"getMappingValue",(function(){return i}));var r=n(2);function i(t,e,n){if(!t)return n;var i;if(t.callback&&t.callback.length>1){var o=Array(t.callback.length-1).fill("");i=t.mapping.apply(t,Object(r.__spreadArray)([e],Object(r.__read)(o),!1)).join("")}else i=t.mapping(e).join("");return i||n}},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptor",(function(){return d}));var r=n(2),i=n(1),o=n(8),a=n(3),s=n(34),u=n(244),l=n(332);function c(t){var e=t.chart,n=t.options,o=n.data,l=n.areaStyle,c=n.color,h=n.point,f=n.line,d=n.isPercent,p=n.xField,g=n.yField,v=n.tooltip,m=n.seriesField,y=n.startOnZero,b=null==h?void 0:h.state,_=Object(u.getDataWhetherPercentage)(o,g,p,g,d);e.data(_);var x=d?Object(r.__assign)({formatter:function(t){return{name:t[m]||t[p],value:(100*Number(t[g])).toFixed(2)+"%"}}},v):v,w=Object(a.deepAssign)({},t,{options:{area:{color:c,style:l},point:h&&Object(r.__assign)({color:c},h),tooltip:x,label:void 0,args:{startOnZero:y}}}),O={chart:e,options:Object(a.deepAssign)({line:{size:2}},Object(i.omit)(n,["state"]),{line:f&&Object(r.__assign)({color:c},f),sizeField:m,state:null==f?void 0:f.state,tooltip:!1,label:void 0,args:{startOnZero:y}})},S=Object(a.deepAssign)({},w,{options:{tooltip:!1,state:b}});return Object(s.area)(w),Object(s.line)(O),Object(s.point)(S),t}function h(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,s=Object(a.findGeometry)(e,"area");if(i){var u=i.callback,l=Object(r.__rest)(i,["callback"]);s.label({fields:[o],callback:u,cfg:Object(r.__assign)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(a.transformLabel)(l))})}else s.label(!1);return t}function f(t){var e=t.chart,n=t.options,r=n.isStack,o=n.isPercent,a=n.seriesField;return(o||r)&&a&&Object(i.each)(e.geometries,(function(t){t.adjust("stack")})),t}function d(t){return Object(a.flow)(o.theme,Object(o.pattern)("areaStyle"),Object(o.transformations)("rect"),c,l.meta,f,l.axis,l.legend,o.tooltip,h,o.slider,Object(o.annotation)(),o.interaction,o.animation,o.limitInPlot)(t)}n.d(e,"meta",(function(){return l.meta}))},function(t,e,n){"use strict";n.r(e),n.d(e,"geometry",(function(){return h})),n.d(e,"adaptor",(function(){return f}));var r=n(2),i=n(8),o=n(3),a=n(293);function s(t){var e=t.options,n=e.xField,i=e.yField,o=e.xAxis,a=e.yAxis,s={left:"bottom",right:"top",top:"left",bottom:"right"},u=!1!==a&&Object(r.__assign)({position:s[(null==a?void 0:a.position)||"left"]},a),l=!1!==o&&Object(r.__assign)({position:s[(null==o?void 0:o.position)||"bottom"]},o);return Object(r.__assign)(Object(r.__assign)({},t),{options:Object(r.__assign)(Object(r.__assign)({},e),{xField:i,yField:n,xAxis:u,yAxis:l})})}function u(t){var e=t.options.label;return e&&!e.position&&(e.position="left",e.layout||(e.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),Object(o.deepAssign)({},t,{options:{label:e}})}function l(t){var e=t.options,n=e.seriesField,i=e.isStack,a=e.legend;return n?!1!==a&&(a=Object(r.__assign)({position:i?"top-left":"right-top"},a||{})):a=!1,Object(o.deepAssign)({},t,{options:{legend:a}})}function c(t){var e=t.options,n=[{type:"transpose"},{type:"reflectY"}].concat(e.coordinate||[]);return Object(o.deepAssign)({},t,{options:{coordinate:n}})}function h(t){var e=t.chart,n=t.options,i=n.barStyle,o=n.barWidthRatio,s=n.minBarWidth,u=n.maxBarWidth,l=n.barBackground;return Object(a.adaptor)({chart:e,options:Object(r.__assign)(Object(r.__assign)({},n),{columnStyle:i,columnWidthRatio:o,minColumnWidth:s,maxColumnWidth:u,columnBackground:l})},!0)}function f(t){return Object(o.flow)(s,u,l,i.tooltip,c,h)(t)}n.d(e,"meta",(function(){return a.meta}))},function(t,e,n){"use strict";n.r(e),n.d(e,"transformStatisticOptions",(function(){return y})),n.d(e,"pieAnnotation",(function(){return b})),n.d(e,"interaction",(function(){return x})),n.d(e,"adaptor",(function(){return w}));var r=n(2),i=n(1),o=n(8),a=n(110),s=n(34),u=n(262),l=n(298),c=n(3),h=n(756),f=n(405),d=n(874);function p(t){var e=t.chart,n=t.options,i=n.data,o=n.angleField,a=n.colorField,u=n.color,l=n.pieStyle,h=n.shape,d=Object(c.processIllegalData)(i,o);if(Object(f.isAllZero)(d,o)){d=d.map((function(t){var e;return Object(r.__assign)(Object(r.__assign)({},t),((e={}).$$percentage$$=1/d.length,e))})),e.data(d);var p=Object(c.deepAssign)({},t,{options:{xField:"1",yField:"$$percentage$$",seriesField:a,isStack:!0,interval:{color:u,shape:h,style:l},args:{zIndexReversed:!0,sortZIndex:!0}}});Object(s.interval)(p)}else{e.data(d);p=Object(c.deepAssign)({},t,{options:{xField:"1",yField:o,seriesField:a,isStack:!0,interval:{color:u,shape:h,style:l},args:{zIndexReversed:!0,sortZIndex:!0}}});Object(s.interval)(p)}return t}function g(t){var e,n=t.chart,r=t.options,i=r.meta,o=r.colorField,a=Object(c.deepAssign)({},i);return n.scale(a,((e={})[o]={type:"cat"},e)),t}function v(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function m(t){var e=t.chart,n=t.options,o=n.label,a=n.colorField,s=n.angleField,u=e.geometries[0];if(o){var l=o.callback,h=Object(r.__rest)(o,["callback"]),d=Object(c.transformLabel)(h);if(d.content){var p=d.content;d.content=function(t,n,o){var u=t[a],l=t[s],h=e.getScaleByField(s),f=null==h?void 0:h.scale(l);return Object(i.isFunction)(p)?p(Object(r.__assign)(Object(r.__assign)({},t),{percent:f}),n,o):Object(i.isString)(p)?Object(c.template)(p,{value:l,name:u,percentage:Object(i.isNumber)(f)&&!Object(i.isNil)(l)?(100*f).toFixed(2)+"%":null}):p}}var g=d.type?{inner:"",outer:"pie-outer",spider:"pie-spider"}[d.type]:"pie-outer",v=d.layout?Object(i.isArray)(d.layout)?d.layout:[d.layout]:[];d.layout=(g?[{type:g}]:[]).concat(v),u.label({fields:a?[s,a]:[s],callback:l,cfg:Object(r.__assign)(Object(r.__assign)({},d),{offset:Object(f.adaptOffset)(d.type,d.offset),type:"pie"})})}else u.label(!1);return t}function y(t){var e=t.innerRadius,n=t.statistic,r=t.angleField,o=t.colorField,a=t.meta,s=t.locale,u=Object(l.getLocale)(s);if(e&&n){var d=Object(c.deepAssign)({},h.DEFAULT_OPTIONS.statistic,n),p=d.title,g=d.content;return!1!==p&&(p=Object(c.deepAssign)({},{formatter:function(t){var e=t?t[o]:Object(i.isNil)(p.content)?u.get(["statistic","total"]):p.content;return(Object(i.get)(a,[o,"formatter"])||function(t){return t})(e)}},p)),!1!==g&&(g=Object(c.deepAssign)({},{formatter:function(t,e){var n=t?t[r]:Object(f.getTotalValue)(e,r),o=Object(i.get)(a,[r,"formatter"])||function(t){return t};return t||Object(i.isNil)(g.content)?o(n):g.content}},g)),Object(c.deepAssign)({},{statistic:{title:p,content:g}},t)}return t}function b(t){var e=t.chart,n=y(t.options),r=n.innerRadius,i=n.statistic;return e.getController("annotation").clear(!0),Object(c.flow)(Object(o.annotation)())(t),r&&i&&Object(c.renderStatistic)(e,{statistic:i,plotType:"pie"}),t}function _(t){var e=t.chart,n=t.options,r=n.tooltip,o=n.colorField,s=n.angleField,u=n.data;if(!1===r)e.tooltip(r);else if(e.tooltip(Object(c.deepAssign)({},r,{shared:!1})),Object(f.isAllZero)(u,s)){var l=Object(i.get)(r,"fields"),h=Object(i.get)(r,"formatter");Object(i.isEmpty)(Object(i.get)(r,"fields"))&&(l=[o,s],h=h||function(t){return{name:t[o],value:Object(i.toString)(t[s])}}),e.geometries[0].tooltip(l.join("*"),Object(a.getMappingFunction)(l,h))}return t}function x(t){var e=t.chart,n=y(t.options),o=n.interactions,a=n.statistic,s=n.annotations;return Object(i.each)(o,(function(t){var n,o;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var u=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(u=[{trigger:"element:mouseenter",action:d.PIE_STATISTIC+":change",arg:{statistic:a,annotations:s}}]),Object(i.each)(null===(o=t.cfg)||void 0===o?void 0:o.start,(function(t){u.push(Object(r.__assign)(Object(r.__assign)({},t),{arg:{statistic:a,annotations:s}}))})),e.interaction(t.type,Object(c.deepAssign)({},t.cfg,{start:u}))}else e.interaction(t.type,t.cfg||{})})),t}function w(t){return Object(c.flow)(Object(u.pattern)("pieStyle"),p,g,o.theme,v,o.legend,_,m,o.state,b,x,o.animation)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"transform",(function(){return a}));var r=n(2),i=n(13),o=[1,0,0,0,1,0,0,0,1];function a(t,e){var n=e?Object(r.__spreadArrays)(e):Object(r.__spreadArrays)(o);return i.Util.transform(n,t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"transform",(function(){return u})),n.d(e,"getSize",(function(){return l})),n.d(e,"processImageMask",(function(){return c})),n.d(e,"getFontSizeMapping",(function(){return h})),n.d(e,"getSingleKeyValues",(function(){return f}));var r=n(2),i=n(1),o=n(223),a=n(3),s=n(534);function u(t){var e=t.options,n=t.chart,o=n,a=o.width,u=o.height,c=o.padding,g=o.appendPadding,v=o.ele,m=e.data,y=e.imageMask,b=e.wordField,_=e.weightField,x=e.colorField,w=e.wordStyle,O=e.timeInterval,S=e.random,C=e.spiral,E=e.autoFit,T=void 0===E||E,A=e.placementStrategy;if(!m||!m.length)return[];var M,I=w.fontFamily,j=w.fontWeight,k=w.padding,P=w.fontSize,L=f(m,_),R=[(M=L,Math.min.apply(Math,M)),p(L)],D=m.map((function(t){return{text:t[b],value:t[_],color:t[x],datum:t}})),N={imageMask:y,font:I,fontSize:h(P,R),fontWeight:j,size:l({width:a,height:u,padding:c,appendPadding:g,autoFit:T,container:v}),padding:k,timeInterval:O,random:S,spiral:C,rotate:d(e)};if(Object(i.isFunction)(A)){var B=D.map((function(t,e,i){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},t),{hasText:!!t.text,font:Object(s.functor)(N.font)(t,e,i),weight:Object(s.functor)(N.fontWeight)(t,e,i),rotate:Object(s.functor)(N.rotate)(t,e,i),size:Object(s.functor)(N.fontSize)(t,e,i),style:"normal"}),A.call(n,t,e,i))}));return B.push({text:"",value:0,x:0,y:0,opacity:0}),B.push({text:"",value:0,x:N.size[0],y:N.size[1],opacity:0}),B}return Object(s.wordCloud)(D,N)}function l(t){var e=t.width,n=t.height,r=t.container,i=t.autoFit,s=t.padding,u=t.appendPadding;if(i){var l=Object(a.getContainerSize)(r);e=l.width,n=l.height}e=e||400,n=n||400;var c=function(t){var e=Object(o.normalPadding)(t.padding),n=Object(o.normalPadding)(t.appendPadding),r=e[0]+n[0],i=e[1]+n[1],a=e[2]+n[2],s=e[3]+n[3];return[r,i,a,s]}({padding:s,appendPadding:u}),h=c[0],f=c[1],d=c[2];return[e-(c[3]+f),n-(h+d)]}function c(t){return new Promise((function(e,n){if(t instanceof HTMLImageElement)e(t);else{if(Object(i.isString)(t)){var r=new Image;return r.crossOrigin="anonymous",r.src=t,r.onload=function(){e(r)},void(r.onerror=function(){Object(a.log)(a.LEVEL.ERROR,!1,"image %s load failed !!!",t),n()})}Object(a.log)(a.LEVEL.WARN,void 0===t,"The type of imageMask option must be String or HTMLImageElement."),n()}}))}function h(t,e){if(Object(i.isFunction)(t))return t;if(Object(i.isArray)(t)){var n=t[0],r=t[1];if(!e)return function(){return(r+n)/2};var o=e[0],a=e[1];return a===o?function(){return(r+n)/2}:function(t){var e=t.value;return(r-n)/(a-o)*(e-o)+n}}return function(){return t}}function f(t,e){return t.map((function(t){return t[e]})).filter((function(t){return"number"==typeof t&&!isNaN(t)}))}function d(t){var e=function(t){var e=t.wordStyle.rotationSteps;e<1&&(Object(a.log)(a.LEVEL.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1);return{rotation:t.wordStyle.rotation,rotationSteps:e}}(t),n=e.rotation,r=e.rotationSteps;if(!Object(i.isArray)(n))return n;var o=n[0],s=n[1],u=1===r?0:(s-o)/(r-1);return function(){return s===o?s:Math.floor(Math.random()*r)*u}}function p(t){return Math.max.apply(Math,t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"WORD_CLOUD_COLOR_FIELD",(function(){return o})),n.d(e,"DEFAULT_OPTIONS",(function(){return a}));var r=n(26),i=n(3),o="color",a=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",o],formatter:function(t){return{name:t.text,value:t.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}})},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptor",(function(){return c}));var r=n(3),i=n(8),o=n(34),a=n(294);n.d(e,"meta",(function(){return a.meta}));var s=n(245),u=n(181);function l(t){var e=t.chart,n=t.options,i=n.data,a=n.color,l=n.lineStyle,c=n.point,h=null==c?void 0:c.state,f=Object(s.getTinyData)(i);e.data(f);var d=Object(r.deepAssign)({},t,{options:{xField:u.X_FIELD,yField:u.Y_FIELD,line:{color:a,style:l},point:c}}),p=Object(r.deepAssign)({},d,{options:{tooltip:!1,state:h}});return Object(o.line)(d),Object(o.point)(p),e.axis(!1),e.legend(!1),t}function c(t){return Object(r.flow)(l,a.meta,i.theme,i.tooltip,i.animation,Object(i.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptor",(function(){return c}));var r=n(8),i=n(3),o=n(34),a=n(181),s=n(245),u=n(294);function l(t){var e=t.chart,n=t.options,r=n.data,u=n.color,l=n.columnStyle,c=n.columnWidthRatio,h=Object(s.getTinyData)(r);e.data(h);var f=Object(i.deepAssign)({},t,{options:{xField:a.X_FIELD,yField:a.Y_FIELD,widthRatio:c,interval:{style:l,color:u}}});return Object(o.interval)(f),e.axis(!1),e.legend(!1),e.interaction("element-active"),t}function c(t){return Object(i.flow)(r.theme,Object(r.pattern)("columnStyle"),l,u.meta,r.tooltip,r.animation,Object(r.annotation)())(t)}n.d(e,"meta",(function(){return u.meta}))},function(t,e,n){"use strict";n.r(e),n.d(e,"statistic",(function(){return l})),n.d(e,"adaptor",(function(){return c}));var r=n(2),i=n(1),o=n(3),a=n(8),s=n(502);function u(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius;return e.coordinate("theta",{innerRadius:r,radius:i}),t}function l(t,e){var n=t.chart,a=t.options,s=a.innerRadius,u=a.statistic,l=a.percent,c=a.meta;if(n.getController("annotation").clear(!0),s&&u){var h=Object(i.get)(c,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},f=u.content;f&&(f=Object(o.deepAssign)({},f,{content:Object(i.isNil)(f.content)?h(l):f.content})),Object(o.renderStatistic)(n,{statistic:Object(r.__assign)(Object(r.__assign)({},u),{content:f}),plotType:"ring-progress"},{percent:l})}return e&&n.render(!0),t}function c(t){return Object(o.flow)(s.geometry,Object(a.scale)({}),u,l,a.animation,a.theme,Object(a.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"FUNNEL_LEGEND_FILTER",(function(){return o})),n.d(e,"interactionStart",(function(){return a}));var r=n(13),i=n(1735),o="funnel-afterrender",a={trigger:"afterrender",action:"funnel-conversion-tag:change"};Object(r.registerAction)("funnel-conversion-tag",i.ConversionTagAction),Object(r.registerInteraction)(o,{start:[a]})},function(t,e,n){"use strict";n.r(e),n.d(e,"statistic",(function(){return d})),n.d(e,"adaptor",(function(){return v}));var r=n(2),i=n(1),o=n(8),a=n(34),s=n(148),u=n(3),l=n(158),c=n(526);function h(t){var e=t.chart,n=t.options,r=n.percent,o=n.range,h=n.radius,f=n.innerRadius,d=n.startAngle,p=n.endAngle,g=n.axis,v=n.indicator,m=n.gaugeStyle,y=n.type,b=n.meter,_=o.color,x=o.width;if(v){var w=Object(c.getIndicatorData)(r),O=e.createView({id:l.INDICATEOR_VIEW_ID});O.data(w),O.point().position(l.PERCENT+"*1").shape(v.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:v}),O.coordinate("polar",{startAngle:d,endAngle:p,radius:f*h}),O.axis(l.PERCENT,g),O.scale(l.PERCENT,Object(u.pick)(g,s.AXIS_META_CONFIG_KEYS))}var S=Object(c.getRangeData)(r,n.range),C=e.createView({id:l.RANGE_VIEW_ID});C.data(S);var E=Object(i.isString)(_)?[_,l.DEFAULT_COLOR]:_;return Object(a.interval)({chart:C,options:{xField:"1",yField:l.RANGE_VALUE,seriesField:l.RANGE_TYPE,rawFields:[l.PERCENT],isStack:!0,interval:{color:E,style:m,shape:"meter"===y?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:x,maxColumnWidth:x}}).ext.geometry.customInfo({meter:b}),C.coordinate("polar",{innerRadius:f,radius:h,startAngle:d,endAngle:p}).transpose(),t}function f(t){var e;return Object(u.flow)(Object(o.scale)(((e={range:{min:0,max:1,maxLimit:1,minLimit:0}})[l.PERCENT]={},e)))(t)}function d(t,e){var n=t.chart,i=t.options,o=i.statistic,a=i.percent;if(n.getController("annotation").clear(!0),o){var s=o.content,l=void 0;s&&(l=Object(u.deepAssign)({},{content:(100*a).toFixed(2)+"%",style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},s)),Object(u.renderGaugeStatistic)(n,{statistic:Object(r.__assign)(Object(r.__assign)({},o),{content:l})},{percent:a})}return e&&n.render(!0),t}function p(t){var e=t.chart,n=t.options.tooltip;return n?e.tooltip(Object(u.deepAssign)({showTitle:!1,showMarkers:!1,containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(t,e){return(100*Object(i.get)(e,[0,"data",l.PERCENT],0)).toFixed(2)+"%"}},n)):e.tooltip(!1),t}function g(t){return t.chart.legend(!1),t}function v(t){return Object(u.flow)(o.theme,o.animation,h,f,p,d,o.interaction,Object(o.annotation)(),g)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"execPlotAdaptor",(function(){return B}));var r=n(1),i=n(3),o=n(332),a=n(587),s=n(293),u=n(586),l=n(585),c=n(595),h=n(591),f=n(592),d=n(294),p=n(593),g=n(502),v=n(406),m=n(758),y=n(764),b=n(762),_=n(668),x=n(675),w=n(674),O=n(673),S=n(672),C=n(686),E=n(677),T=n(679),A=n(678),M=n(682),I=n(681),j=n(676),k=n(680),P=n(556),L=n(683),R={line:o.adaptor,pie:a.adaptor,column:s.adaptor,bar:u.adaptor,area:l.adaptor,gauge:c.adaptor,"tiny-line":h.adaptor,"tiny-column":f.adaptor,"tiny-area":d.adaptor,"ring-progress":p.adaptor,progress:g.adaptor,scatter:v.adaptor,histogram:m.adaptor,funnel:y.adaptor,stock:b.adaptor},D={line:_.Line,pie:x.Pie,column:O.Column,bar:w.Bar,area:S.Area,gauge:C.Gauge,"tiny-line":E.TinyLine,"tiny-column":A.TinyColumn,"tiny-area":T.TinyArea,"ring-progress":M.RingProgress,progress:I.Progress,scatter:j.Scatter,histogram:k.Histogram,funnel:P.Funnel,stock:L.Stock},N={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function B(t,e,n){var o=D[t];o?(0,R[t])({chart:e,options:Object(i.deepAssign)({},o.getDefaultOptions(),Object(r.get)(N,t,{}),n)}):console.error("could not find "+t+" plot")}},function(t,e,n){"use strict";n.r(e),n.d(e,"atob",(function(){return o})),n.d(e,"btoa",(function(){return a}));var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function i(t){this.message=t}function o(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new i("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a="",s=0,u=0;o=e.charAt(u++);~o&&(n=s%4?64*n+o:o,s++%4)?a+=String.fromCharCode(255&n>>(-2*s&6)):0)o=r.indexOf(o);return a}function a(t){for(var e,n,i,o,a="",s=0,u=(t=String(t)).length%3;s<t.length;){if((n=t.charCodeAt(s++))>255||(i=t.charCodeAt(s++))>255||(o=t.charCodeAt(s++))>255)throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");a+=r.charAt((e=n<<16|i<<8|o)>>18&63)+r.charAt(e>>12&63)+r.charAt(e>>6&63)+r.charAt(63&e)}return u?a.slice(0,u-3)+"===".substring(u):a}i.prototype=new Error,i.prototype.name="InvalidCharacterError"},function(t,e,n){"use strict";n.r(e),n.d(e,"isMiniAli",(function(){return i}));var r=n(233),i="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM;e.default=i?my.getSystemInfoSync().pixelRatio:r.globalWindow.devicePixelRatio},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(1279);n.d(e,"Map",(function(){return r.Map}));var i=n(1310);n.d(e,"EarthMap",(function(){return i.EarthMap}));n(1311)},function(t,e,n){"use strict";n.r(e),n.d(e,"atob",(function(){return o})),n.d(e,"btoa",(function(){return a}));var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function i(t){this.message=t}function o(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new i("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a="",s=0,u=0;o=e.charAt(u++);~o&&(n=s%4?64*n+o:o,s++%4)?a+=String.fromCharCode(255&n>>(-2*s&6)):0)o=r.indexOf(o);return a}function a(t){for(var e,n,i,o,a="",s=0,u=(t=String(t)).length%3;s<t.length;){if((n=t.charCodeAt(s++))>255||(i=t.charCodeAt(s++))>255||(o=t.charCodeAt(s++))>255)throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");a+=r.charAt((e=n<<16|i<<8|o)>>18&63)+r.charAt(e>>12&63)+r.charAt(e>>6&63)+r.charAt(63&e)}return u?a.slice(0,u-3)+"===".substring(u):a}i.prototype=new Error,i.prototype.name="InvalidCharacterError"},function(t,e,n){"use strict";n.r(e),n.d(e,"isMiniAli",(function(){return i}));var r=n(234),i="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM;e.default=i?my.getSystemInfoSync().pixelRatio:r.globalWindow.devicePixelRatio},function(t,e,n){"use strict";function r(t,e){for(var n={},r=0;r<t.length;r++)n[t[r].identifier]=e[r];return n}n.r(e),n.d(e,"indexTouches",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(19),i=n(20),o=n(528),a=function(){function t(e){Object(r.default)(this,t),this.singleTap=new o.default(e),this.numTaps=e.numTaps,this.reset()}return Object(i.default)(t,[{key:"reset",value:function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}},{key:"touchstart",value:function(t,e,n){this.singleTap.touchstart(t,e,n)}},{key:"touchmove",value:function(t,e,n){this.singleTap.touchmove(t,e,n)}},{key:"touchend",value:function(t,e,n){var r=this.singleTap.touchend(t,e,n);if(r){var i=t.timeStamp-this.lastTime<o.MAX_TAP_INTERVAL,a=!this.lastTap||this.lastTap.dist(r)<o.MAX_DIST;if(i&&a||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}}}]),t}()},function(t,e,n){"use strict";n.r(e);var r=n(1313),i=n(1319),o=n(1320),a=n(1321),s=n(1322),u=n(1323),l=n(1324),c=n(1325),h=n(1326),f=n(1327),d=n(1328),p=n(1329),g=n(1330),v=n(793);e.default={string:r.default,method:i.default,number:o.default,boolean:a.default,regexp:s.default,integer:u.default,float:l.default,array:c.default,object:h.default,enum:f.default,pattern:d.default,date:p.default,url:v.default,hex:v.default,email:v.default,required:g.default}},function(t,e,n){"use strict";n.r(e),n.d(e,"alignBezierCurves",(function(){return d})),n.d(e,"centroid",(function(){return p})),n.d(e,"isCombineMorphing",(function(){return m})),n.d(e,"isMorphing",(function(){return y})),n.d(e,"morphPath",(function(){return O})),n.d(e,"combineMorph",(function(){return T})),n.d(e,"separateMorph",(function(){return A}));var r=n(53),i=n(36),o=n(0),a=n(18),s=n(268),u=n(129),l=n(861);n.d(e,"defaultDividePath",(function(){return l.split}));var c=n(581);function h(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var o=[],a=[],s=n<i?t:e,u=Math.min(n,i),l=Math.abs(i-n)/6,c=(u-2)/6,h=Math.ceil(l/c)+1,f=[s[0],s[1]],d=l,p=2;p<u;){var g=s[p-2],v=s[p-1],m=s[p++],y=s[p++],b=s[p++],_=s[p++],x=s[p++],w=s[p++];if(d<=0)f.push(m,y,b,_,x,w);else{for(var O=Math.min(d,h-1)+1,S=1;S<=O;S++){var C=S/O;Object(r.cubicSubdivide)(g,m,b,x,C,o),Object(r.cubicSubdivide)(v,y,_,w,C,a),g=o[3],v=a[3],f.push(o[1],a[1],o[2],a[2],g,v),m=o[5],y=a[5],b=o[6],_=a[6]}d-=O-1}}return s===t?[f,e]:[t,f]}function f(t,e){for(var n=t.length,r=t[n-2],i=t[n-1],o=[],a=0;a<e.length;)o[a++]=r,o[a++]=i;return o}function d(t,e){for(var n,r,i,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var u=t[s],l=e[s],c=void 0,d=void 0;u?l?(r=c=(n=h(u,l))[0],i=d=n[1]):(d=f(i||u,u),c=u):(c=f(r||l,l),d=l),o.push(c),a.push(d)}return[o,a]}function p(t){for(var e=0,n=0,r=0,i=t.length,o=0,a=i-2;o<i;a=o,o+=2){var s=t[a],u=t[a+1],l=t[o],c=t[o+1],h=s*c-l*u;e+=h,n+=(s+l)*h,r+=(u+c)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function g(t,e,n,r){for(var i=(t.length-2)/6,o=1/0,a=0,s=t.length,u=s-2,l=0;l<i;l++){for(var c=6*l,h=0,f=0;f<s;f+=2){var d=0===f?c:(c+f-2)%u+2,p=t[d]-n[0],g=t[d+1]-n[1],v=e[f]-r[0]-p,m=e[f+1]-r[1]-g;h+=v*v+m*m}h<o&&(o=h,a=l)}return a}function v(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function m(t){return t.__isCombineMorphing}function y(t){return t.__morphT>=0}function b(t,e,n){var r="__mOriginal_"+e,i=t[r]||t[e];t[r]||(t[r]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):i.apply(this,e),a&&a.apply(this,e),t}}function _(t,e){var n="__mOriginal_"+e;t[n]&&(t[e]=t[n],t[n]=null)}function x(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;){var o=r[i],a=r[i+1];r[i++]=e[0]*o+e[2]*a+e[4],r[i++]=e[1]*o+e[3]*a+e[5]}}function w(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),i=d(Object(c.pathToBezierCurves)(n),Object(c.pathToBezierCurves)(r)),o=i[0],s=i[1],u=t.getComputedTransform(),l=e.getComputedTransform();u&&x(o,u),l&&x(s,l),b(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var h=function(t,e,n,r){for(var i,o=[],a=0;a<t.length;a++){var s=t[a],u=e[a],l=p(s),c=p(u);null==i&&(i=l[2]<0!=c[2]<0);var h=[],f=[],d=0,m=1/0,y=[],b=s.length;i&&(s=v(s));for(var _=6*g(s,u,l,c),x=b-2,w=0;w<x;w+=2){var O=(_+w)%x+2;h[w+2]=s[O]-l[0],h[w+3]=s[O+1]-l[1]}if(h[0]=s[_]-l[0],h[1]=s[_+1]-l[1],n>0)for(var S=r/n,C=-r/2;C<=r/2;C+=S){var E=Math.sin(C),T=Math.cos(C),A=0;for(w=0;w<s.length;w+=2){var M=h[w],I=h[w+1],j=u[w]-c[0],k=u[w+1]-c[1],P=j*T-k*E,L=j*E+k*T;y[w]=P,y[w+1]=L;var R=P-M,D=L-I;A+=R*R+D*D}if(A<m){m=A,d=C;for(var N=0;N<y.length;N++)f[N]=y[N]}}else for(var B=0;B<b;B+=2)f[B]=u[B]-c[0],f[B+1]=u[B+1]-c[1];o.push({from:h,to:f,fromCp:l,toCp:c,rotation:-d})}return o}(o,s,10,Math.PI),f=[];b(e,"buildPath",{replace:function(t){for(var n=e.__morphT,r=1-n,i=[],o=0;o<h.length;o++){var s=h[o],u=s.from,l=s.to,c=s.rotation*n,d=s.fromCp,p=s.toCp,g=Math.sin(c),v=Math.cos(c);Object(a.lerp)(i,d,p,n);for(var m=0;m<u.length;m+=2){var y=u[m],b=u[m+1],_=y*r+(S=l[m])*n,x=b*r+(C=l[m+1])*n;f[m]=_*v-x*g+i[0],f[m+1]=_*g+x*v+i[1]}var w=f[0],O=f[1];t.moveTo(w,O);for(m=2;m<u.length;){var S=f[m++],C=f[m++],E=f[m++],T=f[m++],A=f[m++],M=f[m++];w===S&&O===C&&E===A&&T===M?t.lineTo(A,M):t.bezierCurveTo(S,C,E,T,A,M),w=A,O=M}}}})}function O(t,e,n){if(!t||!e)return e;var r=n.done,i=n.during;return w(t,e),e.__morphT=0,e.animateTo({__morphT:1},Object(o.defaults)({during:function(t){e.dirtyShape(),i&&i(t)},done:function(){_(e,"buildPath"),_(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),r&&r()}},n)),e}function S(t,e,n,r,i,o){t=i===n?0:Math.round(32767*(t-n)/(i-n)),e=o===r?0:Math.round(32767*(e-r)/(o-r));for(var a,s=0,u=32768;u>0;u/=2){var l=0,c=0;(t&u)>0&&(l=1),(e&u)>0&&(c=1),s+=u*u*(3*l^c),0===c&&(1===l&&(t=u-1-t,e=u-1-e),a=t,t=e,e=a)}return s}function C(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,a=Object(o.map)(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),u=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(u,n),r=Math.max(s,r),i=Math.max(u,i),[s,u]}));return Object(o.map)(a,(function(o,a){return{cp:o,z:S(o[0],o[1],e,n,r,i),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function E(t){return Object(l.split)(t.path,t.count)}function T(t,e,n){var r=[];!function t(e){for(var n=0;n<e.length;n++){var o=e[n];m(o)?t(o.childrenRef()):o instanceof i.default&&r.push(o)}}(t);var a=r.length;if(!a)return{fromIndividuals:[],toIndividuals:[],count:0};var s=(n.dividePath||E)({path:e,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};r=C(r),s=C(s);for(var l=n.done,c=n.during,h=n.individualDelay,f=new u.default,d=0;d<a;d++){var p=r[d],g=s[d];g.parent=e,g.copyTransform(f),h||w(p,g)}function v(t){for(var e=0;e<s.length;e++)s[e].addSelfToZr(t)}function y(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,_(e,"addSelfToZr"),_(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return s},b(e,"addSelfToZr",{after:function(t){v(t)}}),b(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<s.length;e++)s[e].removeSelfFromZr(t)}});var x=s.length;if(h){var S=x,T=function(){0===--S&&(y(),l&&l())};for(d=0;d<x;d++){var A=h?Object(o.defaults)({delay:(n.delay||0)+h(d,x,r[d],s[d]),done:T},n):n;O(r[d],s[d],A)}}else e.__morphT=0,e.animateTo({__morphT:1},Object(o.defaults)({during:function(t){for(var n=0;n<x;n++){var r=s[n];r.__morphT=e.__morphT,r.dirtyShape()}c&&c(t)},done:function(){y();for(var e=0;e<t.length;e++)_(t[e],"updateTransform");l&&l()}},n));return e.__zr&&v(e.__zr),{fromIndividuals:r,toIndividuals:s,count:x}}function A(t,e,n){var r=e.length,a=[],u=n.dividePath||E;if(m(t)){!function t(e){for(var n=0;n<e.length;n++){var r=e[n];m(r)?t(r.childrenRef()):r instanceof i.default&&a.push(r)}}(t.childrenRef());var l=a.length;if(l<r)for(var c=0,h=l;h<r;h++)a.push(Object(s.clonePath)(a[c++%l]));a.length=r}else{a=u({path:t,count:r});var f=t.getComputedTransform();for(h=0;h<a.length;h++)a[h].setLocalTransform(f);if(a.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}a=C(a),e=C(e);var d=n.individualDelay;for(h=0;h<r;h++){var p=d?Object(o.defaults)({delay:(n.delay||0)+d(h,r,a[h],e[h])},n):n;O(a[h],e[h],p)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}},function(t,e,n){"use strict";function r(t,e,n,r){return[t,e,n,r,n,r]}n.r(e),n.d(e,"lineToCubic",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(88),o=n(104),a=n(25),s=n(200),u=n(62),l=n(277),c=n(442),h=a.ext.transform;e.default=Object(r.__assign)({hasArc:function(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i=t[r][0];if("C"===i||"A"===i||"Q"===i){e=!0;break}}return e},extractPolygons:function(t){for(var e=t.length,n=[],r=[],i=[],o=0;o<e;o++){var a=t[o],s=a[0];"M"===s?(i.length&&(r.push(i),i=[]),i.push([a[1],a[2]])):"Z"===s?i.length&&(n.push(i),i=[]):i.push([a[1],a[2]])}return i.length>0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var a=!1,f=e/2,d=0;d<t.length;d++){var p=t[d],g=p.currentPoint,v=p.params,m=p.prePoint,y=p.box;if(!y||Object(u.inBox)(y.x-f,y.y-f,y.width+e,y.height+e,n,r)){switch(p.command){case"L":case"Z":a=Object(l.default)(m[0],m[1],g[0],g[1],e,n,r);break;case"Q":a=o.Quad.pointDistance(m[0],m[1],v[1],v[2],v[3],v[4],n,r)<=e/2;break;case"C":a=o.Cubic.pointDistance(m[0],m[1],v[1],v[2],v[3],v[4],v[5],v[6],n,r,i)<=e/2;break;case"A":var b=p.arcParams,_=b.cx,x=b.cy,w=b.rx,O=b.ry,S=b.startAngle,C=b.endAngle,E=b.xRotation,T=[n,r,1],A=w>O?w:O,M=h(null,[["t",-_,-x],["r",-E],["s",1/(w>O?1:w/O),1/(w>O?O/w:1)]]);s.transformMat3(T,T,M),a=Object(c.default)(0,0,A,S,C,e,T[0],T[1])}if(a)break}}return a}},i.PathUtil)},function(t,e,n){"use strict";n.r(e),n.d(e,"getNormalizedValue",(function(){return i}));var r=n(808);function i(t,e){if(!e)return null;var n;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=e.isCategory?Object(r.getMedian)(e.values.map((function(t,e){return e}))):Object(r.getMedian)(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:Object(r.getMean)(e.values);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t}return e.scale(n)}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformData",(function(){return u})),n.d(e,"resolvePaddingForCircle",(function(){return l}));var r=n(2),i=n(1765),o=n(3),a=n(389),s=n(223);function u(t){var e=t.data,n=t.hierarchyConfig,s=t.rawFields,u=void 0===s?[]:s,l=t.enableDrillDown,c=Object(i.pack)(e,Object(r.__assign)(Object(r.__assign)({},n),{field:"value",as:["x","y","r"]})),h=[];return c.forEach((function(t){for(var e,i=t.data.name,s=Object(r.__assign)({},t);s.depth>1;)i=(null===(e=s.parent.data)||void 0===e?void 0:e.name)+" / "+i,s=s.parent;if(l&&t.depth>2)return null;var c=Object(o.deepAssign)({},t.data,Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},Object(o.pick)(t.data,u)),{path:i}),t));c.ext=n,c[a.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:n,rawFields:u,enableDrillDown:l},h.push(c)})),h}function l(t,e,n){var r=Object(s.resolveAllPadding)([t,e]),i=r[0],o=r[1],a=r[2],u=r[3],l=n.width-(u+o),c=n.height-(i+a),h=Math.min(l,c),f=(l-h)/2,d=(c-h)/2;return{finalPadding:[i+d,o+f,a+d,u+f],finalSize:h<0?0:h}}},function(t,e,n){"use strict";n.r(e);var r=n(1306);n.d(e,"TouchPanHandler",(function(){return r.default}));var i=n(1307);n.d(e,"TouchPitchHandler",(function(){return i.default}));var o=n(1308);n.d(e,"TouchRotateHandler",(function(){return o.default}));var a=n(1309);n.d(e,"TouchZoomHandler",(function(){return a.default}))},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(216),o=(r=i)&&r.__esModule?r:{default:r},a=n(961);var s=o.default.prototype.$isServer?function(){}:n(1907),u=function(t){return t.stopPropagation()};e.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(t){this.showPopper=t,this.$emit("input",t)}},showPopper:function(t){this.disabled||(t?this.updatePopper():this.destroyPopper(),this.$emit("input",t))}},methods:{createPopper:function(){var t=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var e=this.popperOptions,n=this.popperElm=this.popperElm||this.popper||this.$refs.popper,r=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!r&&this.$slots.reference&&this.$slots.reference[0]&&(r=this.referenceElm=this.$slots.reference[0].elm),n&&r&&(this.visibleArrow&&this.appendArrow(n),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),e.placement=this.currentPlacement,e.offset=this.offset,e.arrowOffset=this.arrowOffset,this.popperJS=new s(r,n,e),this.popperJS.onCreate((function(e){t.$emit("created",t),t.resetTransformOrigin(),t.$nextTick(t.updatePopper)})),"function"==typeof e.onUpdate&&this.popperJS.onUpdate(e.onUpdate),this.popperJS._popper.style.zIndex=a.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",u))}},updatePopper:function(){var t=this.popperJS;t?(t.update(),t._popper&&(t._popper.style.zIndex=a.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(t){!this.popperJS||this.showPopper&&!t||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(this.transformOrigin){var t=this.popperJS._popper.getAttribute("x-placement").split("-")[0],e={top:"bottom",bottom:"top",left:"right",right:"left"}[t];this.popperJS._popper.style.transformOrigin="string"==typeof this.transformOrigin?this.transformOrigin:["top","bottom"].indexOf(t)>-1?"center "+e:e+" center"}},appendArrow:function(t){var e=void 0;if(!this.appended){for(var n in this.appended=!0,t.attributes)if(/^_v-/.test(t.attributes[n].name)){e=t.attributes[n].name;break}var r=document.createElement("div");e&&r.setAttribute(e,""),r.setAttribute("x-arrow",""),r.className="popper__arrow",t.appendChild(r)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",u),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){for(var e=1,n=arguments.length;e<n;e++){var r=arguments[e]||{};for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];void 0!==o&&(t[i]=o)}}return t}},function(t,e,n){"use strict";e.__esModule=!0,e.isDef=function(t){return null!=t},e.isKorean=function(t){return/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(t)}},function(t,e,n){var r=n(824);t.exports=function(t,e,n){return void 0===n?r(t,e,!1):r(t,n,!1!==e)}},function(t,e,n){var r=n(539);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(970),i=n(835);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e){t.exports=!0},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){},function(t,e,n){"use strict";n.r(e);var r=n(312);n.d(e,"Scale",(function(){return r.Scale}))},function(t,e,n){"use strict";n.r(e);var r=n(377);n.d(e,"Coordinate",(function(){return r.default}));var i=n(910),o=n(1590),a=n(1591),s=n(430);n.d(e,"getCoordinate",(function(){return s.getCoordinate})),n.d(e,"registerCoordinate",(function(){return s.registerCoordinate})),Object(s.registerCoordinate)("rect",i.default),Object(s.registerCoordinate)("cartesian",i.default),Object(s.registerCoordinate)("polar",a.default),Object(s.registerCoordinate)("helix",o.default)},function(t,e,n){var r=n(2059),i=n(2060),o=n(2061),a=n(2062),s=n(2063);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(627);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(2069),i=n(2075);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(628)(Object,"create");t.exports=r},function(t,e,n){var r=n(2084);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(2143);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){"use strict";n.r(e);var r=n(119);e.default=function(t,e){if(!Object(r.default)(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];e(o,i)&&n.push(o)}return n}},function(t,e,n){"use strict";n.r(e);var r=n(197),i=n(635);e.default=function(t,e){var n=Object(i.default)(e),o=n.length;if(Object(r.default)(t))return!o;for(var a=0;a<o;a+=1){var s=n[a];if(e[s]!==t[s]||!(s in t))return!1}return!0}},function(t,e,n){"use strict";n.r(e);var r=n(260),i=n(125),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return Object(r.default)(t,(function(n,r){Object(i.default)(t)&&"prototype"===r||e.push(r)})),e};e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(82);e.default=function(t){if(Object(r.default)(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])}},function(t,e,n){"use strict";n.r(e);var r=n(82);e.default=function(t){if(Object(r.default)(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])}},function(t,e,n){"use strict";n.r(e);var r=n(119),i=Array.prototype.splice;e.default=function(t,e){if(!Object(r.default)(t))return[];for(var n=t?e.length:0,o=n-1;n--;){var a=void 0,s=e[n];n!==o&&s===a||(a=s,i.call(t,s,1))}return t}},function(t,e,n){"use strict";n.r(e);var r=n(260),i=n(82),o=n(291);e.default=function(t,e,n){if(!Object(i.default)(t)&&!Object(o.default)(t))return t;var a=n;return Object(r.default)(t,(function(t,n){a=e(a,t,n)})),a}},function(t,e,n){"use strict";function r(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var o=t[r];e.has(o)||(n.push(o),e.set(o,!0))}return n}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(82),i=n(125),o=n(642);function a(t,e){if(!e)return{0:t};if(!Object(i.default)(e)){var n=Object(r.default)(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return Object(o.default)(t,e)}},function(t,e,n){"use strict";n.r(e);var r=n(82),i=n(125),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(!e||!Object(r.default)(t))return{};for(var n,a={},s=Object(i.default)(e)?e:function(t){return t[e]},u=0;u<t.length;u++){var l=t[u];n=s(l),o.call(a,n)?a[n].push(l):a[n]=[l]}return a}},function(t,e,n){"use strict";n.r(e),e.default=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){"use strict";n.r(e);var r={}.toString;e.default=function(t){return r.call(t).replace(/^\[object /,"").replace(/]$/,"")}},function(t,e,n){"use strict";n.r(e);var r=Object.prototype;e.default=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,n){"use strict";n.r(e);var r=n(125);e.default=function(t,e){if(!Object(r.default)(t))throw new TypeError("Expected a function");var n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,r);return a.set(o,s),s};return n.cache=new Map,n}},function(t,e,n){"use strict";n.r(e);var r=n(421),i=n(119),o=n(170),a=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(Object(o.default)(t)||Object(o.default)(e))return!1;if(Object(i.default)(t)||Object(i.default)(e)){if(t.length!==e.length)return!1;for(var n=!0,s=0;s<t.length&&(n=a(t[s],e[s]));s++);return n}if(Object(r.default)(t)||Object(r.default)(e)){var u=Object.keys(t),l=Object.keys(e);if(u.length!==l.length)return!1;for(n=!0,s=0;s<u.length&&(n=a(t[u[s]],e[u[s]]));s++);return n}return!1};e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(167);function i(t,e){var n=Object(r.default)(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(167);function i(t,e){var n=Object(r.default)(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}},function(t,e,n){"use strict";n.r(e);var r=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.default=r},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(488),o=n(101),a=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=Object(o.mix)(r,e),n}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"fromMat4",(function(){return o})),n.d(e,"clone",(function(){return a})),n.d(e,"copy",(function(){return s})),n.d(e,"fromValues",(function(){return u})),n.d(e,"set",(function(){return l})),n.d(e,"identity",(function(){return c})),n.d(e,"transpose",(function(){return h})),n.d(e,"invert",(function(){return f})),n.d(e,"adjoint",(function(){return d})),n.d(e,"determinant",(function(){return p})),n.d(e,"multiply",(function(){return g})),n.d(e,"translate",(function(){return v})),n.d(e,"rotate",(function(){return m})),n.d(e,"scale",(function(){return y})),n.d(e,"fromTranslation",(function(){return b})),n.d(e,"fromRotation",(function(){return _})),n.d(e,"fromScaling",(function(){return x})),n.d(e,"fromMat2d",(function(){return w})),n.d(e,"fromQuat",(function(){return O})),n.d(e,"normalFromMat4",(function(){return S})),n.d(e,"projection",(function(){return C})),n.d(e,"str",(function(){return E})),n.d(e,"frob",(function(){return T})),n.d(e,"add",(function(){return A})),n.d(e,"subtract",(function(){return M})),n.d(e,"multiplyScalar",(function(){return I})),n.d(e,"multiplyScalarAndAdd",(function(){return j})),n.d(e,"exactEquals",(function(){return k})),n.d(e,"equals",(function(){return P})),n.d(e,"mul",(function(){return L})),n.d(e,"sub",(function(){return R}));var r=n(22);function i(){var t=new r.ARRAY_TYPE(9);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function a(t){var e=new r.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function u(t,e,n,i,o,a,s,u,l){var c=new r.ARRAY_TYPE(9);return c[0]=t,c[1]=e,c[2]=n,c[3]=i,c[4]=o,c[5]=a,c[6]=s,c[7]=u,c[8]=l,c}function l(t,e,n,r,i,o,a,s,u,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=l,t}function c(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function h(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function f(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=c*a-s*l,f=-c*o+s*u,d=l*o-a*u,p=n*h+r*f+i*d;return p?(p=1/p,t[0]=h*p,t[1]=(-c*r+i*l)*p,t[2]=(s*r-i*a)*p,t[3]=f*p,t[4]=(c*n-i*u)*p,t[5]=(-s*n+i*o)*p,t[6]=d*p,t[7]=(-l*n+r*u)*p,t[8]=(a*n-r*o)*p,t):null}function d(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],l=e[7],c=e[8];return t[0]=a*c-s*l,t[1]=i*l-r*c,t[2]=r*s-i*a,t[3]=s*u-o*c,t[4]=n*c-i*u,t[5]=i*o-n*s,t[6]=o*l-a*u,t[7]=r*u-n*l,t[8]=n*a-r*o,t}function p(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],l=t[8];return e*(l*o-a*u)+n*(-l*i+a*s)+r*(u*i-o*s)}function g(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=n[0],d=n[1],p=n[2],g=n[3],v=n[4],m=n[5],y=n[6],b=n[7],_=n[8];return t[0]=f*r+d*a+p*l,t[1]=f*i+d*s+p*c,t[2]=f*o+d*u+p*h,t[3]=g*r+v*a+m*l,t[4]=g*i+v*s+m*c,t[5]=g*o+v*u+m*h,t[6]=y*r+b*a+_*l,t[7]=y*i+b*s+_*c,t[8]=y*o+b*u+_*h,t}function v(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=f*r+d*a+l,t[7]=f*i+d*s+c,t[8]=f*o+d*u+h,t}function m(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=Math.sin(n),d=Math.cos(n);return t[0]=d*r+f*a,t[1]=d*i+f*s,t[2]=d*o+f*u,t[3]=d*a-f*r,t[4]=d*s-f*i,t[5]=d*u-f*o,t[6]=l,t[7]=c,t[8]=h,t}function y(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function b(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function _(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function x(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function w(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function O(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,l=n*a,c=r*a,h=r*s,f=i*a,d=i*s,p=i*u,g=o*a,v=o*s,m=o*u;return t[0]=1-h-p,t[3]=c-m,t[6]=f+v,t[1]=c+m,t[4]=1-l-p,t[7]=d-g,t[2]=f-v,t[5]=d+g,t[8]=1-l-h,t}function S(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=n*s-r*a,b=n*u-i*a,_=n*l-o*a,x=r*u-i*s,w=r*l-o*s,O=i*l-o*u,S=c*g-h*p,C=c*v-f*p,E=c*m-d*p,T=h*v-f*g,A=h*m-d*g,M=f*m-d*v,I=y*M-b*A+_*T+x*E-w*C+O*S;return I?(I=1/I,t[0]=(s*M-u*A+l*T)*I,t[1]=(u*E-a*M-l*C)*I,t[2]=(a*A-s*E+l*S)*I,t[3]=(i*A-r*M-o*T)*I,t[4]=(n*M-i*E+o*C)*I,t[5]=(r*E-n*A-o*S)*I,t[6]=(g*O-v*w+m*x)*I,t[7]=(v*_-p*O-m*b)*I,t[8]=(p*w-g*_+m*y)*I,t):null}function C(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function E(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function T(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function A(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function M(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function I(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function j(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function k(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function P(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=e[0],d=e[1],p=e[2],g=e[3],v=e[4],m=e[5],y=e[6],b=e[7],_=e[8];return Math.abs(n-f)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(i-d)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-p)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-g)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-v)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(u-m)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(l-y)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(c-b)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(h-_)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(_))}var L=g,R=M},function(t,e,n){"use strict";n.r(e),n.d(e,"getEasing",(function(){return o})),n.d(e,"registerEasing",(function(){return a}));var r=n(1558),i={};function o(t){return i[t.toLowerCase()]||r[t]}function a(t,e){i[t.toLowerCase()]=e}},function(t,e,n){"use strict";n.r(e);var r=n(344),i=n(91);e.default={box:function(t){for(var e=[],n=[],r=0;r<t.length;r++){var o=t[r];e.push(o[0]),n.push(o[1])}return Object(i.getBBoxByArray)(e,n)},length:function(t){return Object(r.lengthOfSegment)(t)},pointAt:function(t,e){return Object(r.pointAtSegments)(t,e)},pointDistance:function(t,e,n){return Object(r.distanceAtSegment)(t,e,n)},tangentAngle:function(t,e){return Object(r.angleAtSegments)(t,e)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"getOffScreenContext",(function(){return i}));var r=null;function i(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d")}return r}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;e.default=function(t){var e=t||[];return Object(r.isArray)(e)?e:Object(r.isString)(e)?(e=e.match(i),Object(r.each)(e,(function(t,n){if((t=t.match(o))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}},function(t,e,n){"use strict";function r(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(659),i=/[a-z]/;function o(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function a(t){var e=Object(r.default)(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,a=0;a<e.length;a++){var s=e[a][0];if(i.test(s)||["V","H","T","S"].indexOf(s)>=0){n=!0;break}}if(!n)return e;var u=[],l=0,c=0,h=0,f=0,d=0,p=e[0];"M"!==p[0]&&"m"!==p[0]||(h=l=+p[1],f=c=+p[2],d++,u[0]=["M",l,c]);a=d;for(var g=e.length;a<g;a++){var v=e[a],m=u[a-1],y=[],b=(s=v[0]).toUpperCase();if(s!==b)switch(y[0]=b,b){case"A":y[1]=v[1],y[2]=v[2],y[3]=v[3],y[4]=v[4],y[5]=v[5],y[6]=+v[6]+l,y[7]=+v[7]+c;break;case"V":y[1]=+v[1]+c;break;case"H":y[1]=+v[1]+l;break;case"M":h=+v[1]+l,f=+v[2]+c,y[1]=h,y[2]=f;break;default:for(var _=1,x=v.length;_<x;_++)y[_]=+v[_]+(_%2?l:c)}else y=e[a];switch(b){case"Z":l=+h,c=+f;break;case"H":y=["L",l=y[1],c];break;case"V":y=["L",l,c=y[1]];break;case"T":l=y[1],c=y[2];var w=o([m[1],m[2]],[m[3],m[4]]);y=["Q",w[0],w[1],l,c];break;case"S":l=y[y.length-2],c=y[y.length-1];var O=m.length,S=o([m[O-4],m[O-3]],[m[O-2],m[O-1]]);y=["C",S[0],S[1],y[1],y[2],l,c];break;case"M":h=y[y.length-2],f=y[y.length-1];break;default:l=y[y.length-2],c=y[y.length-1]}u.push(y)}return u}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(1),i="\t\n\v\f\r    \u2028\u2029",o=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig");function s(t){if(!t)return null;if(Object(r.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(o,(function(t,r,i){var o=[],s=r.toLowerCase();if(i.replace(a,(function(t,e){e&&o.push(+e)})),"m"===s&&o.length>2&&(n.push([r].concat(o.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===o.length&&n.push([r,o[0]]),"r"===s)n.push([r].concat(o));else for(;o.length>=e[s]&&(n.push([r].concat(o.splice(0,e[s]))),e[s]););return""})),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=function(t,e,n){return t>=e&&t<=n};function i(t,e,n,i){var o=n.x-t.x,a=n.y-t.y,s=e.x-t.x,u=e.y-t.y,l=i.x-n.x,c=i.y-n.y,h=s*c-u*l,f=null;if(h*h>.001*(s*s+u*u)*(l*l+c*c)){var d=(o*c-a*l)/h,p=(o*u-a*s)/h;r(d,0,1)&&r(p,0,1)&&(f={x:t.x+d*s,y:t.y+d*u})}return f}},function(t,e,n){"use strict";n.r(e),n.d(e,"propagationDelegate",(function(){return i}));var r=n(88);function i(t,e,n){var i=new r.Event(e,n);i.target=t,i.propagationPath.push(t),t.emitDelegation(e,i);for(var o=t.getParent();o;)o.emitDelegation(e,i),i.propagationPath.push(o),o=o.getParent()}},function(t,e,n){"use strict";n.r(e);var r=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}();e.default=r},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(97),a=n(98),s=n(78),u=n(388),l=n(126),c=n(219),h=n(276);var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var o=this.getTitle(n),a={x:n[0].x,y:n[0].y};e.emit("tooltip:show",h.default.fromData(e,"tooltip:show",Object(r.__assign)({items:n,title:o},t)));var s=this.getTooltipCfg(),u=s.follow,l=s.showMarkers,c=s.showCrosshairs,f=s.showContent,d=s.marker,p=this.items,g=this.title;if(Object(i.isEqual)(g,o)&&Object(i.isEqual)(p,n)?(this.tooltip&&u&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",h.default.fromData(e,"tooltip:change",Object(r.__assign)({items:n,title:o},t))),(Object(i.isFunction)(f)?f(n):f)&&(this.tooltip||this.renderTooltip(),this.tooltip.update(Object(i.mix)({},s,{items:this.getItemsAfterProcess(n),title:o},u?t:{})),this.tooltip.show()),l&&this.renderTooltipMarkers(n,d)),this.items=n,this.title=o,c){var v=Object(i.get)(s,["crosshairs","follow"],!1);this.renderCrosshairs(v?t:a,s)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,n=this.yCrosshair;e&&e.hide(),n&&n.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",h.default.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this.tooltip,e=this.xCrosshair,n=this.yCrosshair,r=this.tooltipMarkersGroup;t&&(t.hide(),t.clear()),e&&e.clear(),n&&n.clear(),r&&r.clear(),(null==t?void 0:t.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this.tooltip,n=this.tooltipMarkersGroup,r=this.xCrosshair,i=this.yCrosshair;t?(e&&e.show(),n&&n.show(),r&&r.show(),i&&i.show()):(e&&e.hide(),n&&n.hide(),r&&r.hide(),i&&i.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e,n,o,a,s,u,l=this.findItemsFromView(this.view,t);if(l.length){l=Object(i.flatten)(l);try{for(var c=Object(r.__values)(l),h=c.next();!h.done;h=c.next()){var f=h.value;try{for(var d=(o=void 0,Object(r.__values)(f)),p=d.next();!p.done;p=d.next()){var g=p.value,v=g.mappingData,m=v.x,y=v.y;g.x=Object(i.isArray)(m)?m[m.length-1]:m,g.y=Object(i.isArray)(y)?y[y.length-1]:y}}catch(t){o={error:t}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}if(!1===this.getTooltipCfg().shared&&l.length>1){var b=l[0],_=Math.abs(t.y-b[0].y);try{for(var x=Object(r.__values)(l),w=x.next();!w.done;w=x.next()){var O=w.value,S=Math.abs(t.y-O[0].y);S<=_&&(b=O,_=S)}}catch(t){s={error:t}}finally{try{w&&!w.done&&(u=x.return)&&u.call(x)}finally{if(s)throw s.error}}l=[b]}return function(t){for(var e=[],n=function(n){var r=t[n];Object(i.find)(e,(function(t){return t.color===r.color&&t.name===r.name&&t.value===r.value&&t.title===r.title}))||e.push(r)},r=0;r<t.length;r++)n(r);return e}(Object(i.flatten)(l))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var e=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(e&&n){var r=e.getBoundingClientRect(),i=r.x,o=r.y,a=r.width,s=r.height;return new l.BBox(i,o,a,s).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=this.processCustomContent(e),r=t.getTheme(),o=Object(i.get)(r,["components","tooltip"],{}),a=Object(i.get)(n,"enterable",o.enterable);return Object(i.deepMix)({},o,n,{capture:!(!a&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if(Object(i.isBoolean)(t)||!Object(i.get)(t,"customContent"))return t;var e=t.customContent;return Object(r.__assign)(Object(r.__assign)({},t),{customContent:function(t,n){var r=e(t,n)||"";return Object(i.isString)(r)?'<div class="g2-tooltip">'+r+"</div>":r}})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),i=new o.HtmlTooltip(Object(r.__assign)(Object(r.__assign)({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){var n,o,s=this.getTooltipMarkersGroup(),u=this.view.getRootView(),l=u.limitInPlot;try{for(var c=Object(r.__values)(t),h=c.next();!h.done;h=c.next()){var f=h.value,d=f.x,p=f.y;if(l||(null==s?void 0:s.getClip())){var g=Object(a.getCoordinateClipCfg)(u.getCoordinate()),v=g.type,m=g.attrs;null==s||s.setClip({type:v,attrs:m})}else null==s||s.setClip(void 0);var y=this.view.getTheme(),b=Object(i.get)(y,["components","tooltip","marker"],{}),_=Object(r.__assign)(Object(r.__assign)({fill:f.color,symbol:"circle",shadowColor:f.color},Object(i.isFunction)(e)?Object(r.__assign)(Object(r.__assign)({},b),e(f)):e),{x:d,y:p});s.addShape("marker",{attrs:_})}}catch(t){n={error:t}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=Object(i.get)(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n,r,u=this.getViewWithGeometry(this.view).getCoordinate();if(u.isRect)u.isTransposed?(n={x:u.start.x,y:t.y},r={x:u.end.x,y:t.y}):(n={x:t.x,y:u.end.y},r={x:t.x,y:u.start.y});else{var l=Object(a.getAngleByPoint)(u,t),c=u.getCenter(),h=u.getRadius();r=Object(s.polarToCartesian)(c.x,c.y,h,l),n=c}var f=Object(i.deepMix)({start:n,end:r,container:this.getTooltipCrosshairsGroup()},Object(i.get)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete f.type;var d=this.xCrosshair;d?d.update(f):(d=new o.Crosshair.Line(f)).init(),d.render(),d.show(),this.xCrosshair=d},e.prototype.renderYCrosshairs=function(t,e){var n,r,s=this.getViewWithGeometry(this.view).getCoordinate();if(s.isRect){var u=void 0,l=void 0;s.isTransposed?(u={x:t.x,y:s.end.y},l={x:t.x,y:s.start.y}):(u={x:s.start.x,y:t.y},l={x:s.end.x,y:t.y}),n={start:u,end:l},r="Line"}else n={center:s.getCenter(),radius:Object(a.getDistanceToCenter)(s,t),startAngle:s.startAngle,endAngle:s.endAngle},r="Circle";delete(n=Object(i.deepMix)({container:this.getTooltipCrosshairsGroup()},n,Object(i.get)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var c=this.yCrosshair;c?s.isRect&&"circle"===c.get("type")||!s.isRect&&"line"===c.get("type")?(c=new o.Crosshair[r](n)).init():c.update(n):(c=new o.Crosshair[r](n)).init(),c.render(),c.show(),this.yCrosshair=c},e.prototype.getCrosshairsText=function(t,e,n){var r=Object(i.get)(n,["crosshairs","text"]),o=Object(i.get)(n,["crosshairs","follow"]),a=this.items;if(r){var s=this.getViewWithGeometry(this.view),u=a[0],l=s.getXScale(),c=s.getYScales()[0],h=void 0,f=void 0;if(o){var d=this.view.getCoordinate().invert(e);h=l.invert(d.x),f=c.invert(d.y)}else h=u.data[l.field],f=u.data[c.field];var p="x"===t?h:f;return Object(i.isFunction)(r)?r=r(t,p,a,e):r.content=p,{text:r}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){var n,i;if(!1===t.getOptions().tooltip)return[];var o=this.getTooltipCfg(),a=Object(u.findItemsFromView)(t,e,o);try{for(var s=Object(r.__values)(t.views),l=s.next();!l.done;l=s.next()){var c=l.value;a=a.concat(this.findItemsFromView(c,e))}}catch(t){n={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return a},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:Object(i.find)(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems;return(e||function(t){return t})(t)},e}(c.Controller);e.default=f},function(t,e,n){"use strict";n.r(e),n.d(e,"getPath",(function(){return h}));var r=n(1),i=n(39),o=n(208),a=n(77),s=n(188),u=n(494),l=n(741);function c(t,e,n,r,i){return 1===t.length?[["M",t[0].x,t[0].y-i.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+i.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),o=Object(s.getSplinePath)(t,!1,r)):(o=Object(s.getLinePath)(t,!1),e&&o.push(["Z"])),o);var o}function h(t,e,n,i,o,a){if(t.length){var s=t[0];return Object(r.isArray)(s.y)?function(t,e,n,i,o,a){var s=[],l=[];Object(r.each)(t,(function(t){var e=Object(u.splitPoints)(t);s.push(e[1]),l.push(e[0])}));var h=c(s,e,i,o,a),f=c(l,e,i,o,a);return n?h:h.concat(f)}(t,e,n,i,o,a):c(t,e,i,o,a)}return[]}var f=Object(i.registerShapeFactory)("line",{defaultShapeType:"line"});Object(r.each)(["line","dot","dash","smooth"],(function(t){Object(i.registerShape)("line",t,{draw:function(e,n){var r,i="smooth"===t;if(i){var s=this.coordinate,u=s.start,l=s.end;r=[[u.x,l.y],[l.x,u.y]]}var c=function(t,e,n){for(var r=t.isStack,i=t.connectNulls,s=t.isInCircle,u=t.showSinglePoint,l=Object(a.getStyle)(t,!0,!1,"lineWidth"),c=Object(o.getPathPoints)(t.points,i,u),f=[],d=0,p=c.length;d<p;d++){var g=c[d];f=f.concat(h(g,s,r,e,n,l))}return l.path=f,l}(e,i,r);return n.addShape({type:"path",attrs:c,name:"line",capture:!i})},getMarker:function(e){return Object(l.getLineMarker)(e,t)}})})),e.default=f},function(t,e,n){"use strict";function r(t,e){var n={};return null!==t&&"object"==typeof t&&e.forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}n.r(e),n.d(e,"pick",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"deepAssign",(function(){return u}));var r={}.toString,i=function(t,e){return r.call(t)==="[object "+e+"]"},o=function(t){return i(t,"Array")},a=function(t){if(!function(t){return"object"==typeof t&&null!==t}(t)||!i(t,"Object"))return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},s=function(t,e,n,r){for(var i in n=n||0,r=r||5,e)if(Object.prototype.hasOwnProperty.call(e,i)){var u=e[i];u?a(u)?(a(t[i])||(t[i]={}),n<r?s(t[i],u,n+1,r):t[i]=e[i]):o(u)?(t[i]=[],t[i]=t[i].concat(u)):t[i]=u:t[i]=u}},u=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)s(t,e[r]);return t}},function(t,e,n){"use strict";n.r(e),n.d(e,"GLOBAL",(function(){return i})),n.d(e,"setGlobal",(function(){return o}));var r=n(1),i={locale:"en-US"};function o(t){Object(r.each)(t,(function(t,e){return i[e]=t}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return s}));var r=n(2),i=n(26),o=n(332),a=n(1702),s=(n(1999),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options;Object(o.meta)({chart:e,options:n}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot))},function(t,e,n){"use strict";n.r(e),n.d(e,"getCanvasPattern",(function(){return a}));var r=n(1699),i=n(1700),o=n(1701);function a(t){var e,n=t.type,a=t.cfg;switch(n){case"dot":e=Object(r.createDotPattern)(a);break;case"line":e=Object(i.createLinePattern)(a);break;case"square":e=Object(o.createSquarePattern)(a)}return e}},function(t,e,n){"use strict";n.r(e),n.d(e,"point",(function(){return s}));var r=n(2),i=n(138),o=n(3),a=n(110);function s(t){var e=t.options,n=e.point,s=e.xField,u=e.yField,l=e.seriesField,c=e.sizeField,h=e.shapeField,f=e.tooltip,d=e.useDeferredLabel,p=Object(i.getTooltipMapping)(f,[s,u,l,c,h]),g=p.fields,v=p.formatter;return n?Object(a.geometry)(Object(o.deepAssign)({},t,{options:{type:"point",colorField:l,shapeField:h,tooltipFields:g,mapping:Object(r.__assign)({tooltip:v},n),args:{useDeferredLabel:d}}})):t}},function(t,e,n){"use strict";n.r(e),n.d(e,"polygon",(function(){return s}));var r=n(2),i=n(138),o=n(3),a=n(110);function s(t){var e=t.options,n=e.polygon,s=e.xField,u=e.yField,l=e.seriesField,c=e.tooltip,h=e.useDeferredLabel,f=Object(i.getTooltipMapping)(c,[s,u,l]),d=f.fields,p=f.formatter;return n?Object(a.geometry)(Object(o.deepAssign)({},t,{options:{type:"polygon",colorField:l,tooltipFields:d,mapping:Object(r.__assign)({tooltip:p},n),args:{useDeferredLabel:h}}})):t}},function(t,e,n){"use strict";n.r(e),n.d(e,"Area",(function(){return u}));var r=n(2),i=n(26),o=n(244),a=n(585),s=n(1704),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.isPercent,r=e.xField,i=e.yField,s=this.chart,u=this.options;Object(a.meta)({chart:s,options:u}),this.chart.changeData(Object(o.getDataWhetherPercentage)(t,i,r,i,n))},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"Column",(function(){return u}));var r=n(2),i=n(26),o=n(244),a=n(293),s=n(1708),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.yField,r=e.xField,i=e.isPercent,s=this.chart,u=this.options;Object(a.meta)({chart:s,options:u}),this.chart.changeData(Object(o.getDataWhetherPercentage)(t,n,r,n,i))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"Bar",(function(){return u}));var r=n(2),i=n(26),o=n(244),a=n(586),s=n(1709),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bar",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){var e,n;this.updateOption({data:t});var i=this.chart,s=this.options,u=s.isPercent,l=s.xField,c=s.yField,h=s.xAxis,f=s.yAxis;l=(e=[c,l])[0],c=e[1],h=(n=[f,h])[0],f=n[1];var d=Object(r.__assign)(Object(r.__assign)({},s),{xField:l,yField:c,yAxis:f,xAxis:h});Object(a.meta)({chart:i,options:d}),i.changeData(Object(o.getDataWhetherPercentage)(t,l,c,l,u))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"Pie",(function(){return c}));var r=n(2),i=n(13),o=n(26),a=n(3),s=n(587),u=n(756),l=n(405),c=(n(874),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return u.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.chart.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null));var e=this.options,n=this.options.angleField,r=Object(a.processIllegalData)(e.data,n),o=Object(a.processIllegalData)(t,n);Object(l.isAllZero)(r,n)||Object(l.isAllZero)(o,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(o),Object(s.pieAnnotation)({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e}(o.Plot))},function(t,e,n){"use strict";n.r(e),n.d(e,"Scatter",(function(){return l}));var r=n(2),i=n(13),o=n(26),a=n(3),s=n(406),u=n(1716),l=(n(2001),function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.type="scatter",o.on(i.VIEW_LIFE_CIRCLE.BEFORE_RENDER,(function(t){var e,n,a=o,u=a.options,l=a.chart;if((null===(e=t.data)||void 0===e?void 0:e.source)===i.BRUSH_FILTER_EVENTS.FILTER){var c=o.chart.filterData(o.chart.getData());Object(s.meta)({chart:l,options:Object(r.__assign)(Object(r.__assign)({},u),{data:c})})}(null===(n=t.data)||void 0===n?void 0:n.source)===i.BRUSH_FILTER_EVENTS.RESET&&Object(s.meta)({chart:l,options:u})})),o}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return u.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption(Object(s.transformOptions)(Object(a.deepAssign)({},this.options,{data:t})));var e=this.options,n=this.chart;Object(s.meta)({chart:n,options:e}),this.chart.changeData(t)},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(o.Plot))},function(t,e,n){"use strict";n.r(e),n.d(e,"TinyLine",(function(){return u}));var r=n(2),i=n(26),o=n(591),a=n(181),s=n(245),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-line",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options;Object(o.meta)({chart:e,options:n}),e.changeData(Object(s.getTinyData)(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"TinyColumn",(function(){return u}));var r=n(2),i=n(26),o=n(245),a=n(592),s=n(1721),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-column",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options;Object(a.meta)({chart:e,options:n}),e.changeData(Object(o.getTinyData)(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"TinyArea",(function(){return u}));var r=n(2),i=n(26),o=n(245),a=n(294),s=n(1722),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-area",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options;Object(a.meta)({chart:e,options:n}),e.changeData(Object(o.getTinyData)(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"Histogram",(function(){return u}));var r=n(2),i=n(26),o=n(757),a=n(758),s=n(284),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.binField,r=e.binNumber,i=e.binWidth,a=e.stackField;this.chart.changeData(Object(o.binHistogram)(t,n,i,r,a))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"Progress",(function(){return u}));var r=n(2),i=n(26),o=n(502),a=n(759),s=n(503),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="process",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(Object(s.getProgressData)(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"RingProgress",(function(){return l}));var r=n(2),i=n(13),o=n(26),a=n(503),s=n(593),u=n(1723),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ring-process",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return u.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.chart.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(Object(a.getProgressData)(t)),Object(s.statistic)({chart:this.chart,options:this.options},!0),this.chart.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e}(o.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"Stock",(function(){return u}));var r=n(2),i=n(26),o=n(762),a=n(763),s=n(194),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stock",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField;this.chart.changeData(Object(a.getStockData)(t,e))},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"packEnclose",(function(){return l}));var r=n(770),i=n(685);function o(t,e,n){var r,i,o,a,s=t.x-e.x,u=t.y-e.y,l=s*s+u*u;l?(i=e.r+n.r,i*=i,a=t.r+n.r,i>(a*=a)?(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),n.x=t.x-r*s-o*u,n.y=t.y-r*u+o*s):(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=e.x+r*s-o*u,n.y=e.y+r*u+o*s)):(n.x=e.x+n.r,n.y=e.y)}function a(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function s(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function u(t){this._=t,this.next=null,this.previous=null}function l(t){if(!(c=(t=Object(r.default)(t)).length))return 0;var e,n,l,c,h,f,d,p,g,v,m;if((e=t[0]).x=0,e.y=0,!(c>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(c>2))return e.r+n.r;o(n,e,l=t[2]),e=new u(e),n=new u(n),l=new u(l),e.next=l.previous=n,n.next=e.previous=l,l.next=n.previous=e;t:for(d=3;d<c;++d){o(e._,n._,l=t[d]),l=new u(l),p=n.next,g=e.previous,v=n._.r,m=e._.r;do{if(v<=m){if(a(p._,l._)){n=p,e.next=n,n.previous=e,--d;continue t}v+=p._.r,p=p.next}else{if(a(g._,l._)){(e=g).next=n,n.previous=e,--d;continue t}m+=g._.r,g=g.previous}}while(p!==g.next);for(l.previous=e,l.next=n,e.next=n.previous=n=l,h=s(e);(l=l.next)!==n;)(f=s(l))<h&&(e=l,h=f);n=e.next}for(e=[n._],l=n;(l=l.next)!==n;)e.push(l._);for(l=Object(i.default)(e),d=0;d<c;++d)(e=t[d]).x-=l.x,e.y-=l.y;return l.r}e.default=function(t){return l(t),t}},function(t,e,n){"use strict";n.r(e);var r=n(770);function i(t,e){var n,r;if(s(e,t))return[e];for(n=0;n<t.length;++n)if(o(e,t[n])&&s(l(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(o(l(t[n],t[r]),e)&&o(l(t[n],e),t[r])&&o(l(t[r],e),t[n])&&s(c(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function o(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function a(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function s(t,e){for(var n=0;n<e.length;++n)if(!a(t,e[n]))return!1;return!0}function u(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return l(t[0],t[1]);case 3:return c(t[0],t[1],t[2])}var e}function l(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=e.r,u=o-n,l=a-r,c=s-i,h=Math.sqrt(u*u+l*l);return{x:(n+o+u/h*c)/2,y:(r+a+l/h*c)/2,r:(h+i+s)/2}}function c(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,s=e.y,u=e.r,l=n.x,c=n.y,h=n.r,f=r-a,d=r-l,p=i-s,g=i-c,v=u-o,m=h-o,y=r*r+i*i-o*o,b=y-a*a-s*s+u*u,_=y-l*l-c*c+h*h,x=d*p-f*g,w=(p*_-g*b)/(2*x)-r,O=(g*v-p*m)/x,S=(d*b-f*_)/(2*x)-i,C=(f*m-d*v)/x,E=O*O+C*C-1,T=2*(o+w*O+S*C),A=w*w+S*S-o*o,M=-(E?(T+Math.sqrt(T*T-4*E*A))/(2*E):A/T);return{x:r+w+O*M,y:i+S+C*M,r:M}}e.default=function(t){for(var e,n,o=0,s=(t=Object(r.shuffle)(Array.from(t))).length,l=[];o<s;)e=t[o],n&&a(n,e)?++o:(n=u(l=i(l,e)),o=0);return n}},function(t,e,n){"use strict";n.r(e),n.d(e,"Gauge",(function(){return l}));var r=n(2),i=n(13),o=n(26),a=n(595),s=n(158),u=n(526),l=(n(2010),n(2011),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.chart.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t});var e=this.chart.views.find((function(t){return t.id===s.INDICATEOR_VIEW_ID}));e&&e.data(Object(u.getIndicatorData)(t));var n=this.chart.views.find((function(t){return t.id===s.RANGE_VIEW_ID}));n&&n.data(Object(u.getRangeData)(t,this.options.range)),Object(a.statistic)({chart:this.chart,options:this.options},!0),this.chart.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(o.Plot))},function(t,e){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e);var r=n(225),i=function(){function t(t,e){var n=this;this.name=t,this.workerThread=e,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise((function(t,e){n.resolve=t,n.reject=e}))}return t.prototype.postMessage=function(t,e){this.workerThread.postMessage({source:"Main thread",type:t,payload:e})},t.prototype.done=function(t){Object(r.assert)(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(t)},t.prototype.error=function(t){Object(r.assert)(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(t)},t}();e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(362),i=n(471),o=n(688),a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},u=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},l=function(){function t(t){this.name="unnamed",this.maxConcurrency=1,this.maxMobileConcurrency=1,this.onDebug=function(){},this.reuseWorkers=!0,this.props={},this.jobQueue=[],this.idleQueue=[],this.count=0,this.isDestroyed=!1,this.source=t.source,this.url=t.url,this.setProps(t)}return t.prototype.destroy=function(){this.idleQueue.forEach((function(t){return t.destroy()})),this.isDestroyed=!0},t.prototype.setProps=function(t){this.props=a(a({},this.props),t),void 0!==t.name&&(this.name=t.name),void 0!==t.maxConcurrency&&(this.maxConcurrency=t.maxConcurrency),void 0!==t.maxMobileConcurrency&&(this.maxMobileConcurrency=t.maxMobileConcurrency),void 0!==t.reuseWorkers&&(this.reuseWorkers=t.reuseWorkers),void 0!==t.onDebug&&(this.onDebug=t.onDebug)},t.prototype.startJob=function(t,e,n){return void 0===e&&(e=function(t,e,n){return t.done(n)}),void 0===n&&(n=function(t,e){return t.error(e)}),s(this,void 0,void 0,(function(){var r,i=this;return u(this,(function(o){switch(o.label){case 0:return r=new Promise((function(r){return i.jobQueue.push({name:t,onMessage:e,onError:n,onStart:r}),i})),this.startQueuedJob(),[4,r];case 1:return[2,o.sent()]}}))}))},t.prototype.startQueuedJob=function(){return s(this,void 0,void 0,(function(){var t,e,n;return u(this,(function(r){switch(r.label){case 0:if(!this.jobQueue.length)return[2];if(!(t=this.getAvailableWorker()))return[2];if(!(e=this.jobQueue.shift()))return[3,4];this.onDebug({message:"Starting job",name:e.name,backlog:this.jobQueue.length,workerThread:t}),n=new o.default(e.name,t),t.onMessage=function(t){return e.onMessage(n,t.type,t.payload)},t.onError=function(t){return e.onError(n,t)},e.onStart(n),r.label=1;case 1:return r.trys.push([1,,3,4]),[4,n.result];case 2:return r.sent(),[3,4];case 3:return this.returnWorkerToQueue(t),[7];case 4:return[2]}}))}))},t.prototype.returnWorkerToQueue=function(t){this.isDestroyed||!this.reuseWorkers||this.count>this.getMaxConcurrency()?(t.destroy(),this.count--):this.idleQueue.push(t),this.isDestroyed||this.startQueuedJob()},t.prototype.getAvailableWorker=function(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count<this.getMaxConcurrency()){this.count++;var t=this.name.toLowerCase()+" (#"+this.count+" of "+this.maxConcurrency+")";return new i.default({name:t,source:this.source,url:this.url})}return null},t.prototype.getMaxConcurrency=function(){return r.isMobile?this.maxMobileConcurrency:this.maxConcurrency},t}();e.default=l},function(t,e,n){"use strict";n.r(e);var r=function(){function t(){this._values=[],this._settlers=[],this._closed=!1}return t.prototype[Symbol.asyncIterator]=function(){return this},t.prototype.push=function(t){return this.enqueue(t)},t.prototype.enqueue=function(t){if(this._closed)throw new Error("Closed");if(this._settlers.length>0){if(this._values.length>0)throw new Error("Illegal internal state");var e=this._settlers.shift();t instanceof Error?e.reject(t):e.resolve({value:t})}else this._values.push(t)},t.prototype.close=function(){for(;this._settlers.length>0;){this._settlers.shift().resolve({done:!0})}this._closed=!0},t.prototype.next=function(){var t=this;if(this._values.length>0){var e=this._values.shift();return e instanceof Error?Promise.reject(e):Promise.resolve({done:!1,value:e})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise((function(e,n){t._settlers.push({resolve:e,reject:n})}))},t}();e.default=r},function(t,e,n){"use strict";n.r(e),n.d(e,"SourceTile",(function(){return b}));var r=n(266),i=n(74),o=n(19),a=n(20),s=n(68),u=n(61),l=n(63),c=n(32),h=n(52),f=n(49),d=n.n(f),p=n(1852),g=n(209),v=n(168),m=n(328);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(c.default)(t);if(e){var i=Object(c.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(l.default)(this,n)}}var b=function(t){Object(u.default)(l,t);var e,n=y(l);function l(t){var e;Object(o.default)(this,l),e=n.call(this),Object(h.default)(Object(s.default)(e),"tileSize",256),Object(h.default)(Object(s.default)(e),"isVisible",!1),Object(h.default)(Object(s.default)(e),"isCurrent",!1),Object(h.default)(Object(s.default)(e),"isVisibleChange",!1),Object(h.default)(Object(s.default)(e),"loadedLayers",0),Object(h.default)(Object(s.default)(e),"isLayerLoaded",!1),Object(h.default)(Object(s.default)(e),"isLoad",!1),Object(h.default)(Object(s.default)(e),"isChildLoad",!1),Object(h.default)(Object(s.default)(e),"parent",null),Object(h.default)(Object(s.default)(e),"children",[]),Object(h.default)(Object(s.default)(e),"data",null),Object(h.default)(Object(s.default)(e),"properties",{}),Object(h.default)(Object(s.default)(e),"loadDataId",0);var r=t.x,i=t.y,a=t.z,u=t.tileSize,c=t.warp,f=void 0===c||c;return e.x=r,e.y=i,e.z=a,e.warp=f||!0,e.tileSize=u,e}return Object(a.default)(l,[{key:"isLoading",get:function(){return this.loadStatus===v.LoadTileDataStatus.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===v.LoadTileDataStatus.Loaded}},{key:"isFailure",get:function(){return this.loadStatus===v.LoadTileDataStatus.Failure}},{key:"setTileLayerLoaded",value:function(){this.isLayerLoaded=!0}},{key:"isCancelled",get:function(){return this.loadStatus===v.LoadTileDataStatus.Cancelled}},{key:"isDone",get:function(){return[v.LoadTileDataStatus.Loaded,v.LoadTileDataStatus.Cancelled,v.LoadTileDataStatus.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return Object(m.tileToBounds)(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var t=Object(i.default)(this.bounds,4),e=t[0],n=t[1],r=[(t[2]-e)/2,(t[3]-n)/2];return Object(p.default)(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:r,meta:"\n ".concat(this.key,"\n ")}})}},{key:"key",get:function(){return"".concat(this.x,"_").concat(this.y,"_").concat(this.z)}},{key:"layerLoad",value:function(){this.loadedLayers++,this.emit("layerLoaded")}},{key:"loadData",value:(e=Object(r.default)(d.a.mark((function t(e){var n,r,i,o,a,s,u,l,c,h,f,p,g,y,b,_,x;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.getData,r=e.onLoad,i=e.onError,this.loadDataId++,o=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=v.LoadTileDataStatus.Loading,a=null,t.prev=7,u=this.x,l=this.y,c=this.z,h=this.bounds,f=this.tileSize,p=this.warp,g=Object(m.getTileWarpXY)(u,l,c,p),y=g.warpX,b=g.warpY,_=this.abortController.signal,x={x:y,y:b,z:c,bounds:h,tileSize:f,signal:_,warp:p},t.next=14,n(x,this);case 14:a=t.sent,t.next=20;break;case 17:t.prev=17,t.t0=t.catch(7),s=t.t0;case 20:if(o===this.loadDataId){t.next=22;break}return t.abrupt("return");case 22:if(!this.isCancelled||a){t.next=24;break}return t.abrupt("return");case 24:if(!s&&a){t.next=28;break}return this.loadStatus=v.LoadTileDataStatus.Failure,i(s,this),t.abrupt("return");case 28:this.loadStatus=v.LoadTileDataStatus.Loaded,this.data=a,r(this);case 31:case"end":return t.stop()}}),t,this,[[7,17]])}))),function(t){return e.apply(this,arguments)})},{key:"reloadData",value:function(t){this.isLoading&&this.abortLoad(),this.loadData(t)}},{key:"abortLoad",value:function(){this.isLoaded||this.isCancelled||(this.loadStatus=v.LoadTileDataStatus.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}}]),l}(g.EventEmitter)},function(t,e,n){"use strict";n.r(e);var r=n(55);e.default=function(t,e,n,i,o,a){!t.required||n.hasOwnProperty(t.field)&&!r.isEmptyValue(e,a||t.type)||i.push(r.format(o.messages.required,t.fullField))}},function(t,e,n){"use strict";n.r(e);var r={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-r.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*r.bounceIn(2*t):.5*r.bounceOut(2*t-1)+.5}};e.default=r},function(t,e,n){"use strict";n.r(e),n.d(e,"PRESERVED_NORMAL_STATE",(function(){return f}));var r=n(129),i=n(393),o=n(35),a=n(142),s=n(60),u=n(0),l=n(166),c=n(80),h=n(108),f="__zr_normal__",d=r.TRANSFORMABLE_PROPS.concat(["ignore"]),p=Object(u.reduce)(r.TRANSFORMABLE_PROPS,(function(t,e){return t[e]=!0,t}),{ignore:!1}),g={},v=new o.default(0,0,0,0),m=function(){function t(t){this.id=Object(u.guid)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,u=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var c=v;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g,n,c):Object(s.calculateTextPosition)(g,n,c),i.x=g.x,i.y=g.y,o=g.align,a=g.verticalAlign;var f=n.origin;if(f&&null!=n.rotation){var d=void 0,p=void 0;"center"===f?(d=.5*c.width,p=.5*c.height):(d=Object(s.parsePercent)(f[0],c.width),p=Object(s.parsePercent)(f[1],c.height)),l=!0,i.originX=-i.x+d+(r?0:c.x),i.originY=-i.y+p+(r?0:c.y)}}null!=n.rotation&&(i.rotation=n.rotation);var m=n.offset;m&&(i.x+=m[0],i.y+=m[1],l||(i.originX=-m[0],i.originY=-m[1]));var y=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),_=void 0,x=void 0,w=void 0;y&&this.canBeInsideText()?(_=n.insideFill,x=n.insideStroke,null!=_&&"auto"!==_||(_=this.getInsideTextFill()),null!=x&&"auto"!==x||(x=this.getInsideTextStroke(_),w=!0)):(_=n.outsideFill,x=n.outsideStroke,null!=_&&"auto"!==_||(_=this.getOutsideFill()),null!=x&&"auto"!==x||(x=this.getOutsideStroke(_),w=!0)),(_=_||"#000")===b.fill&&x===b.stroke&&w===b.autoStroke&&o===b.align&&a===b.verticalAlign||(u=!0,b.fill=_,b.stroke=x,b.autoStroke=w,b.align=o,b.verticalAlign=a,e.setDefaultTextStyle(b)),e.__dirty|=h.REDRAW_BIT,u&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?l.LIGHT_LABEL_COLOR:l.DARK_LABEL_COLOR},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Object(c.parse)(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(c.stringify)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(u.extend)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(Object(u.isObject)(t))for(var n=t,r=Object(u.keys)(n),i=0;i<r.length;i++){var o=r[i];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==f)){var o=r.targetName,a=o?e[o]:e;r.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,d)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(f,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===f;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(Object(u.indexOf)(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,d=this._textGuide;return c&&c.useState(t,e,n,l),d&&d.useState(t,e,n,l),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h.REDRAW_BIT),s}Object(u.logError)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var u=t[s],l=void 0;this.stateProxy&&(l=this.stateProxy(u,t)),l||(l=this.states[u]),l&&r.push(l)}var c=r[o-1],f=!!(c&&c.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var g=this._textContent,v=this._textGuide;g&&g.useStates(t,e,f),v&&v.useStates(t,e,f),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h.REDRAW_BIT)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=Object(u.indexOf)(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=Object(u.indexOf)(r,t),o=Object(u.indexOf)(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];Object(u.extend)(n,i),i.textConfig&&(e=e||{},Object(u.extend)(e,i.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){var a=!(e&&r);e&&e.textConfig?(this.textConfig=Object(u.extend)({},r?this.textConfig:n.textConfig),Object(u.extend)(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,c=0;c<d.length;c++){var h=d[c],f=i&&p[h];e&&null!=e[h]?f?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(f?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!i)for(c=0;c<this.animators.length;c++){var g=this.animators[c],v=g.targetName;g.getLoop()||g.__changeFinalValue(v?(e||n)[v]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new r.default,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Object(u.extend)(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=h.REDRAW_BIT;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var r=t?this[t]:this;var o=new i.default(r,e,n);return t&&(o.targetName=t),this.addAnimator(o,t),o},t.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during((function(){r.updateDuringAnimation(e)})).done((function(){var e=r.animators,n=Object(u.indexOf)(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){y(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){y(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=y(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=h.REDRAW_BIT;function n(t,n,r,i){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(e,t,{get:function(){this[n]||o(this,this[n]=[]);return this[n]},set:function(t){this[r]=t[0],this[i]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function y(t,e,n,r,o){var a=[];!function t(e,n,r,o,a,s,l,c){for(var h=Object(u.keys)(o),f=a.duration,d=a.delay,p=a.additive,g=a.setToFinal,v=!Object(u.isObject)(s),m=e.animators,y=[],b=0;b<h.length;b++){var x=h[b],w=o[x];if(null!=w&&null!=r[x]&&(v||s[x]))if(!Object(u.isObject)(w)||Object(u.isArrayLike)(w)||Object(u.isGradientObject)(w))y.push(x);else{if(n){c||(r[x]=w,e.updateDuringAnimation(n));continue}t(e,x,r[x],w,a,s&&s[x],l,c)}else c||(r[x]=w,e.updateDuringAnimation(n),y.push(x))}var O=y.length;if(!p&&O)for(var S=0;S<m.length;S++){if((E=m[S]).targetName===n)if(E.stopTracks(y)){var C=Object(u.indexOf)(m,E);m.splice(C,1)}}a.force||(y=Object(u.filter)(y,(function(t){return e=o[t],n=r[t],!(e===n||Object(u.isArrayLike)(e)&&Object(u.isArrayLike)(n)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}(e,n));var e,n})),O=y.length);if(O>0||a.force&&!l.length){var E,T=void 0,A=void 0,M=void 0;if(c){A={},g&&(T={});for(S=0;S<O;S++){x=y[S];A[x]=r[x],g?T[x]=o[x]:r[x]=o[x]}}else if(g){M={};for(S=0;S<O;S++){x=y[S];M[x]=Object(i.cloneValue)(r[x]),_(r,o,x)}}(E=new i.default(r,!1,!1,p?Object(u.filter)(m,(function(t){return t.targetName===n})):null)).targetName=n,a.scope&&(E.scope=a.scope),g&&T&&E.whenWithKeys(0,T,y),M&&E.whenWithKeys(0,M,y),E.whenWithKeys(null==f?500:f,c?A:o,y).delay(d||0),e.addAnimator(E,n),l.push(E)}}(t,"",t,e,n=n||{},r,a,o);var s=a.length,l=!1,c=n.done,h=n.aborted,f=function(){l=!0,--s<=0&&(l?c&&c():h&&h())},d=function(){--s<=0&&(l?c&&c():h&&h())};s||c&&c(),a.length>0&&n.during&&a[0].during((function(t,e){n.during(e)}));for(var p=0;p<a.length;p++){var g=a[p];f&&g.done(f),d&&g.aborted(d),n.force&&g.duration(n.duration),g.start(n.easing)}return a}function b(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function _(t,e,n){if(Object(u.isArrayLike)(e[n]))if(Object(u.isArrayLike)(t[n])||(t[n]=[]),Object(u.isTypedArray)(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),b(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(c=i,Object(u.isArrayLike)(c[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?b(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else b(o,i,a);o.length=i.length}else t[n]=e[n];var c}Object(u.mixin)(m,a.default),Object(u.mixin)(m,r.default),e.default=m},function(t,e,n){"use strict";n.r(e),n.d(e,"LINE_STYLE_KEY_MAP",(function(){return i})),n.d(e,"LineStyleMixin",(function(){return a}));var r=n(242),i=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],o=Object(r.default)(i),a=function(){function t(){}return t.prototype.getLineStyle=function(t){return o(this,t)},t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"ITEM_STYLE_KEY_MAP",(function(){return i})),n.d(e,"ItemStyleMixin",(function(){return a}));var r=n(242),i=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o=Object(r.default)(i),a=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return o(this,t,e)},t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"containStroke",(function(){return i}));var r=n(53);function i(t,e,n,i,o,a,s,u,l){if(0===s)return!1;var c=s;return!(l>e+c&&l>i+c&&l>a+c||l<e-c&&l<i-c&&l<a-c||u>t+c&&u>n+c&&u>o+c||u<t-c&&u<n-c&&u<o-c)&&Object(r.quadraticProjectPoint)(t,e,n,i,o,a,u,l,null)<=c/2}},function(t,e,n){"use strict";n.r(e);var r,i,o,a=n(5),s=n(0),u=n(9),l=n(64),c=n(41),h=n(1346),f=n(152),d=n(699),p=n(329);n(38);var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a.__extends)(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new l.default(r),this._locale=new l.default(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=y(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,y(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):o(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,e))}if(!t||"recreate"===t||"media"===t){var u=r.getMediaOption(this);u.length&&Object(s.each)(u,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,o=this._componentsCount,a=[],l=Object(s.createHashMap)(),h=e&&e.replaceMergeMainTypeMap;Object(f.resetSourceDefaulter)(this),Object(s.each)(t,(function(t,e){null!=t&&(c.default.hasClass(e)?e&&(a.push(e),l.set(e,!0)):n[e]=null==n[e]?Object(s.clone)(t):Object(s.merge)(n[e],t,!0))})),h&&h.each((function(t,e){c.default.hasClass(e)&&!l.get(e)&&(a.push(e),l.set(e,!0))})),c.default.topologicalTravel(a,c.default.getAllClassMainTypes(),(function(e){var a=Object(d.concatInternalOptions)(this,e,u.normalizeToArray(t[e])),l=i.get(e),f=l?h&&h.get(e)?"replaceMerge":"normalMerge":"replaceAll",p=u.mappingToExists(l,a,f);u.setComponentTypeToKeyInfo(p,e,c.default),n[e]=null,i.set(e,null),o.set(e,0);var g,v=[],m=[],y=0;Object(s.each)(p,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=c.default.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(g)return void 0;g=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var u=Object(s.extend)({componentIndex:n},t.keyInfo);r=new a(i,this,this,u),Object(s.extend)(r,u),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(v.push(r.option),m.push(r),y++):(v.push(void 0),m.push(void 0))}),this),n[e]=v,i.set(e,m),o.set(e,y),"series"===e&&r(this)}),this),this._seriesIndices||r(this)},e.prototype.getOption=function(){var t=Object(s.clone)(this.option);return Object(s.each)(t,(function(e,n){if(c.default.hasClass(n)){for(var r=u.normalizeToArray(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!u.isComponentIdInternal(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t["\0_ec_inner"],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,r=t.index,i=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=r?(n=[],Object(s.each)(u.normalizeToArray(r),(function(t){a[t]&&n.push(a[t])}))):n=null!=i?v("id",i,a):null!=o?v("name",o,a):Object(s.filter)(a,(function(t){return!!t})),m(n,t)):[]},e.prototype.findComponents=function(t){var e,n,r,i,o,a=t.query,u=t.mainType,l=(n=u+"Index",r=u+"Id",i=u+"Name",!(e=a)||null==e[n]&&null==e[r]&&null==e[i]?null:{mainType:u,index:e[n],id:e[r],name:e[i]}),c=l?this.queryComponents(l):Object(s.filter)(this._componentsMap.get(u),(function(t){return!!t}));return o=m(c,t),t.filter?Object(s.filter)(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(Object(s.isFunction)(t)){var i=e,o=t;r.each((function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&o.call(i,e,r,r.componentIndex)}}))}else for(var a=Object(s.isString)(t)?r.get(t):Object(s.isObject)(t)?this.findComponents(t):null,u=0;a&&u<a.length;u++){var l=a[u];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=u.convertOptionIdName(t,null);return Object(s.filter)(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Object(s.filter)(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return Object(s.filter)(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){i(this),Object(s.each)(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)}),this)},e.prototype.eachRawSeries=function(t,e){Object(s.each)(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){i(this),Object(s.each)(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Object(s.each)(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return i(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){i(this);var n=[];Object(s.each)(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(s.createHashMap)(n)},e.prototype.restoreData=function(t){r(this);var e=this._componentsMap,n=[];e.each((function(t,e){c.default.hasClass(e)&&n.push(e)})),c.default.topologicalTravel(n,c.default.getAllClassMainTypes(),(function(n){Object(s.each)(e.get(n),(function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}(e,t)||e.restoreData()}))}))},e.internalField=(r=function(t){var e=t._seriesIndices=[];Object(s.each)(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Object(s.createHashMap)(e)},i=function(t){},void(o=function(t,e){t.option={},t.option["\0_ec_inner"]=1,t._componentsMap=Object(s.createHashMap)({series:[]}),t._componentsCount=Object(s.createHashMap)();var n,r,i,o=e.aria;Object(s.isObject)(o)&&null==o.enabled&&(o.enabled=!0),n=e,r=t._theme.option,i=n.color&&!n.colorLayer,Object(s.each)(r,(function(t,e){"colorLayer"===e&&i||c.default.hasClass(e)||("object"==typeof t?n[e]=n[e]?Object(s.merge)(n[e],t,!1):Object(s.clone)(t):null==n[e]&&(n[e]=t))})),Object(s.merge)(e,h.default,!1),t._mergeOption(e,null)})),e}(l.default);function v(t,e,n){if(Object(s.isArray)(e)){var r=Object(s.createHashMap)();return Object(s.each)(e,(function(t){null!=t&&(null!=u.convertOptionIdName(t,null)&&r.set(t,!0))})),Object(s.filter)(n,(function(e){return e&&r.get(e[t])}))}var i=u.convertOptionIdName(e,null);return Object(s.filter)(n,(function(e){return e&&null!=i&&e[t]===i}))}function m(t,e){return e.hasOwnProperty("subType")?Object(s.filter)(t,(function(t){return t&&t.subType===e.subType})):t}function y(t){var e=Object(s.createHashMap)();return t&&Object(s.each)(u.normalizeToArray(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Object(s.mixin)(g,p.PaletteMixin),e.default=g},function(t,e,n){"use strict";n.r(e),n.d(e,"registerInternalOptionCreator",(function(){return o})),n.d(e,"concatInternalOptions",(function(){return a}));var r=n(0),i=Object(r.createHashMap)();function o(t,e){Object(r.assert)(null==i.get(t)&&e),i.set(t,e)}function a(t,e,n){var r=i.get(e);if(!r)return n;var o=r(t);return o?n.concat(o):n}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],o=function(t){r.each(i,(function(e){this[e]=r.bind(t[e],t)}),this)};e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"buildPath",(function(){return i}));var r=n(1349);function i(t,e,n){var i=e.smooth,o=e.points;if(o&&o.length>=2){if(i){var a=Object(r.default)(o,i,n,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var s=o.length,u=0;u<(n?s:s-1);u++){var l=a[2*u],c=a[2*u+1],h=o[(u+1)%s];t.bezierCurveTo(l[0],l[1],c[0],c[1],h[0],h[1])}}else{t.moveTo(o[0][0],o[0][1]);u=1;for(var f=o.length;u<f;u++)t.lineTo(o[u][0],o[u][1])}n&&t.closePath()}}},function(t,e,n){"use strict";n.r(e);var r=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();e.default=r},function(t,e,n){"use strict";n.r(e),n.d(e,"ExternalSource",(function(){return c})),n.d(e,"registerExternalTransform",(function(){return v})),n.d(e,"applyDataTransform",(function(){return m}));var r=n(30),i=n(9),o=n(0),a=n(187),s=n(165),u=n(38),l=n(153),c=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Object(s.parseDataValue)(t,e)},t}();function h(t){if(!b(t.sourceFormat)){0,Object(u.throwError)("")}return t.data}function f(t){var e=t.sourceFormat,n=t.data;if(!b(e)){0,Object(u.throwError)("")}if(e===r.SOURCE_FORMAT_ARRAY_ROWS){for(var i=[],a=0,s=n.length;a<s;a++)i.push(n[a].slice());return i}if(e===r.SOURCE_FORMAT_OBJECT_ROWS){for(i=[],a=0,s=n.length;a<s;a++)i.push(Object(o.extend)({},n[a]));return i}}function d(t,e,n){if(null!=n)return Object(o.isNumber)(n)||!isNaN(n)&&!Object(o.hasOwn)(e,n)?t[n]:Object(o.hasOwn)(e,n)?e[n]:void 0}function p(t){return Object(o.clone)(t)}var g=Object(o.createHashMap)();function v(t){var e=(t=Object(o.clone)(t)).type;e||Object(u.throwError)("");var n=e.split(":");2!==n.length&&Object(u.throwError)("");var r=!1;"echarts"===n[0]&&(e=n[1],r=!0),t.__isBuiltIn=r,g.set(e,t)}function m(t,e,n){var r=Object(i.normalizeToArray)(t),o=r.length;o||Object(u.throwError)("");for(var a=0,s=o;a<s;a++){e=y(r[a],e,n,1===o?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function y(t,e,n,s){e.length||Object(u.throwError)(""),Object(o.isObject)(t)||Object(u.throwError)("");var v=t.type,m=g.get(v);m||Object(u.throwError)("");var y=Object(o.map)(e,(function(t){return function(t,e){var n=new c,i=t.data,s=n.sourceFormat=t.sourceFormat,l=t.startIndex;t.seriesLayoutBy!==r.SERIES_LAYOUT_BY_COLUMN&&Object(u.throwError)("");var g=[],v={},m=t.dimensionsDefine;if(m)Object(o.each)(m,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(g.push(r),null!=n){Object(o.hasOwn)(v,n)&&Object(u.throwError)(""),v[n]=r}}));else for(var y=0;y<t.dimensionsDetectedCount;y++)g.push({index:y});var b=Object(a.getRawSourceItemGetter)(s,r.SERIES_LAYOUT_BY_COLUMN);e.__isBuiltIn&&(n.getRawDataItem=function(t){return b(i,l,g,t)},n.getRawData=Object(o.bind)(h,null,t)),n.cloneRawData=Object(o.bind)(f,null,t);var _=Object(a.getRawSourceDataCounter)(s,r.SERIES_LAYOUT_BY_COLUMN);n.count=Object(o.bind)(_,null,i,l,g);var x=Object(a.getRawSourceValueGetter)(s);n.retrieveValue=function(t,e){var n=b(i,l,g,t);return w(n,e)};var w=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=g[e];return n?x(t,e,n.name):void 0}};return n.getDimensionInfo=Object(o.bind)(d,null,g,v),n.cloneAllDimensionInfo=Object(o.bind)(p,null,g),n}(t,m)})),_=Object(i.normalizeToArray)(m.transform({upstream:y[0],upstreamList:y,config:Object(o.clone)(t.config)}));return Object(o.map)(_,(function(t,n){var i;Object(o.isObject)(t)||Object(u.throwError)(""),t.data||Object(u.throwError)(""),b(Object(l.detectSourceFormat)(t.data))||Object(u.throwError)("");var a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),i={seriesLayoutBy:r.SERIES_LAYOUT_BY_COLUMN,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:r.SERIES_LAYOUT_BY_COLUMN,sourceHeader:0,dimensions:t.dimensions};return Object(l.createSource)(t.data,i,null)}))}function b(t){return t===r.SOURCE_FORMAT_ARRAY_ROWS||t===r.SOURCE_FORMAT_OBJECT_ROWS}},function(t,e,n){"use strict";n.r(e),n.d(e,"defaultSeriesFormatTooltip",(function(){return s}));var r=n(0),i=n(83),o=n(187),a=n(9);function s(t){var e,n,s,u,l=t.series,c=t.dataIndex,h=t.multipleSeries,f=l.getData(),d=f.mapDimensionsAll("defaultedTooltip"),p=d.length,g=l.getRawValue(c),v=Object(r.isArray)(g),m=Object(i.retrieveVisualColorForTooltipMarker)(l,c);if(p>1||v&&!p){var y=function(t,e,n,a,s){var u=e.getData(),l=Object(r.reduce)(t,(function(t,e,n){var r=u.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),c=[],h=[],f=[];function d(t,e){var n=u.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(l?f.push(Object(i.createTooltipMarkup)("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:t,valueType:n.type})):(c.push(t),h.push(n.type)))}return a.length?Object(r.each)(a,(function(t){d(Object(o.retrieveRawValue)(u,n,t),t)})):Object(r.each)(t,d),{inlineValues:c,inlineValueTypes:h,blocks:f}}(g,l,c,d,m);e=y.inlineValues,n=y.inlineValueTypes,s=y.blocks,u=y.inlineValues[0]}else if(p){var b=f.getDimensionInfo(d[0]);u=e=Object(o.retrieveRawValue)(f,c,d[0]),n=b.type}else u=e=v?g[0]:g;var _=Object(a.isNameSpecified)(l),x=_&&l.name||"",w=f.getName(c),O=h?x:w;return Object(i.createTooltipMarkup)("section",{header:x,noHeader:h||!_,sortParam:u,blocks:[Object(i.createTooltipMarkup)("nameValue",{markerType:"item",markerColor:m,name:O,noName:!Object(r.trim)(O),value:e,valueType:n})].concat(s||[])})}},function(t,e,n){"use strict";n.r(e),n.d(e,"ScaleRawExtentInfo",(function(){return o})),n.d(e,"ensureScaleRawExtentInfo",(function(){return u})),n.d(e,"parseAxisModelMinMax",(function(){return l}));var r=n(0),i=n(60),o=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var o=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=this._modelMinRaw=e.get("min",!0);Object(r.isFunction)(a)?this._modelMinNum=l(t,a({min:n[0],max:n[1]})):"dataMin"!==a&&(this._modelMinNum=l(t,a));var s=this._modelMaxRaw=e.get("max",!0);if(Object(r.isFunction)(s)?this._modelMaxNum=l(t,s({min:n[0],max:n[1]})):"dataMax"!==s&&(this._modelMaxNum=l(t,s)),o)this._axisDataLen=e.getCategories().length;else{var u=e.get("boundaryGap"),c=Object(r.isArray)(u)?u:[u||0,u||0];"boolean"==typeof c[0]||"boolean"==typeof c[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Object(i.parsePercent)(c[0],1),Object(i.parsePercent)(c[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,a=t?null:n-e||Math.abs(e),s="dataMin"===this._modelMinRaw?e:this._modelMinNum,u="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=s,c=null!=u;null==s&&(s=t?i?0:NaN:e-o[0]*a),null==u&&(u=t?i?i-1:NaN:n+o[1]*a),(null==s||!isFinite(s))&&(s=NaN),(null==u||!isFinite(u))&&(u=NaN);var h=Object(r.eqNaN)(s)||Object(r.eqNaN)(u)||t&&!i;this._needCrossZero&&(s>0&&u>0&&!l&&(s=0),s<0&&u<0&&!c&&(u=0));var f=this._determinedMin,d=this._determinedMax;return null!=f&&(s=f,l=!0),null!=d&&(u=d,c=!0),{min:s,max:u,minFixed:l,maxFixed:c,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[s[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[a[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),a={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};function u(t,e,n){var r=t.rawExtentInfo;return r||(r=new o(t,e,n),t.rawExtentInfo=r,r)}function l(t,e){return null==e?null:Object(r.eqNaN)(e)?NaN:t.parse(e)}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(6),o=n(43),a=n(123),s=n(226),u=n(228),l=n(0),c=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return Object(r.__extends)(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Object(o.format)(t.value,o.fullLeveledFormatter[Object(o.getDefaultFormatPrecisionOfInterval)(Object(o.getPrimaryTimeUnit)(this._minLevelUnit))]||o.fullLeveledFormatter.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale");return Object(o.leveledFormat)(t,e,n,i,r)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var r=this.getSetting("useUTC"),a=function(t,e,n,r){var a=o.timeUnits,s=0;function u(t,e,n,i,o,a,s){for(var u=new Date(e),l=e,c=u[i]();l<n&&l<=r[1];)s.push({value:l}),c+=t,u[o](c),l=u.getTime();s.push({value:l,notAdd:!0})}function c(t,a,s){var l=[],c=!a.length;if(!function(t,e,n,r){var a=i.parseDate(e),s=i.parseDate(n),u=function(t){return Object(o.getUnitValue)(a,t,r)===Object(o.getUnitValue)(s,t,r)},l=function(){return u("year")},c=function(){return l()&&u("month")},h=function(){return c()&&u("day")},f=function(){return h()&&u("hour")},d=function(){return f()&&u("minute")},p=function(){return d()&&u("second")};switch(t){case"year":return l();case"month":return c();case"day":return h();case"hour":return f();case"minute":return d();case"second":return p();case"millisecond":return p()&&u("millisecond")}}(Object(o.getPrimaryTimeUnit)(t),r[0],r[1],n)){c&&(a=[{value:m(new Date(r[0]),t,n)},{value:r[1]}]);for(var h=0;h<a.length-1;h++){var y=a[h].value,b=a[h+1].value;if(y!==b){var _=void 0,x=void 0,w=void 0;switch(t){case"year":_=Math.max(1,Math.round(e/o.ONE_DAY/365)),x=Object(o.fullYearGetterName)(n),w=Object(o.fullYearSetterName)(n);break;case"half-year":case"quarter":case"month":_=d(e),x=Object(o.monthGetterName)(n),w=Object(o.monthSetterName)(n);break;case"week":case"half-week":case"day":_=f(e,31),x=Object(o.dateGetterName)(n),w=Object(o.dateSetterName)(n),!0;break;case"half-day":case"quarter-day":case"hour":_=p(e),x=Object(o.hoursGetterName)(n),w=Object(o.hoursSetterName)(n);break;case"minute":_=g(e,!0),x=Object(o.minutesGetterName)(n),w=Object(o.minutesSetterName)(n);break;case"second":_=g(e,!1),x=Object(o.secondsGetterName)(n),w=Object(o.secondsSetterName)(n);break;case"millisecond":_=v(e),x=Object(o.millisecondsGetterName)(n),w=Object(o.millisecondsSetterName)(n)}u(_,y,b,x,w,0,l),"year"===t&&s.length>1&&0===h&&s.unshift({value:s[0].value-_})}}for(h=0;h<l.length;h++)s.push(l[h]);return l}}for(var h=[],y=[],b=0,_=0,x=0;x<a.length&&s++<1e4;++x){var w=Object(o.getPrimaryTimeUnit)(a[x]);if(Object(o.isPrimaryTimeUnit)(a[x])){c(a[x],h[h.length-1]||[],y);var O=a[x+1]?Object(o.getPrimaryTimeUnit)(a[x+1]):null;if(w!==O){if(y.length){_=b,y.sort((function(t,e){return t.value-e.value}));for(var S=[],C=0;C<y.length;++C){var E=y[C].value;0!==C&&y[C-1].value===E||(S.push(y[C]),E>=r[0]&&E<=r[1]&&b++)}var T=(r[1]-r[0])/e;if(b>1.5*T&&_>T/1.5)break;if(h.push(S),b>T||t===a[x])break}y=[]}}}0;var A=Object(l.filter)(Object(l.map)(h,(function(t){return Object(l.filter)(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),M=[],I=A.length-1;for(x=0;x<A.length;++x)for(var j=A[x],k=0;k<j.length;++k)M.push({value:j[k].value,level:I-x});M.sort((function(t,e){return t.value-e.value}));var P=[];for(x=0;x<M.length;++x)0!==x&&M[x].value===M[x-1].value||P.push(M[x]);return P}(this._minLevelUnit,this._approxInterval,r,e);return(n=n.concat(a)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=o.ONE_DAY,e[1]+=o.ONE_DAY),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-o.ONE_DAY}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=h.length,a=Math.min(function(t,e,n,r){for(;n<r;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n}(h,this._approxInterval,0,o),o-1);this._interval=h[a][1],this._minLevelUnit=h[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(l.isNumber)(t)?t:+i.parseDate(t)},e.prototype.contain=function(t){return a.contain(this.parse(t),this._extent)},e.prototype.normalize=function(t){return a.normalize(this.parse(t),this._extent)},e.prototype.scale=function(t){return a.scale(t,this._extent)},e.type="time",e}(s.default),h=[["second",o.ONE_SECOND],["minute",o.ONE_MINUTE],["hour",o.ONE_HOUR],["quarter-day",6*o.ONE_HOUR],["half-day",12*o.ONE_HOUR],["day",1.2*o.ONE_DAY],["half-week",3.5*o.ONE_DAY],["week",7*o.ONE_DAY],["month",31*o.ONE_DAY],["quarter",95*o.ONE_DAY],["half-year",o.ONE_YEAR/2],["year",o.ONE_YEAR]];function f(t,e){return(t/=o.ONE_DAY)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function d(t){return(t/=30*o.ONE_DAY)>6?6:t>3?3:t>2?2:1}function p(t){return(t/=o.ONE_HOUR)>12?12:t>6?6:t>3.5?4:t>2?2:1}function g(t,e){return(t/=e?o.ONE_MINUTE:o.ONE_SECOND)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function v(t){return i.nice(t,!0)}function m(t,e,n){var r=new Date(t);switch(Object(o.getPrimaryTimeUnit)(e)){case"year":case"month":r[Object(o.monthSetterName)(n)](0);case"day":r[Object(o.dateSetterName)(n)](1);case"hour":r[Object(o.hoursSetterName)(n)](0);case"minute":r[Object(o.minutesSetterName)(n)](0);case"second":r[Object(o.secondsSetterName)(n)](0),r[Object(o.millisecondsSetterName)(n)](0)}return r.getTime()}u.default.registerClass(c),e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(84),i=Math.sin,o=Math.cos,a=Math.PI,s=2*Math.PI,u=180/a,l=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){this._add("C",t,e,n,r,i,o)},t.prototype.quadraticCurveTo=function(t,e,n,r){this._add("Q",t,e,n,r)},t.prototype.arc=function(t,e,n,r,i,o){this.ellipse(t,e,n,n,0,r,i,o)},t.prototype.ellipse=function(t,e,n,l,c,h,f,d){var p=f-h,g=!d,v=Math.abs(p),m=Object(r.isAroundZero)(v-s)||(g?p>=s:-p>=s),y=p>0?p%s:p%s+s,b=!1;b=!!m||!Object(r.isAroundZero)(v)&&y>=a==!!g;var _=t+n*o(h),x=e+l*i(h);this._start&&this._add("M",_,x);var w=Math.round(c*u);if(m){var O=1/this._p,S=(g?1:-1)*(s-O);this._add("A",n,l,w,1,+g,t+n*o(h+S),e+l*i(h+S)),O>.01&&this._add("A",n,l,w,0,+g,_,x)}else{var C=t+n*o(f),E=e+l*i(f);this._add("A",n,l,w,+b,+g,C,E)}},t.prototype.rect=function(t,e,n,r){this._add("M",t,e),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,r,i,o,a,s,u){for(var l=[],c=this._p,h=1;h<arguments.length;h++){var f=arguments[h];if(isNaN(f))return void(this._invalid=!0);l.push(Math.round(f*c)/c)}this._d.push(t+l.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}();e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(0),i={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},o=function(t){return Math.round(t.length/2)};function a(t){return{seriesType:t,reset:function(t,e,n){var a=t.getData(),s=t.get("sampling"),u=t.coordinateSystem,l=a.count();if(l>10&&"cartesian2d"===u.type&&s){var c=u.getBaseAxis(),h=u.getOtherAxis(c),f=c.getExtent(),d=n.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(d||1),g=Math.round(l/p);if(isFinite(g)&&g>1){"lttb"===s&&t.setData(a.lttbDownSample(a.mapDimension(h.dim),1/g));var v=void 0;Object(r.isString)(s)?v=i[s]:Object(r.isFunction)(s)&&(v=s),v&&t.setData(a.downSample(a.mapDimension(h.dim),1/g,v,o))}}}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"getBasicPieLayout",(function(){return l})),n.d(e,"default",(function(){return c}));var r=n(6),i=n(33),o=n(0),a=2*Math.PI,s=Math.PI/180;function u(t,e){return i.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function l(t,e){var n=u(t,e),i=t.get("center"),a=t.get("radius");o.isArray(a)||(a=[0,a]),o.isArray(i)||(i=[i,i]);var s,l,c=Object(r.parsePercent)(n.width,e.getWidth()),h=Object(r.parsePercent)(n.height,e.getHeight()),f=Math.min(c,h),d=Object(r.parsePercent)(a[0],f/2),p=Object(r.parsePercent)(a[1],f/2),g=t.coordinateSystem;if(g){var v=g.dataToPoint(i);s=v[0]||0,l=v[1]||0}else s=Object(r.parsePercent)(i[0],c)+n.x,l=Object(r.parsePercent)(i[1],h)+n.y;return{cx:s,cy:l,r0:d,r:p}}function c(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),o=u(t,n),c=l(t,n),h=c.cx,f=c.cy,d=c.r,p=c.r0,g=-t.get("startAngle")*s,v=t.get("minAngle")*s,m=0;e.each(i,(function(t){!isNaN(t)&&m++}));var y=e.getSum(i),b=Math.PI/(y||m)*2,_=t.get("clockwise"),x=t.get("roseType"),w=t.get("stillShowZeroSum"),O=e.getDataExtent(i);O[0]=0;var S=a,C=0,E=g,T=_?1:-1;if(e.setLayout({viewRect:o,r:d}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:h,cy:f,r0:p,r:x?NaN:d});else{(i="area"!==x?0===y&&w?b:t*b:a/m)<v?(i=v,S-=v):C+=t;var o=E+T*i;e.setItemLayout(n,{angle:i,startAngle:E,endAngle:o,clockwise:_,cx:h,cy:f,r0:p,r:x?Object(r.linearMap)(t,O,[p,d]):d}),E=o}})),S<a&&m)if(S<=.001){var A=a/m;e.each(i,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n);r.angle=A,r.startAngle=g+T*n*A,r.endAngle=g+T*(n+1)*A}}))}else b=S/C,E=g,e.each(i,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n),i=r.angle===v?v:t*b;r.startAngle=E,r.endAngle=E+T*i,E+=T*i}}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return p}));var r=n(5),i=n(70),o=n(1371),a=n(79),s=n(0),u=n(888),l=n(330),c=n(1372),h=n(889),f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return Object(r.__extends)(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new a.default({shape:t.coordinateSystem.getRect(),style:Object(s.defaults)({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(i.default),d={offset:0};function p(t){t.registerComponentView(f),t.registerComponentModel(o.default),t.registerCoordinateSystem("cartesian2d",c.default),Object(l.default)(t,"x",u.CartesianAxisModel,d),Object(l.default)(t,"y",u.CartesianAxisModel,d),t.registerComponentView(h.CartesianXAxisView),t.registerComponentView(h.CartesianYAxisView),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"alignScaleTicks",(function(){return u}));var r=n(6),i=n(226),o=n(85),a=n(123),s=Math.log;function u(t,e,n){var u=i.default.prototype,l=u.getTicks.call(n),c=u.getTicks.call(n,!0),h=l.length-1,f=u.getInterval.call(n),d=Object(o.getScaleExtent)(t,e),p=d.extent,g=d.fixMin,v=d.fixMax;if("log"===t.type){var m=s(t.base);p=[s(p[0])/m,s(p[1])/m]}t.setExtent(p[0],p[1]),t.calcNiceExtent({splitNumber:h,fixMin:g,fixMax:v});var y=u.getExtent.call(t);g&&(p[0]=y[0]),v&&(p[1]=y[1]);var b=u.getInterval.call(t),_=p[0],x=p[1];if(g&&v)b=(x-_)/h;else if(g)for(x=p[0]+b*h;x<p[1]&&isFinite(x)&&isFinite(p[1]);)b=Object(a.increaseInterval)(b),x=p[0]+b*h;else if(v)for(_=p[1]-b*h;_>p[0]&&isFinite(_)&&isFinite(p[0]);)b=Object(a.increaseInterval)(b),_=p[1]-b*h;else{t.getTicks().length-1>h&&(b=Object(a.increaseInterval)(b));var w=b*h;x=Math.ceil(p[1]/b)*b,(_=Object(r.round)(x-w))<0&&p[0]>=0?(_=0,x=Object(r.round)(w)):x>0&&p[1]<=0&&(x=0,_=-Object(r.round)(w))}var O=(l[0].value-c[0].value)/f,S=(l[h].value-c[h].value)/f;u.setExtent.call(t,_+b*O,x+b*S),u.setInterval.call(t,b),(O||S)&&u.setNiceExtent.call(t,_+b,x-b)}},function(t,e,n){"use strict";n.r(e);var r=n(0),i={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},o=r.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},i),a=r.merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},i),s=r.merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},a),u=r.defaults({logBase:10},a);e.default={category:o,value:a,time:s,log:u}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(801),o=n(33),a=n(6),s=n(210),u=n(18);function l(t,e){var n=t.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var s=this.projection;if(s){var l=r[0],c=r[1],h=i[0],f=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var d=function(t,e,n,o){for(var a=n-t,l=o-e,c=0;c<=100;c++){var h=c/100,f=s.project([t+a*h,e+l*h]);u.min(r,r,f),u.max(i,i,f)}};d(l,c,h,c),d(h,c,h,f),d(h,f,l,f),d(l,f,h,c)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else 0}var p,g,v,m=this.getBoundingRect(),y=t.get("layoutCenter"),b=t.get("layoutSize"),_=e.getWidth(),x=e.getHeight(),w=m.width/m.height*this.aspectScale,O=!1;if(y&&b&&(p=[a.parsePercent(y[0],_),a.parsePercent(y[1],x)],g=a.parsePercent(b,Math.min(_,x)),isNaN(p[0])||isNaN(p[1])||isNaN(g)||(O=!0)),O)v={},w>1?(v.width=g,v.height=g/w):(v.height=g,v.width=g*w),v.y=p[1]-v.height/2,v.x=p[0]-v.width/2;else{var S=t.getBoxLayoutParams();S.aspect=w,v=o.getLayoutRect(S,{width:_,height:x})}this.setViewRect(v.x,v.y,v.width,v.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}var c=new(function(){function t(){this.dimensions=i.geo2DDimensions}return t.prototype.create=function(t,e){var n=[];function o(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,a){var s=t.get("map"),u=new i.default(s+a,s,r.extend({nameMap:t.get("nameMap")},o(t)));u.zoomLimit=t.get("scaleLimit"),n.push(u),t.coordinateSystem=u,u.model=t,u.resize=l,u.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var a={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();a[e]=a[e]||[],a[e].push(t)}})),r.each(a,(function(t,a){var s=r.map(t,(function(t){return t.get("nameMap")})),u=new i.default(a,a,r.extend({nameMap:r.mergeAll(s)},o(t[0])));u.zoomLimit=r.retrieve.apply(null,r.map(t,(function(t){return t.get("scaleLimit")}))),n.push(u),u.resize=l,u.resize(t[0],e),r.each(t,(function(t){t.coordinateSystem=u,function(t,e){r.each(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(u,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var o=(t||[]).slice(),a=r.createHashMap(),u=0;u<o.length;u++)a.set(o[u].name,o[u]);var l=s.default.load(e,n,i);return r.each(l.regions,(function(t){var e=t.name;!a.get(e)&&o.push({name:e})})),o},t}());e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(321),o=n(365),a=n(385),s=n(40),u=n(23),l=n(180),c=n(191),h=n(459),f=n(12),d=n(11),p=n(210),g=n(111),v=n(27),m=n(31),y=n(296),b=n(106),_=n(9),x=["rect","circle","line","ellipse","polygon","polyline","path"],w=r.createHashMap(x),O=r.createHashMap(x.concat(["g"])),S=r.createHashMap(x.concat(["g"])),C=Object(_.makeInner)();function E(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function T(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var A=function(){function t(t){var e=new s.default;this.uid=Object(g.getUID)("ec_map_draw"),this._controller=new i.default(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new s.default),e.add(this._svgGroup=new s.default)}return t.prototype.draw=function(t,e,n,r,i){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,c=this.group,h=s.getTransformInfo(),f=h.raw,d=h.roam;!l.childAt(0)||i?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):u.updateProps(c,d,t);var p=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:f};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,r)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=r.createHashMap(),n=r.createHashMap(),i=this._regionsGroup,o=t.transformInfoRaw,a=t.mapOrGeoModel,u=t.data,f=t.geo.projection,d=f&&f.stream;function p(t,e){return e&&(t=e(t)),t&&[t[0]*o.scaleX+o.x,t[1]*o.scaleY+o.y]}function g(t){for(var e=[],n=!d&&f&&f.project,r=0;r<t.length;++r){var i=p(t[r],n);i&&e.push(i)}return e}function v(t){return{shape:{points:g(t)}}}i.removeAll(),r.each(t.geo.regions,(function(o){var g=o.name,m=e.get(g),y=n.get(g)||{},b=y.dataIdx,_=y.regionModel;m||(m=e.set(g,new s.default),i.add(m),b=u?u.indexOfName(g):null,_=t.isGeo?a.getRegionModel(g):u?u.getItemModel(b):null,n.set(g,{dataIdx:b,regionModel:_}));var x=[],w=[];r.each(o.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);d&&(e=L(e,d)),r.each(e,(function(t){x.push(new l.default(v(t)))}))}else{var n=t.points;d&&(n=L(n,d,!0)),r.each(n,(function(t){w.push(new c.default(v(t)))}))}}));var O=p(o.getCenter(),f&&f.project);function S(e,n){if(e.length){var i=new h.default({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});m.add(i),M(t,i,b,_),I(t,i,g,_,a,b,O),n&&(T(i),r.each(i.states,T))}}S(x),S(w,!0)})),e.each((function(e,r){var i=n.get(r),o=i.dataIdx,s=i.regionModel;j(t,e,r,s,a,o),k(t,e,r,s,a),P(t,e,r,s,a)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=r.createHashMap(),o=!1;r.each(this._svgGraphicRecord.named,(function(e){var n=e.name,r=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,u=e.el,l=a?a.indexOfName(n):null,c=r.getRegionModel(n);(null!=w.get(s)&&u instanceof b.default&&M(t,u,l,c),u instanceof b.default&&(u.culling=!0),u.z2EmphasisLift=0,e.namedFrom)||(null!=S.get(s)&&I(t,u,n,c,r,l,null),j(t,u,n,c,r,l),k(t,u,n,c,r),null!=O.get(s)&&("self"===P(t,u,n,c,r)&&(o=!0),(i.get(n)||i.set(n,[])).push(u)))}),this),this._enableBlurEntireSVG(o,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){Object(d.setDefaultStateProxy)(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(t);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=p.default.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=p.default.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,s=this._controller,u=this._controllerHost;u.zoomLimit=t.get("scaleLimit"),u.zoom=i.getZoom(),s.enable(t.get("roam")||!1);var l=t.mainType;function c(){var e={type:"geoRoam",componentType:l};return e[l+"Id"]=t.id,e}s.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,o.updateViewOnPan(u,t.dx,t.dy),n.dispatchAction(r.extend(c(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),s.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,o.updateViewOnZoom(u,t.scale,t.originX,t.originY),n.dispatchAction(r.extend(c(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),s.setPointerChecker((function(e,r,o){return i.containPoint([r,o])&&!Object(a.onIrrelevantElement)(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=C(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,r){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){i._mouseDownFlag=!0})),e.on("click",(function(t){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},t}();function M(t,e,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),u=E(i),l=E(o),c=E(s),h=E(a),f=t.data;if(f){var p=f.getItemVisual(n,"style"),g=f.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(u.fill=p.fill),g&&(u.decal=Object(y.createOrUpdatePatternFromDecal)(g,t.api))}e.setStyle(u),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=l,e.ensureState("select").style=c,e.ensureState("blur").style=h,Object(d.setDefaultStateProxy)(e)}function I(t,e,n,r,i,o,a){var s=t.data,u=t.isGeo,l=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(u||l||c&&c.showLabel){var h=u?n:o,f=void 0;(!s||o>=0)&&(f=i);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(v.setLabelStyle)(e,Object(v.getLabelStatesModels)(r),{labelFetcher:f,labelDataIndex:h,defaultText:n},d);var p=e.getTextContent();if(p&&(C(p).ignore=p.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function j(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):Object(m.getECData)(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function k(t,e,n,r,i){t.data||f.setTooltipConfig({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function P(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Object(d.toggleHoverEmphasis)(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&Object(d.enableComponentHighDownFeatures)(e,i,n),a}function L(t,e,n){var i,o=[];function a(){i=[]}function s(){i.length&&(o.push(i),i=[])}var u=e({polygonStart:a,polygonEnd:s,lineStart:a,lineEnd:s,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&u.polygonStart(),r.each(t,(function(t){u.lineStart();for(var e=0;e<t.length;e++)u.point(t[e][0],t[e][1]);u.lineEnd()})),!n&&u.polygonEnd(),o}e.default=A},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(9),o=Object(i.makeInner)();function a(t,e){if(o(i=this).mainData===i){var n=Object(r.extend)({},o(this).datas);n[this.dataType]=e,h(e,n,t)}else f(e,this.dataType,o(this).mainData,t);var i;return e}function s(t,e){return t.struct&&t.struct.update(),e}function u(t,e){return Object(r.each)(o(e).datas,(function(n,r){n!==e&&f(n.cloneShallow(),r,e,t)})),e}function l(t){var e=o(this).mainData;return null==t||null==e?e:o(e).datas[t]}function c(){var t=o(this).mainData;return null==t?[{data:t}]:Object(r.map)(Object(r.keys)(o(t).datas),(function(e){return{type:e,data:o(t).datas[e]}}))}function h(t,e,n){o(t).datas={},Object(r.each)(e,(function(e,r){f(e,r,t,n)}))}function f(t,e,n,r){o(n).datas[e]=t,o(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=l,t.getLinkedDataAll=c}e.default=function(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,h(e,n,t),Object(r.each)(n,(function(n){Object(r.each)(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,Object(r.curry)(a,t))}))})),e.wrapMethod("cloneShallow",Object(r.curry)(u,t)),Object(r.each)(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,Object(r.curry)(s,t))})),Object(r.assert)(n[e.dataType]===e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(329);function i(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var o=Object(r.getDecalFromPalette)(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",o)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(0),i=n(118),o=n(1414),a=n(715),s=n(259),u=n(295),l=n(163),c=n(9);function h(t,e,n,h,f){for(var d=new o.default(h),p=0;p<t.length;p++)d.addNode(r.retrieve(t[p].id,t[p].name,p),p);var g=[],v=[],m=0;for(p=0;p<e.length;p++){var y=e[p],b=y.source,_=y.target;d.addEdge(b,_,m)&&(v.push(y),g.push(r.retrieve(Object(c.convertOptionIdName)(y.id,null),b+" > "+_)),m++)}var x,w=n.get("coordinateSystem");if("cartesian2d"===w||"polar"===w)x=Object(l.default)(t,n);else{var O=u.default.get(w),S=O&&O.dimensions||[];r.indexOf(S,"value")<0&&S.concat(["value"]);var C=Object(s.default)(t,{coordDimensions:S,encodeDefine:n.getEncode()}).dimensions;(x=new i.default(C,n)).initData(t)}var E=new i.default(["value"],n);return E.initData(v,g),f&&f(x,E),Object(a.default)({mainData:x,struct:d,structAttr:"graph",datas:{node:x,edge:E},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}},function(t,e,n){"use strict";n.r(e),n.d(e,"WhiskerBoxCommonMixin",(function(){return s}));var r=n(265),i=n(0),o=n(356),a=n(152),s=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,s,u=e.getComponent("xAxis",this.get("xAxisIndex")),l=e.getComponent("yAxis",this.get("yAxisIndex")),c=u.get("type"),h=l.get("type");"category"===c?(t.layout="horizontal",n=u.getOrdinalMeta(),s=!0):"category"===h?(t.layout="vertical",n=l.getOrdinalMeta(),s=!0):t.layout=t.layout||"horizontal";var f=["x","y"],d="horizontal"===t.layout?0:1,p=this._baseAxisDim=f[d],g=f[1-d],v=[u,l],m=v[d].get("type"),y=v[1-d].get("type"),b=t.data;if(b&&s){var _=[];i.each(b,(function(t,e){var n;i.isArray(t)?(n=t.slice(),t.unshift(e)):i.isArray(t.value)?((n=i.extend({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,_.push(n)})),t.data=_}var x=this.defaultValueDimensions,w=[{name:p,type:Object(o.getDimensionTypeByAxis)(m),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:Object(o.getDimensionTypeByAxis)(y),dimsDef:x.slice()}];return Object(r.default)(this,{coordDimensions:w,dimensionsCount:x.length+1,encodeDefaulter:i.curry(a.makeSeriesEncodeForAxisCoordSys,w,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}()},function(t,e,n){"use strict";n.r(e);var r=n(263),i={seriesType:"lines",plan:Object(r.default)(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,u=i.end-i.start;if(n){for(var l=0,c=i.start;c<i.end;c++)l+=t.getLineCoordsCount(c);s=new Float32Array(u+2*l)}else s=new Float32Array(4*u);var h=0,f=[];for(c=i.start;c<i.end;c++){var d=t.getLineCoords(c,a);n&&(s[h++]=d);for(var p=0;p<d;p++)f=e.dataToPoint(a[p],!1,f),s[h++]=f[0],s[h++]=f[1]}o.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var g=o.getItemModel(c),v=(d=t.getLineCoords(c,a),[]);if(n)for(var m=0;m<d;m++)v.push(e.dataToPoint(a[m]));else{v[0]=e.dataToPoint(a[0]),v[1]=e.dataToPoint(a[1]);var y=g.get(["lineStyle","curveness"]);+y&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*y,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*y])}o.setItemLayout(c,v)}}}}}};e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(191),o=n(23),a=n(40),s=n(11),u=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createPolyline(e,n,r),i}return Object(r.__extends)(e,t),e.prototype._createPolyline=function(t,e,n){var r=t.getItemLayout(e),o=new i.default({shape:{points:r}});this.add(o),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel,i=this.childAt(0),a={shape:{points:t.getItemLayout(e)}};o.updateProps(i,a,r,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var r=this.childAt(0),i=t.getItemModel(e),o=n&&n.emphasisLineStyle,a=n&&n.focus,u=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var c=i.getModel("emphasis");o=c.getModel("lineStyle").getLineStyle(),l=c.get("disabled"),a=c.get("focus"),u=c.get("blurScope")}r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,Object(s.toggleHoverEmphasis)(this,a,u,l)},e.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},e}(a.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(40),o=n(480),a=n(0),s=n(67),u=n(18),l=n(53),c=function(t){function e(e,n,r){var i=t.call(this)||this;return i.add(i.createLine(e,n,r)),i._updateEffectSymbol(e,n),i}return Object(r.__extends)(e,t),e.prototype.createLine=function(t,e,n){return new o.default(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),r=n.get("symbolSize"),i=n.get("symbol");a.isArray(r)||(r=[r,r]);var o=t.getItemVisual(e,"style"),u=n.get("color")||o&&o.stroke,l=this.childAt(1);this._symbolType!==i&&(this.remove(l),(l=Object(s.createSymbol)(i,-.5,-.5,1,1,u)).z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",u),l.setStyle(n.getItemStyle(["color"])),l.scaleX=r[0],l.scaleY=r[1],l.setColor(u),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(t,n,e))},e.prototype._updateEffectAnimation=function(t,e,n){var r=this.childAt(1);if(r){var i=t.getItemLayout(n),o=1e3*e.get("period"),s=e.get("loop"),u=e.get("roundTrip"),l=e.get("constantSpeed"),c=a.retrieve(e.get("delay"),(function(e){return e/t.count()*o/3}));if(r.ignore=!0,this._updateAnimationPoints(r,i),l>0&&(o=this._getLineLength(r)/l*1e3),o!==this._period||s!==this._loop||u!==this._roundTrip){r.stopAnimation();var h=void 0;h=a.isFunction(c)?c(n):c,r.__t>0&&(h=-o*r.__t),this._animateSymbol(r,o,h,s,u)}this._period=o,this._loop=s,this._roundTrip=u}},e.prototype._animateSymbol=function(t,e,n,r,i){if(e>0){t.__t=0;var o=this,a=t.animate("",r).when(i?2*e:e,{__t:i?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));r||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return u.dist(t.__p1,t.__cp1)+u.dist(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,r=t.__cp1,i=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=l.quadraticAt,c=l.quadraticDerivativeAt;o[0]=s(e[0],r[0],n[0],i),o[1]=s(e[1],r[1],n[1],i);var h=t.__t<1?c(e[0],r[0],n[0],i):c(n[0],r[0],e[0],1-i),f=t.__t<1?c(e[1],r[1],n[1],i):c(n[1],r[1],e[1],1-i);t.rotation=-Math.atan2(f,h)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*u.dist(a,o),1===i&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*u.dist(e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(i.default);e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"ROOT_TO_NODE_ACTION",(function(){return o})),n.d(e,"installSunburstAction",(function(){return a}));var r=n(0),i=n(154),o="sunburstRootToNode";function a(t){t.registerAction({type:o,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var r=Object(i.retrieveTargetInfo)(t,[o],e);if(r){var a=e.getViewRoot();a&&(t.direction=Object(i.aboveViewRoot)(a,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}))})),t.registerAction({type:"sunburstHighlight",update:"none"},(function(t,e,n){t=Object(r.extend)({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e){var n=Object(i.retrieveTargetInfo)(t,["sunburstHighlight"],e);n&&(t.dataIndex=n.node.dataIndex)})),n.dispatchAction(Object(r.extend)(t,{type:"highlight"}))})),t.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(t,e,n){t=Object(r.extend)({},t),n.dispatchAction(Object(r.extend)(t,{type:"downplay"}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(0),i=n(9);function o(t,e){var n,o=[],a=t.seriesIndex;if(null==a||!(n=e.getSeriesByIndex(a)))return{point:[]};var s=n.getData(),u=i.queryDataIndex(s,t);if(null==u||u<0||r.isArray(u))return{point:[]};var l=s.getItemGraphicEl(u),c=n.coordinateSystem;if(n.getTooltipPosition)o=n.getTooltipPosition(u)||[];else if(c&&c.dataToPoint)if(t.isStacked){var h=c.getBaseAxis(),f=c.getOtherAxis(h).dim,d=h.dim,p="x"===f||"radius"===f?1:0,g=s.mapDimension(d),v=[];v[p]=s.get(g,u),v[1-p]=s.get(s.getCalculationInfo("stackResultDimension"),u),o=c.dataToPoint(v)||[]}else o=c.dataToPoint(s.getValues(r.map(c.dimensions,(function(t){return s.mapDimension(t)})),u))||[];else if(l){var m=l.getBoundingRect().clone();m.applyTransform(l.transform),o=[m.x+m.width/2,m.y+m.height/2]}return{point:o,el:l}}},function(t,e,n){"use strict";n.r(e),n.d(e,"layoutCovers",(function(){return c})),n.d(e,"default",(function(){return h}));var r=n(0),i=n(35),o=n(300),a=n(1520),s=n(143),u=n(578),l=["inBrush","outOfBrush"];function c(t){t.eachComponent({mainType:"brush"},(function(e){(e.brushTargetManager=new u.default(e.option,t)).setInputRanges(e.areas,t)}))}function h(t,e,n){var i,u,h=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),c(t),t.eachComponent({mainType:"brush"},(function(e,n){var s={brushId:e.id,brushIndex:n,brushName:e.name,areas:r.clone(e.areas),selected:[]};h.push(s);var c=e.option,f=c.brushLink,g=[],v=[],m=[],y=!1;n||(i=c.throttleType,u=c.throttleDelay);var b=r.map(e.areas,(function(t){var e=p[t.brushType],n=r.defaults({boundingRect:e?e(t):void 0},t);return n.selectors=Object(a.makeBrushCommonSelectorForSeries)(n),n})),_=o.createVisualMappings(e.option,l,(function(t){t.mappingMethod="fixed"}));function x(t){return"all"===f||!!g[t]}function w(t){return!!t.length}r.isArray(f)&&r.each(f,(function(t){g[t]=1})),t.eachSeries((function(n,i){var o=m[i]=[];"parallel"===n.subType?function(t,e){var n=t.coordinateSystem;y=y||n.hasAxisBrushed(),x(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(v[e]=1)}))}(n,i):function(n,i,o){if(!n.brushSelector||function(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(r.isArray(n)?r.indexOf(n,e)<0:e!==n)}(e,i))return;if(r.each(b,(function(r){e.brushTargetManager.controlSeries(r,n,t)&&o.push(r),y=y||w(o)})),x(i)&&w(o)){var a=n.getData();a.each((function(t){d(n,o,a,t)&&(v[t]=1)}))}}(n,i,o)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};s.selected.push(n);var r=m[e],i=t.getData(),a=x(e)?function(t){return v[t]?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return d(t,r,i,e)?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"};(x(e)?y:w(r))&&o.applyVisual(l,_,i,a)}))})),function(t,e,n,r,i){if(!i)return;var o=t.getZr();if(o.__ecInBrushSelectEvent)return;o.__ecBrushSelect||(o.__ecBrushSelect=f);s.createOrUpdate(o,"__ecBrushSelect",n,e)(t,r)}(e,i,u,h,n)}function f(t,e){if(!t.isDisposed()){var n=t.getZr();n.__ecInBrushSelectEvent=!0,t.dispatchAction({type:"brushSelect",batch:e}),n.__ecInBrushSelectEvent=!1}}function d(t,e,n,r){for(var i=0,o=e.length;i<o;i++){var a=e[i];if(t.brushSelector(r,n,a.selectors,a))return!0}}var p={rect:function(t){return g(t.range)},polygon:function(t){for(var e,n=t.range,r=0,i=n.length;r<i;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&g(e)}};function g(t){return new i.default(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return s}));var r=n(579),i=n(726),o=n(1536),a=n(1537);function s(t){t.registerComponentModel(r.default),t.registerComponentView(i.default),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,o.default),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),Object(a.installLegendAction)(t)}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(80),a=n(40),s=n(72),u=n(79),l=n(12),c=n(11),h=n(27),f=n(577),d=n(33),p=n(70),g=n(67),v=n(296),m=i.curry,y=i.each,b=a.default,_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return Object(r.__extends)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new b),this.group.add(this._selectorGroup=new b),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var o=t.get("align"),a=t.get("orient");o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===a?"right":"left");var s=t.get("selector",!0),u=t.get("selectorPosition",!0);!s||u&&"auto"!==u||(u="horizontal"===a?"end":"start"),this.renderInner(o,t,e,n,s,a,u);var l=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),p=d.getLayoutRect(l,c,h),g=this.layoutInner(t,o,p,r,s,u),v=d.getLayoutRect(i.defaults({width:g.width,height:g.height},l),c,h);this.group.x=v.x-g.x,this.group.y=v.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Object(f.makeBackground)(g,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,a,s,u){var l=this.getContentGroup(),c=i.createHashMap(),h=e.get("selectedMode"),f=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&f.push(t.id)})),y(e.getData(),(function(a,s){var u=a.get("name");if(!this.newlineDisabled&&(""===u||"\n"===u)){var d=new b;return d.newline=!0,void l.add(d)}var p=n.getSeriesByName(u)[0];if(!c.get(u)){if(p){var g=p.getData(),v=g.getVisual("legendLineStyle")||{},y=g.getVisual("legendIcon"),_=g.getVisual("style");this._createItem(p,u,s,a,e,t,v,_,y,h,r).on("click",m(x,u,null,r,f)).on("mouseover",m(O,p.name,null,r,f)).on("mouseout",m(S,p.name,null,r,f)),c.set(u,!0)}else n.eachRawSeries((function(n){if(!c.get(u)&&n.legendVisualProvider){var l=n.legendVisualProvider;if(!l.containName(u))return;var d=l.indexOfName(u),p=l.getItemVisual(d,"style"),g=l.getItemVisual(d,"legendIcon"),v=Object(o.parse)(p.fill);v&&0===v[3]&&(v[3]=.2,p=i.extend(i.extend({},p),{fill:Object(o.stringify)(v,"rgba")})),this._createItem(n,u,s,a,e,t,{},p,g,h,r).on("click",m(x,null,u,r,f)).on("mouseover",m(O,null,u,r,f)).on("mouseout",m(S,null,u,r,f)),c.set(u,!0)}}),this);0}}),this),a&&this._createSelector(a,e,r,s,u)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();y(t,(function(t){var r=t.type,i=new s.default({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=e.getModel("selectorLabel"),u=e.getModel(["emphasis","selectorLabel"]);Object(h.setLabelStyle)(i,{normal:a,emphasis:u},{defaultText:t.title}),Object(c.enableHoverEmphasis)(i)}))},e.prototype._createItem=function(t,e,n,r,o,a,f,d,p,m,_){var x=t.visualDrawType,w=o.get("itemWidth"),O=o.get("itemHeight"),S=o.isSelected(e),C=r.get("symbolRotate"),E=r.get("symbolKeepAspect"),T=r.get("icon"),A=function(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),y(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var u=e.getModel("itemStyle"),l=u.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=u.getShallow("decal");l.decal=h&&"inherit"!==h?Object(v.createOrUpdatePatternFromDecal)(h,a):r.decal,"inherit"===l.fill&&(l.fill=r[i]);"inherit"===l.stroke&&(l.stroke=r[c]);"inherit"===l.opacity&&(l.opacity=("fill"===i?r:n).opacity);s(l,r);var f=e.getModel("lineStyle"),d=f.getLineStyle();if(s(d,n),"auto"===l.fill&&(l.fill=r.fill),"auto"===l.stroke&&(l.stroke=r.fill),"auto"===d.stroke&&(d.stroke=r.fill),!o){var p=e.get("inactiveBorderWidth"),g=l[c];l.lineWidth="auto"===p?r.lineWidth>0&&g?2:0:l.lineWidth,l.fill=e.get("inactiveColor"),l.stroke=e.get("inactiveBorderColor"),d.stroke=f.get("inactiveColor"),d.lineWidth=f.get("inactiveWidth")}return{itemStyle:l,lineStyle:d}}(p=T||p||"roundRect",r,f,d,x,S,_),M=new b,I=r.getModel("textStyle");if(!i.isFunction(t.getLegendIcon)||T&&"inherit"!==T){var j="inherit"===T&&t.getData().getVisual("symbol")?"inherit"===C?t.getData().getVisual("symbolRotate"):C:0;M.add(function(t){var e=t.icon||"roundRect",n=Object(g.createSymbol)(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:w,itemHeight:O,icon:p,iconRotate:j,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:E}))}else M.add(t.getLegendIcon({itemWidth:w,itemHeight:O,icon:p,iconRotate:C,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:E}));var k="left"===a?w+5:-5,P=a,L=o.get("formatter"),R=e;i.isString(L)&&L?R=L.replace("{name}",null!=e?e:""):i.isFunction(L)&&(R=L(e));var D=r.get("inactiveColor");M.add(new s.default({style:Object(h.createTextStyle)(I,{text:R,x:k,y:O/2,fill:S?I.getTextColor():D,align:P,verticalAlign:"middle"})}));var N=new u.default({shape:M.getBoundingRect(),invisible:!0}),B=r.getModel("tooltip");return B.get("show")&&l.setTooltipConfig({el:N,componentModel:o,itemName:e,itemTooltipOption:B.option}),M.add(N),M.eachChild((function(t){t.silent=!0})),N.silent=!m,this.getContentGroup().add(M),Object(c.enableHoverEmphasis)(M),M.__legendDataIndex=n,M},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();d.box(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var u=a.getBoundingRect(),l=[-u.x,-u.y];if(s.markRedraw(),a.markRedraw(),i){d.box("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],f=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=0===p?"width":"height",v=0===p?"height":"width",m=0===p?"y":"x";"end"===o?h[p]+=u[g]+f:l[p]+=c[g]+f,h[1-p]+=u[v]/2-c[v]/2,s.x=h[0],s.y=h[1],a.x=l[0],a.y=l[1];var y={x:0,y:0};return y[g]=u[g]+f+c[g],y[v]=Math.max(u[v],c[v]),y[m]=Math.min(0,c[m]+h[1-p]),y}return a.x=l[0],a.y=l[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(p.default);function x(t,e,n,r){S(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),O(t,e,n,r)}function w(t){for(var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(e=n[r].states.emphasis);)r++;return e&&e.hoverLayer}function O(t,e,n,r){w(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function S(t,e,n,r){w(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}e.default=_},function(t,e,n){"use strict";n.r(e);var r=n(0),i={get:function(t,e,n){var i=r.clone((o[t]||{})[e]);return n&&r.isArray(i)?i[i.length-1]:i}},o={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(79),a=n(71),s=n(33),u=n(140),l=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,r){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,r):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=a.normalizeCssArray(e.get("padding")||0),r=t.getBoundingRect();t.add(new o.default({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){var r=(n=n||{}).forceState,o=this.visualMapModel,a={};if("color"===e){var s=o.get("contentColor");a.color=s}function l(t){return a[t]}function c(t,e){a[t]=e}var h=o.controllerVisuals[r||o.getValueState(t)],f=u.default.prepareVisualTypes(h);return i.each(f,(function(r){var i=h[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=h.__alphaForOpacity),u.default.dependsOn(r,e)&&i&&i.applyVisual(t,l,c)})),a[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;s.positionElement(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,r){},e.type="visualMap",e}(n(70).default);e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var r=n(902),i=n(1548),o=n(0),a=n(1549),s=!1;function u(t){s||(s=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(r.visualMapActionInfo,r.visualMapActionHander),Object(o.each)(i.visualMapEncodingHandlers,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(a.default))}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(731),a=n(101),s={};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,o=[],s=[],u=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return u.length>0?(Object(a.each)(u,(function(t){var e=t.getBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(i.min)(o),e=Object(i.max)(o),n=Object(i.min)(s),r=Object(i.max)(s)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,o=[],s=[],u=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return u.length>0?(Object(a.each)(u,(function(t){var e=t.getCanvasBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(i.min)(o),e=Object(i.max)(o),n=Object(i.min)(s),r=Object(i.max)(s)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(a.each)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];Object(a.isObject)(n)?r=n:r.type=n;var i=s[r.type];i||(i=Object(a.upperFirst)(r.type),s[r.type]=i);var o=this.getShapeBase(),u=new o[i](r);return this.add(u),u},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=t[0],i=t[1];if(Object(a.isFunction)(r))n=new r(i||{parent:this});else{var o=r||{},s=this.getGroupBase();n=new s(o)}return this.add(n),n},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!Object(a.isAllowCapture)(this))return null;var r,i=this.getChildren();if(this.isCanvas())r=this._findShape(i,t,e,n);else{var o=[t,e,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(r=this._findShape(i,o[0],o[1],n))}return r},e.prototype._findShape=function(t,e,n,r){for(var i=null,o=t.length-1;o>=0;o--){var s=t[o];if(Object(a.isAllowCapture)(s)&&(s.isGroup()?i=s.getShape(e,n,r):s.isHit(e,n)&&(i=s)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),Object(a.removeFromArray)(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();Object(a.each)(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e._INDEX-n._INDEX:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return Object(a.each)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return Object(a.each)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(o.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(25),a=n(101),s=n(229),u=n(651),l=o.ext.transform,c=["zIndex","capture","visible","type"],h=["repeat"];function f(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function d(t,e){var n={},r=e.attr();return Object(i.each)(t,(function(t,e){-1!==h.indexOf(e)||Object(i.isEqual)(r[e],t)||(n[e]=t)})),n}function p(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,o=e.duration,a=Object.prototype.hasOwnProperty;return Object(i.each)(t,(function(t){n+r<t.startTime+t.delay+t.duration&&o>t.delay&&Object(i.each)(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var g=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return Object(i.mix)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],o=e[1];if(!r)return this.attrs;if(Object(i.isObject)(r)){for(var a in r)this.setAttr(a,r[a]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,o),this.afterAttrsChange(((t={})[r]=o,t)),this):this.attrs[r]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(Object(a.removeFromArray)(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr("matrix",this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr("matrix")},e.prototype.setMatrix=function(t){this.attr("matrix",t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?Object(s.multiplyMatrix)(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?Object(s.multiplyMatrix)(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?Object(s.multiplyVec2)(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=Object(s.invert)(e);if(n)return Object(s.multiplyVec2)(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase()[Object(i.upperFirst)(t.type)];r&&(n=new r({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};Object(i.each)(e,(function(t,r){Object(i.isArray)(e[r])?n[r]=function(t){for(var e=[],n=0;n<t.length;n++)Object(i.isArray)(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[r]):n[r]=e[r]}));var r=new(0,this.constructor)({attrs:n});return Object(i.each)(c,(function(e){r.set(e,t.get(e))})),r},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var r=this.get("animations")||[];n.timer||n.initTimer();var o,a,s,u,l,c=t[0],h=t[1],g=t[2],v=void 0===g?"easeLinear":g,m=t[3],y=void 0===m?i.noop:m,b=t[4],_=void 0===b?0:b;Object(i.isFunction)(c)?(o=c,c={}):Object(i.isObject)(c)&&c.onFrame&&(o=c.onFrame,a=c.repeat),Object(i.isObject)(h)?(h=(l=h).duration,v=l.easing||"easeLinear",_=l.delay||0,a=l.repeat||a||!1,y=l.callback||i.noop,s=l.pauseCallback||i.noop,u=l.resumeCallback||i.noop):(Object(i.isNumber)(y)&&(_=y,y=null),Object(i.isFunction)(v)?(y=v,v="easeLinear"):v=v||"easeLinear");var x=d(c,this),w={fromAttrs:f(x,this),toAttrs:x,duration:h,easing:v,repeat:a,callback:y,pauseCallback:s,resumeCallback:u,delay:_,startTime:n.getTime(),id:Object(i.uniqueId)(),onFrame:o,pathFormatted:!1};r.length>0?r=p(r,w):n.addAnimator(this),r.push(w),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(i.each)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(i.each)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return Object(i.each)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,o=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=o[t],l=s.get("name");if(l){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(a.isParent)(s,n))return"break";Object(i.isArray)(l)?Object(i.each)(l,(function(t){r.emitDelegateEvent(s,t,e)})):u.emitDelegateEvent(s,l,e)}},u=this,l=0;l<o.length;l++){if("break"===s(l))break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+":"+n.type;(r[i]||r["*"])&&(n.name=i,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(i,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),r=l(n,[["t",t,e]]);return this.setMatrix(r),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),r=l(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=l(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,i=this.getMatrix(),o=l(i,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),i=l(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(u.default);e.default=g},function(t,e,n){"use strict";function r(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}n.r(e),n.d(e,"basis",(function(){return r})),e.default=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,u=i<e-1?t[i+2]:2*a-o;return r((n-i/e)*e,s,o,a,u)}}},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"BrowserInfo",(function(){return i})),n.d(e,"NodeInfo",(function(){return o})),n.d(e,"SearchBotDeviceInfo",(function(){return a})),n.d(e,"BotInfo",(function(){return s})),n.d(e,"ReactNativeInfo",(function(){return u})),n.d(e,"detect",(function(){return f})),n.d(e,"browserName",(function(){return p})),n.d(e,"parseUserAgent",(function(){return g})),n.d(e,"detectOS",(function(){return v})),n.d(e,"getNodeVersion",(function(){return m}));var r=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},i=function(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"},o=function(e){this.version=e,this.type="node",this.name="node",this.os=t.platform},a=function(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"},s=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},u=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},l=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,c=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],h=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function f(t){return t?g(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new u:"undefined"!=typeof navigator?g(navigator.userAgent):m()}function d(t){return""!==t&&c.reduce((function(e,n){var r=n[0],i=n[1];if(e)return e;var o=i.exec(t);return!!o&&[r,o]}),!1)}function p(t){var e=d(t);return e?e[0]:null}function g(t){var e=d(t);if(!e)return null;var n=e[0],o=e[1];if("searchbot"===n)return new s;var u=o[1]&&o[1].split(".").join("_").split("_").slice(0,3);u?u.length<3&&(u=r(r([],u,!0),function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}(3-u.length),!0)):u=[];var c=u.join("."),h=v(t),f=l.exec(t);return f&&f[1]?new a(n,c,h,f[1]):new i(n,c,h)}function v(t){for(var e=0,n=h.length;e<n;e++){var r=h[e],i=r[0];if(r[1].exec(t))return i}return null}function m(){return void 0!==t&&t.version?new o(t.version.slice(1)):null}}.call(this,n(447))},function(t,e,n){"use strict";n.r(e),n.d(e,"assign",(function(){return u})),n.d(e,"format",(function(){return E})),n.d(e,"parse",(function(){return T})),n.d(e,"defaultI18n",(function(){return f})),n.d(e,"setGlobalDateI18n",(function(){return p})),n.d(e,"setGlobalDateMasks",(function(){return C}));var r=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="[^\\s]+",o=/\[([^]*?)\]/gm;function a(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}var s=function(t){return function(e,n){var r=n[t].map((function(t){return t.toLowerCase()})).indexOf(e.toLowerCase());return r>-1?r:null}};function u(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];for(var a in o)t[a]=o[a]}return t}var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"],h=a(c,3),f={dayNamesShort:a(l,3),dayNames:l,monthNamesShort:h,monthNames:c,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}},d=u({},f),p=function(t){return d=u(d,t)},g=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},v=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},m={D:function(t){return String(t.getDate())},DD:function(t){return v(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return v(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return v(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return v(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return v(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return v(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return v(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return v(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return v(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return v(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return v(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+v(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+v(Math.floor(Math.abs(e)/60),2)+":"+v(Math.abs(e)%60,2)}},y=function(t){return+t-1},b=[null,"\\d\\d?"],_=[null,i],x=["isPm",i,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],w=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],O={D:["day","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+i,function(t){return parseInt(t,10)}],M:["month","\\d\\d?",y],MM:["month","\\d\\d",y],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","\\d\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","\\d\\d?"],HH:["hour","\\d\\d"],m:["minute","\\d\\d?"],mm:["minute","\\d\\d"],s:["second","\\d\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond","\\d\\d",function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:b,dd:b,ddd:_,dddd:_,MMM:["month",i,s("monthNamesShort")],MMMM:["month",i,s("monthNames")],a:x,A:x,ZZ:w,Z:w},S={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},C=function(t){return u(S,t)},E=function(t,e,n){if(void 0===e&&(e=S.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var i=[];e=(e=S[e]||e).replace(o,(function(t,e){return i.push(e),"@@@"}));var a=u(u({},d),n);return(e=e.replace(r,(function(e){return m[e](t,a)}))).replace(/@@@/g,(function(){return i.shift()}))};function T(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=S[e]||e,t.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],s=[],l=e.replace(o,(function(t,e){return s.push(g(e)),"@@@"})),c={},h={};l=g(l).replace(r,(function(t){var e=O[t],n=e[0],r=e[1],i=e[3];if(c[n])throw new Error("Invalid format. "+n+" specified twice in format");return c[n]=!0,i&&(h[i]=!0),a.push(e),"("+r+")"})),Object.keys(h).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),l=l.replace(/@@@/g,(function(){return s.shift()}));var f=t.match(new RegExp(l,"i"));if(!f)return null;for(var p,v=u(u({},d),n),m=1;m<f.length;m++){var y=a[m-1],b=y[0],_=y[2],x=_?_(f[m],v):+f[m];if(null==x)return null;i[b]=x}if(1===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:0===i.isPm&&12==+i.hour&&(i.hour=0),null==i.timezoneOffset){p=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var w=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],C=(m=0,w.length);m<C;m++)if(c[w[m][0]]&&i[w[m][0]]!==p[w[m][1]]())return null}else if(p=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return p}var A={format:E,parse:T,defaultI18n:f,setGlobalDateI18n:p,setGlobalDateMasks:C};e.default=A},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(1);function i(t){var e=t.values,n=t.tickInterval,i=t.tickCount,o=t.showLast;if(Object(r.isNumber)(n)){var a=Object(r.filter)(e,(function(t,e){return e%n==0})),s=Object(r.last)(e);return o&&Object(r.last)(a)!==s&&a.push(s),a}var u=e.length,l=t.min,c=t.max;if(Object(r.isNil)(l)&&(l=0),Object(r.isNil)(c)&&(c=e.length-1),!Object(r.isNumber)(i)||i>=u)return e.slice(l,c+1);if(i<=0||c<=0)return[];for(var h=1===i?u:Math.floor(u/(i-1)),f=[],d=l,p=0;p<i&&!(d>=c);p++)d=Math.min(l+p*h,c),p===i-1&&o?f.push(e[c]):f.push(e[d]);return f}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(370);function i(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var i=n<0?0:Math.round(n);if(0===i)return{max:e,min:t,ticks:[]};var o=(e-t)/i,a=Math.pow(10,Math.floor(Math.log10(o))),s=a;2*a-o<1.5*(o-s)&&5*a-o<2.75*(o-(s=2*a))&&10*a-o<1.5*(o-(s=5*a))&&(s=10*a);for(var u=Math.ceil(e/s),l=Math.floor(t/s),c=Math.max(u*s,e),h=Math.min(l*s,t),f=Math.floor((c-h)/s)+1,d=new Array(f),p=0;p<f;p++)d[p]=Object(r.prettyNumber)(h+p*s);return{min:h,max:c,ticks:d}}},function(t,e,n){"use strict";n.r(e);var r=n(1109);n.d(e,"autoEllipsis",(function(){return r}));var i=n(1110);n.d(e,"autoHide",(function(){return i}));var o=n(1111);n.d(e,"autoRotate",(function(){return o}))},function(t,e,n){"use strict";n.r(e),n.d(e,"createThemeByStyleSheet",(function(){return u}));var r=n(2),i=n(100),o=n(25),a=n(1),s=n(78);function u(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},u=function(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily},iconStyle:{fill:t.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}(t),l=function(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:t.legendPageNavigatorMarkerSize,inactiveFill:t.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:t.legendPageNavigatorMarkerInactiveFillOpacity,fill:t.legendPageNavigatorMarkerFillColor,opacity:t.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:t.legendPageNavigatorTextFillColor,fontSize:t.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}(t);return{background:t.backgroundColor,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var r=Object(s.getAngle)(t.getModel(),e),i=(r.startAngle+r.endAngle)/2,a=7.5*Math.cos(i),u=7.5*Math.sin(i);return{matrix:o.ext.transform(null,[["t",a,u]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:Object(r.__assign)(Object(r.__assign)({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:Object(r.__assign)(Object(r.__assign)({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:Object(r.__assign)(Object(r.__assign)({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:Object(r.__assign)(Object(r.__assign)({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:Object(r.__assign)(Object(r.__assign)({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:Object(r.__assign)(Object(r.__assign)({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:Object(r.__assign)(Object(r.__assign)({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:Object(r.__assign)(Object(r.__assign)({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:u,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:Object(a.deepMix)({},u.grid,{line:{type:"line"}})},radius:{title:null,grid:Object(a.deepMix)({},u.grid,{line:{type:"circle"}})}},legend:{common:l,right:{layout:"vertical",padding:t.legendVerticalPadding},left:{layout:"vertical",padding:t.legendVerticalPadding},top:{layout:"horizontal",padding:t.legendHorizontalPadding},bottom:{layout:"horizontal",padding:t.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0,padding:l.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e["".concat(i.TOOLTIP_CSS_CONST.CONTAINER_CLASS)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:"".concat(t.tooltipContainerBorderRadius,"px"),color:t.tooltipTextFillColor,fontSize:"".concat(t.tooltipTextFontSize,"px"),fontFamily:t.fontFamily,lineHeight:"".concat(t.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},e["".concat(i.TOOLTIP_CSS_CONST.TITLE_CLASS)]={marginBottom:"12px",marginTop:"12px"},e["".concat(i.TOOLTIP_CSS_CONST.LIST_CLASS)]={margin:0,listStyleType:"none",padding:0},e["".concat(i.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(i.TOOLTIP_CSS_CONST.MARKER_CLASS)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(i.TOOLTIP_CSS_CONST.VALUE_CLASS)]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:t.cSliderBackgroundFillColor,opacity:t.cSliderBackgroundFillOpacity},foregroundStyle:{fill:t.cSliderForegroundFillColor,opacity:t.cSliderForegroundFillOpacity},handlerStyle:{width:t.cSliderHandlerWidth,height:t.cSliderHandlerHeight,fill:t.cSliderHandlerFillColor,opacity:t.cSliderHandlerFillOpacity,stroke:t.cSliderHandlerBorderColor,lineWidth:t.cSliderHandlerBorder,radius:t.cSliderHandlerBorderRadius,highLightFill:t.cSliderHandlerHighlightFillColor},textStyle:{fill:t.cSliderTextFillColor,opacity:t.cSliderTextFillOpacity,fontSize:t.cSliderTextFontSize,lineHeight:t.cSliderTextLineHeight,fontWeight:t.cSliderTextFontWeight,stroke:t.cSliderTextBorderColor,lineWidth:t.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:t.scrollbarTrackFillColor,thumbColor:t.scrollbarThumbFillColor}},hover:{style:{thumbColor:t.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:t.overflowLabelFillColor,fontSize:t.overflowLabelFontSize,fontFamily:t.fontFamily,stroke:t.overflowLabelBorderColor,lineWidth:t.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"isModelChange",(function(){return i}));var r=n(1);function i(t,e){return Object(r.some)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!Object(r.isEqual)(t[n],e[n])}))}},function(t,e,n){"use strict";function r(t,e){for(var n=[],r=[],i=[],o=new Map,a=0;a<e.length;a++){var s=e[a];t[s]?r.push(s):n.push(s),o.set(s,!0)}return Object.keys(t).forEach((function(t){o.has(t)||i.push(t)})),{added:n,updated:r,removed:i}}n.r(e),n.d(e,"diff",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"getLineMarker",(function(){return i}));var r={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv:function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},vh:function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},hvh:function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};function i(t,e){var n=t.color;return{symbol:r[e],style:{lineWidth:2,r:6,stroke:n}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return u}));var r=n(292);n.d(e,"Shape",(function(){return r}));var i=n(88);n.d(e,"Event",(function(){return i.Event})),n.d(e,"Base",(function(){return i.Base})),n.d(e,"AbstractCanvas",(function(){return i.AbstractCanvas})),n.d(e,"AbstractGroup",(function(){return i.AbstractGroup})),n.d(e,"AbstractShape",(function(){return i.AbstractShape})),n.d(e,"PathUtil",(function(){return i.PathUtil})),n.d(e,"getBBoxMethod",(function(){return i.getBBoxMethod})),n.d(e,"registerBBox",(function(){return i.registerBBox})),n.d(e,"getTextHeight",(function(){return i.getTextHeight})),n.d(e,"assembleFont",(function(){return i.assembleFont})),n.d(e,"isAllowCapture",(function(){return i.isAllowCapture})),n.d(e,"multiplyVec2",(function(){return i.multiplyVec2})),n.d(e,"invert",(function(){return i.invert})),n.d(e,"getOffScreenContext",(function(){return i.getOffScreenContext})),n.d(e,"registerEasing",(function(){return i.registerEasing}));var o=n(1142);n.d(e,"Canvas",(function(){return o.default}));var a=n(469);n.d(e,"Group",(function(){return a.default}));var s=n(564);n.d(e,"getArcParams",(function(){return s.default}));var u="0.5.12"},function(t,e,n){"use strict";n.r(e),n.d(e,"parseLineGradient",(function(){return l})),n.d(e,"parseRadialGradient",(function(){return c})),n.d(e,"parsePattern",(function(){return h})),n.d(e,"parseStyle",(function(){return f})),n.d(e,"parseRadius",(function(){return d}));var r=n(62),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function u(t,e){var n=t.match(s);Object(r.each)(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function l(t,e,n){var r,o,a=i.exec(n),s=parseFloat(a[1])%360*(Math.PI/180),l=a[2],c=e.getBBox();s>=0&&s<.5*Math.PI?(r={x:c.minX,y:c.minY},o={x:c.maxX,y:c.maxY}):.5*Math.PI<=s&&s<Math.PI?(r={x:c.maxX,y:c.minY},o={x:c.minX,y:c.maxY}):Math.PI<=s&&s<1.5*Math.PI?(r={x:c.maxX,y:c.maxY},o={x:c.minX,y:c.minY}):(r={x:c.minX,y:c.maxY},o={x:c.maxX,y:c.minY});var h=Math.tan(s),f=h*h,d=(o.x-r.x+h*(o.y-r.y))/(f+1)+r.x,p=h*(o.x-r.x+h*(o.y-r.y))/(f+1)+r.y,g=t.createLinearGradient(r.x,r.y,d,p);return u(l,g),g}function c(t,e,n){var r=o.exec(n),i=parseFloat(r[1]),a=parseFloat(r[2]),l=parseFloat(r[3]),c=r[4];if(0===l){var h=c.match(s);return h[h.length-1].split(":")[1]}var f=e.getBBox(),d=f.maxX-f.minX,p=f.maxY-f.minY,g=Math.sqrt(d*d+p*p)/2,v=t.createRadialGradient(f.minX+d*i,f.minY+p*a,0,f.minX+d/2,f.minY+p/2,l*g);return u(c,v),v}function h(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,i,o=a.exec(n),s=o[1],u=o[2];function l(){r=t.createPattern(i,s),e.set("pattern",r),e.set("patternSource",n)}switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}return i=new Image,u.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=u,i.complete?l():(i.onload=l,i.src=i.src),r}function f(t,e,n){var i=e.getBBox();if(isNaN(i.x)||isNaN(i.y)||isNaN(i.width)||isNaN(i.height))return n;if(Object(r.isString)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return l(t,e,n);if("r"===n[0])return c(t,e,n);if("p"===n[0])return h(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0}function d(t){var e=0,n=0,i=0,o=0;return Object(r.isArray)(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,[e,n,i,o]}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(88);function i(t,e,n){var i=Object(r.getOffScreenContext)();return t.createPath(i),i.isPointInPath(e,n)}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function o(t,e,n){var o=!1,a=t.length;if(a<=2)return!1;for(var s=0;s<a;s++){var u=t[s],l=t[(s+1)%a];if(i(u,l,[e,n]))return!0;r(u[1]-n)>0!=r(l[1]-n)>0&&r(e-(n-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(o=!o)}return o}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(277);function i(t,e,n,i,o){var a=t.length;if(a<2)return!1;for(var s=0;s<a-1;s++){var u=t[s][0],l=t[s][1],c=t[s+1][0],h=t[s+1][1];if(Object(r.default)(u,l,c,h,e,n,i))return!0}if(o){var f=t[0],d=t[a-1];if(Object(r.default)(f[0],f[1],d[0],d[1],e,n,i))return!0}return!1}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(98),a=n(379),s=Math.PI/2,u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(Object(i.isNumber)(t))n=t;else if(Object(i.isString)(t)&&-1!==t.indexOf("%")){var r=e.getRadius();e.innerRadius>0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),o=this.geometry.getYScale();return Object(i.map)(n,(function(t){if(t&&o){var e=o.scale(Object(i.get)(t.data,o.field));return Object(r.__assign)(Object(r.__assign)({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),i=t.offset;e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var r,i=1,o=t.content[n];this.isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(i=-1),r=this.getArcPoint(e,n));var a=t.offset*i,s=this.getPointAngle(r),u=t.labelEmit,l=this.getCirclePoint(s,a,r,u);return 0===l.r?l.content="":(l.content=o,l.angle=s,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(s,a,u):t.rotate,l.start={x:r.x,y:r.y},l},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),Object(i.isArray)(t.x)||Object(i.isArray)(t.y)?{x:Object(i.isArray)(t.x)?t.x[e]:t.x,y:Object(i.isArray)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return Object(o.getAngleByPoint)(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var a=this.getCoordinate(),s=a.getCenter(),u=Object(o.getDistanceToCenter)(a,n);if(0===u)return Object(r.__assign)(Object(r.__assign)({},s),{r:u});var l=t;a.isTransposed&&u>e&&!i?l=t+2*Math.asin(e/(2*u)):u+=e;return{x:s.x+u*Math.cos(l),y:s.y+u*Math.sin(l),r:u}},e.prototype.getLabelRotate=function(t,e,n){var r=t+s;return n&&(r-=s),r&&(r>s?r-=Math.PI:r<-s&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return Object(i.each)(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(a.default);e.default=u},function(t,e,n){"use strict";function r(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i,o=!0,a=n.minY,s=n.maxY,u=Math.abs(a-s),l=0,c=Number.MIN_VALUE,h=r.map((function(t){return t.y>l&&(l=t.y),t.y<c&&(c=t.y),{content:t.content,size:e,targets:[t.y-a],pos:null}}));for(c-=a,l-a>u&&(u=l-a);o;)for(h.forEach((function(t){var e=(Math.min.apply(c,t.targets)+Math.max.apply(c,t.targets))/2;t.pos=Math.min(Math.max(c,e-t.size/2),u-t.size),t.pos=Math.max(0,t.pos)})),o=!1,i=h.length;i--;)if(i>0){var f=h[i-1],d=h[i];f.pos+f.size>d.pos&&(f.size+=d.size,f.targets=f.targets.concat(d.targets),f.pos+f.size>u&&(f.pos=u-f.size),h.splice(i,1),o=!0)}i=0,h.forEach((function(t){var n=a+e/2;t.targets.forEach((function(){r[i].y=t.pos+n,n+=e,i++}))}))}n.r(e),n.d(e,"antiCollision",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(r.__extends)(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view;if(!n.isTooltipLocked()){var r=this.timeStamp,o=+new Date;if(o-r>Object(i.get)(t.view.getOptions(),"tooltip.showDelay",16)){var a=this.location,s={x:e.x,y:e.y};a&&Object(i.isEqual)(a,s)||this.showTooltip(n,s),this.timeStamp=o,this.location=s}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(n(95).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",(function(){return r}));var r,i=n(2),o=n(176),a=n(399),s=n(499);!function(t){t.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",t.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",t.BEFORE_CLEAR="element-range-highlight:beforeclear",t.AFTER_CLEAR="element-range-highlight:afterclear"}(r||(r={}));var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(i.__extends)(e,t),e.prototype.clearViewState=function(t){Object(a.clearHighlight)(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,n={view:e,event:t.event,highlightElements:this.getIntersectElements()};e.emit(r.BEFORE_HIGHLIGHT,o.Event.fromData(e,r.BEFORE_HIGHLIGHT,n)),this.setState(),e.emit(r.AFTER_HIGHLIGHT,o.Event.fromData(e,r.AFTER_HIGHLIGHT,n))},e.prototype.clear=function(){var e=this.context.view;e.emit(r.BEFORE_CLEAR,o.Event.fromData(e,r.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(r.AFTER_CLEAR,o.Event.fromData(e,r.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,n){Object(a.setHighlightBy)(n,(function(e){return t.indexOf(e)>=0}),e)},e}(s.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(r.__extends)(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:Object(i.head)(t),end:Object(i.last)(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),width:Math.abs(n.x-e.x),height:Math.abs(n.y-e.y)}},e}(n(501).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&(Object(i.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(n(501).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(314),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return Object(r.__extends)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(i.Action);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"conversionTagFormatter",(function(){return i}));var r=n(1);function i(t,e){return Object(r.isNumber)(t)&&Object(r.isNumber)(e)?0===t&&0===e?"-":t===e?"100%":0===t?"∞":(100*e/t).toFixed(2)+"%":"-"}},function(t,e,n){"use strict";n.r(e),n.d(e,"brushInteraction",(function(){return s}));var r=n(1),i=n(873),o=n(3),a=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"];function s(t){var e=t.options,n=e.brush,s=Object(r.filter)(e.interactions||[],(function(t){return-1===a.indexOf(t.type)}));return(null==n?void 0:n.enabled)&&(a.forEach((function(t){var e=!1;switch(n.type){case"x-rect":e=t===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":e=t===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:e=t===("highlight"===n.action?"brush-highlight":"brush")}var r={type:t,enable:e};n&&(r.cfg=Object(i.getInteractionCfg)(t,n.type,n)),s.push(r)})),"highlight"!==(null==n?void 0:n.action)&&s.push({type:"filter-action",cfg:{buttonConfig:n.button}})),Object(o.deepAssign)({},t,{options:{interactions:s}})}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return o}));var r=n(26),i=n(3),o=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}})},function(t,e,n){"use strict";n.r(e),n.d(e,"binHistogram",(function(){return o}));var r=n(1);function i(t,e,n){if(1===n)return[0,e];var r=Math.floor(t/e);return[e*r,e*(r+1)]}function o(t,e,n,o,a){var s=Object(r.clone)(t);Object(r.sortBy)(s,e);var u=Object(r.valuesOfKey)(s,e),l=Object(r.getRange)(u),c=l.max-l.min,h=n;if(!n&&o&&(h=o>1?c/(o-1):l.max),!n&&!o){var f=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}(u);h=c/f}var d={},p=Object(r.groupBy)(s,a);Object(r.isEmpty)(p)?Object(r.each)(s,(function(t){var n=i(t[e],h,o),a=n[0]+"-"+n[1];Object(r.hasKey)(d,a)||(d[a]={range:n,count:0}),d[a].count+=1})):Object.keys(p).forEach((function(t){Object(r.each)(p[t],(function(n){var s=i(n[e],h,o),u=s[0]+"-"+s[1]+"-"+t;Object(r.hasKey)(d,u)||(d[u]={range:s,count:0},d[u][a]=t),d[u].count+=1}))}));var g=[];return Object(r.each)(d,(function(t){g.push(t)})),g}},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptor",(function(){return p}));var r=n(2),i=n(8),o=n(262),a=n(3),s=n(34),u=n(757),l=n(284);function c(t){var e=t.chart,n=t.options,r=n.data,i=n.binField,o=n.binNumber,c=n.binWidth,h=n.color,f=n.stackField,d=n.legend,p=n.columnStyle,g=Object(u.binHistogram)(r,i,c,o,f);e.data(g);var v=Object(a.deepAssign)({},t,{options:{xField:l.HISTOGRAM_X_FIELD,yField:l.HISTOGRAM_Y_FIELD,seriesField:f,isStack:!0,interval:{color:h,style:p}}});return Object(s.interval)(v),d&&f?e.legend(f,d):e.legend(!1),t}function h(t){var e,n=t.options,r=n.xAxis,o=n.yAxis;return Object(a.flow)(Object(i.scale)(((e={})[l.HISTOGRAM_X_FIELD]=r,e[l.HISTOGRAM_Y_FIELD]=o,e)))(t)}function f(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis;return!1===r?e.axis(l.HISTOGRAM_X_FIELD,!1):e.axis(l.HISTOGRAM_X_FIELD,r),!1===i?e.axis(l.HISTOGRAM_Y_FIELD,!1):e.axis(l.HISTOGRAM_Y_FIELD,i),t}function d(t){var e=t.chart,n=t.options.label,i=Object(a.findGeometry)(e,"interval");if(n){var o=n.callback,s=Object(r.__rest)(n,["callback"]);i.label({fields:[l.HISTOGRAM_Y_FIELD],callback:o,cfg:Object(a.transformLabel)(s)})}else i.label(!1);return t}function p(t){return Object(a.flow)(i.theme,Object(o.pattern)("columnStyle"),c,h,f,i.state,d,i.tooltip,i.interaction,i.animation)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_COLOR",(function(){return r})),n.d(e,"DEFAULT_OPTIONS",(function(){return i}));var r=["#FAAD14","#E8EDF3"],i={percent:.2,color:r,animation:{}}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformData",(function(){return o}));var r=n(1),i=n(282),o=function(t,e){var n=t;if(Array.isArray(e)){var o=e[0],a=e[1],s=e[2],u=e[3],l=e[4];n=Object(r.map)(t,(function(t){return t[i.BOX_RANGE]=[t[o],t[a],t[s],t[u],t[l]],t}))}return n}},function(t,e,n){"use strict";n.r(e),n.d(e,"toBoxValue",(function(){return u})),n.d(e,"toViolinValue",(function(){return l})),n.d(e,"transformViolinData",(function(){return c}));var r=n(2),i=n(1),o=n(1728),a=n.n(o),s=n(535),u=function(t){return{low:Object(i.min)(t),high:Object(i.max)(t),q1:Object(s.quantile)(t,.25),q3:Object(s.quantile)(t,.75),median:Object(s.quantile)(t,[.5]),minMax:[Object(i.min)(t),Object(i.max)(t)],quantile:[Object(s.quantile)(t,.25),Object(s.quantile)(t,.75)]}},l=function(t,e){var n=a.a.create(t,e);return{violinSize:n.map((function(t){return t.y})),violinY:n.map((function(t){return t.x}))}},c=function(t){var e=t.xField,n=t.yField,o=t.seriesField,a=t.data,s=t.kde,c={min:s.min,max:s.max,size:s.sampleSize,width:s.width};if(!o){var h=Object(i.groupBy)(a,e);return Object.keys(h).map((function(t){var e=h[t].map((function(t){return t[n]}));return Object(r.__assign)(Object(r.__assign)({x:t},l(e,c)),u(e))}))}var f=[],d=Object(i.groupBy)(a,o);return Object.keys(d).forEach((function(t){var a=Object(i.groupBy)(d[t],e);return Object.keys(a).forEach((function(e){var i,s=a[e].map((function(t){return t[n]}));f.push(Object(r.__assign)(Object(r.__assign)(((i={x:e})[o]=t,i),l(s,c)),u(s)))}))})),f}},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return c})),n.d(e,"axis",(function(){return h})),n.d(e,"tooltip",(function(){return f})),n.d(e,"legend",(function(){return d})),n.d(e,"adaptor",(function(){return p}));var r=n(8),i=n(34),o=n(3),a=n(148),s=n(194),u=n(763);function l(t){var e=t.chart,n=t.options,r=n.yField,a=n.data,l=n.risingFill,c=n.fallingFill,h=n.tooltip,f=n.stockStyle;e.data(Object(u.getStockData)(a,r));var d=h;return!1!==d&&(d=Object(o.deepAssign)({},{fields:r},d)),Object(i.schema)(Object(o.deepAssign)({},t,{options:{schema:{shape:"candle",color:[l,c],style:f},yField:s.Y_FIELD,seriesField:s.TREND_FIELD,rawFields:r,tooltip:d}})),t}function c(t){var e,n,r=t.chart,i=t.options,u=i.meta,l=i.xAxis,c=i.yAxis,h=i.xField,f=((e={})[h]={type:"timeCat",tickCount:6},e[s.TREND_FIELD]={values:[s.TREND_UP,s.TREND_DOWN]},e),d=Object(o.deepAssign)(f,u,((n={})[h]=Object(o.pick)(l,a.AXIS_META_CONFIG_KEYS),n[s.Y_FIELD]=Object(o.pick)(c,a.AXIS_META_CONFIG_KEYS),n));return r.scale(d),t}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(s.Y_FIELD,!1):e.axis(s.Y_FIELD,i),t}function f(t){var e=t.chart,n=t.options.tooltip;return!1!==n?e.tooltip(n):e.tooltip(!1),t}function d(t){var e=t.chart,n=t.options.legend;return n?e.legend(s.TREND_FIELD,n):!1===n&&e.legend(!1),t}function p(t){Object(o.flow)(r.theme,l,c,h,f,d,r.interaction,r.animation,Object(r.annotation)(),r.slider)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getStockData",(function(){return a}));var r=n(2),i=n(1),o=n(194);function a(t,e){return Object(i.map)(t,(function(t){var n=t&&Object(r.__assign)({},t);if(Object(i.isArray)(e)&&n){var a=e[0],s=e[1],u=e[2],l=e[3];n[o.TREND_FIELD]=n[a]<=n[s]?o.TREND_UP:o.TREND_DOWN,n[o.Y_FIELD]=[n[a],n[s],n[u],n[l]]}return n}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return m})),n.d(e,"interaction",(function(){return _})),n.d(e,"adaptor",(function(){return x}));var r=n(2),i=n(1),o=n(8),a=n(298),s=n(3),u=n(754),l=n(504),c=n(765),h=n(1733),f=n(1734),d=n(81),p=n(594);function g(t){var e,n=t.options,r=n.compareField,o=n.xField,l=n.yField,c=n.locale,h=n.funnelStyle,f=n.data,p=Object(a.getLocale)(c),g={label:r?{fields:[o,l,r,d.FUNNEL_PERCENT,d.FUNNEL_CONVERSATION],formatter:function(t){return""+t[l]}}:{fields:[o,l,d.FUNNEL_PERCENT,d.FUNNEL_CONVERSATION],offset:0,position:"middle",formatter:function(t){return t[o]+" "+t[l]}},tooltip:{title:o,formatter:function(t){return{name:t[o],value:t[l]}}},conversionTag:{formatter:function(t){return p.get(["conversionTag","label"])+": "+u.conversionTagFormatter.apply(void 0,t[d.FUNNEL_CONVERSATION])}}};return(r||h)&&(e=function(t){return Object(s.deepAssign)({},r&&{lineWidth:1,stroke:"#fff"},Object(i.isFunction)(h)?h(t):h)}),Object(s.deepAssign)({options:g},t,{options:{funnelStyle:e,data:Object(i.clone)(f)}})}function v(t){var e=t.options,n=e.compareField,r=e.dynamicHeight;return e.seriesField?Object(h.facetFunnel)(t):n?Object(c.compareFunnel)(t):r?Object(f.dynamicHeightFunnel)(t):Object(l.basicFunnel)(t)}function m(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,u=n.yField;return Object(s.flow)(Object(o.scale)(((e={})[a]=r,e[u]=i,e)))(t)}function y(t){return t.chart.axis(!1),t}function b(t){var e=t.chart,n=t.options.legend;return!1===n?e.legend(!1):e.legend(n),t}function _(t){var e=t.chart,n=t.options,o=n.interactions,a=n.dynamicHeight;return Object(i.each)(o,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),a?e.removeInteraction(p.FUNNEL_LEGEND_FILTER):e.interaction(p.FUNNEL_LEGEND_FILTER,{start:[Object(r.__assign)(Object(r.__assign)({},p.interactionStart),{arg:n})]}),t}function x(t){return Object(s.flow)(g,v,m,y,o.tooltip,_,b,o.animation,o.theme,Object(o.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"compareConversionTag",(function(){return h})),n.d(e,"compareFunnel",(function(){return d}));var r=n(1),i=n(3),o=n(138),a=n(110),s=n(81),u=n(301);function l(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale(((e={})[a]={sync:!0},e)),t}function c(t){var e=t.chart,n=t.options,l=n.data,c=n.xField,h=n.yField,f=n.color,d=n.compareField,p=n.isTransposed,g=n.tooltip,v=n.maxSize,m=n.minSize,y=n.label,b=n.funnelStyle,_=n.state,x=n.showFacetTitle;return e.facet("mirror",{fields:[d],transpose:!p,padding:p?0:[32,0,0,0],showTitle:x,eachView:function(t,e){var n=p?e.rowIndex:e.columnIndex;p||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var x=Object(u.transformData)(e.data,l,{yField:h,maxSize:v,minSize:m});t.data(x);var w=Object(o.getTooltipMapping)(g,[c,h,d]),O=w.fields,S=w.formatter,C=p?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};Object(a.geometry)({chart:t,options:{type:"interval",xField:c,yField:s.FUNNEL_MAPPING_VALUE,colorField:c,tooltipFields:Object(r.isArray)(O)&&O.concat([s.FUNNEL_PERCENT,s.FUNNEL_CONVERSATION]),mapping:{shape:"funnel",tooltip:S,color:f,style:b},label:!1!==y&&Object(i.deepAssign)({},C,y),state:_}})}}),t}function h(t){var e=t.chart,n=t.index,o=t.options,a=o.conversionTag,l=o.isTransposed;(Object(r.isNumber)(n)?[e]:e.views).forEach((function(t,e){var c=Object(r.get)(t,["geometries","0","dataArray"],[]),h=Object(r.get)(t,["options","data","length"]),f=Object(r.map)(c,(function(t){return Object(r.get)(t,["0","nextPoints","0","x"])*h-.5}));Object(u.conversionTagComponent)((function(t,r,o,u){var c=0===(n||e)?-1:1;return Object(i.deepAssign)({},u,{start:[f[r-1]||r-.5,t[s.FUNNEL_MAPPING_VALUE]],end:[f[r-1]||r-.5,t[s.FUNNEL_MAPPING_VALUE]+.05],text:l?{style:{textAlign:"start"}}:{offsetX:!1!==a?c*a.offsetX:0,style:{textAlign:0===(n||e)?"end":"start"}}})}))(Object(i.deepAssign)({},{chart:t,options:o}))}))}function f(t){return t.chart.once("beforepaint",(function(){return h(t)})),t}function d(t){return Object(i.flow)(l,c,f)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getLiquidData",(function(){return r}));function r(t){return[{percent:t,type:"liquid"}]}},function(t,e,n){"use strict";function r(t,e,n){return t.length>1?e+"_"+n:""+e}function i(t){var e=t.data,n=t.xField,i=t.measureField,o=t.rangeField,a=t.targetField,s=t.layout,u=[],l=[];e.forEach((function(t,e){var s=[t[o]].flat();s.sort((function(t,e){return t-e})),s.forEach((function(r,i){var a,l=0===i?r:s[i]-s[i-1];u.push(((a={rKey:o+"_"+i})[n]=n?t[n]:String(e),a[o]=l,a))}));var c=[t[i]].flat();c.forEach((function(o,a){var s;u.push(((s={mKey:r(c,i,a)})[n]=n?t[n]:String(e),s[i]=o,s))}));var h=[t[a]].flat();h.forEach((function(i,o){var s;u.push(((s={tKey:r(h,a,o)})[n]=n?t[n]:String(e),s[a]=i,s))})),l.push(t[o],t[i],t[a])}));var c=Math.min.apply(Math,l.flat(1/0)),h=Math.max.apply(Math,l.flat(1/0));return c=c>0?0:c,"vertical"===s&&u.reverse(),{min:c,max:h,ds:u}}n.r(e),n.d(e,"transformData",(function(){return i}))},function(t,e,n){"use strict";n.r(e),e.default=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTileMethod",(function(){return l})),n.d(e,"treemap",(function(){return c}));var r=n(565),i=n(877),o=n(333),a=n(1),s=n(212),u={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(t,e){return e.value-t.value},ratio:.5*(1+Math.sqrt(5))};function l(t,e){return"treemapSquarify"===t?r[t].ratio(e):r[t]}function c(t,e){var n,r=(e=Object(a.assign)({},u,e)).as;if(!Object(a.isArray)(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=Object(s.getField)(e)}catch(t){console.warn(t)}var c=l(e.tile,e.ratio),h=function(t){return i.default().tile(c).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(o.default(t).sum((function(t){return e.ignoreParentValue&&t.children?0:t[n]})).sort(e.sort))}(t),f=r[0],d=r[1];return h.each((function(t){t[f]=[t.x0,t.x1,t.x1,t.x0],t[d]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===r.indexOf(e)&&delete t[e]}))})),Object(s.getAllNodes)(h)}},function(t,e,n){"use strict";function r(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}n.r(e),n.d(e,"shuffle",(function(){return r})),e.default=function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"processData",(function(){return s})),n.d(e,"transformData",(function(){return u}));var r=n(2),i=n(1),o=n(3),a=n(133);function s(t,e,n,a,s){var u,l=[];if(Object(i.reduce)(t,(function(t,e){var s;Object(o.log)(o.LEVEL.WARN,Object(i.isNumber)(e[n]),e[n]+" is not a valid number");var u=Object(i.isUndefined)(e[n])?null:e[n];return l.push(Object(r.__assign)(Object(r.__assign)({},e),((s={})[a]=[t,t+u],s))),t+u}),0),l.length&&s){var c=Object(i.get)(l,[[t.length-1],a,[1]]);l.push(((u={})[e]=s.label,u[n]=c,u[a]=[0,c],u))}return l}function u(t,e,n,o){return s(t,e,n,a.Y_FIELD,o).map((function(e,n){var o;return Object(i.isObject)(e)?Object(r.__assign)(Object(r.__assign)({},e),((o={})[a.ABSOLUTE_FIELD]=e[a.Y_FIELD][1],o[a.DIFF_FIELD]=e[a.Y_FIELD][1]-e[a.Y_FIELD][0],o[a.IS_TOTAL]=n===t.length,o)):e}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"getNodeWidthRatio",(function(){return u})),n.d(e,"getNodePaddingRatio",(function(){return l})),n.d(e,"transformToViewsData",(function(){return c}));var r=n(2),i=n(3),o=n(381),a=n(1759),s=n(1760);function u(t,e,n){return Object(i.isRealNumber)(t)?t/n:e}function l(t,e,n){return Object(i.isRealNumber)(t)?t/n:e}function c(t,e,n){var c,h=t.dataType,f=t.data,d=t.sourceField,p=t.targetField,g=t.weightField,v=t.nodeAlign,m=t.nodeSort,y=t.nodePadding,b=t.nodePaddingRatio,_=t.nodeWidth,x=t.nodeWidthRatio,w=t.nodeDepth,O=t.rawFields,S=void 0===O?[]:O;c=function(t){return"node-link"===t}(h)?f:Object(o.transformDataToNodeLinkData)(Object(s.cutoffCircle)(f,d,p),d,p,g,S);var C=Object(a.sankeyLayout)({nodeAlign:v,nodePadding:l(y,b,n),nodeWidth:u(_,x,e),nodeSort:m,nodeDepth:w},c),E=C.nodes,T=C.links;return{nodes:E.map((function(t){return Object(r.__assign)(Object(r.__assign)({},Object(i.pick)(t,Object(r.__spreadArrays)(["x","y","name"],S))),{isNode:!0})})),edges:T.map((function(t){return Object(r.__assign)(Object(r.__assign)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},Object(i.pick)(t,Object(r.__spreadArrays)(["x","y","value"],S))),{isNode:!1})}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"RAW_FIELDS",(function(){return r})),n.d(e,"DEFAULT_OPTIONS",(function(){return i}));var r=["x","y","r","name","value","path","depth"],i={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}}},function(t,e,n){"use strict";t.exports=function(){function t(t){var r=[];return t.AMapUI&&r.push(e(t.AMapUI)),t.Loca&&r.push(n(t.Loca)),Promise.all(r)}function e(t){return new Promise((function(e,n){var i=[];if(t.plugins)for(var u=0;u<t.plugins.length;u+=1)-1==o.AMapUI.plugins.indexOf(t.plugins[u])&&i.push(t.plugins[u]);if(a.AMapUI===r.failed)n("前次请求 AMapUI 失败");else if(a.AMapUI===r.notload){a.AMapUI=r.loading,o.AMapUI.version=t.version||o.AMapUI.version,u=o.AMapUI.version;var l=document.body||document.head,c=document.createElement("script");c.type="text/javascript",c.src="https://webapi.amap.com/ui/"+u+"/main.js",c.onerror=function(t){a.AMapUI=r.failed,n("请求 AMapUI 失败")},c.onload=function(){if(a.AMapUI=r.loaded,i.length)window.AMapUI.loadUI(i,(function(){for(var t=0,n=i.length;t<n;t++){var r=i[t].split("/").slice(-1)[0];window.AMapUI[r]=arguments[t]}for(e();s.AMapUI.length;)s.AMapUI.splice(0,1)[0]()}));else for(e();s.AMapUI.length;)s.AMapUI.splice(0,1)[0]()},l.appendChild(c)}else a.AMapUI===r.loaded?t.version&&t.version!==o.AMapUI.version?n("不允许多个版本 AMapUI 混用"):i.length?window.AMapUI.loadUI(i,(function(){for(var t=0,n=i.length;t<n;t++){var r=i[t].split("/").slice(-1)[0];window.AMapUI[r]=arguments[t]}e()})):e():t.version&&t.version!==o.AMapUI.version?n("不允许多个版本 AMapUI 混用"):s.AMapUI.push((function(t){t?n(t):i.length?window.AMapUI.loadUI(i,(function(){for(var t=0,n=i.length;t<n;t++){var r=i[t].split("/").slice(-1)[0];window.AMapUI[r]=arguments[t]}e()})):e()}))}))}function n(t){return new Promise((function(e,n){if(o.AMap.version.startsWith("2.0"))n("Loca 暂不适配 JSAPI 2.0,请使用 1.4.15");else if(a.Loca===r.failed)n("前次请求 Loca 失败");else if(a.Loca===r.notload){a.Loca=r.loading,o.Loca.version=t.version||o.Loca.version;var i=o.Loca.version,u=o.key,l=document.body||document.head,c=document.createElement("script");c.type="text/javascript",c.src="https://webapi.amap.com/loca?v="+i+"&key="+u,c.onerror=function(t){a.Loca=r.failed,n("请求 AMapUI 失败")},c.onload=function(){for(a.Loca=r.loaded,e();s.Loca.length;)s.Loca.splice(0,1)[0]()},l.appendChild(c)}else a.Loca===r.loaded?t.version&&t.version!==o.Loca.version?n("不允许多个版本 Loca 混用"):e():t.version&&t.version!==o.Loca.version?n("不允许多个版本 Loca 混用"):s.Loca.push((function(t){t?n(t):n()}))}))}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var r,i;(i=r||(r={})).notload="notload",i.loading="loading",i.loaded="loaded",i.failed="failed";var o={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:r.notload,AMapUI:r.notload,Loca:r.notload},s={AMap:[],AMapUI:[],Loca:[]},u=[];return{load:function(e){return new Promise((function(n,i){if(a.AMap==r.failed)i("");else if(a.AMap==r.notload){var s=e.key,l=e.version,c=e.plugins;s?(window.AMap&&"lbs.amap.com"!==location.host&&i("禁止多种API加载方式混用"),o.key=s,o.AMap.version=l||o.AMap.version,o.AMap.plugins=c||o.AMap.plugins,a.AMap=r.loading,l=document.body||document.head,window.___onAPILoaded=function(o){if(delete window.___onAPILoaded,o)a.AMap=r.failed,i(o);else for(a.AMap=r.loaded,t(e).then((function(){n(window.AMap)})).catch(i);u.length;)u.splice(0,1)[0]()},(c=document.createElement("script")).type="text/javascript",c.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+o.AMap.version+"&key="+s+"&plugin="+o.AMap.plugins.join(","),c.onerror=function(t){a.AMap=r.failed,i(t)},l.appendChild(c)):i("请填写key")}else if(a.AMap==r.loaded)if(e.key&&e.key!==o.key)i("多个不一致的 key");else if(e.version&&e.version!==o.AMap.version)i("不允许多个版本 JSAPI 混用");else{if(s=[],e.plugins)for(l=0;l<e.plugins.length;l+=1)-1==o.AMap.plugins.indexOf(e.plugins[l])&&s.push(e.plugins[l]);s.length?window.AMap.plugin(s,(function(){t(e).then((function(){n(window.AMap)})).catch(i)})):t(e).then((function(){n(window.AMap)})).catch(i)}else if(e.key&&e.key!==o.key)i("多个不一致的 key");else if(e.version&&e.version!==o.AMap.version)i("不允许多个版本 JSAPI 混用");else{var h=[];if(e.plugins)for(l=0;l<e.plugins.length;l+=1)-1==o.AMap.plugins.indexOf(e.plugins[l])&&h.push(e.plugins[l]);!function(t){"function"==typeof t&&(a.AMap===r.loaded?t(window.AMap):u.push(t))}((function(){h.length?window.AMap.plugin(h,(function(){t(e).then((function(){n(window.AMap)})).catch(i)})):t(e).then((function(){n(window.AMap)})).catch(i)}))}}))},reset:function(){delete window.AMap,delete window.AMapUI,delete window.Loca,o={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:r.notload,AMapUI:r.notload,Loca:r.notload},s={AMap:[],AMapUI:[],Loca:[]}}}}()},function(t,e,n){"use strict";n.r(e),n.d(e,"Element",(function(){return y}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(14),u=n.n(s),l=n(50),c=n.n(l),h=n(51),f=n.n(h),d=n(28),p=n.n(d),g=n(4),v=n.n(g);function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var y=function(t){c()(n,t);var e=m(n);function n(){var t;return i()(this,n),t=e.call(this),v()(u()(t),"className",void 0),v()(u()(t),"children",void 0),t.className="",t.children=[],t}return a()(n,[{key:"setAttribute",value:function(t,e){this[t]=e}},{key:"getAttribute",value:function(t){return this[t]}},{key:"setAttributeNS",value:function(t,e){this[t]=e}},{key:"getAttributeNS",value:function(t){return this[t]}}]),n}(n(776).Node)},function(t,e,n){"use strict";n.r(e),n.d(e,"Node",(function(){return y}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(14),u=n.n(s),l=n(50),c=n.n(l),h=n(51),f=n.n(h),d=n(28),p=n.n(d),g=n(4),v=n.n(g);function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var y=function(t){c()(n,t);var e=m(n);function n(){var t;return i()(this,n),t=e.call(this),v()(u()(t),"childNodes",void 0),t.childNodes=[],t}return a()(n,[{key:"appendChild",value:function(t){this.childNodes.push(t)}},{key:"cloneNode",value:function(){var t=Object.create(this);return Object.assign(t,this),t}},{key:"removeChild",value:function(t){var e=this.childNodes.findIndex((function(e){return e===t}));return e>-1?this.childNodes.splice(e,1):null}}]),n}(n(505).default)},function(t,e,n){"use strict";n.r(e),n.d(e,"HTMLVideoElement",(function(){return p}));var r=n(17),i=n.n(r),o=n(16),a=n.n(o),s=n(50),u=n.n(s),l=n(51),c=n.n(l),h=n(28),f=n.n(h);function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var p=function(t){u()(n,t);var e=d(n);function n(){return a()(this,n),e.call(this,"video")}return i()(n)}(n(778).HTMLMediaElement)},function(t,e,n){"use strict";n.r(e),n.d(e,"HTMLMediaElement",(function(){return p}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(50),u=n.n(s),l=n(51),c=n.n(l),h=n(28),f=n.n(h);function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var p=function(t){u()(n,t);var e=d(n);function n(t){return i()(this,n),e.call(this,t)}return a()(n,[{key:"addTextTrack",value:function(){}},{key:"captureStream",value:function(){}},{key:"fastSeek",value:function(){}},{key:"load",value:function(){}},{key:"pause",value:function(){}},{key:"play",value:function(){}}]),n}(n(367).HTMLElement)},function(t,e,n){"use strict";n.r(e),n.d(e,"Image",(function(){return l}));var r=n(17),i=n.n(r),o=n(16),a=n.n(o),s=n(251),u=n(159),l=i()((function t(){a()(this,t);var e=Object(s.getCanvas)(),n=e.createImage&&e.createImage()||{};return"tagName"in n||(n.tagName="IMG",n.__proto__=t.prototype),u.parentNode(n),u.classList(n),Object.assign(n,{addEventListener:function(t,e){n["on".concat(t)]=e.bind(n)},removeEventListener:function(t){n["on".concat(t)]=null}}),n}))},function(t,e,n){"use strict";n.r(e),n.d(e,"$location",(function(){return r}));var r={href:"",protocol:"",host:""}},function(t,e,n){"use strict";n.r(e),n.d(e,"buildMapping",(function(){return l})),n.d(e,"buildIconMaping",(function(){return c})),n.d(e,"nextPowOfTwo",(function(){return f}));var r=n(4),i=n.n(r);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t){var e=t.characterSet,n=t.getFontWidth,r=t.fontHeight,i=t.buffer,o=t.maxCanvasWidth,a=t.mapping,s=void 0===a?{}:a,u=t.xOffset,l=void 0===u?0:u,c=t.yOffset,h=void 0===c?0:c,d=0,p=l;Array.from(e).forEach((function(t,e){if(!s[t]){var r=n(t,e);p+30>o&&(p=0,d++),s[t]={x:p,y:h+30*d,width:30,height:30,advance:r},p+=30}}));var g=r+2*i;return{mapping:s,xOffset:p,yOffset:h+d*g,canvasHeight:f(h+(d+1)*g)}}function c(t,e,n){var r,i=0,o=0,a=0,u=[],l={},c=s(t);try{for(c.s();!(r=c.n()).done;){var d=r.value;if(!l[d.id]){var p=d.size;i+p+e>n&&(h(l,u,o),i=0,o=a+o+e,a=0,u=[]),u.push({icon:d,xOffset:i}),i=i+p+e,a=Math.max(a,p)}}}catch(t){c.e(t)}finally{c.f()}return u.length>0&&h(l,u,o),{mapping:l,canvasHeight:f(a+o+e)}}function h(t,e,n){var r,i=s(e);try{for(i.s();!(r=i.n()).done;){var o=r.value,u=o.icon,l=o.xOffset;t[u.id]=a(a({},u),{},{x:l,y:n,image:u.image,width:u.width,height:u.height})}}catch(t){i.e(t)}finally{i.f()}}function f(t){return Math.pow(2,Math.ceil(Math.log2(t)))}},function(t,e,n){"use strict";n.r(e),n.d(e,"createRendererContainer",(function(){return o})),n.d(e,"isEventCrash",(function(){return a}));var r=n(37),i=0;function o(t){if(r.isMini)return null;var e=t;if("string"==typeof t&&(e=document.getElementById(t)),e){var n=document.createElement("div");return n.style.cssText+="\n position: absolute;\n z-index:2;\n height: 100%;\n width: 100%;\n pointer-events: none;\n ",n.id="l7-scene-".concat(i++),n.classList.add("l7-scene"),e.appendChild(n),n}return null}function a(t){var e,n,r=!0;return null==t||null===(e=t.target)||void 0===e||null===(n=e.path)||void 0===n||n.map((function(t){var e;null!=t&&t.classList&&(null==t||null===(e=t.classList)||void 0===e||e.forEach((function(t){"l7-marker"!==t&&"l7-popup"!==t||(r=!1)})))})),r}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(599);function i(t,e){if(t){if("string"==typeof t)return Object(r.default)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.default)(t,e):void 0}}},function(t,e,n){"use strict";n.r(e),n.d(e,"Element",(function(){return l}));var r=n(19),i=n(20),o=n(61),a=n(63),s=n(32);function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(s.default)(t);if(e){var i=Object(s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.default)(this,n)}}var l=function(t){Object(o.default)(n,t);var e=u(n);function n(){var t;return Object(r.default)(this,n),(t=e.call(this)).className="",t.children=[],t}return Object(i.default)(n,[{key:"setAttribute",value:function(t,e){this[t]=e}},{key:"getAttribute",value:function(t){return this[t]}},{key:"setAttributeNS",value:function(t,e){this[t]=e}},{key:"getAttributeNS",value:function(t){return this[t]}}]),n}(n(785).Node)},function(t,e,n){"use strict";n.r(e),n.d(e,"Node",(function(){return l}));var r=n(19),i=n(20),o=n(61),a=n(63),s=n(32);function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(s.default)(t);if(e){var i=Object(s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.default)(this,n)}}var l=function(t){Object(o.default)(n,t);var e=u(n);function n(){var t;return Object(r.default)(this,n),(t=e.call(this)).childNodes=[],t}return Object(i.default)(n,[{key:"appendChild",value:function(t){this.childNodes.push(t)}},{key:"cloneNode",value:function(){var t=Object.create(this);return Object.assign(t,this),t}},{key:"removeChild",value:function(t){var e=this.childNodes.findIndex((function(e){return e===t}));return e>-1?this.childNodes.splice(e,1):null}}]),n}(n(508).default)},function(t,e,n){"use strict";n.r(e),n.d(e,"HTMLVideoElement",(function(){return l}));var r=n(20),i=n(19),o=n(61),a=n(63),s=n(32);function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(s.default)(t);if(e){var i=Object(s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.default)(this,n)}}var l=function(t){Object(o.default)(n,t);var e=u(n);function n(){return Object(i.default)(this,n),e.call(this,"video")}return Object(r.default)(n)}(n(787).HTMLMediaElement)},function(t,e,n){"use strict";n.r(e),n.d(e,"HTMLMediaElement",(function(){return l}));var r=n(19),i=n(20),o=n(61),a=n(63),s=n(32);function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(s.default)(t);if(e){var i=Object(s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.default)(this,n)}}var l=function(t){Object(o.default)(n,t);var e=u(n);function n(t){return Object(r.default)(this,n),e.call(this,t)}return Object(i.default)(n,[{key:"addTextTrack",value:function(){}},{key:"captureStream",value:function(){}},{key:"fastSeek",value:function(){}},{key:"load",value:function(){}},{key:"pause",value:function(){}},{key:"play",value:function(){}}]),n}(n(368).HTMLElement)},function(t,e,n){"use strict";n.r(e),n.d(e,"Image",(function(){return s}));var r=n(20),i=n(19),o=n(253),a=n(160),s=Object(r.default)((function t(){Object(i.default)(this,t);var e=Object(o.getCanvas)(),n=e.createImage&&e.createImage()||{};return"tagName"in n||(n.tagName="IMG",n.__proto__=t.prototype),a.parentNode(n),a.classList(n),Object.assign(n,{addEventListener:function(t,e){n["on".concat(t)]=e.bind(n)},removeEventListener:function(t){n["on".concat(t)]=null}}),n}))},function(t,e,n){"use strict";n.r(e),n.d(e,"$location",(function(){return r}));var r={href:"",protocol:"",host:""}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return b}));var r=n(19),i=n(20),o=n(68),a=n(61),s=n(63),u=n(32),l=n(52),c=n(209),h=n(122),f=n(102),d=n(363),p=n(75),g=n(1857),v=n(90),m=n(69);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(u.default)(t);if(e){var i=Object(u.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.default)(this,n)}}var b=function(t){Object(a.default)(n,t);var e=y(n);function n(t){var i;Object(r.default)(this,n),i=e.call(this),Object(l.default)(Object(o.default)(i),"renderFrameCallback",(function(){var t=Math.min((Object(m.now)()-i.easeStart)/i.easeOptions.duration,1);i.onEaseFrame(i.easeOptions.easing(t)),t<1?i.easeFrameId=i.requestRenderFrame(i.renderFrameCallback):i.stop()})),i.options=t;var a=t.minZoom,s=t.maxZoom,u=t.minPitch,c=t.maxPitch,h=t.renderWorldCopies;return i.moving=!1,i.zooming=!1,i.bearingSnap=t.bearingSnap,i.pitchEnabled=t.pitchEnabled,i.rotateEnabled=t.rotateEnabled,i.transform=new g.default(a,s,u,c,h),i}return Object(i.default)(n,[{key:"requestRenderFrame",value:function(t){return 0}},{key:"cancelRenderFrame",value:function(t){}},{key:"getCenter",value:function(){var t=this.transform.center,e=t.lng,n=t.lat;return new f.default(e,n)}},{key:"getZoom",value:function(){return this.transform.zoom}},{key:"getPitch",value:function(){return this.transform.pitch}},{key:"setCenter",value:function(t,e){return this.jumpTo({center:t},e)}},{key:"setPitch",value:function(t,e){return this.jumpTo({pitch:t},e),this}},{key:"getBearing",value:function(){return this.transform.bearing}},{key:"panTo",value:function(t,e,n){return this.easeTo(Object(h.merge)({center:t},e),n)}},{key:"zoomOut",value:function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this}},{key:"setBearing",value:function(t,e){return this.jumpTo({bearing:t},e),this}},{key:"setZoom",value:function(t,e){return this.jumpTo({zoom:t},e),this}},{key:"zoomIn",value:function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this}},{key:"zoomTo",value:function(t,e,n){return this.easeTo(Object(h.merge)({zoom:t},e),n)}},{key:"getPadding",value:function(){return this.transform.padding}},{key:"setPadding",value:function(t,e){return this.jumpTo({padding:t},e),this}},{key:"rotateTo",value:function(t,e,n){return this.easeTo(Object(h.merge)({bearing:t},e),n)}},{key:"resetNorth",value:function(t,e){return this.rotateTo(0,Object(h.merge)({duration:1e3},t),e),this}},{key:"resetNorthPitch",value:function(t,e){return this.easeTo(Object(h.merge)({bearing:0,pitch:0,duration:1e3},t),e),this}},{key:"fitBounds",value:function(t,e,n){return this.fitInternal(this.cameraForBounds(t,e),e,n)}},{key:"cameraForBounds",value:function(t,e){return t=d.default.convert(t),this.cameraForBoxAndBearing(t.getNorthWest(),t.getSouthEast(),0,e)}},{key:"snapToNorth",value:function(t,e){return Math.abs(this.getBearing())<this.bearingSnap?this.resetNorth(t,e):this}},{key:"jumpTo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;this.stop();var n=this.transform,r=!1,i=!1,o=!1;return t.zoom&&n.zoom!==+t.zoom&&(r=!0,n.zoom=+t.zoom),void 0!==t.center&&(n.center=f.default.convert(t.center)),t.bearing&&n.bearing!==+t.bearing&&(i=!0,n.bearing=+t.bearing),t.pitch&&n.pitch!==+t.pitch&&(o=!0,n.pitch=+t.pitch),null==t.padding||n.isPaddingEqual(t.padding)||(n.padding=t.padding),this.emit("movestart",new v.Event("movestart",e)),this.emit("move",new v.Event("move",e)),r&&(this.emit("zoomstart",new v.Event("zoomstart",e)),this.emit("zoom",new v.Event("zoom",e)),this.emit("zoomend",new v.Event("zoomend",e))),i&&(this.emit("rotatestart",new v.Event("rotatestart",e)),this.emit("rotate",new v.Event("rotate",e)),this.emit("rotateend",new v.Event("rotateend",e))),o&&(this.emit("pitchstart",new v.Event("pitchstart",e)),this.emit("pitch",new v.Event("pitch",e)),this.emit("pitchend",new v.Event("pitchend",e))),this.emit("moveend",new v.Event("moveend",e))}},{key:"easeTo",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;(!1===(e=Object(h.merge)({offset:[0,0],duration:500,easing:m.ease},e)).animate||!e.essential&&Object(m.prefersReducedMotion)())&&(e.duration=0);var r=this.transform,i=this.getZoom(),o=this.getBearing(),a=this.getPitch(),s=this.getPadding(),u=e.zoom?+e.zoom:i,l=e.bearing?this.normalizeBearing(e.bearing,o):o,c=e.pitch?+e.pitch:a,d=e.padding?e.padding:r.padding,g=p.default.convert(e.offset),v=r.centerPoint.add(g),y=r.pointLocation(v),b=f.default.convert(e.center||y);this.normalizeCenter(b);var _,x,w=r.project(y),O=r.project(b).sub(w),S=r.zoomScale(u-i);e.around&&(_=f.default.convert(e.around),x=r.locationPoint(_));var C={moving:this.moving,zooming:this.zooming,rotating:this.rotating,pitching:this.pitching};return this.zooming=this.zooming||u!==i,this.rotating=this.rotating||o!==l,this.pitching=this.pitching||c!==a,this.padding=!r.isPaddingEqual(d),this.easeId=e.easeId,this.prepareEase(n,e.noMoveStart,C),clearTimeout(this.easeEndTimeoutID),this.ease((function(e){if(t.zooming&&(r.zoom=Object(m.interpolate)(i,u,e)),t.rotating&&t.rotateEnabled&&(r.bearing=Object(m.interpolate)(o,l,e)),t.pitching&&t.pitchEnabled&&(r.pitch=Object(m.interpolate)(a,c,e)),t.padding&&(r.interpolatePadding(s,d,e),v=r.centerPoint.add(g)),_)r.setLocationAtPoint(_,x);else{var h=r.zoomScale(r.zoom-i),f=u>i?Math.min(2,S):Math.max(.5,S),p=Math.pow(f,1-e),y=r.unproject(w.add(O.mult(e*p)).mult(h));r.setLocationAtPoint(r.renderWorldCopies?y.wrap():y,v)}t.fireMoveEvents(n)}),(function(e){t.afterEase(n,e)}),e),this}},{key:"flyTo",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(!e.essential&&Object(m.prefersReducedMotion)()){var r=Object(m.pick)(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(r,n)}this.stop(),e=Object(h.merge)({offset:[0,0],speed:1.2,curve:1.42,easing:m.ease},e);var i=this.transform,o=this.getZoom(),a=this.getBearing(),s=this.getPitch(),u=this.getPadding(),l=e.zoom?Object(m.clamp)(+e.zoom,i.minZoom,i.maxZoom):o,c=e.bearing?this.normalizeBearing(e.bearing,a):a,d=e.pitch?+e.pitch:s,g="padding"in e?e.padding:i.padding,v=i.zoomScale(l-o),y=p.default.convert(e.offset),b=i.centerPoint.add(y),_=i.pointLocation(b),x=f.default.convert(e.center||_);this.normalizeCenter(x);var w=i.project(_),O=i.project(x).sub(w),S=e.curve,C=Math.max(i.width,i.height),E=C/v,T=O.mag();if("minZoom"in e){var A=Object(m.clamp)(Math.min(e.minZoom,o,l),i.minZoom,i.maxZoom),M=C/i.zoomScale(A-o);S=Math.sqrt(M/T*2)}var I=S*S;function j(t){var e=(E*E-C*C+(t?-1:1)*I*I*T*T)/(2*(t?E:C)*I*T);return Math.log(Math.sqrt(e*e+1)-e)}function k(t){return(Math.exp(t)-Math.exp(-t))/2}function P(t){return(Math.exp(t)+Math.exp(-t))/2}function L(t){return k(t)/P(t)}var R=j(0),D=function(t){return P(R)/P(R+S*t)},N=function(t){return C*((P(R)*L(R+S*t)-k(R))/I)/T},B=(j(1)-R)/S;if(Math.abs(T)<1e-6||!isFinite(B)){if(Math.abs(C-E)<1e-6)return this.easeTo(e,n);var F=E<C?-1:1;B=Math.abs(Math.log(E/C))/S,N=function(){return 0},D=function(t){return Math.exp(F*S*t)}}if("duration"in e)e.duration=+e.duration;else{var z="screenSpeed"in e?+e.screenSpeed/S:+e.speed;e.duration=1e3*B/z}return e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this.zooming=!0,this.rotating=a!==c,this.pitching=d!==s,this.padding=!i.isPaddingEqual(g),this.prepareEase(n,!1),this.ease((function(e){var r=e*B,h=1/D(r);i.zoom=1===e?l:o+i.scaleZoom(h),t.rotating&&(i.bearing=Object(m.interpolate)(a,c,e)),t.pitching&&(i.pitch=Object(m.interpolate)(s,d,e)),t.padding&&(i.interpolatePadding(u,g,e),b=i.centerPoint.add(y));var f=1===e?x:i.unproject(w.add(O.mult(N(r))).mult(h));i.setLocationAtPoint(i.renderWorldCopies?f.wrap():f,b),t.fireMoveEvents(n)}),(function(){return t.afterEase(n)}),e),this}},{key:"fitScreenCoordinates",value:function(t,e,n,r,i){return this.fitInternal(this.cameraForBoxAndBearing(this.transform.pointLocation(p.default.convert(t)),this.transform.pointLocation(p.default.convert(e)),n,r),r,i)}},{key:"stop",value:function(t,e){if(this.easeFrameId&&(this.cancelRenderFrame(this.easeFrameId),delete this.easeFrameId,delete this.onEaseFrame),this.onEaseEnd){var n=this.onEaseEnd;delete this.onEaseEnd,n.call(this,e)}return this}},{key:"normalizeBearing",value:function(t,e){t=Object(m.wrap)(t,-180,180);var n=Math.abs(t-e);return Math.abs(t-360-e)<n&&(t-=360),Math.abs(t+360-e)<n&&(t+=360),t}},{key:"normalizeCenter",value:function(t){var e=this.transform;if(e.renderWorldCopies&&!e.lngRange){var n=t.lng-e.center.lng;t.lng+=n>180?-360:n<-180?360:0}}},{key:"fireMoveEvents",value:function(t){this.emit("move",new v.Event("move",t)),this.zooming&&this.emit("zoom",new v.Event("zoom",t)),this.rotating&&this.emit("rotate",new v.Event("rotate",t)),this.pitching&&this.emit("rotate",new v.Event("pitch",t))}},{key:"prepareEase",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.moving=!0,e||n.moving||this.emit("movestart",new v.Event("movestart",t)),this.zooming&&!n.zooming&&this.emit("zoomstart",new v.Event("zoomstart",t)),this.rotating&&!n.rotating&&this.emit("rotatestart",new v.Event("rotatestart",t)),this.pitching&&!n.pitching&&this.emit("pitchstart",new v.Event("pitchstart",t))}},{key:"afterEase",value:function(t,e){if(!this.easeId||!e||this.easeId!==e){delete this.easeId;var n=this.zooming,r=this.rotating,i=this.pitching;this.moving=!1,this.zooming=!1,this.rotating=!1,this.pitching=!1,this.padding=!1,n&&this.emit("zoomend",new v.Event("zoomend",t)),r&&this.emit("rotateend",new v.Event("rotateend",t)),i&&this.emit("pitchend",new v.Event("pitchend",t)),this.emit("moveend",new v.Event("moveend",t))}}},{key:"ease",value:function(t,e,n){!1===n.animate||0===n.duration?(t(1),e()):(this.easeStart=Object(m.now)(),this.easeOptions=n,this.onEaseFrame=t,this.onEaseEnd=e,this.easeFrameId=this.requestRenderFrame(this.renderFrameCallback))}},{key:"cameraForBoxAndBearing",value:function(t,e,n,r){var i={top:0,bottom:0,right:0,left:0};if("number"==typeof(r=Object(h.merge)({padding:i,offset:[0,0],maxZoom:this.transform.maxZoom},r)).padding){var o=r.padding;r.padding={top:o,bottom:o,right:o,left:o}}r.padding=Object(h.merge)(i,r.padding);var a=this.transform,s=a.padding,u=a.project(f.default.convert(t)),l=a.project(f.default.convert(e)),c=u.rotate(-n*Math.PI/180),d=l.rotate(-n*Math.PI/180),g=new p.default(Math.max(c.x,d.x),Math.max(c.y,d.y)),v=new p.default(Math.min(c.x,d.x),Math.min(c.y,d.y)),m=g.sub(v),y=(a.width-(s.left+s.right+r.padding.left+r.padding.right))/m.x,b=(a.height-(s.top+s.bottom+r.padding.top+r.padding.bottom))/m.y;if(!(b<0||y<0)){var _=Math.min(a.scaleZoom(a.scale*Math.min(y,b)),r.maxZoom),x=p.default.convert(r.offset),w=(r.padding.left-r.padding.right)/2,O=(r.padding.top-r.padding.bottom)/2,S=new p.default(x.x+w,x.y+O).mult(a.scale/a.zoomScale(_));return{center:a.unproject(u.add(l).div(2).sub(S)),zoom:_,bearing:n}}}},{key:"fitInternal",value:function(t,e,n){return t?(delete(e=Object(h.merge)(t,e)).padding,e.linear?this.easeTo(e,n):this.flyTo(e,n)):this}}]),n}(c.EventEmitter)},function(t,e,n){"use strict";n.r(e);var r=n(74),i=n(19),o=n(20),a=n(52),s=n(45),u=n(122),l=n(75),c=n(141),h=n(1859),f=n(1860),d=n(1861),p=n(90),g=n(1862),v=n(1863),m=n(1864),y=n(1865),b=n(816),_=n(1867),x=n(1868),w=n(1869),O=n(1870),S=n(1871),C=n(1872),E=n(1873),T=n(611);function A(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return M(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var I=function(t){return t.zoom||t.drag||t.pitch||t.rotate};function j(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var k=function(){function t(e,n){var o=this;Object(i.default)(this,t),Object(a.default)(this,"handleWindowEvent",(function(t){o.handleEvent(t,"".concat(t.type,"Window"))})),Object(a.default)(this,"handleEvent",(function(t,e){if("blur"!==t.type){o.updatingCamera=!0;var n,r="renderFrame"===t.type?void 0:t,i={needsRenderFrame:!1},a={},s={},u=t.touches?o.getMapTouches(t.touches):void 0,l=u?c.default.touchPos(o.el,u):c.default.mousePos(o.el,t),h=A(o.handlers);try{for(h.s();!(n=h.n()).done;){var f=n.value,d=f.handlerName,p=f.handler,g=f.allowed;if(p.isEnabled()){var v=void 0;if(o.blockedByActive(s,g,d))p.reset();else{var m=e||t.type;p&&p[m]&&(v=p[m](t,l,u),o.mergeIHandlerResult(i,a,v,d,r),v&&v.needsRenderFrame&&o.triggerRenderFrame())}(v||p.isActive())&&(s[d]=p)}}}catch(t){h.e(t)}finally{h.f()}var y={};for(var b in o.previousActiveHandlers)s[b]||(y[b]=r);o.previousActiveHandlers=s,(Object.keys(y).length||j(i))&&(o.changes.push([i,a,y]),o.triggerRenderFrame()),(Object.keys(s).length||j(i))&&o.map.stop(!0),o.updatingCamera=!1;var _=i.cameraAnimation;_&&(o.inertia.clear(),o.fireEvents({},{}),o.changes=[],_(o.map))}else o.stop()})),this.map=e,this.el=this.map.getCanvasContainer(),this.handlers=[],this.handlersById={},this.changes=[],this.inertia=new v.default(e),this.bearingSnap=n.bearingSnap,this.rotateEnabled=n.rotateEnabled,this.pitchEnabled=n.pitchEnabled,this.previousActiveHandlers={},this.eventsInProgress={},this.addDefaultHandlers(n);var u=this.el;if(this.listeners=[],s.isMini)s.$window.document.addEventListener("touchstart",(function(t){o.handleEvent(t)}),{}),s.$window.document.addEventListener("touchmove",(function(t){o.handleEvent(t)}),{}),s.$window.document.addEventListener("touchend",(function(t){o.handleEvent(t)}),{}),s.$window.document.addEventListener("touchcancel",(function(t){o.handleEvent(t)}),{});else{this.listeners=[[u,"touchstart",{passive:!1}],[u,"touchmove",{passive:!1}],[u,"touchend",void 0],[u,"touchcancel",void 0],[u,"mousedown",void 0],[u,"mousemove",void 0],[u,"mouseup",void 0],[window.document,"mousemove",{capture:!0}],[window.document,"mouseup",void 0],[u,"mouseover",void 0],[u,"mouseout",void 0],[u,"dblclick",void 0],[u,"click",void 0],[u,"keydown",{capture:!1}],[u,"keyup",void 0],[u,"wheel",{passive:!1}],[u,"contextmenu",void 0],[window,"blur",void 0]];var l,h=A(this.listeners);try{for(h.s();!(l=h.n()).done;){var f=Object(r.default)(l.value,3),d=f[0],p=f[1],g=f[2];c.default.addEventListener(d,p,d===window.document?this.handleWindowEvent:this.handleEvent,g)}}catch(t){h.e(t)}finally{h.f()}}}return Object(o.default)(t,[{key:"destroy",value:function(){var t,e=A(this.listeners);try{for(e.s();!(t=e.n()).done;){var n=Object(r.default)(t.value,3),i=n[0],o=n[1],a=n[2];c.default.removeEventListener(i,o,i===window.document?this.handleWindowEvent:this.handleEvent,a)}}catch(t){e.e(t)}finally{e.f()}}},{key:"stop",value:function(){if(!this.updatingCamera){var t,e=A(this.handlers);try{for(e.s();!(t=e.n()).done;){t.value.handler.reset()}}catch(t){e.e(t)}finally{e.f()}this.inertia.clear(),this.fireEvents({},{}),this.changes=[]}}},{key:"isActive",value:function(){var t,e=A(this.handlers);try{for(e.s();!(t=e.n()).done;){if(t.value.handler.isActive())return!0}}catch(t){e.e(t)}finally{e.f()}return!1}},{key:"isZooming",value:function(){return!!this.eventsInProgress.zoom||this.map.scrollZoom.isZooming()}},{key:"isRotating",value:function(){return!!this.eventsInProgress.rotate}},{key:"isMoving",value:function(){return Boolean(I(this.eventsInProgress))||this.isZooming()}},{key:"mergeIHandlerResult",value:function(t,e,n,r,i){if(n){Object(u.merge)(t,n);var o={handlerName:r,originalEvent:n.originalEvent||i};void 0!==n.zoomDelta&&(e.zoom=o),void 0!==n.panDelta&&(e.drag=o),void 0!==n.pitchDelta&&(e.pitch=o),void 0!==n.bearingDelta&&(e.rotate=o)}}},{key:"triggerRenderFrame",value:function(){var t=this;void 0===this.frameId&&(this.frameId=this.map.requestRenderFrame((function(e){delete t.frameId,t.handleEvent(new g.default("renderFrame",{timeStamp:e})),t.applyChanges()})))}},{key:"addDefaultHandlers",value:function(t){var e=this.map,n=e.getCanvasContainer();this.add("mapEvent",new y.default(e,t));var r=e.boxZoom=new f.default(e,t);this.add("boxZoom",r);var i=new E.default,o=new d.default;e.doubleClickZoom=new x.default(o,i),this.add("tapZoom",i),this.add("clickZoom",o);var a=new C.default;this.add("tapDragZoom",a);var s=e.touchPitch=new T.TouchPitchHandler;this.add("touchPitch",s);var u=new b.MouseRotateHandler(t),l=new b.MousePitchHandler(t);e.dragRotate=new O.default(t,u,l),this.add("mouseRotate",u,["mousePitch"]),this.add("mousePitch",l,["mouseRotate"]);var c=new b.MousePanHandler(t),p=new T.TouchPanHandler(t);e.dragPan=new w.default(n,c,p),this.add("mousePan",c),this.add("touchPan",p,["touchZoom","touchRotate"]);var g=new T.TouchRotateHandler,v=new T.TouchZoomHandler;e.touchZoomRotate=new S.default(n,v,g,a),this.add("touchRotate",g,["touchPan","touchZoom"]),this.add("touchZoom",v,["touchPan","touchRotate"]);var A=e.scrollZoom=new _.default(e,this);this.add("scrollZoom",A,["mousePan"]);var M=e.keyboard=new m.default;this.add("keyboard",M),this.add("blockableMapEvent",new h.default(e));for(var I=0,j=["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"];I<j.length;I++){var k=j[I];t.interactive&&t[k]&&e[k].enable(t[k])}}},{key:"add",value:function(t,e,n){this.handlers.push({handlerName:t,handler:e,allowed:n}),this.handlersById[t]=e}},{key:"blockedByActive",value:function(t,e,n){for(var r in t)if(r!==n&&(!e||e.indexOf(r)<0))return!0;return!1}},{key:"getMapTouches",value:function(t){var e,n=[],r=A(t);try{for(r.s();!(e=r.n()).done;){var i=e.value,o=i.target;(s.isMini||this.el.contains(o))&&n.push(i)}}catch(t){r.e(t)}finally{r.f()}return n}},{key:"applyChanges",value:function(){var t,e={},n={},i={},o=A(this.changes);try{for(o.s();!(t=o.n()).done;){var a=Object(r.default)(t.value,3),s=a[0],c=a[1],h=a[2];s.panDelta&&(e.panDelta=(e.panDelta||new l.default(0,0))._add(s.panDelta)),s.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+s.zoomDelta),s.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+s.bearingDelta),s.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+s.pitchDelta),void 0!==s.around&&(e.around=s.around),void 0!==s.pinchAround&&(e.pinchAround=s.pinchAround),s.noInertia&&(e.noInertia=s.noInertia),Object(u.merge)(n,c),Object(u.merge)(i,h)}}catch(t){o.e(t)}finally{o.f()}this.updateMapTransform(e,n,i),this.changes=[]}},{key:"updateMapTransform",value:function(t,e,n){var r=this.map,i=r.transform;if(!j(t))return this.fireEvents(e,n);var o=t.panDelta,a=t.zoomDelta,s=t.bearingDelta,u=t.pitchDelta,l=t.pinchAround,c=t.around;void 0!==l&&(c=l),r.stop(!0),c=c||r.transform.centerPoint;var h=i.pointLocation(o?c.sub(o):c);s&&this.rotateEnabled&&(i.bearing+=s),u&&this.pitchEnabled&&(i.pitch+=u),a&&(i.zoom+=a),i.setLocationAtPoint(h,c),this.map.update(),t.noInertia||this.inertia.record(t),this.fireEvents(e,n)}},{key:"fireEvents",value:function(t,e){var n=this,r=I(this.eventsInProgress),i=I(t),o={};for(var a in t)if(t[a]){var s=t[a].originalEvent;this.eventsInProgress[a]||(o["".concat(a,"start")]=s),this.eventsInProgress[a]=t[a]}for(var u in!r&&i&&this.fireEvent("movestart",i.originalEvent),o)o[u]&&this.fireEvent(u,o[u]);for(var l in t.rotate&&(this.bearingChanged=!0),i&&this.fireEvent("move",i.originalEvent),t)if(t[l]){var c=t[l].originalEvent;this.fireEvent(l,c)}var h,f={};for(var d in this.eventsInProgress)if(this.eventsInProgress[d]){var g=this.eventsInProgress[d],v=g.handlerName,m=g.originalEvent;this.handlersById[v].isActive()||(delete this.eventsInProgress[d],h=e[v]||m,f["".concat(d,"end")]=h)}for(var y in f)f[y]&&this.fireEvent(y,f[y]);var b=I(this.eventsInProgress);if((r||i)&&!b){this.updatingCamera=!0;var _=this.inertia.onMoveEnd(this.map.dragPan.inertiaOptions),x=function(t){return 0!==t&&-n.bearingSnap<t&&t<n.bearingSnap};_?(x(_.bearing||this.map.getBearing())&&(_.bearing=0),this.map.easeTo(_,{originalEvent:h})):(this.map.emit("moveend",new p.Event("moveend",{originalEvent:h})),x(this.map.getBearing())&&this.map.resetNorth()),this.bearingChanged=!1,this.updatingCamera=!1}}},{key:"fireEvent",value:function(t,e){this.map.emit(t,new p.Event(t,e?{originalEvent:e}:{}))}}]),t}();e.default=k},function(t,e,n){"use strict";n.r(e);var r=n(19),i=n(20);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var s=function(){function t(){Object(r.default)(this,t),this.queue=[],this.id=0,this.cleared=!1,this.currentlyRunning=!1}return Object(i.default)(t,[{key:"add",value:function(t){var e=++this.id;return this.queue.push({callback:t,id:e,cancelled:!1}),e}},{key:"remove",value:function(t){var e,n=this.currentlyRunning,r=o(n?this.queue.concat(n):this.queue);try{for(r.s();!(e=r.n()).done;){var i=e.value;if(i.id===t)return void(i.cancelled=!0)}}catch(t){r.e(t)}finally{r.f()}}},{key:"run",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this.currentlyRunning=this.queue;this.queue=[];var n,r=o(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!i.cancelled&&(i.callback(t),this.cleared))break}}catch(t){r.e(t)}finally{r.f()}this.cleared=!1,this.currentlyRunning=!1}},{key:"clear",value:function(){this.currentlyRunning&&(this.cleared=!0),this.queue=[]}}]),t}();e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(73),i=n(55);e.default=function(t,e,n,o,a){var s=t.type,u=[];if(t.required||!t.required&&o.hasOwnProperty(t.field)){if(Object(i.isEmptyValue)(e,s)&&!t.required)return n();r.default.required(t,e,o,u,a,s),Object(i.isEmptyValue)(e,s)||r.default.type(t,e,o,u,a)}n(u)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTime",(function(){return s}));var r=n(66),i=n(142),o=n(569),a=n(393);function s(){return(new Date).getTime()}var u=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return Object(r.__extends)(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=s()-this._pausedTime,n=e-this._time,r=this._head;r;){var i=r.next;r.step(e,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,Object(o.default)((function e(){t._running&&(Object(o.default)(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=s(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=s(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=s()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new a.default(t,e.loop);return this.addAnimator(n),n},e}(i.default);e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"seriesStyleTask",(function(){return p})),n.d(e,"dataStyleTask",(function(){return v})),n.d(e,"dataColorPaletteTask",(function(){return m}));var r=n(0),i=n(242),o=n(696),a=n(695),s=n(64),u=n(9),l=Object(u.makeInner)(),c={itemStyle:Object(i.default)(o.ITEM_STYLE_KEY_MAP,!0),lineStyle:Object(i.default)(a.LINE_STYLE_KEY_MAP,!0)},h={lineStyle:"stroke",itemStyle:"fill"};function f(t,e){var n=t.visualStyleMapper||c[e];return n||(console.warn("Unkown style type '"+e+"'."),c.itemStyle)}function d(t,e){var n=t.visualDrawType||h[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}var p={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=t.getModel(i),a=f(t,i)(o),s=o.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var u=d(t,i),l=a[u],c=Object(r.isFunction)(l)?l:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[u]||c||h){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[u]||(a[u]=p,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(r.isFunction)(a.fill)?p:a.fill,a.stroke="auto"===a.stroke||Object(r.isFunction)(a.stroke)?p:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",u),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),o=Object(r.extend)({},a);o[u]=c(i),e.setItemVisual(n,"style",o)}}}},g=new s.default,v={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=f(t,i),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){g.option=n[i];var s=o(g),u=t.ensureUniqueItemVisual(e,"style");Object(r.extend)(u,s),g.option.decal&&(t.setItemVisual(e,"decal",g.option.decal),g.option.decal.dirty=!0),a in s&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},m={performRawSeries:!0,overallReset:function(t){var e=Object(r.createHashMap)();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),l(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=l(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=d(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t];if(i.getItemVisual(a,"colorFromPalette")){var u=i.ensureUniqueItemVisual(a,"style"),l=n.getName(t)||t+"",c=n.count();u[s]=e.getColorFromPalette(l,o,c)}}))}}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"createAxisLabels",(function(){return u})),n.d(e,"createAxisTicks",(function(){return l})),n.d(e,"calculateCategoryInterval",(function(){return p}));var r=n(0),i=n(60),o=n(9),a=n(85),s=Object(o.makeInner)();function u(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=c(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=Object(a.makeLabelFormatter)(t);return{labels:r.map(e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function l(t,e){return"category"===t.type?function(t,e){var n,i,o=h(t,"ticks"),s=Object(a.getOptionCategoryInterval)(e),u=f(o,s);if(u)return u;e.get("show")&&!t.scale.isBlank()||(n=[]);if(r.isFunction(s))n=v(t,s,!0);else if("auto"===s){var l=c(t,t.getLabelModel());i=l.labelCategoryInterval,n=r.map(l.labels,(function(t){return t.tickValue}))}else n=g(t,i=s,!0);return d(o,s,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:r.map(t.scale.getTicks(),(function(t){return t.value}))}}function c(t,e){var n,i,o=h(t,"labels"),u=Object(a.getOptionCategoryInterval)(e),l=f(o,u);return l||(r.isFunction(u)?n=v(t,u):(i="auto"===u?function(t){var e=s(t).autoInterval;return null!=e?e:s(t).autoInterval=t.calculateCategoryInterval()}(t):u,n=g(t,i)),d(o,u,{labels:n,labelCategoryInterval:i}))}function h(t,e){return s(t)[e]||(s(t)[e]=[])}function f(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function d(t,e,n){return t.push({key:e,value:n}),n}function p(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=Object(a.makeLabelFormatter)(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,o=t.scale,u=o.getExtent(),l=o.count();if(u[1]-u[0]<1)return 0;var c=1;l>40&&(c=Math.max(1,Math.floor(l/40)));for(var h=u[0],f=t.dataToCoord(h+1)-t.dataToCoord(h),d=Math.abs(f*Math.cos(r)),p=Math.abs(f*Math.sin(r)),g=0,v=0;h<=u[1];h+=c){var m,y,b=i.getBoundingRect(n({value:h}),e.font,"center","top");m=1.3*b.width,y=1.3*b.height,g=Math.max(g,m,7),v=Math.max(v,y,7)}var _=g/d,x=v/p;isNaN(_)&&(_=1/0),isNaN(x)&&(x=1/0);var w=Math.max(0,Math.floor(Math.min(_,x))),O=s(t.model),S=t.getExtent(),C=O.lastAutoInterval,E=O.lastTickCount;return null!=C&&null!=E&&Math.abs(C-w)<=1&&Math.abs(E-l)<=1&&C>w&&O.axisExtent0===S[0]&&O.axisExtent1===S[1]?w=C:(O.lastTickCount=l,O.lastAutoInterval=w,O.axisExtent0=S[0],O.axisExtent1=S[1]),w}function g(t,e,n){var r=Object(a.makeLabelFormatter)(t),i=t.scale,o=i.getExtent(),s=t.getLabelModel(),u=[],l=Math.max((e||0)+1,1),c=o[0],h=i.count();0!==c&&l>1&&h/l>2&&(c=Math.round(Math.ceil(c/l)*l));var f=Object(a.shouldShowAllLabels)(t),d=s.get("showMinLabel")||f,p=s.get("showMaxLabel")||f;d&&c!==o[0]&&v(o[0]);for(var g=c;g<=o[1];g+=l)v(g);function v(t){var e={value:t};u.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return p&&g-l!==o[1]&&v(o[1]),u}function v(t,e,n){var i=t.scale,o=Object(a.makeLabelFormatter)(t),s=[];return r.each(i.getTicks(),(function(t){var r=i.getLabel(t),a=t.value;e(t.value,r)&&s.push(n?a:{formattedLabel:o(t),rawLabel:r,tickValue:a})})),s}},function(t,e,n){"use strict";n.r(e);var r=n(66),i=n(0),o=n(166),a=n(142),s=n(231),u=n(269),l=n(35),c=n(108),h=n(107);function f(t,e,n){var r=h.platformApi.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}var d=function(t){function e(e,n,r){var a,s=t.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,r=r||o.devicePixelRatio,"string"==typeof e?a=f(e,n,r):i.isObject(e)&&(e=(a=e).id),s.id=e,s.dom=a;var u=a.style;return u&&(i.disableUserSelect(a),a.onselectstart=function(){return!1},u.padding="0",u.margin="0",u.borderWidth="0"),s.painter=n,s.dpr=r,s}return Object(r.__extends)(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=f("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,u=new l.default(0,0,0,0);function h(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new l.default(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,r=1/0,i=0,c=0;c<o.length;++c){var h=o[c];if(h.intersect(t)){var f=new l.default(0,0,0,0);f.copy(h),f.union(t),o[c]=f,n=!0;break}if(s){u.copy(t),u.union(h);var d=t.width*t.height,p=h.width*h.height,g=u.width*u.height-d-p;g<r&&(r=g,i=c)}}if(s&&(o[i].union(t),n=!0),!n)(e=new l.default(0,0,0,0)).copy(t),o.push(e);s||(s=o.length>=a)}}for(var f=this.__startIndex;f<this.__endIndex;++f){if(g=t[f]){var d=g.shouldBePainted(n,r,!0,!0);(v=g.__isRendered&&(g.__dirty&c.REDRAW_BIT||!d)?g.getPrevPaintRect():null)&&h(v);var p=d&&(g.__dirty&c.REDRAW_BIT||!g.__isRendered)?g.getPaintRect():null;p&&h(p)}}for(f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var g,v;d=(g=e[f]).shouldBePainted(n,r,!0,!0);if(g&&(!d||!g.__zr)&&g.__isRendered)(v=g.getPrevPaintRect())&&h(v)}do{i=!1;for(f=0;f<o.length;)if(o[f].isZero())o.splice(f,1);else{for(var m=f+1;m<o.length;)o[f].intersect(o[m])?(i=!0,o[f].union(o[m]),o.splice(m,1)):m++;f++}}while(i);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var r=this.dom,o=this.ctx,a=r.width,l=r.height;e=e||this.clearColor;var c=this.motionBlur&&!t,h=this.lastFrameAlpha,f=this.dpr,d=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/f,l/f));var p=this.domBack;function g(t,n,r,a){if(o.clearRect(t,n,r,a),e&&"transparent"!==e){var l=void 0;i.isGradientObject(e)?(l=e.__canvasGradient||Object(s.getCanvasGradient)(o,e,{x:0,y:0,width:r,height:a}),e.__canvasGradient=l):i.isImagePatternObject(e)&&(e.scaleX=e.scaleX||f,e.scaleY=e.scaleY||f,l=Object(u.createCanvasPattern)(o,e,{dirty:function(){d.setUnpainted(),d.__painter.refresh()}})),o.save(),o.fillStyle=l||e,o.fillRect(t,n,r,a),o.restore()}c&&(o.save(),o.globalAlpha=h,o.drawImage(p,t,n,r,a),o.restore())}!n||c?g(0,0,a,l):n.length&&i.each(n,(function(t){g(t.x*f,t.y*f,t.width*f,t.height*f)}))},e}(a.default);e.default=d},function(t,e,n){"use strict";n.r(e),n.d(e,"brushSVGPath",(function(){return T})),n.d(e,"brushSVGImage",(function(){return A})),n.d(e,"brushSVGTSpan",(function(){return M})),n.d(e,"brush",(function(){return I})),n.d(e,"setClipPath",(function(){return j}));var r=n(84),i=n(36),o=n(114),a=n(60),s=n(354),u=n(707),l=n(1361),c=n(99),h=n(0),f=n(335),d=n(799),p=n(72),g=n(107),v=Math.round;function m(t){return t&&Object(h.isString)(t.src)}function y(t){return t&&Object(h.isFunction)(t.toDataURL)}function b(t,e,n,i){Object(l.default)((function(o,a){var s="fill"===o||"stroke"===o;s&&Object(r.isGradient)(a)?function(t,e,n,i){var o,a=t[n],s={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(r.isLinearGradient)(a))o="linearGradient",s.x1=a.x,s.y1=a.y,s.x2=a.x2,s.y2=a.y2;else{if(!Object(r.isRadialGradient)(a))return void 0;o="radialGradient",s.cx=Object(h.retrieve2)(a.x,.5),s.cy=Object(h.retrieve2)(a.y,.5),s.r=Object(h.retrieve2)(a.r,.5)}for(var u=a.colorStops,l=[],f=0,d=u.length;f<d;++f){var p=100*Object(r.round4)(u[f].offset)+"%",g=u[f].color,v=Object(r.normalizeColor)(g),m=v.color,y=v.opacity,b={offset:p};b["stop-color"]=m,y<1&&(b["stop-opacity"]=y),l.push(Object(c.createVNode)("stop",f+"",b))}var _=Object(c.createVNode)(o,"",s,l),x=Object(c.vNodeToString)(_),w=i.gradientCache,O=w[x];O||(O=i.zrId+"-g"+i.gradientIdx++,w[x]=O,s.id=O,i.defs[O]=Object(c.createVNode)(o,O,s,l));e[n]=Object(r.getIdURL)(O)}(e,t,o,i):s&&Object(r.isPattern)(a)?function(t,e,n,i){var o,a=t.style[n],s={patternUnits:"userSpaceOnUse"};if(Object(r.isImagePattern)(a)){var u=a.imageWidth,l=a.imageHeight,d=void 0,p=a.image;if(Object(h.isString)(p)?d=p:m(p)?d=p.src:y(p)&&(d=p.toDataURL()),"undefined"==typeof Image){var g="Image width/height must been given explictly in svg-ssr renderer.";Object(h.assert)(u,g),Object(h.assert)(l,g)}else if(null==u||null==l){var v=function(t,e){if(t){var n=t.elm,r=t.attrs.width=u||e.width,i=t.attrs.height=l||e.height;n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},b=Object(f.createOrUpdateImage)(d,null,t,(function(t){v(_,t),v(o,t)}));b&&b.width&&b.height&&(u=u||b.width,l=l||b.height)}o=Object(c.createVNode)("image","img",{href:d,width:u,height:l}),s.width=u,s.height=l}else a.svgElement&&(o=Object(h.clone)(a.svgElement),s.width=a.svgWidth,s.height=a.svgHeight);if(!o)return;s.patternTransform=Object(r.getSRTTransformString)(a);var _=Object(c.createVNode)("pattern","",s,[o]),x=Object(c.vNodeToString)(_),w=i.patternCache,O=w[x];O||(O=i.zrId+"-p"+i.patternIdx++,w[x]=O,s.id=O,_=i.defs[O]=Object(c.createVNode)("pattern",O,s,[o]));e[n]=Object(r.getIdURL)(O)}(n,t,o,i):t[o]=a}),e,n,!1),function(t,e,n){var i=t.style;if(Object(r.hasShadow)(i)){var o=Object(r.getShadowKey)(t),a=n.shadowCache,s=a[o];if(!s){var u=t.getGlobalScale(),l=u[0],h=u[1];if(!l||!h)return;var f=i.shadowOffsetX||0,d=i.shadowOffsetY||0,p=i.shadowBlur,g=Object(r.normalizeColor)(i.shadowColor),v=g.opacity,m=g.color,y=p/2/l+" "+p/2/h;s=n.zrId+"-s"+n.shadowIdx++,n.defs[s]=Object(c.createVNode)("filter",s,{id:s,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Object(c.createVNode)("feDropShadow","",{dx:f/l,dy:d/h,stdDeviation:y,"flood-color":m,"flood-opacity":v})]),a[o]=s}e.filter=Object(r.getIdURL)(s)}}(n,t,i)}function _(t){return Object(r.isAroundZero)(t[0]-1)&&Object(r.isAroundZero)(t[1])&&Object(r.isAroundZero)(t[2])&&Object(r.isAroundZero)(t[3]-1)}function x(t,e,n){if(e&&(!function(t){return Object(r.isAroundZero)(t[4])&&Object(r.isAroundZero)(t[5])}(e)||!_(e))){var i=n?10:1e4;t.transform=_(e)?"translate("+v(e[4]*i)/i+" "+v(e[5]*i)/i+")":Object(r.getMatrixStr)(e)}}function w(t,e,n){for(var r=t.points,i=[],o=0;o<r.length;o++)i.push(v(r[o][0]*n)/n),i.push(v(r[o][1]*n)/n);e.points=i.join(" ")}function O(t){return!t.smooth}var S,C,E={circle:[(S=["cx","cy","r"],C=Object(h.map)(S,(function(t){return"string"==typeof t?[t,t]:t})),function(t,e,n){for(var r=0;r<C.length;r++){var i=C[r],o=t[i[0]];null!=o&&(e[i[1]]=v(o*n)/n)}})],polyline:[w,O],polygon:[w,O]};function T(t,e){var n=t.style,i=t.shape,o=E[t.type],a={},s=e.animation,l="path",h=t.style.strokePercent,f=e.compress&&Object(r.getPathPrecision)(t)||4;if(!o||e.willUpdate||o[1]&&!o[1](i)||s&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}(t)||h<1){t.path||t.createPathProxy();var p=t.path;t.shapeChanged()&&(p.beginPath(),t.buildPath(p,t.shape),t.pathUpdated());var g=p.getVersion(),v=t,m=v.__svgPathBuilder;v.__svgPathVersion===g&&m&&h===v.__svgPathStrokePercent||(m||(m=v.__svgPathBuilder=new u.default),m.reset(f),p.rebuildPath(m,h),m.generateStr(),v.__svgPathVersion=g,v.__svgPathStrokePercent=h),a.d=m.getStr()}else{l=t.type;var y=Math.pow(10,f);o[0](i,a,y)}return x(a,t.transform),b(a,n,t,e),e.animation&&Object(d.createCSSAnimation)(t,a,e),Object(c.createVNode)(l,t.id+"",a)}function A(t,e){var n=t.style,r=n.image;if(r&&!Object(h.isString)(r)&&(m(r)?r=r.src:y(r)&&(r=r.toDataURL())),r){var i=n.x||0,o=n.y||0,a={href:r,width:n.width,height:n.height};return i&&(a.x=i),o&&(a.y=o),x(a,t.transform),b(a,n,t,e),e.animation&&Object(d.createCSSAnimation)(t,a,e),Object(c.createVNode)("image",t.id+"",a)}}function M(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var o=n.font||g.DEFAULT_FONT,s=n.x||0,u=Object(r.adjustTextY)(n.y||0,Object(a.getLineHeight)(o),n.textBaseline),l={"dominant-baseline":"central","text-anchor":r.TEXT_ALIGN_TO_ANCHOR[n.textAlign]||n.textAlign};if(Object(p.hasSeparateFont)(n)){var h="",f=n.fontStyle,v=Object(p.parseFontSize)(n.fontSize);if(!parseFloat(v))return;var m=n.fontFamily||g.DEFAULT_FONT_FAMILY,y=n.fontWeight;h+="font-size:"+v+";font-family:"+m+";",f&&"normal"!==f&&(h+="font-style:"+f+";"),y&&"normal"!==y&&(h+="font-weight:"+y+";"),l.style=h}else l.style="font: "+o;return i.match(/\s/)&&(l["xml:space"]="preserve"),s&&(l.x=s),u&&(l.y=u),x(l,t.transform),b(l,n,t,e),e.animation&&Object(d.createCSSAnimation)(t,l,e),Object(c.createVNode)("text",t.id+"",l,void 0,i)}}function I(t,e){return t instanceof i.default?T(t,e):t instanceof o.default?A(t,e):t instanceof s.default?M(t,e):void 0}function j(t,e,n){var i=n.clipPathCache,o=n.defs,a=i[t.id];if(!a){var s={id:a=n.zrId+"-c"+n.clipPathIdx++};i[t.id]=a,o[a]=Object(c.createVNode)("clipPath",a,s,[T(t,n)])}e["clip-path"]=Object(r.getIdURL)(a)}},function(t,e,n){"use strict";n.r(e),n.d(e,"EASING_MAP",(function(){return h})),n.d(e,"ANIMATE_STYLE_MAP",(function(){return p})),n.d(e,"createCSSAnimation",(function(){return m}));var r=n(129),i=n(99),o=n(707),a=n(151),s=n(84),u=n(0),l=n(459),c=n(473),h={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"};function f(t,e,n){var r=Object(u.extend)({},t.shape);Object(u.extend)(r,e),t.buildPath(n,r);var i=new o.default;return i.reset(Object(s.getPathPrecision)(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function d(t,e){var n=e.originX,r=e.originY;(n||r)&&(t["transform-origin"]=n+"px "+r+"px")}var p={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function g(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function v(t){return Object(u.isString)(t)?h[t]?"cubic-bezier("+h[t]+")":Object(c.createCubicEasingFunc)(t)?t:"":""}function m(t,e,n,o){var c=t.animators,h=c.length,y=[];if(t instanceof l.default){if(A=function(t,e,n){var r,o,a=t.shape.paths,s={};if(Object(u.each)(a,(function(t){var e=Object(i.createBrushScope)(n.zrId);e.animation=!0,m(t,{},e,!0);var a=e.cssAnims,l=e.cssNodes,c=Object(u.keys)(a),h=c.length;if(h){var f=a[o=c[h-1]];for(var d in f){var p=f[d];s[d]=s[d]||{d:""},s[d].d+=p.d||""}for(var g in l){var v=l[g].animation;v.indexOf(o)>=0&&(r=v)}}})),r){e.d=!1;var l=g(s,n);return r.replace(o,l)}}(t,e,n))y.push(A);else if(!h)return}else if(!h)return;for(var b={},_=0;_<h;_++){var x=c[_],w=[x.getMaxTime()/1e3+"s"],O=v(x.getClip().easing),S=x.getDelay();O?w.push(O):w.push("linear"),S&&w.push(S/1e3+"s"),x.getLoop()&&w.push("infinite");var C=w.join(" ");b[C]=b[C]||[C,[]],b[C][1].push(x)}function E(i){var l,c=i[1],h=c.length,m={},y={},b={};function _(t,e,n){for(var r=t.getTracks(),i=t.getMaxTime(),o=0;o<r.length;o++){var a=r[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var c=0;c<s.length;c++){var h=s[c],f=Math.round(h.time/i*100)+"%",d=v(h.easing),p=h.rawValue;(Object(u.isString)(p)||Object(u.isNumber)(p))&&(e[f]=e[f]||{},e[f][l]=h.rawValue,d&&(e[f]["animation-timing-function"]=d))}}}}for(var x=0;x<h;x++){(j=(I=c[x]).targetName)?"shape"===j&&_(I,y):!o&&_(I,m)}for(var w in m){var O={};Object(r.copyTransform)(O,t),Object(u.extend)(O,m[w]);var S=Object(s.getSRTTransformString)(O),C=m[w]["animation-timing-function"];b[w]=S?{transform:S}:{},d(b[w],O),C&&(b[w]["animation-timing-function"]=C)}var E=!0;for(var w in y){b[w]=b[w]||{};var T=!l;C=y[w]["animation-timing-function"];T&&(l=new a.default);var A=l.len();l.reset(),b[w].d=f(t,y[w],l);var M=l.len();if(!T&&A!==M){E=!1;break}C&&(b[w]["animation-timing-function"]=C)}if(!E)for(var w in b)delete b[w].d;if(!o)for(x=0;x<h;x++){var I,j;"style"===(j=(I=c[x]).targetName)&&_(I,b,(function(t){return p[t]}))}var k,P=Object(u.keys)(b),L=!0;for(x=1;x<P.length;x++){var R=P[x-1],D=P[x];if(b[R]["transform-origin"]!==b[D]["transform-origin"]){L=!1;break}k=b[R]["transform-origin"]}if(L&&k){for(var w in b)b[w]["transform-origin"]&&delete b[w]["transform-origin"];e["transform-origin"]=k}if(Object(u.filter)(P,(function(t){return Object(u.keys)(b[t]).length>0})).length)return g(b,n)+" "+i[0]+" both"}for(var T in b){var A;(A=E(b[T]))&&y.push(A)}if(y.length){var M=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+M]={animation:y.join(",")},e.class=M}}},function(t,e,n){"use strict";n.r(e),n.d(e,"cartesian2DDimensions",(function(){return u}));var r=n(5),i=n(35),o=n(1373),a=n(42),s=n(18),u=["x","y"];function l(t){return"interval"===t.type||"time"===t.type}var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=u,e}return Object(r.__extends)(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(l(t)&&l(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),s=n[1]-n[0],u=r[1]-r[0];if(s&&u){var c=(o[0]-i[0])/s,h=(o[1]-i[1])/u,f=i[0]-n[0]*c,d=i[1]-r[0]*h,p=this._transform=[c,0,0,h,f,d];this._invTransform=Object(a.invert)([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),r=this.dataToPoint(e),o=this.getArea(),a=new i.default(n[0],n[1],r[0]-n[0],r[1]-n[1]);return o.intersect(a)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Object(s.applyTransform)(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Object(s.applyTransform)(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),r=Math.min(e[0],e[1]),o=Math.max(t[0],t[1])-n,a=Math.max(e[0],e[1])-r;return new i.default(n,r,o,a)},e}(o.default);e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"geo2DDimensions",(function(){return c}));var r=n(5),i=n(0),o=n(35),a=n(359),s=n(210),u=n(9),l={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},c=["lng","lat"],h=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.dimensions=c,o.type="geo",o._nameCoordMap=i.createHashMap(),o.map=n;var a,u=r.projection,h=s.default.load(n,r.nameMap,r.nameProperty),f=s.default.getGeoResource(n),d=(o.resourceType=f?f.type:null,o.regions=h.regions),p=l[f.type];if(o._regionsMap=h.regionsMap,o.regions=h.regions,o.projection=u,u)for(var g=0;g<d.length;g++){var v=d[g].getBoundingRect(u);(a=a||v.clone()).union(v)}else a=h.boundingRect;return o.setBoundingRect(a.x,a.y,a.width,a.height),o.aspectScale=u?1:i.retrieve2(r.aspectScale,p.aspectScale),o._invertLongitute=!u&&p.invertLongitute,o}return Object(r.__extends)(e,t),e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),a=this._invertLongitute;i=i.clone(),a&&(i.y=-i.y-i.height);var s=this._rawTransformable;s.transform=i.calculateTransform(new o.default(t,e,n,r));var u=s.parent;s.parent=null,s.decomposeTransform(),s.parent=u,a&&(s.scaleY=-s.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var r=e[n];if("geoJSON"===r.type&&r.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(i.isString(t)&&(t=this.getGeoCoord(t)),t){var r=this.projection;return r&&(t=r.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,r){return t.prototype.dataToPoint.call(this,e,n,r)},e.prototype.convertToPixel=function(t,e,n){var r=f(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=f(e);return r===this?r.pointToData(n):null},e}(a.default);function f(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",u.SINGLE_REFERRING).models[0]||{}).coordinateSystem:null}i.mixin(h,a.default),e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return d}));var r=n(53),i=n(18),o=n(254),a=[],s=[],u=[],l=r.quadraticAt,c=i.distSquare,h=Math.abs;function f(t,e,n){for(var r,i=t[0],o=t[1],f=t[2],d=1/0,p=n*n,g=.1,v=.1;v<=.9;v+=.1){a[0]=l(i[0],o[0],f[0],v),a[1]=l(i[1],o[1],f[1],v),(b=h(c(a,e)-p))<d&&(d=b,r=v)}for(var m=0;m<32;m++){var y=r+g;s[0]=l(i[0],o[0],f[0],r),s[1]=l(i[1],o[1],f[1],r),u[0]=l(i[0],o[0],f[0],y),u[1]=l(i[1],o[1],f[1],y);var b=c(s,e)-p;if(h(b)<.01)break;var _=c(u,e)-p;g/=2,b<0?_>=0?r+=g:r-=g:_>=0?r-=g:r+=g}return r}function d(t,e){var n=[],a=r.quadraticSubdivide,s=[[],[],[]],u=[[],[]],l=[];e/=2,t.eachEdge((function(t,r){var c=t.getLayout(),h=t.getVisual("fromSymbol"),d=t.getVisual("toSymbol");c.__original||(c.__original=[i.clone(c[0]),i.clone(c[1])],c[2]&&c.__original.push(i.clone(c[2])));var p=c.__original;if(null!=c[2]){if(i.copy(s[0],p[0]),i.copy(s[1],p[2]),i.copy(s[2],p[1]),h&&"none"!==h){var g=Object(o.getSymbolSize)(t.node1),v=f(s,p[0],g*e);a(s[0][0],s[1][0],s[2][0],v,n),s[0][0]=n[3],s[1][0]=n[4],a(s[0][1],s[1][1],s[2][1],v,n),s[0][1]=n[3],s[1][1]=n[4]}if(d&&"none"!==d){g=Object(o.getSymbolSize)(t.node2),v=f(s,p[1],g*e);a(s[0][0],s[1][0],s[2][0],v,n),s[1][0]=n[1],s[2][0]=n[2],a(s[0][1],s[1][1],s[2][1],v,n),s[1][1]=n[1],s[2][1]=n[2]}i.copy(c[0],s[0]),i.copy(c[1],s[2]),i.copy(c[2],s[1])}else{if(i.copy(u[0],p[0]),i.copy(u[1],p[1]),i.sub(l,u[1],u[0]),i.normalize(l,l),h&&"none"!==h){g=Object(o.getSymbolSize)(t.node1);i.scaleAndAdd(u[0],u[0],l,g*e)}if(d&&"none"!==d){g=Object(o.getSymbolSize)(t.node2);i.scaleAndAdd(u[1],u[1],l,-g*e)}i.copy(c[0],u[0]),i.copy(c[1],u[1])}}))}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(41),o=n(264),a=n(0),s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(i.default);Object(a.mixin)(s,o.AxisModelCommonMixin.prototype),e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"BACKGROUND_STYLE",(function(){return r})),n.d(e,"LINE_STYLE",(function(){return i})),n.d(e,"AREA_STYLE",(function(){return o}));var r={opacity:0},i={stroke:"#C5C5C5",strokeOpacity:.85},o={fill:"#CACED4",opacity:.85}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_HANDLER_STYLE",(function(){return o})),n.d(e,"Handler",(function(){return a}));var r=n(2),i=n(96),o={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"handler",x:0,y:0,width:10,height:24,style:o})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,o=i.fill,a=i.stroke,s=i.radius,u=i.opacity,l=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:o,stroke:a,radius:s,opacity:u,cursor:l}});var c=1/3*n,h=2/3*n,f=1/4*r,d=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:c,y1:f,x2:c,y2:d,stroke:a,cursor:l}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:h,y1:f,x2:h,y2:d,stroke:a,cursor:l}})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"growInX",(function(){return i})),n.d(e,"growInY",(function(){return o})),n.d(e,"growInXY",(function(){return a}));var r=n(807);function i(t,e,n){var i=n.coordinate,o=n.minYPoint;Object(r.doScaleAnimate)(t,e,i,o,"x")}function o(t,e,n){var i=n.coordinate,o=n.minYPoint;Object(r.doScaleAnimate)(t,e,i,o,"y")}function a(t,e,n){var i=n.coordinate,o=n.minYPoint;Object(r.doScaleAnimate)(t,e,i,o,"xy")}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformShape",(function(){return o})),n.d(e,"doScaleAnimate",(function(){return a}));var r=n(2),i=n(25);function o(t,e,n){var o,a=Object(r.__read)(e,2),s=a[0],u=a[1];return t.applyToMatrix([s,u,1]),"x"===n?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",.01,1],["t",s,u]])),o=i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",100,1],["t",s,u]])):"y"===n?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",1,.01],["t",s,u]])),o=i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",1,100],["t",s,u]])):"xy"===n&&(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",.01,.01],["t",s,u]])),o=i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",100,100],["t",s,u]])),o}function a(t,e,n,r,i){var a,s,u=n.start,l=n.end,c=n.getWidth(),h=n.getHeight();"y"===i?(a=u.x+c/2,s=r.y<u.y?r.y:u.y):"x"===i?(a=r.x>u.x?r.x:u.x,s=u.y+h/2):"xy"===i&&(n.isPolar?(a=n.getCenter().x,s=n.getCenter().y):(a=(u.x+l.x)/2,s=(u.y+l.y)/2));var f=o(t,[a,s],i);t.animate({matrix:f},e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getMedian",(function(){return o})),n.d(e,"getMean",(function(){return a}));var r=n(2),i=n(1);function o(t){var e=Object(r.__spreadArray)([],Object(r.__read)(t),!1);e.sort((function(t,e){return t-e}));var n=e.length;return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2}function a(t){var e=Object(i.reduce)(t,(function(t,e){return t+(isNaN(e)||!Object(i.isNumber)(e)?0:e)}),0);return 0===t.length?0:e/t.length}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(1677),a=n(222),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return Object(r.__extends)(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var r=t.getItems();if(n)Object(i.each)(r,(function(n){e(n)?(t.hasState(n,"inactive")&&t.setItemState(n,"inactive",!1),t.setItemState(n,"active",!0)):t.hasState(n,"active")||t.setItemState(n,"inactive",!0)}));else{var o=t.getItemsByState("active"),a=!0;Object(i.each)(o,(function(t){if(!e(t))return a=!1,!1})),a?this.clear():Object(i.each)(r,(function(n){e(n)&&(t.hasState(n,"active")&&t.setItemState(n,"active",!1),t.setItemState(n,"inactive",!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)Object(o.clearList)(t.list);else{var e=this.getAllowComponents();Object(i.each)(e,(function(t){t.clearItemsState("active"),t.clearItemsState("inactive")}))}},e}(a.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(433),a=n(24),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.filterView=function(t,e,n){var r=Object(a.getSilbings)(t);Object(i.each)(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=Object(a.getSilbings)(t);Object(i.each)(e,(function(t){t.render(!0)}))},e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"getQuadrantDefaultConfig",(function(){return u})),n.d(e,"getPath",(function(){return l})),n.d(e,"getMeta",(function(){return c}));var r=n(2),i=n(408),o=n(1),a=n(3),s={exp:i.regressionExp,linear:i.regressionLinear,loess:i.regressionLoess,log:i.regressionLog,poly:i.regressionPoly,pow:i.regressionPow,quad:i.regressionQuad};function u(t,e){return{regionStyle:[{position:{start:[t,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[t,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[t,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[t,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-10,offsetY:-10,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:-10,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:10,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-10,offsetY:10,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]}}var l=function(t){var e,n=t.options,r=n.xField,i=n.yField,u=n.data,l=n.regressionLine,c=l.type,h=void 0===c?"linear":c,f=l.algorithm;f?e=Object(o.isArray)(f)?f:f(u):e=s[h]().x((function(t){return t[r]})).y((function(t){return t[i]}))(u);return function(t,e){var n=e.view,r=e.options,i=r.xField,o=r.yField,s=n.getScaleByField(i),u=n.getScaleByField(o),l=t.map((function(t){return n.getCoordinate().convert({x:s.scale(t[0]),y:u.scale(t[1])})}));return Object(a.getSplinePath)(l,!1)}(e,t)},c=function(t){var e,n=t.meta,i=void 0===n?{}:n,a=t.xField,s=t.yField,u=t.data,l=u[0][a],c=u[0][s],h=l>0,f=c>0;function d(t,e){var n=Object(o.get)(i,[t]);function r(t){return Object(o.get)(n,t)}var a={};return"x"===e?(Object(o.isNumber)(l)&&(Object(o.isNumber)(r("min"))||(a.min=h?0:2*l),Object(o.isNumber)(r("max"))||(a.max=h?2*l:0)),a):(Object(o.isNumber)(c)&&(Object(o.isNumber)(r("min"))||(a.min=f?0:2*c),Object(o.isNumber)(r("max"))||(a.max=f?2*c:0)),a)}return Object(r.__assign)(Object(r.__assign)({},i),((e={})[a]=Object(r.__assign)(Object(r.__assign)({},i[a]),d(a,"x")),e[s]=Object(r.__assign)(Object(r.__assign)({},i[s]),d(s,"y")),e))}},function(t,e,n){"use strict";n.r(e),n.d(e,"getColorMap",(function(){return c})),n.d(e,"layoutVennData",(function(){return h})),n.d(e,"islegalSets",(function(){return f}));var r=n(2),i=n(1),o=n(1730),a=n(3),s=n(923),u=n(924),l=n(193),c=Object(i.memoize)((function(t,e,n,r){var i=new Map,a=t.length;return e.forEach((function(e,s){if(1===e[r].length)i.set(e[l.ID_FIELD],t[(s+a)%a]);else{var u=e[r].map((function(t){return i.get(t)}));i.set(e[l.ID_FIELD],u.slice(1).reduce((function(t,e){return Object(o.blend)(t,e,n)}),u[0]))}})),i}),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return JSON.stringify(t)}));function h(t,e,n,o){void 0===o&&(o=0);var c=t.data,h=t.setsField,f=t.sizeField;if(0===c.length)return Object(a.log)(a.LEVEL.WARN,!1,"warn: %s","数据不能为空"),[];var d=c.map((function(t){var e;return Object(r.__assign)(Object(r.__assign)({},t),((e={sets:t[h]||[],size:t[f]})[l.PATH_FIELD]="",e[l.ID_FIELD]="",e))}));d.sort((function(t,e){return t.sets.length-e.sets.length}));var p=Object(s.venn)(d),g=Object(s.scaleSolution)(p,e,n,o),v=Object(u.computeTextCentres)(g,d);return d.forEach((function(t){var e=t.sets,n=e.join(",");t[l.ID_FIELD]=n;var r=e.map((function(t){return g[t]})),o=Object(u.intersectionAreaPath)(r);/[zZ]$/.test(o)||(o+=" Z"),t[l.PATH_FIELD]=o;var a=v[n]||{x:0,y:0};Object(i.assign)(t,a)})),d}function f(t,e){for(var n=0;n<e.length;n++)if(!t.includes(e[n]))return!1;return!0}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return d}));var r=n(19),i=n(20),o=n(63),a=n(32),s=n(61),u=n(68),l=n(1827),c=n(239),h=n(1826),f=n(271),d=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.width,s=n.height,l=n.latitude,h=void 0===l?0:l,f=n.longitude,d=void 0===f?0:f,p=n.zoom,g=void 0===p?0:p,v=n.pitch,m=void 0===v?0:v,y=n.bearing,b=void 0===y?0:y,_=n.altitude,x=void 0===_?1.5:_,w=n.nearZMultiplier,O=n.farZMultiplier;Object(r.default)(this,e),i=i||1,s=s||1;var S=Object(c.zoomToScale)(g);x=Math.max(.75,x);var C=Object(c.lngLatToWorld)([d,h],S);C[2]=0;var E=Object(c.getProjectionMatrix)({width:i,height:s,pitch:m,bearing:b,altitude:x,nearZMultiplier:w||1/s,farZMultiplier:O||1.01}),T=Object(c.getViewMatrix)({height:s,center:C,pitch:m,bearing:b,altitude:x,flipY:!0});return(t=Object(o.default)(this,Object(a.default)(e).call(this,{width:i,height:s,viewMatrix:T,projectionMatrix:E}))).latitude=h,t.longitude=d,t.zoom=g,t.pitch=m,t.bearing=b,t.altitude=x,t.scale=S,t.center=C,t.pixelsPerMeter=Object(c.getDistanceScales)(Object(u.default)(Object(u.default)(t))).pixelsPerMeter[2],Object.freeze(Object(u.default)(Object(u.default)(t))),t}return Object(s.default)(e,t),Object(i.default)(e,[{key:"projectFlat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return Object(c.lngLatToWorld)(t,e)}},{key:"unprojectFlat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return Object(c.worldToLngLat)(t,e)}},{key:"getMapCenterByLngLatPosition",value:function(t){var e=t.lngLat,n=t.pos,r=Object(c.pixelsToWorld)(n,this.pixelUnprojectionMatrix),i=Object(c.lngLatToWorld)(e,this.scale),o=f.add([],i,f.negate([],r)),a=f.add([],this.center,o);return Object(c.worldToLngLat)(a,this.scale)}},{key:"getLocationAtPoint",value:function(t){var e=t.lngLat,n=t.pos;return this.getMapCenterByLngLatPosition({lngLat:e,pos:n})}},{key:"fitBounds",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.width,i=this.height,o=Object(h.default)(Object.assign({width:r,height:i,bounds:t},n)),a=o.longitude,s=o.latitude,u=o.zoom;return new e({width:r,height:i,longitude:a,latitude:s,zoom:u})}}]),e}(l.default)},function(t,e,n){"use strict";function r(t){return"number"==typeof t}n.r(e),n.d(e,"isNumber",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"updateTileStateRealtime",(function(){return r})),n.d(e,"updateTileStateOverlap",(function(){return i})),n.d(e,"updateTileStateReplace",(function(){return o}));function r(t){t.forEach((function(t){t.isCurrent&&(t.isVisible=t.isLoaded)}))}function i(t){t.forEach((function(t){t.properties.state=0})),t.forEach((function(t){t.isCurrent&&!a(t)&&s(t)})),t.forEach((function(t){t.isVisible=Boolean(2&t.properties.state)}))}function o(t){t.forEach((function(t){t.properties.state=0})),t.forEach((function(t){t.isCurrent&&a(t)})),t.slice().sort((function(t,e){return t.z-e.z})).forEach((function(t){t.isVisible=Boolean(2&t.properties.state),t.children.length&&(t.isVisible||1&t.properties.state)?t.children.forEach((function(t){t.properties.state=1})):t.isCurrent&&s(t)}))}function a(t){for(;t;){if(t.isLoaded)return t.properties.state|=2,!0;t=t.parent}return!1}function s(t){t.children.forEach((function(t){t.isLoaded?t.properties.state|=2:s(t)}))}},function(t,e,n){"use strict";n.r(e);var r=n(1303);n.d(e,"MousePanHandler",(function(){return r.default}));var i=n(1304);n.d(e,"MouseRotateHandler",(function(){return i.default}));var o=n(1305);n.d(e,"MousePitchHandler",(function(){return o.default}))},,function(t,e,n){"use strict";(function(e){var r=n(240),i=n(1888),o=n(953),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var u,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(u=n(954)),u),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional,n=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw o(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){l.headers[t]=r.merge(a)})),t.exports=l}).call(this,n(447))},function(t,e,n){"use strict";e.__esModule=!0,e.i18n=e.use=e.t=void 0;var r=a(n(1903)),i=a(n(216)),o=a(n(1904));function a(t){return t&&t.__esModule?t:{default:t}}var s=(0,a(n(1905)).default)(i.default),u=r.default,l=!1,c=function(){var t=Object.getPrototypeOf(this||i.default).$t;if("function"==typeof t&&i.default.locale)return l||(l=!0,i.default.locale(i.default.config.lang,(0,o.default)(u,i.default.locale(i.default.config.lang)||{},{clone:!0}))),t.apply(this,arguments)},h=e.t=function(t,e){var n=c.apply(this,arguments);if(null!=n)return n;for(var r=t.split("."),i=u,o=0,a=r.length;o<a;o++){var l=r[o];if(n=i[l],o===a-1)return s(n,e);if(!n)return"";i=n}return""},f=e.use=function(t){u=t||u},d=e.i18n=function(t){c=t||c};e.default={use:f,t:h,i18n:d}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(819);e.default={methods:{t:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.t.apply(this,e)}}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(){if(o.default.prototype.$isServer)return 0;if(void 0!==a)return a;var t=document.createElement("div");t.className="el-scrollbar__wrap",t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",t.appendChild(n);var r=n.offsetWidth;return t.parentNode.removeChild(t),a=e-r};var r,i=n(216),o=(r=i)&&r.__esModule?r:{default:r};var a=void 0},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=73)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},11:function(t,e){t.exports=n(962)},21:function(t,e){t.exports=n(614)},4:function(t,e){t.exports=n(409)},73:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["textarea"===t.type?"el-textarea":"el-input",t.inputSize?"el-input--"+t.inputSize:"",{"is-disabled":t.inputDisabled,"is-exceed":t.inputExceed,"el-input-group":t.$slots.prepend||t.$slots.append,"el-input-group--append":t.$slots.append,"el-input-group--prepend":t.$slots.prepend,"el-input--prefix":t.$slots.prefix||t.prefixIcon,"el-input--suffix":t.$slots.suffix||t.suffixIcon||t.clearable||t.showPassword}],on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},["textarea"!==t.type?[t.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[t._t("prepend")],2):t._e(),"textarea"!==t.type?n("input",t._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:t.tabindex,type:t.showPassword?t.passwordVisible?"text":"password":t.type,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"input",t.$attrs,!1)):t._e(),t.$slots.prefix||t.prefixIcon?n("span",{staticClass:"el-input__prefix"},[t._t("prefix"),t.prefixIcon?n("i",{staticClass:"el-input__icon",class:t.prefixIcon}):t._e()],2):t._e(),t.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[t.showClear&&t.showPwdVisible&&t.isWordLimitVisible?t._e():[t._t("suffix"),t.suffixIcon?n("i",{staticClass:"el-input__icon",class:t.suffixIcon}):t._e()],t.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(t){t.preventDefault()},click:t.clear}}):t._e(),t.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:t.handlePasswordVisible}}):t._e(),t.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[t._v("\n "+t._s(t.textLength)+"/"+t._s(t.upperLimit)+"\n ")])]):t._e()],2),t.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",t.validateIcon]}):t._e()]):t._e(),t.$slots.append?n("div",{staticClass:"el-input-group__append"},[t._t("append")],2):t._e()]:n("textarea",t._b({ref:"textarea",staticClass:"el-textarea__inner",style:t.textareaStyle,attrs:{tabindex:t.tabindex,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"textarea",t.$attrs,!1)),t.isWordLimitVisible&&"textarea"===t.type?n("span",{staticClass:"el-input__count"},[t._v(t._s(t.textLength)+"/"+t._s(t.upperLimit))]):t._e()],2)};r._withStripped=!0;var i=n(4),o=n.n(i),a=n(11),s=n.n(a),u=void 0,l="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",c=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function h(t){var e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=parseFloat(e.getPropertyValue("padding-bottom"))+parseFloat(e.getPropertyValue("padding-top")),i=parseFloat(e.getPropertyValue("border-bottom-width"))+parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:c.map((function(t){return t+":"+e.getPropertyValue(t)})).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;u||(u=document.createElement("textarea"),document.body.appendChild(u));var r=h(t),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;u.setAttribute("style",s+";"+l),u.value=t.value||t.placeholder||"";var c=u.scrollHeight,f={};"border-box"===a?c+=o:"content-box"===a&&(c-=i),u.value="";var d=u.scrollHeight-i;if(null!==e){var p=d*e;"border-box"===a&&(p=p+i+o),c=Math.max(p,c),f.minHeight=p+"px"}if(null!==n){var g=d*n;"border-box"===a&&(g=g+i+o),c=Math.min(g,c)}return f.height=c+"px",u.parentNode&&u.parentNode.removeChild(u),u=null,f}var d=n(9),p=n.n(d),g=n(21),v={name:"ElInput",componentName:"ElInput",mixins:[o.a,s.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return p()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(t){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[t])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var t=this;this.$nextTick((function(){t.setNativeInputValue(),t.resizeTextarea(),t.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(t){this.focused=!1,this.$emit("blur",t),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var t=this.autosize;if("textarea"===this.type)if(t){var e=t.minRows,n=t.maxRows;this.textareaCalcStyle=f(this.$refs.textarea,e,n)}else this.textareaCalcStyle={minHeight:f(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var t=this.getInput();t&&t.value!==this.nativeInputValue&&(t.value=this.nativeInputValue)},handleFocus:function(t){this.focused=!0,this.$emit("focus",t)},handleCompositionStart:function(t){this.$emit("compositionstart",t),this.isComposing=!0},handleCompositionUpdate:function(t){this.$emit("compositionupdate",t);var e=t.target.value,n=e[e.length-1]||"";this.isComposing=!Object(g.isKorean)(n)},handleCompositionEnd:function(t){this.$emit("compositionend",t),this.isComposing&&(this.isComposing=!1,this.handleInput(t))},handleInput:function(t){this.isComposing||t.target.value!==this.nativeInputValue&&(this.$emit("input",t.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(t){this.$emit("change",t.target.value)},calcIconOffset:function(t){var e=[].slice.call(this.$el.querySelectorAll(".el-input__"+t)||[]);if(e.length){for(var n=null,r=0;r<e.length;r++)if(e[r].parentNode===this.$el){n=e[r];break}if(n){var i={suffix:"append",prefix:"prepend"}[t];this.$slots[i]?n.style.transform="translateX("+("suffix"===t?"-":"")+this.$el.querySelector(".el-input-group__"+i).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var t=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){t.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},m=n(0),y=Object(m.a)(v,r,[],!1,null,null,null);y.options.__file="packages/input/src/input.vue";var b=y.exports;b.install=function(t){t.component(b.name,b)};e.default=b},9:function(t,e){t.exports=n(613)}})},function(t,e,n){"use strict";e.__esModule=!0,e.removeResizeListener=e.addResizeListener=void 0;var r,i=n(1909),o=(r=i)&&r.__esModule?r:{default:r},a=n(964);var s="undefined"==typeof window,u=function(t){var e=t,n=Array.isArray(e),r=0;for(e=n?e:e[Symbol.iterator]();;){var i;if(n){if(r>=e.length)break;i=e[r++]}else{if((r=e.next()).done)break;i=r.value}var o=i.target.__resizeListeners__||[];o.length&&o.forEach((function(t){t()}))}};e.addResizeListener=function(t,e){s||(t.__resizeListeners__||(t.__resizeListeners__=[],t.__ro__=new o.default((0,a.debounce)(16,u)),t.__ro__.observe(t)),t.__resizeListeners__.push(e))},e.removeResizeListener=function(t,e){t&&t.__resizeListeners__&&(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),t.__resizeListeners__.length||t.__ro__.disconnect())}},function(t,e){t.exports=function(t,e,n,r){var i,o=0;return"boolean"!=typeof e&&(r=n,n=e,e=void 0),function(){var a=this,s=Number(new Date)-o,u=arguments;function l(){o=Number(new Date),n.apply(a,u)}function c(){i=void 0}r&&!i&&l(),i&&clearTimeout(i),void 0===r&&s>t?l():!0!==e&&(i=setTimeout(r?c:l,void 0===r?t-s:t))}}},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=132)}({132:function(t,e,n){"use strict";n.r(e);var r=n(16),i=n(38),o=n.n(i),a=n(3),s=n(2),u={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function l(t){var e=t.move,n=t.size,r=t.bar,i={},o="translate"+r.axis+"("+e+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}var c={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return u[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(t){var e=this.size,n=this.move,r=this.bar;return t("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[t("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:l({size:e,move:n,bar:r})})])},methods:{clickThumbHandler:function(t){t.ctrlKey||2===t.button||(this.startDrag(t),this[this.bar.axis]=t.currentTarget[this.bar.offset]-(t[this.bar.client]-t.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(t){var e=100*(Math.abs(t.target.getBoundingClientRect()[this.bar.direction]-t[this.bar.client])-this.$refs.thumb[this.bar.offset]/2)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=e*this.wrap[this.bar.scrollSize]/100},startDrag:function(t){t.stopImmediatePropagation(),this.cursorDown=!0,Object(s.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(s.on)(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(t){if(!1!==this.cursorDown){var e=this[this.bar.axis];if(e){var n=100*(-1*(this.$el.getBoundingClientRect()[this.bar.direction]-t[this.bar.client])-(this.$refs.thumb[this.bar.offset]-e))/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=n*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(t){this.cursorDown=!1,this[this.bar.axis]=0,Object(s.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s.off)(document,"mouseup",this.mouseUpDocumentHandler)}},h={name:"ElScrollbar",components:{Bar:c},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(t){var e=o()(),n=this.wrapStyle;if(e){var r="-"+e+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(a.toObject)(this.wrapStyle)).marginRight=n.marginBottom=r:"string"==typeof this.wrapStyle?n+=i:n=i}var s=t(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),u=t("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",e?"":"el-scrollbar__wrap--hidden-default"]},[[s]]),l=void 0;return l=this.native?[t("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[u,t(c,{attrs:{move:this.moveX,size:this.sizeWidth}}),t(c,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],t("div",{class:"el-scrollbar"},l)},methods:{handleScroll:function(){var t=this.wrap;this.moveY=100*t.scrollTop/t.clientHeight,this.moveX=100*t.scrollLeft/t.clientWidth},update:function(){var t,e,n=this.wrap;n&&(t=100*n.clientHeight/n.scrollHeight,e=100*n.clientWidth/n.scrollWidth,this.sizeHeight=t<100?t+"%":"",this.sizeWidth=e<100?e+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(r.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(r.removeResizeListener)(this.$refs.resize,this.update)},install:function(t){t.component(h.name,h)}};e.default=h},16:function(t,e){t.exports=n(823)},2:function(t,e){t.exports=n(349)},3:function(t,e){t.exports=n(310)},38:function(t,e){t.exports=n(821)}})},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){return{methods:{focus:function(){this.$refs[t].focus()}}}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(o.default.prototype.$isServer)return;if(!e)return void(t.scrollTop=0);var n=[],r=e.offsetParent;for(;r&&t!==r&&t.contains(r);)n.push(r),r=r.offsetParent;var i=e.offsetTop+n.reduce((function(t,e){return t+e.offsetTop}),0),a=i+e.offsetHeight,s=t.scrollTop,u=s+t.clientHeight;i<s?t.scrollTop=i:a>u&&(t.scrollTop=a-t.clientHeight)};var r,i=n(216),o=(r=i)&&r.__esModule?r:{default:r}},function(t,e,n){"use strict";e.__esModule=!0;var r=r||{};r.Utils=r.Utils||{},r.Utils.focusFirstDescendant=function(t){for(var e=0;e<t.childNodes.length;e++){var n=t.childNodes[e];if(r.Utils.attemptFocus(n)||r.Utils.focusFirstDescendant(n))return!0}return!1},r.Utils.focusLastDescendant=function(t){for(var e=t.childNodes.length-1;e>=0;e--){var n=t.childNodes[e];if(r.Utils.attemptFocus(n)||r.Utils.focusLastDescendant(n))return!0}return!1},r.Utils.attemptFocus=function(t){if(!r.Utils.isFocusable(t))return!1;r.Utils.IgnoreUtilFocusChanges=!0;try{t.focus()}catch(t){}return r.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===t},r.Utils.isFocusable=function(t){if(t.tabIndex>0||0===t.tabIndex&&null!==t.getAttribute("tabIndex"))return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!==t.rel;case"INPUT":return"hidden"!==t.type&&"file"!==t.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},r.Utils.triggerEvent=function(t,e){var n=void 0;n=/^mouse|click/.test(e)?"MouseEvents":/^key/.test(e)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return r.initEvent.apply(r,[e].concat(o)),t.dispatchEvent?t.dispatchEvent(r):t.fireEvent("on"+e,r),t},r.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},e.default=r.Utils},function(t,e,n){var r=n(373),i=n(538),o=n(1929),a=n(448),s=n(411),u=function(t,e,n){var l,c,h,f=t&u.F,d=t&u.G,p=t&u.S,g=t&u.P,v=t&u.B,m=t&u.W,y=d?i:i[e]||(i[e]={}),b=y.prototype,_=d?r:p?r[e]:(r[e]||{}).prototype;for(l in d&&(n=e),n)(c=!f&&_&&void 0!==_[l])&&s(y,l)||(h=c?_[l]:n[l],y[l]=d&&"function"!=typeof _[l]?n[l]:v&&c?o(h,r):m&&_[l]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((y.virtual||(y.virtual={}))[l]=h,t&u.R&&b&&!b[l]&&a(b,l,h)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(539);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(834)("keys"),i=n(620);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(538),i=n(373),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(619)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(831);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports={}},function(t,e,n){var r=n(449).f,i=n(411),o=n(451)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){e.f=n(451)},function(t,e,n){var r=n(373),i=n(538),o=n(619),a=n(840),s=n(449).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTextRect",(function(){return i}));var r=n(72);function i(t,e,n,i,o,a,s,u){return new r.default({style:{text:t,font:e,align:n,verticalAlign:i,padding:o,rich:a,overflow:s?"truncate":null,lineHeight:u}}).getBoundingRect()}},function(t,e,n){"use strict";n.r(e);var r=n(66),i=n(106),o=n(35),a=[],s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return Object(r.__extends)(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new o.default(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(a)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(t,e))return!0}return!1},e}(i.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(255);n.d(e,"getBBoxMethod",(function(){return r.getMethod})),n.d(e,"registerBBox",(function(){return r.register}));var i=n(908),o=n(909),a=n(1564),s=n(1566),u=n(1567),l=n(1568),c=n(1572),h=n(1573);Object(r.register)("rect",i.default),Object(r.register)("image",i.default),Object(r.register)("circle",o.default),Object(r.register)("marker",o.default),Object(r.register)("polyline",a.default),Object(r.register)("polygon",s.default),Object(r.register)("text",u.default),Object(r.register)("path",l.default),Object(r.register)("line",c.default),Object(r.register)("ellipse",h.default)},function(t,e,n){"use strict";n.r(e);var r=n(735),i=n(1579),o=n(1581),a=n(1583),s=n(1584),u=n(1585),l=n(1586),c=n(213);n.d(e,"getTickMethod",(function(){return c.getTickMethod})),n.d(e,"registerTickMethod",(function(){return c.registerTickMethod}));var h=n(1587),f=n(1588),d=n(1589);Object(c.registerTickMethod)("cat",r.default),Object(c.registerTickMethod)("time-cat",f.default),Object(c.registerTickMethod)("wilkinson-extended",o.default),Object(c.registerTickMethod)("r-pretty",l.default),Object(c.registerTickMethod)("time",h.default),Object(c.registerTickMethod)("time-pretty",d.default),Object(c.registerTickMethod)("log",a.default),Object(c.registerTickMethod)("pow",s.default),Object(c.registerTickMethod)("quantile",u.default),Object(c.registerTickMethod)("d3-linear",i.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"Liquid",(function(){return c}));var r=n(2),i=n(13),o=n(26),a=n(926),s=n(1736),u=n(766),l=n(847);n.d(e,"addWaterWave",(function(){return l.addWaterWave}));var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="liquid",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.chart.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(Object(u.getLiquidData)(t)),Object(a.statistic)({chart:this.chart,options:this.options},!0),this.chart.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(o.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"addWaterWave",(function(){return c}));var r=n(2),i=n(13),o=n(1),a=n(588);function s(t,e,n){return t+(e-t)*n}function u(t,e,n,r){return 0===e?[[t+.5*n/Math.PI/2,r/2],[t+.5*n/Math.PI,r],[t+n/4,r]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),r],[t+.5*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-r/2],[t+.5*n/Math.PI,-r],[t+n/4,-r]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-r],[t+.5*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function l(t,e,n,r,i,o,a){for(var s=4*Math.ceil(2*t/n*4),l=[],c=r;c<2*-Math.PI;)c+=2*Math.PI;for(;c>0;)c-=2*Math.PI;var h=o-t+(c=c/Math.PI/2*n)-2*t;l.push(["M",h,e]);for(var f=0,d=0;d<s;++d){var p=u(d*n/4,d%4,n,i);l.push(["C",p[0][0]+h,-p[0][1]+e,p[1][0]+h,-p[1][1]+e,p[2][0]+h,-p[2][1]+e]),d===s-1&&(f=p[2][0])}return l.push(["L",f+h,a+t]),l.push(["L",h,a+t]),l.push(["Z"]),l}function c(t,e,n,r,i,o,u,c,h,f){for(var d=i.fill,p=i.opacity,g=u.getBBox(),v=g.maxX-g.minX,m=g.maxY-g.minY,y=0;y<r;y++){var b=r<=1?0:y/(r-1),_=o.addShape("path",{name:"waterwave-path",attrs:{path:l(c,g.minY+m*n,h,0,v/32,t,e),fill:d,opacity:s(.2,.9,b)*p}});try{if(!1===f)return;var x=Object(a.transform)([["t",h,0]]);_.stopAnimate(),_.animate({matrix:x},{duration:s(2500,5e3,b),repeat:!0})}catch(t){console.warn("off-screen group animate error!")}}}var h={pin:function(t,e,n,r){var i=2*n/3,o=Math.max(i,r),a=i/2,s=t,u=a+e-o/2,l=Math.asin(a/(.85*(o-a))),c=Math.sin(l)*a,h=Math.cos(l)*a,f=s-h,d=u+c,p=t,g=u+a/Math.sin(l);return"\n M "+f+" "+d+"\n A "+a+" "+a+" 0 1 1 "+(f+2*h)+" "+d+"\n Q "+p+" "+g+" "+t+" "+(e+o/2)+"\n Q "+p+" "+g+" "+f+" "+d+"\n Z \n "},circle:function(t,e,n,r){var i=n/2,o=r/2;return"\n M "+t+" "+(e-o)+" \n a "+i+" "+o+" 0 1 0 0 "+2*o+"\n a "+i+" "+o+" 0 1 0 0 "+2*-o+"\n Z\n "},diamond:function(t,e,n,r){var i=r/2,o=n/2;return"\n M "+t+" "+(e-i)+"\n L "+(t+o)+" "+e+"\n L "+t+" "+(e+i)+"\n L "+(t-o)+" "+e+"\n Z\n "},triangle:function(t,e,n,r){var i=r/2,o=n/2;return"\n M "+t+" "+(e-i)+"\n L "+(t+o)+" "+(e+i)+"\n L "+(t-o)+" "+(e+i)+"\n Z\n "},rect:function(t,e,n,r){var i=r/2,o=n/2*.618;return"\n M "+(t-o)+" "+(e-i)+"\n L "+(t+o)+" "+(e-i)+"\n L "+(t+o)+" "+(e+i)+"\n L "+(t-o)+" "+(e+i)+"\n Z\n "}};Object(i.registerShape)("interval","liquid-fill-gauge",{draw:function(t,e){var n=t.customInfo,i=n,a=i.radius,s=i.shape,u=i.background,l=i.animation,f=n.outline,d=n.wave,p=f.border,g=f.distance,v=d.count,m=d.length,y=Object(o.reduce)(t.points,(function(t,e){return Math.min(t,e.x)}),1/0),b=this.parsePoint({x:.5,y:.5}),_=this.parsePoint({x:y,y:.5}),x=b.x-_.x,w=Math.min(x,_.y*a),O=function(t){var e=Object(r.__assign)({opacity:1},t.style);return t.color&&!e.fill&&(e.fill=t.color),e}(t),S=function(t){var e=Object(o.mix)({},{fill:"#fff",fillOpacity:0,lineWidth:4},t.style);return t.color&&!e.stroke&&(e.stroke=t.color),Object(o.isNumber)(t.opacity)&&(e.opacity=e.strokeOpacity=t.opacity),e}(Object(o.mix)({},t,f)),C=w-p/2,E=("function"==typeof s?s:h[s]||h.circle)(b.x,b.y,2*C,2*C),T=e.addGroup({name:"waves"}),A=T.setClip({type:"path",attrs:{path:E}});return c(b.x,b.y,1-t.points[1].y,v,O,T,A,2*w,m,l),e.addShape("path",{name:"distance",attrs:{path:E,fill:"transparent",lineWidth:p+2*g,stroke:"transparent"===u?"#fff":u}}),e.addShape("path",{name:"wrap",attrs:Object(o.mix)(S,{path:E,fill:"transparent",lineWidth:p})}),e}})},function(t,e,n){"use strict";n.r(e),n.d(e,"isParentNode",(function(){return a}));var r=n(13),i=n(1),o=n(389);function a(t){var e=Object(i.get)(t,["event","data","data"],{});return Object(i.isArray)(e.children)&&e.children.length>0}function s(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var r=t.event,i=r.x,o=r.y,a=e.center,s=a.x,u=a.y,l=e.getRadius()*n;return Math.sqrt(Math.pow(s-i,2)+Math.pow(u-o,2))<l}return!1}Object(r.registerAction)("drill-down-action",o.DrillDownAction),Object(r.registerInteraction)("drill-down",{showEnable:[{trigger:"element:mouseenter",action:"cursor:pointer",isEnable:a},{trigger:"element:mouseleave",action:"cursor:default"},{trigger:"element:mouseleave",action:"cursor:pointer",isEnable:s}],start:[{trigger:"element:click",isEnable:a,action:["drill-down-action:click"]},{trigger:"afterchangesize",action:["drill-down-action:resetPosition"]},{trigger:"click",isEnable:s,action:["drill-down-action:back"]}]})},function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e,r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingOnSyntax=void 0;var r=n(851),i=function(){function t(t){this._binding=t}return t.prototype.onActivation=function(t){return this._binding.onActivation=t,new r.BindingWhenSyntax(this._binding)},t}();e.BindingOnSyntax=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingWhenSyntax=void 0;var r=n(850),i=n(1219),o=function(){function t(t){this._binding=t}return t.prototype.when=function(t){return this._binding.constraint=t,new r.BindingOnSyntax(this._binding)},t.prototype.whenTargetNamed=function(t){return this._binding.constraint=i.namedConstraint(t),new r.BindingOnSyntax(this._binding)},t.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(t){return null!==t.target&&!t.target.isNamed()&&!t.target.isTagged()},new r.BindingOnSyntax(this._binding)},t.prototype.whenTargetTagged=function(t,e){return this._binding.constraint=i.taggedConstraint(t)(e),new r.BindingOnSyntax(this._binding)},t.prototype.whenInjectedInto=function(t){return this._binding.constraint=function(e){return i.typeConstraint(t)(e.parentRequest)},new r.BindingOnSyntax(this._binding)},t.prototype.whenParentNamed=function(t){return this._binding.constraint=function(e){return i.namedConstraint(t)(e.parentRequest)},new r.BindingOnSyntax(this._binding)},t.prototype.whenParentTagged=function(t,e){return this._binding.constraint=function(n){return i.taggedConstraint(t)(e)(n.parentRequest)},new r.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorIs=function(t){return this._binding.constraint=function(e){return i.traverseAncerstors(e,i.typeConstraint(t))},new r.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorIs=function(t){return this._binding.constraint=function(e){return!i.traverseAncerstors(e,i.typeConstraint(t))},new r.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorNamed=function(t){return this._binding.constraint=function(e){return i.traverseAncerstors(e,i.namedConstraint(t))},new r.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorNamed=function(t){return this._binding.constraint=function(e){return!i.traverseAncerstors(e,i.namedConstraint(t))},new r.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._binding.constraint=function(n){return i.traverseAncerstors(n,i.taggedConstraint(t)(e))},new r.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorTagged=function(t,e){return this._binding.constraint=function(n){return!i.traverseAncerstors(n,i.taggedConstraint(t)(e))},new r.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorMatches=function(t){return this._binding.constraint=function(e){return i.traverseAncerstors(e,t)},new r.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorMatches=function(t){return this._binding.constraint=function(e){return!i.traverseAncerstors(e,t)},new r.BindingOnSyntax(this._binding)},t}();e.BindingWhenSyntax=o},function(t,e,n){"use strict";function r(t){var e=0;t+="x";for(var n=Math.floor(65745979961613.07),r=0;r<t.length;r++)e>n&&(e=Math.floor(e/137)),e=131*e+t.charCodeAt(r);return e}function i(t){for(var e=5381,n=(t=t.toString()).length;n;)e=33*e^t.charCodeAt(--n);return e>>>0}n.r(e),n.d(e,"BKDRHash",(function(){return r})),n.d(e,"djb2hash",(function(){return i}))},function(t,e,n){var r=n(551),i=n(375);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(413).Symbol;t.exports=r},function(t,e,n){var r=n(1238);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(853),i=n(1242);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e,n){"use strict";function r(t){var e=0;t+="x";for(var n=Math.floor(65745979961613.07),r=0;r<t.length;r++)e>n&&(e=Math.floor(e/137)),e=131*e+t.charCodeAt(r);return e}function i(t){for(var e=5381,n=(t=t.toString()).length;n;)e=33*e^t.charCodeAt(--n);return e>>>0}n.r(e),n.d(e,"BKDRHash",(function(){return r})),n.d(e,"djb2hash",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"canProcessOnWorker",(function(){return u})),n.d(e,"processOnWorker",(function(){return l}));var r=n(567),i=n(1847),o=n(568),a=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};function u(t,e){return!!r.default.isSupported()&&(t.worker&&(null==e?void 0:e.worker))}function l(t,e,n,u){return void 0===n&&(n={}),void 0===u&&(u={}),a(this,void 0,void 0,(function(){var a,l,h,f,d,p,g;return s(this,(function(s){switch(s.label){case 0:return a=Object(o.getWorkerName)(t),l=Object(o.getWorkerURL)(t,n),h=r.default.getWorkerFarm(n),f=h.getWorkerPool({name:a,url:l}),d=n.jobName||t.name,[4,f.startJob(d,c.bind(null,u))];case 1:return p=s.sent(),g=Object(i.removeNontransferableOptions)(n),p.postMessage("process",{input:e,options:g}),[4,p.result];case 2:return[2,s.sent().result]}}))}))}function c(t,e,n,r){return a(this,void 0,void 0,(function(){var i,o,a,u,l,c;return s(this,(function(s){switch(s.label){case 0:switch(n){case"done":return[3,1];case"error":return[3,2];case"process":return[3,3]}return[3,8];case 1:return e.done(r),[3,9];case 2:return e.error(new Error(r.error)),[3,9];case 3:i=r.id,o=r.input,a=r.options,s.label=4;case 4:return s.trys.push([4,6,,7]),t.process?[4,t.process(o,a)]:(e.postMessage("error",{id:i,error:"Worker not set up to process on main thread"}),[2]);case 5:return u=s.sent(),e.postMessage("done",{id:i,result:u}),[3,7];case 6:return l=s.sent(),c=l instanceof Error?l.message:"unknown error",e.postMessage("error",{id:i,error:c}),[3,7];case 7:return[3,9];case 8:console.warn("process-on-worker: unknown message "+n),s.label=9;case 9:return[2]}}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"loadLibrary",(function(){return u})),n.d(e,"getLibraryUrl",(function(){return l}));var r=n(362),i=n(225),o=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},s={};function u(t,e,n){return void 0===e&&(e=null),void 0===n&&(n={}),o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return e&&(t=l(t,e,n)),s[t]=s[t]||function(t){return o(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return t.endsWith("wasm")?[4,fetch(t)]:[3,3];case 1:return[4,e.sent().arrayBuffer()];case 2:return[2,e.sent()];case 3:return r.isWorker?[2,importScripts(t)]:[4,fetch(t)];case 4:return[4,e.sent().text()];case 5:return[2,c(e.sent(),t)]}}))}))}(t),[4,s[t]];case 1:return[2,i.sent()]}}))}))}function l(t,e,n){if(t.startsWith("http"))return t;var o=n.modules||{};return o[t]?o[t]:n.CDN?(Object(i.assert)(n.CDN.startsWith("http")),n.CDN+"/"+e+"/dist/libs/"+t):r.isWorker?"../src/libs/"+t:"modules/"+e+"/src/libs/"+t}function c(t,e){if(r.isWorker)return eval.call(r.global,t),null;var n=document.createElement("script");n.id=e;try{n.appendChild(document.createTextNode(t))}catch(e){n.text=t}return document.body.appendChild(n),null}},function(t,e,n){"use strict";n.r(e),n.d(e,"clone",(function(){return _})),n.d(e,"split",(function(){return x}));var r=n(249),i=n(35),o=n(57),a=n(0),s=n(180),u=n(79),l=n(190),c=n(581),h=n(268);function f(t,e,n){var r=t[e],i=t[1-e],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var u=[],l=0;l<a;l++)u.push(s);var c=n-a*s;if(c>0)for(l=0;l<c;l++)u[l%a]+=1;return u}function d(t,e,n){for(var r=t.r0,i=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),u=s*i,l=i-r,c=u>Math.abs(l),h=f([u,l],c?0:1,e),d=(c?s:l)/h.length,p=0;p<h.length;p++)for(var g=(c?l:s)/h[p],v=0;v<h[p];v++){var m={};c?(m.startAngle=o+d*p,m.endAngle=o+d*(p+1),m.r0=r+g*v,m.r=r+g*(v+1)):(m.startAngle=o+g*v,m.endAngle=o+g*(v+1),m.r0=r+d*p,m.r=r+d*(p+1)),m.clockwise=t.clockwise,m.cx=t.cx,m.cy=t.cy,n.push(m)}}function p(t,e,n,r){return t*r-n*e}function g(t,e,n,r,i,a,s,u){var l=n-t,c=r-e,h=s-i,f=u-a,d=p(h,f,l,c);if(Math.abs(d)<1e-6)return null;var g=p(t-i,e-a,h,f)/d;return g<0||g>1?null:new o.default(g*l+t,g*c+e)}function v(t,e,n){var r=new o.default;o.default.sub(r,n,e),r.normalize();var i=new o.default;return o.default.sub(i,t,e),i.dot(r)}function m(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function y(t){var e=t.points,n=[],a=[];Object(r.fromPoints)(e,n,a);var s=new i.default(n[0],n[1],a[0]-n[0],a[1]-n[1]),u=s.width,l=s.height,c=s.x,h=s.y,f=new o.default,d=new o.default;return u>l?(f.x=d.x=c+u/2,f.y=h,d.y=h+l):(f.y=d.y=h+l/2,f.x=c,d.x=c+u),function(t,e,n){for(var r=t.length,i=[],o=0;o<r;o++){var a=t[o],s=t[(o+1)%r],u=g(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);u&&i.push({projPt:v(u,e,n),pt:u,idx:o})}if(i.length<2)return[{points:t},{points:t}];i.sort((function(t,e){return t.projPt-e.projPt}));var l=i[0],c=i[i.length-1];if(c.idx<l.idx){var h=l;l=c,c=h}var f=[l.pt.x,l.pt.y],d=[c.pt.x,c.pt.y],p=[f],y=[d];for(o=l.idx+1;o<=c.idx;o++)m(p,t[o].slice());for(m(p,d),m(p,f),o=c.idx+1;o<=l.idx+r;o++)m(y,t[o%r].slice());return m(y,f),m(y,d),[{points:p},{points:y}]}(e,f,d)}function b(t,e,n,r){if(1===n)r.push(e);else{var i=Math.floor(n/2),o=t(e);b(t,o[0],i,r),b(t,o[1],n-i,r)}return r}function _(t,e){for(var n=[],r=0;r<e;r++)n.push(Object(h.clonePath)(t));return n}function x(t,e){var n,i=[],o=t.shape;switch(t.type){case"rect":!function(t,e,n){for(var r=t.width,i=t.height,o=r>i,a=f([r,i],o?0:1,e),s=o?"width":"height",u=o?"height":"width",l=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,d=0;d<a.length;d++)for(var p=t[u]/a[d],g=0;g<a[d];g++){var v={};v[l]=d*h,v[c]=g*p,v[s]=h,v[u]=p,v.x+=t.x,v.y+=t.y,n.push(v)}}(o,e,i),n=u.default;break;case"sector":d(o,e,i),n=l.default;break;case"circle":d({r0:0,r:o.r,startAngle:0,endAngle:2*Math.PI,cx:o.cx,cy:o.cy},e,i),n=l.default;break;default:var h=t.getComputedTransform(),p=h?Math.sqrt(Math.max(h[0]*h[0]+h[1]*h[1],h[2]*h[2]+h[3]*h[3])):1,g=Object(a.map)(Object(c.pathToPolygons)(t.getUpdatedPathProxy(),p),(function(t){return function(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}(t)})),v=g.length;if(0===v)b(y,{points:g[0]},e,i);else if(v===e)for(var m=0;m<v;m++)i.push({points:g[m]});else{var x=0,w=Object(a.map)(g,(function(t){var e=[],n=[];Object(r.fromPoints)(t,e,n);var i=(n[1]-e[1])*(n[0]-e[0]);return x+=i,{poly:t,area:i}}));w.sort((function(t,e){return e.area-t.area}));var O=e;for(m=0;m<v;m++){var S=w[m];if(O<=0)break;var C=m===v-1?O:Math.ceil(S.area/x*e);C<0||(b(y,{points:S.poly},C,i),O-=C)}}n=s.default}if(!n)return _(t,e);var E,T,A=[];for(m=0;m<i.length;m++){var M=new n;M.setShape(i[m]),E=t,(T=M).setStyle(E.style),T.z=E.z,T.z2=E.z2,T.zlevel=E.zlevel,A.push(M)}return A}},function(t,e,n){"use strict";n.r(e);var r=n(322),i=n(247),o=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],Object(o.isString)(n.values)&&(n.linear=!0),n.gradient=i.default.gradient(n.values),n}return Object(r.__extends)(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(n(217).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(322),i=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return Object(r.__extends)(e,t),e}(n(217).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(322),i=n(1),o=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return Object(r.__extends)(e,t),e.prototype.mapping=function(t,e){var n=this.scales,r=n[0],o=n[1];return Object(i.isNil)(t)||Object(i.isNil)(e)?[]:[Object(i.isArray)(t)?t.map((function(t){return r.scale(t)})):r.scale(t),Object(i.isArray)(e)?e.map((function(t){return o.scale(t)})):o.scale(e)]},e}(n(217).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(322),i=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return Object(r.__extends)(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(n(217).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(322),i=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return Object(r.__extends)(e,t),e}(n(217).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(109),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return Object(r.__extends)(e,t),e.prototype.translate=function(t){t=Object(o.toTimeStamp)(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(i.isNumber)(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):Object(o.timeFormat)(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;Object(i.each)(e,(function(t,n){e[n]=Object(o.toTimeStamp)(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(n(490).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(132),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(r.__extends)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=Object(i.log)(n,this.max),o=this.rangeMin(),a=this.rangeMax()-o,s=this.positiveMin;if(s){if(0===t)return 0;var u=1/(r-(e=Object(i.log)(n,s/n)))*a;if(t<u)return t/u*s}else e=Object(i.log)(n,this.min);var l=(t-o)/a*(r-e)+e;return Math.pow(n,l)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=Object(i.getLogPositiveMin)(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var r=this.base,o=this.positiveMin;return o&&(n=1*o/r),t<o?t/o/(Object(i.log)(r,e)-Object(i.log)(r,n)):(Object(i.log)(r,t)-Object(i.log)(r,n))/(Object(i.log)(r,e)-Object(i.log)(r,n))},e}(n(386).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(132),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return Object(r.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,r=Object(i.calBase)(n,this.max),o=Object(i.calBase)(n,this.min),a=e*(r-o)+o,s=a>=0?1:-1;return Math.pow(a,n)*s},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(Object(i.calBase)(r,t)-Object(i.calBase)(r,n))/(Object(i.calBase)(r,e)-Object(i.calBase)(r,n))},e}(n(386).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(109),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(r.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):Object(o.timeFormat)(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(i.isString)(n)||Object(i.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return Object(o.toTimeStamp)(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(Object(i.isNil)(e)&&Object(i.isNumber)(e)||(this.min=this.translate(this.min)),Object(i.isNil)(n)&&Object(i.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],a=1/0,s=a,u=0;Object(i.each)(t,(function(t){var e=Object(o.toTimeStamp)(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");a>e?(s=a,a=e):s>e&&(s=e),u<e&&(u=e),r.push(e)})),t.length>1&&(this.minTickInterval=s-a),Object(i.isNil)(e)&&(this.min=a),Object(i.isNil)(n)&&(this.max=u)}},e}(n(561).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(r.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(n(562).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(r.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(i.isNumber)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}(n(313).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"getInteractionCfg",(function(){return a}));var r=n(13),i=n(1707);function o(t){return t.isInPlot()}function a(t,e,n){var r=n||{},i=r.mask,a=r.isStartEnable,s=e||"rect";switch(t){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a||o,action:["brush:start",s+"-mask:start",s+"-mask:show"],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:o,action:[s+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:o,action:["brush:filter","brush:end",s+"-mask:end",s+"-mask:hide","brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:default",isEnable:function(t){return!!a&&!a(t)}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:a||function(t){return!t.isInShape("mask")},action:[s+"-mask:start",s+"-mask:show"],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:[s+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[s+"-mask:resize"]},{trigger:"mask:drag",action:[s+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[s+"-mask:end"]},{trigger:"mask:dragend",action:[s+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",s+"-mask:end",s+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",s+"-mask:hide"]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a||o,action:["brush-x:start",s+"-mask:start",s+"-mask:show"],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:o,action:[s+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:o,action:["brush-x:filter","brush-x:end",s+"-mask:end",s+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:a||function(t){return!t.isInShape("mask")},action:[s+"-mask:start",s+"-mask:show"],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:[s+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[s+"-mask:resize"]},{trigger:"mask:drag",action:[s+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[s+"-mask:end"]},{trigger:"mask:dragend",action:[s+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",s+"-mask:end",s+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",s+"-mask:hide"]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a||o,action:["brush-y:start",s+"-mask:start",s+"-mask:show"],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:o,action:[s+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:o,action:["brush-y:filter","brush-y:end",s+"-mask:end",s+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:a||function(t){return!t.isInShape("mask")},action:[s+"-mask:start",s+"-mask:show"],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:[s+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[s+"-mask:resize"]},{trigger:"mask:drag",action:[s+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[s+"-mask:end"]},{trigger:"mask:dragend",action:[s+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",s+"-mask:end",s+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",s+"-mask:hide"]}]};default:return{}}}Object(r.registerAction)("brush-reset-button",i.ButtonAction,{name:"brush-reset-button"}),Object(r.registerInteraction)("filter-action",{}),Object(r.registerInteraction)("brush",a("brush")),Object(r.registerInteraction)("brush-highlight",a("brush-highlight")),Object(r.registerInteraction)("brush-x",a("brush-x","x-rect")),Object(r.registerInteraction)("brush-y",a("brush-y","y-rect")),Object(r.registerInteraction)("brush-x-highlight",a("brush-x-highlight","x-rect")),Object(r.registerInteraction)("brush-y-highlight",a("brush-y-highlight","y-rect"))},function(t,e,n){"use strict";n.r(e),n.d(e,"PIE_STATISTIC",(function(){return a}));var r=n(13),i=n(1710),o=n(1711),a="pie-statistic";Object(r.registerAction)(a,o.StatisticAction),Object(r.registerInteraction)("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),Object(r.registerAction)("pie-legend",i.PieLegendAction),Object(r.registerInteraction)("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]})},function(t,e,n){"use strict";n.r(e);var r=n(768),i=n(315);e.default=function(){var t=1,e=1,n=0,o=!1;function a(a){var s=a.height+1;return a.x0=a.y0=n,a.x1=t,a.y1=e/s,a.eachBefore(function(t,e){return function(r){r.children&&Object(i.default)(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var o=r.x0,a=r.y0,s=r.x1-n,u=r.y1-n;s<o&&(o=s=(o+s)/2),u<a&&(a=u=(a+u)/2),r.x0=o,r.y0=a,r.x1=s,r.y1=u}}(e,s)),o&&a.eachBefore(r.default),a}return a.round=function(t){return arguments.length?(o=!!t,a):o},a.size=function(n){return arguments.length?(t=+n[0],e=+n[1],a):[t,e]},a.padding=function(t){return arguments.length?(n=+t,a):n},a}},function(t,e,n){"use strict";n.r(e);var r=n(684),i=n(435),o=n(215);function a(t){return Math.sqrt(t.value)}function s(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function u(t,e){return function(n){if(i=n.children){var i,o,a,s=i.length,u=t(n)*e||0;if(u)for(o=0;o<s;++o)i[o].r+=u;if(a=Object(r.packEnclose)(i),u)for(o=0;o<s;++o)i[o].r-=u;n.r=a+u}}}function l(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}e.default=function(){var t=null,e=1,n=1,r=o.constantZero;function c(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(s(t)).eachAfter(u(r,.5)).eachBefore(l(1)):i.eachBefore(s(a)).eachAfter(u(o.constantZero,1)).eachAfter(u(r,i.r/Math.min(e,n))).eachBefore(l(Math.min(e,n)/(2*i.r))),i}return c.radius=function(e){return arguments.length?(t=Object(i.optional)(e),c):t},c.size=function(t){return arguments.length?(e=+t[0],n=+t[1],c):[e,n]},c.padding=function(t){return arguments.length?(r="function"==typeof t?t:Object(o.default)(+t),c):r},c}},function(t,e,n){"use strict";n.r(e);var r=n(768),i=n(424),o=n(435),a=n(215);e.default=function(){var t=i.default,e=!1,n=1,s=1,u=[0],l=a.constantZero,c=a.constantZero,h=a.constantZero,f=a.constantZero,d=a.constantZero;function p(t){return t.x0=t.y0=0,t.x1=n,t.y1=s,t.eachBefore(g),u=[0],e&&t.eachBefore(r.default),t}function g(e){var n=u[e.depth],r=e.x0+n,i=e.y0+n,o=e.x1-n,a=e.y1-n;o<r&&(r=o=(r+o)/2),a<i&&(i=a=(i+a)/2),e.x0=r,e.y0=i,e.x1=o,e.y1=a,e.children&&(n=u[e.depth+1]=l(e)/2,r+=d(e)-n,i+=c(e)-n,(o-=h(e)-n)<r&&(r=o=(r+o)/2),(a-=f(e)-n)<i&&(i=a=(i+a)/2),t(e,r,i,o,a))}return p.round=function(t){return arguments.length?(e=!!t,p):e},p.size=function(t){return arguments.length?(n=+t[0],s=+t[1],p):[n,s]},p.tile=function(e){return arguments.length?(t=Object(o.required)(e),p):t},p.padding=function(t){return arguments.length?p.paddingInner(t).paddingOuter(t):p.paddingInner()},p.paddingInner=function(t){return arguments.length?(l="function"==typeof t?t:Object(a.default)(+t),p):l},p.paddingOuter=function(t){return arguments.length?p.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):p.paddingTop()},p.paddingTop=function(t){return arguments.length?(c="function"==typeof t?t:Object(a.default)(+t),p):c},p.paddingRight=function(t){return arguments.length?(h="function"==typeof t?t:Object(a.default)(+t),p):h},p.paddingBottom=function(t){return arguments.length?(f="function"==typeof t?t:Object(a.default)(+t),p):f},p.paddingLeft=function(t){return arguments.length?(d="function"==typeof t?t:Object(a.default)(+t),p):d},p}},function(t,e,n){var r=n(2137)("toUpperCase");t.exports=r},function(t,e,n){"use strict";n.r(e),n.d(e,"buildTransformer",(function(){return o}));var r=Math.log(2);function i(t,e,n,o,a,s){var u=o+"-"+a,l=t.length;if(s.hasOwnProperty(u))return s[u];if(1===e){var c=Math.round(Math.log((1<<l)-1&~a)/r);return t[n][c]}for(var h=o|1<<n,f=n+1;o&1<<f;)f++;for(var d=0,p=0,g=0;p<l;p++){var v=1<<p;v&a||(d+=(g%2?-1:1)*t[n][p]*i(t,e-1,f,h,a|v,s),g++)}return s[u]=d,d}function o(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},o=i(n,8,0,0,0,r);if(0!==o){for(var a=[],s=0;s<8;s++)for(var u=0;u<8;u++)null==a[u]&&(a[u]=0),a[u]+=((s+u)%2?-1:1)*i(n,7,0===s?1:0,1<<s,1<<u,r)/o*e[s];return function(t,e,n){var r=e*a[6]+n*a[7]+1;t[0]=(e*a[0]+n*a[1]+a[2])/r,t[1]=(e*a[3]+n*a[4]+a[5])/r}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return d}));var r=n(0),i=n(1338),o=n(9);function a(t){t&&Object(r.each)(s,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var s=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],u=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],l=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function c(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<l.length;n++){var r=l[n][1],i=l[n][0];null!=e[r]&&(e[i]=e[r])}}function h(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function f(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function d(t,e){Object(i.default)(t,e),t.series=Object(o.normalizeToArray)(t.series),Object(r.each)(t.series,(function(t){if(Object(r.isObject)(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise),h(t.label),(o=t.data)&&!Object(r.isTypedArray)(o))for(var n=0;n<o.length;n++)h(o[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=function(t,e){for(var n=e.split(","),r=t,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(t,"pointer.color");null!=i&&function(t,e,n,r){for(var i,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[i=o[s]]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}(t,"itemStyle.color",i)}else if("bar"===e){var o;if(c(t),c(t.backgroundStyle),c(t.emphasis),(o=t.data)&&!Object(r.isTypedArray)(o))for(n=0;n<o.length;n++)"object"==typeof o[n]&&(c(o[n]),c(o[n]&&o[n].emphasis))}else if("sunburst"===e){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),f(t),function t(e,n){if(e)for(var r=0;r<e.length;r++)n(e[r]),e[r]&&t(e[r].children,n)}(t.data,f)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Object(r.defaults)(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),a(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Object(r.each)(u,(function(e){var n=t[e];n&&(Object(r.isArray)(n)||(n=[n]),Object(r.each)(n,(function(t){a(t)})))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"contain",(function(){return y})),n.d(e,"containStroke",(function(){return b}));var r=n(151),i=n(340),o=n(1341),a=n(697),s=n(1342),u=n(53),l=n(303),c=r.default.CMD,h=2*Math.PI;var f=[-1,-1,-1],d=[-1,-1];function p(t,e,n,r,i,o,a,s,l,c){if(c>e&&c>r&&c>o&&c>s||c<e&&c<r&&c<o&&c<s)return 0;var h,p=u.cubicRootAt(e,r,o,s,c,f);if(0===p)return 0;for(var g=0,v=-1,m=void 0,y=void 0,b=0;b<p;b++){var _=f[b],x=0===_||1===_?.5:1;u.cubicAt(t,n,i,a,_)<l||(v<0&&(v=u.cubicExtrema(e,r,o,s,d),d[1]<d[0]&&v>1&&(h=void 0,h=d[0],d[0]=d[1],d[1]=h),m=u.cubicAt(e,r,o,s,d[0]),v>1&&(y=u.cubicAt(e,r,o,s,d[1]))),2===v?_<d[0]?g+=m<e?x:-x:_<d[1]?g+=y<m?x:-x:g+=s<y?x:-x:_<d[0]?g+=m<e?x:-x:g+=s<m?x:-x)}return g}function g(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=u.quadraticRootAt(e,r,o,s,f);if(0===l)return 0;var c=u.quadraticExtremum(e,r,o);if(c>=0&&c<=1){for(var h=0,d=u.quadraticAt(e,r,o,c),p=0;p<l;p++){var g=0===f[p]||1===f[p]?.5:1;u.quadraticAt(t,n,i,f[p])<a||(f[p]<c?h+=d<e?g:-g:h+=o<d?g:-g)}return h}g=0===f[0]||1===f[0]?.5:1;return u.quadraticAt(t,n,i,f[0])<a?0:o<e?g:-g}function v(t,e,n,r,i,o,a,s){if((s-=e)>n||s<-n)return 0;var u=Math.sqrt(n*n-s*s);f[0]=-u,f[1]=u;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=h-1e-4){r=0,i=h;var c=o?1:-1;return a>=f[0]+t&&a<=f[1]+t?c:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=h,i+=h);for(var p=0,g=0;g<2;g++){var v=f[g];if(v+t>a){var m=Math.atan2(s,v);c=o?1:-1;m<0&&(m=h+m),(m>=r&&m<=i||m+h>=r&&m+h<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),p+=c)}}return p}function m(t,e,n,r,u){for(var h,f,d,m,y=t.data,b=t.len(),_=0,x=0,w=0,O=0,S=0,C=0;C<b;){var E=y[C++],T=1===C;switch(E===c.M&&C>1&&(n||(_+=Object(l.default)(x,w,O,S,r,u))),T&&(O=x=y[C],S=w=y[C+1]),E){case c.M:x=O=y[C++],w=S=y[C++];break;case c.L:if(n){if(i.containStroke(x,w,y[C],y[C+1],e,r,u))return!0}else _+=Object(l.default)(x,w,y[C],y[C+1],r,u)||0;x=y[C++],w=y[C++];break;case c.C:if(n){if(o.containStroke(x,w,y[C++],y[C++],y[C++],y[C++],y[C],y[C+1],e,r,u))return!0}else _+=p(x,w,y[C++],y[C++],y[C++],y[C++],y[C],y[C+1],r,u)||0;x=y[C++],w=y[C++];break;case c.Q:if(n){if(a.containStroke(x,w,y[C++],y[C++],y[C],y[C+1],e,r,u))return!0}else _+=g(x,w,y[C++],y[C++],y[C],y[C+1],r,u)||0;x=y[C++],w=y[C++];break;case c.A:var A=y[C++],M=y[C++],I=y[C++],j=y[C++],k=y[C++],P=y[C++];C+=1;var L=!!(1-y[C++]);h=Math.cos(k)*I+A,f=Math.sin(k)*j+M,T?(O=h,S=f):_+=Object(l.default)(x,w,h,f,r,u);var R=(r-A)*j/I+A;if(n){if(s.containStroke(A,M,j,k,k+P,L,e,R,u))return!0}else _+=v(A,M,j,k,k+P,L,R,u);x=Math.cos(k+P)*I+A,w=Math.sin(k+P)*j+M;break;case c.R:if(O=x=y[C++],S=w=y[C++],h=O+y[C++],f=S+y[C++],n){if(i.containStroke(O,S,h,S,e,r,u)||i.containStroke(h,S,h,f,e,r,u)||i.containStroke(h,f,O,f,e,r,u)||i.containStroke(O,f,O,S,e,r,u))return!0}else _+=Object(l.default)(h,S,h,f,r,u),_+=Object(l.default)(O,f,O,S,r,u);break;case c.Z:if(n){if(i.containStroke(x,w,O,S,e,r,u))return!0}else _+=Object(l.default)(x,w,O,S,r,u);x=O,w=S}}return n||(d=w,m=S,Math.abs(d-m)<1e-4)||(_+=Object(l.default)(x,w,O,S,r,u)||0),0!==_}function y(t,e,n){return m(t,0,!1,e,n)}function b(t,e,n,r){return m(t,e,!0,n,r)}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(395),o=n(111),a=n(698),s=n(700),u=n(9),l=function(){function t(t,e,n,i){this._stageTaskMap=Object(r.createHashMap)(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData().count(),i=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(r.createHashMap)();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(r.each)(this._allHandlers,(function(i){var o=t.get(i.uid)||t.set(i.uid,{});Object(r.assert)(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,o,e,n),i.overallReset&&this._createOverallStageTask(i,o,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var o=!1,a=this;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(r.each)(t,(function(t,r){if(!i.visualType||i.visualType===t.visualType){var u=a._stageTaskMap.get(t.uid),l=u.seriesTaskMap,c=u.overallTask;if(c){var h,f=c.agentStubMap;f.each((function(t){s(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),a.updatePayload(c,n);var d=a.getPerformArgs(c,i.block);f.each((function(t){t.perform(d)})),c.perform(d)&&(o=!0)}else l&&l.each((function(r,u){s(i,r)&&r.dirty();var l=a.getPerformArgs(r,i.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(r.context.model),a.updatePayload(r,n),r.perform(l)&&(o=!0)}))}})),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,o){var a=this,s=e.seriesTaskMap,u=e.seriesTaskMap=Object(r.createHashMap)(),l=t.seriesType,c=t.getTargetSeries;function h(e){var r=e.uid,l=u.set(r,s&&s.get(r)||Object(i.createTask)({plan:p,reset:g,count:y}));l.context={model:e,ecModel:n,api:o,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(h):l?n.eachRawSeriesByType(l,h):c&&c(n,o).each(h)},t.prototype._createOverallStageTask=function(t,e,n,o){var a=this,s=e.overallTask=e.overallTask||Object(i.createTask)({reset:c});s.context={ecModel:n,api:o,overallReset:t.overallReset,scheduler:a};var u=s.agentStubMap,l=s.agentStubMap=Object(r.createHashMap)(),f=t.seriesType,p=t.getTargetSeries,g=!0,v=!1;function m(t){var e=t.uid,n=l.set(e,u&&u.get(e)||(v=!0,Object(i.createTask)({reset:h,onDirty:d})));n.context={model:t,overallProgress:g},n.agent=s,n.__block=g,a._pipe(t,n)}Object(r.assert)(!t.createOnAllSeries,""),f?n.eachRawSeriesByType(f,m):p?p(n,o).each(m):(g=!1,Object(r.each)(n.getSeries(),m)),v&&s.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Object(r.isFunction)(t)&&(t={overallReset:t,seriesType:b(t)}),t.uid=Object(o.getUID)("stageHandler"),e&&(t.visualType=e),t},t}();function c(t){t.overallReset(t.ecModel,t.api,t.payload)}function h(t){return t.overallProgress&&f}function f(){this.agent.dirty(),this.getDownstream().dirty()}function d(){this.agent&&this.agent.dirty()}function p(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function g(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Object(u.normalizeToArray)(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(r.map)(e,(function(t,e){return m(e)})):v}var v=m(0);function m(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function y(t){return t.data.count()}function b(t){_=null;try{t(x,w)}catch(t){}return _}var _,x={},w={};function O(t,e){for(var n in e.prototype)t[n]=r.noop}O(x,a.default),O(w,s.default),x.eachSeriesByType=x.eachRawSeriesByType=function(t){_=t},x.eachComponent=function(t){"series"===t.mainType&&t.subType&&(_=t.subType)},e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return l}));var r=n(151),i=n(18),o=r.default.CMD,a=[[],[],[]],s=Math.sqrt,u=Math.atan2;function l(t,e){if(e){var n,r,l,c,h,f,d=t.data,p=t.len(),g=o.M,v=o.C,m=o.L,y=o.R,b=o.A,_=o.Q;for(l=0,c=0;l<p;){switch(n=d[l++],c=l,r=0,n){case g:case m:r=1;break;case v:r=3;break;case _:r=2;break;case b:var x=e[4],w=e[5],O=s(e[0]*e[0]+e[1]*e[1]),S=s(e[2]*e[2]+e[3]*e[3]),C=u(-e[1]/S,e[0]/O);d[l]*=O,d[l++]+=x,d[l]*=S,d[l++]+=w,d[l++]*=O,d[l++]*=S,d[l++]+=C,d[l++]+=C,c=l+=2;break;case y:f[0]=d[l++],f[1]=d[l++],Object(i.applyTransform)(f,f,e),d[c++]=f[0],d[c++]=f[1],f[0]+=d[l++],f[1]+=d[l++],Object(i.applyTransform)(f,f,e),d[c++]=f[0],d[c++]=f[1]}for(h=0;h<r;h++){var E=a[h];E[0]=d[l++],E[1]=d[l++],Object(i.applyTransform)(E,E,e),d[c++]=E[0],d[c++]=E[1]}}t.increaseVersion()}}},function(t,e,n){"use strict";n.r(e),n.d(e,"seriesSymbolTask",(function(){return a})),n.d(e,"dataSymbolTask",(function(){return s}));var r=n(0),i=["symbol","symbolSize","symbolRotate","symbolOffset"],o=i.concat(["symbolKeepAspect"]),a={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var o={},a={},s=!1,u=0;u<i.length;u++){var l=i[u],c=t.get(l);Object(r.isFunction)(c)?(s=!0,a[l]=c):o[l]=c}if(o.symbol=o.symbol||t.defaultSymbol,n.setVisual(Object(r.extend)({legendIcon:t.legendIcon||o.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},o)),!e.isSeriesFiltered(t)){var h=Object(r.keys)(a);return{dataEach:s?function(e,n){for(var r=t.getRawValue(n),i=t.getDataParams(n),o=0;o<h.length;o++){var s=h[o];e.setItemVisual(n,s,a[s](r,i))}}:null}}}}},s={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),r=0;r<o.length;r++){var i=o[r],a=n.getShallow(i,!0);null!=a&&t.setItemVisual(e,i,a)}}:null}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"installLabelLayout",(function(){return a}));var r=n(9),i=n(1358),o=Object(r.makeInner)();function a(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=o(e).labelManager;r||(r=o(e).labelManager=new i.default),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=o(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"updateAttrs",(function(){return p})),n.d(e,"default",(function(){return v}));var r=n(0),i=n(99),o=n(161),a=Object(i.createVNode)("","");function s(t){return void 0===t}function u(t){return void 0!==t}function l(t,e,n){for(var r={},i=e;i<=n;++i){var o=t[i].key;void 0!==o&&(r[o]=i)}return r}function c(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function h(t){var e,n=t.children,s=t.tag;if(u(s)){var l=t.elm=Object(i.createElement)(s);if(p(a,t),Object(r.isArray)(n))for(e=0;e<n.length;++e){var c=n[e];null!=c&&o.appendChild(l,h(c))}else u(t.text)&&!Object(r.isObject)(t.text)&&o.appendChild(l,o.createTextNode(t.text))}else t.elm=o.createTextNode(t.text);return t.elm}function f(t,e,n,r,i){for(;r<=i;++r){var a=n[r];null!=a&&o.insertBefore(t,h(a),e)}}function d(t,e,n,r){for(;n<=r;++n){var i=e[n];if(null!=i)if(u(i.tag)){var a=o.parentNode(i.elm);o.removeChild(a,i.elm)}else o.removeChild(t,i.elm)}}function p(t,e){var n,r=e.elm,o=t&&t.attrs||{},a=e.attrs||{};if(o!==a){for(n in a){var s=a[n];o[n]!==s&&(!0===s?r.setAttribute(n,""):!1===s?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,s):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS(i.XMLNS,n,s):58===n.charCodeAt(3)?r.setAttributeNS(i.XML_NAMESPACE,n,s):58===n.charCodeAt(5)?r.setAttributeNS(i.XLINKNS,n,s):r.setAttribute(n,s))}for(n in o)n in a||r.removeAttribute(n)}}function g(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(p(t,e),s(e.text)?u(r)&&u(i)?r!==i&&function(t,e,n){for(var r,i,a,u=0,p=0,v=e.length-1,m=e[0],y=e[v],b=n.length-1,_=n[0],x=n[b];u<=v&&p<=b;)null==m?m=e[++u]:null==y?y=e[--v]:null==_?_=n[++p]:null==x?x=n[--b]:c(m,_)?(g(m,_),m=e[++u],_=n[++p]):c(y,x)?(g(y,x),y=e[--v],x=n[--b]):c(m,x)?(g(m,x),o.insertBefore(t,m.elm,o.nextSibling(y.elm)),m=e[++u],x=n[--b]):c(y,_)?(g(y,_),o.insertBefore(t,y.elm,m.elm),y=e[--v],_=n[++p]):(s(r)&&(r=l(e,u,v)),s(i=r[_.key])||(a=e[i]).tag!==_.tag?o.insertBefore(t,h(_),m.elm):(g(a,_),e[i]=void 0,o.insertBefore(t,a.elm,m.elm)),_=n[++p]);(u<=v||p<=b)&&(u>v?f(t,null==n[b+1]?null:n[b+1].elm,n,p,b):d(t,e,u,v))}(n,r,i):u(i)?(u(t.text)&&o.setTextContent(n,""),f(n,null,i,0,i.length-1)):u(r)?d(n,r,0,r.length-1):u(t.text)&&o.setTextContent(n,""):t.text!==e.text&&(u(r)&&d(n,r,0,r.length-1),o.setTextContent(n,e.text)))}function v(t,e){if(c(t,e))g(t,e);else{var n=t.elm,r=o.parentNode(n);h(e),null!==r&&(o.insertBefore(r,e.elm,o.nextSibling(n)),d(r,[t],0,0))}return e}},function(t,e,n){"use strict";n.r(e),n.d(e,"createSectorCalculateTextPosition",(function(){return o})),n.d(e,"setSectorTextRotation",(function(){return a}));var r=n(60),i=n(0);function o(t,e){var n=(e=e||{}).isRoundCap;return function(e,i,o){var a=i.position;if(!a||a instanceof Array)return Object(r.calculateTextPosition)(e,i,o);var l=t(a),c=null!=i.distance?i.distance:5,h=this.shape,f=h.cx,d=h.cy,p=h.r,g=h.r0,v=(p+g)/2,m=h.startAngle,y=h.endAngle,b=(m+y)/2,_=n?Math.abs(p-g)/2:0,x=Math.cos,w=Math.sin,O=f+p*x(m),S=d+p*w(m),C="left",E="top";switch(l){case"startArc":O=f+(g-c)*x(b),S=d+(g-c)*w(b),C="center",E="top";break;case"insideStartArc":O=f+(g+c)*x(b),S=d+(g+c)*w(b),C="center",E="bottom";break;case"startAngle":O=f+v*x(m)+s(m,c+_,!1),S=d+v*w(m)+u(m,c+_,!1),C="right",E="middle";break;case"insideStartAngle":O=f+v*x(m)+s(m,-c+_,!1),S=d+v*w(m)+u(m,-c+_,!1),C="left",E="middle";break;case"middle":O=f+v*x(b),S=d+v*w(b),C="center",E="middle";break;case"endArc":O=f+(p+c)*x(b),S=d+(p+c)*w(b),C="center",E="bottom";break;case"insideEndArc":O=f+(p-c)*x(b),S=d+(p-c)*w(b),C="center",E="top";break;case"endAngle":O=f+v*x(y)+s(y,c+_,!0),S=d+v*w(y)+u(y,c+_,!0),C="left",E="middle";break;case"insideEndAngle":O=f+v*x(y)+s(y,-c+_,!0),S=d+v*w(y)+u(y,-c+_,!0),C="right",E="middle";break;default:return Object(r.calculateTextPosition)(e,i,o)}return(e=e||{}).x=O,e.y=S,e.align=C,e.verticalAlign=E,e}}function a(t,e,n,r){if(Object(i.isNumber)(r))t.setTextConfig({rotation:r});else if(Object(i.isArray)(e))t.setTextConfig({rotation:0});else{var o,a=t.shape,s=a.clockwise?a.startAngle:a.endAngle,u=a.clockwise?a.endAngle:a.startAngle,l=(s+u)/2,c=n(e);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=l;break;case"startAngle":case"insideStartAngle":o=s;break;case"endAngle":case"insideEndAngle":o=u;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-o;"middle"===c&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}}function s(t,e,n){return e*Math.sin(t)*(n?-1:1)}function u(t,e,n){return e*Math.cos(t)*(n?1:-1)}},function(t,e,n){"use strict";n.r(e),n.d(e,"CartesianAxisModel",(function(){return u}));var r=n(5),i=n(0),o=n(41),a=n(264),s=n(9),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",s.SINGLE_REFERRING).models[0]},e.type="cartesian2dAxis",e}(o.default);i.mixin(u,a.AxisModelCommonMixin),e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"CartesianXAxisView",(function(){return m})),n.d(e,"CartesianYAxisView",(function(){return y}));var r=n(5),i=n(0),o=n(40),a=n(12),s=n(157),u=n(186),l=n(221),c=n(338),h=n(517),f=n(123),d=["axisLine","axisTickLabel","axisName"],p=["splitArea","splitLine","minorSplitLine"],g=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return Object(r.__extends)(e,t),e.prototype.render=function(e,n,r,s){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new o.default,this.group.add(this._axisGroup),e.get("show")){var h=e.getCoordSysModel(),g=c.layout(h,e),m=new u.default(e,i.extend({handleAutoShown:function(t){for(var n=h.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(Object(f.isIntervalOrLogScale)(n[r].getOtherAxis(e.axis).scale))return!0;return!1}},g));i.each(d,m.add,m),this._axisGroup.add(m.getGroup()),i.each(p,(function(t){e.get([t,"show"])&&v[t](this,this._axisGroup,e,h)}),this),s&&"changeAxisOrder"===s.type&&s.isInitSort||a.groupTransition(l,this._axisGroup,e),t.prototype.render.call(this,e,n,r,s)}},e.prototype.remove=function(){Object(h.rectCoordAxisHandleRemove)(this)},e.type="cartesianAxis",e}(l.default),v={splitLine:function(t,e,n,r){var o=n.axis;if(!o.scale.isBlank()){var u=n.getModel("splitLine"),l=u.getModel("lineStyle"),c=l.get("color");c=i.isArray(c)?c:[c];for(var h=r.coordinateSystem.getRect(),f=o.isHorizontal(),d=0,p=o.getTicksCoords({tickModel:u}),g=[],v=[],m=l.getLineStyle(),y=0;y<p.length;y++){var b=o.toGlobalCoord(p[y].coord);f?(g[0]=b,g[1]=h.y,v[0]=b,v[1]=h.y+h.height):(g[0]=h.x,g[1]=b,v[0]=h.x+h.width,v[1]=b);var _=d++%c.length,x=p[y].tickValue,w=new s.default({anid:null!=x?"line_"+p[y].tickValue:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},style:i.defaults({stroke:c[_]},m),silent:!0});a.subPixelOptimizeLine(w.shape,m.lineWidth),e.add(w)}}},minorSplitLine:function(t,e,n,r){var i=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),u=r.coordinateSystem.getRect(),l=i.isHorizontal(),c=i.getMinorTicksCoords();if(c.length)for(var h=[],f=[],d=o.getLineStyle(),p=0;p<c.length;p++)for(var g=0;g<c[p].length;g++){var v=i.toGlobalCoord(c[p][g].coord);l?(h[0]=v,h[1]=u.y,f[0]=v,f[1]=u.y+u.height):(h[0]=u.x,h[1]=v,f[0]=u.x+u.width,f[1]=v);var m=new s.default({anid:"minor_line_"+c[p][g].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:f[0],y2:f[1]},style:d,silent:!0});a.subPixelOptimizeLine(m.shape,d.lineWidth),e.add(m)}},splitArea:function(t,e,n,r){Object(h.rectCoordAxisBuildSplitArea)(t,e,n,r)}},m=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.type="xAxis",e}(g),y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=m.type,e}return Object(r.__extends)(e,t),e.type="yAxis",e}(g);e.default=g},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return c}));var r=n(1393),i=n(713),o=n(0),a=n(477),s=n(1394),u=n(210);function l(t,e,n){u.default.registerMap(t,e,n)}function c(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var a=n.coordinateSystem;Object(o.each)(a.regions,(function(t){r[t.name]=n.isSelected(t.name)||!1}));var s=[];Object(o.each)(r,(function(t,e){r[e]&&s.push(e)})),i.push({geoIndex:n.componentIndex,name:s})})),{selected:r,allSelected:i,name:t.name}}))}t.registerCoordinateSystem("geo",i.default),t.registerComponentModel(r.default),t.registerComponentView(s.default),t.registerImpl("registerMap",l),t.registerImpl("getMap",(function(t){return u.default.getMapForUser(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var r=t.componentType||"series";e.eachComponent({mainType:r,query:t},(function(e){var i=e.coordinateSystem;if("geo"===i.type){var s=Object(a.updateCenterAndZoom)(i,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(s.center),e.setZoom&&e.setZoom(s.zoom),"series"===r&&Object(o.each)(e.seriesGroup,(function(t){t.setCenter(s.center),t.setZoom(s.zoom)}))}}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"makeViewBoxTransform",(function(){return B})),n.d(e,"parseSVG",(function(){return F}));var r,i=n(40),o=n(114),a=n(250),s=n(79),u=n(458),l=n(157),c=n(180),h=n(191),f=n(42),d=n(268),p=n(0),g=n(352),v=n(552),m=n(354),y=n(558);n.d(e,"parseXML",(function(){return y.parseXML}));var b={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},_=Object(p.keys)(b),x={"alignment-baseline":"textBaseline","stop-color":"stopColor"},w=Object(p.keys)(x),O=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=Object(y.parseXML)(t);this._defsUsePending=[];var r=new i.default;this._root=r;var o=[],a=n.getAttribute("viewBox")||"",u=parseFloat(n.getAttribute("width")||e.width),l=parseFloat(n.getAttribute("height")||e.height);isNaN(u)&&(u=null),isNaN(l)&&(l=null),M(n,r,null,!0,!1);for(var c,h,f=n.firstChild;f;)this._parseNode(f,r,o,null,!1,!1),f=f.nextSibling;if(function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],a){var d=P(a);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&null!=u&&null!=l&&(h=B(c,{x:0,y:0,width:u,height:l}),!e.ignoreViewBox)){var p=r;(r=new i.default).add(p),p.scaleX=p.scaleY=h.scale,p.x=h.x,p.y=h.y}return e.ignoreRootClip||null==u||null==l||r.setClipPath(new s.default({shape:{x:0,y:0,width:u,height:l}})),{root:r,width:u,height:l,viewBoxRect:c,viewBoxTransform:h,named:o}},t.prototype._parseNode=function(t,e,n,i,o,a){var s,u=t.nodeName.toLowerCase(),l=i;if("defs"===u&&(o=!0),"text"===u&&(a=!0),"defs"===u||"switch"===u)s=e;else{if(!o){var c=r[u];if(c&&Object(p.hasOwn)(r,u)){s=c.call(this,t,e);var h=t.getAttribute("name");if(h){var f={name:h,namedFrom:null,svgNodeTagLower:u,el:s};n.push(f),"g"===u&&(l=f)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:u,el:s});e.add(s)}}var d=S[u];if(d&&Object(p.hasOwn)(S,u)){var g=d.call(this,t),v=t.getAttribute("id");v&&(this._defs[v]=g)}}if(s&&s.isGroup)for(var m=t.firstChild;m;)1===m.nodeType?this._parseNode(m,s,n,l,o,a):3===m.nodeType&&a&&this._parseText(m,s),m=m.nextSibling},t.prototype._parseText=function(t,e){var n=new m.default({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});T(e,n),M(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",t.style.textBaseline=i}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(r={g:function(t,e){var n=new i.default;return T(e,n),M(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new s.default;return T(e,n),M(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new a.default;return T(e,n),M(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new l.default;return T(e,n),M(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new u.default;return T(e,n),M(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,r=t.getAttribute("points");r&&(n=A(r));var i=new c.default({shape:{points:n||[]},silent:!0});return T(e,i),M(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=A(r));var i=new h.default({shape:{points:n||[]},silent:!0});return T(e,i),M(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new o.default;return T(e,n),M(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(r)+parseFloat(a);var s=new i.default;return T(e,s),M(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0",s=new i.default;return T(e,s),M(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(a),s},path:function(t,e){var n=t.getAttribute("d")||"",r=Object(d.createFromString)(n);return T(e,r),M(t,r,this._defsUsePending,!1,!1),r.silent=!0,r}}),t}(),S={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new g.default(e,n,r,i);return C(t,o),E(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new v.default(e,n,r);return C(t,i),E(t,i),i}};function C(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function E(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};N(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function T(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(p.defaults)(e.__inheritedStyle,t.__inheritedStyle))}function A(t){for(var e=P(t),n=[],r=0;r<e.length;r+=2){var i=parseFloat(e[r]),o=parseFloat(e[r+1]);n.push([i,o])}return n}function M(t,e,n,r,i){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(L,(function(t,e,n){return r.push(e,n),""}));for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],u=P(a);switch(i=i||f.create(),s){case"translate":f.translate(i,i,[parseFloat(u[0]),parseFloat(u[1]||"0")]);break;case"scale":f.scale(i,i,[parseFloat(u[0]),parseFloat(u[1]||u[0])]);break;case"rotate":f.rotate(i,i,-parseFloat(u[0])*R);break;case"skewX":var l=Math.tan(parseFloat(u[0])*R);f.mul(i,[1,0,l,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(u[0])*R);f.mul(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(u[0]),i[1]=parseFloat(u[1]),i[2]=parseFloat(u[2]),i[3]=parseFloat(u[3]),i[4]=parseFloat(u[4]),i[5]=parseFloat(u[5])}}e.setLocalTransform(i)}}(t,e),N(t,a,s),r||function(t,e,n){for(var r=0;r<_.length;r++){var i=_[r];null!=(o=t.getAttribute(i))&&(e[b[i]]=o)}for(r=0;r<w.length;r++){var o;i=w[r];null!=(o=t.getAttribute(i))&&(n[x[i]]=o)}}(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=j(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=j(o,"stroke",a.stroke,n)),Object(p.each)(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),Object(p.each)(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=Object(p.map)(P(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var I=/^url\(\s*#(.*?)\)/;function j(t,e,n,r){var i=n&&n.match(I);if(!i)return"none"===n&&(n=null),n;var o=Object(p.trim)(i[1]);r.push([t,e,o])}var k=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function P(t){return t.match(k)||[]}var L=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,R=Math.PI/180;var D=/([^\s:;]+)\s*:\s*([^:;]+)/g;function N(t,e,n){var r,i=t.getAttribute("style");if(i)for(D.lastIndex=0;null!=(r=D.exec(i));){var o=r[1],a=Object(p.hasOwn)(b,o)?b[o]:null;a&&(e[a]=r[2]);var s=Object(p.hasOwn)(x,o)?x[o]:null;s&&(n[s]=r[2])}}function B(t,e){var n=e.width/t.width,r=e.height/t.height,i=Math.min(n,r);return{scale:i,x:-(t.x+t.width/2)*i+(e.x+e.width/2),y:-(t.y+t.height/2)*i+(e.y+e.height/2)}}function F(t,e){return(new O).parse(t,e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return f}));var r=n(1434),i=n(1429),o=n(1430),a=n(1431),s=n(330),u=n(893),l=n(1435),c=n(1436),h={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function f(t){t.registerComponentView(i.default),t.registerComponentModel(o.default),t.registerCoordinateSystem("parallel",a.default),t.registerPreprocessor(r.default),t.registerComponentModel(u.default),t.registerComponentView(l.default),Object(s.default)(t,"parallel",u.default,h),Object(c.installParallelActions)(t)}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(41),a=n(242),s=n(6),u=n(264),l=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return Object(r.__extends)(e,t),e.prototype.getAreaSelectStyle=function(){return Object(a.default)([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=i.clone(t);if(e)for(var n=e.length-1;n>=0;n--)s.asc(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var r=0,i=e.length;r<i;r++)if(e[r][0]<=t&&t<=e[r][1])return"active";return"inactive"},e}(o.default);i.mixin(l,u.AxisModelCommonMixin),e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(72),a=n(23),s=n(190),u=n(11),l=n(27),c=n(31),h=n(400),f=n(296),d=function(t){function e(e,n,r,i){var a=t.call(this)||this;a.z2=2,a.textConfig={inside:!0},Object(c.getECData)(a).seriesIndex=n.seriesIndex;var s=new o.default({z2:4,silent:e.getModel().get(["label","silent"])});return a.setTextContent(s),a.updateData(!0,e,n,r,i),a}return Object(r.__extends)(e,t),e.prototype.updateData=function(t,e,n,r,o){this.node=e,e.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var s=this;Object(c.getECData)(s).dataIndex=e.dataIndex;var l=e.getModel(),d=l.getModel("emphasis"),p=e.getLayout(),g=i.extend({},p);g.label=null;var v=e.getVisual("style");v.lineJoin="bevel";var m=e.getVisual("decal");m&&(v.decal=Object(f.createOrUpdatePatternFromDecal)(m,o));var y=Object(h.getSectorCornerRadius)(l.getModel("itemStyle"),g,!0);i.extend(g,y),i.each(u.SPECIAL_STATES,(function(t){var e=s.ensureState(t),n=l.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var r=Object(h.getSectorCornerRadius)(n,g);r&&(e.shape=r)})),t?(s.setShape(g),s.shape.r=p.r0,a.updateProps(s,{shape:{r:p.r}},n,e.dataIndex)):(a.updateProps(s,{shape:g},n),Object(a.saveOldStyle)(s)),s.useStyle(v),this._updateLabel(n);var b=l.getShallow("cursor");b&&s.attr("cursor",b),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var _=d.get("focus"),x="ancestor"===_?e.getAncestorsIndices():"descendant"===_?e.getDescendantIndices():_;Object(u.toggleHoverEmphasis)(this,x,d.get("blurScope"),d.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),r=n.getModel("label"),o=this.node.getLayout(),a=o.endAngle-o.startAngle,s=(o.startAngle+o.endAngle)/2,c=Math.cos(s),h=Math.sin(s),f=this,d=f.getTextContent(),p=this.node.dataIndex,g=r.get("minAngle")/180*Math.PI,v=r.get("show")&&!(null!=g&&Math.abs(a)<g);function m(t,e){var n=t.get(e);return null==n?r.get(e):n}d.ignore=!v,i.each(u.DISPLAY_STATES,(function(r){var u="normal"===r?n.getModel("label"):n.getModel([r,"label"]),g="normal"===r,v=g?d:d.ensureState(r),y=t.getFormattedLabel(p,r);g&&(y=y||e.node.name),v.style=Object(l.createTextStyle)(u,{},null,"normal"!==r,!0),y&&(v.style.text=y);var b=u.get("show");null==b||g||(v.ignore=!b);var _,x=m(u,"position"),w=g?f:f.states[r],O=w.style.fill;w.textConfig={outsideFill:"inherit"===u.get("color")?O:null,inside:"outside"!==x};var S=m(u,"distance")||0,C=m(u,"align");"outside"===x?(_=o.r+S,C=s>Math.PI/2?"right":"left"):C&&"center"!==C?"left"===C?(_=o.r0+S,s>Math.PI/2&&(C="right")):"right"===C&&(_=o.r-S,s>Math.PI/2&&(C="left")):(_=a===2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,C="center"),v.style.align=C,v.style.verticalAlign=m(u,"verticalAlign")||"middle",v.x=_*c+o.cx,v.y=_*h+o.cy;var E=m(u,"rotate"),T=0;"radial"===E?(T=-s)<-Math.PI/2&&(T+=Math.PI):"tangential"===E?(T=Math.PI/2-s)>Math.PI/2?T-=Math.PI:T<-Math.PI/2&&(T+=Math.PI):i.isNumber(E)&&(T=E*Math.PI/180),v.rotation=T})),d.dirtyStyle()},e}(s.default);e.default=d},function(t,e,n){"use strict";n.r(e),n.d(e,"polarDimensions",(function(){return o}));var r=n(1487),i=n(1488),o=["radius","angle"],a=function(){function t(t){this.dimensions=o,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new r.default,this._angleAxis=new i.default,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===t&&e.push(n),r.scale.type===t&&e.push(r),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var u=Math.atan2(-n,e)/Math.PI*180,l=u<o?1:-1;u<o||u>a;)u+=360*l;return[s,u]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,r=e-this.cy,i=n*n+r*r-1e-4,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return s(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return s(e)===this?this.pointToData(n):null},t}();function s(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"PolarAxisModel",(function(){return u})),n.d(e,"AngleAxisModel",(function(){return l})),n.d(e,"RadiusAxisModel",(function(){return c}));var r=n(5),i=n(0),o=n(41),a=n(264),s=n(9),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",s.SINGLE_REFERRING).models[0]},e.type="polarAxis",e}(o.default);i.mixin(u,a.AxisModelCommonMixin);var l=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.type="angleAxis",e}(u),c=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.type="radiusAxis",e}(u)},function(t,e,n){"use strict";n.r(e),n.d(e,"singleDimensions",(function(){return s}));var r=n(1496),i=n(85),o=n(33),a=n(0),s=["single"],u=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=s,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var o=this.dimension,a=new r.default(o,i.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),s="category"===a.type;a.onBand=s&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();Object(a.each)(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),i.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=Object(o.getLayoutRect)({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),r=n?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(r[i],r[1-i]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),r=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord=i?function(t){return t-e}:function(t){return r-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),r[i]=e.toGlobalCoord(e.dataToCoord(+t)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},t.prototype.convertToPixel=function(t,e,n){return l(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return l(e)===this?this.pointToData(n):null},t}();function l(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(41),o=n(118),a=n(0),s=n(9),u=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],r=e.axisType,i=this._names=[];"category"===r?(t=[],Object(a.each)(n,(function(e,n){var r,o=Object(s.convertOptionIdName)(Object(s.getDataItemValue)(e),"");Object(a.isObject)(e)?(r=Object(a.clone)(e)).value=n:r=n,t.push(r),i.push(o)}))):t=n;var u={category:"ordinal",time:"time",value:"number"}[r]||"number";(this._data=new o.default([{name:"value",type:u}],this)).initData(t,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(i.default);e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return s}));var r=n(1542),i=n(1543),o=n(580),a=n(484);function s(t){Object(a.default)(t),t.registerComponentModel(r.default),t.registerComponentView(i.default),Object(o.installDataZoomRoamProcessor)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(1544),i=n(1545),o=n(484);function a(t){t.registerComponentModel(r.default),t.registerComponentView(i.default),Object(o.default)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(1546),i=n(1547),o=n(729);function a(t){t.registerComponentModel(r.default),t.registerComponentView(i.default),Object(o.default)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"visualMapActionInfo",(function(){return r})),n.d(e,"visualMapActionHander",(function(){return i}));var r={type:"selectDataRange",event:"dataRangeSelected",update:"update"},i=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(1550),i=n(1551),o=n(729);function a(t){t.registerComponentModel(r.default),t.registerComponentView(i.default),Object(o.default)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"isColorProp",(function(){return r})),n.d(e,"isGradientColor",(function(){return i}));var r=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},i=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"rgbBasis",(function(){return u})),n.d(e,"rgbBasisClosed",(function(){return l}));var r=n(372),i=n(732),o=n(1559),a=n(906);function s(t){return function(e){var n,i,o=e.length,a=new Array(o),s=new Array(o),u=new Array(o);for(n=0;n<o;++n)i=Object(r.rgb)(e[n]),a[n]=i.r||0,s[n]=i.g||0,u[n]=i.b||0;return a=t(a),s=t(s),u=t(u),i.opacity=1,function(t){return i.r=a(t),i.g=s(t),i.b=u(t),i+""}}}e.default=function t(e){var n=Object(a.gamma)(e);function i(t,e){var i=n((t=Object(r.rgb)(t)).r,(e=Object(r.rgb)(e)).r),o=n(t.g,e.g),s=n(t.b,e.b),u=Object(a.default)(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=o(e),t.b=s(e),t.opacity=u(e),t+""}}return i.gamma=t,i}(1);var u=s(i.default),l=s(o.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"hue",(function(){return o})),n.d(e,"gamma",(function(){return a})),n.d(e,"default",(function(){return s}));var r=n(522);function i(t,e){return function(n){return t+n*e}}function o(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(r.default)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Object(r.default)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?i(t,n):Object(r.default)(isNaN(t)?e:t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"genericArray",(function(){return o}));var r=n(521),i=n(523);function o(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=new Array(o),s=new Array(i);for(n=0;n<o;++n)a[n]=Object(r.default)(t[n],e[n]);for(;n<i;++n)s[n]=e[n];return function(t){for(n=0;n<o;++n)s[n]=a[n](t);return s}}e.default=function(t,e){return(Object(i.isNumberArray)(e)?i.default:o)(t,e)}},function(t,e,n){"use strict";n.r(e),e.default=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}},function(t,e,n){"use strict";n.r(e),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return Object(r.__extends)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(r,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),r=this.invertDim(t.y,"y");return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:n,y:r}},e}(n(377).default);e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"strLen",(function(){return r})),n.d(e,"charAtLength",(function(){return i})),n.d(e,"ellipsisString",(function(){return o}));function r(t){for(var e=0,n=0;n<t.length;n++)e+=i(t,n);return e}function i(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}function o(t,e,n){void 0===n&&(n="tail");var r=t.length,o="";if("tail"===n){for(var a=0,s=0;a<e;){if(!(a+i(t,s)<=e))break;o+=t[s],a+=i(t,s),s++}o+="…"}else if("head"===n){for(a=0,s=r-1;a<e;){if(!(a+i(t,s)<=e))break;o+=t[s],a+=i(t,s),s--}o="…"+o}else{for(var u="",l="",c=(a=0,0),h=r-1;a<e;){var f=i(t,c),d=!1;f+a<=e&&(u+=t[c],c++,a+=f,d=!0);var p=i(t,h);if(p+a<=e&&(l=t[h]+l,a+=p,h--,d=!0),!d)break}o=u+"…"+l}return o}},function(t,e,n){"use strict";n.r(e),n.d(e,"getLinePath",(function(){return s})),n.d(e,"getSmoothLinePath",(function(){return u})),n.d(e,"dataToPath",(function(){return l})),n.d(e,"getAreaLineY",(function(){return c})),n.d(e,"linePathToAreaPath",(function(){return h}));var r=n(2),i=n(207),o=n(312),a=n(1);function s(t){return function(t){return Object(a.map)(t,(function(t,e){return[0===e?"M":"L",t[0],t[1]]}))}(t)}function u(t){if(t.length<=2)return s(t);var e=[];Object(a.each)(t,(function(t){Object(a.isEqual)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=Object(i.catmullRom2Bezier)(e,!1),r=Object(a.head)(t),o=r[0],u=r[1];return n.unshift(["M",o,u]),n}function l(t,e,n,r){void 0===r&&(r=!0);var i=new o.Linear({values:t}),l=new o.Category({values:Object(a.map)(t,(function(t,e){return e}))}),c=Object(a.map)(t,(function(t,r){return[l.scale(r)*e,n-i.scale(t)*n]}));return r?u(c):s(c)}function c(t,e){var n=new o.Linear({values:t}),r=n.max<0?n.max:Math.max(0,n.min);return e-n.scale(r)*e}function h(t,e,n,i){var o=Object(r.__spreadArrays)(t),a=c(i,n);return o.push(["L",e,a]),o.push(["L",0,a]),o.push(["Z"]),o}},function(t,e,n){"use strict";n.r(e);var r={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}};e.default={get:function(t){return r[t]},register:function(t,e){r[t]=e},remove:function(t){delete r[t]},getAll:function(){return r}}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(120),o=function(){function t(t,e){this.cfg={};var n=Object(i.createSVGElement)("marker"),o=Object(r.uniqueId)("marker_");n.setAttribute("id",o);var a=Object(i.createSVGElement)("path");a.setAttribute("stroke",t.stroke||"none"),a.setAttribute("fill",t.fill||"none"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=o;var s=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===s?this._setDefaultPath(e,a):(this.cfg=s,this._setMarker(t.lineWidth,a)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,o=this.cfg.d;Object(r.isArray)(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),o&&n.setAttribute("refX",""+o/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"fixedOverlap",(function(){return a})),n.d(e,"overlap",(function(){return s}));var r=n(1),i=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,r=t.yGap,i=void 0===r?8:r;this.xGap=n,this.yGap=i}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.round(t.minX),i=Math.round(t.maxX),o=Math.round(t.minY),a=Math.round(t.maxY),s=r;s<=i;s+=1)if(n[s]){if(s===r||s===i){for(var u=o;u<=a;u++)if(n[s][u]){e=!1;break}}else if(n[s][o]||n[s][a]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),r=Math.round(t.maxX),i=Math.round(t.minY),o=Math.round(t.maxY),a=n;a<=r;a+=1)e[a]||(e[a]={});for(a=n;a<=r;a+=this.xGap){for(var s=i;s<=o;s+=this.yGap)e[a][s]=!0;e[a][o]=!0}if(1!==this.yGap)for(a=i;a<=o;a+=1)e[n][a]=!0,e[r][a]=!0;if(1!==this.xGap)for(a=n;a<=r;a+=1)e[a][i]=!0,e[a][o]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function o(t,e,n,r){var i=t.getCanvasBBox(),o=i.width,a=i.height,s={x:e,y:n,textAlign:"center"};switch(r){case 0:s.y-=a+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=a+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=a+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=a+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*a+2;break;case 6:s.y+=2*a+2;break;case 7:s.x+=o+1,s.textAlign="left";break;case 8:s.x-=o+1,s.textAlign="right"}return t.attr(s),t.getCanvasBBox()}function a(t,e,n,o){var a=new i;Object(r.each)(e,(function(t){(function(t,e,n){void 0===n&&(n=100);var r,i=t.attr(),o=i.x,a=i.y,s=t.getCanvasBBox(),u=Math.sqrt(s.width*s.width+s.height*s.height),l=1,c=0,h=0;if(e.hasGap(s))return e.fillGap(s),!0;for(var f,d,p=!1,g=0,v={};Math.min(Math.abs(c),Math.abs(h))<u&&g<n;)if(f=l+=-1,d=void 0,h=~~(r=[(d=.1*f)*Math.cos(d),d*Math.sin(d)])[1],((c=~~r[0])||h)&&!v["".concat(c,"-").concat(h)]&&(t.attr({x:o+c,y:a+h}),c+h<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),p=!0,v["".concat(c,"-").concat(h)]=!0;break}return p})(t.find((function(t){return"text"===t.get("type")})),a)||t.remove(!0)})),a.destroy()}function s(t,e,n,a){var s=new i;Object(r.each)(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),r=n.x,i=n.y,a=!1,u=0;u<=8;u++){var l=o(e,r,i,u);if(s.hasGap(l)){s.fillGap(l),a=!0;break}}a||t.remove(!0)})),s.destroy()}},function(t,e,n){"use strict";n.r(e),n.d(e,"fadeIn",(function(){return i})),n.d(e,"fadeOut",(function(){return o}));var r=n(1);function i(t,e,n){var i={fillOpacity:Object(r.isNil)(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:Object(r.isNil)(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:Object(r.isNil)(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(i,e)}function o(t,e,n){var r=e.easing,i=e.duration,o=e.delay;t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},i,r,(function(){t.remove(!0)}),o)}},function(t,e,n){"use strict";n.r(e),n.d(e,"scaleInX",(function(){return i})),n.d(e,"scaleInY",(function(){return o}));var r=n(25);function i(t,e,n){var i=t.getBBox(),o=t.get("origin").mappingData.points,a=o[0].y-o[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([a,s,1]);var u=r.ext.transform(t.getMatrix(),[["t",-a,-s],["s",.01,1],["t",a,s]]);t.setMatrix(u),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-a,-s],["s",100,1],["t",a,s]])},e)}function o(t,e,n){var i=t.getBBox(),o=t.get("origin").mappingData,a=(i.minX+i.maxX)/2,s=o.points,u=s[0].y-s[1].y<=0?i.maxY:i.minY;t.applyToMatrix([a,u,1]);var l=r.ext.transform(t.getMatrix(),[["t",-a,-u],["s",1,.01],["t",a,u]]);t.setMatrix(l),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-a,-u],["s",1,100],["t",a,u]])},e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"zoomIn",(function(){return s})),n.d(e,"zoomOut",(function(){return u}));var r=n(2),i=n(25),o=n(1);function a(t,e,n){if(t.isGroup())Object(o.each)(t.getChildren(),(function(t){a(t,e,n)}));else{var s=t.getBBox(),u=(s.minX+s.maxX)/2,l=(s.minY+s.maxY)/2;if(t.applyToMatrix([u,l,1]),"zoomIn"===n){var c=i.ext.transform(t.getMatrix(),[["t",-u,-l],["s",.01,.01],["t",u,l]]);t.setMatrix(c),t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-u,-l],["s",100,100],["t",u,l]])},e)}else t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-u,-l],["s",.01,.01],["t",u,l]])},Object(r.__assign)(Object(r.__assign)({},e),{callback:function(){t.remove(!0)}}))}}function s(t,e,n){a(t,e,"zoomIn")}function u(t,e,n){a(t,e,"zoomOut")}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1);function o(t){t.x=Object(i.clamp)(t.x,0,1),t.y=Object(i.clamp)(t.y,0,1)}var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(r.__extends)(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,r=this.dim,a=this.context.view.getCoordinate(),s=a.invert(Object(i.head)(n)),u=a.invert(Object(i.last)(n));return this.inPlot&&(o(s),o(u)),"x"===r?(t=a.convert({x:s.x,y:0}),e=a.convert({x:u.x,y:1})):(t=a.convert({x:0,y:s.y}),e=a.convert({x:1,y:u.y})),{start:t,end:e}},e}(n(751).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(95),a=n(24),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return Object(r.__extends)(e,t),e.prototype.filter=function(){Object(a.isMask)(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=Object(a.getMaskedElements)(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,o=e.map((function(t){return t.getModel().data})),s=Object(a.getSilbings)(t);Object(i.each)(s,(function(t){var e=Object(a.getElements)(t);Object(i.each)(e,(function(t){var e=t.getModel().data;Object(a.isInRecords)(o,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=Object(a.getSilbings)(e);Object(i.each)(n,(function(e){var n=Object(a.getSiblingMaskElements)(t.context,e,10),r=Object(a.getElements)(e);n&&Object(i.each)(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=Object(a.getSilbings)(this.context.view);Object(i.each)(t,(function(t){var e=Object(a.getElements)(t);Object(i.each)(e,(function(t){t.show()}))}))},e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"getViewLegendItems",(function(){return s}));var r=n(1),i=n(13),o=n(3),a=n(236);function s(t){var e=t.view,n=t.geometryOption,s=t.yField,u=t.legend,l=Object(r.get)(u,"marker"),c=Object(o.findGeometry)(e,Object(a.isLine)(n)?"line":"interval");if(!n.seriesField){var h=Object(r.get)(e,"options.scales."+s+".alias")||s,f=c.getAttribute("color"),d=e.getTheme().defaultColor;return f&&(d=i.Util.getMappingValue(f,h,Object(r.get)(f,["values",0],d))),[{value:s,name:h,marker:(Object(r.isFunction)(l)?l:!Object(r.isEmpty)(l)&&Object(o.deepAssign)({},{style:{stroke:d,fill:d}},l))||(Object(a.isLine)(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:d}}:{symbol:"square",style:{fill:d}}),isGeometry:!0,viewId:e.id}]}var p=c.getGroupAttributes();return Object(r.reduce)(p,(function(t,n){var r=i.Util.getLegendItems(e,c,n,e.getTheme(),l);return t.concat(r)}),[])}},function(t,e,n){"use strict";n.r(e),n.d(e,"doSliderFilter",(function(){return o}));var r=n(1),i=n(3),o=function(t,e){var n=e[0],o=e[1],a=t.getOptions().data,s=t.getXScale(),u=Object(r.size)(a);if(s&&u){var l=Object(r.valuesOfKey)(a,s.field),c=l,h=Object(r.size)(c),f=Math.floor(n*(h-1)),d=Math.floor(o*(h-1));t.filter(s.field,(function(t){var e=c.indexOf(t);return!(e>-1)||Object(i.isBetween)(e,f,d)})),t.getRootView().render(!0)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"venn",(function(){return o})),n.d(e,"distanceFromIntersectArea",(function(){return a})),n.d(e,"getDistanceMatrices",(function(){return s})),n.d(e,"bestInitialLayout",(function(){return u})),n.d(e,"constrainedMDSLayout",(function(){return l})),n.d(e,"greedyLayout",(function(){return c})),n.d(e,"lossFunction",(function(){return h})),n.d(e,"disjointCluster",(function(){return d})),n.d(e,"normalizeSolution",(function(){return g})),n.d(e,"scaleSolution",(function(){return v}));var r=n(285),i=n(184);function o(t,e){(e=e||{}).maxIterations=e.maxIterations||500;var n,i=e.initialLayout||u,o=e.lossFunction||h,a=i(t=function(t){t=t.slice();var e,n,r,i,o=[],a={};for(e=0;e<t.length;++e){var s=t[e];1==s.sets.length?o.push(s.sets[0]):2==s.sets.length&&(r=s.sets[0],i=s.sets[1],a[[r,i]]=!0,a[[i,r]]=!0)}for(o.sort((function(t,e){return t>e?1:-1})),e=0;e<o.length;++e)for(r=o[e],n=e+1;n<o.length;++n)i=o[n],[r,i]in a||t.push({sets:[r,i],size:0});return t}(t),e),s=[],l=[];for(n in a)a.hasOwnProperty(n)&&(s.push(a[n].x),s.push(a[n].y),l.push(n));for(var c=Object(r.nelderMead)((function(e){for(var n={},r=0;r<l.length;++r){var i=l[r];n[i]={x:e[2*r],y:e[2*r+1],radius:a[i].radius}}return o(n,t)}),s,e).x,f=0;f<l.length;++f)n=l[f],a[n].x=c[2*f],a[n].y=c[2*f+1];return a}function a(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+1e-10?Math.abs(t-e):Object(r.bisect)((function(r){return Object(i.circleOverlap)(t,e,r)-n}),0,t+e)}function s(t,e,n){var i=Object(r.zerosM)(e.length,e.length),o=Object(r.zerosM)(e.length,e.length);return t.filter((function(t){return 2==t.sets.length})).map((function(t){var r=n[t.sets[0]],s=n[t.sets[1]],u=a(Math.sqrt(e[r].size/Math.PI),Math.sqrt(e[s].size/Math.PI),t.size);i[r][s]=i[s][r]=u;var l=0;t.size+1e-10>=Math.min(e[r].size,e[s].size)?l=1:t.size<=1e-10&&(l=-1),o[r][s]=o[s][r]=l})),{distances:i,constraints:o}}function u(t,e){var n=c(t,e),r=e.lossFunction||h;if(t.length>=8){var i=l(t,e);r(i,t)+1e-8<r(n,t)&&(n=i)}return n}function l(t,e){var n,i=(e=e||{}).restarts||10,o=[],a={};for(n=0;n<t.length;++n){var u=t[n];1==u.sets.length&&(a[u.sets[0]]=o.length,o.push(u))}var l=s(t,o,a),c=l.distances,h=l.constraints,f=Object(r.norm2)(c.map(r.norm2))/c.length;c=c.map((function(t){return t.map((function(t){return t/f}))}));var d,p,g=function(t,e){return function(t,e,n,r){var i,o=0;for(i=0;i<e.length;++i)e[i]=0;for(i=0;i<n.length;++i)for(var a=t[2*i],s=t[2*i+1],u=i+1;u<n.length;++u){var l=t[2*u],c=t[2*u+1],h=n[i][u],f=r[i][u],d=(l-a)*(l-a)+(c-s)*(c-s),p=Math.sqrt(d),g=d-h*h;f>0&&p<=h||f<0&&p>=h||(o+=2*g*g,e[2*i]+=4*g*(a-l),e[2*i+1]+=4*g*(s-c),e[2*u]+=4*g*(l-a),e[2*u+1]+=4*g*(c-s))}return o}(t,e,c,h)};for(n=0;n<i;++n){var v=Object(r.zeros)(2*c.length).map(Math.random);p=Object(r.conjugateGradient)(g,v,e),(!d||p.fx<d.fx)&&(d=p)}var m=d.x,y={};for(n=0;n<o.length;++n){var b=o[n];y[b.sets[0]]={x:m[2*n]*f,y:m[2*n+1]*f,radius:Math.sqrt(b.size/Math.PI)}}if(e.history)for(n=0;n<e.history.length;++n)Object(r.scale)(e.history[n].x,f);return y}function c(t,e){for(var n,r=e&&e.lossFunction?e.lossFunction:h,o={},s={},u=0;u<t.length;++u){var l=t[u];1==l.sets.length&&(n=l.sets[0],o[n]={x:1e10,y:1e10,rowid:Object.keys(o).length,size:l.size,radius:Math.sqrt(l.size/Math.PI)},s[n]=[])}t=t.filter((function(t){return 2==t.sets.length}));for(u=0;u<t.length;++u){var c=t[u],f=c.hasOwnProperty("weight")?c.weight:1,d=c.sets[0],p=c.sets[1];c.size+1e-10>=Math.min(o[d].size,o[p].size)&&(f=0),s[d].push({set:p,size:c.size,weight:f}),s[p].push({set:d,size:c.size,weight:f})}var g=[];for(n in s)if(s.hasOwnProperty(n)){var v=0;for(u=0;u<s[n].length;++u)v+=s[n][u].size*s[n][u].weight;g.push({set:n,size:v})}function m(t,e){return e.size-t.size}g.sort(m);var y={};function b(t){return t.set in y}function _(t,e){o[e].x=t.x,o[e].y=t.y,y[e]=!0}_({x:0,y:0},g[0].set);for(u=1;u<g.length;++u){var x=g[u].set,w=s[x].filter(b);if(n=o[x],w.sort(m),0===w.length)throw"ERROR: missing pairwise overlap information";for(var O=[],S=0;S<w.length;++S){var C=o[w[S].set],E=a(n.radius,C.radius,w[S].size);O.push({x:C.x+E,y:C.y}),O.push({x:C.x-E,y:C.y}),O.push({y:C.y+E,x:C.x}),O.push({y:C.y-E,x:C.x});for(var T=S+1;T<w.length;++T)for(var A=o[w[T].set],M=a(n.radius,A.radius,w[T].size),I=Object(i.circleCircleIntersection)({x:C.x,y:C.y,radius:E},{x:A.x,y:A.y,radius:M}),j=0;j<I.length;++j)O.push(I[j])}var k=1e50,P=O[0];for(S=0;S<O.length;++S){o[x].x=O[S].x,o[x].y=O[S].y;var L=r(o,t);L<k&&(k=L,P=O[S])}_(P,x)}return o}function h(t,e){var n=0;for(var r=0;r<e.length;++r){var o=e[r],a=void 0;if(1!=o.sets.length){if(2==o.sets.length){var s=t[o.sets[0]],u=t[o.sets[1]];a=Object(i.circleOverlap)(s.radius,u.radius,Object(i.distance)(s,u))}else a=Object(i.intersectionArea)(o.sets.map((function(e){return t[e]})));n+=(o.hasOwnProperty("weight")?o.weight:1)*(a-o.size)*(a-o.size)}}return n}function f(t,e,n){var r;if(null===n?t.sort((function(t,e){return e.radius-t.radius})):t.sort(n),t.length>0){var o=t[0].x,a=t[0].y;for(r=0;r<t.length;++r)t[r].x-=o,t[r].y-=a}2==t.length&&(Object(i.distance)(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y));if(t.length>1){var s=Math.atan2(t[1].x,t[1].y)-e,u=void 0,l=void 0,c=Math.cos(s),h=Math.sin(s);for(r=0;r<t.length;++r)u=t[r].x,l=t[r].y,t[r].x=c*u-h*l,t[r].y=h*u+c*l}if(t.length>2){for(var f=Math.atan2(t[2].x,t[2].y)-e;f<0;)f+=2*Math.PI;for(;f>2*Math.PI;)f-=2*Math.PI;if(f>Math.PI){var d=t[1].y/(1e-10+t[1].x);for(r=0;r<t.length;++r){var p=(t[r].x+d*t[r].y)/(1+d*d);t[r].x=2*p-t[r].x,t[r].y=2*p*d-t[r].y}}}}function d(t){function e(t){return t.parent!==t&&(t.parent=e(t.parent)),t.parent}t.map((function(t){t.parent=t}));for(var n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r){var o=t[n].radius+t[r].radius;Object(i.distance)(t[n],t[r])+1e-10<o&&(a=t[r],s=t[n],u=void 0,l=void 0,u=e(a),l=e(s),u.parent=l)}var a,s,u,l,c,h={};for(n=0;n<t.length;++n)(c=e(t[n]).parent.setid)in h||(h[c]=[]),h[c].push(t[n]);t.map((function(t){delete t.parent}));var f=[];for(c in h)h.hasOwnProperty(c)&&f.push(h[c]);return f}function p(t){var e=function(e){return{max:Math.max.apply(null,t.map((function(t){return t[e]+t.radius}))),min:Math.min.apply(null,t.map((function(t){return t[e]-t.radius})))}};return{xRange:e("x"),yRange:e("y")}}function g(t,e,n){null===e&&(e=Math.PI/2);var r,i,o=[];for(i in t)if(t.hasOwnProperty(i)){var a=t[i];o.push({x:a.x,y:a.y,radius:a.radius,setid:i})}var s=d(o);for(r=0;r<s.length;++r){f(s[r],e,n);var u=p(s[r]);s[r].size=(u.xRange.max-u.xRange.min)*(u.yRange.max-u.yRange.min),s[r].bounds=u}s.sort((function(t,e){return e.size-t.size}));var l=(o=s[0]).bounds,c=(l.xRange.max-l.xRange.min)/50;function h(t,e,n){if(t){var r,i,a,s=t.bounds;e?r=l.xRange.max-s.xRange.min+c:(r=l.xRange.max-s.xRange.max,(a=(s.xRange.max-s.xRange.min)/2-(l.xRange.max-l.xRange.min)/2)<0&&(r+=a)),n?i=l.yRange.max-s.yRange.min+c:(i=l.yRange.max-s.yRange.max,(a=(s.yRange.max-s.yRange.min)/2-(l.yRange.max-l.yRange.min)/2)<0&&(i+=a));for(var u=0;u<t.length;++u)t[u].x+=r,t[u].y+=i,o.push(t[u])}}for(var g=1;g<s.length;)h(s[g],!0,!1),h(s[g+1],!1,!0),h(s[g+2],!0,!0),g+=3,l=p(o);var v={};for(r=0;r<o.length;++r)v[o[r].setid]=o[r];return v}function v(t,e,n,r){var i=[],o=[];for(var a in t)t.hasOwnProperty(a)&&(o.push(a),i.push(t[a]));e-=2*r,n-=2*r;var s=p(i),u=s.xRange,l=s.yRange;if(u.max==u.min||l.max==l.min)return console.log("not scaling solution: zero size detected"),t;for(var c=e/(u.max-u.min),h=n/(l.max-l.min),f=Math.min(h,c),d=(e-(u.max-u.min)*f)/2,g=(n-(l.max-l.min)*f)/2,v={},m=0;m<i.length;++m){var y=i[m];v[o[m]]={radius:f*y.radius,x:r+d+(y.x-u.min)*f,y:r+g+(y.y-l.min)*f}}return v}},function(t,e,n){"use strict";n.r(e),n.d(e,"computeTextCentre",(function(){return a})),n.d(e,"computeTextCentres",(function(){return s})),n.d(e,"circlePath",(function(){return u})),n.d(e,"circleFromPath",(function(){return l})),n.d(e,"intersectionAreaPath",(function(){return c}));var r=n(285),i=n(184);function o(t,e,n){var r,o,a=e[0].radius-Object(i.distance)(e[0],t);for(r=1;r<e.length;++r)(o=e[r].radius-Object(i.distance)(e[r],t))<=a&&(a=o);for(r=0;r<n.length;++r)(o=Object(i.distance)(n[r],t)-n[r].radius)<=a&&(a=o);return a}function a(t,e){var n,s=[];for(n=0;n<t.length;++n){var u=t[n];s.push({x:u.x,y:u.y}),s.push({x:u.x+u.radius/2,y:u.y}),s.push({x:u.x-u.radius/2,y:u.y}),s.push({x:u.x,y:u.y+u.radius/2}),s.push({x:u.x,y:u.y-u.radius/2})}var l=s[0],c=o(s[0],t,e);for(n=1;n<s.length;++n){var h=o(s[n],t,e);h>=c&&(l=s[n],c=h)}var f=Object(r.nelderMead)((function(n){return-1*o({x:n[0],y:n[1]},t,e)}),[l.x,l.y],{maxIterations:500,minErrorDelta:1e-10}).x,d={x:f[0],y:f[1]},p=!0;for(n=0;n<t.length;++n)if(Object(i.distance)(d,t[n])>t[n].radius){p=!1;break}for(n=0;n<e.length;++n)if(Object(i.distance)(d,e[n])<e[n].radius){p=!1;break}if(!p)if(1==t.length)d={x:t[0].x,y:t[0].y};else{var g={};Object(i.intersectionArea)(t,g),d=0===g.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==g.arcs.length?{x:g.arcs[0].circle.x,y:g.arcs[0].circle.y}:e.length?a(t,[]):Object(i.getCenter)(g.arcs.map((function(t){return t.p1})))}return d}function s(t,e){for(var n={},r=function(t){var e={},n=[];for(var r in t)n.push(r),e[r]=[];for(var o=0;o<n.length;o++)for(var a=t[n[o]],s=o+1;s<n.length;++s){var u=t[n[s]],l=Object(i.distance)(a,u);l+u.radius<=a.radius+1e-10?e[n[s]].push(n[o]):l+a.radius<=u.radius+1e-10&&e[n[o]].push(n[s])}return e}(t),o=0;o<e.length;++o){for(var s=e[o].sets,u={},l={},c=0;c<s.length;++c){u[s[c]]=!0;for(var h=r[s[c]],f=0;f<h.length;++f)l[h[f]]=!0}var d=[],p=[];for(var g in t)g in u?d.push(t[g]):g in l||p.push(t[g]);var v=a(d,p);n[s]=v,v.disjoint&&e[o].size>0&&console.log("WARNING: area "+s+" not represented on screen")}return n}function u(t,e,n){var r=[],i=t-n,o=e;return r.push("M",i,o),r.push("A",n,n,0,1,0,i+2*n,o),r.push("A",n,n,0,1,0,i,o),r.join(" ")}function l(t){var e=t.split(" ");return{x:parseFloat(e[1]),y:parseFloat(e[2]),radius:-parseFloat(e[4])}}function c(t){var e={};Object(i.intersectionArea)(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var r=n[0].circle;return u(r.x,r.y,r.radius)}for(var o=["\nM",n[0].p2.x,n[0].p2.y],a=0;a<n.length;++a){var s=n[a],l=s.circle.radius,c=s.width>l;o.push("\nA",l,l,0,c?1:0,1,s.p1.x,s.p1.y)}return o.join(" ")}},function(t,e,n){"use strict";n.r(e),n.d(e,"VennElementSelected",(function(){return u})),n.d(e,"VennElementSingleSelected",(function(){return l}));var r=n(2),i=n(13),o=n(434),a=Object(i.getActionClass)("element-selected"),s=Object(i.getActionClass)("element-single-selected"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.syncElementsPos=function(){Object(o.placeElementsOrdered)(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(a),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.syncElementsPos=function(){Object(o.placeElementsOrdered)(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(s)},function(t,e,n){"use strict";n.r(e),n.d(e,"statistic",(function(){return c})),n.d(e,"adaptor",(function(){return h}));var r=n(2),i=n(1),o=n(8),a=n(3),s=n(34),u=n(766);function l(t){var e=t.chart,n=t.options,r=n.percent,i=n.liquidStyle,o=n.radius,l=n.outline,c=n.wave,h=n.shape,f=n.animation;e.scale({percent:{min:0,max:1}}),e.data(Object(u.getLiquidData)(r));var d=n.color||e.getTheme().defaultColor,p=Object(a.deepAssign)({},t,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:d,style:i,shape:"liquid-fill-gauge"}}}),g=Object(s.interval)(p).ext.geometry,v={radius:o,outline:l,wave:c,shape:h,background:e.getTheme().background,animation:f};return g.customInfo(v),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function c(t,e){var n=t.chart,o=t.options,s=o.statistic,u=o.percent,l=o.meta;n.getController("annotation").clear(!0);var c=Object(i.get)(l,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},h=s.content;return h&&(h=Object(a.deepAssign)({},h,{content:Object(i.isNil)(h.content)?c(u):h.content})),Object(a.renderStatistic)(n,{statistic:Object(r.__assign)(Object(r.__assign)({},s),{content:h}),plotType:"liquid"},{percent:u}),e&&n.render(!0),t}function h(t){return Object(a.flow)(o.theme,Object(o.pattern)("liquidStyle"),l,c,Object(o.scale)({}),o.animation,o.interaction)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return c})),n.d(e,"adaptor",(function(){return p}));var r=n(2),i=n(1),o=n(8),a=n(3),s=n(34),u=n(767);function l(t){var e=t.chart,n=t.options,o=n.bulletStyle,l=n.targetField,c=n.rangeField,h=n.measureField,f=n.xField,d=n.color,p=n.layout,g=n.size,v=n.label,m=Object(u.transformData)(n),y=m.min,b=m.max,_=m.ds;e.data(_);var x=Object(a.deepAssign)({},t,{options:{xField:f,yField:c,seriesField:"rKey",isStack:!0,label:Object(i.get)(v,"range"),interval:{color:Object(i.get)(d,"range"),style:Object(i.get)(o,"range"),size:Object(i.get)(g,"range")}}});Object(s.interval)(x),e.geometries[0].tooltip(!1);var w=Object(a.deepAssign)({},t,{options:{xField:f,yField:h,seriesField:"mKey",isStack:!0,label:Object(i.get)(v,"measure"),interval:{color:Object(i.get)(d,"measure"),style:Object(i.get)(o,"measure"),size:Object(i.get)(g,"measure")}}});Object(s.interval)(w);var O=Object(a.deepAssign)({},t,{options:{xField:f,yField:l,seriesField:"tKey",label:Object(i.get)(v,"target"),point:{color:Object(i.get)(d,"target"),style:Object(i.get)(o,"target"),size:Object(i.isFunction)(Object(i.get)(g,"target"))?function(t){return Object(i.get)(g,"target")(t)/2}:Object(i.get)(g,"target")/2,shape:"horizontal"===p?"line":"hyphen"}}});return Object(s.point)(O),"horizontal"===p&&e.coordinate().transpose(),Object(r.__assign)(Object(r.__assign)({},t),{ext:{data:{min:y,max:b}}})}function c(t){var e,n,r=t.options,i=t.ext,s=r.xAxis,u=r.yAxis,l=r.targetField,c=r.rangeField,h=r.measureField,f=r.xField,d=i.data;return Object(a.flow)(Object(o.scale)(((e={})[f]=s,e[h]=u,e),((n={})[h]={min:null==d?void 0:d.min,max:null==d?void 0:d.max,sync:!0},n[l]={sync:""+h},n[c]={sync:""+h},n)))(t)}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.measureField,s=n.rangeField,u=n.targetField;return e.axis(""+s,!1),e.axis(""+u,!1),!1===r?e.axis(""+o,!1):e.axis(""+o,r),!1===i?e.axis(""+a,!1):e.axis(""+a,i),t}function f(t){var e=t.chart,n=t.options.legend;return e.removeInteraction("legend-filter"),e.legend(n),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function d(t){var e=t.chart,n=t.options,o=n.label,s=n.measureField,u=n.targetField,l=n.rangeField,c=e.geometries,h=c[0],f=c[1],d=c[2];return Object(i.get)(o,"range")?h.label(""+l,Object(r.__assign)({layout:[{type:"limit-in-plot"}]},Object(a.transformLabel)(o.range))):h.label(!1),Object(i.get)(o,"measure")?f.label(""+s,Object(r.__assign)({layout:[{type:"limit-in-plot"}]},Object(a.transformLabel)(o.measure))):f.label(!1),Object(i.get)(o,"target")?d.label(""+u,Object(r.__assign)({layout:[{type:"limit-in-plot"}]},Object(a.transformLabel)(o.target))):d.label(!1),t}function p(t){Object(a.flow)(l,c,h,f,o.theme,d,o.tooltip,o.interaction,o.animation)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformData",(function(){return c}));var r=n(2),i=n(1),o=n(389),a=n(3),s=n(1739),u=n(769),l=n(237);function c(t){var e=t.data,n=t.colorField,c=t.rawFields,h=t.hierarchyConfig,f=void 0===h?{}:h,d=f.activeDepth,p={partition:s.partition,treemap:u.treemap},g=t.seriesField,v=t.type||"partition",m=p[v](e,Object(r.__assign)(Object(r.__assign)({field:g||"value"},Object(i.omit)(f,["activeDepth"])),{type:"hierarchy."+v,as:["x","y"]})),y=[];return m.forEach((function(t){var e,i,s,u,h,p;if(0===t.depth)return null;if(d>0&&t.depth>d)return null;for(var v=t.data.name,m=Object(r.__assign)({},t);m.depth>1;)v=(null===(i=m.parent.data)||void 0===i?void 0:i.name)+" / "+v,m=m.parent;var b=Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},Object(a.pick)(t.data,Object(r.__spreadArrays)(c||[],[f.field]))),((e={})[l.SUNBURST_PATH_FIELD]=v,e[l.SUNBURST_ANCESTOR_FIELD]=m.data.name,e)),t);g&&(b[g]=t.data[g]||(null===(u=null===(s=t.parent)||void 0===s?void 0:s.data)||void 0===u?void 0:u[g])),n&&(b[n]=t.data[n]||(null===(p=null===(h=t.parent)||void 0===h?void 0:h.data)||void 0===p?void 0:p[n])),b.ext=f,b[o.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:f,colorField:n,rawFields:c},y.push(b)})),y}},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return c})),n.d(e,"axis",(function(){return f})),n.d(e,"adaptor",(function(){return p}));var r=n(2),i=n(8),o=n(3),a=n(34),s=n(262),u=n(930);function l(t){var e=t.chart,n=t.options,r=n.barStyle,i=n.color,s=n.tooltip,u=n.colorField,l=n.type,c=n.xField,h=n.yField,f=n.data,d=Object(o.processIllegalData)(f,h);e.data(d);var p=Object(o.deepAssign)({},t,{options:{tooltip:s,seriesField:u,interval:{style:r,color:i,shape:"line"===l?"line":"intervel"},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}});return Object(a.interval)(p),"line"===l&&Object(a.point)({chart:e,options:{xField:c,yField:h,seriesField:u,point:{shape:"circle",color:i}}}),t}function c(t){var e,n=t.options,r=n.yField,a=n.xField,s=n.data,l=n.isStack,c=n.isGroup,h=n.colorField,f=n.maxAngle,d=l&&!c&&h?Object(u.getStackedData)(s,a,r):s,p=Object(o.processIllegalData)(d,r);return Object(o.flow)(Object(i.scale)(((e={})[r]={min:0,max:Object(u.getScaleMax)(f,r,p)},e)))(t)}function h(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}).transpose(),t}function f(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis;return e.axis(r,i),t}function d(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=Object(o.findGeometry)(e,"interval");if(i){var u=i.callback,l=Object(r.__rest)(i,["callback"]);s.label({fields:[a],callback:u,cfg:Object(r.__assign)(Object(r.__assign)({},Object(o.transformLabel)(l)),{type:"polar"})})}else s.label(!1);return t}function p(t){return Object(o.flow)(Object(s.pattern)("barStyle"),l,c,f,h,i.interaction,i.animation,i.theme,i.tooltip,i.legend,Object(i.annotation)(),d)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getScaleMax",(function(){return i})),n.d(e,"getStackedData",(function(){return o}));var r=n(2);function i(t,e,n){var r=n.map((function(t){return t[e]})).filter((function(t){return void 0!==t})),i=r.length>0?Math.max.apply(Math,r):0,o=Math.abs(t)%360;return o?360*i/o:i}function o(t,e,n){var i=[];return t.forEach((function(t){var o=i.find((function(n){return n[e]===t[e]}));o?o[n]+=t[n]||null:i.push(Object(r.__assign)({},t))})),i}},function(t,e,n){"use strict";n.r(e),n.d(e,"getElementValue",(function(){return o})),n.d(e,"clearHighlight",(function(){return a}));var r=n(1),i=n(3);function o(t,e){var n=t.getModel().data;return Object(r.isArray)(n)?n[0][e]:n[e]}function a(t){var e=Object(i.getAllElements)(t);Object(r.each)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"requestAnimationFrame",(function(){return o})),n.d(e,"cancelAnimationFrame",(function(){return a}));var r=n(251),i=0;function o(t){var e=Object(r.getCanvas)();return e.requestAnimationFrame?e.requestAnimationFrame(t):function(t){var e=Date.now(),n=Math.max(i+23,e);return setTimeout((function(){t(i=n)}),n-e)}(t)}function a(t){var e=Object(r.getCanvas)();return e.cancelAnimationFrame?e.cancelAnimationFrame(t):clearTimeout(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"$XMLHttpRequest",(function(){return w}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(14),u=n.n(s),l=n(50),c=n.n(l),h=n(51),f=n.n(h),d=n(28),p=n.n(d),g=n(4),v=n.n(g),m=n(505);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var b=new Map,_=new Map,x=new Map;var w=function(t){c()(n,t);var e=y(n);function n(){var t;return i()(this,n),t=e.call(this),v()(u()(t),"onabort",void 0),v()(u()(t),"onerror",void 0),v()(u()(t),"onload",void 0),v()(u()(t),"onloadstart",void 0),v()(u()(t),"onprogress",void 0),v()(u()(t),"ontimeout",void 0),v()(u()(t),"onloadend",void 0),v()(u()(t),"onreadystatechange",void 0),v()(u()(t),"readyState",void 0),v()(u()(t),"response",void 0),v()(u()(t),"responseText",void 0),v()(u()(t),"_responseType",void 0),v()(u()(t),"responseXML",void 0),v()(u()(t),"status",void 0),v()(u()(t),"statusText",void 0),v()(u()(t),"upload",void 0),v()(u()(t),"withCredentials",void 0),v()(u()(t),"timeout",void 0),v()(u()(t),"_url",void 0),v()(u()(t),"_method",void 0),t.onabort=null,t.onerror=null,t.onload=null,t.onloadstart=null,t.onprogress=null,t.ontimeout=null,t.onloadend=null,t.onreadystatechange=null,t.readyState=0,t.response=null,t.responseText=null,t._responseType="text",t.responseXML=null,t.status=0,t.statusText="",t.upload={},t.withCredentials=!1,b.set("requestHeader",{"content-type":"application/x-www-form-urlencoded"}),t}return a()(n,[{key:"responseType",set:function(t){this._responseType=t}},{key:"abort",value:function(){var t=x.get("requestTask");t&&t.abort()}},{key:"getAllResponseHeaders",value:function(){var t=_.get("responseHeader");return Object.keys(t).map((function(e){return"".concat(e,": ").concat(t[e])})).join("\n")}},{key:"getResponseHeader",value:function(t){return _.get("responseHeader")[t]}},{key:"open",value:function(t,e,n){this._method=t,this._url=e}},{key:"overrideMimeType",value:function(){}},{key:"send",value:function(){}},{key:"setRequestHeader",value:function(t,e){var n=b.get("requestHeader");n[t]=e,b.set("requestHeader",n)}},{key:"addEventListener",value:function(t,e){var n=this;"function"==typeof e&&(this["on"+t]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.target=t.target||n,e.call(n,t)})}},{key:"removeEventListener",value:function(t,e){this["on"+t]===e&&(this["on"+t]=null)}}]),n}(m.default);v()(w,"UNSEND",void 0),v()(w,"OPENED",void 0),v()(w,"HEADERS_RECEIVED",void 0),v()(w,"LOADING",void 0),v()(w,"DONE",void 0),w.UNSEND=0,w.OPENED=1,w.HEADERS_RECEIVED=2,w.LOADING=3,w.DONE=4},function(t,e,n){"use strict";n.r(e),n.d(e,"getDistanceScales",(function(){return i}));var r=Math.PI/180;function i(t){var e=t.latitude,n=void 0===e?0:e,i=t.zoom,o=void 0===i?0:i,a=t.scale,s=t.highPrecision,u=void 0!==s&&s,l=t.flipY,c=void 0!==l&&l,h={},f=512*(a=void 0!==a?a:Math.pow(2,o)),d=Math.cos(n*r),p=f/360,g=p/d,v=f/4003e4/d;if(h.pixelsPerMeter=[v,-v,v],h.metersPerPixel=[1/v,-1/v,1/v],h.pixelsPerDegree=[p,-g,v],h.degreesPerPixel=[1/p,-1/g,1/v],u){var m=r*Math.tan(n*r)/d,y=p*m/2,b=f/4003e4*m,_=b/g*v;h.pixelsPerDegree2=[0,-y,b],h.pixelsPerMeter2=[_,0,_],c&&(h.pixelsPerDegree2[1]=-h.pixelsPerDegree2[1],h.pixelsPerMeter2[1]=-h.pixelsPerMeter2[1])}return c&&(h.pixelsPerMeter[1]=-h.pixelsPerMeter[1],h.metersPerPixel[1]=-h.metersPerPixel[1],h.pixelsPerDegree[1]=-h.pixelsPerDegree[1],h.degreesPerPixel[1]=-h.degreesPerPixel[1]),h}},function(t,e){function n(t){var e=t.target||t.srcElement;e.__resizeRAF__&&cancelAnimationFrame(e.__resizeRAF__),e.__resizeRAF__=requestAnimationFrame((function(){var n=e.__resizeTrigger__,r=n&&n.__resizeListeners__;r&&r.forEach((function(e){e.call(n,t)}))}))}var r=function(t,e){var r,i=this.document,o=i.attachEvent;if("undefined"!=typeof navigator&&(r=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/)),!t.__resizeListeners__)if(t.__resizeListeners__=[],o)t.__resizeTrigger__=t,t.attachEvent("onresize",n);else{"static"===getComputedStyle(t).position&&(t.style.position="relative");var a=t.__resizeTrigger__=i.createElement("object");a.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),a.setAttribute("class","resize-sensor"),a.setAttribute("tabindex","-1"),a.setAttribute("title",""),a.__resizeElement__=t,a.onload=function(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",n)},a.type="text/html",r&&t.appendChild(a),a.data="about:blank",r||t.appendChild(a)}t.__resizeListeners__.push(e)};t.exports="undefined"==typeof window?r:r.bind(window),t.exports.unbind=function(t,e){var r=document.attachEvent,i=t.__resizeListeners__||[];if(e){var o=i.indexOf(e);-1!==o&&i.splice(o,1)}else i=t.__resizeListeners__=[];if(!i.length){if(r)t.detachEvent("onresize",n);else if(t.__resizeTrigger__){var a=t.__resizeTrigger__.contentDocument,s=a&&a.defaultView;s&&(s.removeEventListener("resize",n),delete s.__resizeTrigger__),t.__resizeTrigger__=!t.removeChild(t.__resizeTrigger__)}delete t.__resizeListeners__}}},function(t,e,n){"use strict";function r(t){var e=0;switch(t){case"vec2":case"ivec2":e=2;break;case"vec3":case"ivec3":e=3;break;case"vec4":case"ivec4":case"mat2":e=4;break;case"mat3":e=9;break;case"mat4":e=16}return e}n.r(e),n.d(e,"getUniformLengthByType",(function(){return r})),n.d(e,"extractUniforms",(function(){return o}));var i=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\s\S]*?);/g;function o(t){var e={};return{content:t=t.replace(i,(function(t,n,i){var o=i.split(":"),a=o[0].trim(),s="";switch(o.length>1&&(s=o[1].trim()),n){case"bool":s="true"===s;break;case"float":case"int":s=Number(s);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":s=s?s.replace("[","").replace("]","").split(",").reduce((function(t,e){return t.push(Number(e.trim())),t}),[]):new Array(r(n)).fill(0)}return e[a]=s,"uniform ".concat(n," ").concat(a,";\n")})),uniforms:e}}},function(t,e,n){var r=n(2155),i=n(2156);t.exports=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=i(n))==n?n:0),void 0!==e&&(e=(e=i(e))==e?e:0),r(i(t),e,n)}},function(t,e,n){"use strict";n.r(e),n.d(e,"MapTheme",(function(){return r}));var r={dark:"amap://styles/c9f1d10cae34f8ab05e425462c5a58d7?isPublic=true",light:"amap://styles/c422f5c0cfced5be9fe3a83f05f28a68?isPublic=true",normal:"amap://styles/normal",blank:"amap://styles/07c17002b38775b32a7a76c66cf90e99?isPublic=true"}},function(t,e,n){"use strict";n.r(e),n.d(e,"MapTheme",(function(){return r}));var r={dark:"amap://styles/c9f1d10cae34f8ab05e425462c5a58d7?isPublic=true",light:"amap://styles/c422f5c0cfced5be9fe3a83f05f28a68?isPublic=true",normal:"amap://styles/normal",blank:"amap://styles/07c17002b38775b32a7a76c66cf90e99?isPublic=true"}},function(t,e,n){"use strict";n.r(e),n.d(e,"MapTheme",(function(){return r}));var r={light:"mapbox://styles/zcxduo/ck2ypyb1r3q9o1co1766dex29",dark:"mapbox://styles/zcxduo/ck241p6413s0b1cpayzldv7x7",normal:"mapbox://styles/mapbox/streets-v11",blank:{version:8,sources:{},layers:[{id:"background",type:"background",layout:{visibility:"none"}}]}}},function(t,e,n){"use strict";n.r(e),n.d(e,"requestAnimationFrame",(function(){return o})),n.d(e,"cancelAnimationFrame",(function(){return a}));var r=n(253),i=0;function o(t){var e=Object(r.getCanvas)();return e.requestAnimationFrame?e.requestAnimationFrame(t):function(t){var e=Date.now(),n=Math.max(i+23,e);return setTimeout((function(){t(i=n)}),n-e)}(t)}function a(t){var e=Object(r.getCanvas)();return e.cancelAnimationFrame?e.cancelAnimationFrame(t):clearTimeout(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"$XMLHttpRequest",(function(){return d}));var r=n(19),i=n(20),o=n(61),a=n(63),s=n(32),u=n(508);function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(s.default)(t);if(e){var i=Object(s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.default)(this,n)}}var c=new Map,h=new Map,f=new Map;var d=function(t){Object(o.default)(n,t);var e=l(n);function n(){var t;return Object(r.default)(this,n),(t=e.call(this)).onabort=null,t.onerror=null,t.onload=null,t.onloadstart=null,t.onprogress=null,t.ontimeout=null,t.onloadend=null,t.onreadystatechange=null,t.readyState=0,t.response=null,t.responseText=null,t._responseType="text",t.responseXML=null,t.status=0,t.statusText="",t.upload={},t.withCredentials=!1,c.set("requestHeader",{"content-type":"application/x-www-form-urlencoded"}),t}return Object(i.default)(n,[{key:"responseType",set:function(t){this._responseType=t}},{key:"abort",value:function(){var t=f.get("requestTask");t&&t.abort()}},{key:"getAllResponseHeaders",value:function(){var t=h.get("responseHeader");return Object.keys(t).map((function(e){return"".concat(e,": ").concat(t[e])})).join("\n")}},{key:"getResponseHeader",value:function(t){return h.get("responseHeader")[t]}},{key:"open",value:function(t,e,n){this._method=t,this._url=e}},{key:"overrideMimeType",value:function(){}},{key:"send",value:function(){}},{key:"setRequestHeader",value:function(t,e){var n=c.get("requestHeader");n[t]=e,c.set("requestHeader",n)}},{key:"addEventListener",value:function(t,e){var n=this;"function"==typeof e&&(this["on"+t]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.target=t.target||n,e.call(n,t)})}},{key:"removeEventListener",value:function(t,e){this["on"+t]===e&&(this["on"+t]=null)}}]),n}(u.default);d.UNSEND=0,d.OPENED=1,d.HEADERS_RECEIVED=2,d.LOADING=3,d.DONE=4},function(t,e,n){"use strict";function r(t,e,n){n=n||2;var r,o,s,u,l,c,d,p=e&&e.length,v=p?e[0]*n:t.length,m=i(t,0,v,n,!0),y=[];if(!m||m.next===m.prev)return y;if(p&&(m=function(t,e,n,r){var o,a,s,u,l,c=[];for(o=0,a=e.length;o<a;o++)s=e[o]*r,u=o<a-1?e[o+1]*r:t.length,(l=i(t,s,u,r,!1))===l.next&&(l.steiner=!0),c.push(g(l));for(c.sort(h),o=0;o<c.length;o++)n=f(c[o],n);return n}(t,e,m,n)),t.length>80*n){r=s=t[0],o=u=t[1];for(var b=n;b<v;b+=n)(l=t[b])<r&&(r=l),(c=t[b+1])<o&&(o=c),l>s&&(s=l),c>u&&(u=c);d=0!==(d=Math.max(s-r,u-o))?32767/d:0}return a(m,y,n,r,o,d,0),y}function i(t,e,n,r,i){var o,a;if(i===A(t,e,n,r)>0)for(o=e;o<n;o+=r)a=C(o,t[o],t[o+1],a);else for(o=n-r;o>=e;o-=r)a=C(o,t[o],t[o+1],a);return a&&b(a,a.next)&&(E(a),a=a.next),a}function o(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!b(r,r.next)&&0!==y(r.prev,r,r.next))r=r.next;else{if(E(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function a(t,e,n,r,i,h,f){if(t){!f&&h&&function(t,e,n,r){var i=t;do{0===i.z&&(i.z=p(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,a,s,u,l=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,r=n,s=0,e=0;e<l&&(s++,r=r.nextZ);e++);for(u=l;s>0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(a>1)}(i)}(t,r,i,h);for(var d,g,v=t;t.prev!==t.next;)if(d=t.prev,g=t.next,h?u(t,r,i,h):s(t))e.push(d.i/n|0),e.push(t.i/n|0),e.push(g.i/n|0),E(t),t=g.next,v=g.next;else if((t=g)===v){f?1===f?a(t=l(o(t),e,n),e,n,r,i,h,2):2===f&&c(t,e,n,r,i,h):a(o(t),e,n,r,i,h,1);break}}}function s(t){var e=t.prev,n=t,r=t.next;if(y(e,n,r)>=0)return!1;for(var i=e.x,o=n.x,a=r.x,s=e.y,u=n.y,l=r.y,c=i<o?i<a?i:a:o<a?o:a,h=s<u?s<l?s:l:u<l?u:l,f=i>o?i>a?i:a:o>a?o:a,d=s>u?s>l?s:l:u>l?u:l,p=r.next;p!==e;){if(p.x>=c&&p.x<=f&&p.y>=h&&p.y<=d&&v(i,s,o,u,a,l,p.x,p.y)&&y(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function u(t,e,n,r){var i=t.prev,o=t,a=t.next;if(y(i,o,a)>=0)return!1;for(var s=i.x,u=o.x,l=a.x,c=i.y,h=o.y,f=a.y,d=s<u?s<l?s:l:u<l?u:l,g=c<h?c<f?c:f:h<f?h:f,m=s>u?s>l?s:l:u>l?u:l,b=c>h?c>f?c:f:h>f?h:f,_=p(d,g,e,n,r),x=p(m,b,e,n,r),w=t.prevZ,O=t.nextZ;w&&w.z>=_&&O&&O.z<=x;){if(w.x>=d&&w.x<=m&&w.y>=g&&w.y<=b&&w!==i&&w!==a&&v(s,c,u,h,l,f,w.x,w.y)&&y(w.prev,w,w.next)>=0)return!1;if(w=w.prevZ,O.x>=d&&O.x<=m&&O.y>=g&&O.y<=b&&O!==i&&O!==a&&v(s,c,u,h,l,f,O.x,O.y)&&y(O.prev,O,O.next)>=0)return!1;O=O.nextZ}for(;w&&w.z>=_;){if(w.x>=d&&w.x<=m&&w.y>=g&&w.y<=b&&w!==i&&w!==a&&v(s,c,u,h,l,f,w.x,w.y)&&y(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;O&&O.z<=x;){if(O.x>=d&&O.x<=m&&O.y>=g&&O.y<=b&&O!==i&&O!==a&&v(s,c,u,h,l,f,O.x,O.y)&&y(O.prev,O,O.next)>=0)return!1;O=O.nextZ}return!0}function l(t,e,n){var r=t;do{var i=r.prev,a=r.next.next;!b(i,a)&&_(i,r,r.next,a)&&O(i,a)&&O(a,i)&&(e.push(i.i/n|0),e.push(r.i/n|0),e.push(a.i/n|0),E(r),E(r.next),r=t=a),r=r.next}while(r!==t);return o(r)}function c(t,e,n,r,i,s){var u=t;do{for(var l=u.next.next;l!==u.prev;){if(u.i!==l.i&&m(u,l)){var c=S(u,l);return u=o(u,u.next),c=o(c,c.next),a(u,e,n,r,i,s,0),void a(c,e,n,r,i,s,0)}l=l.next}u=u.next}while(u!==t)}function h(t,e){return t.x-e.x}function f(t,e){var n=function(t,e){var n,r=e,i=t.x,o=t.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a&&(a=s,n=r.x<r.next.x?r:r.next,s===i))return n}r=r.next}while(r!==e);if(!n)return null;var u,l=n,c=n.x,h=n.y,f=1/0;r=n;do{i>=r.x&&r.x>=c&&i!==r.x&&v(o<h?i:a,o,c,h,o<h?a:i,o,r.x,r.y)&&(u=Math.abs(o-r.y)/(i-r.x),O(r,t)&&(u<f||u===f&&(r.x>n.x||r.x===n.x&&d(n,r)))&&(n=r,f=u)),r=r.next}while(r!==l);return n}(t,e);if(!n)return e;var r=S(n,t);return o(r,r.next),o(n,n.next)}function d(t,e){return y(t.prev,t,e.prev)<0&&y(e.next,t,t.next)<0}function p(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function g(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function v(t,e,n,r,i,o,a,s){return(i-a)*(e-s)>=(t-a)*(o-s)&&(t-a)*(r-s)>=(n-a)*(e-s)&&(n-a)*(o-s)>=(i-a)*(r-s)}function m(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&_(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(O(t,e)&&O(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(y(t.prev,t,e.prev)||y(t,e.prev,e))||b(t,e)&&y(t.prev,t,t.next)>0&&y(e.prev,e,e.next)>0)}function y(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function b(t,e){return t.x===e.x&&t.y===e.y}function _(t,e,n,r){var i=w(y(t,e,n)),o=w(y(t,e,r)),a=w(y(n,r,t)),s=w(y(n,r,e));return i!==o&&a!==s||(!(0!==i||!x(t,n,e))||(!(0!==o||!x(t,r,e))||(!(0!==a||!x(n,t,r))||!(0!==s||!x(n,e,r)))))}function x(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function w(t){return t>0?1:t<0?-1:0}function O(t,e){return y(t.prev,t,t.next)<0?y(t,e,t.next)>=0&&y(t,t.prev,e)>=0:y(t,e,t.prev)<0||y(t,t.next,e)<0}function S(t,e){var n=new T(t.i,t.x,t.y),r=new T(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function C(t,e,n,r){var i=new T(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function E(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function T(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function A(t,e,n,r){for(var i=0,o=e,a=n-r;o<n;o+=r)i+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return i}t.exports=r,t.exports.default=r,r.deviation=function(t,e,n,r){var i=e&&e.length,o=i?e[0]*n:t.length,a=Math.abs(A(t,0,o,n));if(i)for(var s=0,u=e.length;s<u;s++){var l=e[s]*n,c=s<u-1?e[s+1]*n:t.length;a-=Math.abs(A(t,l,c,n))}var h=0;for(s=0;s<r.length;s+=3){var f=r[s]*n,d=r[s+1]*n,p=r[s+2]*n;h+=Math.abs((t[f]-t[p])*(t[d+1]-t[f+1])-(t[f]-t[d])*(t[p+1]-t[f+1]))}return 0===a&&0===h?0:Math.abs((h-a)/a)},r.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[i][o][a]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n}},function(t,e,n){"use strict";n.r(e),n.d(e,"registerWorkerSource",(function(){return i})),n.d(e,"getWorkerSource",(function(){return o}));var r=new Map;function i(t,e){r.set(t,e)}function o(t){return r.get(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getLatLonBoundsBuffer",(function(){return i})),n.d(e,"isLatLonBoundsContains",(function(){return o}));var r=n(134),i=function(t,e){var n=Object(r.bBoxToBounds)(t),i=Object(r.padBounds)(n,e);return[Math.max(i[0][0],-900),Math.max(i[0][1],-85.0511287798065),Math.min(i[1][0],900),Math.min(i[1][1],85.0511287798065)]},o=function(t,e){var n=Object(r.bBoxToBounds)(t),i=Object(r.bBoxToBounds)(e);return Object(r.boundsContains)(n,i)}},function(t,e,n){"use strict";n.r(e),n.d(e,"arcLineAtOffset",(function(){return a}));var r=n(130),i=n(134),o=n(1853);function a(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:30,a=arguments.length>6?arguments[6]:void 0,s=n;return a&&(s=Math.round(n*(o-1))/(o-1)),l(t,e,s,r||.314,i)}function s(t,e){var n=1-e;return(t[0]*n+t[1]*e)*n+(t[1]*n+t[2]*e)*e}function u(t,e,n){var r,i,o=[e[0]-t[0],e[1]-t[1]],a=(r=o,i=[0,0],Math.sqrt(Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2))),s=Math.atan2(o[1],o[0]),u=a/2/Math.cos(n),l=s+n;return[u*Math.cos(l)+t[0],u*Math.sin(l)+t[1]]}function l(t,e,n,a,l){if(l===o.Version["GAODE2.x"]){var c=Object(i.amap2Project)(t[0],t[1]),h=Object(i.amap2Project)(e[0],e[1]),f=u(c,h,a),d=[c[0],f[0],h[0]],p=[c[1],f[1],h[1]];return[].concat(Object(r.default)(Object(i.amap2UnProject)(s(d,n),s(p,n))),[0])}var g=u(t,e,a),v=[t[0],g[0],e[0]],m=[t[1],g[1],e[1]];return[s(v,n),s(m,n),0]}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return c}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(4),u=n.n(s),l=n(813),c=function(){function t(){i()(this,t),u()(this,"viewport",void 0)}return a()(t,[{key:"syncWithMapCamera",value:function(t){var e=t.center,n=t.zoom,r=t.pitch,i=t.bearing,o=t.viewportHeight,a=t.viewportWidth;this.viewport=new l.default({width:a,height:o,longitude:e&&e[0],latitude:e&&e[1],zoom:n,pitch:r,bearing:i})}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(t,e){return this.viewport.projectFlat(t,e)}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"MapTheme",(function(){return r}));var r={light:"mapbox://styles/zcxduo/ck2ypyb1r3q9o1co1766dex29",dark:"mapbox://styles/zcxduo/ck241p6413s0b1cpayzldv7x7",normal:"mapbox://styles/mapbox/streets-v11",blank:{version:8,sources:{},layers:[{id:"background",type:"background",layout:{visibility:"none"}}]}}},function(t,e,n){"use strict";n.r(e),n.d(e,"MapTheme",(function(){return r}));var r={light:"mapbox://styles/zcxduo/ck2ypyb1r3q9o1co1766dex29",dark:"mapbox://styles/zcxduo/ck241p6413s0b1cpayzldv7x7",normal:"mapbox://styles/mapbox/streets-v11",blank:{version:8,sources:{},layers:[{id:"background",type:"background",layout:{visibility:"none"}}]}}},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(1879),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(309))},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(240);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(240),i=n(1889),o=n(1890),a=n(952),s=n(1891),u=n(1894),l=n(1895),c=n(955);t.exports=function(t){return new Promise((function(e,n){var h=t.data,f=t.headers,d=t.responseType;r.isFormData(h)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var g=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";f.Authorization="Basic "+btoa(g+":"+v)}var m=s(t.baseURL,t.url);function y(){if(p){var r="getAllResponseHeaders"in p?u(p.getAllResponseHeaders()):null,o={data:d&&"text"!==d&&"json"!==d?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:t,request:p};i(e,n,o),p=null}}if(p.open(t.method.toUpperCase(),a(m,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(y)},p.onabort=function(){p&&(n(c("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(c("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(c(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var b=(t.withCredentials||l(m))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;b&&(f[t.xsrfHeaderName]=b)}"setRequestHeader"in p&&r.forEach(f,(function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete f[e]:p.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),d&&"json"!==d&&(p.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),n(t),p=null)})),h||(h=null),p.send(h)}))}},function(t,e,n){"use strict";var r=n(953);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";var r=n(240);t.exports=function(t,e){e=e||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function l(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(t[i],e[i])}r.forEach(i,(function(t){r.isUndefined(e[t])||(n[t]=u(void 0,e[t]))})),r.forEach(o,l),r.forEach(a,(function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(void 0,e[i])})),r.forEach(s,(function(r){r in e?n[r]=u(t[r],e[r]):r in t&&(n[r]=u(void 0,t[r]))}));var c=i.concat(o).concat(a).concat(s),h=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===c.indexOf(t)}));return r.forEach(h,l),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";var r;!function(i){var o={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="[^\\s]+",u=/\[([^]*?)\]/gm,l=function(){};function c(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}function h(t){return function(e,n,r){var i=r[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(e.month=i)}}function f(t,e){for(t=String(t),e=e||2;t.length<e;)t="0"+t;return t}var d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],p=["January","February","March","April","May","June","July","August","September","October","November","December"],g=c(p,3),v=c(d,3);o.i18n={dayNamesShort:v,dayNames:d,monthNamesShort:g,monthNames:p,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10)*t%10]}};var m={D:function(t){return t.getDay()},DD:function(t){return f(t.getDay())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDate()},dd:function(t){return f(t.getDate())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return f(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},yy:function(t){return f(String(t.getFullYear()),4).substr(2)},yyyy:function(t){return f(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return f(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return f(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return f(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return f(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return f(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return f(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+f(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},y={d:["\\d\\d?",function(t,e){t.day=e}],Do:["\\d\\d?"+s,function(t,e){t.day=parseInt(e,10)}],M:["\\d\\d?",function(t,e){t.month=e-1}],yy:["\\d\\d?",function(t,e){var n=+(""+(new Date).getFullYear()).substr(0,2);t.year=""+(e>68?n-1:n)+e}],h:["\\d\\d?",function(t,e){t.hour=e}],m:["\\d\\d?",function(t,e){t.minute=e}],s:["\\d\\d?",function(t,e){t.second=e}],yyyy:["\\d{4}",function(t,e){t.year=e}],S:["\\d",function(t,e){t.millisecond=100*e}],SS:["\\d{2}",function(t,e){t.millisecond=10*e}],SSS:["\\d{3}",function(t,e){t.millisecond=e}],D:["\\d\\d?",l],ddd:[s,l],MMM:[s,h("monthNamesShort")],MMMM:[s,h("monthNames")],a:[s,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(t,e){var n,r=(e+"").match(/([+-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};y.dd=y.d,y.dddd=y.ddd,y.DD=y.D,y.mm=y.m,y.hh=y.H=y.HH=y.h,y.MM=y.M,y.ss=y.s,y.A=y.a,o.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},o.format=function(t,e,n){var r=n||o.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");e=o.masks[e]||e||o.masks.default;var i=[];return(e=(e=e.replace(u,(function(t,e){return i.push(e),"@@@"}))).replace(a,(function(e){return e in m?m[e](t,r):e.slice(1,e.length-1)}))).replace(/@@@/g,(function(){return i.shift()}))},o.parse=function(t,e,n){var r=n||o.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=o.masks[e]||e,t.length>1e3)return null;var i={},s=[],l=[];e=e.replace(u,(function(t,e){return l.push(e),"@@@"}));var c,h=(c=e,c.replace(/[|\\{()[^$+*?.-]/g,"\\$&")).replace(a,(function(t){if(y[t]){var e=y[t];return s.push(e[1]),"("+e[0]+")"}return t}));h=h.replace(/@@@/g,(function(){return l.shift()}));var f=t.match(new RegExp(h,"i"));if(!f)return null;for(var d=1;d<f.length;d++)s[d-1](i,f[d],r);var p,g=new Date;return!0===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:!1===i.isPm&&12==+i.hour&&(i.hour=0),null!=i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,p=new Date(Date.UTC(i.year||g.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):p=new Date(i.year||g.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0),p},t.exports?t.exports=o:void 0===(r=function(){return o}.call(e,n,e,t))||(t.exports=r)}()},function(t,e,n){"use strict";e.__esModule=!0,e.isDefined=e.isUndefined=e.isFunction=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.isString=function(t){return"[object String]"===Object.prototype.toString.call(t)},e.isObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)},e.isHtmlElement=function(t){return t&&t.nodeType===Node.ELEMENT_NODE};var i,o=n(216),a=(i=o)&&i.__esModule?i:{default:i};var s=function(t){return t&&"[object Function]"==={}.toString.call(t)};"object"===("undefined"==typeof Int8Array?"undefined":r(Int8Array))||!a.default.prototype.$isServer&&"function"==typeof document.childNodes||(e.isFunction=s=function(t){return"function"==typeof t||!1}),e.isFunction=s;e.isUndefined=function(t){return void 0===t},e.isDefined=function(t){return null!=t}},function(t,e,n){"use strict";e.__esModule=!0,e.PopupManager=void 0;var r=u(n(216)),i=u(n(613)),o=u(n(1906)),a=u(n(821)),s=n(349);function u(t){return t&&t.__esModule?t:{default:t}}var l=1,c=void 0;e.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+l++,o.default.register(this._popupId,this)},beforeDestroy:function(){o.default.deregister(this._popupId),o.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(t){var e=this;if(t){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r.default.nextTick((function(){e.open()})))}else this.close()}},methods:{open:function(t){var e=this;this.rendered||(this.rendered=!0);var n=(0,i.default)({},this.$props||this,t);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout((function(){e._openTimer=null,e.doOpen(n)}),r):this.doOpen(n)},doOpen:function(t){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var e=this.$el,n=t.modal,r=t.zIndex;if(r&&(o.default.zIndex=r),n&&(this._closing&&(o.default.closeModal(this._popupId),this._closing=!1),o.default.openModal(this._popupId,o.default.nextZIndex(),this.modalAppendToBody?void 0:e,t.modalClass,t.modalFade),t.lockScroll)){this.withoutHiddenClass=!(0,s.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,s.getStyle)(document.body,"paddingRight"),10)),c=(0,a.default)();var i=document.documentElement.clientHeight<document.body.scrollHeight,u=(0,s.getStyle)(document.body,"overflowY");c>0&&(i||"scroll"===u)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+c+"px"),(0,s.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(e).position&&(e.style.position="absolute"),e.style.zIndex=o.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var t=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var e=Number(this.closeDelay);e>0?this._closeTimer=setTimeout((function(){t._closeTimer=null,t.doClose()}),e):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){o.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,s.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},e.PopupManager=o.default},function(t,e,n){"use strict";e.__esModule=!0;n(310);e.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(216),o=(r=i)&&r.__esModule?r:{default:r},a=n(349);var s=[],u="@@clickoutsideContext",l=void 0,c=0;function h(t,e,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&r.target&&i.target)||t.contains(r.target)||t.contains(i.target)||t===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(i.target))||(e.expression&&t[u].methodName&&n.context[t[u].methodName]?n.context[t[u].methodName]():t[u].bindingFn&&t[u].bindingFn())}}!o.default.prototype.$isServer&&(0,a.on)(document,"mousedown",(function(t){return l=t})),!o.default.prototype.$isServer&&(0,a.on)(document,"mouseup",(function(t){s.forEach((function(e){return e[u].documentHandler(t,l)}))})),e.default={bind:function(t,e,n){s.push(t);var r=c++;t[u]={id:r,documentHandler:h(t,e,n),methodName:e.expression,bindingFn:e.value}},update:function(t,e,n){t[u].documentHandler=h(t,e,n),t[u].methodName=e.expression,t[u].bindingFn=e.value},unbind:function(t){for(var e=s.length,n=0;n<e;n++)if(s[n][u].id===t[u].id){s.splice(n,1);break}delete t[u]}}},function(t,e,n){var r=n(824),i=n(615);t.exports={throttle:r,debounce:i}},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=120)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},120:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-checkbox",class:[t.border&&t.checkboxSize?"el-checkbox--"+t.checkboxSize:"",{"is-disabled":t.isDisabled},{"is-bordered":t.border},{"is-checked":t.isChecked}],attrs:{id:t.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":t.isDisabled,"is-checked":t.isChecked,"is-indeterminate":t.indeterminate,"is-focus":t.focus},attrs:{tabindex:!!t.indeterminate&&0,role:!!t.indeterminate&&"checkbox","aria-checked":!!t.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),t.trueLabel||t.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",name:t.name,disabled:t.isDisabled,"true-value":t.trueLabel,"false-value":t.falseLabel},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,r=e.target,i=r.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.model=n.concat([null])):o>-1&&(t.model=n.slice(0,o).concat(n.slice(o+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",disabled:t.isDisabled,name:t.name},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.label,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}})]),t.$slots.default||t.label?n("span",{staticClass:"el-checkbox__label"},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2):t._e()])};r._withStripped=!0;var i=n(4),o={name:"ElCheckbox",mixins:[n.n(i).a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&t.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[t])):(this.$emit("input",t),this.selfModel=t)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){for(var t=this.$parent;t;){if("ElCheckboxGroup"===t.$options.componentName)return this._checkboxGroup=t,!0;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var t=this._checkboxGroup,e=t.max,n=t.min;return!(!e&&!n)&&this.model.length>=e&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||t}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,t),this.$nextTick((function(){e.isGroup&&e.dispatch("ElCheckboxGroup","change",[e._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",t)}}},a=n(0),s=Object(a.a)(o,r,[],!1,null,null,null);s.options.__file="packages/checkbox/src/checkbox.vue";var u=s.exports;u.install=function(t){t.component(u.name,u)};e.default=u},4:function(t,e){t.exports=n(409)}})},function(t,e){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,e){var i,o,a,s,u;for(a in e)if(i=t[a],o=e[a],i&&n.test(a))if("class"===a&&("string"==typeof i&&(u=i,t[a]=i={},i[u]=!0),"string"==typeof o&&(u=o,e[a]=o={},o[u]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)i[s]=r(i[s],o[s]);else if(Array.isArray(i))t[a]=i.concat(o);else if(Array.isArray(o))t[a]=[i].concat(o);else for(s in o)i[s]=o[s];else t[a]=e[a];return t}),{})}},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=130)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},130:function(t,e,n){"use strict";n.r(e);var r={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(t){return-1!==["dark","light","plain"].indexOf(t)}}},methods:{handleClose:function(t){t.stopPropagation(),this.$emit("close",t)},handleClick:function(t){this.$emit("click",t)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(t){var e=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=t("span",{class:["el-tag",e?"el-tag--"+e:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&t("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?o:t("transition",{attrs:{name:"el-zoom-in-center"}},[o])}},i=n(0),o=Object(i.a)(r,void 0,void 0,!1,null,null,null);o.options.__file="packages/tag/src/tag.vue";var a=o.exports;a.install=function(t){t.component(a.name,a)};e.default=a}})},function(t,e,n){t.exports=!n(410)&&!n(540)((function(){return 7!=Object.defineProperty(n(969)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(539),i=n(373).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(411),i=n(450),o=n(1932)(!1),a=n(833)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var r=n(972);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(619),i=n(829),o=n(974),a=n(448),s=n(838),u=n(1939),l=n(839),c=n(1942),h=n(451)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,p,g,v,m){u(n,e,p);var y,b,_,x=function(t){if(!f&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",O="values"==g,S=!1,C=t.prototype,E=C[h]||C["@@iterator"]||g&&C[g],T=E||x(g),A=g?O?x("entries"):T:void 0,M="Array"==e&&C.entries||E;if(M&&(_=c(M.call(new t)))!==Object.prototype&&_.next&&(l(_,w,!0),r||"function"==typeof _[h]||a(_,h,d)),O&&E&&"values"!==E.name&&(S=!0,T=function(){return E.call(this)}),r&&!m||!f&&!S&&C[h]||a(C,h,T),s[e]=T,s[w]=d,g)if(y={values:O?T:x("values"),keys:v?T:x("keys"),entries:A},m)for(b in y)b in C||o(C,b,y[b]);else i(i.P+i.F*(f||S),e,y);return y}},function(t,e,n){t.exports=n(448)},function(t,e,n){var r=n(616),i=n(1940),o=n(835),a=n(833)("IE_PROTO"),s=function(){},u=function(){var t,e=n(969)("iframe"),r=o.length;for(e.style.display="none",n(1941).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(970),i=n(835).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=108)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},108:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-radio",class:[t.border&&t.radioSize?"el-radio--"+t.radioSize:"",{"is-disabled":t.isDisabled},{"is-focus":t.focus},{"is-bordered":t.border},{"is-checked":t.model===t.label}],attrs:{role:"radio","aria-checked":t.model===t.label,"aria-disabled":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"]))return null;e.stopPropagation(),e.preventDefault(),t.model=t.isDisabled?t.model:t.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":t.isDisabled,"is-checked":t.model===t.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:t.name,disabled:t.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:t.label,checked:t._q(t.model,t.label)},on:{focus:function(e){t.focus=!0},blur:function(e){t.focus=!1},change:[function(e){t.model=t.label},t.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(t){t.stopPropagation()}}},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])};r._withStripped=!0;var i=n(4),o={name:"ElRadio",mixins:[n.n(i).a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){for(var t=this.$parent;t;){if("ElRadioGroup"===t.$options.componentName)return this._radioGroup=t,!0;t=t.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(t){this.isGroup?this.dispatch("ElRadioGroup","input",[t]):this.$emit("input",t),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||t},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var t=this;this.$nextTick((function(){t.$emit("change",t.model),t.isGroup&&t.dispatch("ElRadioGroup","handleChange",t.model)}))}}},a=n(0),s=Object(a.a)(o,r,[],!1,null,null,null);s.options.__file="packages/radio/src/radio.vue";var u=s.exports;u.install=function(t){t.component(u.name,u)};e.default=u},4:function(t,e){t.exports=n(409)}})},function(t,e,n){"use strict";n.r(e);var r=n(139);n.d(e,"version",(function(){return r.version})),n.d(e,"dependencies",(function(){return r.dependencies})),n.d(e,"PRIORITY",(function(){return r.PRIORITY})),n.d(e,"init",(function(){return r.init})),n.d(e,"connect",(function(){return r.connect})),n.d(e,"disConnect",(function(){return r.disConnect})),n.d(e,"disconnect",(function(){return r.disconnect})),n.d(e,"dispose",(function(){return r.dispose})),n.d(e,"getInstanceByDom",(function(){return r.getInstanceByDom})),n.d(e,"getInstanceById",(function(){return r.getInstanceById})),n.d(e,"registerTheme",(function(){return r.registerTheme})),n.d(e,"registerPreprocessor",(function(){return r.registerPreprocessor})),n.d(e,"registerProcessor",(function(){return r.registerProcessor})),n.d(e,"registerPostInit",(function(){return r.registerPostInit})),n.d(e,"registerPostUpdate",(function(){return r.registerPostUpdate})),n.d(e,"registerUpdateLifecycle",(function(){return r.registerUpdateLifecycle})),n.d(e,"registerAction",(function(){return r.registerAction})),n.d(e,"registerCoordinateSystem",(function(){return r.registerCoordinateSystem})),n.d(e,"getCoordinateSystemDimensions",(function(){return r.getCoordinateSystemDimensions})),n.d(e,"registerLocale",(function(){return r.registerLocale})),n.d(e,"registerLayout",(function(){return r.registerLayout})),n.d(e,"registerVisual",(function(){return r.registerVisual})),n.d(e,"registerLoading",(function(){return r.registerLoading})),n.d(e,"setCanvasCreator",(function(){return r.setCanvasCreator})),n.d(e,"registerMap",(function(){return r.registerMap})),n.d(e,"getMap",(function(){return r.getMap})),n.d(e,"registerTransform",(function(){return r.registerTransform})),n.d(e,"dataTool",(function(){return r.dataTool}));var i=n(979);n.d(e,"zrender",(function(){return i.zrender})),n.d(e,"matrix",(function(){return i.matrix})),n.d(e,"vector",(function(){return i.vector})),n.d(e,"zrUtil",(function(){return i.zrUtil})),n.d(e,"color",(function(){return i.color})),n.d(e,"throttle",(function(){return i.throttle})),n.d(e,"helper",(function(){return i.helper})),n.d(e,"use",(function(){return i.use})),n.d(e,"setPlatformAPI",(function(){return i.setPlatformAPI})),n.d(e,"parseGeoJSON",(function(){return i.parseGeoJSON})),n.d(e,"parseGeoJson",(function(){return i.parseGeoJson})),n.d(e,"number",(function(){return i.number})),n.d(e,"time",(function(){return i.time})),n.d(e,"graphic",(function(){return i.graphic})),n.d(e,"format",(function(){return i.format})),n.d(e,"util",(function(){return i.util})),n.d(e,"env",(function(){return i.env})),n.d(e,"List",(function(){return i.List})),n.d(e,"Model",(function(){return i.Model})),n.d(e,"Axis",(function(){return i.Axis})),n.d(e,"ComponentModel",(function(){return i.ComponentModel})),n.d(e,"ComponentView",(function(){return i.ComponentView})),n.d(e,"SeriesModel",(function(){return i.SeriesModel})),n.d(e,"ChartView",(function(){return i.ChartView})),n.d(e,"innerDrawElementOnCanvas",(function(){return i.innerDrawElementOnCanvas})),n.d(e,"extendComponentModel",(function(){return i.extendComponentModel})),n.d(e,"extendComponentView",(function(){return i.extendComponentView})),n.d(e,"extendSeriesModel",(function(){return i.extendSeriesModel})),n.d(e,"extendChartView",(function(){return i.extendChartView}));var o=n(48),a=n(885);Object(o.use)(a.installLabelLayout)},function(t,e,n){"use strict";n.r(e),n.d(e,"extendComponentModel",(function(){return T})),n.d(e,"extendComponentView",(function(){return A})),n.d(e,"extendSeriesModel",(function(){return M})),n.d(e,"extendChartView",(function(){return I}));var r=n(41);n.d(e,"ComponentModel",(function(){return r.default}));var i=n(70);n.d(e,"ComponentView",(function(){return i.default}));var o=n(59);n.d(e,"SeriesModel",(function(){return o.default}));var a=n(58);n.d(e,"ChartView",(function(){return a.default}));var s=n(118);n.d(e,"List",(function(){return s.default}));var u=n(420);n.d(e,"zrender",(function(){return u}));var l=n(42);n.d(e,"matrix",(function(){return l}));var c=n(18);n.d(e,"vector",(function(){return c}));var h=n(0);n.d(e,"zrUtil",(function(){return h}));var f=n(80);n.d(e,"color",(function(){return f}));var d=n(143);n.d(e,"throttle",(function(){return d.throttle}));var p=n(980);n.d(e,"helper",(function(){return p}));var g=n(48);n.d(e,"use",(function(){return g.use}));var v=n(107);n.d(e,"setPlatformAPI",(function(){return v.setPlatformAPI}));var m=n(454);n.d(e,"parseGeoJSON",(function(){return m.default})),n.d(e,"parseGeoJson",(function(){return m.default}));var y=n(981);n.d(e,"number",(function(){return y}));var b=n(982);n.d(e,"time",(function(){return b}));var _=n(983);n.d(e,"graphic",(function(){return _}));var x=n(984);n.d(e,"format",(function(){return x}));var w=n(985);n.d(e,"util",(function(){return w}));var O=n(54);n.d(e,"env",(function(){return O.default}));var S=n(64);n.d(e,"Model",(function(){return S.default}));var C=n(164);n.d(e,"Axis",(function(){return C.default}));var E=n(269);function T(t){var e=r.default.extend(t);return r.default.registerClass(e),e}function A(t){var e=i.default.extend(t);return i.default.registerClass(e),e}function M(t){var e=o.default.extend(t);return o.default.registerClass(e),e}function I(t){var e=a.default.extend(t);return a.default.registerClass(e),e}n.d(e,"innerDrawElementOnCanvas",(function(){return E.brushSingle}))},function(t,e,n){"use strict";n.r(e),n.d(e,"createList",(function(){return g})),n.d(e,"dataStack",(function(){return v})),n.d(e,"createScale",(function(){return m})),n.d(e,"mixinAxisModelCommonMethods",(function(){return y})),n.d(e,"createTextStyle",(function(){return b}));var r=n(0),i=n(163),o=n(85),a=n(264),s=n(64),u=n(33);n.d(e,"getLayoutRect",(function(){return u.getLayoutRect}));var l=n(147),c=n(31);n.d(e,"getECData",(function(){return c.getECData}));var h=n(27),f=n(259);n.d(e,"createDimensions",(function(){return f.createDimensions}));var d=n(67);n.d(e,"createSymbol",(function(){return d.createSymbol}));var p=n(11);function g(t){return Object(i.default)(null,t)}n.d(e,"enableHoverEmphasis",(function(){return p.enableHoverEmphasis}));var v={isDimensionStacked:l.isDimensionStacked,enableDataStack:l.enableDataStack,getStackedDimension:l.getStackedDimension};function m(t,e){var n=e;e instanceof s.default||(n=new s.default(e));var r=o.createScaleByModel(n);return r.setExtent(t[0],t[1]),o.niceScaleExtent(r,n),r}function y(t){r.mixin(t,a.AxisModelCommonMixin)}function b(t,e){return e=e||{},Object(h.createTextStyle)(t,null,null,"normal"!==e.state)}},function(t,e,n){"use strict";n.r(e);var r=n(6);n.d(e,"linearMap",(function(){return r.linearMap})),n.d(e,"round",(function(){return r.round})),n.d(e,"asc",(function(){return r.asc})),n.d(e,"getPrecision",(function(){return r.getPrecision})),n.d(e,"getPrecisionSafe",(function(){return r.getPrecisionSafe})),n.d(e,"getPixelPrecision",(function(){return r.getPixelPrecision})),n.d(e,"getPercentWithPrecision",(function(){return r.getPercentWithPrecision})),n.d(e,"MAX_SAFE_INTEGER",(function(){return r.MAX_SAFE_INTEGER})),n.d(e,"remRadian",(function(){return r.remRadian})),n.d(e,"isRadianAroundZero",(function(){return r.isRadianAroundZero})),n.d(e,"parseDate",(function(){return r.parseDate})),n.d(e,"quantity",(function(){return r.quantity})),n.d(e,"quantityExponent",(function(){return r.quantityExponent})),n.d(e,"nice",(function(){return r.nice})),n.d(e,"quantile",(function(){return r.quantile})),n.d(e,"reformIntervals",(function(){return r.reformIntervals})),n.d(e,"isNumeric",(function(){return r.isNumeric})),n.d(e,"numericToNumber",(function(){return r.numericToNumber}))},function(t,e,n){"use strict";n.r(e);var r=n(6);n.d(e,"parse",(function(){return r.parseDate}));var i=n(43);n.d(e,"format",(function(){return i.format}))},function(t,e,n){"use strict";n.r(e);var r=n(12);n.d(e,"extendShape",(function(){return r.extendShape})),n.d(e,"extendPath",(function(){return r.extendPath})),n.d(e,"makePath",(function(){return r.makePath})),n.d(e,"makeImage",(function(){return r.makeImage})),n.d(e,"mergePath",(function(){return r.mergePath})),n.d(e,"resizePath",(function(){return r.resizePath})),n.d(e,"createIcon",(function(){return r.createIcon}));var i=n(23);n.d(e,"updateProps",(function(){return i.updateProps})),n.d(e,"initProps",(function(){return i.initProps})),n.d(e,"getTransform",(function(){return r.getTransform})),n.d(e,"clipPointsByRect",(function(){return r.clipPointsByRect})),n.d(e,"clipRectByRect",(function(){return r.clipRectByRect})),n.d(e,"registerShape",(function(){return r.registerShape})),n.d(e,"getShapeClass",(function(){return r.getShapeClass}));var o=n(40);n.d(e,"Group",(function(){return o.default}));var a=n(114);n.d(e,"Image",(function(){return a.default}));var s=n(72);n.d(e,"Text",(function(){return s.default}));var u=n(250);n.d(e,"Circle",(function(){return u.default}));var l=n(458);n.d(e,"Ellipse",(function(){return l.default}));var c=n(190);n.d(e,"Sector",(function(){return c.default}));var h=n(475);n.d(e,"Ring",(function(){return h.default}));var f=n(180);n.d(e,"Polygon",(function(){return f.default}));var d=n(191);n.d(e,"Polyline",(function(){return d.default}));var p=n(79);n.d(e,"Rect",(function(){return p.default}));var g=n(157);n.d(e,"Line",(function(){return g.default}));var v=n(476);n.d(e,"BezierCurve",(function(){return v.default}));var m=n(557);n.d(e,"Arc",(function(){return m.default}));var y=n(843);n.d(e,"IncrementalDisplayable",(function(){return y.default}));var b=n(459);n.d(e,"CompoundPath",(function(){return b.default}));var _=n(352);n.d(e,"LinearGradient",(function(){return _.default}));var x=n(552);n.d(e,"RadialGradient",(function(){return x.default}));var w=n(35);n.d(e,"BoundingRect",(function(){return w.default}))},function(t,e,n){"use strict";n.r(e);var r=n(71);n.d(e,"addCommas",(function(){return r.addCommas})),n.d(e,"toCamelCase",(function(){return r.toCamelCase})),n.d(e,"normalizeCssArray",(function(){return r.normalizeCssArray}));var i=n(144);n.d(e,"encodeHTML",(function(){return i.encodeHTML})),n.d(e,"formatTpl",(function(){return r.formatTpl})),n.d(e,"getTooltipMarker",(function(){return r.getTooltipMarker})),n.d(e,"formatTime",(function(){return r.formatTime})),n.d(e,"capitalFirst",(function(){return r.capitalFirst}));var o=n(457);n.d(e,"truncateText",(function(){return o.truncateText}));var a=n(842);n.d(e,"getTextRect",(function(){return a.getTextRect}))},function(t,e,n){"use strict";n.r(e);var r=n(0);n.d(e,"map",(function(){return r.map})),n.d(e,"each",(function(){return r.each})),n.d(e,"indexOf",(function(){return r.indexOf})),n.d(e,"inherits",(function(){return r.inherits})),n.d(e,"reduce",(function(){return r.reduce})),n.d(e,"filter",(function(){return r.filter})),n.d(e,"bind",(function(){return r.bind})),n.d(e,"curry",(function(){return r.curry})),n.d(e,"isArray",(function(){return r.isArray})),n.d(e,"isString",(function(){return r.isString})),n.d(e,"isObject",(function(){return r.isObject})),n.d(e,"isFunction",(function(){return r.isFunction})),n.d(e,"extend",(function(){return r.extend})),n.d(e,"defaults",(function(){return r.defaults})),n.d(e,"clone",(function(){return r.clone})),n.d(e,"merge",(function(){return r.merge}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(7),a=n(553),s=n(531),u=function(t){function e(e){var n=this,u=e.container,l=e.width,c=e.height,h=e.autoFit,f=void 0!==h&&h,d=e.padding,p=e.appendPadding,g=e.renderer,v=void 0===g?"canvas":g,m=e.pixelRatio,y=e.localRefresh,b=void 0===y||y,_=e.visible,x=void 0===_||_,w=e.supportCSSTransform,O=void 0!==w&&w,S=e.defaultInteractions,C=void 0===S?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text","axis-description"]:S,E=e.options,T=e.limitInPlot,A=e.theme,M=e.syncViewPadding,I=Object(i.isString)(u)?document.getElementById(u):u,j=Object(s.createDom)('<div style="position:relative;"></div>');I.appendChild(j);var k=Object(s.getChartSize)(I,f,l,c),P=new(Object(a.getEngine)(v).Canvas)(Object(r.__assign)({container:j,pixelRatio:m,localRefresh:b,supportCSSTransform:O},k));return(n=t.call(this,{parent:null,canvas:P,backgroundGroup:P.addGroup({zIndex:o.GROUP_Z_INDEX.BG}),middleGroup:P.addGroup({zIndex:o.GROUP_Z_INDEX.MID}),foregroundGroup:P.addGroup({zIndex:o.GROUP_Z_INDEX.FORE}),padding:d,appendPadding:p,visible:x,options:E,limitInPlot:T,theme:A,syncViewPadding:M})||this).onResize=Object(i.debounce)((function(){n.forceFit()}),300),n.ele=I,n.canvas=P,n.width=k.width,n.height=k.height,n.autoFit=f,n.localRefresh=b,n.renderer=v,n.wrapperElement=j,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(C),n}return Object(r.__extends)(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;Object(i.each)(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){!1===t?this.ele.removeAttribute("aria-label"):this.ele.setAttribute("aria-label",t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_SIZE)),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.aria(!1)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),Object(s.removeDom)(this.wrapperElement),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=Object(s.getChartSize)(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){Object(s.modifyCSS)(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(n(554).default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(633),i=n(417);e.default=function(t,e){return void 0===e&&(e=[]),Object(r.default)(t,(function(t){return!Object(i.default)(e,t)}))}},function(t,e,n){"use strict";n.r(e);var r=n(125),i=n(634),o=n(82),a=n(291);e.default=function(t,e){if(!Object(o.default)(t))return null;var n;if(Object(r.default)(e)&&(n=e),Object(a.default)(e)&&(n=function(t){return Object(i.default)(t,e)}),n)for(var s=0;s<t.length;s+=1)if(n(t[s]))return t[s];return null}},function(t,e,n){"use strict";n.r(e),e.default=function(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1}},function(t,e,n){"use strict";n.r(e);var r=n(197),i=n(82);e.default=function(t,e){for(var n=null,o=0;o<t.length;o++){var a=t[o][e];if(!Object(r.default)(a)){n=Object(i.default)(a)?a[0]:a;break}}return n}},function(t,e,n){"use strict";n.r(e);var r=n(82);e.default=function(t){if(!Object(r.default)(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}},function(t,e,n){"use strict";n.r(e);var r=n(82),i=function(t,e){if(void 0===e&&(e=[]),Object(r.default)(t))for(var n=0;n<t.length;n+=1)i(t[n],e);else e.push(t);return e};e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(82),i=n(636),o=n(637);e.default=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(Object(r.default)(t[0])){for(var n=[],a=0;a<t.length;a++)n=n.concat(t[a]);e=n}var s=Object(i.default)(e);return{min:Object(o.default)(e),max:s}}},function(t,e,n){"use strict";n.r(e);var r=Array.prototype,i=r.splice,o=r.indexOf;e.default=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++)for(var a=e[r],s=-1;(s=o.call(t,a))>-1;)i.call(t,s,1);return t}},function(t,e,n){"use strict";n.r(e);var r=n(119),i=n(638);e.default=function(t,e){var n=[];if(!Object(r.default)(t))return n;for(var o=-1,a=[],s=t.length;++o<s;){var u=t[o];e(u,o,t)&&(n.push(u),a.push(o))}return Object(i.default)(t,a),n}},function(t,e,n){"use strict";n.r(e);var r=n(82),i=n(170),o=n(125);e.default=function(t,e){var n;if(Object(o.default)(e))n=function(t,n){return e(t)-e(n)};else{var a=[];Object(i.default)(e)?a.push(e):Object(r.default)(e)&&(a=e),n=function(t,e){for(var n=0;n<a.length;n+=1){var r=a[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}},function(t,e,n){"use strict";n.r(e);var r=n(640);e.default=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Object(r.default)([].concat.apply([],t))}},function(t,e,n){"use strict";n.r(e);var r=n(82),i=n(197);e.default=function(t,e){for(var n=[],o={},a=0;a<t.length;a++){var s=t[a][e];if(!Object(i.default)(s)){Object(r.default)(s)||(s=[s]);for(var u=0;u<s.length;u++){var l=s[u];o[l]||(n.push(l),o[l]=!0)}}}return n}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(119);function i(t){if(Object(r.default)(t))return t[0]}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(119);function i(t){if(Object(r.default)(t)){return t[t.length-1]}}},function(t,e,n){"use strict";n.r(e);var r=n(82),i=n(170);e.default=function(t,e){return!(!Object(r.default)(t)&&!Object(i.default)(t))&&t[0]===e}},function(t,e,n){"use strict";n.r(e);var r=n(82),i=n(170);e.default=function(t,e){return!(!Object(r.default)(t)&&!Object(i.default)(t))&&t[t.length-1]===e}},function(t,e,n){"use strict";n.r(e);e.default=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0}},function(t,e,n){"use strict";n.r(e);e.default=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1}},function(t,e,n){"use strict";n.r(e);var r=n(641);e.default=function(t,e){if(!e)return[t];var n=Object(r.default)(t,e),i=[];for(var o in n)i.push(n[o]);return i}},function(t,e,n){"use strict";n.r(e),e.default=function(t,e){return t["_wrap_"+e]}},function(t,e,n){"use strict";n.r(e),e.default=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}},function(t,e,n){"use strict";n.r(e);var r={};e.default=function(t){var e=r[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,r[t]=e}return e}},function(t,e,n){"use strict";n.r(e);var r=n(82);e.default=function(t){var e=0,n=0,i=0,o=0;return Object(r.default)(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o}}},function(t,e,n){"use strict";n.r(e);e.default=function(t,e,n){return t<e?e:t>n?n:t}},function(t,e,n){"use strict";n.r(e);e.default=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,n){"use strict";n.r(e);var r=n(177);e.default=function(t){return Object(r.default)(t)&&t%1!=0}},function(t,e,n){"use strict";n.r(e);var r=n(177);e.default=function(t){return Object(r.default)(t)&&t%2==0}},function(t,e,n){"use strict";n.r(e);var r=n(177),i=Number.isInteger?Number.isInteger:function(t){return Object(r.default)(t)&&t%1==0};e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(177);e.default=function(t){return Object(r.default)(t)&&t<0}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));function r(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}},function(t,e,n){"use strict";n.r(e);var r=n(177);e.default=function(t){return Object(r.default)(t)&&t%2!=0}},function(t,e,n){"use strict";n.r(e);var r=n(177);e.default=function(t){return Object(r.default)(t)&&t>0}},function(t,e,n){"use strict";n.r(e);var r=n(82),i=n(125);e.default=function(t,e){if(Object(r.default)(t)){for(var n,o=-1/0,a=0;a<t.length;a++){var s=t[a],u=Object(i.default)(e)?e(s):s[e];u>o&&(n=s,o=u)}return n}}},function(t,e,n){"use strict";n.r(e);var r=n(82),i=n(125);e.default=function(t,e){if(Object(r.default)(t)){for(var n,o=1/0,a=0;a<t.length;a++){var s=t[a],u=Object(i.default)(e)?e(s):s[e];u<o&&(n=s,o=u)}return n}}},function(t,e,n){"use strict";n.r(e);e.default=function(t,e){return(t%e+e)%e}},function(t,e,n){"use strict";n.r(e);var r=180/Math.PI;e.default=function(t){return r*t}},function(t,e,n){"use strict";n.r(e),e.default=parseInt},function(t,e,n){"use strict";n.r(e);var r=Math.PI/180;e.default=function(t){return r*t}},function(t,e,n){"use strict";n.r(e);var r=n(260);e.default=r.default},function(t,e,n){"use strict";n.r(e);var r=n(643);e.default=r.default},function(t,e,n){"use strict";n.r(e);var r=n(417),i=n(460);e.default=function(t,e){return Object(r.default)(Object(i.default)(t),e)}},function(t,e,n){"use strict";n.r(e);var r=n(261);e.default=function(t){return Object(r.default)(t).toLowerCase()}},function(t,e,n){"use strict";n.r(e);var r=n(261);e.default=function(t){var e=Object(r.default)(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e,n){"use strict";n.r(e),e.default=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}},function(t,e,n){"use strict";n.r(e);var r=n(261);e.default=function(t){return Object(r.default)(t).toUpperCase()}},function(t,e,n){"use strict";n.r(e);var r=n(261);e.default=function(t){var e=Object(r.default)(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){"use strict";n.r(e);var r=n(145);e.default=function(t){return Object(r.default)(t,"Arguments")}},function(t,e,n){"use strict";n.r(e);var r=n(145);e.default=function(t){return Object(r.default)(t,"Boolean")}},function(t,e,n){"use strict";n.r(e);var r=n(145);e.default=function(t){return Object(r.default)(t,"Date")}},function(t,e,n){"use strict";n.r(e);var r=n(145);e.default=function(t){return Object(r.default)(t,"Error")}},function(t,e,n){"use strict";n.r(e);var r=n(177);e.default=function(t){return Object(r.default)(t)&&isFinite(t)}},function(t,e,n){"use strict";n.r(e);e.default=function(t){return null===t}},function(t,e,n){"use strict";n.r(e);var r=n(145);e.default=function(t){return Object(r.default)(t,"RegExp")}},function(t,e,n){"use strict";n.r(e);e.default=function(t){return void 0===t}},function(t,e,n){"use strict";n.r(e);e.default=function(t){return t instanceof Element||t instanceof HTMLDocument}},function(t,e,n){"use strict";function r(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";function r(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(353),i=n(125);e.default=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],o=1;o<t.length;o++){var a=t[o];Object(i.default)(a)&&(a=a.prototype),Object(r.default)(n.prototype,a)}}},function(t,e,n){"use strict";n.r(e);var r=n(82),i=function(t){if("object"!=typeof t||null===t)return t;var e;if(Object(r.default)(t)){e=[];for(var n=0,o=t.length;n<o;n++)"object"==typeof t[n]&&null!=t[n]?e[n]=i(t[n]):e[n]=t[n]}else for(var a in e={},t)"object"==typeof t[a]&&null!=t[a]?e[a]=i(t[a]):e[a]=t[a];return e};e.default=i},function(t,e,n){"use strict";n.r(e),e.default=function(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}},function(t,e,n){"use strict";n.r(e);var r=n(82),i=n(291);function o(t,e,n,a){for(var s in n=n||0,a=a||5,e)if(e.hasOwnProperty(s)){var u=e[s];null!==u&&Object(i.default)(u)?(Object(i.default)(t[s])||(t[s]={}),n<a?o(t[s],u,n+1,a):t[s]=e[s]):Object(r.default)(u)?(t[s]=[],t[s]=t[s].concat(u)):void 0!==u&&(t[s]=u)}}e.default=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)o(t,e[r]);return t}},function(t,e,n){"use strict";n.r(e);var r=n(353),i=n(125);e.default=function(t,e,n,o){Object(i.default)(e)||(n=e,e=t,t=function(){});var a=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=a(e.prototype,t);return t.prototype=Object(r.default)(s,t.prototype),t.superclass=a(e.prototype,e),Object(r.default)(s,n),Object(r.default)(t,o),t}},function(t,e,n){"use strict";n.r(e);var r=n(119);e.default=function(t,e){if(!Object(r.default)(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break}return i}},function(t,e,n){"use strict";n.r(e);var r=n(197),i=n(119),o=n(644),a=n(645),s=Object.prototype.hasOwnProperty;e.default=function(t){if(Object(r.default)(t))return!0;if(Object(i.default)(t))return!t.length;var e=Object(o.default)(t);if("Map"===e||"Set"===e)return!t.size;if(Object(a.default)(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},function(t,e,n){"use strict";n.r(e);var r=n(125),i=n(647);e.default=function(t,e,n){return Object(r.default)(n)?!!n(t,e):Object(i.default)(t,e)}},function(t,e,n){"use strict";n.r(e);var r=n(119);e.default=function(t,e){if(!Object(r.default)(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];n.push(e(o,i))}return n}},function(t,e,n){"use strict";n.r(e);var r=n(197),i=n(376),o=function(t){return t};e.default=function(t,e){void 0===e&&(e=o);var n={};return Object(i.default)(t)&&!Object(r.default)(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}},function(t,e,n){"use strict";n.r(e);var r=n(170);e.default=function(t,e,n){for(var i=0,o=Object(r.default)(e)?e.split("."):e;t&&i<o.length;)t=t[o[i++]];return void 0===t||i<o.length?n:t}},function(t,e,n){"use strict";n.r(e);var r=n(376),i=n(170),o=n(177);e.default=function(t,e,n){var a=t,s=Object(i.default)(e)?e.split("."):e;return s.forEach((function(t,e){e<s.length-1?(Object(r.default)(a[t])||(a[t]=Object(o.default)(s[e+1])?[]:{}),a=a[t]):a[t]=n})),t}},function(t,e,n){"use strict";n.r(e);var r=n(260),i=n(291),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(null===t||!Object(i.default)(t))return{};var n={};return Object(r.default)(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n}},function(t,e,n){"use strict";n.r(e);var r=n(639);e.default=function(t,e){return Object(r.default)(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})}},function(t,e,n){"use strict";n.r(e),e.default=function(t,e,n){var r,i,o,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},l=function(){var l=Date.now();s||!1!==n.leading||(s=l);var c=e-(l-s);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l}},function(t,e,n){"use strict";n.r(e);var r=n(119);e.default=function(t){return Object(r.default)(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";n.r(e);var r={};e.default=function(t){return r[t=t||"g"]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";n.r(e),e.default=function(){}},function(t,e,n){"use strict";n.r(e),e.default=function(t){return t}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(197),i=n(119);function o(t){return Object(r.default)(t)?0:Object(i.default)(t)?t.length:Object.keys(t).length}},function(t,e,n){"use strict";n.r(e);var r=n(170),i=n(261),o=n(428);e.default=function(t,e,n,a){void 0===a&&(a="...");var s,u,l=Object(o.default)(a,n),c=Object(r.default)(t)?t:Object(i.default)(t),h=e,f=[];if(Object(o.default)(t,n)<=e)return t;for(;s=c.substr(0,16),!((u=Object(o.default)(s,n))+l>h&&u>h);)if(f.push(s),h-=u,!(c=c.substr(16)))return f.join("");for(;s=c.substr(0,1),!((u=Object(o.default)(s,n))+l>h);)if(f.push(s),h-=u,!(c=c.substr(1)))return f.join("");return""+f.join("")+a}},function(t,e,n){"use strict";n.r(e);var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e.default=r},function(t,e,n){"use strict";function r(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";var r,i,o,a;function s(t){r||(r=document.createElement("table"),i=document.createElement("tr"),o=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:i,th:i,"*":document.createElement("div")});var e=o.test(t)&&RegExp.$1;e&&e in a||(e="*");var n=a[e];t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var s=n.childNodes[0];return s&&n.contains(s)&&n.removeChild(s),s}n.r(e),n.d(e,"default",(function(){return s}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(167),i=n(648);function o(t,e){var n=Object(i.default)(t,e),o=parseFloat(Object(r.default)(t,"borderTopWidth"))||0,a=parseFloat(Object(r.default)(t,"paddingTop"))||0,s=parseFloat(Object(r.default)(t,"paddingBottom"))||0;return n+o+(parseFloat(Object(r.default)(t,"borderBottomWidth"))||0)+a+s+(parseFloat(Object(r.default)(t,"marginTop"))||0)+(parseFloat(Object(r.default)(t,"marginBottom"))||0)}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(167),i=n(649);function o(t,e){var n=Object(i.default)(t,e),o=parseFloat(Object(r.default)(t,"borderLeftWidth"))||0,a=parseFloat(Object(r.default)(t,"paddingLeft"))||0,s=parseFloat(Object(r.default)(t,"paddingRight"))||0,u=parseFloat(Object(r.default)(t,"borderRightWidth"))||0,l=parseFloat(Object(r.default)(t,"marginRight"))||0;return n+o+u+a+s+(parseFloat(Object(r.default)(t,"marginLeft"))||0)+l}},function(t,e,n){"use strict";function r(){return window.devicePixelRatio?window.devicePixelRatio:2}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(733),o=n(730),a=n(101),s=n(1557),u=n(1563),l=Object(i.detect)(),c=l&&"firefox"===l.name,h=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");Object(a.isString)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new u.default({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new s.default(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");a.isBrowser&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");a.isBrowser&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(c&&!Object(a.isNil)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(a.isNil)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(o.default);e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"leftTranslate",(function(){return i})),n.d(e,"leftRotate",(function(){return o})),n.d(e,"leftScale",(function(){return a})),n.d(e,"transform",(function(){return s})),n.d(e,"direction",(function(){return u})),n.d(e,"angleTo",(function(){return l})),n.d(e,"vertical",(function(){return c}));var r=n(10);function i(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromTranslation(i,n),r.mat3.multiply(t,i,e)}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromRotation(i,n),r.mat3.multiply(t,i,e)}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromScaling(i,n),r.mat3.multiply(t,i,e)}function s(t,e){for(var n,s,u,l=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,h=e.length;c<h;c++){var f=e[c];switch(f[0]){case"t":i(l,l,[f[1],f[2]]);break;case"s":a(l,l,[f[1],f[2]]);break;case"r":o(l,l,f[1]);break;case"m":n=l,s=l,u=f[1],r.mat3.multiply(n,u,s)}}return l}function u(t,e){return t[0]*e[1]-e[0]*t[1]}function l(t,e,n){var i=r.vec2.angle(t,e),o=u(t,e)>=0;return n?o?2*Math.PI-i:i:o?i:2*Math.PI-i}function c(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"copy",(function(){return a})),n.d(e,"identity",(function(){return s})),n.d(e,"fromValues",(function(){return u})),n.d(e,"set",(function(){return l})),n.d(e,"transpose",(function(){return c})),n.d(e,"invert",(function(){return h})),n.d(e,"adjoint",(function(){return f})),n.d(e,"determinant",(function(){return d})),n.d(e,"multiply",(function(){return p})),n.d(e,"rotate",(function(){return g})),n.d(e,"scale",(function(){return v})),n.d(e,"fromRotation",(function(){return m})),n.d(e,"fromScaling",(function(){return y})),n.d(e,"str",(function(){return b})),n.d(e,"frob",(function(){return _})),n.d(e,"LDU",(function(){return x})),n.d(e,"add",(function(){return w})),n.d(e,"subtract",(function(){return O})),n.d(e,"exactEquals",(function(){return S})),n.d(e,"equals",(function(){return C})),n.d(e,"multiplyScalar",(function(){return E})),n.d(e,"multiplyScalarAndAdd",(function(){return T})),n.d(e,"mul",(function(){return A})),n.d(e,"sub",(function(){return M}));var r=n(22);function i(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}function o(t){var e=new r.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t}function u(t,e,n,i){var o=new r.ARRAY_TYPE(4);return o[0]=t,o[1]=e,o[2]=n,o[3]=i,o}function l(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function c(t,e){if(t===e){var n=e[1];t[1]=e[2],t[2]=n}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t}function h(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*o-i*r;return a?(a=1/a,t[0]=o*a,t[1]=-r*a,t[2]=-i*a,t[3]=n*a,t):null}function f(t,e){var n=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=n,t}function d(t){return t[0]*t[3]-t[2]*t[1]}function p(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1],l=n[2],c=n[3];return t[0]=r*s+o*u,t[1]=i*s+a*u,t[2]=r*l+o*c,t[3]=i*l+a*c,t}function g(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+o*s,t[1]=i*u+a*s,t[2]=r*-s+o*u,t[3]=i*-s+a*u,t}function v(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1];return t[0]=r*s,t[1]=i*s,t[2]=o*u,t[3]=a*u,t}function m(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t}function y(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t}function b(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function _(t){return Math.hypot(t[0],t[1],t[2],t[3])}function x(t,e,n,r){return t[2]=r[2]/r[0],n[0]=r[0],n[1]=r[1],n[3]=r[3]-t[2]*n[1],[t,e,n]}function w(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function O(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function S(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function C(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=e[0],u=e[1],l=e[2],c=e[3];return Math.abs(n-s)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-u)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(o-l)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(a-c)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(c))}function E(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function T(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t}var A=p,M=O},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"copy",(function(){return a})),n.d(e,"identity",(function(){return s})),n.d(e,"fromValues",(function(){return u})),n.d(e,"set",(function(){return l})),n.d(e,"invert",(function(){return c})),n.d(e,"determinant",(function(){return h})),n.d(e,"multiply",(function(){return f})),n.d(e,"rotate",(function(){return d})),n.d(e,"scale",(function(){return p})),n.d(e,"translate",(function(){return g})),n.d(e,"fromRotation",(function(){return v})),n.d(e,"fromScaling",(function(){return m})),n.d(e,"fromTranslation",(function(){return y})),n.d(e,"str",(function(){return b})),n.d(e,"frob",(function(){return _})),n.d(e,"add",(function(){return x})),n.d(e,"subtract",(function(){return w})),n.d(e,"multiplyScalar",(function(){return O})),n.d(e,"multiplyScalarAndAdd",(function(){return S})),n.d(e,"exactEquals",(function(){return C})),n.d(e,"equals",(function(){return E})),n.d(e,"mul",(function(){return T})),n.d(e,"sub",(function(){return A}));var r=n(22);function i(){var t=new r.ARRAY_TYPE(6);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t}function o(t){var e=new r.ARRAY_TYPE(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function u(t,e,n,i,o,a){var s=new r.ARRAY_TYPE(6);return s[0]=t,s[1]=e,s[2]=n,s[3]=i,s[4]=o,s[5]=a,s}function l(t,e,n,r,i,o,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t}function c(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=n*o-r*i;return u?(u=1/u,t[0]=o*u,t[1]=-r*u,t[2]=-i*u,t[3]=n*u,t[4]=(i*s-o*a)*u,t[5]=(r*a-n*s)*u,t):null}function h(t){return t[0]*t[3]-t[1]*t[2]}function f(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=n[0],c=n[1],h=n[2],f=n[3],d=n[4],p=n[5];return t[0]=r*l+o*c,t[1]=i*l+a*c,t[2]=r*h+o*f,t[3]=i*h+a*f,t[4]=r*d+o*p+s,t[5]=i*d+a*p+u,t}function d(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=Math.sin(n),c=Math.cos(n);return t[0]=r*c+o*l,t[1]=i*c+a*l,t[2]=r*-l+o*c,t[3]=i*-l+a*c,t[4]=s,t[5]=u,t}function p(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=n[0],c=n[1];return t[0]=r*l,t[1]=i*l,t[2]=o*c,t[3]=a*c,t[4]=s,t[5]=u,t}function g(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=n[0],c=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=r*l+o*c+s,t[5]=i*l+a*c+u,t}function v(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t[4]=0,t[5]=0,t}function m(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t}function y(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t}function b(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"}function _(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)}function x(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t}function w(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t}function O(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t}function S(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t}function C(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]}function E(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=e[0],c=e[1],h=e[2],f=e[3],d=e[4],p=e[5];return Math.abs(n-l)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(i-c)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-h)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(a-f)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(f))&&Math.abs(s-d)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(d))&&Math.abs(u-p)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(p))}var T=f,A=w},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return a})),n.d(e,"clone",(function(){return s})),n.d(e,"fromValues",(function(){return u})),n.d(e,"fromRotationTranslationValues",(function(){return l})),n.d(e,"fromRotationTranslation",(function(){return c})),n.d(e,"fromTranslation",(function(){return h})),n.d(e,"fromRotation",(function(){return f})),n.d(e,"fromMat4",(function(){return d})),n.d(e,"copy",(function(){return p})),n.d(e,"identity",(function(){return g})),n.d(e,"set",(function(){return v})),n.d(e,"getReal",(function(){return m})),n.d(e,"getDual",(function(){return y})),n.d(e,"setReal",(function(){return b})),n.d(e,"setDual",(function(){return _})),n.d(e,"getTranslation",(function(){return x})),n.d(e,"translate",(function(){return w})),n.d(e,"rotateX",(function(){return O})),n.d(e,"rotateY",(function(){return S})),n.d(e,"rotateZ",(function(){return C})),n.d(e,"rotateByQuatAppend",(function(){return E})),n.d(e,"rotateByQuatPrepend",(function(){return T})),n.d(e,"rotateAroundAxis",(function(){return A})),n.d(e,"add",(function(){return M})),n.d(e,"multiply",(function(){return I})),n.d(e,"mul",(function(){return j})),n.d(e,"scale",(function(){return k})),n.d(e,"dot",(function(){return P})),n.d(e,"lerp",(function(){return L})),n.d(e,"invert",(function(){return R})),n.d(e,"conjugate",(function(){return D})),n.d(e,"length",(function(){return N})),n.d(e,"len",(function(){return B})),n.d(e,"squaredLength",(function(){return F})),n.d(e,"sqrLen",(function(){return z})),n.d(e,"normalize",(function(){return V})),n.d(e,"str",(function(){return U})),n.d(e,"exactEquals",(function(){return G})),n.d(e,"equals",(function(){return H}));var r=n(22),i=n(280),o=n(149);function a(){var t=new r.ARRAY_TYPE(8);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t}function s(t){var e=new r.ARRAY_TYPE(8);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e}function u(t,e,n,i,o,a,s,u){var l=new r.ARRAY_TYPE(8);return l[0]=t,l[1]=e,l[2]=n,l[3]=i,l[4]=o,l[5]=a,l[6]=s,l[7]=u,l}function l(t,e,n,i,o,a,s){var u=new r.ARRAY_TYPE(8);u[0]=t,u[1]=e,u[2]=n,u[3]=i;var l=.5*o,c=.5*a,h=.5*s;return u[4]=l*i+c*n-h*e,u[5]=c*i+h*t-l*n,u[6]=h*i+l*e-c*t,u[7]=-l*t-c*e-h*n,u}function c(t,e,n){var r=.5*n[0],i=.5*n[1],o=.5*n[2],a=e[0],s=e[1],u=e[2],l=e[3];return t[0]=a,t[1]=s,t[2]=u,t[3]=l,t[4]=r*l+i*u-o*s,t[5]=i*l+o*a-r*u,t[6]=o*l+r*s-i*a,t[7]=-r*a-i*s-o*u,t}function h(t,e){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*e[0],t[5]=.5*e[1],t[6]=.5*e[2],t[7]=0,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t}function d(t,e){var n=i.create();o.getRotation(n,e);var a=new r.ARRAY_TYPE(3);return o.getTranslation(a,e),c(t,n,a),t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t}function g(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t}function v(t,e,n,r,i,o,a,s,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t}var m=i.copy;function y(t,e){return t[0]=e[4],t[1]=e[5],t[2]=e[6],t[3]=e[7],t}var b=i.copy;function _(t,e){return t[4]=e[0],t[5]=e[1],t[6]=e[2],t[7]=e[3],t}function x(t,e){var n=e[4],r=e[5],i=e[6],o=e[7],a=-e[0],s=-e[1],u=-e[2],l=e[3];return t[0]=2*(n*l+o*a+r*u-i*s),t[1]=2*(r*l+o*s+i*a-n*u),t[2]=2*(i*l+o*u+n*s-r*a),t}function w(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=.5*n[0],u=.5*n[1],l=.5*n[2],c=e[4],h=e[5],f=e[6],d=e[7];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=a*s+i*l-o*u+c,t[5]=a*u+o*s-r*l+h,t[6]=a*l+r*u-i*s+f,t[7]=-r*s-i*u-o*l+d,t}function O(t,e,n){var r=-e[0],o=-e[1],a=-e[2],s=e[3],u=e[4],l=e[5],c=e[6],h=e[7],f=u*s+h*r+l*a-c*o,d=l*s+h*o+c*r-u*a,p=c*s+h*a+u*o-l*r,g=h*s-u*r-l*o-c*a;return i.rotateX(t,e,n),r=t[0],o=t[1],a=t[2],s=t[3],t[4]=f*s+g*r+d*a-p*o,t[5]=d*s+g*o+p*r-f*a,t[6]=p*s+g*a+f*o-d*r,t[7]=g*s-f*r-d*o-p*a,t}function S(t,e,n){var r=-e[0],o=-e[1],a=-e[2],s=e[3],u=e[4],l=e[5],c=e[6],h=e[7],f=u*s+h*r+l*a-c*o,d=l*s+h*o+c*r-u*a,p=c*s+h*a+u*o-l*r,g=h*s-u*r-l*o-c*a;return i.rotateY(t,e,n),r=t[0],o=t[1],a=t[2],s=t[3],t[4]=f*s+g*r+d*a-p*o,t[5]=d*s+g*o+p*r-f*a,t[6]=p*s+g*a+f*o-d*r,t[7]=g*s-f*r-d*o-p*a,t}function C(t,e,n){var r=-e[0],o=-e[1],a=-e[2],s=e[3],u=e[4],l=e[5],c=e[6],h=e[7],f=u*s+h*r+l*a-c*o,d=l*s+h*o+c*r-u*a,p=c*s+h*a+u*o-l*r,g=h*s-u*r-l*o-c*a;return i.rotateZ(t,e,n),r=t[0],o=t[1],a=t[2],s=t[3],t[4]=f*s+g*r+d*a-p*o,t[5]=d*s+g*o+p*r-f*a,t[6]=p*s+g*a+f*o-d*r,t[7]=g*s-f*r-d*o-p*a,t}function E(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],u=e[1],l=e[2],c=e[3];return t[0]=s*a+c*r+u*o-l*i,t[1]=u*a+c*i+l*r-s*o,t[2]=l*a+c*o+s*i-u*r,t[3]=c*a-s*r-u*i-l*o,s=e[4],u=e[5],l=e[6],c=e[7],t[4]=s*a+c*r+u*o-l*i,t[5]=u*a+c*i+l*r-s*o,t[6]=l*a+c*o+s*i-u*r,t[7]=c*a-s*r-u*i-l*o,t}function T(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1],l=n[2],c=n[3];return t[0]=r*c+a*s+i*l-o*u,t[1]=i*c+a*u+o*s-r*l,t[2]=o*c+a*l+r*u-i*s,t[3]=a*c-r*s-i*u-o*l,s=n[4],u=n[5],l=n[6],c=n[7],t[4]=r*c+a*s+i*l-o*u,t[5]=i*c+a*u+o*s-r*l,t[6]=o*c+a*l+r*u-i*s,t[7]=a*c-r*s-i*u-o*l,t}function A(t,e,n,i){if(Math.abs(i)<r.EPSILON)return p(t,e);var o=Math.hypot(n[0],n[1],n[2]);i*=.5;var a=Math.sin(i),s=a*n[0]/o,u=a*n[1]/o,l=a*n[2]/o,c=Math.cos(i),h=e[0],f=e[1],d=e[2],g=e[3];t[0]=h*c+g*s+f*l-d*u,t[1]=f*c+g*u+d*s-h*l,t[2]=d*c+g*l+h*u-f*s,t[3]=g*c-h*s-f*u-d*l;var v=e[4],m=e[5],y=e[6],b=e[7];return t[4]=v*c+b*s+m*l-y*u,t[5]=m*c+b*u+y*s-v*l,t[6]=y*c+b*l+v*u-m*s,t[7]=b*c-v*s-m*u-y*l,t}function M(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t}function I(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[4],u=n[5],l=n[6],c=n[7],h=e[4],f=e[5],d=e[6],p=e[7],g=n[0],v=n[1],m=n[2],y=n[3];return t[0]=r*y+a*g+i*m-o*v,t[1]=i*y+a*v+o*g-r*m,t[2]=o*y+a*m+r*v-i*g,t[3]=a*y-r*g-i*v-o*m,t[4]=r*c+a*s+i*l-o*u+h*y+p*g+f*m-d*v,t[5]=i*c+a*u+o*s-r*l+f*y+p*v+d*g-h*m,t[6]=o*c+a*l+r*u-i*s+d*y+p*m+h*v-f*g,t[7]=a*c-r*s-i*u-o*l+p*y-h*g-f*v-d*m,t}var j=I;function k(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t}var P=i.dot;function L(t,e,n,r){var i=1-r;return P(e,n)<0&&(r=-r),t[0]=e[0]*i+n[0]*r,t[1]=e[1]*i+n[1]*r,t[2]=e[2]*i+n[2]*r,t[3]=e[3]*i+n[3]*r,t[4]=e[4]*i+n[4]*r,t[5]=e[5]*i+n[5]*r,t[6]=e[6]*i+n[6]*r,t[7]=e[7]*i+n[7]*r,t}function R(t,e){var n=F(e);return t[0]=-e[0]/n,t[1]=-e[1]/n,t[2]=-e[2]/n,t[3]=e[3]/n,t[4]=-e[4]/n,t[5]=-e[5]/n,t[6]=-e[6]/n,t[7]=e[7]/n,t}function D(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=e[7],t}var N=i.length,B=N,F=i.squaredLength,z=F;function V(t,e){var n=F(e);if(n>0){n=Math.sqrt(n);var r=e[0]/n,i=e[1]/n,o=e[2]/n,a=e[3]/n,s=e[4],u=e[5],l=e[6],c=e[7],h=r*s+i*u+o*l+a*c;t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=(s-r*h)/n,t[5]=(u-i*h)/n,t[6]=(l-o*h)/n,t[7]=(c-a*h)/n}return t}function U(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"}function G(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]}function H(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=e[0],f=e[1],d=e[2],p=e[3],g=e[4],v=e[5],m=e[6],y=e[7];return Math.abs(n-h)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(i-f)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(o-d)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(a-p)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(s-g)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(u-v)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(l-m)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(c-y)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(y))}},function(t,e,n){"use strict";function r(t){return+t}n.r(e),n.d(e,"linear",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},e}(n(730).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(731),o=n(229),a=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,a=t.maxY;if(e){var s=Object(o.multiplyVec2)(e,[t.minX,t.minY]),u=Object(o.multiplyVec2)(e,[t.maxX,t.minY]),l=Object(o.multiplyVec2)(e,[t.minX,t.maxY]),c=Object(o.multiplyVec2)(e,[t.maxX,t.maxY]);n=Math.min(s[0],u[0],l[0],c[0]),i=Math.max(s[0],u[0],l[0],c[0]),r=Math.min(s[1],u[1],l[1],c[1]),a=Math.max(s[1],u[1],l[1],c[1])}var h=this.attrs;if(h.shadowColor){var f=h.shadowBlur,d=void 0===f?0:f,p=h.shadowOffsetX,g=void 0===p?0:p,v=h.shadowOffsetY,m=void 0===v?0:v,y=n-d+g,b=i+d+g,_=r-d+m,x=a+d+m;n=Math.min(n,y),i=Math.max(i,b),r=Math.min(r,_),a=Math.max(a,x)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],o=(i=this.invertFromMatrix(i))[0],a=i[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(r&&r.isHit(o,a))return!0}return!1},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(230),i=n(91),o=n(583);function a(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function s(t,e,n){var r=t+n-2*e;if(Object(i.isNumberEqual)(r,0))return[.5];var o=(t-e)/r;return o<=1&&o>=0?[o]:[]}function u(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function l(t,e,n,i,o,s,u){var l=a(t,n,o,u),c=a(e,i,s,u),h=r.default.pointAt(t,e,n,i,u),f=r.default.pointAt(n,i,o,s,u);return[[t,e,h.x,h.y,l,c],[l,c,f.x,f.y,o,s]]}e.default={box:function(t,e,n,r,o,u){var l=s(t,n,o)[0],c=s(e,r,u)[0],h=[t,o],f=[e,u];return void 0!==l&&h.push(a(t,n,o,l)),void 0!==c&&f.push(a(e,r,u,c)),Object(i.getBBoxByArray)(h,f)},length:function(t,e,n,r,o,a){return function t(e,n,r,o,a,s,u){if(0===u)return(Object(i.distance)(e,n,r,o)+Object(i.distance)(r,o,a,s)+Object(i.distance)(e,n,a,s))/2;var c=l(e,n,r,o,a,s,.5),h=c[0],f=c[1];return h.push(u-1),f.push(u-1),t.apply(null,h)+t.apply(null,f)}(t,e,n,r,o,a,3)},nearestPoint:function(t,e,n,r,i,s,u,l){return Object(o.nearestPoint)([t,n,i],[e,r,s],u,l,a)},pointDistance:function(t,e,n,r,o,a,s,u){var l=this.nearestPoint(t,e,n,r,o,a,s,u);return Object(i.distance)(l.x,l.y,s,u)},interpolationAt:a,pointAt:function(t,e,n,r,i,o,s){return{x:a(t,n,i,s),y:a(e,r,o,s)}},divide:function(t,e,n,r,i,o,a){return l(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,o,a,s){var l=u(t,n,o,s),c=u(e,r,a,s),h=Math.atan2(c,l);return Object(i.piMod)(h)}}},function(t,e,n){"use strict";n.r(e);var r=n(91),i=n(230),o=n(583);function a(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function s(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function u(t,e,n,i){var o,a,s,u=-3*t+9*e-9*n+3*i,l=6*t-12*e+6*n,c=3*e-3*t,h=[];if(Object(r.isNumberEqual)(u,0))Object(r.isNumberEqual)(l,0)||(o=-c/l)>=0&&o<=1&&h.push(o);else{var f=l*l-4*u*c;Object(r.isNumberEqual)(f,0)?h.push(-l/(2*u)):f>0&&(a=(-l-(s=Math.sqrt(f)))/(2*u),(o=(-l+s)/(2*u))>=0&&o<=1&&h.push(o),a>=0&&a<=1&&h.push(a))}return h}function l(t,e,n,r,o,s,u,l,c){var h=a(t,n,o,u,c),f=a(e,r,s,l,c),d=i.default.pointAt(t,e,n,r,c),p=i.default.pointAt(n,r,o,s,c),g=i.default.pointAt(o,s,u,l,c),v=i.default.pointAt(d.x,d.y,p.x,p.y,c),m=i.default.pointAt(p.x,p.y,g.x,g.y,c);return[[t,e,d.x,d.y,v.x,v.y,h,f],[h,f,m.x,m.y,g.x,g.y,u,l]]}e.default={extrema:u,box:function(t,e,n,i,o,s,l,c){for(var h=[t,l],f=[e,c],d=u(t,n,o,l),p=u(e,i,s,c),g=0;g<d.length;g++)h.push(a(t,n,o,l,d[g]));for(g=0;g<p.length;g++)f.push(a(e,i,s,c,p[g]));return Object(r.getBBoxByArray)(h,f)},length:function(t,e,n,r,i,a,s,u){return function t(e,n,r,i,a,s,u,c,h){if(0===h)return Object(o.snapLength)([e,r,a,u],[n,i,s,c]);var f=l(e,n,r,i,a,s,u,c,.5),d=f[0],p=f[1];return d.push(h-1),p.push(h-1),t.apply(null,d)+t.apply(null,p)}(t,e,n,r,i,a,s,u,3)},nearestPoint:function(t,e,n,r,i,s,u,l,c,h,f){return Object(o.nearestPoint)([t,n,i,u],[e,r,s,l],c,h,a,f)},pointDistance:function(t,e,n,i,o,a,s,u,l,c,h){var f=this.nearestPoint(t,e,n,i,o,a,s,u,l,c,h);return Object(r.distance)(f.x,f.y,l,c)},interpolationAt:a,pointAt:function(t,e,n,r,i,o,s,u,l){return{x:a(t,n,i,s,l),y:a(e,r,o,u,l)}},divide:function(t,e,n,r,i,o,a,s,u){return l(t,e,n,r,i,o,a,s,u)},tangentAngle:function(t,e,n,i,o,a,u,l,c){var h=s(t,n,o,u,c),f=s(e,i,a,l,c);return Object(r.piMod)(Math.atan2(f,h))}}},function(t,e,n){"use strict";n.r(e);var r=n(91),i=n(1565);function o(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t}function a(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}function s(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function u(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}e.default={box:function(t,e,n,r,i,s,u){for(var l=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),c=1/0,h=-1/0,f=[s,u],d=2*-Math.PI;d<=2*Math.PI;d+=Math.PI){var p=l+d;s<u?s<p&&p<u&&f.push(p):u<p&&p<s&&f.push(p)}for(d=0;d<f.length;d++){var g=o(t,0,n,r,i,f[d]);g<c&&(c=g),g>h&&(h=g)}var v=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),m=1/0,y=-1/0,b=[s,u];for(d=2*-Math.PI;d<=2*Math.PI;d+=Math.PI){var _=v+d;s<u?s<_&&_<u&&b.push(_):u<_&&_<s&&b.push(_)}for(d=0;d<b.length;d++){var x=a(0,e,n,r,i,b[d]);x<m&&(m=x),x>y&&(y=x)}return{x:c,y:m,width:h-c,height:y-m}},length:function(t,e,n,r,i,o,a){},nearestPoint:function(t,e,n,r,o,a,l,c,h){var f=u(c-t,h-e,-o),d=f[0],p=f[1],g=i.default.nearestPoint(0,0,n,r,d,p),v=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,g.x,g.y);v<a?g=s(n,r,a):v>l&&(g=s(n,r,l));var m=u(g.x,g.y,o);return{x:m[0]+t,y:m[1]+e}},pointDistance:function(t,e,n,i,o,a,s,u,l){var c=this.nearestPoint(t,e,n,i,u,l);return Object(r.distance)(c.x,c.y,u,l)},pointAt:function(t,e,n,r,i,s,u,l){var c=(u-s)*l+s;return{x:o(t,0,n,r,i,c),y:a(0,e,n,r,i,c)}},tangentAngle:function(t,e,n,i,o,a,s,u){var l=(s-a)*u+a,c=function(t,e,n,r,i,o,a,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}(0,0,n,i,o,0,0,l),h=function(t,e,n,r,i,o,a,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}(0,0,n,i,o,0,0,l);return Object(r.piMod)(Math.atan2(h,c))}}},function(t,e,n){"use strict";n.r(e);var r=n(344),i=n(654);function o(t){var e=t.slice(0);return t.length&&e.push(t[0]),e}e.default={box:function(t){return i.default.box(t)},length:function(t){return Object(r.lengthOfSegment)(o(t))},pointAt:function(t,e){return Object(r.pointAtSegments)(o(t),e)},pointDistance:function(t,e,n){return Object(r.distanceAtSegment)(o(t),e,n)},tangentAngle:function(t,e){return Object(r.angleAtSegments)(o(t),e)}}},function(t,e,n){"use strict";n.r(e);var r=n(117);e.default=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var i=!!e,o=[],a=0,s=t.length;a<s;a+=2)o.push([t[a],t[a+1]]);var u,l,c,h=function(t,e,n,i){var o,a,s,u,l,c,h,f=[],d=!!i;if(d){s=i[0],u=i[1];for(var p=0,g=t.length;p<g;p+=1){var v=t[p];s=r.vec2.min([0,0],s,v),u=r.vec2.max([0,0],u,v)}}p=0;for(var m=t.length;p<m;p+=1){v=t[p];if(0!==p||n)if(p!==m-1||n){o=t[[p?p-1:m-1,p-1][n?0:1]],a=t[n?(p+1)%m:p+1];var y=[0,0];y=r.vec2.sub(y,a,o),y=r.vec2.scale(y,y,e);var b=r.vec2.distance(v,o),_=r.vec2.distance(v,a),x=b+_;0!==x&&(b/=x,_/=x);var w=r.vec2.scale([0,0],y,-b),O=r.vec2.scale([0,0],y,_);c=r.vec2.add([0,0],v,w),l=r.vec2.add([0,0],v,O),l=r.vec2.min([0,0],l,r.vec2.max([0,0],a,v)),l=r.vec2.max([0,0],l,r.vec2.min([0,0],a,v)),w=r.vec2.sub([0,0],l,v),w=r.vec2.scale([0,0],w,-b/_),c=r.vec2.add([0,0],v,w),c=r.vec2.min([0,0],c,r.vec2.max([0,0],o,v)),c=r.vec2.max([0,0],c,r.vec2.min([0,0],o,v)),O=r.vec2.sub([0,0],v,c),O=r.vec2.scale([0,0],O,_/b),l=r.vec2.add([0,0],v,O),d&&(c=r.vec2.max([0,0],c,s),c=r.vec2.min([0,0],c,u),l=r.vec2.max([0,0],l,s),l=r.vec2.min([0,0],l,u)),f.push(h),f.push(c),h=l}else c=v,f.push(h),f.push(c);else h=v}return n&&f.push(f.shift()),f}(o,.4,i,n),f=o.length,d=[];for(a=0;a<f-1;a+=1)u=h[2*a],l=h[2*a+1],c=o[a+1],d.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]]);return i&&(u=h[f],l=h[f+1],c=o[0],d.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]])),d}},function(t,e,n){"use strict";n.r(e),n.d(e,"leftTranslate",(function(){return i})),n.d(e,"leftRotate",(function(){return o})),n.d(e,"leftScale",(function(){return a})),n.d(e,"transform",(function(){return s})),n.d(e,"direction",(function(){return u})),n.d(e,"angleTo",(function(){return l})),n.d(e,"vertical",(function(){return c}));var r=n(10);function i(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromTranslation(i,n),r.mat3.multiply(t,i,e)}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromRotation(i,n),r.mat3.multiply(t,i,e)}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromScaling(i,n),r.mat3.multiply(t,i,e)}function s(t,e){for(var n,s,u,l=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,h=e.length;c<h;c++){var f=e[c];switch(f[0]){case"t":i(l,l,[f[1],f[2]]);break;case"s":a(l,l,[f[1],f[2]]);break;case"r":o(l,l,f[1]);break;case"m":n=l,s=l,u=f[1],r.mat3.multiply(n,u,s)}}return l}function u(t,e){return t[0]*e[1]-e[0]*t[1]}function l(t,e,n){var i=r.vec2.angle(t,e),o=u(t,e)>=0;return n?o?2*Math.PI-i:i:o?i:2*Math.PI-i}function c(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,n){"use strict";function r(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var o=[],a=0;a<e.length-1;a++)0===a&&n.push(e[0]),a===e.length-2&&r.push(e[a+1]),o[a]=[(1-i)*e[a][0]+i*e[a+1][0],(1-i)*e[a][1]+i*e[a+1][1]];t(o,i)}}(t,e),{left:n,right:r.reverse()}}function i(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(function(t,e,n){var i=[[t[1],t[2]]];n=n||2;var o=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var a=i,s=1/n,u=0;u<n-1;u++){var l=r(a,s/(1-s*u));o.push(l.left),a=l.right}return o.push(a),o.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var o=[].concat(t);"M"===o[0]&&(o[0]="L");for(var a=0;a<=n-1;a++)i.push(o)}return i}function o(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,o=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var s=0;s<r-n;s++)t.push(t[0]);return t}for(s=0;s<r;s++){var u=Math.floor(o*s);a[u]=(a[u]||0)+1}var l=a.reduce((function(e,r,o){return o===n?e.concat(t[n]):e.concat(i(t[o],t[o+1],r))}),[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l}n.r(e),n.d(e,"default",(function(){return o}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(1);function i(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}function o(t,e){var n=function(t,e){var n,o,a=t.length,s=e.length,u=0;if(0===a||0===s)return null;for(var l=[],c=0;c<=a;c++)l[c]=[],l[c][0]={min:c};for(var h=0;h<=s;h++)l[0][h]={min:h};for(c=1;c<=a;c++){n=t[c-1];for(h=1;h<=s;h++){o=e[h-1],u=Object(r.isEqual)(n,o)?0:1;var f=l[c-1][h].min+1,d=l[c][h-1].min+1,p=l[c-1][h-1].min+u;l[c][h]=i(f,d,p)}}return l}(t,e),o=t.length,a=e.length,s=[],u=1,l=1;if(n[o][a]!==o){for(var c=1;c<=o;c++){var h=n[c][c].min;l=c;for(var f=u;f<=a;f++)n[c][f].min<h&&(h=n[c][f].min,l=f);u=l,n[c][u].type&&s.push({index:c-1,type:n[c][u].type})}for(c=s.length-1;c>=0;c--)u=s[c].index,"add"===s[c].type?t.splice(u,0,[].concat(t[u])):t.splice(u,1)}if((o=t.length)<a)for(c=0;c<a-o;c++)"z"===t[o-1][0]||"Z"===t[o-1][0]?t.splice(o-2,0,t[o-2]):t.push(t[o-1]);return t}},function(t,e,n){"use strict";function r(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}function i(t,e,n){for(var i,o=[].concat(t),a=1/(n+1),s=r(e)[0],u=1;u<=n;u++)a*=u,0===(i=Math.floor(t.length*a))?o.unshift([s[0]*a+t[i][0]*(1-a),s[1]*a+t[i][1]*(1-a)]):o.splice(i,0,[s[0]*a+t[i][0]*(1-a),s[1]*a+t[i][1]*(1-a)]);return o}function o(t,e){if(t.length<=1)return t;for(var n,o=0;o<e.length;o++)if(t[o][0]!==e[o][0])switch(n=r(t[o]),e[o][0]){case"M":t[o]=["M"].concat(n[0]);break;case"L":t[o]=["L"].concat(n[0]);break;case"A":t[o]=[].concat(e[o]),t[o][6]=n[0][0],t[o][7]=n[0][1];break;case"Q":if(n.length<2){if(!(o>0)){t[o]=e[o];break}n=i(n,t[o-1],1)}t[o]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[o]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(o>0)){t[o]=e[o];break}n=i(n,t[o-1],2)}t[o]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(o>0)){t[o]=e[o];break}n=i(n,t[o-1],1)}t[o]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[o]=e[o]}return t}n.r(e),n.d(e,"default",(function(){return o}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return g}));var r=n(1),i=n(657),o=n(559),a=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},s=function(t,e,n,r,i,o,s,u,l){null===l&&(l=1);for(var c=(l=l>1?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p<12;p++){var g=c*h[p]+c,v=a(g,t,n,i,s),m=a(g,e,r,o,u),y=v*v+m*m;d+=f[p]*Math.sqrt(y)}return c*d},u=function(t,e,n,r,i,o,a,s){for(var u,l,c,h,f=[],d=[[],[]],p=0;p<2;++p)if(0===p?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,c=3*n-3*t):(l=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,c=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(h=-c/l)>0&&h<1&&f.push(h)}else{var g=l*l-4*c*u,v=Math.sqrt(g);if(!(g<0)){var m=(-l+v)/(2*u);m>0&&m<1&&f.push(m);var y=(-l-v)/(2*u);y>0&&y<1&&f.push(y)}}for(var b,_=f.length,x=_;_--;)b=1-(h=f[_]),d[0][_]=b*b*b*t+3*b*b*h*n+3*b*h*h*i+h*h*h*a,d[1][_]=b*b*b*e+3*b*b*h*r+3*b*h*h*o+h*h*h*s;return d[0][x]=t,d[1][x]=e,d[0][x+1]=a,d[1][x+1]=s,d[0].length=d[1].length=x+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},l=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,s)||Math.min(e,r)>Math.max(o,s))){var u=(t-n)*(o-s)-(e-r)*(i-a);if(u){var l=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/u,c=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/u,h=+l.toFixed(2),f=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,a).toFixed(2)||h>+Math.max(i,a).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(o,s).toFixed(2)||f>+Math.max(o,s).toFixed(2)))return{x:l,y:c}}}},c=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},h=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:Object(i.default)(t,e,n,r),vb:[t,e,n,r].join(" ")}},f=function(t,e,n,i,o,a,s,l){Object(r.isArray)(t)||(t=[t,e,n,i,o,a,s,l]);var c=u.apply(null,t);return h(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},d=function(t,e,n,r,i,o,a,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),f=u*u,d=f*u,p=t+2*u*(n-t)+f*(i-2*n+t),g=e+2*u*(r-e)+f*(o-2*r+e),v=n+2*u*(i-n)+f*(a-2*i+n),m=r+2*u*(o-r)+f*(s-2*o+r);return{x:c*t+3*h*u*n+3*l*u*u*i+d*a,y:c*e+3*h*u*r+3*l*u*u*o+d*s,m:{x:p,y:g},n:{x:v,y:m},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*a,y:l*o+u*s},alpha:90-180*Math.atan2(p-v,g-m)/Math.PI}},p=function(t,e,n){if(!function(t,e){return t=h(t),e=h(e),c(e,t.x,t.y)||c(e,t.x2,t.y)||c(e,t.x,t.y2)||c(e,t.x2,t.y2)||c(t,e.x,e.y)||c(t,e.x2,e.y)||c(t,e.x,e.y2)||c(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(f(t),f(e)))return n?0:[];for(var r=~~(s.apply(0,t)/8),i=~~(s.apply(0,e)/8),o=[],a=[],u={},p=n?0:[],g=0;g<r+1;g++){var v=d.apply(0,t.concat(g/r));o.push({x:v.x,y:v.y,t:g/r})}for(g=0;g<i+1;g++){v=d.apply(0,e.concat(g/i));a.push({x:v.x,y:v.y,t:g/i})}for(g=0;g<r;g++)for(var m=0;m<i;m++){var y=o[g],b=o[g+1],_=a[m],x=a[m+1],w=Math.abs(b.x-y.x)<.001?"y":"x",O=Math.abs(x.x-_.x)<.001?"y":"x",S=l(y.x,y.y,b.x,b.y,_.x,_.y,x.x,x.y);if(S){if(u[S.x.toFixed(4)]===S.y.toFixed(4))continue;u[S.x.toFixed(4)]=S.y.toFixed(4);var C=y.t+Math.abs((S[w]-y[w])/(b[w]-y[w]))*(b.t-y.t),E=_.t+Math.abs((S[O]-_[O])/(x[O]-_[O]))*(x.t-_.t);C>=0&&C<=1&&E>=0&&E<=1&&(n?p++:p.push({x:S.x,y:S.y,t1:C,t2:E}))}}return p};function g(t,e){return function(t,e,n){var r,i,a,s,u,l,c,h,f,d;t=Object(o.default)(t),e=Object(o.default)(e);for(var g=n?0:[],v=0,m=t.length;v<m;v++){var y=t[v];if("M"===y[0])r=u=y[1],i=l=y[2];else{"C"===y[0]?(f=[r,i].concat(y.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,u,l,u,l],r=u,i=l);for(var b=0,_=e.length;b<_;b++){var x=e[b];if("M"===x[0])a=c=x[1],s=h=x[2];else{"C"===x[0]?(d=[a,s].concat(x.slice(1)),a=d[6],s=d[7]):(d=[a,s,a,s,c,h,c,h],a=c,s=h);var w=p(f,d,n);if(n)g+=w;else{for(var O=0,S=w.length;O<S;O++)w[O].segment1=v,w[O].segment2=b,w[O].bez1=f,w[O].bez2=d;g=g.concat(w)}}}}}return g}(t,e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=/,?([a-z]),?/gi;function i(t){return t.join(",").replace(r,"$1")}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(461),i=n(656);function o(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function a(t){for(var e=[],n=null,a=null,s=null,u=0,l=(t=Object(i.default)(t)).length,c=0;c<l;c++){var h=t[c];a=t[c+1];var f=h[0],d={command:f,prePoint:n,params:h,startTangent:null,endTangent:null};switch(f){case"M":s=[h[1],h[2]],u=c;break;case"A":var p=Object(r.default)(n,h);d.arcParams=p}if("Z"===f)n=s,a=t[u+1];else{var g=h.length;n=[h[g-2],h[g-1]]}a&&"Z"===a[0]&&(a=t[u],e[u]&&(e[u].prePoint=n)),d.currentPoint=n,e[u]&&Object(r.isSamePoint)(n,e[u].currentPoint)&&(e[u].prePoint=d.prePoint);var v=a?[a[a.length-2],a[a.length-1]]:null;d.nextPoint=v;var m=d.prePoint;if(["L","H","V"].includes(f))d.startTangent=[m[0]-n[0],m[1]-n[1]],d.endTangent=[n[0]-m[0],n[1]-m[1]];else if("Q"===f){var y=[h[1],h[2]];d.startTangent=[m[0]-y[0],m[1]-y[1]],d.endTangent=[n[0]-y[0],n[1]-y[1]]}else if("T"===f){y=o((x=e[c-1]).currentPoint,m);"Q"===x.command?(d.command="Q",d.startTangent=[m[0]-y[0],m[1]-y[1]],d.endTangent=[n[0]-y[0],n[1]-y[1]]):(d.command="TL",d.startTangent=[m[0]-n[0],m[1]-n[1]],d.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("C"===f){var b=[h[1],h[2]],_=[h[3],h[4]];d.startTangent=[m[0]-b[0],m[1]-b[1]],d.endTangent=[n[0]-_[0],n[1]-_[1]],0===d.startTangent[0]&&0===d.startTangent[1]&&(d.startTangent=[b[0]-_[0],b[1]-_[1]]),0===d.endTangent[0]&&0===d.endTangent[1]&&(d.endTangent=[_[0]-b[0],_[1]-b[1]])}else if("S"===f){var x;b=o((x=e[c-1]).currentPoint,m),_=[h[1],h[2]];"C"===x.command?(d.command="C",d.startTangent=[m[0]-b[0],m[1]-b[1]],d.endTangent=[n[0]-_[0],n[1]-_[1]]):(d.command="SQ",d.startTangent=[m[0]-_[0],m[1]-_[1]],d.endTangent=[n[0]-_[0],n[1]-_[1]])}else if("A"===f){var w=.001,O=d.arcParams||{},S=O.cx,C=void 0===S?0:S,E=O.cy,T=void 0===E?0:E,A=O.rx,M=void 0===A?0:A,I=O.ry,j=void 0===I?0:I,k=O.sweepFlag,P=void 0===k?0:k,L=O.startAngle,R=void 0===L?0:L,D=O.endAngle,N=void 0===D?0:D;0===P&&(w*=-1);var B=M*Math.cos(R-w)+C,F=j*Math.sin(R-w)+T;d.startTangent=[B-s[0],F-s[1]];var z=M*Math.cos(R+N+w)+C,V=j*Math.sin(R+N-w)+T;d.endTangent=[m[0]-z,m[1]-V]}e.push(d)}return e}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var r=n(560),i=n(660),o=n(1);function a(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],o=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function s(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function u(t,e){if(t.length<2||e.length<2)return!1;var n,u,l=s(t),c=s(e);if(n=l,(u=c).minX>n.maxX||u.maxX<n.minX||u.minY>n.maxY||u.maxY<n.minY)return!1;var h=!1;if(Object(o.each)(e,(function(e){if(Object(r.default)(t,e[0],e[1]))return h=!0,!1})),h)return!0;if(Object(o.each)(t,(function(t){if(Object(r.default)(e,t[0],t[1]))return h=!0,!1})),h)return!0;var f=a(t),d=a(e),p=!1;return Object(o.each)(d,(function(t){if(function(t,e){var n=!1;return Object(o.each)(t,(function(t){if(Object(i.default)(t.from,t.to,e.from,e.to))return n=!0,!1})),n}(f,t))return p=!0,!1})),p}},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e);var r=n(1097);n.d(e,"Line",(function(){return r.default}));var i=n(1098);n.d(e,"Text",(function(){return i.default}));var o=n(1099);n.d(e,"Arc",(function(){return o.default}));var a=n(1100);n.d(e,"Region",(function(){return a.default}));var s=n(1101);n.d(e,"Image",(function(){return s.default}));var u=n(1102);n.d(e,"DataMarker",(function(){return u.default}));var l=n(1103);n.d(e,"DataRegion",(function(){return l.default}));var c=n(1104);n.d(e,"RegionFilter",(function(){return c.default}));var h=n(1105);n.d(e,"Shape",(function(){return h.default}));var f=n(1106);n.d(e,"Html",(function(){return f.default}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(96),a=n(387),s=n(56),u=n(46),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:s.default.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:s.default.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:s.default.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var e=this.get("start"),n=this.get("end"),i=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:Object(r.__assign)({x1:e.x,y1:e.y,x2:n.x,y2:n.y},i)})},e.prototype.getLabelPoint=function(t,e,n){var r;return((r="start"===n?0:"center"===n?.5:Object(i.isString)(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:Object(i.isNumber)(n)?n:1)>1||r<0)&&(r=1),{x:Object(u.getValueByPercent)(t.x,e.x,r),y:Object(u.getValueByPercent)(t.y,e.y,r)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),r=this.get("end"),i=e.position,o=e.content,s=e.style,u=e.offsetX,l=e.offsetY,c=e.autoRotate,h=e.maxLength,f=e.autoEllipsis,d=e.ellipsisPosition,p=e.background,g=e.isVertical,v=void 0!==g&&g,m=this.getLabelPoint(n,r,i),y=m.x+u,b=m.y+l,_={id:this.getElementId("line-text"),name:"annotation-line-text",x:y,y:b,content:o,style:s,maxLength:h,autoEllipsis:f,ellipsisPosition:d,background:p,isVertical:v};if(c){var x=[r.x-n.x,r.y-n.y];_.rotate=Math.atan2(x[1],x[0])}Object(a.renderTag)(t,_)},e}(o.default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(96),o=n(387),a=n(128),s=n(56),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:s.default.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:s.default.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("content"),a=this.get("style"),s={id:this.getElementId("text"),name:this.get("name")+"-text",x:n,y:r,content:i,style:a,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")};Object(o.renderTag)(t,s)},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("rotate");Object(a.applyTranslate)(t,n,r),Object(a.applyRotate)(t,i,n,r)}},e}(i.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(96),o=n(46),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,a=Object(o.getCirclePoint)(e,n,r),s=Object(o.getCirclePoint)(e,n,i),u=i-r>Math.PI?1:0,l=[["M",a.x,a.y]];if(i-r==2*Math.PI){var c=Object(o.getCirclePoint)(e,n,r+Math.PI);l.push(["A",n,n,0,u,1,c.x,c.y]),l.push(["A",n,n,0,u,1,s.x,s.y])}else l.push(["A",n,n,0,u,1,s.x,s.y]);return l},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:Object(r.__assign)({path:e},n)})},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(96),o=n(56),a=n(46),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:o.default.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),i=this.get("style"),o=Object(a.regionToBBox)({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:Object(r.__assign)({x:o.x,y:o.y,width:o.width,height:o.height},i)})},e}(i.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(96),o=n(46),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),i=Object(o.regionToBBox)({start:t,end:e}),a=this.get("src");return Object(r.__assign)({x:i.x,y:i.y,img:a,width:i.width,height:i.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(96),a=n(387),s=n(128),u=n(56),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:u.default.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:u.default.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:u.default.fontFamily}}}})},e.prototype.renderInner=function(t){Object(i.get)(this.get("line"),"display")&&this.renderLine(t),Object(i.get)(this.get("text"),"display")&&this.renderText(t),Object(i.get)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,i=e.y,o=e.text,s=Object(r.__rest)(e,["x","y","text"]),u=this.get("text"),l=u.background,c=u.maxLength,h=u.autoEllipsis,f=u.isVertival,d=u.ellipsisPosition,p={x:n,y:i,id:this.getElementId("text"),name:"annotation-text",content:o,style:s,background:l,maxLength:c,autoEllipsis:h,isVertival:f,ellipsisPosition:d};Object(a.renderTag)(t,p)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),r=this.get("y"),o=Object(i.get)(this.get("line"),"length",0),a=this.get("coordinateBBox"),u=t.getBBox(),l=u.minX,c=u.maxX,h=u.minY,f=u.maxY,d=t.findById(this.getElementId("text-group")),p=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(a){if(d){if(n+l<=a.minX){var v=a.minX-(n+l);Object(s.applyTranslate)(d,d.attr("x")+v,d.attr("y"))}if(n+c>=a.maxX){v=n+c-a.maxX;Object(s.applyTranslate)(d,d.attr("x")-v,d.attr("y"))}}if("upward"===e&&r+h<=a.minY||"upward"!==e&&r+f>=a.maxY){var m=void 0,y=void 0;"upward"===e&&r+h<=a.minY?(m="top",y=1):(m="bottom",y=-1),p.attr("textBaseline",m),g&&g.attr("path",[["M",0,0],["L",0,o*y]]),Object(s.applyTranslate)(d,d.attr("x"),(o+2)*y)}}},e.prototype.getShapeAttrs=function(){var t=Object(i.get)(this.get("line"),"display"),e=Object(i.get)(this.get("point"),"style",{}),n=Object(i.get)(this.get("line"),"style",{}),o=Object(i.get)(this.get("text"),"style",{}),a=this.get("direction"),s=t?Object(i.get)(this.get("line"),"length",0):0,u="upward"===a?-1:1;return{point:Object(r.__assign)({x:0,y:0},e),line:Object(r.__assign)({path:[["M",0,0],["L",0,s*u]]},n),text:Object(r.__assign)({x:0,y:(s+2)*u,text:Object(i.get)(this.get("text"),"content",""),textBaseline:"upward"===a?"bottom":"top"},o)}},e}(o.default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(96),a=n(56),s=n(46),u=n(387),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:a.default.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:a.default.textColor,fontFamily:a.default.fontFamily}}}})},e.prototype.renderInner=function(t){var e=Object(i.get)(this.get("region"),"style",{}),n=(Object(i.get)(this.get("text"),"style",{}),this.get("lineLength")||0),o=this.get("points");if(o.length){var a=Object(s.pointsToBBox)(o),l=[];l.push(["M",o[0].x,a.minY-n]),o.forEach((function(t){l.push(["L",t.x,t.y])})),l.push(["L",o[o.length-1].x,o[o.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:Object(r.__assign)({path:l},e)});var c=Object(r.__assign)({id:this.getElementId("text"),name:"annotation-text",x:(a.minX+a.maxX)/2,y:a.minY-n},this.get("text"));Object(u.renderTag)(t,c)}},e}(o.default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(96),a=n(46),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),r=this.get("end"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});Object(i.each)(this.get("shapes"),(function(t,n){var r=t.get("type"),a=Object(i.clone)(t.attr());e.adjustShapeAttrs(a),e.addShape(o,{id:e.getElementId("shape-"+r+"-"+n),capture:!1,type:r,attrs:a})}));var s=Object(a.regionToBBox)({start:n,end:r});o.setClip({type:"rect",attrs:{x:s.minX,y:s.minY,width:s.width,height:s.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"shape",draw:i.noop})},e.prototype.renderInner=function(t){var e=this.get("render");Object(i.isFunction)(e)&&e(t)},e}(n(96).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(92),o=n(1),a=n(378),s=n(46),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation" style="position:absolute"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");Object(s.clearDom)(t);var n=Object(o.isFunction)(e)?e(t):e;if(Object(o.isElement)(n))t.appendChild(n);else if(Object(o.isString)(n)||Object(o.isNumber)(n)){var r=Object(i.createDom)(""+n);r&&t.appendChild(r)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,r=e.y,o=this.get("alignX"),a=this.get("alignY"),s=this.get("offsetX"),u=this.get("offsetY"),l=Object(i.getOuterWidth)(t),c=Object(i.getOuterHeight)(t),h={x:n,y:r};"middle"===o?h.x-=Math.round(l/2):"right"===o&&(h.x-=Math.round(l)),"middle"===a?h.y-=Math.round(c/2):"bottom"===a&&(h.y-=Math.round(c)),s&&(h.x+=s),u&&(h.y+=u),Object(i.modifyCSS)(t,{position:"absolute",left:h.x+"px",top:h.y+"px",zIndex:this.get("zIndex")})},e}(a.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(1108);n.d(e,"Line",(function(){return r.default}));var i=n(1112);n.d(e,"Circle",(function(){return i.default}));var o=n(463);n.d(e,"Base",(function(){return o.default}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(25),o=n(1),a=n(463),s=n(737),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),r=t.prototype.getInnerLayoutBBox.call(this),i=Math.min(e.x,n.x,r.x),o=Math.min(e.y,n.y,r.y),a=Math.max(e.x,n.x,r.maxX),s=Math.max(e.y,n.y,r.maxY);return{x:i,y:o,minX:i,minY:o,maxX:a,maxY:s,width:a-i,height:s-o}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return Object(o.isNumberEqual)(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return Object(o.isNumberEqual)(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),r=n.x-e.x,i=n.y-e.y;return{x:e.x+r*t,y:e.y+i*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=i.vec2.normalize([0,0],e),r=this.get("verticalFactor"),o=[n[1],-1*n[0]];return i.vec2.scale([0,0],o,t*r)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),r=this.isHorizontal();if(n||r){var i=this.get("label"),a=this.get("title"),s=this.get("verticalLimitLength"),u=i.offset,l=s,c=0,h=0;a&&(c=a.style.fontSize,h=a.spacing),l&&(l=l-u-h-c);var f=this.get("overlapOrder");if(Object(o.each)(f,(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,l)})),a&&Object(o.isNil)(a.offset)){var d=t.getCanvasBBox(),p=n?d.width:d.height;a.offset=u+p+h+c/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||Object(o.isNil)(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,a=this.isVertical(),u=!1,l=s[t];if(!0===e){this.get("label");u=l.getDefault()(a,n,r)}else if(Object(o.isFunction)(e))u=e(a,n,r);else if(Object(o.isObject)(e)){var c=e;l[c.type]&&(u=l[c.type](a,n,r,c.cfg))}else l[e]&&(u=l[e](a,n,r));if("autoRotate"===t){if(u){var h=n.getChildren(),f=this.get("verticalFactor");Object(o.each)(h,(function(t){if("center"===t.attr("textAlign")){var e=f>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var d=n.getChildren().slice(0);Object(o.each)(d,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(a.default);e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"getDefault",(function(){return a})),n.d(e,"ellipsisHead",(function(){return s})),n.d(e,"ellipsisTail",(function(){return u})),n.d(e,"ellipsisMiddle",(function(){return l}));var r=n(1),i=n(248);function o(t,e,n,o){var a=e.getChildren(),s=!1;return Object(r.each)(a,(function(e){var r=Object(i.ellipsisLabel)(t,e,n,o);s=s||r})),s}function a(){return u}function s(t,e,n){return o(t,e,n,"head")}function u(t,e,n){return o(t,e,n,"tail")}function l(t,e,n){return o(t,e,n,"middle")}},function(t,e,n){"use strict";n.r(e),n.d(e,"getDefault",(function(){return c})),n.d(e,"reserveFirst",(function(){return h})),n.d(e,"reserveLast",(function(){return f})),n.d(e,"reserveBoth",(function(){return d})),n.d(e,"equidistance",(function(){return p})),n.d(e,"equidistanceWithReverseBoth",(function(){return g}));var r=n(248),i=n(128),o=n(46);function a(t){return(function(t){var e=t.attr("matrix");return e&&1!==e[0]}(t)?Object(i.getAngleByMatrix)(t.attr("matrix")):0)%360}function s(t,e,n,r){var i=!1,s=a(e),u=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),l=(t?n.attr("y")>e.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var c=Math.abs(Math.cos(s));i=Object(o.near)(c,0,Math.PI/180)?l.width+r>u:l.height/c+r>u}else{c=Math.abs(Math.sin(s));i=Object(o.near)(c,0,Math.PI/180)?l.width+r>u:l.height/c+r>u}return i}function u(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,o=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!o.length)return!1;var a=!1;n&&o.reverse();for(var u=o.length,l=o[0],c=1;c<u;c++){var h=o[c];h.getBBox();s(t,l,h,i)?(h.hide(),a=!0):l=h}return a}function l(t,e,n){var i=(null==n?void 0:n.minGap)||0,s=e.getChildren().slice();if(s.length<2)return!1;var u=!1,l=s[0],c=l.getBBox(),h=s[1],f=s.length,d=a(l),p=t?Math.abs(h.attr("y")-l.attr("y")):Math.abs(h.attr("x")-l.attr("x")),g=0;if(t){var v=Math.abs(Math.cos(d));if(Object(o.near)(v,0,Math.PI/180))g=(Object(r.getMaxLabelWidth)(s)+i)/p;else g=(c.height/v+i)/p}else{v=Math.abs(Math.sin(d));if(Object(o.near)(v,0,Math.PI/180))g=(Object(r.getMaxLabelWidth)(s)+i)/p;else g=(c.height/v+i)/p}if(g>1){g=Math.ceil(g);for(var m=0;m<f;m++)m%g!=0&&(s[m].hide(),u=!0)}return u}function c(){return p}function h(t,e,n,r){return u(t,e,!1,r)}function f(t,e,n,r){return u(t,e,!0,r)}function d(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,o=e.getChildren().slice();if(o.length<=2)return!1;for(var a=!1,u=o.length,l=o[0],c=o[u-1],h=l,f=1;f<u-1;f++){var d=o[f];d.getBBox();s(t,h,d,i)?(d.hide(),a=!0):h=d}return s(t,h,c,i)&&(h.hide(),a=!0),a}function p(t,e,n,r){var i=l(t,e,r);return u(t,e,!1)&&(i=!0),i}function g(t,e,n,r){var i=e.getChildren().slice(),o=l(t,e,r);if(i.length>2){var a=i[0],s=i[i.length-1];a.get("visible")||(a.show(),u(t,e,!1,r)&&(o=!0)),s.get("visible")||(s.show(),u(t,e,!0,r)&&(o=!0))}return o}},function(t,e,n){"use strict";n.r(e),n.d(e,"getDefault",(function(){return u})),n.d(e,"fixedAngle",(function(){return l})),n.d(e,"unfixedAngle",(function(){return c}));var r=n(1),i=n(248),o=n(128),a=n(56);function s(t,e,n,a){var s=e.getChildren();if(!s.length)return!1;if(!t&&s.length<2)return!1;var u=Object(i.getMaxLabelWidth)(s),l=!1;t?l=!!n&&u>n:l=u>Math.abs(s[1].attr("x")-s[0].attr("x"));l&&function(t,e){Object(r.each)(t,(function(t){var n=t.attr("x"),r=t.attr("y"),i=Object(o.getMatrixByAngle)({x:n,y:r},e);t.attr("matrix",i)}))}(s,a(n,u));return l}function u(){return l}function l(t,e,n,i){return s(t,e,n,(function(){return Object(r.isNumber)(i)?i:t?a.default.verticalAxisRotate:a.default.horizontalAxisRotate}))}function c(t,e,n){return s(t,e,n,(function(e,n){if(!e)return t?a.default.verticalAxisRotate:a.default.horizontalAxisRotate;if(t)return-Math.acos(e/n);var r=0;return(e>n||(r=Math.asin(e/n))>Math.PI/4)&&(r=Math.PI/4),r}))}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(25),a=n(463),s=n(737),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,r=this.get("radius"),i=r,o=this.get("startAngle"),a=this.get("endAngle"),s=[];if(Math.abs(a-o)===2*Math.PI)s=[["M",e,n-i],["A",r,i,0,1,1,e,n+i],["A",r,i,0,1,1,e,n-i],["Z"]];else{var u=this.getCirclePoint(o),l=this.getCirclePoint(a),c=Math.abs(a-o)>Math.PI?1:0,h=o>a?0:1;s=[["M",e,n],["L",u.x,u.y],["A",r,i,0,c,h,l.x,l.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this.getCirclePoint(n)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y],i=this.get("verticalFactor"),a=o.vec2.length(r);return o.vec2.scale(r,r,i*t/a),r},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||Object(i.isNil)(e.rotate)},e.prototype.processOverlap=function(t){var e=this,n=this.get("label"),r=this.get("title"),o=this.get("verticalLimitLength"),a=n.offset,s=o,u=0,l=0;r&&(u=r.style.fontSize,l=r.spacing),s&&(s=s-a-l-u);var c=this.get("overlapOrder");if(Object(i.each)(c,(function(r){n[r]&&e.canProcessOverlap(r)&&e.autoProcessOverlap(r,n[r],t,s)})),r&&Object(i.isNil)(r.offset)){var h=t.getCanvasBBox().height;r.offset=a+h+l+u/2}},e.prototype.autoProcessOverlap=function(t,e,n,r){var o=this,a=!1,u=s[t];if(r>0)if(!0===e)a=u.getDefault()(!1,n,r);else if(Object(i.isFunction)(e))a=e(!1,n,r);else if(Object(i.isObject)(e)){var l=e;u[l.type]&&(a=u[l.type](!1,n,r,l.cfg))}else u[e]&&(a=u[e](!1,n,r));if("autoRotate"===t){if(a){var c=n.getChildren(),h=this.get("verticalFactor");Object(i.each)(c,(function(t){if("center"===t.attr("textAlign")){var e=h>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var f=n.getChildren().slice(0);Object(i.each)(f,(function(t){t.get("visible")||(o.get("isRegister")&&o.unregisterElement(t),t.remove())}))}},e}(a.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(1114);n.d(e,"Line",(function(){return r.default}));var i=n(1115);n.d(e,"Circle",(function(){return i.default}));var o=n(464);n.d(e,"Base",(function(){return o.default}));var a=n(1116);n.d(e,"Html",(function(){return a.default}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(46),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text").position,i=Math.atan2(n.y-e.y,n.x-e.x);return"start"===r?i-Math.PI/2:i+Math.PI/2},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),o=r.position,a=r.offset;return Object(i.getTextPoint)(e,n,o,a)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}(n(464).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(46),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle;return"start"===this.get("text").position?e+Math.PI/2:n-Math.PI/2},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,r=this.getLocation(),o=r.center,a=r.radius,s=r.startAngle,u=r.endAngle,l="start"===e?s:u,c=this.getRotateAngle()-Math.PI,h=Object(i.getCirclePoint)(o,a,l),f=Math.cos(c)*n,d=Math.sin(c)*n;return{x:h.x+f,y:h.y+d}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,o=t.endAngle,a=null;if(o-r==2*Math.PI){var s=e.x,u=e.y;a=[["M",s,u-n],["A",n,n,0,1,1,s,u+n],["A",n,n,0,1,1,s,u-n],["Z"]]}else{var l=Object(i.getCirclePoint)(e,n,r),c=Object(i.getCirclePoint)(e,n,o),h=Math.abs(o-r)>Math.PI?1:0,f=r>o?0:1;a=[["M",l.x,l.y],["A",n,n,0,h,f,c.x,c.y]]}return a},e}(n(464).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(92),o=n(1),a=n(46),s=n(378),u=n(304),l=n(1592),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+u.CONTAINER_CLASS+'"></div>',crosshairTpl:'<div class="'+u.CROSSHAIR_LINE+'"></div>',textTpl:'<span class="'+u.CROSSHAIR_TEXT+'">{content}</span>',domStyles:null,containerClassName:u.CONTAINER_CLASS,defaultStyles:l.default,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=Object(i.createDom)(e);t.appendChild(n),this.applyStyle(u.CROSSHAIR_LINE,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,o=r.offset;return Object(a.getTextPoint)(e,n,i,o)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var r=this.getContainer(),a=Object(o.substitute)(this.get("textTpl"),t);e=Object(i.createDom)(a),r.appendChild(e),this.applyStyle(u.CROSSHAIR_TEXT,e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),r=Math.min(e.x,n.x),o=Math.min(e.y,n.y);this.isVertical(e,n)?Object(i.modifyCSS)(t,{width:"1px",height:Object(a.toPx)(Math.abs(n.y-e.y))}):Object(i.modifyCSS)(t,{height:"1px",width:Object(a.toPx)(Math.abs(n.x-e.x))}),Object(i.modifyCSS)(t,{top:Object(a.toPx)(o),left:Object(a.toPx)(r)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,r=this.getTextPoint();switch(e){case"center":r.x=r.x-n/2;break;case"right":r.x=r.x-n}Object(i.modifyCSS)(t,{top:Object(a.toPx)(r.y),left:Object(a.toPx)(r.x)})}},e.prototype.updateInner=function(e){Object(o.hasKey)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(s.default);e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(465);n.d(e,"Base",(function(){return r.default}));var i=n(1118);n.d(e,"Circle",(function(){return i.default}));var o=n(1119);n.d(e,"Line",(function(){return o.default}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1);var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n,r,o,a,s,u,l=this.getLineType(),c=this.get("closed"),h=[];if(t.length)if("circle"===l){var f=this.get("center"),d=t[0],p=(n=f.x,r=f.y,o=d.x,a=d.y,s=o-n,u=a-r,Math.sqrt(s*s+u*u)),g=e?0:1;c?(h.push(["M",f.x,f.y-p]),h.push(["A",p,p,0,0,g,f.x,f.y+p]),h.push(["A",p,p,0,0,g,f.x,f.y-p]),h.push(["Z"])):Object(i.each)(t,(function(t,e){0===e?h.push(["M",t.x,t.y]):h.push(["A",p,p,0,0,g,t.x,t.y])}))}else Object(i.each)(t,(function(t,e){0===e?h.push(["M",t.x,t.y]):h.push(["L",t.x,t.y])})),c&&h.push(["Z"]);return h},e}(n(465).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return Object(i.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(n(465).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(1121);n.d(e,"Category",(function(){return r.default}));var i=n(1122);n.d(e,"Continuous",(function(){return i.default}));var o=n(466);n.d(e,"Base",(function(){return o.default}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(248),a=n(128),s=n(441),u=n(56),l=n(466),c={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},h={fill:u.default.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:u.default.fontFamily,fontWeight:"normal",lineHeight:12},f={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex<e.totalPagesCnt){e.currentPageIndex+=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},radio:null,items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:u.default.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:u.default.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:c,itemName:{spacing:16,style:h},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:h,spacing:6},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:u.default.uncheckedColor},markerStyle:{fill:u.default.uncheckedColor,stroke:u.default.uncheckedColor}},inactive:{nameStyle:{fill:u.default.uncheckedColor},markerStyle:{opacity:.2}}}}})},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("items")},e.prototype.setItems=function(t){this.update({items:t})},e.prototype.updateItem=function(t,e){Object(i.mix)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n;var r=this.getElementByLocalId("item-"+t.id);if(r){var i=this.getItems().indexOf(t),o=this.createOffScreenGroup(),a=this.drawItem(t,i,this.getItemHeight(),o);this.updateElements(a,r),this.clearUpdateStatus(r)}},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("itemStates"),n=[];return Object(i.each)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(i.each)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(i.filter)(n,(function(n){return e.hasState(n,t)}))},e.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},e.prototype.processItems=function(){var t=this.get("items");Object(i.each)(t,(function(t){t.id||(t.id=t.name)}))},e.prototype.drawItems=function(t){var e=this,n=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),r=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),o=this.getItemHeight(),a=this.get("itemWidth"),s=this.get("itemSpacing"),u=this.get("itemMarginBottom"),l=this.get("currentPoint"),c=l.x,h=l.y,f=this.get("layout"),d=this.get("items"),p=!1,g=0,v=this.get("maxWidth"),m=this.get("maxHeight");Object(i.each)(d,(function(t,n){var i=e.drawItem(t,n,o,r),d=i.getBBox(),y=a||d.width;y>g&&(g=y),"horizontal"===f?(v&&v<l.x+y-c&&(p=!0,l.x=c,l.y+=o+u),e.moveElementTo(i,l),l.x+=y+s):(m&&m<l.y+o+u-h&&(p=!0,l.x+=g+s,l.y=h,g=0),e.moveElementTo(i,l),l.y+=o+u)})),p&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=c,this.startY=h,this.adjustNavigation(t,r))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=(this.get("itemName")||{}).style;if(Object(i.isFunction)(e)){var n=this.getItems();n.forEach((function(i,o){var a=Object(r.__assign)(Object(r.__assign)({},h),e(i,o,n)).fontSize;t<a&&(t=a)}))}else e&&(t=e.fontSize)}return t},e.prototype.drawMarker=function(t,e,n,o){var a=Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({x:0,y:o/2},e.style),{symbol:Object(i.get)(n.marker,"symbol","circle")}),Object(i.get)(n.marker,"style",{})),s=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:a}),u=s.getBBox();s.attr("x",u.width/2);var l=s.attr(),c=l.stroke,h=l.fill;return c&&s.set("isStroke",!0),h&&s.set("isFill",!0),s},e.prototype.drawItemText=function(t,e,n,o,a,s,u){var l=n.formatter,c=n.style,f=Object(r.__assign)(Object(r.__assign)({x:s,y:a/2,text:l?l(o[e],o,u):o[e]},h),Object(i.isFunction)(c)?c(o,u,this.getItems()):c);return this.addShape(t,{type:"text",id:this.getElementId("item-"+o.id+"-"+e),name:"legend-item-"+e,attrs:f})},e.prototype.drawRadio=function(t,e,n,i,o){var a,s,u=e.style||{},l=null!==(a=u.r)&&void 0!==a?a:i/2,c=3.6*l/8,h=[o+l,i/2-l],f=h[0],d=h[1],p=[f+l,d+l],g=p[0],v=p[1],m=[f,v+l],y=m[0],b=m[1],_=[o,d+l],x=_[0],w=_[1],O=n.showRadio,S=Object(r.__assign)(Object(r.__assign)({path:[["M",f,d],["A",l,l,0,0,1,g,v],["L",g-c,v],["L",g,v],["A",l,l,0,0,1,y,b],["L",y,b-c],["L",y,b],["A",l,l,0,0,1,x,w],["L",x+c,w],["L",x,w],["A",l,l,0,0,1,f,d],["L",f,d+c]],stroke:"#000000",fill:"#ffffff"},u),{opacity:O?null!==(s=null==u?void 0:u.opacity)&&void 0!==s?s:.45:0}),C=this.addShape(t,{type:"path",id:this.getElementId("item-"+n.id+"-radio"),name:"legend-item-radio",attrs:S});return C.set("tip",e.tip),C},e.prototype.drawItem=function(t,e,n,a){var s="item-"+t.id,u=this.addGroup(a,{name:"legend-item-container",id:this.getElementId("item-container-"+s),delegateObject:{item:t,index:e}}),l=this.addGroup(u,{name:"legend-item",id:this.getElementId(s),delegateObject:{item:t,index:e}}),c=this.get("marker"),h=this.get("itemName"),f=this.get("itemValue"),d=this.get("itemBackground"),p=this.get("radio"),g=this.getLimitItemWidth(),v=0;if(c){var m=this.drawMarker(l,c,t,n),y=c.spacing,b=Object(i.get)(t,["marker","spacing"]);Object(i.isNumber)(b)&&(y=b),v=m.getBBox().maxX+y}if(h){var _=this.drawItemText(l,"name",h,t,n,v,e);g&&Object(o.ellipsisLabel)(!0,_,Object(i.clamp)(g-v,0,g)),v=_.getBBox().maxX+h.spacing}if(f){var x=this.drawItemText(l,"value",f,t,n,v,e);g&&(f.alignRight?(x.attr({textAlign:"right",x:g}),Object(o.ellipsisLabel)(!0,x,Object(i.clamp)(g-v,0,g),"head")):Object(o.ellipsisLabel)(!0,x,Object(i.clamp)(g-v,0,g))),v=x.getBBox().maxX+f.spacing}if(p&&this.drawRadio(l,p,t,n,v),d){var w=l.getBBox();this.addShape(l,{type:"rect",name:"legend-item-background",id:this.getElementId(s+"-background"),attrs:Object(r.__assign)({x:0,y:0,width:w.width,height:n},d.style)}).toBack()}return this.applyItemStates(t,l),l},e.prototype.adjustNavigation=function(t,e){var n=this,r=this.startX,o=this.startY,a=this.get("layout"),s=e.findAll((function(t){return"legend-item"===t.get("name")})),u=this.get("maxWidth"),l=this.get("maxHeight"),h=this.get("itemWidth"),f=this.get("itemSpacing"),d=this.getItemHeight(),p=Object(i.deepMix)({},c,this.get("pageNavigator")),g=this.drawNavigation(t,a,"00/00",p),v=g.getBBox(),m={x:r,y:o},y=1,b=0,_=0,x=0,w=this.get("itemMarginBottom");if("horizontal"===a){var O=this.get("maxRow")||1,S=d+(1===O?0:w);this.pageHeight=S*O,Object(i.each)(s,(function(t){var e=t.getBBox(),i=h||e.width;(b&&b<m.x+i+f||u<m.x+i+f+v.width)&&(1===y&&(b=m.x+f,n.pageWidth=b,n.moveElementTo(g,{x:u-f-v.width-v.minX,y:m.y+d/2-v.height/2-v.minY})),y+=1,m.x=r,m.y+=S),n.moveElementTo(t,m),t.getParent().setClip({type:"rect",attrs:{x:m.x,y:m.y,width:i+f,height:d}}),m.x+=i+f}))}else{Object(i.each)(s,(function(t){var e=t.getBBox();e.width>_&&(_=e.width)})),x=_,_+=f,u&&(_=Math.min(u,_),x=Math.min(u,x)),this.pageWidth=_,this.pageHeight=l-Math.max(v.height,d+w);var C=Math.floor(this.pageHeight/(d+w));Object(i.each)(s,(function(t,e){0!==e&&e%C==0&&(y+=1,m.x+=_,m.y=o),n.moveElementTo(t,m),t.getParent().setClip({type:"rect",attrs:{x:m.x,y:m.y,width:_,height:d}}),m.y+=d+w})),this.totalPagesCnt=y,this.moveElementTo(g,{x:r+x/2-v.width/2-v.minX,y:l-v.height-v.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===a&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(y/this.get("maxRow")):this.totalPagesCnt=y,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,o){var a={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),u=Object(i.get)(o.marker,"style",{}),l=u.size,c=void 0===l?12:l,h=Object(r.__rest)(u,["size"]),f=this.drawArrow(s,a,"navigation-arrow-left","horizontal"===e?"up":"left",c,h);f.on("click",this.onNavigationBack);var d=f.getBBox();a.x+=d.width+2;var p=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:Object(r.__assign)({x:a.x,y:a.y+c/2,text:n,textBaseline:"middle"},Object(i.get)(o.text,"style"))}).getBBox();return a.x+=p.width+2,this.drawArrow(s,a,"navigation-arrow-right","horizontal"===e?"down":"right",c,h).on("click",this.onNavigationAfter),s},e.prototype.updateNavigation=function(t){var e=Object(i.deepMix)({},c,this.get("pageNavigator")).marker.style,n=e.fill,r=e.opacity,o=e.inactiveFill,a=e.inactiveOpacity,s=this.currentPageIndex+"/"+this.totalPagesCnt,u=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),l=t?t.findById(this.getElementId("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),h=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right");u.attr("text",s),l.attr("opacity",1===this.currentPageIndex?a:r),l.attr("fill",1===this.currentPageIndex?o:n),l.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),h.attr("opacity",this.currentPageIndex===this.totalPagesCnt?a:r),h.attr("fill",this.currentPageIndex===this.totalPagesCnt?o:n),h.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var f=l.getBBox().maxX+2;u.attr("x",f),f+=u.getBBox().width+2,this.updateArrowPath(h,{x:f,y:0})},e.prototype.drawArrow=function(t,e,n,i,o,s){var u=e.x,l=e.y,c=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:Object(r.__assign)({size:o,direction:i,path:[["M",u+o/2,l],["L",u,l+o],["L",u+o,l+o],["Z"]],cursor:"pointer"},s)});return c.attr("matrix",Object(a.getMatrixByAngle)({x:u+o/2,y:l+o/2},f[i])),c},e.prototype.updateArrowPath=function(t,e){var n=e.x,r=e.y,i=t.attr(),o=i.size,s=i.direction,u=Object(a.getMatrixByAngle)({x:n+o/2,y:r+o/2},f[s]);t.attr("path",[["M",n+o/2,r],["L",n,r+o],["L",n+o,r+o],["Z"]]),t.attr("matrix",u)},e.prototype.getCurrentNavigationMatrix=function(){var t=this.currentPageIndex,e=this.pageWidth,n=this.pageHeight,r="horizontal"===this.get("layout")?{x:0,y:n*(1-t)}:{x:e*(1-t),y:0};return Object(a.getMatrixByTranslate)(r)},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var n=e.getChildren(),r=this.get("itemStates");Object(i.each)(n,(function(e){var n=e.get("name").split("-")[2],i=Object(s.getStatesStyle)(t,n,r);i&&(e.attr(i),"marker"!==n||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(l.default);e.default=d},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(56),a=n(46),s=n(466),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:o.default.textColor,textBaseline:"middle",fontFamily:o.default.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:o.default.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue()[1];r<n&&(r=n),e.setValue([n,r])})),t.on("legend-handler-max:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue()[0];r>n&&(r=n),e.setValue([r,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var r=e.getValueByCanvasPoint(n.x,n.y),i=e.getValueByCanvasPoint(t.x,t.y),o=e.getCurrentValue(),a=o[1]-o[0],s=e.getRange(),u=i-r;u<0?o[0]+u>s.min?e.setValue([o[0]+u,o[1]+u]):e.setValue([s.min,s.min+a]):u>0&&(u>0&&o[1]+u<s.max?e.setValue([o[0]+u,o[1]+u]):e.setValue([s.max-a,s.max])),n={x:t.x,y:t.y}}})),t.on("legend-track:dragend",(function(t){n=null}))},e.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},e.prototype.drawLabel=function(t,e){var n=this.get("label"),o=n.style,a=n.align,s=n.formatter,u=this.get(t),l=this.getLabelAlignAttrs(t,a),c="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(c),name:"legend-label-"+t,attrs:Object(r.__assign)(Object(r.__assign)({x:0,y:0,text:Object(i.isFunction)(s)?s(u):u},o),l)})},e.prototype.getLabelAlignAttrs=function(t,e){var n="center",r="middle";return this.isVertical()?(n="start",r="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(r="top",n="min"===t?"start":"end"):(n="start",r="middle"),{textAlign:n,textBaseline:r}},e.prototype.getRailPath=function(t,e,n,r){var i=this.get("rail"),o=i.size,a=i.defaultLength,s=i.type,u=this.isVertical(),l=n,c=r;l||(l=u?o:a),c||(c=u?a:o);var h=[];return"color"===s?(h.push(["M",t,e]),h.push(["L",t+l,e]),h.push(["L",t+l,e+c]),h.push(["L",t,e+c]),h.push(["Z"])):(h.push(["M",t+l,e]),h.push(["L",t+l,e+c]),h.push(["L",t,e+c]),h.push(["Z"])),h},e.prototype.drawRail=function(t){var e=this.get("rail").style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:Object(r.__assign)({path:this.getRailPath(0,0)},e)})},e.prototype.getTrackColor=function(t){var e,n=t.length;if(!n)return null;if(1===n)return t[0];e=this.isVertical()?"l(90)":"l(0)";for(var r=0;r<n;r++){e+=" "+r/(n-1)+":"+t[r]}return e},e.prototype.getTrackPath=function(t){var e=this.getRailShape(t).attr("path");return Object(i.clone)(e)},e.prototype.getClipTrackAttrs=function(t){var e,n,r,i,o=this.getCurrentValue(),a=o[0],s=o[1],u=this.getRailBBox(t),l=this.getPointByValue(a,t),c=this.getPointByValue(s,t);return this.isVertical()?(e=u.minX,n=l.y,r=u.width,i=c.y-l.y):(e=l.x,n=u.minY,r=c.x-l.x,i=u.height),{x:e,y:n,width:r,height:i}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),n=this.get("colors"),r=this.getTrackPath(t);return Object(i.mix)({path:r,fill:this.getTrackColor(n)},e.style)},e.prototype.resetTrackClip=function(t){var e=t||this.get("group"),n=this.getElementId("track"),r=e.findById(n),i=r.getClip(),o=this.getClipTrackAttrs(t);i?i.attr(o):r.setClip({type:"rect",attrs:o})},e.prototype.resetTrack=function(t){var e=this.getElementId("track"),n=t.findById(e),r=this.getTrackAttrs(t);n?n.attr(r):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:r})},e.prototype.getPointByValue=function(t,e){var n=this.getRange(),r=n.min,i=(t-r)/(n.max-r),o=this.getRailBBox(e),s={x:0,y:0};return this.isVertical()?(s.x=o.minX+o.width/2,s.y=Object(a.getValueByPercent)(o.minY,o.maxY,i)):(s.x=Object(a.getValueByPercent)(o.minX,o.maxX,i),s.y=o.minY+o.height/2),s},e.prototype.getRailShape=function(t){return(t||this.get("group")).findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){return this.getRailShape(t).getBBox()},e.prototype.getRailCanvasBBox=function(){return this.get("group").findById(this.getElementId("rail")).getCanvasBBox()},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var n,r=this.getRange(),i=r.min,o=r.max,s=this.getRailCanvasBBox(),u=this.isVertical(),l=this.get("step");n=u?(e-s.minY)/s.height:(t-s.minX)/s.width;var c=Object(a.getValueByPercent)(i,o,n);l&&(c=i+Math.round((c-i)/l)*l);return c>o&&(c=o),c<i&&(c=i),c},e.prototype.getCurrentValue=function(){var t=this.get("value");if(!t){var e=this.get("values");return e?[Math.max(Math.min.apply(Math,Object(r.__spreadArrays)(e,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,Object(r.__spreadArrays)(e,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),n=e[0],r=e[1];this.resetHandler(t,"min",n),this.resetHandler(t,"max",r)},e.prototype.getHandlerPath=function(t,e){var n=this.isVertical(),r=[],i=t.size,o=e.x,a=e.y,s=1.4*i,u=i/2,l=i/6;if(n){var c=o+.4*s;r.push(["M",o,a]),r.push(["L",c,a+u]),r.push(["L",o+s,a+u]),r.push(["L",o+s,a-u]),r.push(["L",c,a-u]),r.push(["Z"]),r.push(["M",c,a+l]),r.push(["L",o+s-2,a+l]),r.push(["M",c,a-l]),r.push(["L",o+s-2,a-l])}else{var h=a+.4*s;r.push(["M",o,a]),r.push(["L",o-u,h]),r.push(["L",o-u,a+s]),r.push(["L",o+u,a+s]),r.push(["L",o+u,h]),r.push(["Z"]),r.push(["M",o-l,h]),r.push(["L",o-l,a+s-2]),r.push(["M",o+l,h]),r.push(["L",o+l,a+s-2])}return r},e.prototype.resetHandler=function(t,e,n){var i=this.getPointByValue(n,t),o=this.get("handler"),a=this.getHandlerPath(o,i),s=this.getElementId("handler-"+e),u=t.findById(s),l=this.isVertical();u?u.attr("path",a):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:s,attrs:Object(r.__assign)(Object(r.__assign)({path:a},o.style),{cursor:l?"ns-resize":"ew-resize"})})},e.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),n=t.findById(this.getElementId("label-min")),r=t.findById(this.getElementId("label-max")),i=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,r,e,i):this.fixedHorizontal(n,r,e,i)},e.prototype.fitRailLength=function(t,e,n,r){var o=this.isVertical()?"height":"width",a=this.get("label"),s=a.align,u=a.spacing,l=this.get("max"+Object(i.upperFirst)(o));if(l){var c=("rail"===s?n[o]+t[o]+e[o]+2*u:n[o])-l;c>0&&this.changeRailLength(r,o,n[o]-c)}},e.prototype.changeRailLength=function(t,e,n){var r,i=t.getBBox();r="height"===e?this.getRailPath(i.x,i.y,i.width,n):this.getRailPath(i.x,i.y,n,i.height),t.attr("path",r)},e.prototype.changeRailPosition=function(t,e,n){var r=t.getBBox(),i=this.getRailPath(e,n,r.width,r.height);t.attr("path",i)},e.prototype.fixedHorizontal=function(t,e,n,r){var i=this.get("label"),o=i.align,a=i.spacing,s=n.getBBox(),u=t.getBBox(),l=e.getBBox(),c=s.height;this.fitRailLength(u,l,s,n),s=n.getBBox(),"rail"===o?(t.attr({x:r.x,y:r.y+c/2}),this.changeRailPosition(n,r.x+u.width+a,r.y),e.attr({x:r.x+u.width+s.width+2*a,y:r.y+c/2})):"top"===o?(t.attr({x:r.x,y:r.y}),e.attr({x:r.x+s.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+u.height+a)):(this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x,y:r.y+s.height+a}),e.attr({x:r.x+s.width,y:r.y+s.height+a}))},e.prototype.fixedVertail=function(t,e,n,r){var i=this.get("label"),o=i.align,a=i.spacing,s=n.getBBox(),u=t.getBBox(),l=e.getBBox();if(this.fitRailLength(u,l,s,n),s=n.getBBox(),"rail"===o)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+u.height+a),e.attr({x:r.x,y:r.y+u.height+s.height+2*a});else if("right"===o)t.attr({x:r.x+s.width+a,y:r.y}),this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x+s.width+a,y:r.y+s.height});else{var c=Math.max(u.width,l.width);t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+c+a,r.y),e.attr({x:r.x,y:r.y+s.height})}},e}(s.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(1124);n.d(e,"Html",(function(){return r.default}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(247),o=n(92),a=n(1),s=n(378),u=n(46),l=n(136),c=n(1593),h=n(1594);var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+l.CONTAINER_CLASS+'"><div class="'+l.TITLE_CLASS+'"></div><ul class="'+l.LIST_CLASS+'"></ul></div>',itemTpl:'<li class="'+l.LIST_ITEM_CLASS+'" data-index={index}>\n <span class="'+l.MARKER_CLASS+'" style="background:{color}"></span>\n <span class="'+l.NAME_CLASS+'">{name}</span>:\n <span class="'+l.VALUE_CLASS+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+l.CROSSHAIR_X+'"></div>',yCrosshairTpl:'<div class="'+l.CROSSHAIR_Y+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:l.CONTAINER_CLASS,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:c.default})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),Object(o.modifyCSS)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),Object(o.modifyCSS)(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");n&&Object(o.modifyCSS)(n,{display:e}),r&&Object(o.modifyCSS)(r,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){var n,r,i;this.get("customContent")?this.renderCustomContent():(n=e,r=["title","showTitle"],i=!1,Object(a.each)(r,(function(t){if(Object(a.hasKey)(n,t))return i=!0,!1})),i&&this.resetTitle(),Object(a.hasKey)(e,"items")&&this.renderItems()),t.prototype.updateInner.call(this,e)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t,e=this.get("x"),n=this.get("y"),r=this.get("offset"),i=this.getOffset(),a=i.offsetX,s=i.offsetY,l=this.get("position"),c=this.get("region"),f=this.getContainer(),d=this.getBBox(),p=d.width,g=d.height;c&&(t=Object(u.regionToBBox)(c));var v=Object(h.getAlignPoint)(e,n,r,p,g,l,t);Object(o.modifyCSS)(f,{left:Object(u.toPx)(v.x+a),top:Object(u.toPx)(v.y+s)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),n=this.get("container");n&&n.parentNode===e?e.replaceChild(t,n):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var n=e(this.get("title"),this.get("items"));t=Object(a.isElement)(n)?n:Object(o.createDom)(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(l.TITLE_CLASS)[0],n=t.getElementsByClassName(l.LIST_CLASS)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title");this.get("showTitle")&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=Object(u.regionToBBox)(t),r=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),i&&(i.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),r&&(r.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),r=this.get(t);"x"===t?Object(o.modifyCSS)(n,{left:Object(u.toPx)(r),top:Object(u.toPx)(e.y),height:Object(u.toPx)(e.height)}):Object(o.modifyCSS)(n,{top:Object(u.toPx)(r),left:Object(u.toPx)(e.x),width:Object(u.toPx)(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",r="CROSSHAIR_"+t.toUpperCase(),i=l[r],a=this.get(e),s=this.get("parent");return a||(a=Object(o.createDom)(this.get(n)),this.applyStyle(i,a),s.appendChild(a),this.set(e,a)),a},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&(Object(a.each)(t,(function(t){var s=i.default.toCSSGradient(t.color),u=Object(r.__assign)(Object(r.__assign)({},t),{color:s}),l=Object(a.substitute)(e,u),c=Object(o.createDom)(l);n.appendChild(c)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&Object(u.clearDom)(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(s.default);e.default=f},function(t,e,n){"use strict";n.r(e);var r=n(1126);n.d(e,"Slider",(function(){return r.Slider}))},function(t,e,n){"use strict";n.r(e),n.d(e,"Slider",(function(){return l}));var r=n(2),i=n(1),o=n(96),a=n(1595),s=n(805),u=n(371),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),e.prevX=Object(i.get)(r,"touches.0.pageX",r.pageX),e.prevY=Object(i.get)(r,"touches.0.pageY",r.pageY);var o=e.getContainerDOM();o.addEventListener("mousemove",e.onMouseMove),o.addEventListener("mouseup",e.onMouseUp),o.addEventListener("mouseleave",e.onMouseUp),o.addEventListener("touchmove",e.onMouseMove),o.addEventListener("touchend",e.onMouseUp),o.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,r=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var o=Object(i.get)(t,"touches.0.pageX",t.pageX),a=Object(i.get)(t,"touches.0.pageY",t.pageY),s=o-e.prevX,l=e.adjustOffsetRange(s/n);e.updateStartEnd(l),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=o,e.prevY=a,e.draw(),e.emit(u.SLIDER_CHANGE,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:r,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return Object(r.__extends)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),r=this.get("end"),o=Object(i.clamp)(n,t,e),a=Object(i.clamp)(r,t,e);this.get("isInit")||n===o&&r===a||this.setValue([o,a])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if(Object(i.isArray)(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:Object(i.clamp)(t[0],e.min,e.max),end:Object(i.clamp)(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:u.BACKGROUND_STYLE,foregroundStyle:u.FOREGROUND_STYLE,handlerStyle:u.HANDLER_STYLE,textStyle:u.TEXT_STYLE}})},e.prototype.update=function(e){var n=e.start,o=e.end,a=Object(r.__assign)({},e);Object(i.isNil)(n)||(a.start=Object(i.clamp)(n,0,1)),Object(i.isNil)(o)||(a.end=Object(i.clamp)(o,0,1)),t.prototype.update.call(this,a),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",Object(i.clamp)(this.get("start"),0,1)),this.set("end",Object(i.clamp)(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg,n=(e.start,e.end,e.width),o=e.height,l=e.trendCfg,c=void 0===l?{}:l,h=e.minText,f=e.maxText,d=e.backgroundStyle,p=void 0===d?{}:d,g=e.foregroundStyle,v=void 0===g?{}:g,m=e.textStyle,y=void 0===m?{}:m,b=Object(i.deepMix)({},s.DEFAULT_HANDLER_STYLE,this.cfg.handlerStyle);Object(i.size)(Object(i.get)(c,"data"))&&(this.trend=this.addComponent(t,Object(r.__assign)({component:a.Trend,id:this.getElementId("trend"),x:0,y:0,width:n,height:o},c))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(r.__assign)({x:0,y:0,width:n,height:o},p)});this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:Object(r.__assign)({y:o/2,textAlign:"right",text:h,silent:!1},y)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:Object(r.__assign)({y:o/2,textAlign:"left",text:f,silent:!1},y)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:Object(r.__assign)({y:0,height:o},v)});var _=Object(i.get)(b,"width",u.DEFAULT_HANDLER_WIDTH),x=Object(i.get)(b,"height",24);this.minHandler=this.addComponent(t,{component:s.Handler,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(o-x)/2,width:_,height:x,cursor:"ew-resize",style:b}),this.maxHandler=this.addComponent(t,{component:s.Handler,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(o-x)/2,width:_,height:x,cursor:"ew-resize",style:b})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var r=this.cfg,o=r.start,a=r.end,s=r.width,l=r.minText,c=r.maxText,h=r.handlerStyle,f=r.height,d=o*s,p=a*s;this.trend&&(this.trend.update({width:s,height:f}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",d),t.attr("width",p-d);var g=Object(i.get)(h,"width",u.DEFAULT_HANDLER_WIDTH);e.attr("text",l),n.attr("text",c);var v=this._dodgeText([d,p],e,n),m=v[0],y=v[1];this.minHandler&&(this.minHandler.update({x:d-g/2}),this.get("updateAutoRender")||this.minHandler.render()),Object(i.each)(m,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:p-g/2}),this.get("updateAutoRender")||this.maxHandler.render()),Object(i.each)(y,(function(t,e){return n.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":var i=0-n,o=1-n;return Math.min(o,Math.max(i,t));case"maxHandler":i=0-r,o=1-r;return Math.min(o,Math.max(i,t));case"foreground":i=0-n,o=1-r;return Math.min(o,Math.max(i,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":r+=t;break;case"foreground":n+=t,r+=t}this.set("start",n),this.set("end",r)},e.prototype._dodgeText=function(t,e,n){var r,o,a=this.cfg,s=a.handlerStyle,l=a.width,c=Object(i.get)(s,"width",u.DEFAULT_HANDLER_WIDTH),h=t[0],f=t[1],d=!1;h>f&&(h=(r=[f,h])[0],f=r[1],e=(o=[n,e])[0],n=o[1],d=!0);var p=e.getBBox(),g=n.getBBox(),v=p.width>h-2?{x:h+c/2+2,textAlign:"left"}:{x:h-c/2-2,textAlign:"right"},m=g.width>l-f-2?{x:f-c/2-2,textAlign:"right"}:{x:f+c/2+2,textAlign:"left"};return d?[m,v]:[v,m]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(o.default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(1128);n.d(e,"DEFAULT_THEME",(function(){return r.DEFAULT_THEME})),n.d(e,"Scrollbar",(function(){return r.Scrollbar}))},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_THEME",(function(){return s})),n.d(e,"Scrollbar",(function(){return u}));var r=n(2),i=n(92),o=n(1),a=n(96),s={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=o.noop,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var r=t?Object(o.get)(n.originalEvent,"touches.0.clientX"):n.clientX,i=t?Object(o.get)(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?r:i,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[Object(i.addEventListener)(t,"touchmove",e.onMouseMove),Object(i.addEventListener)(t,"touchend",e.onMouseUp),Object(i.addEventListener)(t,"touchcancel",e.onMouseUp)]:[Object(i.addEventListener)(t,"mousemove",e.onMouseMove),Object(i.addEventListener)(t,"mouseup",e.onMouseUp),Object(i.addEventListener)(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,r=n.isHorizontal,i=n.thumbOffset;t.preventDefault();var a=e.isMobile?Object(o.get)(t,"touches.0.clientX"):t.clientX,s=e.isMobile?Object(o.get)(t,"touches.0.clientY"):t.clientY,u=r?a:s,l=u-e.startPos;e.startPos=u,e.updateThumbOffset(i+l)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,r=n.isHorizontal,i=n.x,o=n.y,a=n.thumbLen,s=e.getContainerDOM().getBoundingClientRect(),u=t.clientX,l=t.clientY,c=r?u-s.left-i-a/2:l-s.top-o-a/2,h=e.validateRange(c);e.updateThumbOffset(h)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}return Object(r.__extends)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),r=Object(o.clamp)(n,t,e);n===r||this.get("isInit")||this.setValue(r)},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*Object(o.clamp)(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return Object(o.clamp)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:s})},e.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.renderTrackShape=function(t){var e=this.cfg,n=e.trackLen,r=e.theme,i=void 0===r?{default:{}}:r,a=Object(o.deepMix)({},s,i).default,u=a.lineCap,l=a.trackColor,c=a.size,h=Object(o.get)(this.cfg,"size",c),f=this.get("isHorizontal")?{x1:0+h/2,y1:h/2,x2:n-h/2,y2:h/2,lineWidth:h,stroke:l,lineCap:u}:{x1:h/2,y1:0+h/2,x2:h/2,y2:n-h/2,lineWidth:h,stroke:l,lineCap:u};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:f})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,r=e.thumbLen,i=e.theme,a=Object(o.deepMix)({},s,i).default,u=a.size,l=a.lineCap,c=a.thumbColor,h=Object(o.get)(this.cfg,"size",u),f=this.get("isHorizontal")?{x1:n+h/2,y1:h/2,x2:n+r-h/2,y2:h/2,lineWidth:h,stroke:c,lineCap:l,cursor:"default"}:{x1:h/2,y1:n+h/2,x2:h/2,y2:n+r-h/2,lineWidth:h,stroke:c,lineCap:l,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:f})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var e=t.findById(this.getElementId("thumb"));e.on("mouseover",this.onThumbMouseOver),e.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,r=e.trackLen,i=t;return t+n>r?i=r-n:t+n<n&&(i=0),i},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.updateThumbOffset=function(t){var e=this.cfg,n=e.thumbOffset,r=e.isHorizontal,i=e.thumbLen,o=e.size,a=this.validateRange(t);if(a!==n){var s=this.getElementByLocalId("thumb");r?s.attr({x1:a+o/2,x2:a+i-o/2}):s.attr({y1:a+o/2,y2:a+i-o/2}),this.emitOffsetChange(a)}},e.prototype.emitOffsetChange=function(t){var e=this.cfg,n=e.thumbOffset,r=e.trackLen,i=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:Object(o.clamp)(t/(r-i),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})},e}(a.default)},function(t,e){},function(t,e){},function(t,e,n){"use strict";n.r(e),n.d(e,"createTheme",(function(){return s}));var r=n(2),i=n(1),o=n(738),a=n(1599);function s(t){var e=t.styleSheet,n=void 0===e?{}:e,s=Object(r.__rest)(t,["styleSheet"]),u=Object(a.createLightStyleSheet)(n);return Object(i.deepMix)({},Object(o.createThemeByStyleSheet)(u),s)}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(146),o=n(62),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),s=a.x,u=a.y,l=a.r,c=i/2,h=Object(o.distance)(s,u,t,e);return r&&n?h<=l+c:r?h<=l:!!n&&(h>=l-c&&h<=l+c)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2);function i(t,e,n,r){return t/(n*n)+e/(r*r)}var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,o){var a=this.attr(),s=o/2,u=a.x,l=a.y,c=a.rx,h=a.ry,f=(t-u)*(t-u),d=(e-l)*(e-l);return r&&n?i(f,d,c+s,h+s)<=1:r?i(f,d,c,h)<=1:!!n&&(i(f,d,c-s,h-s)>=1&&i(f,d,c+s,h+s)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,o,0,0,2*Math.PI,!1);else{var a=i>o?i:o,s=i>o?1:i/o,u=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,u),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(n(146).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(146),o=n(62);function a(t){return t instanceof HTMLElement&&Object(o.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(Object(o.isString)(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):a(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,s=e.height,u=e.sx,l=e.sy,c=e.swidth,h=e.sheight,f=e.img;(f instanceof Image||a(f))&&(Object(o.isNil)(u)||Object(o.isNil)(l)||Object(o.isNil)(c)||Object(o.isNil)(h)?t.drawImage(f,n,r,i,s):t.drawImage(f,u,l,c,h,n,r,i,s))},e}(i.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(104),o=n(146),a=n(277),s=n(192),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.startArrow,a=t.endArrow;o&&s.addStartArrow(this,t,r,i,e,n),a&&s.addEndArrow(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr(),s=o.x1,u=o.y1,l=o.x2,c=o.y2;return Object(a.default)(s,u,l,c,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.startArrow,u=e.endArrow,l={dx:0,dy:0},c={dx:0,dy:0};a&&a.d&&(l=s.getShortenOffset(n,r,i,o,e.startArrow.d)),u&&u.d&&(c=s.getShortenOffset(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+l.dx,r+l.dy),t.lineTo(i-c.dx,o-c.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,o=t.y2;return i.Line.length(e,n,r,o)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,o=e.x2,a=e.y2;return i.Line.pointAt(n,r,o,a,t)},e}(o.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(207),a=n(146),s=n(62),u=n(150),l={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return Object(i.isNil)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,a=r.y,u=r.symbol||"circle",l=this._getR(r);if(Object(s.isFunction)(u))n=(t=u)(i,a,l),n=Object(o.path2Absolute)(n);else{if(!(t=e.Symbols[u]))return console.warn(u+" marker is not supported."),null;n=t(i,a,l)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");Object(u.drawPath)(this,t,{path:e},n)},e.Symbols=l,e}(a.default);e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(104),o=n(1),a=n(146),s=n(207),u=n(150),l=n(744),c=n(745),h=n(608),f=n(192);function d(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];if(r=Object(c.default)(o,e,n))break}return r}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=Object(s.path2Absolute)(t);var e=h.default.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=Object(s.path2Segments)(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var r=this.getStartTangent();f.addStartArrow(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}if(n){r=this.getEndTangent();f.addEndArrow(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.getSegments(),a=this.get("hasArc"),s=!1;if(n){var u=this.getTotalLength();s=h.default.isPointInStroke(o,i,t,e,u)}if(!s&&r)if(a)s=Object(l.default)(this,t,e);else{var c=this.attr("path"),f=h.default.extractPolygons(c);s=d(f.polygons,t,e)||d(f.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");Object(u.drawPath)(this,t,e,n)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return Object(o.isNil)(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,r=this.get("tCache");r||(this._calculateCurve(),this._setTcache(),r=this.get("tCache"));var a=this.get("curve");if(!r||0===r.length)return a?{x:a[0][1],y:a[0][2]}:null;Object(o.each)(r,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var s=a[n];if(Object(o.isNil)(s)||Object(o.isNil)(n))return null;var u=s.length,l=a[n+1];return i.Cubic.pointAt(s[u-2],s[u-1],l[1],l[2],l[3],l[4],l[5],l[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",h.default.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,a=0,s=0,u=[],l=this.get("curve");l&&(Object(o.each)(l,(function(t,e){n=l[e+1],r=t.length,n&&(a+=i.Cubic.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",a),0!==a?(Object(o.each)(l,(function(o,c){n=l[c+1],r=o.length,n&&((t=[])[0]=s/a,e=i.Cubic.length(o[r-2],o[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),s+=e||0,t[1]=s/a,u.push(t))})),this.set("tCache",u)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([i[0]-o[0],i[1]-o[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(a.default);e.default=p},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(146),o=n(746),a=n(745),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var s=this.attr().points,u=!1;return n&&(u=Object(o.default)(s,i,t,e,!0)),!u&&r&&(u=Object(a.default)(s,t,e)),u},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n<e.length;n++){var r=e[n];0===n?t.moveTo(r[0],r[1]):t.lineTo(r[0],r[1])}t.closePath()}},e}(i.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(104),o=n(1),a=n(146),s=n(746),u=n(192),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,r=e.startArrow,i=e.endArrow,o=n.length,a=n[0][0],s=n[0][1],l=n[o-1][0],c=n[o-1][1];r&&u.addStartArrow(this,t,n[1][0],n[1][1],a,s),i&&u.addEndArrow(this,t,n[o-2][0],n[o-2][1],l,c)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr().points;return Object(s.default)(o,i,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,i=e.endArrow,o=n.length;if(!(n.length<2)){var a,s=n[0][0],l=n[0][1],c=n[o-1][0],h=n[o-1][1];if(r&&r.d)s+=(a=u.getShortenOffset(s,l,n[1][0],n[1][1],r.d)).dx,l+=a.dy;if(i&&i.d)c-=(a=u.getShortenOffset(n[o-2][0],n[o-2][1],c,h,i.d)).dx,h-=a.dy;t.beginPath(),t.moveTo(s,l);for(var f=0;f<o-1;f++){var d=n[f];t.lineTo(d[0],d[1])}t.lineTo(c,h)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(o.isNil)(e)?(this.set("totalLength",i.Polyline.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,a=this.get("tCache");return a||(this._setTcache(),a=this.get("tCache")),Object(o.each)(a,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),i.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,a=0,s=[];Object(o.each)(t,(function(o,u){t[u+1]&&((n=[])[0]=a/e,r=i.Line.length(o[0],o[1],t[u+1][0],t[u+1][1]),a+=r,n[1]=a/e,s.push(n))})),this.set("tCache",s)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(a.default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(146),o=n(743),a=n(62),s=n(1609),u=n(1610),l=n(744),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),c=o.x,h=o.y,f=o.width,d=o.height,p=o.radius;if(p){var g=!1;return n&&(g=Object(u.default)(c,h,f,d,p,i,t,e)),!g&&r&&(g=Object(l.default)(this,t,e)),g}var v=i/2;return r&&n?Object(a.inBox)(c-v,h-v,f+v,d+v,t,e):r?Object(a.inBox)(c,h,f,d,t,e):n?Object(s.default)(c,h,f,d,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,s=e.radius;if(t.beginPath(),0===s)t.rect(n,r,i,a);else{var u=Object(o.parseRadius)(s),l=u[0],c=u[1],h=u[2],f=u[3];t.moveTo(n+l,r),t.lineTo(n+i-c,r),0!==c&&t.arc(n+i-c,r+c,c,-Math.PI/2,0),t.lineTo(n+i,r+a-h),0!==h&&t.arc(n+i-h,r+a-h,h,0,Math.PI/2),t.lineTo(n+f,r+a),0!==f&&t.arc(n+f,r+a-f,f,Math.PI/2,Math.PI),t.lineTo(n,r+l),0!==l&&t.arc(n+l,r+l,l,Math.PI,1.5*Math.PI),t.closePath()}},e}(i.default);e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(146),o=n(62),a=n(88),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=Object(a.assembleFont)(t)},e.prototype._setText=function(t){var e=null;Object(o.isString)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,s=i.textBaseline,u=i.x,l=i.y,c=1*i.fontSize,h=this._getSpaceingY(),f=Object(a.getTextHeight)(i.text,i.fontSize,i.lineHeight);Object(o.each)(e,(function(e,i){r=l+i*(h+c)-f+c,"middle"===s&&(r+=f-c-(f-c)/2),"top"===s&&(r+=f-c),Object(o.isNil)(e)||(n?t.fillText(e,u,r):t.strokeText(e,u,r))}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,a=this.get("textArr");if(a)this._drawTextArr(t,a,e);else{var s=n.text;Object(o.isNil)(s)||(e?t.fillText(s,r,i):t.strokeText(s,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isStroke()&&n>0&&(Object(o.isNil)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(Object(o.isNil)(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(i.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(88),o=n(1611),a=n(292),s=n(469),u=n(62),l=n(150),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return s.default},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||Object(u.getPixelRatio)();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*e,i.height=o*n,o>1&&r.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?Object(o.getShape)(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();e.length&&e[0]===this?t=n:(t=Object(l.getMergedRegion)(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=Object(l.mergeView)(t,n)));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(Object(u.clearAnimationFrame)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),Object(l.applyAttrsToContext)(t,this),Object(l.drawChildren)(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),Object(l.applyAttrsToContext)(t,this),Object(l.checkRefresh)(this,n,r),Object(l.drawChildren)(t,n,r),t.restore()):e.length&&Object(l.clearChanged)(e),Object(u.each)(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=Object(u.requestAnimationFrame)((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(i.AbstractCanvas);e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(65),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(i.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(n(137).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(65),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return Object(r.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if(Object(i.each)(e||n,(function(t,e){o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)})),"function"==typeof n.html){var a=n.html.call(this,n);if(a instanceof Element||a instanceof HTMLDocument){for(var s=r.childNodes,u=s.length-1;u>=0;u--)r.removeChild(s[u]);r.appendChild(a)}else r.innerHTML=a}else r.innerHTML=n.html},e}(n(137).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(65),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(i.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(n(137).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(65),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),a=this.get("el");Object(i.each)(e||r,(function(t,e){"img"===e?n._setImage(r.img):o.SVG_ATTR_MAP[e]&&a.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if(Object(i.isString)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&Object(i.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(n(137).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(104),o=n(1),a=n(65),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(o.each)(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var s=Object(o.isObject)(e)?t.addArrow(n,a.SVG_ATTR_MAP[i]):t.getDefaultArrow(n,a.SVG_ATTR_MAP[i]);r.setAttribute(a.SVG_ATTR_MAP[i],"url(#"+s+")")}else r.removeAttribute(a.SVG_ATTR_MAP[i]);else a.SVG_ATTR_MAP[i]&&r.setAttribute(a.SVG_ATTR_MAP[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,o=t.y2;return i.Line.length(e,n,r,o)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,o=e.x2,a=e.y2;return i.Line.pointAt(n,r,o,a,t)},e}(n(137).default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(137),a=n(913),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return Object(i.isArray)(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,o=e.r||e.radius,s=e.symbol||"circle";return(t=Object(i.isFunction)(s)?s:a.default.get(s))?t(n,r,o):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=a.default,e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(65),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),a=this.get("el");Object(i.each)(e||r,(function(e,s){if("path"===s&&Object(i.isArray)(e))a.setAttribute("d",n._formatPath(e));else if("startArrow"===s||"endArrow"===s)if(e){var u=Object(i.isObject)(e)?t.addArrow(r,o.SVG_ATTR_MAP[s]):t.getDefaultArrow(r,o.SVG_ATTR_MAP[s]);a.setAttribute(o.SVG_ATTR_MAP[s],"url(#"+u+")")}else a.removeAttribute(o.SVG_ATTR_MAP[s]);else o.SVG_ATTR_MAP[s]&&a.setAttribute(o.SVG_ATTR_MAP[s],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(n(137).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(65),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(i.each)(e||n,(function(t,e){"points"===e&&Object(i.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(n(137).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(104),o=n(1),a=n(65),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(o.each)(e||n,(function(t,e){"points"===e&&Object(o.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):a.SVG_ATTR_MAP[e]&&r.setAttribute(a.SVG_ATTR_MAP[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(o.isNil)(e)?(this.set("totalLength",i.Polyline.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,a=this.get("tCache");return a||(this._setTcache(),a=this.get("tCache")),Object(o.each)(a,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),i.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,a=0,s=[];Object(o.each)(t,(function(o,u){t[u+1]&&((n=[])[0]=a/e,r=i.Line.length(o[0],o[1],t[u+1][0],t[u+1][1]),a+=r,n[1]=a/e,s.push(n))})),this.set("tCache",s)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(n(137).default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(137),a=n(65),s=n(1613),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),o=this.get("el"),s=!1,u=["x","y","width","height","radius"];Object(i.each)(e||r,(function(t,e){-1===u.indexOf(e)||s?-1===u.indexOf(e)&&a.SVG_ATTR_MAP[e]&&o.setAttribute(a.SVG_ATTR_MAP[e],t):(o.setAttribute("d",n._assembleRect(r)),s=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,o=t.height,a=t.radius;if(!a)return"M "+e+","+n+" l "+r+",0 l 0,"+o+" l"+-r+" 0 z";var u=Object(s.parseRadius)(a);return Object(i.isArray)(a)?1===a.length?u.r1=u.r2=u.r3=u.r4=a[0]:2===a.length?(u.r1=u.r3=a[0],u.r2=u.r4=a[1]):3===a.length?(u.r1=a[0],u.r2=u.r4=a[1],u.r3=a[2]):(u.r1=a[0],u.r2=a[1],u.r3=a[2],u.r4=a[3]):u.r1=u.r2=u.r3=u.r4=a,[["M "+(e+u.r1)+","+n],["l "+(r-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(o-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-r)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-o)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]].join(" ")},e}(o.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(733),a=n(201),s=n(65),u=n(137),l={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},c={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},h={left:"left",start:"left",center:"middle",right:"end",end:"end"},f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),o=this.get("el");this._setFont(),Object(i.each)(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?Object(a.setTransform)(n):s.SVG_ATTR_MAP[e]&&o.setAttribute(s.SVG_ATTR_MAP[e],t)})),o.setAttribute("paint-order","stroke"),o.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=Object(o.detect)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",c[n]||"alphabetic"):t.setAttribute("alignment-baseline",l[n]||"baseline"),t.setAttribute("text-anchor",h[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,o=n.textBaseline,a=void 0===o?"bottom":o;if(t)if(~t.indexOf("\n")){var s=t.split("\n"),u=s.length-1,l="";Object(i.each)(s,(function(t,e){0===e?"alphabetic"===a?l+='<tspan x="'+r+'" dy="'+-u+'em">'+t+"</tspan>":"top"===a?l+='<tspan x="'+r+'" dy="0.9em">'+t+"</tspan>":"middle"===a?l+='<tspan x="'+r+'" dy="'+-(u-1)/2+'em">'+t+"</tspan>":"bottom"===a?l+='<tspan x="'+r+'" dy="-'+(u+.3)+'em">'+t+"</tspan>":"hanging"===a&&(l+='<tspan x="'+r+'" dy="'+(-(u-1)-.3)+'em">'+t+"</tspan>"):l+='<tspan x="'+r+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=l}else e.innerHTML=t;else e.innerHTML=""},e}(u.default);e.default=f},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(88),o=n(65),a=n(432),s=n(201),u=n(120),l=n(380),c=n(470),h=n(1614),f=function(t){function e(e){return t.call(this,Object(r.__assign)(Object(r.__assign)({},e),{autoDraw:!0,renderer:"svg"}))||this}return Object(r.__extends)(e,t),e.prototype.getShapeBase=function(){return l},e.prototype.getGroupBase=function(){return c.default},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!o.SHAPE_TO_TAGS[r.tagName]){for(var i=r.parentNode;i&&!o.SHAPE_TO_TAGS[i.tagName];)i=i.parentNode;r=i}return this.find((function(t){return t.get("el")===r}))},e.prototype.createDom=function(){var t=Object(u.createSVGElement)("svg"),e=new h.default(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var r=this.get("children");r&&r.length&&Object(u.sortDom)(this,(function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i)}}else"matrix"===t?Object(s.setTransform)(this):"clip"===t?Object(s.setClip)(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();Object(s.setClip)(this,t),e.length&&Object(a.drawChildren)(t,e)},e}(i.AbstractCanvas);e.default=f},function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce((function(t,e){return e(t)}),e)}}n.r(e),n.d(e,"flow",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"template",(function(){return i}));var r=n(1);function i(t,e){return e?Object(r.reduce)(e,(function(t,e,n){return t.replace(new RegExp("{\\s*"+n+"\\s*}","g"),e)}),t):t}},function(t,e,n){"use strict";function r(t){if(!t)return{width:0,height:0};var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}n.r(e),n.d(e,"getContainerSize",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"findGeometry",(function(){return i})),n.d(e,"getAllElements",(function(){return o})),n.d(e,"getAllElementsRecursively",(function(){return a})),n.d(e,"getAllGeometriesRecursively",(function(){return s}));var r=n(1);function i(t,e){return t.geometries.find((function(t){return t.type===e}))}function o(t){return Object(r.reduce)(t.geometries,(function(t,e){return t.concat(e.elements)}),[])}function a(t){return Object(r.get)(t,["views","length"],0)<=0?o(t):Object(r.reduce)(t.views,(function(t,e){return t.concat(a(e))}),o(t))}function s(t){return Object(r.get)(t,["views","length"],0)<=0?t.geometries:Object(r.reduce)(t.views,(function(t,e){return t.concat(e.geometries)}),t.geometries)}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformLabel",(function(){return o}));var r=n(2),i=n(1);function o(t){if(!Object(i.isType)(t,"Object"))return t;var e=Object(r.__assign)({},t);return e.formatter&&!e.content&&(e.content=e.formatter),e}},function(t,e,n){"use strict";n.r(e),n.d(e,"points2Path",(function(){return i})),n.d(e,"smoothBezier",(function(){return o})),n.d(e,"catmullRom2bezier",(function(){return a})),n.d(e,"getSplinePath",(function(){return s}));var r=n(25);function i(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r<i;r+=1){var o=t[r];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}var o=function(t,e,n,i){var o,a,s,u,l=[],c=!!i;if(c){s=[1/0,1/0],u=[-1/0,-1/0];for(var h=0,f=t.length;h<f;h++){var d=t[h];s=r.vec2.min([0,0],s,d),u=r.vec2.max([0,0],u,d)}s=r.vec2.min([0,0],s,i[0]),u=r.vec2.max([0,0],u,i[1])}h=0;for(var p=t.length;h<p;h++){d=t[h];if(n)o=t[h?h-1:p-1],a=t[(h+1)%p];else{if(0===h||h===p-1){l.push(d);continue}o=t[h-1],a=t[h+1]}var g=[0,0];g=r.vec2.sub(g,a,o),g=r.vec2.scale(g,g,e);var v=r.vec2.distance(d,o),m=r.vec2.distance(d,a),y=v+m;0!==y&&(v/=y,m/=y);var b=r.vec2.scale([0,0],g,-v),_=r.vec2.scale([0,0],g,m),x=r.vec2.add([0,0],d,b),w=r.vec2.add([0,0],d,_);c&&(x=r.vec2.max([0,0],x,s),x=r.vec2.min([0,0],x,u),w=r.vec2.max([0,0],w,s),w=r.vec2.min([0,0],w,u)),l.push(x),l.push(w)}return n&&l.push(l.shift()),l};function a(t,e,n){for(var r=!!e,i=[],a=0,s=t.length;a<s;a+=2)i.push([t[a],t[a+1]]);var u,l,c,h=o(i,.4,r,n),f=i.length,d=[];for(a=0;a<f-1;a++)u=h[2*a],l=h[2*a+1],c=i[a+1],d.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]]);return r&&(u=h[f],l=h[f+1],c=i[0],d.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]])),d}function s(t,e,n){var r=[],o=t[0],s=null;if(t.length<=2)return i(t,e);for(var u=0,l=t.length;u<l;u++){var c=t[u];s&&s.x===c.x&&s.y===c.y||(r.push(c.x),r.push(c.y),s=c)}var h=a(r,e,n||[[0,0],[1,1]]);return h.unshift(["M",o.x,o.y]),h}},function(t,e,n){"use strict";function r(t){return t?t.match(/(([A-Z]{0,1}[a-z]*[^A-Z])|([A-Z]{1}))/g).map((function(t){return t.toLowerCase()})).join("-"):t}n.r(e),n.d(e,"kebabCase",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"measureTextWidth",(function(){return a}));var r=n(2),i=n(1),o=n(1695),a=Object(i.memoize)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,a=void 0===r?"sans-serif":r,s=e.fontWeight,u=e.fontStyle,l=e.fontVariant,c=Object(o.getCanvasContext)();return c.font=[u,s,l,n+"px",a].join(" "),c.measureText(Object(i.isString)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(r.__spreadArrays)([t],Object(i.values)(e)).join("")}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){t.apply(r,o)}),e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SensorTabIndex=e.SensorClassName=e.SizeSensorId=void 0;e.SizeSensorId="size-sensor-id";e.SensorClassName="size-sensor-object";e.SensorTabIndex="-1"},function(t,e,n){"use strict";n.r(e);var r=n(1166);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);var o=n(1167);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);var a=n(1168);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);var s=n(1169);for(var i in s)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(i);var u=n(1170);for(var i in u)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(i);var l=n(1171);for(var i in l)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return l[t]}))}(i);var c=n(1172);for(var i in c)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return c[t]}))}(i);var h=n(1173);for(var i in h)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return h[t]}))}(i);var f=n(1174);for(var i in f)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return f[t]}))}(i);var d=n(1175);for(var i in d)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return d[t]}))}(i);var p=n(1176);for(var i in p)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return p[t]}))}(i)},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";n.r(e),n.d(e,"area",(function(){return s}));var r=n(2),i=n(138),o=n(3),a=n(110);function s(t){var e=t.options,n=e.area,s=e.xField,u=e.yField,l=e.seriesField,c=e.smooth,h=e.tooltip,f=e.useDeferredLabel,d=Object(i.getTooltipMapping)(h,[s,u,l]),p=d.fields,g=d.formatter;return n?Object(a.geometry)(Object(o.deepAssign)({},t,{options:{type:"area",colorField:l,tooltipFields:p,mapping:Object(r.__assign)({shape:c?"smooth":"area",tooltip:g},n),args:{useDeferredLabel:f}}})):t}},function(t,e,n){"use strict";n.r(e),n.d(e,"line",(function(){return s}));var r=n(1),i=n(138),o=n(3),a=n(110);function s(t){var e=t.options,n=e.line,s=e.stepType,u=e.xField,l=e.yField,c=e.seriesField,h=e.smooth,f=e.connectNulls,d=e.tooltip,p=e.useDeferredLabel,g=Object(i.getTooltipMapping)(d,[u,l,c]),v=g.fields,m=g.formatter;return n?Object(a.geometry)(Object(o.deepAssign)({},t,{options:{type:"line",colorField:c,tooltipFields:v,mapping:Object(r.deepMix)({shape:s||(h?"smooth":"line"),tooltip:m},n),args:{connectNulls:f,useDeferredLabel:p}}})):t}},function(t,e,n){"use strict";n.r(e),n.d(e,"interval",(function(){return l}));var r=n(2),i=n(13),o=n(1),a=n(3),s=n(138),u=n(110);function l(t){var e=t.options,n=e.xField,l=e.yField,c=e.interval,h=e.seriesField,f=e.tooltip,d=e.minColumnWidth,p=e.maxColumnWidth,g=e.columnBackground,v=e.dodgePadding,m=e.intervalPadding,y=e.useDeferredLabel,b=Object(s.getTooltipMapping)(f,[n,l,h]),_=b.fields,x=b.formatter,w=(c?Object(u.geometry)(Object(a.deepAssign)({},t,{options:{type:"interval",colorField:h,tooltipFields:_,mapping:Object(r.__assign)({tooltip:x},c),args:{dodgePadding:v,intervalPadding:m,minColumnWidth:d,maxColumnWidth:p,background:g,useDeferredLabel:y}}})):t).ext;return function(t){var e=t.chart,n=t.options,r=t.ext,s=n.seriesField,u=n.isGroup,l=n.isStack,c=n.marginRatio,h=n.widthRatio,f=n.groupField,d=n.theme,p=[];return s&&(u&&p.push({type:"dodge",dodgeBy:f||s,marginRatio:c}),l&&p.push({type:"stack",marginRatio:c})),p.length&&(null==r?void 0:r.geometry)&&(null==r?void 0:r.geometry).adjust(p),Object(o.isNil)(h)||e.theme(Object(a.deepAssign)({},Object(o.isObject)(d)?d:Object(i.getTheme)(d),{columnWidthRatio:h})),t}(Object(r.__assign)(Object(r.__assign)({},t),{ext:w}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"edge",(function(){return s}));var r=n(2),i=n(138),o=n(3),a=n(110);function s(t){var e=t.options,n=e.edge,s=e.xField,u=e.yField,l=e.seriesField,c=e.tooltip,h=e.useDeferredLabel,f=Object(i.getTooltipMapping)(c,[s,u,l]),d=f.fields,p=f.formatter;return n?Object(a.geometry)(Object(o.deepAssign)({},t,{options:{type:"edge",colorField:l,tooltipFields:d,mapping:Object(r.__assign)({tooltip:p},n),args:{useDeferredLabel:h}}})):t}},function(t,e,n){"use strict";n.r(e),n.d(e,"schema",(function(){return s}));var r=n(2),i=n(138),o=n(3),a=n(110);function s(t){var e=t.options,n=e.schema,s=e.xField,u=e.yField,l=e.seriesField,c=e.tooltip,h=e.useDeferredLabel,f=Object(i.getTooltipMapping)(c,[s,u,l]),d=f.fields,p=f.formatter;return n?Object(a.geometry)(Object(o.deepAssign)({},t,{options:{type:"schema",colorField:l,tooltipFields:d,mapping:Object(r.__assign)({tooltip:p},n),args:{useDeferredLabel:h}}})):t}},function(t,e,n){"use strict";n.r(e),n.d(e,"violin",(function(){return s}));var r=n(2),i=n(138),o=n(3),a=n(110);function s(t){var e=t.options,n=e.violin,s=e.xField,u=e.yField,l=e.seriesField,c=e.sizeField,h=e.tooltip,f=Object(i.getTooltipMapping)(h,[s,u,l,c]),d=f.fields,p=f.formatter;return n?Object(a.geometry)(Object(o.deepAssign)({},t,{options:{type:"violin",colorField:l,tooltipFields:d,mapping:Object(r.__assign)({tooltip:p},n)}})):t}},function(t,e,n){"use strict";n.r(e),n.d(e,"Rose",(function(){return s}));var r=n(2),i=n(26),o=n(1713),a=n(1714),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"WordCloud",(function(){return u}));var r=n(2),i=n(26),o=n(1715),a=n(590),s=n(589),u=(n(2e3),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="word-cloud",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(Object(s.transform)({chart:this.chart,options:this.options}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){var e=this;return new Promise((function(n){var i=e.options.imageMask;if(!i)return t.prototype.render.call(e),void n();var o=function(i){e.options=Object(r.__assign)(Object(r.__assign)({},e.options),{imageMask:i||null}),t.prototype.render.call(e),n()};Object(s.processImageMask)(i).then(o).catch(o)}))},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e.prototype.triggerResize=function(){var e=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout((function(){t.prototype.triggerResize.call(e)})))},e}(i.Plot))},function(t,e,n){"use strict";n.r(e);var r=n(13);Object(r.registerInteraction)("drag-move",{start:[{trigger:"plot:mousedown",action:"scale-translate:start"}],processing:[{trigger:"plot:mousemove",action:"scale-translate:translate",throttle:{wait:100,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseup",action:"scale-translate:end"}]})},function(t,e,n){"use strict";n.r(e),n.d(e,"Radar",(function(){return s}));var r=n(2),i=n(26),o=n(3),a=n(1717),s=(n(2002),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}return Object(r.__extends)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return Object(o.deepAssign)({},t.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot))},function(t,e,n){"use strict";n.r(e),n.d(e,"DualAxes",(function(){return s}));var r=n(2),i=n(26),o=n(3),a=n(1719),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dual-axes",e}return Object(r.__extends)(e,t),e.prototype.getDefaultOptions=function(){return Object(o.deepAssign)({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"Heatmap",(function(){return s}));var r=n(2),i=n(26),o=n(1724),a=n(1725),s=(n(2003),n(2004),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(i.Plot))},function(t,e,n){"use strict";n.r(e),n.d(e,"Box",(function(){return u}));var r=n(2),i=n(26),o=n(1726),a=n(760),s=n(282),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="box",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField,n=this.chart.views.find((function(t){return t.id===s.OUTLIERS_VIEW_ID}));n&&n.data(t),this.chart.changeData(Object(a.transformData)(t,e))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"Violin",(function(){return u}));var r=n(2),i=n(26),o=n(1727),a=n(103),s=n(761),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(Object(s.transformViolinData)(this.options))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"Venn",(function(){return s}));var r=n(2),i=n(26),o=n(1729),a=n(193),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="venn",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"Bullet",(function(){return u}));var r=n(2),i=n(26),o=n(927),a=n(767),s=n(1737),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=Object(a.transformData)(this.options),n=e.min,r=e.max,i=e.ds;Object(o.meta)({options:this.options,ext:{data:{min:n,max:r}},chart:this.chart}),this.chart.changeData(i)},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"Sunburst",(function(){return u}));var r=n(2),i=n(26),o=n(212),a=n(1738),s=n(237),u=(n(2009),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sunburst",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e.SUNBURST_ANCESTOR_FIELD=s.SUNBURST_ANCESTOR_FIELD,e.SUNBURST_PATH_FIELD=s.SUNBURST_PATH_FIELD,e.NODE_ANCESTORS_FIELD=o.NODE_ANCESTORS_FIELD,e}(i.Plot))},function(t,e,n){"use strict";function r(t,e){return t.parent===e.parent?1:2}function i(t,e){return t+e.x}function o(t,e){return Math.max(t,e.y)}n.r(e),e.default=function(){var t=r,e=1,n=1,a=!1;function s(r){var s,u=0;r.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(i,0)/t.length}(n),e.y=function(t){return 1+t.reduce(o,0)}(n)):(e.x=s?u+=t(e,s):0,e.y=0,s=e)}));var l=function(t){for(var e;e=t.children;)t=e[0];return t}(r),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(r),h=l.x-t(l,c)/2,f=c.x+t(c,l)/2;return r.eachAfter(a?function(t){t.x=(t.x-r.x)*e,t.y=(r.y-t.y)*n}:function(t){t.x=(t.x-h)/(f-h)*e,t.y=(1-(r.y?t.y/r.y:1))*n})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(a=!1,e=+t[0],n=+t[1],s):a?null:[e,n]},s.nodeSize=function(t){return arguments.length?(a=!0,e=+t[0],n=+t[1],s):a?[e,n]:null},s}},function(t,e,n){"use strict";n.r(e);var r=n(435),i=n(333),o={depth:-1},a={};function s(t){return t.id}function u(t){return t.parentId}e.default=function(){var t=s,e=u;function n(n){var r,s,u,l,c,h,f,d=Array.from(n),p=d.length,g=new Map;for(s=0;s<p;++s)r=d[s],c=d[s]=new i.Node(r),null!=(h=t(r,s,n))&&(h+="")&&(f=c.id=h,g.set(f,g.has(f)?a:c)),null!=(h=e(r,s,n))&&(h+="")&&(c.parent=h);for(s=0;s<p;++s)if(h=(c=d[s]).parent){if(!(l=g.get(h)))throw new Error("missing: "+h);if(l===a)throw new Error("ambiguous: "+h);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(u)throw new Error("multiple roots");u=c}if(!u)throw new Error("no root");if(u.parent=o,u.eachBefore((function(t){t.depth=t.parent.depth+1,--p})).eachBefore(i.computeHeight),u.parent=null,p>0)throw new Error("cycle");return u}return n.id=function(e){return arguments.length?(t=Object(r.required)(e),n):t},n.parentId=function(t){return arguments.length?(e=Object(r.required)(t),n):e},n}},function(t,e,n){"use strict";n.r(e);var r=n(333);function i(t,e){return t.parent===e.parent?1:2}function o(t){var e=t.children;return e?e[0]:t.t}function a(t){var e=t.children;return e?e[e.length-1]:t.t}function s(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function u(t,e,n){return t.a.parent===e.parent?t.a:n}function l(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}l.prototype=Object.create(r.Node.prototype),e.default=function(){var t=i,e=1,n=1,r=null;function c(i){var o=function(t){for(var e,n,r,i,o,a=new l(t,0),s=[a];e=s.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new l(r[i],i)),n.parent=e;return(a.parent=new l(null,0)).children=[a],a}(i);if(o.eachAfter(h),o.parent.m=-o.z,o.eachBefore(f),r)i.eachBefore(d);else{var a=i,s=i,u=i;i.eachBefore((function(t){t.x<a.x&&(a=t),t.x>s.x&&(s=t),t.depth>u.depth&&(u=t)}));var c=a===s?1:t(a,s)/2,p=c-a.x,g=e/(s.x+c+p),v=n/(u.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*g,t.y=t.depth*v}))}return i}function h(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var l=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-l):e.z=l}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,l=e,c=e,h=n,f=l.parent.children[0],d=l.m,p=c.m,g=h.m,v=f.m;h=a(h),l=o(l),h&&l;)f=o(f),(c=a(c)).a=e,(i=h.z+g-l.z-d+t(h._,l._))>0&&(s(u(h,e,r),e,i),d+=i,p+=i),g+=h.m,d+=l.m,v+=f.m,p+=c.m;h&&!a(c)&&(c.t=h,c.m+=g-p),l&&!o(f)&&(f.t=l,f.m+=d-v,r=e)}return r}(e,i,e.parent.A||r[0])}function f(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function d(t){t.x*=e,t.y=t.depth*n}return c.separation=function(e){return arguments.length?(t=e,c):t},c.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],c):r?null:[e,n]},c.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],c):r?[e,n]:null},c}},function(t,e,n){"use strict";n.r(e),e.default=function(t,e,n,r,i){var o,a,s=t.children,u=s.length,l=new Array(u+1);for(l[0]=a=o=0;o<u;++o)l[o+1]=a+=s[o].value;!function t(e,n,r,i,o,a,u){if(e>=n-1){var c=s[e];return c.x0=i,c.y0=o,c.x1=a,void(c.y1=u)}var h=l[e],f=r/2+h,d=e+1,p=n-1;for(;d<p;){var g=d+p>>>1;l[g]<f?d=g+1:p=g}f-l[d-1]<l[d]-f&&e+1<d&&--d;var v=l[d]-h,m=r-v;if(a-i>u-o){var y=r?(i*m+a*v)/r:a;t(e,d,v,i,o,y,u),t(d,n,m,y,o,a,u)}else{var b=r?(o*m+u*v)/r:u;t(e,d,v,i,o,a,b),t(d,n,m,i,b,a,u)}}(0,u,t.value,e,n,r,i)}},function(t,e,n){"use strict";n.r(e);var r=n(315),i=n(382);e.default=function(t,e,n,o,a){(1&t.depth?i.default:r.default)(t,e,n,o,a)}},function(t,e,n){"use strict";n.r(e);var r=n(315),i=n(382),o=n(424);e.default=function t(e){function n(t,n,a,s,u){if((l=t._squarify)&&l.ratio===e)for(var l,c,h,f,d,p=-1,g=l.length,v=t.value;++p<g;){for(h=(c=l[p]).children,f=c.value=0,d=h.length;f<d;++f)c.value+=h[f].value;c.dice?Object(r.default)(c,n,a,s,v?a+=(u-a)*c.value/v:u):Object(i.default)(c,n,a,v?n+=(s-n)*c.value/v:s,u),v-=c.value}else t._squarify=l=Object(o.squarifyRatio)(e,t,n,a,s,u),l.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(o.phi)},function(t,e,n){"use strict";n.r(e),n.d(e,"Waterfall",(function(){return u}));var r=n(2),i=n(26),o=n(1753),a=n(133),s=n(771),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="waterfall",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},e.prototype.changeData=function(t){var e=this.options,n=e.xField,r=e.yField,i=e.total;this.updateOption({data:t}),this.chart.changeData(Object(s.transformData)(t,n,r,i))},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"RadialBar",(function(){return s}));var r=n(2),i=n(26),o=n(929),a=n(1754),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radial-bar",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t}),Object(o.meta)({chart:this.chart,options:this.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"BidirectionalBar",(function(){return c}));var r=n(2),i=n(13),o=n(26),a=n(3),s=n(1755),u=n(346),l=n(116),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bidirectional-bar",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return Object(a.deepAssign)({},t.getDefaultOptions.call(this),{syncViewPadding:u.syncViewPadding})},e.prototype.changeData=function(t){void 0===t&&(t=[]),this.chart.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({data:t});var e=this.options,n=e.xField,r=e.yField,o=e.layout,s=Object(u.transformData)(n,r,l.SERIES_FIELD_KEY,t,Object(u.isHorizontal)(o)),c=s[0],h=s[1],f=Object(a.findViewById)(this.chart,l.FIRST_AXES_VIEW),d=Object(a.findViewById)(this.chart,l.SECOND_AXES_VIEW);f.data(c),d.data(h),this.chart.render(!0),this.chart.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e.SERIES_FIELD_KEY=l.SERIES_FIELD_KEY,e}(o.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"Treemap",(function(){return u}));var r=n(2),i=n(26),o=n(1756),a=n(1757),s=n(306),u=(n(2013),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},e.prototype.changeData=function(t){var e=this.options,n=e.colorField,r=e.interactions,i=e.hierarchyConfig;this.updateOption({data:t});var o=Object(s.transformData)({data:t,colorField:n,enableDrillDown:Object(s.enableInteraction)(r,"treemap-drill-down"),hierarchyConfig:i});this.chart.changeData(o),Object(s.resetDrillDown)(this.chart)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot))},function(t,e,n){"use strict";n.r(e),n.d(e,"Sankey",(function(){return c}));var r=n(2),i=n(1),o=n(26),a=n(3),s=n(1758),u=n(772),l=n(195),c=(n(2014),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sankey",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return{appendPadding:8,syncViewPadding:!0,nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.3,lineWidth:0},edgeState:{active:{style:{opacity:.8,lineWidth:0}}},label:{formatter:function(t){return t.name},callback:function(t){var e=1===t[1];return{style:{fill:"#545454",textAlign:e?"end":"start"},offsetX:e?-8:8}},layout:[{type:"hide-overlap"}]},tooltip:{showTitle:!1,showMarkers:!1,shared:!1,showContent:function(t){return!Object(i.get)(t,[0,"data","isNode"])},formatter:function(t){return{name:t.source+" -> "+t.target,value:t.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},e.prototype.changeData=function(t){this.updateOption({data:t});var e=Object(u.transformToViewsData)(this.options,this.chart.width,this.chart.height),n=e.nodes,r=e.edges,i=Object(a.findViewById)(this.chart,l.NODES_VIEW_ID),o=Object(a.findViewById)(this.chart,l.EDGES_VIEW_ID);i.changeData(n),o.changeData(r)},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(o.Plot))},function(t,e,n){"use strict";n.r(e),n.d(e,"Sankey",(function(){return p}));var r=n(416),i=n(288);function o(t,e){return s(t.source,e.source)||t.index-e.index}function a(t,e){return s(t.target,e.target)||t.index-e.index}function s(t,e){return t.y0-e.y0}function u(t){return t.value}function l(t){return t.index}function c(t){return t.nodes}function h(t){return t.links}function f(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function d(t){for(var e=0,n=t.nodes;e<n.length;e++){for(var r=n[e],i=r.y0,o=i,a=0,s=r.sourceLinks;a<s.length;a++){(c=s[a]).y0=i+c.width/2,i+=c.width}for(var u=0,l=r.targetLinks;u<l.length;u++){var c;(c=l[u]).y1=o+c.width/2,o+=c.width}}}function p(){var t,e,n,p,g=0,v=0,m=1,y=1,b=24,_=8,x=l,w=r.justify,O=c,S=h,C=6;function E(r){var o={nodes:O(r),links:S(r)};return function(t){var e=t.nodes,n=t.links;e.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var r=new Map(e.map((function(t){return[x(t),t]})));if(n.forEach((function(t,e){t.index=e;var n=t.source,i=t.target;"object"!=typeof n&&(n=t.source=f(r,n)),"object"!=typeof i&&(i=t.target=f(r,i)),n.sourceLinks.push(t),i.targetLinks.push(t)})),null!=p)for(var i=0,o=e;i<o.length;i++){var a=o[i],s=a.sourceLinks,u=a.targetLinks;s.sort(p),u.sort(p)}}(o),function(t){for(var e=t.nodes,n=0,r=e;n<r.length;n++){var o=r[n];o.value=void 0===o.fixedValue?Math.max(Object(i.sumBy)(o.sourceLinks,u),Object(i.sumBy)(o.targetLinks,u)):o.fixedValue}}(o),function(t){var n=t.nodes,r=n.length,o=new Set(n),a=new Set,s=0;for(;o.size;){if(o.forEach((function(t){t.depth=s;for(var e=0,n=t.sourceLinks;e<n.length;e++){var r=n[e].target;a.add(r)}})),++s>r)throw new Error("circular link");o=a,a=new Set}if(e)for(var u=Math.max(Object(i.maxValueBy)(n,(function(t){return t.depth}))+1,0),l=void 0,c=0;c<n.length;c++)(l=n[c]).depth=e.call(null,l,u)}(o),function(t){var e=t.nodes,n=e.length,r=new Set(e),i=new Set,o=0;for(;r.size;){if(r.forEach((function(t){t.height=o;for(var e=0,n=t.targetLinks;e<n.length;e++){var r=n[e].source;i.add(r)}})),++o>n)throw new Error("circular link");r=i,i=new Set}}(o),function(e){var r=function(t){for(var e=t.nodes,r=Math.max(Object(i.maxValueBy)(e,(function(t){return t.depth}))+1,0),o=(m-g-b)/(r-1),a=new Array(r).fill(0).map((function(){return[]})),s=0,u=e;s<u.length;s++){var l=u[s],c=Math.max(0,Math.min(r-1,Math.floor(w.call(null,l,r))));l.layer=c,l.x0=g+c*o,l.x1=l.x0+b,a[c]?a[c].push(l):a[c]=[l]}if(n)for(var h=0,f=a;h<f.length;h++){f[h].sort(n)}return a}(e);t=Math.min(_,(y-v)/(Object(i.maxValueBy)(r,(function(t){return t.length}))-1)),function(e){for(var n=Object(i.minValueBy)(e,(function(e){return(y-v-(e.length-1)*t)/Object(i.sumBy)(e,u)})),r=0,o=e;r<o.length;r++){for(var a=o[r],s=v,l=0,c=a;l<c.length;l++){(g=c[l]).y0=s,g.y1=s+g.value*n,s=g.y1+t;for(var h=0,f=g.sourceLinks;h<f.length;h++){var d=f[h];d.width=d.value*n}}s=(y-s+t)/(a.length+1);for(var p=0;p<a.length;++p){var g;(g=a[p]).y0+=s*(p+1),g.y1+=s*(p+1)}P(a)}}(r);for(var o=0;o<C;++o){var a=Math.pow(.99,o),s=Math.max(1-a,(o+1)/C);A(r,a,s),T(r,a,s)}}(o),d(o),o}function T(t,e,r){for(var i=1,o=t.length;i<o;++i){for(var a=t[i],u=0,l=a;u<l.length;u++){for(var c=l[u],h=0,f=0,d=0,p=c.targetLinks;d<p.length;d++){var g=p[d],v=g.source,m=g.value*(c.layer-v.layer);h+=L(v,c)*m,f+=m}if(f>0){var y=(h/f-c.y0)*e;c.y0+=y,c.y1+=y,k(c)}}void 0===n&&a.sort(s),a.length&&M(a,r)}}function A(t,e,r){for(var i=t.length-2;i>=0;--i){for(var o=t[i],a=0,u=o;a<u.length;a++){for(var l=u[a],c=0,h=0,f=0,d=l.sourceLinks;f<d.length;f++){var p=d[f],g=p.target,v=p.value*(g.layer-l.layer);c+=R(l,g)*v,h+=v}if(h>0){var m=(c/h-l.y0)*e;l.y0+=m,l.y1+=m,k(l)}}void 0===n&&o.sort(s),o.length&&M(o,r)}}function M(e,n){var r=e.length>>1,i=e[r];j(e,i.y0-t,r-1,n),I(e,i.y1+t,r+1,n),j(e,y,e.length-1,n),I(e,v,0,n)}function I(e,n,r,i){for(;r<e.length;++r){var o=e[r],a=(n-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+t}}function j(e,n,r,i){for(;r>=0;--r){var o=e[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-t}}function k(t){var e=t.sourceLinks,n=t.targetLinks;if(void 0===p){for(var r=0,i=n;r<i.length;r++){i[r].source.sourceLinks.sort(a)}for(var s=0,u=e;s<u.length;s++){u[s].target.targetLinks.sort(o)}}}function P(t){if(void 0===p)for(var e=0,n=t;e<n.length;e++){var r=n[e],i=r.sourceLinks,s=r.targetLinks;i.sort(a),s.sort(o)}}function L(e,n){for(var r=e.y0-(e.sourceLinks.length-1)*t/2,i=0,o=e.sourceLinks;i<o.length;i++){var a=o[i],s=a.target,u=a.width;if(s===n)break;r+=u+t}for(var l=0,c=n.targetLinks;l<c.length;l++){var h=c[l];s=h.source,u=h.width;if(s===e)break;r-=u}return r}function R(e,n){for(var r=n.y0-(n.targetLinks.length-1)*t/2,i=0,o=n.targetLinks;i<o.length;i++){var a=o[i],s=a.source,u=a.width;if(s===e)break;r+=u+t}for(var l=0,c=e.sourceLinks;l<c.length;l++){var h=c[l];s=h.target,u=h.width;if(s===n)break;r-=u}return r}return E.update=function(t){return d(t),t},E.nodeId=function(t){return arguments.length?(x="function"==typeof t?t:Object(i.constant)(t),E):x},E.nodeAlign=function(t){return arguments.length?(w="function"==typeof t?t:Object(i.constant)(t),E):w},E.nodeDepth=function(t){return arguments.length?(e=t,E):e},E.nodeSort=function(t){return arguments.length?(n=t,E):n},E.nodeWidth=function(t){return arguments.length?(b=+t,E):b},E.nodePadding=function(e){return arguments.length?(_=t=+e,E):_},E.nodes=function(t){return arguments.length?(O="function"==typeof t?t:Object(i.constant)(t),E):O},E.links=function(t){return arguments.length?(S="function"==typeof t?t:Object(i.constant)(t),E):S},E.linkSort=function(t){return arguments.length?(p=t,E):p},E.size=function(t){return arguments.length?(g=v=0,m=+t[0],y=+t[1],E):[m-g,y-v]},E.extent=function(t){return arguments.length?(g=+t[0][0],m=+t[1][0],v=+t[0][1],y=+t[1][1],E):[[g,v],[m,y]]},E.iterations=function(t){return arguments.length?(C=+t,E):C},E}},function(t,e,n){"use strict";n.r(e),n.d(e,"Chord",(function(){return s}));var r=n(2),i=n(26),o=n(1762),a=n(307),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="chord",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"CirclePacking",(function(){return s}));var r=n(2),i=n(26),o=n(1764),a=n(773),s=(n(2016),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-packing",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))},e}(i.Plot))},function(t,e,n){"use strict";n.r(e),n.d(e,"P",(function(){return o}));var r=n(2),i=n(3),o=function(t){function e(e,n,r,o){var a=t.call(this,e,Object(i.deepAssign)({},o,n))||this;return a.type="g2-plot",a.defaultOptions=o,a.adaptor=r,a}return Object(r.__extends)(e,t),e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor},e}(n(26).Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"Facet",(function(){return s}));var r=n(2),i=n(26),o=n(1767),a=n(1769),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"Stage",(function(){return r})),n.d(e,"notice",(function(){return o})),n.d(e,"Lab",(function(){return a}));var r,i=n(456);function o(t,e){console.warn(t===r.DEV?"Plot '"+e+"' is in DEV stage, just give us issues.":t===r.BETA?"Plot '"+e+"' is in BETA stage, DO NOT use it in production env.":t===r.STABLE?"Plot '"+e+"' is in STABLE stage, import it by \"import { "+e+" } from '@antv/g2plot'\".":"invalid Stage type.")}!function(t){t.DEV="DEV",t.BETA="BETA",t.STABLE="STABLE"}(r||(r={}));var a=function(){function t(){}return Object.defineProperty(t,"MultiView",{get:function(){return o(r.STABLE,"MultiView"),i.Mix},enumerable:!1,configurable:!0}),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return v}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(50),u=n.n(s),l=n(51),c=n.n(l),h=n(28),f=n.n(h),d=n(326),p=n(1770);function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var v=function(t){u()(n,t);var e=g(n);function n(){return i()(this,n),e.apply(this,arguments)}return a()(n,[{key:"getServiceConstructor",value:function(){return p.default}}]),n}(d.default)},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(1212);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MetadataReader=void 0;var r=n(175),i=function(){function t(){}return t.prototype.getConstructorMetadata=function(t){return{compilerGeneratedMetadata:Reflect.getMetadata(r.PARAM_TYPES,t),userGeneratedMetadata:Reflect.getMetadata(r.TAGGED,t)||{}}},t.prototype.getPropertiesMetadata=function(t){return Reflect.getMetadata(r.TAGGED_PROP,t)||[]},t}();e.MetadataReader=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isStackOverflowExeption=void 0;var r=n(241);e.isStackOverflowExeption=function(t){return t instanceof RangeError||t.message===r.STACK_OVERFLOW}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.inject=e.LazyServiceIdentifer=void 0;var r=n(241),i=n(175),o=n(290),a=n(374),s=function(){function t(t){this._cb=t}return t.prototype.unwrap=function(){return this._cb()},t}();e.LazyServiceIdentifer=s,e.inject=function(t){return function(e,n,s){if(void 0===t)throw new Error(r.UNDEFINED_INJECT_ANNOTATION(e.name));var u=new o.Metadata(i.INJECT_TAG,t);"number"==typeof s?a.tagParameter(e,n,s,u):a.tagProperty(e,n,u)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Target=void 0;var r=n(175),i=n(412),o=n(290),a=n(2036),s=function(){function t(t,e,n,s){this.id=i.id(),this.type=t,this.serviceIdentifier=n,this.name=new a.QueryableString(e||""),this.metadata=new Array;var u=null;"string"==typeof s?u=new o.Metadata(r.NAMED_TAG,s):s instanceof o.Metadata&&(u=s),null!==u&&this.metadata.push(u)}return t.prototype.hasTag=function(t){for(var e=0,n=this.metadata;e<n.length;e++){if(n[e].key===t)return!0}return!1},t.prototype.isArray=function(){return this.hasTag(r.MULTI_INJECT_TAG)},t.prototype.matchesArray=function(t){return this.matchesTag(r.MULTI_INJECT_TAG)(t)},t.prototype.isNamed=function(){return this.hasTag(r.NAMED_TAG)},t.prototype.isTagged=function(){return this.metadata.some((function(t){return r.NON_CUSTOM_TAG_KEYS.every((function(e){return t.key!==e}))}))},t.prototype.isOptional=function(){return this.matchesTag(r.OPTIONAL_TAG)(!0)},t.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter((function(t){return t.key===r.NAMED_TAG}))[0]:null},t.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter((function(t){return r.NON_CUSTOM_TAG_KEYS.every((function(e){return t.key!==e}))})):null},t.prototype.matchesNamedTag=function(t){return this.matchesTag(r.NAMED_TAG)(t)},t.prototype.matchesTag=function(t){var e=this;return function(n){for(var r=0,i=e.metadata;r<i.length;r++){var o=i[r];if(o.key===t&&o.value===n)return!0}return!1}},t}();e.Target=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingWhenOnSyntax=void 0;var r=n(850),i=n(851),o=function(){function t(t){this._binding=t,this._bindingWhenSyntax=new i.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new r.BindingOnSyntax(this._binding)}return t.prototype.when=function(t){return this._bindingWhenSyntax.when(t)},t.prototype.whenTargetNamed=function(t){return this._bindingWhenSyntax.whenTargetNamed(t)},t.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},t.prototype.whenTargetTagged=function(t,e){return this._bindingWhenSyntax.whenTargetTagged(t,e)},t.prototype.whenInjectedInto=function(t){return this._bindingWhenSyntax.whenInjectedInto(t)},t.prototype.whenParentNamed=function(t){return this._bindingWhenSyntax.whenParentNamed(t)},t.prototype.whenParentTagged=function(t,e){return this._bindingWhenSyntax.whenParentTagged(t,e)},t.prototype.whenAnyAncestorIs=function(t){return this._bindingWhenSyntax.whenAnyAncestorIs(t)},t.prototype.whenNoAncestorIs=function(t){return this._bindingWhenSyntax.whenNoAncestorIs(t)},t.prototype.whenAnyAncestorNamed=function(t){return this._bindingWhenSyntax.whenAnyAncestorNamed(t)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenAnyAncestorTagged(t,e)},t.prototype.whenNoAncestorNamed=function(t){return this._bindingWhenSyntax.whenNoAncestorNamed(t)},t.prototype.whenNoAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenNoAncestorTagged(t,e)},t.prototype.whenAnyAncestorMatches=function(t){return this._bindingWhenSyntax.whenAnyAncestorMatches(t)},t.prototype.whenNoAncestorMatches=function(t){return this._bindingWhenSyntax.whenNoAncestorMatches(t)},t.prototype.onActivation=function(t){return this._bindingOnSyntax.onActivation(t)},t}();e.BindingWhenOnSyntax=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.typeConstraint=e.namedConstraint=e.taggedConstraint=e.traverseAncerstors=void 0;var r=n(175),i=n(290),o=function(t,e){var n=t.parentRequest;return null!==n&&(!!e(n)||o(n,e))};e.traverseAncerstors=o;var a=function(t){return function(e){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(t)(e)};return n.metaData=new i.Metadata(t,e),n}};e.taggedConstraint=a;var s=a(r.NAMED_TAG);e.namedConstraint=s;e.typeConstraint=function(t){return function(e){var n=null;if(null!==e){if(n=e.bindings[0],"string"==typeof t)return n.serviceIdentifier===t;var r=e.bindings[0].implementationType;return t===r}return!1}}},function(t,e,n){"use strict";n.r(e),n.d(e,"getContainer",(function(){return a})),n.d(e,"trim",(function(){return s})),n.d(e,"splitWords",(function(){return u})),n.d(e,"create",(function(){return l})),n.d(e,"remove",(function(){return c})),n.d(e,"addClass",(function(){return h})),n.d(e,"removeClass",(function(){return f})),n.d(e,"hasClass",(function(){return d})),n.d(e,"setClass",(function(){return p})),n.d(e,"getClass",(function(){return g})),n.d(e,"empty",(function(){return v})),n.d(e,"setTransform",(function(){return y})),n.d(e,"triggerResize",(function(){return b})),n.d(e,"printCanvas",(function(){return _})),n.d(e,"getViewPortScale",(function(){return x})),n.d(e,"DPR",(function(){return w}));var r=n(121),i=n.n(r),o=n(131);function a(t){var e=t;return"string"==typeof t&&(e=o.$window.document.getElementById(t)),e}function s(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function u(t){return s(t).split(/\s+/)}function l(t,e,n){var r=o.$window.document.createElement(t);return r.className=e||"",n&&n.appendChild(r),r}function c(t){var e=t.parentNode;e&&e.removeChild(t)}function h(t,e){if(void 0!==t.classList)for(var n=u(e),r=0,i=n.length;r<i;r++)t.classList.add(n[r]);else if(!d(t,e)){var o=g(t);p(t,(o?o+" ":"")+e)}}function f(t,e){void 0!==t.classList?t.classList.remove(e):p(t,s((" "+g(t)+" ").replace(" "+e+" "," ")))}function d(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=g(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function p(t,e){t instanceof HTMLElement?t.className=e:t.className.baseVal=e}function g(t){return t instanceof SVGElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function v(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}var m=function(t){var e,n,r=null===o.$window||void 0===o.$window||null===(e=o.$window.document)||void 0===e||null===(n=e.documentElement)||void 0===n?void 0:n.style;if(!r)return t[0];for(var i in t)if(t[i]&&t[i]in r)return t[i];return t[0]}(["transform","WebkitTransform"]);function y(t,e){t.style[m]=e}function b(){if("function"==typeof Event)o.$window.dispatchEvent(new Event("resize"));else{var t=o.$window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,o.$window,0),o.$window.dispatchEvent(t)}}function _(t){var e=["padding: "+(t.height/2-8)+"px "+t.width/2+"px;","line-height: "+t.height+"px;","background-image: url("+t.toDataURL()+");"];console.log("%c\n",e.join(""))}function x(){var t,e=o.$window.document.querySelector('meta[name="viewport"]');if(!e)return 1;var n=(null===(t=e.content)||void 0===t?void 0:t.split(",")).find((function(t){var e=t.split("="),n=i()(e,2),r=n[0];n[1];return"initial-scale"===r}));return n?1*n.split("=")[1]:1}var w=x()<1?1:o.$window.devicePixelRatio},function(t,e,n){"use strict";n.r(e);var r=n(1222);n.d(e,"dispatchTouchStart",(function(){return r.dispatchTouchStart})),n.d(e,"dispatchTouchMove",(function(){return r.dispatchTouchMove})),n.d(e,"dispatchTouchEnd",(function(){return r.dispatchTouchEnd})),n.d(e,"dispatchMapCameraParams",(function(){return r.dispatchMapCameraParams}));var i=n(1223);n.d(e,"dispatchPointerDown",(function(){return i.dispatchPointerDown})),n.d(e,"dispatchPointerMove",(function(){return i.dispatchPointerMove})),n.d(e,"dispatchPointerUp",(function(){return i.dispatchPointerUp}));var o=n(1224);n.d(e,"dispatchMouseDown",(function(){return o.dispatchMouseDown})),n.d(e,"dispatchMouseMove",(function(){return o.dispatchMouseMove})),n.d(e,"dispatchMouseUp",(function(){return o.dispatchMouseUp}))},function(t,e,n){"use strict";n.r(e),n.d(e,"dispatchTouchStart",(function(){return C})),n.d(e,"dispatchTouchMove",(function(){return E})),n.d(e,"dispatchTouchEnd",(function(){return T})),n.d(e,"dispatchMapCameraParams",(function(){return A}));var r=n(17),i=n.n(r),o=n(16),a=n.n(o),s=n(14),u=n.n(s),l=n(50),c=n.n(l),h=n(51),f=n.n(h),d=n(28),p=n.n(d),g=n(4),v=n.n(g),m=n(278),y=n(324),b=n(251);function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var x=function(t){c()(n,t);var e=_(n);function n(t){var r;return a()(this,n),r=e.call(this,t),v()(u()(r),"touches",void 0),v()(u()(r),"targetTouches",void 0),v()(u()(r),"changedTouches",void 0),r.touches=[],r.targetTouches=[],r.changedTouches=[],r.target=Object(b.getCanvas)(),r.currentTarget=Object(b.getCanvas)(),r}return i()(n)}(y.Event);function w(t){var e=t||{},n=e.x,r=void 0===n?0:n,i=e.y,o=void 0===i?0:i,a=e.clientX,s=void 0===a?0:a,u=e.clientY,l=void 0===u?0:u;-1!==Object.keys(t).indexOf("x")?(t.pageX=t.clientX=r,t.pageY=t.clientY=o):(t.x=s,t.y=l)}function O(t){return function(e){var n=new x(t);n.changedTouches=e.changedTouches,n.touches=e.touches,n.targetTouches=Array.prototype.slice.call(e.touches),n.timeStamp=e.timeStamp,n.changedTouches.forEach((function(t){return w(t)})),n.touches.forEach((function(t){return w(t)})),n.targetTouches.forEach((function(t){return w(t)})),m.$document.dispatchEvent(n)}}var S,C=O("touchstart"),E=O("touchmove"),T=O("touchend"),A=(S="mapCameaParams",function(t){t.type=S,m.$document.dispatchEvent(t)})},function(t,e,n){"use strict";n.r(e),n.d(e,"dispatchPointerDown",(function(){return M})),n.d(e,"dispatchPointerMove",(function(){return I})),n.d(e,"dispatchPointerUp",(function(){return j}));var r=n(17),i=n.n(r),o=n(16),a=n.n(o),s=n(14),u=n.n(s),l=n(50),c=n.n(l),h=n(51),f=n.n(h),d=n(28),p=n.n(d),g=n(4),v=n.n(g),m=n(278),y=n(324),b=n(251);function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var x=function(t){c()(n,t);var e=_(n);function n(t){var r;return a()(this,n),r=e.call(this,t),v()(u()(r),"buttons",void 0),v()(u()(r),"which",void 0),v()(u()(r),"pointerId",void 0),v()(u()(r),"bubbles",void 0),v()(u()(r),"button",void 0),v()(u()(r),"width",void 0),v()(u()(r),"height",void 0),v()(u()(r),"pressure",void 0),v()(u()(r),"isPrimary",void 0),v()(u()(r),"pointerType",void 0),v()(u()(r),"altKey",void 0),v()(u()(r),"ctrlKey",void 0),v()(u()(r),"metaKey",void 0),v()(u()(r),"shiftKey",void 0),r.target=Object(b.getCanvas)(),r.currentTarget=Object(b.getCanvas)(),r}return i()(n)}(y.Event),w=["bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pointerId","width","height","pressure","tiltX","tiltY","pointerType","hwTimestamp","isPrimary","pageX","pageY","timeStamp"],O=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1,0,0,0];function S(t,e,n){for(var r=new x(t),i=0;i<w.length;i++){var o=w[i];r[o]=e[o]||O[i]}return r.type=t,r.target=Object(b.getCanvas)(),r.currentTarget=Object(b.getCanvas)(),r.buttons=function(t){var e=0;"touchstart"!==t&&"touchmove"!==t&&"pointerdown"!==t&&"pointermove"!==t||(e=1);return e}(t),r.which=r.buttons,r.pointerId=(e.identifier||0)+2,r.bubbles=!0,r.cancelable=!0,r.button=0,r.width=2*(e.radiusX||.5),r.height=2*(e.radiusY||.5),r.pressure=e.force||.5,r.isPrimary=function(t){return C===t.identifier}(e),r.pointerType="touch",r.altKey=n.altKey,r.ctrlKey=n.ctrlKey,r.metaKey=n.metaKey,r.shiftKey=n.shiftKey,n.preventDefault&&(r.preventDefault=function(){n.preventDefault()}),r}var C=null;function E(t){null===C&&(C=t.identifier)}function T(t){C===t.identifier&&(C=null)}function A(t){return function(e){for(var n=e.changedTouches,r=0;r<n.length;r++){var i=n[r];0===r&&"pointerdown"===t?E(i):"pointerup"!==t&&"pointercancel"!==t||T(i);var o=S(t,i,e);m.$document.dispatchEvent(o)}}}var M=A("pointerdown"),I=A("pointermove"),j=A("pointerup")},function(t,e,n){"use strict";n.r(e),n.d(e,"dispatchMouseDown",(function(){return v})),n.d(e,"dispatchMouseMove",(function(){return m})),n.d(e,"dispatchMouseUp",(function(){return y}));var r=n(17),i=n.n(r),o=n(16),a=n.n(o),s=n(50),u=n.n(s),l=n(51),c=n.n(l),h=n(28),f=n.n(h),d=n(278);function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}!function(t){u()(n,t);var e=p(n);function n(t){return a()(this,n),e.call(this,t)}i()(n)}(n(324).Event);function g(t){return function(e){e.type=t,d.$document.dispatchEvent(e)}}var v=g("mousedown"),m=g("mousemove"),y=g("mouseup")},function(t,e,n){"use strict";n.r(e),n.d(e,"getJSON",(function(){return O})),n.d(e,"getArrayBuffer",(function(){return S})),n.d(e,"getImage",(function(){return C}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(14),u=n.n(s),l=n(50),c=n.n(l),h=n(51),f=n.n(h),d=n(28),p=n.n(d),g=n(1781),v=n.n(g),m=n(4),y=n.n(m),b=n(131);function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var x=function(t){c()(n,t);var e=_(n);function n(t,r,o){var a;return i()(this,n),a=e.call(this,t),y()(u()(a),"status",void 0),y()(u()(a),"url",void 0),a.status=r,a.url=o,a.name=a.constructor.name,a.message=t,a}return a()(n,[{key:"toString",value:function(){return"".concat(this.name,": ").concat(this.message," (").concat(this.status,"): ").concat(this.url)}}]),n}(v()(Error));function w(t){var e=new b.$XMLHttpRequest;for(var n in e.open("GET",t.url,!0),t.headers)t.headers.hasOwnProperty(n)&&e.setRequestHeader(n,t.headers[n]);return e.withCredentials="include"===t.credentials,e}var O=function(t,e){var n=w(t);return n.setRequestHeader("Accept","application/json"),n.onerror=function(){e(new Error(n.statusText))},n.onload=function(){if(n.status>=200&&n.status<300&&n.response){var r;try{r=JSON.parse(n.response)}catch(t){return e(t)}e(null,r)}else 401===n.status?e(new x("".concat(n.statusText),n.status,t.url)):e(new x(n.statusText,n.status,t.url))},n.send(),n},S=function(t,e){var n=w(t);return n.responseType="arraybuffer",n.onerror=function(){e(new Error(n.statusText))},n.onload=function(){var r=n.response;if(0===r.byteLength&&200===n.status)return e(new Error("http status 200 returned without content."));n.status>=200&&n.status<300&&n.response?e(null,{data:r,cacheControl:n.getResponseHeader("Cache-Control"),expires:n.getResponseHeader("Expires")}):e(new x(n.statusText,n.status,t.url))},n.send(),n};var C=function(t,e){return S(t,(function(t,n){if(t)e(t);else if(n){var r=new b.$window.Image;r.crossOrigin="anonymous";var i=b.$window.URL||b.$window.webkitURL;r.onload=function(){e(null,r),i.revokeObjectURL(r.src)};var o=new b.$window.Blob([new Uint8Array(n.data)],{type:"image/png"});r.src=n.data.byteLength?i.createObjectURL(o):"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII="}}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"extent",(function(){return s})),n.d(e,"tranfrormCoord",(function(){return u})),n.d(e,"lngLatToMeters",(function(){return l})),n.d(e,"metersToLngLat",(function(){return c})),n.d(e,"longitude",(function(){return h})),n.d(e,"latitude",(function(){return f})),n.d(e,"validateLngLat",(function(){return d})),n.d(e,"aProjectFlat",(function(){return p})),n.d(e,"unProjectFlat",(function(){return g})),n.d(e,"lnglatDistance",(function(){return v})),n.d(e,"project",(function(){return m})),n.d(e,"padBounds",(function(){return y})),n.d(e,"boundsContains",(function(){return b})),n.d(e,"bBoxToBounds",(function(){return _})),n.d(e,"normalize",(function(){return x})),n.d(e,"calDistance",(function(){return w})),n.d(e,"calAngle",(function(){return S})),n.d(e,"getAngle",(function(){return C})),n.d(e,"flow",(function(){return E}));var r=n(121),i=n.n(r),o=n(87),a=2*Math.PI*6378137/2;function s(t){var e=[1/0,1/0,-1/0,-1/0];return t.forEach((function(t){var n=t.coordinates;!function t(e,n){Array.isArray(n[0])?n.forEach((function(n){t(e,n)})):(e[0]>n[0]&&(e[0]=n[0]),e[1]>n[1]&&(e[1]=n[1]),e[2]<n[0]&&(e[2]=n[0]),e[3]<n[1]&&(e[3]=n[1]));return e}(e,n)})),e}function u(t,e){return function t(e,n){if(Array.isArray(e[0]))return e.map((function(e){return t(e,n)}));return n(e)}(t,e)}function l(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{enable:!0,decimal:1},r=(t=d(t,e))[0],i=t[1],o=r*a/180,s=Math.log(Math.tan((90+i)*Math.PI/360))/(Math.PI/180);return s=s*a/180,n.enable&&(o=Number(o.toFixed(n.decimal)),s=Number(s.toFixed(n.decimal))),3===t.length?[o,s,t[2]]:[o,s]}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=t[0],r=t[1],i=n/a*180,o=r/a*180;return o=180/Math.PI*(2*Math.atan(Math.exp(o*Math.PI/180))-Math.PI/2),null!=e&&(i=Number(i.toFixed(e)),o=Number(o.toFixed(e))),3===t.length?[i,o,t[2]]:[i,o]}function h(t){if(null==t)throw new Error("lng is required");return(t>180||t<-180)&&((t%=360)>180&&(t=-360+t),t<-180&&(t=360+t),0===t&&(t=0)),t}function f(t){if(null==t)throw new Error("lat is required");return(t>90||t<-90)&&((t%=180)>90&&(t=-180+t),t<-90&&(t=180+t),0===t&&(t=0)),t}function d(t,e){if(!1===e)return t;var n=h(t[0]),r=f(t[1]);return r>85&&(r=85),r<-85&&(r=-85),3===t.length?[n,r,t[2]]:[n,r]}function p(t){var e=Math.max(Math.min(85.0511287798,t[1]),-85.0511287798),n=Math.PI/180,r=t[0]*n,i=e*n;i=Math.log(Math.tan(Math.PI/4+i/2));return r=(256<<20)*(.5/Math.PI*r+.5),i=(256<<20)*(-.5/Math.PI*i+(n=.5)),[Math.floor(r),Math.floor(i)]}function g(t){var e=.5/Math.PI,n=-.5/Math.PI,r=.5,o=i()(t,2),a=o[0],s=o[1];return a=(a/(256<<20)-.5)/e,s=(s/(256<<20)-r)/n,s=2*(Math.atan(Math.pow(Math.E,s))-Math.PI/4),[a/(r=Math.PI/180),s/r]}function v(t,e,n){var r=Object(o.degreesToRadians)(e[1]-t[1]),i=Object(o.degreesToRadians)(e[0]-t[0]),a=Object(o.degreesToRadians)(t[1]),s=Object(o.degreesToRadians)(e[1]),u=Math.pow(Math.sin(r/2),2)+Math.pow(Math.sin(i/2),2)*Math.cos(a)*Math.cos(s);return Object(o.radiansToLength)(2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u)),"meters")}function m(t){var e=Math.PI/180,n=85.0511287798,r=Math.max(Math.min(n,t[1]),-n),i=Math.sin(r*e);return[6378137*t[0]*e,6378137*Math.log((1+i)/(1-i))/2]}function y(t,e){var n=Math.abs(t[1][1]-t[0][1])*e,r=Math.abs(t[1][0]-t[0][0])*e;return[[t[0][0]-r,t[0][1]-n],[t[1][0]+r,t[1][1]+n]]}function b(t,e){return t[0][0]<=e[0][0]&&t[0][1]<=e[0][1]&&t[1][0]>=e[1][0]&&t[1][1]>=e[1][1]}function _(t){return[[t[0],t[1]],[t[2],t[3]]]}function x(t){var e=w(t,[0,0]);return[t[0]/e,t[1]/e]}function w(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function O(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function S(t,e){return 180*Math.acos(function(t,e){return t[0]*e[0]+t[1]*e[1]}(t,e)/(O(t)*O(e)))/Math.PI}function C(t,e){return e[0]>0?e[1]>0?90-180*Math.atan(e[1]/e[0])/Math.PI:90+180*Math.atan(-e[1]/e[0])/Math.PI:e[1]<0?90-180*Math.atan(e[1]/e[0])/Math.PI+180:270+180*Math.atan(e[1]/-e[0])/Math.PI}function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;if(t&&!(t.length<2)){for(var n=0,r=[],i=0;i<t.length-1;i++){var o=t[i],a=t[i+1],s=w(o,a);n+=s;var u=[o[0]-a[0],o[1]-a[1]],l=C(0,u);if(i>0){var c=r[i-1].rotation;c-l>360-c+l&&(l+=360)}r.push({start:o,end:a,dis:s,rotation:l,duration:0})}return r.map((function(t){t.duration=e*(t.dis/n)})),r}}},function(t,e,n){"use strict";n.r(e),n.d(e,"LRUCache",(function(){return l}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(4),u=n.n(s),l=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50,n=arguments.length>1?arguments[1]:void 0;i()(this,t),u()(this,"limit",void 0),u()(this,"cache",void 0),u()(this,"destroy",void 0),u()(this,"order",void 0),this.limit=e,this.destroy=n||this.defaultDestroy,this.order=[],this.clear()}return a()(t,[{key:"clear",value:function(){var t=this;this.order.forEach((function(e){t.delete(e)})),this.cache={},this.order=[]}},{key:"get",value:function(t){var e=this.cache[t];return e&&(this.deleteOrder(t),this.appendOrder(t)),e}},{key:"set",value:function(t,e){this.cache[t]?(this.delete(t),this.cache[t]=e,this.appendOrder(t)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[t]=e,this.appendOrder(t))}},{key:"delete",value:function(t){var e=this.cache[t];e&&(this.deleteCache(t),this.deleteOrder(t),this.destroy(e,t))}},{key:"deleteCache",value:function(t){delete this.cache[t]}},{key:"deleteOrder",value:function(t){var e=this.order.findIndex((function(e){return e===t}));e>=0&&this.order.splice(e,1)}},{key:"appendOrder",value:function(t){this.order.push(t)}},{key:"defaultDestroy",value:function(t,e){return null}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"bindAll",(function(){return l})),n.d(e,"FrequencyController",(function(){return c}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(4),u=n.n(s);function l(t,e){t.forEach((function(t){e[t]&&(e[t]=e[t].bind(e))}))}var c=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16;i()(this,t),u()(this,"duration",16),u()(this,"timestamp",(new Date).getTime()),this.duration=e}return a()(t,[{key:"run",value:function(t){var e=(new Date).getTime(),n=e-this.timestamp;this.timestamp=e,n>=this.duration&&t()}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"isColor",(function(){return o})),n.d(e,"rgb2arr",(function(){return a})),n.d(e,"decodePickingColor",(function(){return s})),n.d(e,"encodePickingColor",(function(){return u})),n.d(e,"generateColorRamp",(function(){return l}));var r=n(372),i=n(131);function o(t){return"string"==typeof t&&!!r.default(t)}function a(t){var e=r.default(t),n=[0,0,0,0];return null!=e&&(n[0]=e.r/255,n[1]=e.g/255,n[2]=e.b/255,n[3]=e.opacity),n}function s(t){return(t&&t[0])+256*(t&&t[1])+65536*(t&&t[2])-1}function u(t){return[t+1&255,t+1>>8&255,t+1>>8>>8&255]}function l(t){var e=i.$window.document.createElement("canvas"),n=e.getContext("2d");e.width=256,e.height=1;for(var r=n.createLinearGradient(0,0,256,1),o=null,a=t.positions[0],s=t.positions[t.positions.length-1],u=0;u<t.colors.length;++u){var l=(t.positions[u]-a)/(s-a);r.addColorStop(l,t.colors[u])}if(n.fillStyle=r,n.fillRect(0,0,256,1),i.isMini)return{data:o=new Uint8ClampedArray(n.getImageData(0,0,256,1).data),width:256,height:1};o=n.getImageData(0,0,256,1).data;for(var c=n.createImageData(256,1),h=0;h<c.data.length;h+=4)c.data[h+0]=o[h+0],c.data[h+1]=o[h+1],c.data[h+2]=o[h+2],c.data[h+3]=o[h+3];return c}},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"anchorType",(function(){return r})),n.d(e,"anchorTranslate",(function(){return i})),n.d(e,"applyAnchorClass",(function(){return o})),function(t){t.CENTER="center",t.TOP="top",t["TOP-LEFT"]="top-left",t["TOP-RIGHT"]="top-right",t.BOTTOM="bottom",t["BOTTOM-LEFT"]="bottom-left",t.LEFT="left",t.RIGHT="right"}(r||(r={}));var i={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function o(t,e,n){var r=t.classList;for(var o in i)i.hasOwnProperty(o)&&r.remove("l7-".concat(n,"-anchor-").concat(o));r.add("l7-".concat(n,"-anchor-").concat(e))}},function(t,e,n){"use strict";function r(t,e){return{enable:t,mask:255,func:{cmp:514,ref:e?1:0,mask:255}}}n.r(e),n.d(e,"getMask",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"getCullFace",(function(){return o}));var r=1029,i=1028;function o(t){switch(t){case"GAODE1.x":case"GAODE2.x":return r;case"MAPBOX":case"SIMPLE":return i;case"GLOBEL":return r;case"L7MAP":default:return i}}},function(t,e,n){"use strict";function r(t){if(0===t.length)throw new Error("max requires at least one data point");for(var e=t[0],n=1;n<t.length;n++)t[n]>e&&(e=t[n]);return 1*e}function i(t){if(0===t.length)throw new Error("min requires at least one data point");for(var e=t[0],n=1;n<t.length;n++)t[n]<e&&(e=t[n]);return 1*e}function o(t){if(0===t.length)return 0;for(var e=1*t[0],n=1;n<t.length;n++)e+=1*t[n];return e}function a(t){if(0===t.length)throw new Error("mean requires at least one data point");return o(t)/t.length}function s(t){if(0===t.length)throw new Error("mean requires at least one data point");if(t.length<3)return t[0];t.sort();for(var e=t[0],n=NaN,r=0,i=1,o=1;o<t.length+1;o++)t[o]!==e?(i>r&&(r=i,n=e),i=1,e=t[o]):i++;return 1*n}n.r(e),n.d(e,"sum",(function(){return o})),n.d(e,"max",(function(){return r})),n.d(e,"min",(function(){return i})),n.d(e,"mean",(function(){return a})),n.d(e,"mode",(function(){return s})),n.d(e,"statMap",(function(){return u})),n.d(e,"getColumn",(function(){return l})),n.d(e,"getSatByColumn",(function(){return c}));var u={min:i,max:r,mean:a,sum:o,mode:s};function l(t,e){return t.map((function(t){return t[e]}))}function c(t,e){return u[t](e)}},function(t,e,n){var r=n(628)(n(413),"Map");t.exports=r},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(309))},function(t,e,n){var r=n(2076),i=n(2083),o=n(2085),a=n(2086),s=n(2087);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(855),i=n(627);t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},function(t,e,n){var r=n(628),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){var r=n(2098)(Object.getPrototypeOf,Object);t.exports=r},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(2099),i=n(453),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){(function(t){var r=n(413),i=n(2101),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;t.exports=u}).call(this,n(631)(t))},function(t,e,n){var r=n(2103),i=n(2104),o=n(2105),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},function(t,e,n){var r=n(2109),i=n(2111),o=n(857);t.exports=function(t){return o(t)?r(t,!0):i(t)}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e,n){var r=n(551),i=n(453);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"LEFT_SHIFT1",(function(){return u})),n.d(e,"LEFT_SHIFT2",(function(){return l})),n.d(e,"LEFT_SHIFT6",(function(){return c})),n.d(e,"LEFT_SHIFT7",(function(){return h})),n.d(e,"LEFT_SHIFT8",(function(){return f})),n.d(e,"LEFT_SHIFT9",(function(){return d})),n.d(e,"LEFT_SHIFT13",(function(){return p})),n.d(e,"LEFT_SHIFT14",(function(){return g})),n.d(e,"LEFT_SHIFT15",(function(){return v})),n.d(e,"LEFT_SHIFT16",(function(){return m})),n.d(e,"LEFT_SHIFT17",(function(){return y})),n.d(e,"LEFT_SHIFT18",(function(){return b})),n.d(e,"LEFT_SHIFT19",(function(){return _})),n.d(e,"LEFT_SHIFT20",(function(){return x})),n.d(e,"LEFT_SHIFT21",(function(){return w})),n.d(e,"LEFT_SHIFT22",(function(){return O})),n.d(e,"LEFT_SHIFT23",(function(){return S})),n.d(e,"LEFT_SHIFT24",(function(){return C})),n.d(e,"LEFT_SHIFT25",(function(){return E})),n.d(e,"packUint8ToFloat",(function(){return T})),n.d(e,"packCircleVertex",(function(){return A})),n.d(e,"packOpacity",(function(){return M}));var r=n(121),i=n.n(r),o=n(937),a=n.n(o),s=n(1817),u=2,l=4,c=64,h=128,f=256,d=512,p=8192,g=16384,v=32768,m=65536,y=131072,b=262144,_=524288,x=1048576,w=2097152,O=4194304,S=8388608,C=16777216,E=33554432;function T(t,e){return 256*(t=a()(Math.floor(t),0,255))+(e=a()(Math.floor(e),0,255))}function A(t){var e=t.color,n=t.radius,r=t.tileX,o=t.tileY,a=t.shape,u=t.opacity,l=t.stroke,h=t.strokeWidth,f=t.strokeOpacity,d=[],p=[],g=[],v=[T(e[0],e[1]),T(e[2],e[3])],m=[T(l[0],l[1]),T(l[2],l[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach((function(t){var e=i()(t,2),l=e[0],b=e[1];d.push([].concat(v,[(l+1)*S+(b+1)*w+Object(s.getShapeIndex)(a)*y+n,(r+512)*_+(o+512)*c])),p.push([].concat(m,[h,f])),g.push([u,0,0,0])})),{packedBuffer:d,packedBuffer2:p,packedBuffer3:g}}function M(t,e){if(0===t&&!e)return 0;if(1===t&&e)return 4294967295;var n=e?1:0,r=Math.floor(127*t);return r*E+n*C+r*y+n*m+r*d+n*f+r*u+n}},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"BlendType",(function(){return r})),function(t){t.normal="normal",t.additive="additive",t.subtractive="subtractive",t.min="min",t.max="max",t.none="none"}(r||(r={}))},function(t,e,n){"use strict";var r,i,o;n.r(e),n.d(e,"ScaleTypes",(function(){return r})),n.d(e,"StyleScaleType",(function(){return i})),n.d(e,"AttributeType",(function(){return o})),function(t){t.LINEAR="linear",t.POWER="power",t.LOG="log",t.IDENTITY="identity",t.TIME="time",t.QUANTILE="quantile",t.QUANTIZE="quantize",t.THRESHOLD="threshold",t.CAT="cat"}(r||(r={})),function(t){t.CONSTANT="constant",t.VARIABLE="variable"}(i||(i={})),function(t){t[t.Attribute=0]="Attribute",t[t.InstancedAttribute=1]="InstancedAttribute",t[t.Uniform=2]="Uniform"}(o||(o={}))},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e),n.d(e,"MapServiceEvent",(function(){return r}));var r=["mapload","mapchange","mapAfterFrameChange"]},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e),n.d(e,"CameraUniform",(function(){return r}));var r={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"}},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e),n.d(e,"SceneEventList",(function(){return r}));var r=["loaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"]},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"PositionType",(function(){return r})),function(t){t.TOPRIGHT="topright",t.TOPLEFT="topleft",t.BOTTOMRIGHT="bottomright",t.BOTTOMLEFT="bottomleft",t.TOPCENTER="topcenter",t.BOTTOMCENTER="bottomcenter",t.LEFTCENTER="leftcenter",t.RIGHTCENTER="rightcenter"}(r||(r={}))},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return v}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(50),u=n.n(s),l=n(51),c=n.n(l),h=n(28),f=n.n(h),d=n(326),p=n(1819);function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var v=function(t){u()(n,t);var e=g(n);function n(){return i()(this,n),e.apply(this,arguments)}return a()(n,[{key:"getServiceConstructor",value:function(){return p.default}}]),n}(d.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return v}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(50),u=n.n(s),l=n(51),c=n.n(l),h=n(28),f=n.n(h),d=n(326),p=n(1821);function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}!function(t,e){var n="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM,r="undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram);if(!n&&!r&&(e||(e=document),e)){var i=e.head||e.getElementsByTagName("head")[0];if(!i){i=e.createElement("head");var o=e.body||e.getElementsByTagName("body")[0];o?o.parentNode.insertBefore(i,o):e.documentElement.appendChild(i)}var a=e.createElement("style");a.type="text/css",a.styleSheet?a.styleSheet.cssText=t:a.appendChild(e.createTextNode(t)),i.appendChild(a)}}(".mapboxgl-ctrl-logo {\n display: none !important;\n}\n");var v=function(t){u()(n,t);var e=g(n);function n(){return i()(this,n),e.apply(this,arguments)}return a()(n,[{key:"getServiceConstructor",value:function(){return p.default}}]),n}(d.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return v}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(50),u=n.n(s),l=n(51),c=n.n(l),h=n(28),f=n.n(h),d=n(326),p=n(1828);function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var v=function(t){u()(n,t);var e=g(n);function n(){return i()(this,n),e.apply(this,arguments)}return a()(n,[{key:"getServiceConstructor",value:function(){return p.default}}]),n}(d.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"Map",(function(){return S}));var r=n(74),i=n(19),o=n(20),a=n(68),s=n(61),u=n(63),l=n(32),c=n(52),h=n(45),f=n(122),d=n(790),p=n(102),g=n(363),v=n(75),m=n(791),y=n(1874),b=n(69),_=n(529),x=n(792);function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(l.default)(t);if(e){var i=Object(l.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(u.default)(this,n)}}!function(t,e){var n="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM,r="undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram);if(!n&&!r&&(e||(e=document),e)){var i=e.head||e.getElementsByTagName("head")[0];if(!i){i=e.createElement("head");var o=e.body||e.getElementsByTagName("body")[0];o?o.parentNode.insertBefore(i,o):e.documentElement.appendChild(i)}var a=e.createElement("style");a.type="text/css",a.styleSheet?a.styleSheet.cssText=t:a.appendChild(e.createTextNode(t)),i.appendChild(a)}}(".l7-map {\n font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;\n overflow: hidden;\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.l7-canvas {\n position: absolute;\n left: 0;\n top: 0;\n}\n\n.l7-map:-webkit-full-screen {\n width: 100%;\n height: 100%;\n}\n\n.l7-canary {\n background-color: salmon;\n}\n\n.l7-canvas-container.l7-interactive,\n.l7-ctrl-group button.l7-ctrl-compass {\n cursor: -webkit-grab;\n cursor: grab;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.l7-canvas-container.l7-interactive.l7-track-pointer {\n cursor: pointer;\n}\n\n.l7-canvas-container.l7-interactive:active,\n.l7-ctrl-group button.l7-ctrl-compass:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n\n.l7-canvas-container.l7-touch-zoom-rotate,\n.l7-canvas-container.l7-touch-zoom-rotate .l7-canvas {\n -ms-touch-action: pan-x pan-y;\n touch-action: pan-x pan-y;\n}\n\n.l7-canvas-container.l7-touch-drag-pan,\n.l7-canvas-container.l7-touch-drag-pan .l7-canvas {\n -ms-touch-action: pinch-zoom;\n touch-action: pinch-zoom;\n}\n\n.l7-canvas-container.l7-touch-zoom-rotate.l7-touch-drag-pan,\n.l7-canvas-container.l7-touch-zoom-rotate.l7-touch-drag-pan .l7-canvas {\n -ms-touch-action: none;\n touch-action: none;\n}\n\n.l7-ctrl-top-left,\n.l7-ctrl-top-right,\n.l7-ctrl-bottom-left,\n.l7-ctrl-bottom-right { position: absolute; pointer-events: none; z-index: 2; }\n.l7-ctrl-top-left { top: 0; left: 0; }\n.l7-ctrl-top-right { top: 0; right: 0; }\n.l7-ctrl-bottom-left { bottom: 0; left: 0; }\n.l7-ctrl-bottom-right { right: 0; bottom: 0; }\n\n.l7-ctrl {\n clear: both;\n pointer-events: auto;\n\n /* workaround for a Safari bug https://github.com/mapbox/mapbox-gl-js/issues/8185 */\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n.l7-ctrl-top-left .l7-ctrl { margin: 10px 0 0 10px; float: left; }\n.l7-ctrl-top-right .l7-ctrl { margin: 10px 10px 0 0; float: right; }\n.l7-ctrl-bottom-left .l7-ctrl { margin: 0 0 10px 10px; float: left; }\n.l7-ctrl-bottom-right .l7-ctrl { margin: 0 10px 10px 0; float: right; }\n\n\n.l7-crosshair,\n.l7-crosshair .l7-interactive,\n.l7-crosshair .l7-interactive:active {\n cursor: crosshair;\n}\n\n.l7-boxzoom {\n position: absolute;\n top: 0;\n left: 0;\n width: 0;\n height: 0;\n background: #fff;\n border: 2px dotted #202020;\n opacity: 0.5;\n z-index: 10;\n}\n");var O={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,trackResize:!0,renderWorldCopies:!0,pitchEnabled:!0,rotateEnabled:!0},S=function(t){Object(s.default)(n,t);var e=w(n);function n(t){var r;if(Object(i.default)(this,n),r=e.call(this,Object(f.merge)({},O,t)),Object(c.default)(Object(a.default)(r),"renderTaskQueue",new x.default),Object(c.default)(Object(a.default)(r),"trackResize",!0),Object(c.default)(Object(a.default)(r),"onWindowOnline",(function(){r.update()})),Object(c.default)(Object(a.default)(r),"onWindowResize",(function(t){r.trackResize&&r.resize({originalEvent:t}).update()})),h.isMini?r.initMiniContainer():r.initContainer(),r.resize(),r.handlers=new m.default(Object(a.default)(r),r.options),"undefined"!=typeof window&&(window.addEventListener("online",r.onWindowOnline,!1),window.addEventListener("resize",r.onWindowResize,!1),window.addEventListener("orientationchange",r.onWindowResize,!1)),!h.isMini){var o="string"==typeof t.hash&&t.hash||void 0;t.hash&&(r.hash=new y.default(o).addTo(Object(a.default)(r)))}return r.hash&&r.hash.onHashChange()||(r.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),t.bounds&&(r.resize(),r.fitBounds(t.bounds,Object(f.merge)({},t.fitBoundsOptions,{duration:0})))),r}return Object(o.default)(n,[{key:"resize",value:function(t){var e=this.containerDimensions(),n=Object(r.default)(e,2),i=n[0],o=n[1];if(this.transform.resize(i,o),h.isMini)return this;var a=!this.moving;return a&&(this.stop(),this.emit("movestart",new h.$window.Event("movestart",t)),this.emit("move",new h.$window.Event("move",t))),this.emit("resize",new h.$window.Event("resize",t)),a&&this.emit("moveend",new h.$window.Event("moveend",t)),this}},{key:"getContainer",value:function(){return this.container}},{key:"getCanvas",value:function(){return this.canvas}},{key:"getCanvasContainer",value:function(){return this.canvasContainer}},{key:"project",value:function(t){return this.transform.locationPoint(p.default.convert(t))}},{key:"unproject",value:function(t){return this.transform.pointLocation(v.default.convert(t))}},{key:"getBounds",value:function(){return this.transform.getBounds()}},{key:"getMaxBounds",value:function(){return this.transform.getMaxBounds()}},{key:"setMaxBounds",value:function(t){this.transform.setMaxBounds(g.default.convert(t))}},{key:"setStyle",value:function(t){}},{key:"setMinZoom",value:function(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this.getZoom()<t&&this.setZoom(t),this;throw new Error("minZoom must be between ".concat(-2," and the current maxZoom, inclusive"))}},{key:"getMinZoom",value:function(){return this.transform.minZoom}},{key:"setMaxZoom",value:function(t){if((t=null==t?22:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this.getZoom()>t&&this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to ".concat(0));if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this.getPitch()<t&&this.setPitch(t),this;throw new Error("minPitch must be between ".concat(0," and the current maxPitch, inclusive"))}},{key:"getMinPitch",value:function(){return this.transform.minPitch}},{key:"setMaxPitch",value:function(t){if((t=null==t?60:t)>60)throw new Error("maxPitch must be less than or equal to ".concat(60));if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this.getPitch()>t&&this.setPitch(t),this;throw new Error("maxPitch must be greater than the current minPitch")}},{key:"getMaxPitch",value:function(){return this.transform.maxPitch}},{key:"getRenderWorldCopies",value:function(){return this.transform.renderWorldCopies}},{key:"setRenderWorldCopies",value:function(t){this.transform.renderWorldCopies=!!t}},{key:"remove",value:function(){this.container.removeChild(this.canvasContainer),this.canvasContainer=null,this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear()}},{key:"requestRenderFrame",value:function(t){return this.update(),this.renderTaskQueue.add(t)}},{key:"cancelRenderFrame",value:function(t){return this.renderTaskQueue.remove(t)}},{key:"triggerRepaint",value:function(){var t=this;this.frame||(this.frame=Object(b.renderframe)((function(e){_.PerformanceUtils.frame(e),t.frame=null,t.update(e)})))}},{key:"update",value:function(t){var e=this;this.frame||(this.frame=Object(b.renderframe)((function(n){_.PerformanceUtils.frame(n),e.frame=null,e.renderTaskQueue.run(t)})))}},{key:"initContainer",value:function(){if("string"==typeof this.options.container){if(this.container=window.document.getElementById(this.options.container),!this.container)throw new Error("Container '".concat(this.options.container,"' not found."))}else{if(!(this.options.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this.container=this.options.container}var t=this.container;t.classList.add("l7-map");var e=this.canvasContainer=h.DOM.create("div","l7-canvas-container",t);this.options.interactive&&e.classList.add("l7-interactive")}},{key:"initMiniContainer",value:function(){this.container=this.options.canvas,this.canvasContainer=this.container}},{key:"containerDimensions",value:function(){var t=0,e=0;return this.container&&(h.isMini?(t=this.container.width/h.$window.devicePixelRatio,e=this.container.height/h.$window.devicePixelRatio):(t=0===(t=this.container.clientWidth)?400:t,e=0===(e=this.container.clientHeight)?300:e)),[t,e]}}]),n}(d.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"getContainer",(function(){return s})),n.d(e,"trim",(function(){return u})),n.d(e,"splitWords",(function(){return l})),n.d(e,"create",(function(){return c})),n.d(e,"remove",(function(){return h})),n.d(e,"addClass",(function(){return f})),n.d(e,"removeClass",(function(){return d})),n.d(e,"hasClass",(function(){return p})),n.d(e,"setClass",(function(){return g})),n.d(e,"getClass",(function(){return v})),n.d(e,"empty",(function(){return m})),n.d(e,"setTransform",(function(){return b})),n.d(e,"triggerResize",(function(){return _})),n.d(e,"printCanvas",(function(){return x})),n.d(e,"getViewPortScale",(function(){return w})),n.d(e,"DPR",(function(){return O})),n.d(e,"addStyle",(function(){return S})),n.d(e,"getStyleList",(function(){return C})),n.d(e,"removeStyle",(function(){return E})),n.d(e,"css2Style",(function(){return T})),n.d(e,"getDiffRect",(function(){return A})),n.d(e,"setChecked",(function(){return M})),n.d(e,"clearChildren",(function(){return I})),n.d(e,"setUnDraggable",(function(){return j}));var r=n(130),i=n(74),o=n(122),a=n(135);function s(t){var e=t;return"string"==typeof t&&(e=a.$window.document.getElementById(t)),e}function u(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function l(t){return u(t).split(/\s+/)}function c(t,e,n){var r=a.$window.document.createElement(t);return e&&(r.className=e||""),n&&n.appendChild(r),r}function h(t){var e=t.parentNode;e&&e.removeChild(t)}function f(t,e){if(void 0!==t.classList)for(var n=l(e),r=0,i=n.length;r<i;r++)t.classList.add(n[r]);else if(!p(t,e)){var o=v(t);g(t,(o?o+" ":"")+e)}}function d(t,e){void 0!==t.classList?t.classList.remove(e):g(t,u((" "+v(t)+" ").replace(" "+e+" "," ")))}function p(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=v(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function g(t,e){t instanceof HTMLElement?t.className=e:t.className.baseVal=e}function v(t){return t instanceof SVGElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function m(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}var y=function(t){var e,n,r=null===a.$window||void 0===a.$window||null===(e=a.$window.document)||void 0===e||null===(n=e.documentElement)||void 0===n?void 0:n.style;if(!r)return t[0];for(var i in t)if(t[i]&&t[i]in r)return t[i];return t[0]}(["transform","WebkitTransform"]);function b(t,e){t.style[y]=e}function _(){if("function"==typeof Event)a.$window.dispatchEvent(new Event("resize"));else{var t=a.$window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,a.$window,0),a.$window.dispatchEvent(t)}}function x(t){var e=["padding: "+(t.height/2-8)+"px "+t.width/2+"px;","line-height: "+t.height+"px;","background-image: url("+t.toDataURL()+");"];console.log("%c\n",e.join(""))}function w(){var t,e=a.$window.document.querySelector('meta[name="viewport"]');if(!e)return 1;var n=(null===(t=e.content)||void 0===t?void 0:t.split(",")).find((function(t){var e=t.split("=");return"initial-scale"===Object(i.default)(e,1)[0]}));return n?1*n.split("=")[1]:1}var O=w()<1?1:a.$window.devicePixelRatio;function S(t,e){t.setAttribute("style","".concat(t.style.cssText).concat(e))}function C(t){return t.split(";").map((function(t){return t.trim()})).filter((function(t){return t}))}function E(t,e){var n,i=C(null!==(n=t.getAttribute("style"))&&void 0!==n?n:""),a=C(e),s=o.pull.apply(void 0,[i].concat(Object(r.default)(a)));t.setAttribute("style",s.join(";"))}function T(t){return Object.entries(t).map((function(t){var e=Object(i.default)(t,2),n=e[0],r=e[1];return"".concat(n,": ").concat(r)})).join(";")}function A(t,e){return{left:t.left-e.left,top:t.top-e.top,right:e.left+e.width-t.left-t.width,bottom:e.top+e.height-t.top-t.height}}function M(t,e){t.checked=e,e?t.setAttribute("checked","true"):t.removeAttribute("checked")}function I(t){t.innerHTML=""}function j(t){t.setAttribute("draggable","false")}},function(t,e,n){"use strict";n.r(e);var r=n(1282);n.d(e,"dispatchTouchStart",(function(){return r.dispatchTouchStart})),n.d(e,"dispatchTouchMove",(function(){return r.dispatchTouchMove})),n.d(e,"dispatchTouchEnd",(function(){return r.dispatchTouchEnd})),n.d(e,"dispatchMapCameraParams",(function(){return r.dispatchMapCameraParams}));var i=n(1283);n.d(e,"dispatchPointerDown",(function(){return i.dispatchPointerDown})),n.d(e,"dispatchPointerMove",(function(){return i.dispatchPointerMove})),n.d(e,"dispatchPointerUp",(function(){return i.dispatchPointerUp}));var o=n(1284);n.d(e,"dispatchMouseDown",(function(){return o.dispatchMouseDown})),n.d(e,"dispatchMouseMove",(function(){return o.dispatchMouseMove})),n.d(e,"dispatchMouseUp",(function(){return o.dispatchMouseUp}))},function(t,e,n){"use strict";n.r(e),n.d(e,"dispatchTouchStart",(function(){return v})),n.d(e,"dispatchTouchMove",(function(){return m})),n.d(e,"dispatchTouchEnd",(function(){return y})),n.d(e,"dispatchMapCameraParams",(function(){return b}));var r=n(20),i=n(19),o=n(61),a=n(63),s=n(32),u=n(279),l=n(327),c=n(253);function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(s.default)(t);if(e){var i=Object(s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.default)(this,n)}}var f=function(t){Object(o.default)(n,t);var e=h(n);function n(t){var r;return Object(i.default)(this,n),(r=e.call(this,t)).touches=[],r.targetTouches=[],r.changedTouches=[],r.target=Object(c.getCanvas)(),r.currentTarget=Object(c.getCanvas)(),r}return Object(r.default)(n)}(l.Event);function d(t){var e=t||{},n=e.x,r=void 0===n?0:n,i=e.y,o=void 0===i?0:i,a=e.clientX,s=void 0===a?0:a,u=e.clientY,l=void 0===u?0:u;-1!==Object.keys(t).indexOf("x")?(t.pageX=t.clientX=r,t.pageY=t.clientY=o):(t.x=s,t.y=l)}function p(t){return function(e){var n=new f(t);n.changedTouches=e.changedTouches,n.touches=e.touches,n.targetTouches=Array.prototype.slice.call(e.touches),n.timeStamp=e.timeStamp,n.changedTouches.forEach((function(t){return d(t)})),n.touches.forEach((function(t){return d(t)})),n.targetTouches.forEach((function(t){return d(t)})),u.$document.dispatchEvent(n)}}var g,v=p("touchstart"),m=p("touchmove"),y=p("touchend"),b=(g="mapCameaParams",function(t){t.type=g,u.$document.dispatchEvent(t)})},function(t,e,n){"use strict";n.r(e),n.d(e,"dispatchPointerDown",(function(){return _})),n.d(e,"dispatchPointerMove",(function(){return x})),n.d(e,"dispatchPointerUp",(function(){return w}));var r=n(20),i=n(19),o=n(61),a=n(63),s=n(32),u=n(279),l=n(327),c=n(253);function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(s.default)(t);if(e){var i=Object(s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.default)(this,n)}}var f=function(t){Object(o.default)(n,t);var e=h(n);function n(t){var r;return Object(i.default)(this,n),(r=e.call(this,t)).target=Object(c.getCanvas)(),r.currentTarget=Object(c.getCanvas)(),r}return Object(r.default)(n)}(l.Event),d=["bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pointerId","width","height","pressure","tiltX","tiltY","pointerType","hwTimestamp","isPrimary","pageX","pageY","timeStamp"],p=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1,0,0,0];function g(t,e,n){for(var r=new f(t),i=0;i<d.length;i++){var o=d[i];r[o]=e[o]||p[i]}return r.type=t,r.target=Object(c.getCanvas)(),r.currentTarget=Object(c.getCanvas)(),r.buttons=function(t){var e=0;"touchstart"!==t&&"touchmove"!==t&&"pointerdown"!==t&&"pointermove"!==t||(e=1);return e}(t),r.which=r.buttons,r.pointerId=(e.identifier||0)+2,r.bubbles=!0,r.cancelable=!0,r.button=0,r.width=2*(e.radiusX||.5),r.height=2*(e.radiusY||.5),r.pressure=e.force||.5,r.isPrimary=function(t){return v===t.identifier}(e),r.pointerType="touch",r.altKey=n.altKey,r.ctrlKey=n.ctrlKey,r.metaKey=n.metaKey,r.shiftKey=n.shiftKey,n.preventDefault&&(r.preventDefault=function(){n.preventDefault()}),r}var v=null;function m(t){null===v&&(v=t.identifier)}function y(t){v===t.identifier&&(v=null)}function b(t){return function(e){for(var n=e.changedTouches,r=0;r<n.length;r++){var i=n[r];0===r&&"pointerdown"===t?m(i):"pointerup"!==t&&"pointercancel"!==t||y(i);var o=g(t,i,e);u.$document.dispatchEvent(o)}}}var _=b("pointerdown"),x=b("pointermove"),w=b("pointerup")},function(t,e,n){"use strict";n.r(e),n.d(e,"dispatchMouseDown",(function(){return h})),n.d(e,"dispatchMouseMove",(function(){return f})),n.d(e,"dispatchMouseUp",(function(){return d}));var r=n(20),i=n(19),o=n(61),a=n(63),s=n(32),u=n(279);function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(s.default)(t);if(e){var i=Object(s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.default)(this,n)}}n(327).Event;function c(t){return function(e){e.type=t,u.$document.dispatchEvent(e)}}var h=c("mousedown"),f=c("mousemove"),d=c("mouseup")},function(t,e,n){"use strict";function r(t){if(0===t.length)throw new Error("max requires at least one data point");for(var e=t[0],n=1;n<t.length;n++)t[n]>e&&(e=t[n]);return 1*e}function i(t){if(0===t.length)throw new Error("min requires at least one data point");for(var e=t[0],n=1;n<t.length;n++)t[n]<e&&(e=t[n]);return 1*e}function o(t){if(0===t.length)return 0;for(var e=1*t[0],n=1;n<t.length;n++)e+=1*t[n];return e}function a(t){if(0===t.length)throw new Error("mean requires at least one data point");return o(t)/t.length}function s(t){if(0===t.length)throw new Error("mean requires at least one data point");if(t.length<3)return t[0];t.sort();for(var e=t[0],n=NaN,r=0,i=1,o=1;o<t.length+1;o++)t[o]!==e?(i>r&&(r=i,n=e),i=1,e=t[o]):i++;return 1*n}n.r(e),n.d(e,"sum",(function(){return o})),n.d(e,"max",(function(){return r})),n.d(e,"min",(function(){return i})),n.d(e,"mean",(function(){return a})),n.d(e,"mode",(function(){return s})),n.d(e,"statMap",(function(){return u})),n.d(e,"getColumn",(function(){return l})),n.d(e,"getSatByColumn",(function(){return c}));var u={min:i,max:r,mean:a,sum:o,mode:s};function l(t,e){return t.map((function(t){return t[e]}))}function c(t,e){return u[t](e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"AJAXError",(function(){return f})),n.d(e,"makeXMLHttpRequestPromise",(function(){return p})),n.d(e,"getJSON",(function(){return v})),n.d(e,"getArrayBuffer",(function(){return m})),n.d(e,"postData",(function(){return y})),n.d(e,"sameOrigin",(function(){return b})),n.d(e,"getImage",(function(){return x}));var r=n(204),i=n(20),o=n(19),a=n(61),s=n(63),u=n(32),l=n(1840),c=n(135);function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(u.default)(t);if(e){var i=Object(u.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.default)(this,n)}}var f=function(t){Object(a.default)(n,t);var e=h(n);function n(t,r,i,a){var s;return Object(o.default)(this,n),(s=e.call(this,"AJAXError: ".concat(r," (").concat(t,"): ").concat(i))).status=t,s.statusText=r,s.url=i,s.body=a,s}return Object(i.default)(n)}(Object(l.default)(Error));function d(t,e){var n=new c.$XMLHttpRequest,r=Array.isArray(t.url)?t.url[0]:t.url;for(var i in n.open(t.method||"GET",r,!0),"arrayBuffer"===t.type&&(n.responseType="arraybuffer"),t.headers)t.headers.hasOwnProperty(i)&&n.setRequestHeader(i,t.headers[i]);return"json"===t.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===t.credentials,n.onerror=function(){e(new Error(n.statusText))},n.onload=function(){if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){var i=n.response;if("json"===t.type)try{i=JSON.parse(n.response)}catch(t){return e(t)}e(null,i,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"),n)}else{var o=new Blob([n.response],{type:n.getResponseHeader("Content-Type")});e(new f(n.status,n.statusText,r.toString(),o))}},n.send(t.body),n}function p(t){return new Promise((function(e,n){d(t,(function(t,r,i,o,a){t?n({err:t,data:null,xhr:a}):e({err:null,data:r,cacheControl:i,expires:o,xhr:a})}))}))}function g(t,e){return d(t,e)}var v=function(t,e){return g(Object(r.default)(Object(r.default)({},t),{},{type:"json"}),e)},m=function(t,e){return g(Object(r.default)(Object(r.default)({},t),{},{type:"arrayBuffer"}),e)},y=function(t,e){return g(Object(r.default)(Object(r.default)({},t),{},{method:"POST"}),e)};function b(t){var e=c.$window.document.createElement("a");return e.href=t,e.protocol===c.$window.document.location.protocol&&e.host===c.$window.document.location.host}var _="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";var x=function(t,e){return m(t,(function(t,n){if(t)e(t);else if(n){"function"==typeof createImageBitmap?function(t,e){var n=new Blob([new Uint8Array(t)],{type:"image/png"});createImageBitmap(n).then((function(t){e(null,t)})).catch((function(t){e(new Error("Could not load image because of ".concat(t.message,". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")))}))}(n,e):function(t,e){var n=new c.$window.Image,r=c.$window.URL||c.$window.webkitURL;n.crossOrigin="anonymous",n.onload=function(){e(null,n),r.revokeObjectURL(n.src),n.onload=null,window.requestAnimationFrame((function(){n.src=_}))},n.onerror=function(){return e(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var i=new Blob([new Uint8Array(t)],{type:"image/png"});n.src=t.byteLength?r.createObjectURL(i):_}(n,e)}}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"LRUCache",(function(){return o}));var r=n(19),i=n(20),o=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50,n=arguments.length>1?arguments[1]:void 0;Object(r.default)(this,t),this.limit=e,this.destroy=n||this.defaultDestroy,this.order=[],this.clear()}return Object(i.default)(t,[{key:"clear",value:function(){var t=this;this.order.forEach((function(e){t.delete(e)})),this.cache={},this.order=[]}},{key:"get",value:function(t){var e=this.cache[t];return e&&(this.deleteOrder(t),this.appendOrder(t)),e}},{key:"set",value:function(t,e){this.cache[t]?(this.delete(t),this.cache[t]=e,this.appendOrder(t)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[t]=e,this.appendOrder(t))}},{key:"delete",value:function(t){var e=this.cache[t];e&&(this.deleteCache(t),this.deleteOrder(t),this.destroy(e,t))}},{key:"deleteCache",value:function(t){delete this.cache[t]}},{key:"deleteOrder",value:function(t){var e=this.order.findIndex((function(e){return e===t}));e>=0&&this.order.splice(e,1)}},{key:"appendOrder",value:function(t){this.order.push(t)}},{key:"defaultDestroy",value:function(t,e){return null}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"bindAll",(function(){return a})),n.d(e,"FrequencyController",(function(){return s}));var r=n(19),i=n(20),o=n(52);function a(t,e){t.forEach((function(t){e[t]&&(e[t]=e[t].bind(e))}))}var s=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16;Object(r.default)(this,t),Object(o.default)(this,"duration",16),Object(o.default)(this,"timestamp",(new Date).getTime()),this.duration=e}return Object(i.default)(t,[{key:"run",value:function(t){var e=(new Date).getTime(),n=e-this.timestamp;this.timestamp=e,n>=this.duration&&t()}}]),t}()},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"anchorType",(function(){return r})),n.d(e,"anchorTranslate",(function(){return i})),n.d(e,"applyAnchorClass",(function(){return o})),function(t){t.CENTER="center",t.TOP="top",t["TOP-LEFT"]="top-left",t["TOP-RIGHT"]="top-right",t.BOTTOM="bottom",t["BOTTOM-LEFT"]="bottom-left",t["BOTTOM-RIGHT"]="bottom-right",t.LEFT="left",t.RIGHT="right"}(r||(r={}));var i={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function o(t,e,n){var r=t.classList;for(var o in i)i.hasOwnProperty(o)&&r.remove("l7-".concat(n,"-anchor-").concat(o));r.add("l7-".concat(n,"-anchor-").concat(e))}},function(t,e,n){"use strict";function r(t,e){return{enable:t,mask:255,func:{cmp:514,ref:e?1:0,mask:255}}}n.r(e),n.d(e,"getMask",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"setL7WorkerSource",(function(){return l})),n.d(e,"executeWorkerTask",(function(){return h}));var r=n(266),i=n(49),o=n.n(i),a=n(566),s=n(1293);n.d(e,"WorkerSourceMap",(function(){return s.WorkerSourceMap}));var u=n(944);function l(t){Object(u.registerWorkerSource)("l7-worker",t)}function c(){var t=Object(u.getWorkerSource)("l7-worker");if(!t)throw new Error("get worker failed by workerName: ".concat("l7-worker","."));return t}function h(t,e){return f.apply(this,arguments)}function f(){return(f=Object(r.default)(o.a.mark((function t(e,n){var r,i,s,u,l;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=c(),i=a.WorkerFarm.getWorkerFarm({maxConcurrency:3,reuseWorkers:!0}),s=i.getWorkerPool({name:"l7-worker",source:r}),t.next=5,s.startJob("l7-worker",(function(t,e,n){return t.done(n)}));case 5:return(u=t.sent).postMessage("process",{input:{workerType:e,data:n}}),t.next=9,u.result;case 9:return l=t.sent,t.abrupt("return",l.result);case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}l('var L7=function(t){"use strict";function e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function r(){r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),u=new T(n||[]);return o(a,"_invoke",{value:E(t,r,u)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function p(){}function v(){}function d(){}var y={};c(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(k([])));m&&m!==e&&n.call(m,a)&&(y=m);var x=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var r;o(this,"_invoke",{value:function(o,i){function a(){return new e((function(r,a){!function r(o,i,a,u){var s=l(t[o],t,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function E(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return I()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=A(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function A(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a \'throw\' method")}return h}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=d,o(x,"constructor",{value:d,configurable:!0}),o(d,"constructor",{value:v,configurable:!0}),v.displayName=c(d,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,s,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,u,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(x),c(x,s,"Generator"),c(x,a,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function n(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,s,"next",t)}function s(t){n(a,o,i,u,s,"throw",t)}u(void 0)}))}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function h(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}function p(t,e){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 h(t)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=f(t);if(e){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return p(this,r)}}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(t,e)||g(t,e)||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 y(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||g(t)||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 g(t,e){if(t){if("string"==typeof t)return m(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function b(t,e){return t(e={exports:{}},e.exports),e.exports}var w,E,A=function(t){return t&&t.Math==Math&&t},O=A("object"==typeof globalThis&&globalThis)||A("object"==typeof window&&window)||A("object"==typeof self&&self)||A("object"==typeof x&&x)||function(){return this}()||Function("return this")(),S=Object.defineProperty,T=function(t,e){try{S(O,t,{value:e,configurable:!0,writable:!0})}catch(r){O[t]=e}return e},k=O["__core-js_shared__"]||T("__core-js_shared__",{}),I=b((function(t){(t.exports=function(t,e){return k[t]||(k[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),j=function(t){try{return!!t()}catch(t){return!0}},P=!j((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),_=Function.prototype,M=_.call,L=P&&_.bind.bind(M,M),R=P?L:function(t){return function(){return M.apply(t,arguments)}},C=function(t){return null==t},N=TypeError,D=function(t){if(C(t))throw N("Can\'t call method on "+t);return t},F=Object,W=function(t){return F(D(t))},z=R({}.hasOwnProperty),B=Object.hasOwn||function(t,e){return z(W(t),e)},U=0,G=Math.random(),H=R(1..toString),V=function(t){return"Symbol("+(void 0===t?"":t)+")_"+H(++U+G,36)},q="object"==typeof document&&document.all,Z={all:q,IS_HTMLDDA:void 0===q&&void 0!==q},Y=Z.all,$=Z.IS_HTMLDDA?function(t){return"function"==typeof t||t===Y}:function(t){return"function"==typeof t},K=function(t){return $(t)?t:void 0},Q=function(t,e){return arguments.length<2?K(O[t]):O[t]&&O[t][e]},X=Q("navigator","userAgent")||"",J=O.process,tt=O.Deno,et=J&&J.versions||tt&&tt.version,rt=et&&et.v8;rt&&(E=(w=rt.split("."))[0]>0&&w[0]<4?1:+(w[0]+w[1])),!E&&X&&(!(w=X.match(/Edge\\/(\\d+)/))||w[1]>=74)&&(w=X.match(/Chrome\\/(\\d+)/))&&(E=+w[1]);var nt=E,ot=!!Object.getOwnPropertySymbols&&!j((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&nt&&nt<41})),it=ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=I("wks"),ut=O.Symbol,st=ut&&ut.for,ct=it?ut:ut&&ut.withoutSetter||V,ft=function(t){if(!B(at,t)||!ot&&"string"!=typeof at[t]){var e="Symbol."+t;ot&&B(ut,t)?at[t]=ut[t]:at[t]=it&&st?st(e):ct(e)}return at[t]},lt={};lt[ft("toStringTag")]="z";var ht="[object z]"===String(lt),pt=!j((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),vt=Z.all,dt=Z.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:$(t)||t===vt}:function(t){return"object"==typeof t?null!==t:$(t)},yt=O.document,gt=dt(yt)&&dt(yt.createElement),mt=function(t){return gt?yt.createElement(t):{}},xt=!pt&&!j((function(){return 7!=Object.defineProperty(mt("div"),"a",{get:function(){return 7}}).a})),bt=pt&&j((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),wt=String,Et=TypeError,At=function(t){if(dt(t))return t;throw Et(wt(t)+" is not an object")},Ot=Function.prototype.call,St=P?Ot.bind(Ot):function(){return Ot.apply(Ot,arguments)},Tt=R({}.isPrototypeOf),kt=Object,It=it?function(t){return"symbol"==typeof t}:function(t){var e=Q("Symbol");return $(e)&&Tt(e.prototype,kt(t))},jt=String,Pt=function(t){try{return jt(t)}catch(t){return"Object"}},_t=TypeError,Mt=function(t){if($(t))return t;throw _t(Pt(t)+" is not a function")},Lt=function(t,e){var r=t[e];return C(r)?void 0:Mt(r)},Rt=TypeError,Ct=TypeError,Nt=ft("toPrimitive"),Dt=function(t,e){if(!dt(t)||It(t))return t;var r,n=Lt(t,Nt);if(n){if(void 0===e&&(e="default"),r=St(n,t,e),!dt(r)||It(r))return r;throw Ct("Can\'t convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&$(r=t.toString)&&!dt(n=St(r,t)))return n;if($(r=t.valueOf)&&!dt(n=St(r,t)))return n;if("string"!==e&&$(r=t.toString)&&!dt(n=St(r,t)))return n;throw Rt("Can\'t convert object to primitive value")}(t,e)},Ft=function(t){var e=Dt(t,"string");return It(e)?e:e+""},Wt=TypeError,zt=Object.defineProperty,Bt=Object.getOwnPropertyDescriptor,Ut={f:pt?bt?function(t,e,r){if(At(t),e=Ft(e),At(r),"function"==typeof t&&"prototype"===e&&"value"in r&&"writable"in r&&!r.writable){var n=Bt(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return zt(t,e,r)}:zt:function(t,e,r){if(At(t),e=Ft(e),At(r),xt)try{return zt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Wt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Gt=Function.prototype,Ht=pt&&Object.getOwnPropertyDescriptor,Vt=B(Gt,"name"),qt={EXISTS:Vt,PROPER:Vt&&"something"===function(){}.name,CONFIGURABLE:Vt&&(!pt||pt&&Ht(Gt,"name").configurable)},Zt=R(Function.toString);$(k.inspectSource)||(k.inspectSource=function(t){return Zt(t)});var Yt,$t,Kt,Qt=k.inspectSource,Xt=O.WeakMap,Jt=$(Xt)&&/native code/.test(String(Xt)),te=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ee=pt?function(t,e,r){return Ut.f(t,e,te(1,r))}:function(t,e,r){return t[e]=r,t},re=I("keys"),ne=function(t){return re[t]||(re[t]=V(t))},oe={},ie=O.TypeError,ae=O.WeakMap;if(Jt||k.state){var ue=k.state||(k.state=new ae);ue.get=ue.get,ue.has=ue.has,ue.set=ue.set,Yt=function(t,e){if(ue.has(t))throw ie("Object already initialized");return e.facade=t,ue.set(t,e),e},$t=function(t){return ue.get(t)||{}},Kt=function(t){return ue.has(t)}}else{var se=ne("state");oe[se]=!0,Yt=function(t,e){if(B(t,se))throw ie("Object already initialized");return e.facade=t,ee(t,se,e),e},$t=function(t){return B(t,se)?t[se]:{}},Kt=function(t){return B(t,se)}}var ce={set:Yt,get:$t,has:Kt,enforce:function(t){return Kt(t)?$t(t):Yt(t,{})},getterFor:function(t){return function(e){var r;if(!dt(e)||(r=$t(e)).type!==t)throw ie("Incompatible receiver, "+t+" required");return r}}},fe=b((function(t){var e=qt.CONFIGURABLE,r=ce.enforce,n=ce.get,o=Object.defineProperty,i=pt&&!j((function(){return 8!==o((function(){}),"length",{value:8}).length})),a=String(String).split("String"),u=t.exports=function(t,n,u){"Symbol("===String(n).slice(0,7)&&(n="["+String(n).replace(/^Symbol\\(([^)]*)\\)/,"$1")+"]"),u&&u.getter&&(n="get "+n),u&&u.setter&&(n="set "+n),(!B(t,"name")||e&&t.name!==n)&&(pt?o(t,"name",{value:n,configurable:!0}):t.name=n),i&&u&&B(u,"arity")&&t.length!==u.arity&&o(t,"length",{value:u.arity});try{u&&B(u,"constructor")&&u.constructor?pt&&o(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var s=r(t);return B(s,"source")||(s.source=a.join("string"==typeof n?n:"")),t};Function.prototype.toString=u((function(){return $(this)&&n(this).source||Qt(this)}),"toString")})),le=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if($(r)&&fe(r,i,n),n.global)o?t[e]=r:T(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Ut.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},he=R({}.toString),pe=R("".slice),ve=function(t){return pe(he(t),8,-1)},de=ft("toStringTag"),ye=Object,ge="Arguments"==ve(function(){return arguments}()),me=ht?ve:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=ye(t),de))?r:ge?ve(e):"Object"==(n=ve(e))&&$(e.callee)?"Arguments":n},xe=ht?{}.toString:function(){return"[object "+me(this)+"]"};ht||le(Object.prototype,"toString",xe,{unsafe:!0});var be={}.propertyIsEnumerable,we=Object.getOwnPropertyDescriptor,Ee={f:we&&!be.call({1:2},1)?function(t){var e=we(this,t);return!!e&&e.enumerable}:be},Ae=Object,Oe=R("".split),Se=j((function(){return!Ae("z").propertyIsEnumerable(0)}))?function(t){return"String"==ve(t)?Oe(t,""):Ae(t)}:Ae,Te=function(t){return Se(D(t))},ke=Object.getOwnPropertyDescriptor,Ie={f:pt?ke:function(t,e){if(t=Te(t),e=Ft(e),xt)try{return ke(t,e)}catch(t){}if(B(t,e))return te(!St(Ee.f,t,e),t[e])}},je=Math.ceil,Pe=Math.floor,_e=Math.trunc||function(t){var e=+t;return(e>0?Pe:je)(e)},Me=function(t){var e=+t;return e!=e||0===e?0:_e(e)},Le=Math.max,Re=Math.min,Ce=function(t,e){var r=Me(t);return r<0?Le(r+e,0):Re(r,e)},Ne=Math.min,De=function(t){return t>0?Ne(Me(t),9007199254740991):0},Fe=function(t){return De(t.length)},We=function(t){return function(e,r,n){var o,i=Te(e),a=Fe(i),u=Ce(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},ze={includes:We(!0),indexOf:We(!1)},Be=ze.indexOf,Ue=R([].push),Ge=function(t,e){var r,n=Te(t),o=0,i=[];for(r in n)!B(oe,r)&&B(n,r)&&Ue(i,r);for(;e.length>o;)B(n,r=e[o++])&&(~Be(i,r)||Ue(i,r));return i},He=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ve=He.concat("length","prototype"),qe={f:Object.getOwnPropertyNames||function(t){return Ge(t,Ve)}},Ze={f:Object.getOwnPropertySymbols},Ye=R([].concat),$e=Q("Reflect","ownKeys")||function(t){var e=qe.f(At(t)),r=Ze.f;return r?Ye(e,r(t)):e},Ke=function(t,e,r){for(var n=$e(e),o=Ut.f,i=Ie.f,a=0;a<n.length;a++){var u=n[a];B(t,u)||r&&B(r,u)||o(t,u,i(e,u))}},Qe=/#|\\.prototype\\./,Xe=function(t,e){var r=tr[Je(t)];return r==rr||r!=er&&($(e)?j(e):!!e)},Je=Xe.normalize=function(t){return String(t).replace(Qe,".").toLowerCase()},tr=Xe.data={},er=Xe.NATIVE="N",rr=Xe.POLYFILL="P",nr=Xe,or=Ie.f,ir=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,c=t.stat;if(r=s?O:c?O[u]||T(u,{}):(O[u]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=or(r,n))&&a.value:r[n],!nr(s?n:u+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ke(i,o)}(t.sham||o&&o.sham)&&ee(i,"sham",!0),le(r,n,i,t)}},ar="process"==ve(O.process),ur=String,sr=TypeError,cr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=R(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return At(r),function(t){if("object"==typeof t||$(t))return t;throw sr("Can\'t set "+ur(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),fr=Ut.f,lr=ft("toStringTag"),hr=function(t,e,r){t&&!r&&(t=t.prototype),t&&!B(t,lr)&&fr(t,lr,{configurable:!0,value:e})},pr=ft("species"),vr=function(t){var e=Q(t),r=Ut.f;pt&&e&&!e[pr]&&r(e,pr,{configurable:!0,get:function(){return this}})},dr=TypeError,yr=function(t,e){if(Tt(e,t))return t;throw dr("Incorrect invocation")},gr=function(){},mr=[],xr=Q("Reflect","construct"),br=/^\\s*(?:class|function)\\b/,wr=R(br.exec),Er=!br.exec(gr),Ar=function(t){if(!$(t))return!1;try{return xr(gr,mr,t),!0}catch(t){return!1}},Or=function(t){if(!$(t))return!1;switch(me(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Er||!!wr(br,Qt(t))}catch(t){return!0}};Or.sham=!0;var Sr,Tr,kr,Ir,jr=!xr||j((function(){var t;return Ar(Ar.call)||!Ar(Object)||!Ar((function(){t=!0}))||t}))?Or:Ar,Pr=TypeError,_r=function(t){if(jr(t))return t;throw Pr(Pt(t)+" is not a constructor")},Mr=ft("species"),Lr=function(t,e){var r,n=At(t).constructor;return void 0===n||C(r=At(n)[Mr])?e:_r(r)},Rr=Function.prototype,Cr=Rr.apply,Nr=Rr.call,Dr="object"==typeof Reflect&&Reflect.apply||(P?Nr.bind(Cr):function(){return Nr.apply(Cr,arguments)}),Fr=function(t){if("Function"===ve(t))return R(t)},Wr=Fr(Fr.bind),zr=function(t,e){return Mt(t),void 0===e?t:P?Wr(t,e):function(){return t.apply(e,arguments)}},Br=Q("document","documentElement"),Ur=R([].slice),Gr=TypeError,Hr=function(t,e){if(t<e)throw Gr("Not enough arguments");return t},Vr=/(?:ipad|iphone|ipod).*applewebkit/i.test(X),qr=O.setImmediate,Zr=O.clearImmediate,Yr=O.process,$r=O.Dispatch,Kr=O.Function,Qr=O.MessageChannel,Xr=O.String,Jr=0,tn={};try{Sr=O.location}catch(t){}var en=function(t){if(B(tn,t)){var e=tn[t];delete tn[t],e()}},rn=function(t){return function(){en(t)}},nn=function(t){en(t.data)},on=function(t){O.postMessage(Xr(t),Sr.protocol+"//"+Sr.host)};qr&&Zr||(qr=function(t){Hr(arguments.length,1);var e=$(t)?t:Kr(t),r=Ur(arguments,1);return tn[++Jr]=function(){Dr(e,void 0,r)},Tr(Jr),Jr},Zr=function(t){delete tn[t]},ar?Tr=function(t){Yr.nextTick(rn(t))}:$r&&$r.now?Tr=function(t){$r.now(rn(t))}:Qr&&!Vr?(Ir=(kr=new Qr).port2,kr.port1.onmessage=nn,Tr=zr(Ir.postMessage,Ir)):O.addEventListener&&$(O.postMessage)&&!O.importScripts&&Sr&&"file:"!==Sr.protocol&&!j(on)?(Tr=on,O.addEventListener("message",nn,!1)):Tr="onreadystatechange"in mt("script")?function(t){Br.appendChild(mt("script")).onreadystatechange=function(){Br.removeChild(this),en(t)}}:function(t){setTimeout(rn(t),0)});var an,un,sn,cn,fn,ln,hn,pn,vn={set:qr,clear:Zr},dn=/ipad|iphone|ipod/i.test(X)&&void 0!==O.Pebble,yn=/web0s(?!.*chrome)/i.test(X),gn=Ie.f,mn=vn.set,xn=O.MutationObserver||O.WebKitMutationObserver,bn=O.document,wn=O.process,En=O.Promise,An=gn(O,"queueMicrotask"),On=An&&An.value;On||(an=function(){var t,e;for(ar&&(t=wn.domain)&&t.exit();un;){e=un.fn,un=un.next;try{e()}catch(t){throw un?cn():sn=void 0,t}}sn=void 0,t&&t.enter()},Vr||ar||yn||!xn||!bn?!dn&&En&&En.resolve?((hn=En.resolve(void 0)).constructor=En,pn=zr(hn.then,hn),cn=function(){pn(an)}):ar?cn=function(){wn.nextTick(an)}:(mn=zr(mn,O),cn=function(){mn(an)}):(fn=!0,ln=bn.createTextNode(""),new xn(an).observe(ln,{characterData:!0}),cn=function(){ln.data=fn=!fn}));var Sn=On||function(t){var e={fn:t,next:void 0};sn&&(sn.next=e),un||(un=e,cn()),sn=e},Tn=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},kn=function(){this.head=null,this.tail=null};kn.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var In,jn,Pn,_n=kn,Mn=O.Promise,Ln="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Rn=!Ln&&!ar&&"object"==typeof window&&"object"==typeof document,Cn=(Mn&&Mn.prototype,ft("species")),Nn=!1,Dn=$(O.PromiseRejectionEvent),Fn={CONSTRUCTOR:nr("Promise",(function(){var t=Qt(Mn),e=t!==String(Mn);if(!e&&66===nt)return!0;if(!nt||nt<51||!/native code/.test(t)){var r=new Mn((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[Cn]=n,!(Nn=r.then((function(){}))instanceof n))return!0}return!e&&(Rn||Ln)&&!Dn})),REJECTION_EVENT:Dn,SUBCLASSING:Nn},Wn=TypeError,zn=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw Wn("Bad Promise constructor");e=t,r=n})),this.resolve=Mt(e),this.reject=Mt(r)},Bn={f:function(t){return new zn(t)}},Un=vn.set,Gn=Fn.CONSTRUCTOR,Hn=Fn.REJECTION_EVENT,Vn=Fn.SUBCLASSING,qn=ce.getterFor("Promise"),Zn=ce.set,Yn=Mn&&Mn.prototype,$n=Mn,Kn=Yn,Qn=O.TypeError,Xn=O.document,Jn=O.process,to=Bn.f,eo=to,ro=!!(Xn&&Xn.createEvent&&O.dispatchEvent),no=function(t){var e;return!(!dt(t)||!$(e=t.then))&&e},oo=function(t,e){var r,n,o,i=e.value,a=1==e.state,u=a?t.ok:t.fail,s=t.resolve,c=t.reject,f=t.domain;try{u?(a||(2===e.rejection&&co(e),e.rejection=1),!0===u?r=i:(f&&f.enter(),r=u(i),f&&(f.exit(),o=!0)),r===t.promise?c(Qn("Promise-chain cycle")):(n=no(r))?St(n,r,s,c):s(r)):c(i)}catch(t){f&&!o&&f.exit(),c(t)}},io=function(t,e){t.notified||(t.notified=!0,Sn((function(){for(var r,n=t.reactions;r=n.get();)oo(r,t);t.notified=!1,e&&!t.rejection&&uo(t)})))},ao=function(t,e,r){var n,o;ro?((n=Xn.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),O.dispatchEvent(n)):n={promise:e,reason:r},!Hn&&(o=O["on"+t])?o(n):"unhandledrejection"===t&&function(t,e){var r=O.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))}("Unhandled promise rejection",r)},uo=function(t){St(Un,O,(function(){var e,r=t.facade,n=t.value;if(so(t)&&(e=Tn((function(){ar?Jn.emit("unhandledRejection",n,r):ao("unhandledrejection",r,n)})),t.rejection=ar||so(t)?2:1,e.error))throw e.value}))},so=function(t){return 1!==t.rejection&&!t.parent},co=function(t){St(Un,O,(function(){var e=t.facade;ar?Jn.emit("rejectionHandled",e):ao("rejectionhandled",e,t.value)}))},fo=function(t,e,r){return function(n){t(e,n,r)}},lo=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,io(t,!0))},ho=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Qn("Promise can\'t be resolved itself");var n=no(e);n?Sn((function(){var r={done:!1};try{St(n,e,fo(ho,r,t),fo(lo,r,t))}catch(e){lo(r,e,t)}})):(t.value=e,t.state=1,io(t,!1))}catch(e){lo({done:!1},e,t)}}};if(Gn&&(Kn=($n=function(t){yr(this,Kn),Mt(t),St(In,this);var e=qn(this);try{t(fo(ho,e),fo(lo,e))}catch(t){lo(e,t)}}).prototype,(In=function(t){Zn(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new _n,rejection:!1,state:0,value:void 0})}).prototype=le(Kn,"then",(function(t,e){var r=qn(this),n=to(Lr(this,$n));return r.parent=!0,n.ok=!$(t)||t,n.fail=$(e)&&e,n.domain=ar?Jn.domain:void 0,0==r.state?r.reactions.add(n):Sn((function(){oo(n,r)})),n.promise})),jn=function(){var t=new In,e=qn(t);this.promise=t,this.resolve=fo(ho,e),this.reject=fo(lo,e)},Bn.f=to=function(t){return t===$n||void 0===t?new jn(t):eo(t)},$(Mn)&&Yn!==Object.prototype)){Pn=Yn.then,Vn||le(Yn,"then",(function(t,e){var r=this;return new $n((function(t,e){St(Pn,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete Yn.constructor}catch(t){}cr&&cr(Yn,Kn)}ir({global:!0,constructor:!0,wrap:!0,forced:Gn},{Promise:$n}),hr($n,"Promise",!1),vr("Promise");var po={},vo=ft("iterator"),yo=Array.prototype,go=function(t){return void 0!==t&&(po.Array===t||yo[vo]===t)},mo=ft("iterator"),xo=function(t){if(!C(t))return Lt(t,mo)||Lt(t,"@@iterator")||po[me(t)]},bo=TypeError,wo=function(t,e){var r=arguments.length<2?xo(t):e;if(Mt(r))return At(St(r,t));throw bo(Pt(t)+" is not iterable")},Eo=function(t,e,r){var n,o;At(t);try{if(!(n=Lt(t,"return"))){if("throw"===e)throw r;return r}n=St(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return At(n),r},Ao=TypeError,Oo=function(t,e){this.stopped=t,this.result=e},So=Oo.prototype,To=function(t,e,r){var n,o,i,a,u,s,c,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),d=zr(e,f),y=function(t){return n&&Eo(n,"normal",t),new Oo(!0,t)},g=function(t){return l?(At(t),v?d(t[0],t[1],y):d(t[0],t[1])):v?d(t,y):d(t)};if(h)n=t.iterator;else if(p)n=t;else{if(!(o=xo(t)))throw Ao(Pt(t)+" is not iterable");if(go(o)){for(i=0,a=Fe(t);a>i;i++)if((u=g(t[i]))&&Tt(So,u))return u;return new Oo(!1)}n=wo(t,o)}for(s=h?t.next:n.next;!(c=St(s,n)).done;){try{u=g(c.value)}catch(t){Eo(n,"throw",t)}if("object"==typeof u&&u&&Tt(So,u))return u}return new Oo(!1)},ko=ft("iterator"),Io=!1;try{var jo=0,Po={next:function(){return{done:!!jo++}},return:function(){Io=!0}};Po[ko]=function(){return this},Array.from(Po,(function(){throw 2}))}catch(t){}var _o=function(t,e){if(!e&&!Io)return!1;var r=!1;try{var n={};n[ko]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Mo=Fn.CONSTRUCTOR||!_o((function(t){Mn.all(t).then(void 0,(function(){}))}));ir({target:"Promise",stat:!0,forced:Mo},{all:function(t){var e=this,r=Bn.f(e),n=r.resolve,o=r.reject,i=Tn((function(){var r=Mt(e.resolve),i=[],a=0,u=1;To(t,(function(t){var s=a++,c=!1;u++,St(r,e,t).then((function(t){c||(c=!0,i[s]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise}});var Lo=Fn.CONSTRUCTOR,Ro=Mn&&Mn.prototype;if(ir({target:"Promise",proto:!0,forced:Lo,real:!0},{catch:function(t){return this.then(void 0,t)}}),$(Mn)){var Co=Q("Promise").prototype.catch;Ro.catch!==Co&&le(Ro,"catch",Co,{unsafe:!0})}ir({target:"Promise",stat:!0,forced:Mo},{race:function(t){var e=this,r=Bn.f(e),n=r.reject,o=Tn((function(){var o=Mt(e.resolve);To(t,(function(t){St(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}}),ir({target:"Promise",stat:!0,forced:Fn.CONSTRUCTOR},{reject:function(t){var e=Bn.f(this);return St(e.reject,void 0,t),e.promise}});var No=Fn.CONSTRUCTOR;Q("Promise");function Do(t,e){if(!t)throw new Error(e||"web worker helper assertion failed.")}ir({target:"Promise",stat:!0,forced:No},{resolve:function(t){return function(t,e){if(At(t),dt(e)&&e.constructor===t)return e;var r=Bn.f(t);return(0,r.resolve)(e),r.promise}(this,t)}});var Fo="undefined"!=typeof window&&void 0!==window.orientation,Wo=function(){function t(t,e){var r=this;this.name=t,this.workerThread=e,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise((function(t,e){r.resolve=t,r.reject=e}))}return t.prototype.postMessage=function(t,e){this.workerThread.postMessage({source:"Main thread",type:t,payload:e})},t.prototype.done=function(t){Do(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(t)},t.prototype.error=function(t){Do(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(t)},t}(),zo=new Map;function Bo(t){Do(t.source&&!t.url||!t.source&&t.url);var e=zo.get(t.source||t.url);return e||(t.url&&(e=function(t){if(!t.startsWith("http"))return t;return Uo((e=t,"try {\\n importScripts(\'"+e+"\');\\n} catch (error) {\\n console.error(error);\\n throw error;\\n}"));var e}(t.url),zo.set(t.url,e)),t.source&&(e=Uo(t.source),zo.set(t.source,e))),Do(e),e}function Uo(t){var e=new Blob([t],{type:"application/javascript"});return URL.createObjectURL(e)}function Go(t,e,r){void 0===e&&(e=!0);var n=r||new Set;if(t){if(Ho(t))n.add(t);else if(Ho(t.buffer))n.add(t.buffer);else if(ArrayBuffer.isView(t));else if(e&&"object"==typeof t)for(var o in t)Go(t[o],e,n)}else;return void 0===r?Array.from(n):[]}function Ho(t){return!!t&&(t instanceof ArrayBuffer||("undefined"!=typeof MessagePort&&t instanceof MessagePort||("undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas)))}var Vo=function(){},qo=function(){function t(t){this.terminated=!1,this.loadableURL="";var e=t.name,r=t.source,n=t.url;Do(r||n),this.name=e,this.source=r,this.url=n,this.onMessage=Vo,this.onError=function(t){return console.log(t)},this.worker=this.createBrowserWorker()}return t.isSupported=function(){return"undefined"!=typeof Worker},t.prototype.destroy=function(){this.onMessage=Vo,this.onError=Vo,this.worker.terminate(),this.terminated=!0},Object.defineProperty(t.prototype,"isRunning",{get:function(){return Boolean(this.onMessage)},enumerable:!1,configurable:!0}),t.prototype.postMessage=function(t,e){e=e||Go(t),this.worker.postMessage(t,e)},t.prototype.getErrorFromErrorEvent=function(t){var e="Failed to load ";return e+="worker "+this.name+" from "+this.url+". ",t.message&&(e+=t.message+" in "),t.lineno&&(e+=":"+t.lineno+":"+t.colno),new Error(e)},t.prototype.createBrowserWorker=function(){var t=this;this.loadableURL=Bo({source:this.source,url:this.url});var e=new Worker(this.loadableURL,{name:this.name});return e.onmessage=function(e){e.data?t.onMessage(e.data):t.onError(new Error("No data received"))},e.onerror=function(e){t.onError(t.getErrorFromErrorEvent(e)),t.terminated=!0},e.onmessageerror=function(e){return console.error("worker "+t.name+", message error: "+e)},e},t}(),Zo=self&&self.__assign||function(){return(Zo=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Yo=self&&self.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function u(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},$o=self&&self.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},Ko=function(){function t(t){this.name="unnamed",this.maxConcurrency=1,this.maxMobileConcurrency=1,this.onDebug=function(){},this.reuseWorkers=!0,this.props={},this.jobQueue=[],this.idleQueue=[],this.count=0,this.isDestroyed=!1,this.source=t.source,this.url=t.url,this.setProps(t)}return t.prototype.destroy=function(){this.idleQueue.forEach((function(t){return t.destroy()})),this.isDestroyed=!0},t.prototype.setProps=function(t){this.props=Zo(Zo({},this.props),t),void 0!==t.name&&(this.name=t.name),void 0!==t.maxConcurrency&&(this.maxConcurrency=t.maxConcurrency),void 0!==t.maxMobileConcurrency&&(this.maxMobileConcurrency=t.maxMobileConcurrency),void 0!==t.reuseWorkers&&(this.reuseWorkers=t.reuseWorkers),void 0!==t.onDebug&&(this.onDebug=t.onDebug)},t.prototype.startJob=function(t,e,r){return void 0===e&&(e=function(t,e,r){return t.done(r)}),void 0===r&&(r=function(t,e){return t.error(e)}),Yo(this,void 0,void 0,(function(){var n,o=this;return $o(this,(function(i){switch(i.label){case 0:return n=new Promise((function(n){return o.jobQueue.push({name:t,onMessage:e,onError:r,onStart:n}),o})),this.startQueuedJob(),[4,n];case 1:return[2,i.sent()]}}))}))},t.prototype.startQueuedJob=function(){return Yo(this,void 0,void 0,(function(){var t,e,r;return $o(this,(function(n){switch(n.label){case 0:if(!this.jobQueue.length)return[2];if(!(t=this.getAvailableWorker()))return[2];if(!(e=this.jobQueue.shift()))return[3,4];this.onDebug({message:"Starting job",name:e.name,backlog:this.jobQueue.length,workerThread:t}),r=new Wo(e.name,t),t.onMessage=function(t){return e.onMessage(r,t.type,t.payload)},t.onError=function(t){return e.onError(r,t)},e.onStart(r),n.label=1;case 1:return n.trys.push([1,,3,4]),[4,r.result];case 2:return n.sent(),[3,4];case 3:return this.returnWorkerToQueue(t),[7];case 4:return[2]}}))}))},t.prototype.returnWorkerToQueue=function(t){this.isDestroyed||!this.reuseWorkers||this.count>this.getMaxConcurrency()?(t.destroy(),this.count--):this.idleQueue.push(t),this.isDestroyed||this.startQueuedJob()},t.prototype.getAvailableWorker=function(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count<this.getMaxConcurrency()){this.count++;var t=this.name.toLowerCase()+" (#"+this.count+" of "+this.maxConcurrency+")";return new qo({name:t,source:this.source,url:this.url})}return null},t.prototype.getMaxConcurrency=function(){return Fo?this.maxMobileConcurrency:this.maxConcurrency},t}(),Qo=self&&self.__assign||function(){return(Qo=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Xo=self&&self.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Jo={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},ti=(function(){function t(t){this.workerPools=new Map,this.props=Qo({},Jo),this.setProps(t),this.workerPools=new Map}t.isSupported=function(){return qo.isSupported()},t.getWorkerFarm=function(e){return void 0===e&&(e={}),t.workerFarm=t.workerFarm||new t({}),t.workerFarm.setProps(e),t.workerFarm},t.prototype.destroy=function(){var t,e;try{for(var r=Xo(this.workerPools.values()),n=r.next();!n.done;n=r.next()){n.value.destroy()}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},t.prototype.setProps=function(t){var e,r;this.props=Qo(Qo({},this.props),t);try{for(var n=Xo(this.workerPools.values()),o=n.next();!o.done;o=n.next()){o.value.setProps(this.getWorkerPoolProps())}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},t.prototype.getWorkerPool=function(t){var e=t.name,r=t.source,n=t.url,o=this.workerPools.get(e);return o||((o=new Ko({name:e,source:r,url:n})).setProps(this.getWorkerPoolProps()),this.workerPools.set(e,o)),o},t.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}}}(),new Map),ei=function(){function t(){}return Object.defineProperty(t,"onmessage",{set:function(t){self.onmessage=function(e){if(ri(e)){var r=e.data,n=r.type,o=r.payload;t(n,o)}}},enumerable:!1,configurable:!0}),t.addEventListener=function(t){var e=ti.get(t);e||(e=function(e){if(ri(e)){var r=e.data,n=r.type,o=r.payload;t(n,o)}}),self.addEventListener("message",e)},t.removeEventListener=function(t){var e=ti.get(t);ti.delete(t),self.removeEventListener("message",e)},t.postMessage=function(t,e){if(self){var r={source:"Worker thread",type:t,payload:e},n=Go(e);self.postMessage(r,n)}},t}();function ri(t){var e=t.type,r=t.data;return"message"===e&&r&&"string"==typeof r.source&&"Main thread"===r.source}self&&self.__awaiter,self&&self.__generator;var ni,oi,ii=function(){function t(){this._values=[],this._settlers=[],this._closed=!1}return t.prototype[Symbol.asyncIterator]=function(){return this},t.prototype.push=function(t){return this.enqueue(t)},t.prototype.enqueue=function(t){if(this._closed)throw new Error("Closed");if(this._settlers.length>0){if(this._values.length>0)throw new Error("Illegal internal state");var e=this._settlers.shift();t instanceof Error?e.reject(t):e.resolve({value:t})}else this._values.push(t)},t.prototype.close=function(){for(;this._settlers.length>0;){this._settlers.shift().resolve({done:!0})}this._closed=!0},t.prototype.next=function(){var t=this;if(this._values.length>0){var e=this._values.shift();return e instanceof Error?Promise.reject(e):Promise.resolve({done:!1,value:e})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise((function(e,r){t._settlers.push({resolve:e,reject:r})}))},t}(),ai=self&&self.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function u(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},ui=self&&self.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},si=self&&self.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,o){(function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)})(n,o,(e=t[r](e)).done,e.value)}))}}},ci=0;function fi(t,e){var r=this;if("undefined"!=typeof self){var n={process:li};ei.onmessage=function(o,i){return ai(r,void 0,void 0,(function(){var r,a,u,s,c,f,l,h,p,v;return ui(this,(function(d){switch(d.label){case 0:switch(d.trys.push([0,19,,20]),o){case"process":return[3,1];case"process-in-batches":return[3,3];case"input-batch":return[3,16];case"input-done":return[3,17]}return[3,18];case 1:if(!t)throw new Error("Worker does not support atomic processing");return[4,t(i.input,i.options||{},n)];case 2:return r=d.sent(),ei.postMessage("done",{result:r}),[3,18];case 3:if(!e)throw new Error("Worker does not support batched processing");ni=new ii,oi=i.options||{},a=e(ni,oi,n),d.label=4;case 4:d.trys.push([4,9,10,15]),u=si(a),d.label=5;case 5:return[4,u.next()];case 6:if((s=d.sent()).done)return[3,8];c=s.value,ei.postMessage("output-batch",{result:c}),d.label=7;case 7:return[3,5];case 8:return[3,15];case 9:return f=d.sent(),p={error:f},[3,15];case 10:return d.trys.push([10,,13,14]),s&&!s.done&&(v=u.return)?[4,v.call(u)]:[3,12];case 11:d.sent(),d.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];case 14:return[7];case 15:return ei.postMessage("done",{}),[3,18];case 16:return ni.push(i.input),[3,18];case 17:return ni.close(),[3,18];case 18:return[3,20];case 19:return l=d.sent(),h=l instanceof Error?l.message:"",ei.postMessage("error",{error:h}),[3,20];case 20:return[2]}}))}))}}}function li(t,e){return void 0===e&&(e={}),new Promise((function(r,n){var o=ci++,i=function(t,e){if(e.id===o)switch(t){case"done":ei.removeEventListener(i),r(e.result);break;case"error":ei.removeEventListener(i),n(e.error)}};ei.addEventListener(i);var a={id:o,input:t,options:e};ei.postMessage("process",a)}))}self&&self.__awaiter,self&&self.__generator;var hi={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},pi=mt("span").classList,vi=pi&&pi.constructor&&pi.constructor.prototype,di=vi===Object.prototype?void 0:vi,yi=Array.isArray||function(t){return"Array"==ve(t)},gi=ft("species"),mi=Array,xi=function(t,e){return new(function(t){var e;return yi(t)&&(e=t.constructor,(jr(e)&&(e===mi||yi(e.prototype))||dt(e)&&null===(e=e[gi]))&&(e=void 0)),void 0===e?mi:e}(t))(0===e?0:e)},bi=R([].push),wi=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(s,c,f,l){for(var h,p,v=W(s),d=Se(v),y=zr(c,f),g=Fe(d),m=0,x=l||xi,b=e?x(s,g):r||a?x(s,0):void 0;g>m;m++)if((u||m in d)&&(p=y(h=d[m],m,v),t))if(e)b[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:bi(b,h)}else switch(t){case 4:return!1;case 7:bi(b,h)}return i?-1:n||o?o:b}},Ei={forEach:wi(0),map:wi(1),filter:wi(2),some:wi(3),every:wi(4),find:wi(5),findIndex:wi(6),filterReject:wi(7)},Ai=function(t,e){var r=[][t];return!!r&&j((function(){r.call(null,e||function(){return 1},1)}))},Oi=Ei.forEach,Si=Ai("forEach")?[].forEach:function(t){return Oi(this,t,arguments.length>1?arguments[1]:void 0)},Ti=function(t){if(t&&t.forEach!==Si)try{ee(t,"forEach",Si)}catch(e){t.forEach=Si}};for(var ki in hi)hi[ki]&&Ti(O[ki]&&O[ki].prototype);Ti(di);var Ii=function(t,e,r){var n=Ft(e);n in t?Ut.f(t,n,te(0,r)):t[n]=r},ji=ft("species"),Pi=function(t){return nt>=51||!j((function(){var e=[];return(e.constructor={})[ji]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},_i=Pi("slice"),Mi=ft("species"),Li=Array,Ri=Math.max;ir({target:"Array",proto:!0,forced:!_i},{slice:function(t,e){var r,n,o,i=Te(this),a=Fe(i),u=Ce(t,a),s=Ce(void 0===e?a:e,a);if(yi(i)&&(r=i.constructor,(jr(r)&&(r===Li||yi(r.prototype))||dt(r)&&null===(r=r[Mi]))&&(r=void 0),r===Li||void 0===r))return Ur(i,u,s);for(n=new(void 0===r?Li:r)(Ri(s-u,0)),o=0;u<s;u++,o++)u in i&&Ii(n,o,i[u]);return n.length=o,n}});var Ci=qt.EXISTS,Ni=Ut.f,Di=Function.prototype,Fi=R(Di.toString),Wi=/function\\b(?:\\s|\\/\\*[\\S\\s]*?\\*\\/|\\/\\/[^\\n\\r]*[\\n\\r]+)*([^\\s(/]*)/,zi=R(Wi.exec);pt&&!Ci&&Ni(Di,"name",{configurable:!0,get:function(){try{return zi(Wi,Fi(this))[1]}catch(t){return""}}});var Bi=Ei.map,Ui=Pi("map");ir({target:"Array",proto:!0,forced:!Ui},{map:function(t){return Bi(this,t,arguments.length>1?arguments[1]:void 0)}});var Gi,Hi=Object.keys||function(t){return Ge(t,He)},Vi={f:pt&&!bt?Object.defineProperties:function(t,e){At(t);for(var r,n=Te(e),o=Hi(e),i=o.length,a=0;i>a;)Ut.f(t,r=o[a++],n[r]);return t}},qi=ne("IE_PROTO"),Zi=function(){},Yi=function(t){return"<script>"+t+"<\\/script>"},$i=function(t){t.write(Yi("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ki=function(){try{Gi=new ActiveXObject("htmlfile")}catch(t){}var t,e;Ki="undefined"!=typeof document?document.domain&&Gi?$i(Gi):((e=mt("iframe")).style.display="none",Br.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Yi("document.F=Object")),t.close(),t.F):$i(Gi);for(var r=He.length;r--;)delete Ki.prototype[He[r]];return Ki()};oe[qi]=!0;var Qi=Object.create||function(t,e){var r;return null!==t?(Zi.prototype=At(t),r=new Zi,Zi.prototype=null,r[qi]=t):r=Ki(),void 0===e?r:Vi.f(r,e)},Xi=Ut.f,Ji=ft("unscopables"),ta=Array.prototype;null==ta[Ji]&&Xi(ta,Ji,{configurable:!0,value:Qi(null)});var ea,ra,na,oa=function(t){ta[Ji][t]=!0},ia=!j((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),aa=ne("IE_PROTO"),ua=Object,sa=ua.prototype,ca=ia?ua.getPrototypeOf:function(t){var e=W(t);if(B(e,aa))return e[aa];var r=e.constructor;return $(r)&&e instanceof r?r.prototype:e instanceof ua?sa:null},fa=ft("iterator"),la=!1;[].keys&&("next"in(na=[].keys())?(ra=ca(ca(na)))!==Object.prototype&&(ea=ra):la=!0),(!dt(ea)||j((function(){var t={};return ea[fa].call(t)!==t})))&&(ea={}),$(ea[fa])||le(ea,fa,(function(){return this}));var ha={IteratorPrototype:ea,BUGGY_SAFARI_ITERATORS:la},pa=ha.IteratorPrototype,va=function(){return this},da=qt.PROPER,ya=qt.CONFIGURABLE,ga=ha.IteratorPrototype,ma=ha.BUGGY_SAFARI_ITERATORS,xa=ft("iterator"),ba=function(){return this},wa=function(t,e,r,n,o,i,a){!function(t,e,r,n){var o=e+" Iterator";t.prototype=Qi(pa,{next:te(+!n,r)}),hr(t,o,!1),po[o]=va}(r,e,n);var u,s,c,f=function(t){if(t===o&&d)return d;if(!ma&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,v=p[xa]||p["@@iterator"]||o&&p[o],d=!ma&&v||f(o),y="Array"==e&&p.entries||v;if(y&&(u=ca(y.call(new t)))!==Object.prototype&&u.next&&(ca(u)!==ga&&(cr?cr(u,ga):$(u[xa])||le(u,xa,ba)),hr(u,l,!0)),da&&"values"==o&&v&&"values"!==v.name&&(ya?ee(p,"name","values"):(h=!0,d=function(){return St(v,this)})),o)if(s={values:f("values"),keys:i?d:f("keys"),entries:f("entries")},a)for(c in s)(ma||h||!(c in p))&&le(p,c,s[c]);else ir({target:e,proto:!0,forced:ma||h},s);return p[xa]!==d&&le(p,xa,d,{name:o}),po[e]=d,s},Ea=function(t,e){return{value:t,done:e}},Aa=Ut.f,Oa=ce.set,Sa=ce.getterFor("Array Iterator"),Ta=wa(Array,"Array",(function(t,e){Oa(this,{type:"Array Iterator",target:Te(t),index:0,kind:e})}),(function(){var t=Sa(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,Ea(void 0,!0)):Ea("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values"),ka=po.Arguments=po.Array;if(oa("keys"),oa("values"),oa("entries"),pt&&"values"!==ka.name)try{Aa(ka,"name",{value:"values"})}catch(t){}var Ia,ja,Pa,_a="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Ma=Ut.f,La=ce.enforce,Ra=ce.get,Ca=O.Int8Array,Na=Ca&&Ca.prototype,Da=O.Uint8ClampedArray,Fa=Da&&Da.prototype,Wa=Ca&&ca(Ca),za=Na&&ca(Na),Ba=Object.prototype,Ua=O.TypeError,Ga=ft("toStringTag"),Ha=V("TYPED_ARRAY_TAG"),Va=_a&&!!cr&&"Opera"!==me(O.opera),qa=!1,Za={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Ya={BigInt64Array:8,BigUint64Array:8},$a=function(t){var e=ca(t);if(dt(e)){var r=Ra(e);return r&&B(r,"TypedArrayConstructor")?r.TypedArrayConstructor:$a(e)}},Ka=function(t){if(!dt(t))return!1;var e=me(t);return B(Za,e)||B(Ya,e)};for(Ia in Za)(Pa=(ja=O[Ia])&&ja.prototype)?La(Pa).TypedArrayConstructor=ja:Va=!1;for(Ia in Ya)(Pa=(ja=O[Ia])&&ja.prototype)&&(La(Pa).TypedArrayConstructor=ja);if((!Va||!$(Wa)||Wa===Function.prototype)&&(Wa=function(){throw Ua("Incorrect invocation")},Va))for(Ia in Za)O[Ia]&&cr(O[Ia],Wa);if((!Va||!za||za===Ba)&&(za=Wa.prototype,Va))for(Ia in Za)O[Ia]&&cr(O[Ia].prototype,za);if(Va&&ca(Fa)!==za&&cr(Fa,za),pt&&!B(za,Ga))for(Ia in qa=!0,Ma(za,Ga,{get:function(){return dt(this)?this[Ha]:void 0}}),Za)O[Ia]&&ee(O[Ia],Ha,Ia);var Qa={NATIVE_ARRAY_BUFFER_VIEWS:Va,TYPED_ARRAY_TAG:qa&&Ha,aTypedArray:function(t){if(Ka(t))return t;throw Ua("Target is not a typed array")},aTypedArrayConstructor:function(t){if($(t)&&(!cr||Tt(Wa,t)))return t;throw Ua(Pt(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,r,n){if(pt){if(r)for(var o in Za){var i=O[o];if(i&&B(i.prototype,t))try{delete i.prototype[t]}catch(r){try{i.prototype[t]=e}catch(t){}}}za[t]&&!r||le(za,t,r?e:Va&&Na[t]||e,n)}},exportTypedArrayStaticMethod:function(t,e,r){var n,o;if(pt){if(cr){if(r)for(n in Za)if((o=O[n])&&B(o,t))try{delete o[t]}catch(t){}if(Wa[t]&&!r)return;try{return le(Wa,t,r?e:Va&&Wa[t]||e)}catch(t){}}for(n in Za)!(o=O[n])||o[t]&&!r||le(o,t,e)}},getTypedArrayConstructor:$a,isView:function(t){if(!dt(t))return!1;var e=me(t);return"DataView"===e||B(Za,e)||B(Ya,e)},isTypedArray:Ka,TypedArray:Wa,TypedArrayPrototype:za},Xa=Qa.NATIVE_ARRAY_BUFFER_VIEWS,Ja=O.ArrayBuffer,tu=O.Int8Array,eu=!Xa||!j((function(){tu(1)}))||!j((function(){new tu(-1)}))||!_o((function(t){new tu,new tu(null),new tu(1.5),new tu(t)}),!0)||j((function(){return 1!==new tu(new Ja(2),1,void 0).length})),ru=function(t,e,r){for(var n in e)le(t,n,e[n],r);return t},nu=RangeError,ou=function(t){if(void 0===t)return 0;var e=Me(t),r=De(e);if(e!==r)throw nu("Wrong length or index");return r},iu=Array,au=Math.abs,uu=Math.pow,su=Math.floor,cu=Math.log,fu=Math.LN2,lu=function(t,e,r){var n,o,i,a=iu(r),u=8*r-e-1,s=(1<<u)-1,c=s>>1,f=23===e?uu(2,-24)-uu(2,-77):0,l=t<0||0===t&&1/t<0?1:0,h=0;for((t=au(t))!=t||t===1/0?(o=t!=t?1:0,n=s):(n=su(cu(t)/fu),t*(i=uu(2,-n))<1&&(n--,i*=2),(t+=n+c>=1?f/i:f*uu(2,1-c))*i>=2&&(n++,i/=2),n+c>=s?(o=0,n=s):n+c>=1?(o=(t*i-1)*uu(2,e),n+=c):(o=t*uu(2,c-1)*uu(2,e),n=0));e>=8;)a[h++]=255&o,o/=256,e-=8;for(n=n<<e|o,u+=e;u>0;)a[h++]=255&n,n/=256,u-=8;return a[--h]|=128*l,a},hu=function(t,e){var r,n=t.length,o=8*n-e-1,i=(1<<o)-1,a=i>>1,u=o-7,s=n-1,c=t[s--],f=127&c;for(c>>=7;u>0;)f=256*f+t[s--],u-=8;for(r=f&(1<<-u)-1,f>>=-u,u+=e;u>0;)r=256*r+t[s--],u-=8;if(0===f)f=1-a;else{if(f===i)return r?NaN:c?-1/0:1/0;r+=uu(2,e),f-=a}return(c?-1:1)*r*uu(2,f-e)},pu=function(t){for(var e=W(this),r=Fe(e),n=arguments.length,o=Ce(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:Ce(i,r);a>o;)e[o++]=t;return e},vu=Array,du=Math.max,yu=function(t,e,r){for(var n=Fe(t),o=Ce(e,n),i=Ce(void 0===r?n:r,n),a=vu(du(i-o,0)),u=0;o<i;o++,u++)Ii(a,u,t[o]);return a.length=u,a},gu=qe.f,mu=Ut.f,xu=qt.PROPER,bu=qt.CONFIGURABLE,wu=ce.get,Eu=ce.set,Au=O.ArrayBuffer,Ou=Au,Su=Ou&&Ou.prototype,Tu=O.DataView,ku=Tu&&Tu.prototype,Iu=Object.prototype,ju=O.Array,Pu=O.RangeError,_u=R(pu),Mu=R([].reverse),Lu=lu,Ru=hu,Cu=function(t){return[255&t]},Nu=function(t){return[255&t,t>>8&255]},Du=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Fu=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},Wu=function(t){return Lu(t,23,4)},zu=function(t){return Lu(t,52,8)},Bu=function(t,e){mu(t.prototype,e,{get:function(){return wu(this)[e]}})},Uu=function(t,e,r,n){var o=ou(r),i=wu(t);if(o+e>i.byteLength)throw Pu("Wrong index");var a=wu(i.buffer).bytes,u=o+i.byteOffset,s=yu(a,u,u+e);return n?s:Mu(s)},Gu=function(t,e,r,n,o,i){var a=ou(r),u=wu(t);if(a+e>u.byteLength)throw Pu("Wrong index");for(var s=wu(u.buffer).bytes,c=a+u.byteOffset,f=n(+o),l=0;l<e;l++)s[c+l]=f[i?l:e-l-1]};if(_a){var Hu=xu&&"ArrayBuffer"!==Au.name;if(j((function(){Au(1)}))&&j((function(){new Au(-1)}))&&!j((function(){return new Au,new Au(1.5),new Au(NaN),1!=Au.length||Hu&&!bu})))Hu&&bu&&ee(Au,"name","ArrayBuffer");else{(Ou=function(t){return yr(this,Su),new Au(ou(t))}).prototype=Su;for(var Vu,qu=gu(Au),Zu=0;qu.length>Zu;)(Vu=qu[Zu++])in Ou||ee(Ou,Vu,Au[Vu]);Su.constructor=Ou}cr&&ca(ku)!==Iu&&cr(ku,Iu);var Yu=new Tu(new Ou(2)),$u=R(ku.setInt8);Yu.setInt8(0,2147483648),Yu.setInt8(1,2147483649),!Yu.getInt8(0)&&Yu.getInt8(1)||ru(ku,{setInt8:function(t,e){$u(this,t,e<<24>>24)},setUint8:function(t,e){$u(this,t,e<<24>>24)}},{unsafe:!0})}else Su=(Ou=function(t){yr(this,Su);var e=ou(t);Eu(this,{bytes:_u(ju(e),0),byteLength:e}),pt||(this.byteLength=e)}).prototype,ku=(Tu=function(t,e,r){yr(this,ku),yr(t,Su);var n=wu(t).byteLength,o=Me(e);if(o<0||o>n)throw Pu("Wrong offset");if(o+(r=void 0===r?n-o:De(r))>n)throw Pu("Wrong length");Eu(this,{buffer:t,byteLength:r,byteOffset:o}),pt||(this.buffer=t,this.byteLength=r,this.byteOffset=o)}).prototype,pt&&(Bu(Ou,"byteLength"),Bu(Tu,"buffer"),Bu(Tu,"byteLength"),Bu(Tu,"byteOffset")),ru(ku,{getInt8:function(t){return Uu(this,1,t)[0]<<24>>24},getUint8:function(t){return Uu(this,1,t)[0]},getInt16:function(t){var e=Uu(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Uu(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return Fu(Uu(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return Fu(Uu(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return Ru(Uu(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return Ru(Uu(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){Gu(this,1,t,Cu,e)},setUint8:function(t,e){Gu(this,1,t,Cu,e)},setInt16:function(t,e){Gu(this,2,t,Nu,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){Gu(this,2,t,Nu,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){Gu(this,4,t,Du,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){Gu(this,4,t,Du,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){Gu(this,4,t,Wu,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){Gu(this,8,t,zu,e,arguments.length>2?arguments[2]:void 0)}});hr(Ou,"ArrayBuffer"),hr(Tu,"DataView");var Ku={ArrayBuffer:Ou,DataView:Tu},Qu=Math.floor,Xu=Number.isInteger||function(t){return!dt(t)&&isFinite(t)&&Qu(t)===t},Ju=RangeError,ts=RangeError,es=function(t,e){var r=function(t){var e=Me(t);if(e<0)throw Ju("The argument can\'t be less than 0");return e}(t);if(r%e)throw ts("Wrong offset");return r},rs=R("".slice),ns=function(t){return"Big"===rs(me(t),0,3)},os=TypeError,is=function(t){var e=Dt(t,"number");if("number"==typeof e)throw os("Can\'t convert number to bigint");return BigInt(e)},as=Qa.aTypedArrayConstructor,us=function(t){var e,r,n,o,i,a,u,s,c=_r(this),f=W(t),l=arguments.length,h=l>1?arguments[1]:void 0,p=void 0!==h,v=xo(f);if(v&&!go(v))for(s=(u=wo(f,v)).next,f=[];!(a=St(s,u)).done;)f.push(a.value);for(p&&l>2&&(h=zr(h,arguments[2])),r=Fe(f),n=new(as(c))(r),o=ns(n),e=0;r>e;e++)i=p?h(f[e],e):f[e],n[e]=o?is(i):+i;return n},ss=function(t,e,r){var n,o;return cr&&$(n=e.constructor)&&n!==r&&dt(o=n.prototype)&&o!==r.prototype&&cr(t,o),t},cs=b((function(t){var e=qe.f,r=Ei.forEach,n=ce.get,o=ce.set,i=ce.enforce,a=Ut.f,u=Ie.f,s=Math.round,c=O.RangeError,f=Ku.ArrayBuffer,l=f.prototype,h=Ku.DataView,p=Qa.NATIVE_ARRAY_BUFFER_VIEWS,v=Qa.TYPED_ARRAY_TAG,d=Qa.TypedArray,y=Qa.TypedArrayPrototype,g=Qa.aTypedArrayConstructor,m=Qa.isTypedArray,x=function(t,e){g(t);for(var r=0,n=e.length,o=new t(n);n>r;)o[r]=e[r++];return o},b=function(t,e){a(t,e,{get:function(){return n(this)[e]}})},w=function(t){var e;return Tt(l,t)||"ArrayBuffer"==(e=me(t))||"SharedArrayBuffer"==e},E=function(t,e){return m(t)&&!It(e)&&e in t&&Xu(+e)&&e>=0},A=function(t,e){return e=Ft(e),E(t,e)?te(2,t[e]):u(t,e)},S=function(t,e,r){return e=Ft(e),!(E(t,e)&&dt(r)&&B(r,"value"))||B(r,"get")||B(r,"set")||r.configurable||B(r,"writable")&&!r.writable||B(r,"enumerable")&&!r.enumerable?a(t,e,r):(t[e]=r.value,t)};pt?(p||(Ie.f=A,Ut.f=S,b(y,"buffer"),b(y,"byteOffset"),b(y,"byteLength"),b(y,"length")),ir({target:"Object",stat:!0,forced:!p},{getOwnPropertyDescriptor:A,defineProperty:S}),t.exports=function(t,u,l){var g=t.match(/\\d+$/)[0]/8,b=t+(l?"Clamped":"")+"Array",E="get"+t,A="set"+t,S=O[b],T=S,k=T&&T.prototype,I={},j=function(t,e){a(t,e,{get:function(){return function(t,e){var r=n(t);return r.view[E](e*g+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var o=n(t);l&&(r=(r=s(r))<0?0:r>255?255:255&r),o.view[A](e*g+o.byteOffset,r,!0)}(this,e,t)},enumerable:!0})};p?eu&&(T=u((function(t,e,r,n){return yr(t,k),ss(dt(e)?w(e)?void 0!==n?new S(e,es(r,g),n):void 0!==r?new S(e,es(r,g)):new S(e):m(e)?x(T,e):St(us,T,e):new S(ou(e)),t,T)})),cr&&cr(T,d),r(e(S),(function(t){t in T||ee(T,t,S[t])})),T.prototype=k):(T=u((function(t,e,r,n){yr(t,k);var i,a,u,s=0,l=0;if(dt(e)){if(!w(e))return m(e)?x(T,e):St(us,T,e);i=e,l=es(r,g);var p=e.byteLength;if(void 0===n){if(p%g)throw c("Wrong length");if((a=p-l)<0)throw c("Wrong length")}else if((a=De(n)*g)+l>p)throw c("Wrong length");u=a/g}else u=ou(e),i=new f(a=u*g);for(o(t,{buffer:i,byteOffset:l,byteLength:a,length:u,view:new h(i)});s<u;)j(t,s++)})),cr&&cr(T,d),k=T.prototype=Qi(y)),k.constructor!==T&&ee(k,"constructor",T),i(k).TypedArrayConstructor=T,v&&ee(k,v,b);var P=T!=S;I[b]=T,ir({global:!0,constructor:!0,forced:P,sham:!p},I),"BYTES_PER_ELEMENT"in T||ee(T,"BYTES_PER_ELEMENT",g),"BYTES_PER_ELEMENT"in k||ee(k,"BYTES_PER_ELEMENT",g),vr(b)}):t.exports=function(){}}));cs("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}),!0);var fs=TypeError,ls=function(t,e){if(!delete t[e])throw fs("Cannot delete property "+Pt(e)+" of "+Pt(t))},hs=Math.min,ps=R([].copyWithin||function(t,e){var r=W(this),n=Fe(r),o=Ce(t,n),i=Ce(e,n),a=arguments.length>2?arguments[2]:void 0,u=hs((void 0===a?n:Ce(a,n))-i,n-o),s=1;for(i<o&&o<i+u&&(s=-1,i+=u-1,o+=u-1);u-- >0;)i in r?r[o]=r[i]:ls(r,o),o+=s,i+=s;return r}),vs=Qa.aTypedArray;(0,Qa.exportTypedArrayMethod)("copyWithin",(function(t,e){return ps(vs(this),t,e,arguments.length>2?arguments[2]:void 0)}));var ds=Ei.every,ys=Qa.aTypedArray;(0,Qa.exportTypedArrayMethod)("every",(function(t){return ds(ys(this),t,arguments.length>1?arguments[1]:void 0)}));var gs=Qa.aTypedArray,ms=Qa.exportTypedArrayMethod,xs=R("".slice);ms("fill",(function(t){var e=arguments.length;gs(this);var r="Big"===xs(me(this),0,3)?is(t):+t;return St(pu,this,r,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),j((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})));var bs=Qa.aTypedArrayConstructor,ws=Qa.getTypedArrayConstructor,Es=function(t){return bs(Lr(t,ws(t)))},As=function(t,e){return function(t,e){for(var r=0,n=Fe(e),o=new t(n);n>r;)o[r]=e[r++];return o}(Es(t),e)},Os=Ei.filter,Ss=Qa.aTypedArray;(0,Qa.exportTypedArrayMethod)("filter",(function(t){var e=Os(Ss(this),t,arguments.length>1?arguments[1]:void 0);return As(this,e)}));var Ts=Ei.find,ks=Qa.aTypedArray;(0,Qa.exportTypedArrayMethod)("find",(function(t){return Ts(ks(this),t,arguments.length>1?arguments[1]:void 0)}));var Is=Ei.findIndex,js=Qa.aTypedArray;(0,Qa.exportTypedArrayMethod)("findIndex",(function(t){return Is(js(this),t,arguments.length>1?arguments[1]:void 0)}));var Ps=Ei.forEach,_s=Qa.aTypedArray;(0,Qa.exportTypedArrayMethod)("forEach",(function(t){Ps(_s(this),t,arguments.length>1?arguments[1]:void 0)}));var Ms=ze.includes,Ls=Qa.aTypedArray;(0,Qa.exportTypedArrayMethod)("includes",(function(t){return Ms(Ls(this),t,arguments.length>1?arguments[1]:void 0)}));var Rs=ze.indexOf,Cs=Qa.aTypedArray;(0,Qa.exportTypedArrayMethod)("indexOf",(function(t){return Rs(Cs(this),t,arguments.length>1?arguments[1]:void 0)}));var Ns=ft("iterator"),Ds=O.Uint8Array,Fs=R(Ta.values),Ws=R(Ta.keys),zs=R(Ta.entries),Bs=Qa.aTypedArray,Us=Qa.exportTypedArrayMethod,Gs=Ds&&Ds.prototype,Hs=!j((function(){Gs[Ns].call([1])})),Vs=!!Gs&&Gs.values&&Gs[Ns]===Gs.values&&"values"===Gs.values.name,qs=function(){return Fs(Bs(this))};Us("entries",(function(){return zs(Bs(this))}),Hs),Us("keys",(function(){return Ws(Bs(this))}),Hs),Us("values",qs,Hs||!Vs,{name:"values"}),Us(Ns,qs,Hs||!Vs,{name:"values"});var Zs=Qa.aTypedArray,Ys=Qa.exportTypedArrayMethod,$s=R([].join);Ys("join",(function(t){return $s(Zs(this),t)}));var Ks=Math.min,Qs=[].lastIndexOf,Xs=!!Qs&&1/[1].lastIndexOf(1,-0)<0,Js=Ai("lastIndexOf"),tc=Xs||!Js?function(t){if(Xs)return Dr(Qs,this,arguments)||0;var e=Te(this),r=Fe(e),n=r-1;for(arguments.length>1&&(n=Ks(n,Me(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}:Qs,ec=Qa.aTypedArray;(0,Qa.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return Dr(tc,ec(this),e>1?[t,arguments[1]]:[t])}));var rc=Ei.map,nc=Qa.aTypedArray;(0,Qa.exportTypedArrayMethod)("map",(function(t){return rc(nc(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(Es(t))(e)}))}));var oc=TypeError,ic=function(t){return function(e,r,n,o){Mt(r);var i=W(e),a=Se(i),u=Fe(i),s=t?u-1:0,c=t?-1:1;if(n<2)for(;;){if(s in a){o=a[s],s+=c;break}if(s+=c,t?s<0:u<=s)throw oc("Reduce of empty array with no initial value")}for(;t?s>=0:u>s;s+=c)s in a&&(o=r(o,a[s],s,i));return o}},ac={left:ic(!1),right:ic(!0)},uc=ac.left,sc=Qa.aTypedArray;(0,Qa.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return uc(sc(this),t,e,e>1?arguments[1]:void 0)}));var cc=ac.right,fc=Qa.aTypedArray;(0,Qa.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return cc(fc(this),t,e,e>1?arguments[1]:void 0)}));var lc=Qa.aTypedArray,hc=Qa.exportTypedArrayMethod,pc=Math.floor;hc("reverse",(function(){for(var t,e=lc(this).length,r=pc(e/2),n=0;n<r;)t=this[n],this[n++]=this[--e],this[e]=t;return this}));var vc=O.RangeError,dc=O.Int8Array,yc=dc&&dc.prototype,gc=yc&&yc.set,mc=Qa.aTypedArray,xc=Qa.exportTypedArrayMethod,bc=!j((function(){var t=new Uint8ClampedArray(2);return St(gc,t,{length:1,0:3},1),3!==t[1]})),wc=bc&&Qa.NATIVE_ARRAY_BUFFER_VIEWS&&j((function(){var t=new dc(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));xc("set",(function(t){mc(this);var e=es(arguments.length>1?arguments[1]:void 0,1),r=W(t);if(bc)return St(gc,this,r,e);var n=this.length,o=Fe(r),i=0;if(o+e>n)throw vc("Wrong length");for(;i<o;)this[e+i]=r[i++]}),!bc||wc);var Ec=Qa.aTypedArray;(0,Qa.exportTypedArrayMethod)("slice",(function(t,e){for(var r=Ur(Ec(this),t,e),n=Es(this),o=0,i=r.length,a=new n(i);i>o;)a[o]=r[o++];return a}),j((function(){new Int8Array(1).slice()})));var Ac=Ei.some,Oc=Qa.aTypedArray;(0,Qa.exportTypedArrayMethod)("some",(function(t){return Ac(Oc(this),t,arguments.length>1?arguments[1]:void 0)}));var Sc=Math.floor,Tc=function(t,e){var r=t.length,n=Sc(r/2);return r<8?kc(t,e):Ic(t,Tc(yu(t,0,n),e),Tc(yu(t,n),e),e)},kc=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},Ic=function(t,e,r,n){for(var o=e.length,i=r.length,a=0,u=0;a<o||u<i;)t[a+u]=a<o&&u<i?n(e[a],r[u])<=0?e[a++]:r[u++]:a<o?e[a++]:r[u++];return t},jc=Tc,Pc=X.match(/firefox\\/(\\d+)/i),_c=!!Pc&&+Pc[1],Mc=/MSIE|Trident/.test(X),Lc=X.match(/AppleWebKit\\/(\\d+)\\./),Rc=!!Lc&&+Lc[1],Cc=Qa.aTypedArray,Nc=Qa.exportTypedArrayMethod,Dc=O.Uint16Array,Fc=Dc&&Fr(Dc.prototype.sort),Wc=!(!Fc||j((function(){Fc(new Dc(2),null)}))&&j((function(){Fc(new Dc(2),{})}))),zc=!!Fc&&!j((function(){if(nt)return nt<74;if(_c)return _c<67;if(Mc)return!0;if(Rc)return Rc<602;var t,e,r=new Dc(516),n=Array(516);for(t=0;t<516;t++)e=t%4,r[t]=515-t,n[t]=t-2*e+3;for(Fc(r,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(r[t]!==n[t])return!0}));Nc("sort",(function(t){return void 0!==t&&Mt(t),zc?Fc(this,t):jc(Cc(this),function(t){return function(e,r){return void 0!==t?+t(e,r)||0:r!=r?-1:e!=e?1:0===e&&0===r?1/e>0&&1/r<0?1:-1:e>r}}(t))}),!zc||Wc);var Bc=Qa.aTypedArray;(0,Qa.exportTypedArrayMethod)("subarray",(function(t,e){var r=Bc(this),n=r.length,o=Ce(t,n);return new(Es(r))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,De((void 0===e?n:Ce(e,n))-o))}));var Uc=O.Int8Array,Gc=Qa.aTypedArray,Hc=Qa.exportTypedArrayMethod,Vc=[].toLocaleString,qc=!!Uc&&j((function(){Vc.call(new Uc(1))}));Hc("toLocaleString",(function(){return Dr(Vc,qc?Ur(Gc(this)):Gc(this),Ur(arguments))}),j((function(){return[1,2].toLocaleString()!=new Uc([1,2]).toLocaleString()}))||!j((function(){Uc.prototype.toLocaleString.call([1,2])})));var Zc=Qa.exportTypedArrayMethod,Yc=O.Uint8Array,$c=Yc&&Yc.prototype||{},Kc=[].toString,Qc=R([].join);j((function(){Kc.call({})}))&&(Kc=function(){return Qc(this)});var Xc=$c.toString!=Kc;Zc("toString",Kc,Xc);var Jc,tf,ef=String,rf=function(t){if("Symbol"===me(t))throw TypeError("Cannot convert a Symbol value to a string");return ef(t)},nf=function(){var t=At(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},of=O.RegExp,af=j((function(){var t=of("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),uf=af||j((function(){return!of("a","y").sticky})),sf={BROKEN_CARET:af||j((function(){var t=of("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:uf,UNSUPPORTED_Y:af},cf=O.RegExp,ff=j((function(){var t=cf(".","s");return!(t.dotAll&&t.exec("\\n")&&"s"===t.flags)})),lf=O.RegExp,hf=j((function(){var t=lf("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),pf=ce.get,vf=I("native-string-replace",String.prototype.replace),df=RegExp.prototype.exec,yf=df,gf=R("".charAt),mf=R("".indexOf),xf=R("".replace),bf=R("".slice),wf=(tf=/b*/g,St(df,Jc=/a/,"a"),St(df,tf,"a"),0!==Jc.lastIndex||0!==tf.lastIndex),Ef=sf.BROKEN_CARET,Af=void 0!==/()??/.exec("")[1];(wf||Af||Ef||ff||hf)&&(yf=function(t){var e,r,n,o,i,a,u,s=this,c=pf(s),f=rf(t),l=c.raw;if(l)return l.lastIndex=s.lastIndex,e=St(yf,l,f),s.lastIndex=l.lastIndex,e;var h=c.groups,p=Ef&&s.sticky,v=St(nf,s),d=s.source,y=0,g=f;if(p&&(v=xf(v,"y",""),-1===mf(v,"g")&&(v+="g"),g=bf(f,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\\n"!==gf(f,s.lastIndex-1))&&(d="(?: "+d+")",g=" "+g,y++),r=new RegExp("^(?:"+d+")",v)),Af&&(r=new RegExp("^"+d+"$(?!\\\\s)",v)),wf&&(n=s.lastIndex),o=St(df,p?r:s,g),p?o?(o.input=bf(o.input,y),o[0]=bf(o[0],y),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:wf&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Af&&o&&o.length>1&&St(vf,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&h)for(o.groups=a=Qi(null),i=0;i<h.length;i++)a[(u=h[i])[0]]=o[u[1]];return o});var Of=yf;ir({target:"RegExp",proto:!0,forced:/./.exec!==Of},{exec:Of});var Sf,Tf=ft("species"),kf=RegExp.prototype,If=function(t,e,r,n){var o=ft(t),i=!j((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!j((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Tf]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var u=Fr(/./[o]),s=e(o,""[t],(function(t,e,r,n,o){var a=Fr(t),s=e.exec;return s===Of||s===kf.exec?i&&!o?{done:!0,value:u(e,r,n)}:{done:!0,value:a(r,e,n)}:{done:!1}}));le(String.prototype,t,s[0]),le(kf,o,s[1])}n&&ee(kf[o],"sham",!0)},jf=R("".charAt),Pf=R("".charCodeAt),_f=R("".slice),Mf=function(t){return function(e,r){var n,o,i=rf(D(e)),a=Me(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Pf(i,a))<55296||n>56319||a+1===u||(o=Pf(i,a+1))<56320||o>57343?t?jf(i,a):n:t?_f(i,a,a+2):o-56320+(n-55296<<10)+65536}},Lf={codeAt:Mf(!1),charAt:Mf(!0)},Rf=Lf.charAt,Cf=function(t,e,r){return e+(r?Rf(t,e).length:1)},Nf=Math.floor,Df=R("".charAt),Ff=R("".replace),Wf=R("".slice),zf=/\\$([$&\'`]|\\d{1,2}|<[^>]*>)/g,Bf=/\\$([$&\'`]|\\d{1,2})/g,Uf=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Bf;return void 0!==o&&(o=W(o),s=zf),Ff(i,s,(function(i,s){var c;switch(Df(s,0)){case"$":return"$";case"&":return t;case"`":return Wf(e,0,r);case"\'":return Wf(e,a);case"<":c=o[Wf(s,1,-1)];break;default:var f=+s;if(0===f)return i;if(f>u){var l=Nf(f/10);return 0===l?i:l<=u?void 0===n[l-1]?Df(s,1):n[l-1]+Df(s,1):i}c=n[f-1]}return void 0===c?"":c}))},Gf=TypeError,Hf=function(t,e){var r=t.exec;if($(r)){var n=St(r,t,e);return null!==n&&At(n),n}if("RegExp"===ve(t))return St(Of,t,e);throw Gf("RegExp#exec called on incompatible receiver")},Vf=ft("replace"),qf=Math.max,Zf=Math.min,Yf=R([].concat),$f=R([].push),Kf=R("".indexOf),Qf=R("".slice),Xf="$0"==="a".replace(/./,"$0"),Jf=!!/./[Vf]&&""===/./[Vf]("a","$0");function tl(t){this.message=t}If("replace",(function(t,e,r){var n=Jf?"$":"$0";return[function(t,r){var n=D(this),o=C(t)?void 0:Lt(t,Vf);return o?St(o,t,n,r):St(e,rf(n),t,r)},function(t,o){var i=At(this),a=rf(t);if("string"==typeof o&&-1===Kf(o,n)&&-1===Kf(o,"$<")){var u=r(e,i,a,o);if(u.done)return u.value}var s=$(o);s||(o=rf(o));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var h=Hf(i,a);if(null===h)break;if($f(l,h),!c)break;""===rf(h[0])&&(i.lastIndex=Cf(a,De(i.lastIndex),f))}for(var p,v="",d=0,y=0;y<l.length;y++){for(var g=rf((h=l[y])[0]),m=qf(Zf(Me(h.index),a.length),0),x=[],b=1;b<h.length;b++)$f(x,void 0===(p=h[b])?p:String(p));var w=h.groups;if(s){var E=Yf([g],x,m,a);void 0!==w&&$f(E,w);var A=rf(Dr(o,void 0,E))}else A=Uf(g,a,m,x,w,o);m>=d&&(v+=Qf(a,d,m)+A,d=m+g.length)}return v+Qf(a,d)}]}),!!j((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Xf||Jf),tl.prototype=new Error,tl.prototype.name="InvalidCharacterError",ir({global:!0,forced:O.globalThis!==O},{globalThis:O}),Sf="undefined"==typeof window?{devicePixelRatio:1,navigator:{userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36",browserLanguage:"zh-CN",language:"zh-CN",platform:""},location:"",document:{documentElement:{style:{}},createEvent:function(){return!0},getElementById:function(t){return!0},createElement:function(){return{className:"",classList:{add:function(){return""}}}},createElementNS:function(){return!0},addEventListener:function(){return!0},removeEventListener:function(){return!0},querySelector:function(){return!1}},performance:{mark:function(t){return null},clearMeasures:function(t){return null},clearMarks:function(t){return null},measure:function(t,e,r){return{duration:0}},now:function(){return(new Date).getTime()}},Blob:"",dispatchEvent:function(t){return!0},Event:function(t,e){return!0},createElement:function(){return!0},createElementNS:function(){return!0},XMLHttpRequest:function(){return!0},addEventListener:function(){return!0},removeEventListener:function(){return!0},requestAnimationFrame:function(){return!0},cancelAnimationFrame:function(){return!0},clearTimeout:function(){return!0}}:window,"undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM?my.getSystemInfoSync().pixelRatio:Sf.devicePixelRatio;var el=TypeError,rl=Object.getOwnPropertyDescriptor,nl=pt&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(yi(t)&&!rl(t,"length").writable)throw el("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},ol=TypeError,il=function(t){if(t>9007199254740991)throw ol("Maximum allowed index exceeded");return t},al=Pi("splice"),ul=Math.max,sl=Math.min;ir({target:"Array",proto:!0,forced:!al},{splice:function(t,e){var r,n,o,i,a,u,s=W(this),c=Fe(s),f=Ce(t,c),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=c-f):(r=l-2,n=sl(ul(Me(e),0),c-f)),il(c+r-n),o=xi(s,n),i=0;i<n;i++)(a=f+i)in s&&Ii(o,i,s[a]);if(o.length=n,r<n){for(i=f;i<c-n;i++)u=i+r,(a=i+n)in s?s[u]=s[a]:ls(s,u);for(i=c;i>c-n+r;i--)ls(s,i-1)}else if(r>n)for(i=c-n;i>f;i--)u=i+r-1,(a=i+n-1)in s?s[u]=s[a]:ls(s,u);for(i=0;i<r;i++)s[i+f]=arguments[i+2];return nl(s,c-n+r),o}});var cl=u((function t(e,r){i(this,t),s(this,"cancelBubble",void 0),s(this,"cancelable",void 0),s(this,"target",void 0),s(this,"currentTarget",void 0),s(this,"preventDefault",void 0),s(this,"stopPropagation",void 0),s(this,"type",void 0),s(this,"timeStamp",void 0),this.cancelBubble=!1,this.cancelable=!1,this.target=null,this.currentTarget=null,this.preventDefault=function(){},this.stopPropagation=function(){},this.type=e,this.timeStamp=Date.now()})),fl=Object.assign,ll=Object.defineProperty,hl=R([].concat),pl=!fl||j((function(){if(pt&&1!==fl({b:1},fl(ll({},"a",{enumerable:!0,get:function(){ll(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=fl({},t)[r]||"abcdefghijklmnopqrst"!=Hi(fl({},e)).join("")}))?function(t,e){for(var r=W(t),n=arguments.length,o=1,i=Ze.f,a=Ee.f;n>o;)for(var u,s=Se(arguments[o++]),c=i?hl(Hi(s),i(s)):Hi(s),f=c.length,l=0;f>l;)u=c[l++],pt&&!St(a,s,u)||(r[u]=s[u]);return r}:fl;ir({target:"Object",stat:!0,arity:2,forced:Object.assign!==pl},{assign:pl});var vl=Ei.findIndex,dl=!0;"findIndex"in[]&&Array(1).findIndex((function(){dl=!1})),ir({target:"Array",proto:!0,forced:dl},{findIndex:function(t){return vl(this,t,arguments.length>1?arguments[1]:void 0)}}),oa("findIndex");var yl=Lf.charAt,gl=ce.set,ml=ce.getterFor("String Iterator");wa(String,"String",(function(t){gl(this,{type:"String Iterator",string:rf(t),index:0})}),(function(){var t,e=ml(this),r=e.string,n=e.index;return n>=r.length?Ea(void 0,!0):(t=yl(r,n),e.index+=t.length,Ea(t,!1))}));var xl=qe.f,bl="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],wl={f:function(t){return bl&&"Window"==ve(t)?function(t){try{return xl(t)}catch(t){return yu(bl)}}(t):xl(Te(t))}},El=j((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Al=Object.isExtensible,Ol=j((function(){Al(1)}))||El?function(t){return!!dt(t)&&((!El||"ArrayBuffer"!=ve(t))&&(!Al||Al(t)))}:Al,Sl=!j((function(){return Object.isExtensible(Object.preventExtensions({}))})),Tl=b((function(t){var e=Ut.f,r=!1,n=V("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var t=qe.f,e=R([].splice),o={};o[n]=1,t(o).length&&(qe.f=function(r){for(var o=t(r),i=0,a=o.length;i<a;i++)if(o[i]===n){e(o,i,1);break}return o},ir({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:wl.f}))},fastKey:function(t,e){if(!dt(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!B(t,n)){if(!Ol(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!B(t,n)){if(!Ol(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return Sl&&r&&Ol(t)&&!B(t,n)&&i(t),t}};oe[n]=!0})),kl=(Tl.enable,Tl.fastKey,Tl.getWeakData,Tl.onFreeze,function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",a=O[t],u=a&&a.prototype,s=a,c={},f=function(t){var e=R(u[t]);le(u,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!dt(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!dt(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!dt(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(nr(t,!$(a)||!(o||u.forEach&&!j((function(){(new a).entries().next()})))))s=r.getConstructor(e,t,n,i),Tl.enable();else if(nr(t,!0)){var l=new s,h=l[i](o?{}:-0,1)!=l,p=j((function(){l.has(1)})),v=_o((function(t){new a(t)})),d=!o&&j((function(){for(var t=new a,e=5;e--;)t[i](e,e);return!t.has(-0)}));v||((s=e((function(t,e){yr(t,u);var r=ss(new a,t,s);return C(e)||To(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=u,u.constructor=s),(p||d)&&(f("delete"),f("has"),n&&f("get")),(d||h)&&f(i),o&&u.clear&&delete u.clear}return c[t]=s,ir({global:!0,constructor:!0,forced:s!=a},c),hr(s,t),o||r.setStrong(s,t,n),s}),Il=Tl.getWeakData,jl=ce.set,Pl=ce.getterFor,_l=Ei.find,Ml=Ei.findIndex,Ll=R([].splice),Rl=0,Cl=function(t){return t.frozen||(t.frozen=new Nl)},Nl=function(){this.entries=[]},Dl=function(t,e){return _l(t.entries,(function(t){return t[0]===e}))};Nl.prototype={get:function(t){var e=Dl(this,t);if(e)return e[1]},has:function(t){return!!Dl(this,t)},set:function(t,e){var r=Dl(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=Ml(this.entries,(function(e){return e[0]===t}));return~e&&Ll(this.entries,e,1),!!~e}};var Fl,Wl={getConstructor:function(t,e,r,n){var o=t((function(t,o){yr(t,i),jl(t,{type:e,id:Rl++,frozen:void 0}),C(o)||To(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,a=Pl(e),u=function(t,e,r){var n=a(t),o=Il(At(e),!0);return!0===o?Cl(n).set(e,r):o[n.id]=r,t};return ru(i,{delete:function(t){var e=a(this);if(!dt(t))return!1;var r=Il(t);return!0===r?Cl(e).delete(t):r&&B(r,e.id)&&delete r[e.id]},has:function(t){var e=a(this);if(!dt(t))return!1;var r=Il(t);return!0===r?Cl(e).has(t):r&&B(r,e.id)}}),ru(i,r?{get:function(t){var e=a(this);if(dt(t)){var r=Il(t);return!0===r?Cl(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return u(this,t,e)}}:{add:function(t){return u(this,t,!0)}}),o}},zl=ce.enforce,Bl=!O.ActiveXObject&&"ActiveXObject"in O,Ul=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Gl=kl("WeakMap",Ul,Wl);if(Jt&&Bl){Fl=Wl.getConstructor(Ul,"WeakMap",!0),Tl.enable();var Hl=Gl.prototype,Vl=R(Hl.delete),ql=R(Hl.has),Zl=R(Hl.get),Yl=R(Hl.set);ru(Hl,{delete:function(t){if(dt(t)&&!Ol(t)){var e=zl(this);return e.frozen||(e.frozen=new Fl),Vl(this,t)||e.frozen.delete(t)}return Vl(this,t)},has:function(t){if(dt(t)&&!Ol(t)){var e=zl(this);return e.frozen||(e.frozen=new Fl),ql(this,t)||e.frozen.has(t)}return ql(this,t)},get:function(t){if(dt(t)&&!Ol(t)){var e=zl(this);return e.frozen||(e.frozen=new Fl),ql(this,t)?Zl(this,t):e.frozen.get(t)}return Zl(this,t)},set:function(t,e){if(dt(t)&&!Ol(t)){var r=zl(this);r.frozen||(r.frozen=new Fl),ql(this,t)?Yl(this,t,e):r.frozen.set(t,e)}else Yl(this,t,e);return this}})}var $l=ft("iterator"),Kl=ft("toStringTag"),Ql=Ta.values,Xl=function(t,e){if(t){if(t[$l]!==Ql)try{ee(t,$l,Ql)}catch(e){t[$l]=Ql}if(t[Kl]||ee(t,Kl,e),hi[e])for(var r in Ta)if(t[r]!==Ta[r])try{ee(t,r,Ta[r])}catch(e){t[r]=Ta[r]}}};for(var Jl in hi)Xl(O[Jl]&&O[Jl].prototype,Jl);Xl(di,"DOMTokenList");var th,eh,rh,nh,oh=new WeakMap,ih=function(){function t(){i(this,t),oh.set(this,{})}return u(t,[{key:"addEventListener",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=oh.get(this);n||(n={}),n[t]||(n[t]=[]),n[t].push(e),oh.set(this,n),r.capture,r.once,r.passive}},{key:"removeEventListener",value:function(t,e){var r=oh.get(this);if(r){var n=r[t];if(n&&n.length>0)for(var o=n.length;o--;o>0)if(n[o]===e){n.splice(o,1);break}}}},{key:"dispatchEvent",value:function(t){var e=oh.get(this)[t.type];if(e){var r,n=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=g(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(e);try{for(n.s();!(r=n.n()).done;){(0,r.value)(t)}}catch(t){n.e(t)}finally{n.f()}}}}]),t}(),ah=function(t){c(r,t);var e=v(r);function r(){var t;return i(this,r),s(h(t=e.call(this)),"className",void 0),s(h(t),"children",void 0),t.className="",t.children=[],t}return u(r,[{key:"setAttribute",value:function(t,e){this[t]=e}},{key:"getAttribute",value:function(t){return this[t]}},{key:"setAttributeNS",value:function(t,e){this[t]=e}},{key:"getAttributeNS",value:function(t){return this[t]}}]),r}(function(t){c(r,t);var e=v(r);function r(){var t;return i(this,r),s(h(t=e.call(this)),"childNodes",void 0),t.childNodes=[],t}return u(r,[{key:"appendChild",value:function(t){this.childNodes.push(t)}},{key:"cloneNode",value:function(){var t=Object.create(this);return Object.assign(t,this),t}},{key:"removeChild",value:function(t){var e=this.childNodes.findIndex((function(e){return e===t}));return e>-1?this.childNodes.splice(e,1):null}}]),r}(ih));if("undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM){var uh=my.getSystemInfoSync();th=uh.screenWidth,eh=uh.screenHeight,rh=uh.windowWidth,nh=uh.windowHeight}else{var sh=Sf.innerWidth,ch=Sf.innerHeight;th=sh,eh=ch,rh=sh,nh=ch}var fh={width:th,height:eh,availWidth:rh,availHeight:nh,availLeft:0,availTop:0},lh=fh.availWidth,hh=fh.availHeight,ph={style:[]};function vh(t,e){var r,n;"parentNode"in t||(r=0===e?function(){return null}:1===e?function(){return ph}:function(){return null},Object.defineProperty(t,"parentNode",{enumerable:!0,get:r}));"parentElement"in t||(n=0===e?function(){return null}:1===e?function(){return ph}:function(){return null},Object.defineProperty(t,"parentElement",{enumerable:!0,get:n}))}function dh(t){t.style=t.style||{},Object.assign(t.style,{top:"0px",left:"0px",width:lh+"px",height:hh+"px",margin:"0px",padding:"0px"})}function yh(t){"clientLeft"in t||(t.clientLeft=0,t.clientTop=0),"clientWidth"in t||(t.clientWidth=lh,t.clientHeight=hh),"getBoundingClientRect"in t||(t.getBoundingClientRect=function(){return{x:0,y:0,top:0,left:0,width:this.clientWidth,height:this.clientHeight,right:this.clientWidth,bottom:this.clientHeight}})}function gh(t){"offsetLeft"in t||(t.offsetLeft=0,t.offsetTop=0),"offsetWidth"in t||(t.offsetWidth=lh,t.offsetHeight=hh)}function mh(t){"scrollLeft"in t||(t.scrollLeft=0,t.scrollTop=0),"scrollWidth"in t||(t.scrollWidth=lh,t.scrollHeight=hh)}function xh(t){var e=function(){return!0};t.classList=[],t.classList.add=e,t.classList.remove=e,t.classList.contains=e,t.classList.toggle=e}function bh(){}var wh=function(t){c(r,t);var e=v(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1?arguments[1]:void 0;return i(this,r),s(h(t=e.call(this)),"className",void 0),s(h(t),"children",void 0),s(h(t),"focus",void 0),s(h(t),"blur",void 0),s(h(t),"insertBefore",void 0),s(h(t),"appendChild",void 0),s(h(t),"removeChild",void 0),s(h(t),"remove",void 0),s(h(t),"innerHTML",void 0),s(h(t),"tagName",void 0),t.className="",t.children=[],t.focus=bh,t.blur=bh,t.insertBefore=bh,t.appendChild=bh,t.removeChild=bh,t.remove=bh,t.innerHTML="",t.tagName=n.toUpperCase(),vh(h(t),o),dh(h(t)),xh(h(t)),yh(h(t)),gh(h(t)),mh(h(t)),t}return u(r)}(ah),Eh=function(t){c(r,t);var e=v(r);function r(){return i(this,r),e.call(this,"video")}return u(r)}(function(t){c(r,t);var e=v(r);function r(t){return i(this,r),e.call(this,t)}return u(r,[{key:"addTextTrack",value:function(){}},{key:"captureStream",value:function(){}},{key:"fastSeek",value:function(){}},{key:"load",value:function(){}},{key:"pause",value:function(){}},{key:"play",value:function(){}}]),r}(wh)),Ah={};function Oh(){return Ah}var Sh=u((function t(){i(this,t);var e=Oh(),r=e.createImage&&e.createImage()||{};return"tagName"in r||(r.tagName="IMG",r.__proto__=t.prototype),vh(r),xh(r),Object.assign(r,{addEventListener:function(t,e){r["on".concat(t)]=e.bind(r)},removeEventListener:function(t){r["on".concat(t)]=null}}),r})),Th={href:"",protocol:"",host:""},kh=function(t){c(r,t);var e=v(r);function r(){return i(this,r),e.call(this,"body",0)}return u(r,[{key:"addEventListener",value:function(t,e){}},{key:"removeEventListener",value:function(t,e,r){}},{key:"dispatchEvent",value:function(t){}}]),r}(wh),Ih=function(t){c(r,t);var e=v(r);function r(){return i(this,r),e.call(this,"html",0)}return u(r,[{key:"addEventListener",value:function(t,e){}},{key:"removeEventListener",value:function(t,e){}},{key:"dispatchEvent",value:function(t){}}]),r}(wh),jh={},Ph={readyState:"complete",visibilityState:"visible",hidden:!1,fullscreen:!0,scripts:[],style:{},location:Th,ontouchstart:null,ontouchmove:null,ontouchend:null,onvisibilitychange:null,parentNode:null,parentElement:null,head:null,body:null,documentElement:{style:[]},createElement:function(t){return"canvas"===(t=t.toLowerCase())?my.createOffscreenCanvas(1024,128,"2d"):"img"===t?new Sh:"video"===t?new Eh:new wh(t)},createElementNS:function(t,e){return this.createElement(e)},createTextNode:function(t){return t},getElementById:function(t){return null},getElementsByTagName:function(t){return t=t.toLowerCase(),[]},getElementsByTagNameNS:function(t,e){return this.getElementsByTagName(e)},getElementsByName:function(t){return[]},querySelector:function(t){return null},querySelectorAll:function(t){return[]},addEventListener:function(t,e,r){jh[t]||(jh[t]=[]),jh[t].push(e)},removeEventListener:function(t,e){var r=jh[t];if(r&&r.length>0)for(var n=r.length;n--;n>0)if(r[n]===e){r.splice(n,1);break}},dispatchEvent:function(t){var e=t.type,r=jh[e];if(r)for(var n=0;n<r.length;n++)r[n](t);t.target&&"function"==typeof t.target["on"+e]&&t.target["on"+e](t)},createEvent:function(t){return new cl(t)}};Ph.documentElement=new Ih,Ph.head=new wh("head"),Ph.body=new kh,If("match",(function(t,e,r){return[function(e){var r=D(this),n=C(e)?void 0:Lt(e,t);return n?St(n,e,r):new RegExp(e)[t](rf(r))},function(t){var n=At(this),o=rf(t),i=r(e,n,o);if(i.done)return i.value;if(!n.global)return Hf(n,o);var a=n.unicode;n.lastIndex=0;for(var u,s=[],c=0;null!==(u=Hf(n,o));){var f=rf(u[0]);s[c]=f,""===f&&(n.lastIndex=Cf(o,De(n.lastIndex),a)),c++}return 0===c?null:s}]}));var _h,Mh,Lh=ft("isConcatSpreadable"),Rh=nt>=51||!j((function(){var t=[];return t[Lh]=!1,t.concat()[0]!==t})),Ch=Pi("concat"),Nh=function(t){if(!dt(t))return!1;var e=t[Lh];return void 0!==e?!!e:yi(t)};if(ir({target:"Array",proto:!0,arity:1,forced:!Rh||!Ch},{concat:function(t){var e,r,n,o,i,a=W(this),u=xi(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(Nh(i=-1===e?a:arguments[e]))for(o=Fe(i),il(s+o),r=0;r<o;r++,s++)r in i&&Ii(u,s,i[r]);else il(s+1),Ii(u,s++,i);return u.length=s,u}}),"undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM){var Dh=my.getSystemInfoSync();_h=Dh.system,Dh.platform,Dh.language}else{var Fh={versions:(Mh=Sf.navigator.userAgent,{trident:Mh.indexOf("Trident")>-1,presto:Mh.indexOf("Presto")>-1,webKit:Mh.indexOf("AppleWebKit")>-1,gecko:Mh.indexOf("Gecko")>-1&&-1===Mh.indexOf("KHTML"),mobile:!!Mh.match(/AppleWebKit.*Mobile.*/),ios:!!Mh.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/),android:Mh.indexOf("Android")>-1||Mh.indexOf("Linux")>-1,iPhone:Mh.indexOf("iPhone")>-1,iPad:Mh.indexOf("iPad")>-1,webApp:-1===Mh.indexOf("Safari"),weixin:Mh.indexOf("MicroMessenger")>-1,qq:" qq"===Mh.match(/\\sQQ/i)}),language:(Sf.navigator.browserLanguage||Sf.navigator.language).toLowerCase()};Fh.versions.android?"android":Fh.versions.trident?"IE":Fh.versions.presto?"Opera":Fh.versions.webKit?"webKit":Fh.versions.gecko?"Firefox":Fh.versions.mobile?"mobile":Fh.versions.ios?"ios":Fh.versions.iPhone?"iPhone":Fh.versions.iPad?"ipad":Fh.versions.webApp?"webApp":Fh.versions.weixin?"weixin":Fh.versions.qq&&"qq",_h=Sf.navigator.userAgent,Fh.language}_h.toLowerCase().indexOf("android");cs("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}));var Wh=Ut.f,zh=Tl.fastKey,Bh=ce.set,Uh=ce.getterFor;kl("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(t,e,r,n){var o=t((function(t,o){yr(t,i),Bh(t,{type:e,index:Qi(null),first:void 0,last:void 0,size:0}),pt||(t.size=0),C(o)||To(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,a=Uh(e),u=function(t,e,r){var n,o,i=a(t),u=s(t,e);return u?u.value=r:(i.last=u={index:o=zh(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=u),n&&(n.next=u),pt?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},s=function(t,e){var r,n=a(t),o=zh(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return ru(i,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,pt?t.size=0:this.size=0},delete:function(t){var e=a(this),r=s(this,t);if(r){var n=r.next,o=r.previous;delete e.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),e.first==r&&(e.first=n),e.last==r&&(e.last=o),pt?e.size--:this.size--}return!!r},forEach:function(t){for(var e,r=a(this),n=zr(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!s(this,t)}}),ru(i,r?{get:function(t){var e=s(this,t);return e&&e.value},set:function(t,e){return u(this,0===t?0:t,e)}}:{add:function(t){return u(this,t=0===t?0:t,t)}}),pt&&Wh(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=Uh(e),i=Uh(n);wa(t,e,(function(t,e){Bh(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?Ea("keys"==e?r.key:"values"==e?r.value:[r.key,r.value],!1):(t.target=void 0,Ea(void 0,!0))}),r?"entries":"values",!r,!0),vr(e)}});var Gh=R([].join),Hh=Se!=Object,Vh=Ai("join",",");ir({target:"Array",proto:!0,forced:Hh||!Vh},{join:function(t){return Gh(Te(this),void 0===t?",":t)}});var qh=j((function(){Hi(1)}));ir({target:"Object",stat:!0,forced:qh},{keys:function(t){return Hi(W(t))}});var Zh=new Map,Yh=new Map,$h=new Map,Kh=function(t){c(r,t);var e=v(r);function r(){var t;return i(this,r),s(h(t=e.call(this)),"onabort",void 0),s(h(t),"onerror",void 0),s(h(t),"onload",void 0),s(h(t),"onloadstart",void 0),s(h(t),"onprogress",void 0),s(h(t),"ontimeout",void 0),s(h(t),"onloadend",void 0),s(h(t),"onreadystatechange",void 0),s(h(t),"readyState",void 0),s(h(t),"response",void 0),s(h(t),"responseText",void 0),s(h(t),"_responseType",void 0),s(h(t),"responseXML",void 0),s(h(t),"status",void 0),s(h(t),"statusText",void 0),s(h(t),"upload",void 0),s(h(t),"withCredentials",void 0),s(h(t),"timeout",void 0),s(h(t),"_url",void 0),s(h(t),"_method",void 0),t.onabort=null,t.onerror=null,t.onload=null,t.onloadstart=null,t.onprogress=null,t.ontimeout=null,t.onloadend=null,t.onreadystatechange=null,t.readyState=0,t.response=null,t.responseText=null,t._responseType="text",t.responseXML=null,t.status=0,t.statusText="",t.upload={},t.withCredentials=!1,Zh.set("requestHeader",{"content-type":"application/x-www-form-urlencoded"}),t}return u(r,[{key:"responseType",set:function(t){this._responseType=t}},{key:"abort",value:function(){var t=$h.get("requestTask");t&&t.abort()}},{key:"getAllResponseHeaders",value:function(){var t=Yh.get("responseHeader");return Object.keys(t).map((function(e){return"".concat(e,": ").concat(t[e])})).join("\\n")}},{key:"getResponseHeader",value:function(t){return Yh.get("responseHeader")[t]}},{key:"open",value:function(t,e,r){this._method=t,this._url=e}},{key:"overrideMimeType",value:function(){}},{key:"send",value:function(){}},{key:"setRequestHeader",value:function(t,e){var r=Zh.get("requestHeader");r[t]=e,Zh.set("requestHeader",r)}},{key:"addEventListener",value:function(t,e){var r=this;"function"==typeof e&&(this["on"+t]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.target=t.target||r,e.call(r,t)})}},{key:"removeEventListener",value:function(t,e){this["on"+t]===e&&(this["on"+t]=null)}}]),r}(ih);s(Kh,"UNSEND",void 0),s(Kh,"OPENED",void 0),s(Kh,"HEADERS_RECEIVED",void 0),s(Kh,"LOADING",void 0),s(Kh,"DONE",void 0),Kh.UNSEND=0,Kh.OPENED=1,Kh.HEADERS_RECEIVED=2,Kh.LOADING=3,Kh.DONE=4;var Qh="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM,Xh="undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram),Jh=Qh||Xh;Jh||Sf.XMLHttpRequest,Jh||Sf.location;function tp(t){return[t+1&255,t+1>>8&255,t+1>>8>>8&255]}var ep=Ei.filter,rp=Pi("filter");function np(t){var e=t.color;return e&&e.length?e:[1,1,1,1]}function op(t,e,r){return 2===r.length?[r[0],r[1],0]:[r[0],r[1],r[2]]}function ip(t){return t.filter?[1]:[0]}function ap(t,e){return[e]}ir({target:"Array",proto:!0,forced:!rp},{filter:function(t){return ep(this,t,arguments.length>1?arguments[1]:void 0)}});var up=cp,sp=cp;function cp(t,e,r){r=r||2;var n,o,i,a,u,s,c,f=e&&e.length,l=f?e[0]*r:t.length,h=fp(t,0,l,r,!0),p=[];if(!h||h.next===h.prev)return p;if(f&&(h=function(t,e,r,n){var o,i,a,u,s,c=[];for(o=0,i=e.length;o<i;o++)a=e[o]*n,u=o<i-1?e[o+1]*n:t.length,(s=fp(t,a,u,n,!1))===s.next&&(s.steiner=!0),c.push(wp(s));for(c.sort(gp),o=0;o<c.length;o++)r=mp(c[o],r);return r}(t,e,h,r)),t.length>80*r){n=i=t[0],o=a=t[1];for(var v=r;v<l;v+=r)(u=t[v])<n&&(n=u),(s=t[v+1])<o&&(o=s),u>i&&(i=u),s>a&&(a=s);c=0!==(c=Math.max(i-n,a-o))?32767/c:0}return hp(h,p,r,n,o,c,0),p}function fp(t,e,r,n,o){var i,a;if(o===Rp(t,e,r,n)>0)for(i=e;i<r;i+=n)a=_p(i,t[i],t[i+1],a);else for(i=r-n;i>=e;i-=n)a=_p(i,t[i],t[i+1],a);return a&&Sp(a,a.next)&&(Mp(a),a=a.next),a}function lp(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!Sp(n,n.next)&&0!==Op(n.prev,n,n.next))n=n.next;else{if(Mp(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function hp(t,e,r,n,o,i,a){if(t){!a&&i&&function(t,e,r,n){var o=t;do{0===o.z&&(o.z=bp(o.x,o.y,e,r,n)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==t);o.prevZ.nextZ=null,o.prevZ=null,function(t){var e,r,n,o,i,a,u,s,c=1;do{for(r=t,t=null,i=null,a=0;r;){for(a++,n=r,u=0,e=0;e<c&&(u++,n=n.nextZ);e++);for(s=c;u>0||s>0&&n;)0!==u&&(0===s||!n||r.z<=n.z)?(o=r,r=r.nextZ,u--):(o=n,n=n.nextZ,s--),i?i.nextZ=o:t=o,o.prevZ=i,i=o;r=n}i.nextZ=null,c*=2}while(a>1)}(o)}(t,n,o,i);for(var u,s,c=t;t.prev!==t.next;)if(u=t.prev,s=t.next,i?vp(t,n,o,i):pp(t))e.push(u.i/r|0),e.push(t.i/r|0),e.push(s.i/r|0),Mp(t),t=s.next,c=s.next;else if((t=s)===c){a?1===a?hp(t=dp(lp(t),e,r),e,r,n,o,i,2):2===a&&yp(t,e,r,n,o,i):hp(lp(t),e,r,n,o,i,1);break}}}function pp(t){var e=t.prev,r=t,n=t.next;if(Op(e,r,n)>=0)return!1;for(var o=e.x,i=r.x,a=n.x,u=e.y,s=r.y,c=n.y,f=o<i?o<a?o:a:i<a?i:a,l=u<s?u<c?u:c:s<c?s:c,h=o>i?o>a?o:a:i>a?i:a,p=u>s?u>c?u:c:s>c?s:c,v=n.next;v!==e;){if(v.x>=f&&v.x<=h&&v.y>=l&&v.y<=p&&Ep(o,u,i,s,a,c,v.x,v.y)&&Op(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function vp(t,e,r,n){var o=t.prev,i=t,a=t.next;if(Op(o,i,a)>=0)return!1;for(var u=o.x,s=i.x,c=a.x,f=o.y,l=i.y,h=a.y,p=u<s?u<c?u:c:s<c?s:c,v=f<l?f<h?f:h:l<h?l:h,d=u>s?u>c?u:c:s>c?s:c,y=f>l?f>h?f:h:l>h?l:h,g=bp(p,v,e,r,n),m=bp(d,y,e,r,n),x=t.prevZ,b=t.nextZ;x&&x.z>=g&&b&&b.z<=m;){if(x.x>=p&&x.x<=d&&x.y>=v&&x.y<=y&&x!==o&&x!==a&&Ep(u,f,s,l,c,h,x.x,x.y)&&Op(x.prev,x,x.next)>=0)return!1;if(x=x.prevZ,b.x>=p&&b.x<=d&&b.y>=v&&b.y<=y&&b!==o&&b!==a&&Ep(u,f,s,l,c,h,b.x,b.y)&&Op(b.prev,b,b.next)>=0)return!1;b=b.nextZ}for(;x&&x.z>=g;){if(x.x>=p&&x.x<=d&&x.y>=v&&x.y<=y&&x!==o&&x!==a&&Ep(u,f,s,l,c,h,x.x,x.y)&&Op(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;b&&b.z<=m;){if(b.x>=p&&b.x<=d&&b.y>=v&&b.y<=y&&b!==o&&b!==a&&Ep(u,f,s,l,c,h,b.x,b.y)&&Op(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function dp(t,e,r){var n=t;do{var o=n.prev,i=n.next.next;!Sp(o,i)&&Tp(o,n,n.next,i)&&jp(o,i)&&jp(i,o)&&(e.push(o.i/r|0),e.push(n.i/r|0),e.push(i.i/r|0),Mp(n),Mp(n.next),n=t=i),n=n.next}while(n!==t);return lp(n)}function yp(t,e,r,n,o,i){var a=t;do{for(var u=a.next.next;u!==a.prev;){if(a.i!==u.i&&Ap(a,u)){var s=Pp(a,u);return a=lp(a,a.next),s=lp(s,s.next),hp(a,e,r,n,o,i,0),void hp(s,e,r,n,o,i,0)}u=u.next}a=a.next}while(a!==t)}function gp(t,e){return t.x-e.x}function mp(t,e){var r=function(t,e){var r,n=e,o=t.x,i=t.y,a=-1/0;do{if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){var u=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(u<=o&&u>a&&(a=u,r=n.x<n.next.x?n:n.next,u===o))return r}n=n.next}while(n!==e);if(!r)return null;var s,c=r,f=r.x,l=r.y,h=1/0;n=r;do{o>=n.x&&n.x>=f&&o!==n.x&&Ep(i<l?o:a,i,f,l,i<l?a:o,i,n.x,n.y)&&(s=Math.abs(i-n.y)/(o-n.x),jp(n,t)&&(s<h||s===h&&(n.x>r.x||n.x===r.x&&xp(r,n)))&&(r=n,h=s)),n=n.next}while(n!==c);return r}(t,e);if(!r)return e;var n=Pp(r,t);return lp(n,n.next),lp(r,r.next)}function xp(t,e){return Op(t.prev,t,e.prev)<0&&Op(e.next,t,t.next)<0}function bp(t,e,r,n,o){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*o|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*o|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function wp(t){var e=t,r=t;do{(e.x<r.x||e.x===r.x&&e.y<r.y)&&(r=e),e=e.next}while(e!==t);return r}function Ep(t,e,r,n,o,i,a,u){return(o-a)*(e-u)>=(t-a)*(i-u)&&(t-a)*(n-u)>=(r-a)*(e-u)&&(r-a)*(i-u)>=(o-a)*(n-u)}function Ap(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&Tp(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&(jp(t,e)&&jp(e,t)&&function(t,e){var r=t,n=!1,o=(t.x+e.x)/2,i=(t.y+e.y)/2;do{r.y>i!=r.next.y>i&&r.next.y!==r.y&&o<(r.next.x-r.x)*(i-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}(t,e)&&(Op(t.prev,t,e.prev)||Op(t,e.prev,e))||Sp(t,e)&&Op(t.prev,t,t.next)>0&&Op(e.prev,e,e.next)>0)}function Op(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function Sp(t,e){return t.x===e.x&&t.y===e.y}function Tp(t,e,r,n){var o=Ip(Op(t,e,r)),i=Ip(Op(t,e,n)),a=Ip(Op(r,n,t)),u=Ip(Op(r,n,e));return o!==i&&a!==u||(!(0!==o||!kp(t,r,e))||(!(0!==i||!kp(t,n,e))||(!(0!==a||!kp(r,t,n))||!(0!==u||!kp(r,e,n)))))}function kp(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function Ip(t){return t>0?1:t<0?-1:0}function jp(t,e){return Op(t.prev,t,t.next)<0?Op(t,e,t.next)>=0&&Op(t,t.prev,e)>=0:Op(t,e,t.prev)<0||Op(t,t.next,e)<0}function Pp(t,e){var r=new Lp(t.i,t.x,t.y),n=new Lp(e.i,e.x,e.y),o=t.next,i=e.prev;return t.next=e,e.prev=t,r.next=o,o.prev=r,n.next=r,r.prev=n,i.next=n,n.prev=i,n}function _p(t,e,r,n){var o=new Lp(t,e,r);return n?(o.next=n.next,o.prev=n,n.next.prev=o,n.next=o):(o.prev=o,o.next=o),o}function Mp(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Lp(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Rp(t,e,r,n){for(var o=0,i=e,a=r-n;i<r;i+=n)o+=(t[a]-t[i])*(t[i+1]+t[a+1]),a=i;return o}cp.deviation=function(t,e,r,n){var o=e&&e.length,i=o?e[0]*r:t.length,a=Math.abs(Rp(t,0,i,r));if(o)for(var u=0,s=e.length;u<s;u++){var c=e[u]*r,f=u<s-1?e[u+1]*r:t.length;a-=Math.abs(Rp(t,c,f,r))}var l=0;for(u=0;u<n.length;u+=3){var h=n[u]*r,p=n[u+1]*r,v=n[u+2]*r;l+=Math.abs((t[h]-t[v])*(t[p+1]-t[h+1])-(t[h]-t[p])*(t[v+1]-t[h+1]))}return 0===a&&0===l?0:Math.abs((l-a)/a)},cp.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,o=0;o<t.length;o++){for(var i=0;i<t[o].length;i++)for(var a=0;a<e;a++)r.vertices.push(t[o][i][a]);o>0&&(n+=t[o-1].length,r.holes.push(n))}return r},up.default=sp;var Cp=R(1..valueOf),Np=R("".replace),Dp="[\\t\\n\\v\\f\\r    \\u2028\\u2029\\ufeff]",Fp=RegExp("^"+Dp+Dp+"*"),Wp=RegExp(Dp+Dp+"*$"),zp=function(t){return function(e){var r=rf(D(e));return 1&t&&(r=Np(r,Fp,"")),2&t&&(r=Np(r,Wp,"")),r}},Bp={start:zp(1),end:zp(2),trim:zp(3)},Up=qe.f,Gp=Ie.f,Hp=Ut.f,Vp=Bp.trim,qp=O.Number,Zp=qp.prototype,Yp=O.TypeError,$p=R("".slice),Kp=R("".charCodeAt),Qp=function(t){var e=Dt(t,"number");return"bigint"==typeof e?e:Xp(e)},Xp=function(t){var e,r,n,o,i,a,u,s,c=Dt(t,"number");if(It(c))throw Yp("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Vp(c),43===(e=Kp(c,0))||45===e){if(88===(r=Kp(c,2))||120===r)return NaN}else if(48===e){switch(Kp(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=$p(c,2)).length,u=0;u<a;u++)if((s=Kp(i,u))<48||s>o)return NaN;return parseInt(i,n)}return+c};if(nr("Number",!qp(" 0o1")||!qp("0b1")||qp("+0x1"))){for(var Jp,tv=function(t){var e=arguments.length<1?0:qp(Qp(t)),r=this;return Tt(Zp,r)&&j((function(){Cp(r)}))?ss(Object(e),r,tv):e},ev=pt?Up(qp):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),rv=0;ev.length>rv;rv++)B(qp,Jp=ev[rv])&&!B(tv,Jp)&&Hp(tv,Jp,Gp(qp,Jp));tv.prototype=Zp,Zp.constructor=tv,le(O,"Number",tv,{constructor:!0})}var nv=RangeError,ov=RangeError,iv=String,av=Math.floor,uv=R((function(t){var e=rf(D(this)),r="",n=Me(t);if(n<0||n==1/0)throw nv("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r})),sv=R("".slice),cv=R(1..toFixed),fv=function(t,e,r){return 0===e?r:e%2==1?fv(t,e-1,r*t):fv(t*t,e/2,r)},lv=function(t,e,r){for(var n=-1,o=r;++n<6;)o+=e*t[n],t[n]=o%1e7,o=av(o/1e7)},hv=function(t,e){for(var r=6,n=0;--r>=0;)n+=t[r],t[r]=av(n/e),n=n%e*1e7},pv=function(t){for(var e=6,r="";--e>=0;)if(""!==r||0===e||0!==t[e]){var n=iv(t[e]);r=""===r?n:r+uv("0",7-n.length)+n}return r},vv=j((function(){return"0.000"!==cv(8e-5,3)||"1"!==cv(.9,0)||"1.25"!==cv(1.255,2)||"1000000000000000128"!==cv(0xde0b6b3a7640080,0)}))||!j((function(){cv({})}));function dv(t){return"number"==typeof t}function yv(t){var e=Math.max(Math.min(85.0511287798,t[1]),-85.0511287798),r=Math.PI/180,n=t[0]*r,o=e*r;o=Math.log(Math.tan(Math.PI/4+o/2));return n=(256<<20)*(.5/Math.PI*n+.5),o=(256<<20)*(-.5/Math.PI*o+(r=.5)),[Math.floor(n),Math.floor(o)]}ir({target:"Number",proto:!0,forced:vv},{toFixed:function(t){var e,r,n,o,i=Cp(this),a=Me(t),u=[0,0,0,0,0,0],s="",c="0";if(a<0||a>20)throw ov("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return iv(i);if(i<0&&(s="-",i=-i),i>1e-21)if(r=(e=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}(i*fv(2,69,1))-69)<0?i*fv(2,-e,1):i/fv(2,e,1),r*=4503599627370496,(e=52-e)>0){for(lv(u,0,r),n=a;n>=7;)lv(u,1e7,0),n-=7;for(lv(u,fv(10,n,1),0),n=e-1;n>=23;)hv(u,1<<23),n-=23;hv(u,1<<n),lv(u,1,1),hv(u,2),c=pv(u)}else lv(u,0,r),lv(u,1<<-e,0),c=pv(u)+uv("0",a);return c=a>0?s+((o=c.length)<=a?"0."+uv("0",a-o)+c:sv(c,0,o-a)+"."+sv(c,o-a)):s+c}});var gv,mv=/"/g,xv=R("".replace);ir({target:"String",proto:!0,forced:(gv="sub",j((function(){var t=""[gv](\'"\');return t!==t.toLowerCase()||t.split(\'"\').length>3})))},{sub:function(){return t="sub",e="",r="",n=rf(D(this)),o="<"+t,""!==e&&(o+=" "+e+\'="\'+xv(rf(r),mv,"&quot;")+\'"\'),o+">"+n+"</"+t+">";var t,e,r,n,o}});var bv=RegExp.prototype,wv=qt.PROPER,Ev=RegExp.prototype.toString,Av=j((function(){return"/a/b"!=Ev.call({source:"a",flags:"b"})})),Ov=wv&&"toString"!=Ev.name;(Av||Ov)&&le(RegExp.prototype,"toString",(function(){var t=At(this);return"/"+rf(t.source)+"/"+rf(function(t){var e=t.flags;return void 0!==e||"flags"in bv||B(t,"flags")||!Tt(bv,t)?e:St(nf,t)}(t))}),{unsafe:!0});var Sv="undefined"!=typeof Float32Array?Float32Array:Array;function Tv(){var t=new Sv(2);return Sv!=Float32Array&&(t[0]=0,t[1]=0),t}function kv(t,e){var r=new Sv(2);return r[0]=t,r[1]=e,r}function Iv(t,e){return t[0]=e[0],t[1]=e[1],t}function jv(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function Pv(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function _v(t,e){var r=e[0],n=e[1],o=r*r+n*n;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t}function Mv(t,e){return t[0]*e[0]+t[1]*e[1]}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var Lv,Rv=Pv,Cv=(Lv=Tv(),Tv()),Nv=(Tv(),Tv()),Dv=Tv(),Fv=Tv();function Wv(t,e,r,n,o){return jv(t,r,n),_v(t,t),[o/Mv(e=kv(-t[1],t[0]),kv(-r[1],r[0])),e]}function zv(t,e){return function(t,e,r){return t[0]=e,t[1]=r,t}(t,-e[1],e[0])}function Bv(t,e,r){return Rv(t,e,r),_v(t,t),t}function Uv(t,e){return t[0]===e[0]&&t[1]===e[1]}var Gv=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,t),s(this,"complex",void 0),s(this,"join",void 0),s(this,"cap",void 0),s(this,"miterLimit",void 0),s(this,"thickness",void 0),s(this,"normal",void 0),s(this,"lastFlip",-1),s(this,"miter",kv(0,0)),s(this,"started",!1),s(this,"dash",!1),s(this,"totalDistance",0),s(this,"currentIndex",0),this.join=e.join||"miter",this.cap=e.cap||"butt",this.miterLimit=e.miterLimit||10,this.thickness=e.thickness||1,this.dash=e.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return u(t,[{key:"extrude_gaode2",value:function(t,e){var r=this.complex;if(t.length<=1)return r;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var n=t.length,o=r.startIndex,i=1;i<n;i++){var a,u,s,c=t[i-1];c.push(null!==(a=e[i-1][2])&&void 0!==a?a:0);var f=e[i-1],l=t[i];l.push(null!==(u=e[i][2])&&void 0!==u?u:0);var h=e[i],p=i<t.length-1?[].concat(y(t[i+1]),[null!==(s=e[i+1][2])&&void 0!==s?s:0]):null,v=i<e.length-1?e[i+1]:null;o+=this.segment_gaode2(r,o,c,l,p,f,h,v)}if(this.dash)for(var d=0;d<r.positions.length/6;d++)r.positions[6*d+5]=this.totalDistance;return r.startIndex=r.positions.length/6,r}},{key:"simpleExtrude_gaode2",value:function(t,e){var r=this.complex;if(t.length<=1)return r;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var n=t.length,o=r.startIndex,i=1;i<n;i++){var a,u,s,c=t[i-1];c.push(null!==(a=e[i-1][2])&&void 0!==a?a:0);var f=e[i-1],l=t[i];l.push(null!==(u=e[i][2])&&void 0!==u?u:0);var h=e[i],p=i<t.length-1?[].concat(y(t[i+1]),[null!==(s=e[i+1][2])&&void 0!==s?s:0]):null,v=i<e.length-1?e[i+1]:null;o+=this.simpleSegment(r,o,c,l,p,f,h,v)}if(this.dash)for(var d=0;d<r.positions.length/6;d++)r.positions[6*d+5]=this.totalDistance;return r.startIndex=r.positions.length/6,r}},{key:"extrude",value:function(t){var e=this.complex;if(t.length<=1)return e;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var r=t.length,n=e.startIndex,o=1;o<r;o++){var i=t[o-1],a=t[o],u=o<t.length-1?t[o+1]:null;n+=this.segment(e,n,i,a,u)}if(this.dash)for(var s=0;s<e.positions.length/6;s++)e.positions[6*s+5]=this.totalDistance;return e.startIndex=e.positions.length/6,e}},{key:"simpleExtrude",value:function(t){var e=this.complex;if(t.length<=1)return e;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var r=t.length,n=e.startIndex,o=1;o<r;o++){var i=t[o-1],a=t[o],u=o<t.length-1?t[o+1]:null;n+=this.simpleSegment(e,n,i,a,u)}if(this.dash)for(var s=0;s<e.positions.length/6;s++)e.positions[6*s+5]=this.totalDistance;return e.startIndex=e.positions.length/6,e}},{key:"segment_gaode2",value:function(t,e,r,n,o,i,a,u){var s=0,c=t.indices,f=t.positions,l=t.normals,h="square"===this.cap,p="bevel"===this.join,v=yv([a[0],a[1]]),g=yv([i[0],i[1]]);Bv(Nv,n,r);var m=0;if(this.dash&&(m=this.lineSegmentDistance(v,g),this.totalDistance+=m),this.normal||(this.normal=Tv(),zv(this.normal,Nv)),!this.started)if(this.started=!0,h){var x=Tv(),b=Tv();jv(x,this.normal,Nv),jv(b,this.normal,Nv),l.push(b[0],b[1],0),l.push(x[0],x[1],0),f.push(r[0],r[1],0|r[2],this.totalDistance-m,-this.thickness,0|r[2]),this.complex.indexes.push(this.currentIndex),f.push(r[0],r[1],0|r[2],this.totalDistance-m,this.thickness,0|r[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(f,l,r,this.normal,this.thickness,this.totalDistance-m);if(c.push(e+0,e+1,e+2),o){Uv(n,o)&&jv(o,n,_v(o,Pv(o,n,r))),Bv(Dv,o,n);var w=d(Wv(Fv,Tv(),Nv,Dv,this.thickness),2),E=w[0],A=w[1],O=Mv(Fv,this.normal)<0?-1:1,S=p;if(!S&&"miter"===this.join)E>this.miterLimit&&(S=!0);S?(l.push(this.normal[0],this.normal[1],0),l.push(A[0],A[1],0),f.push(n[0],n[1],0|n[2],this.totalDistance,-this.thickness*O,0|n[2]),this.complex.indexes.push(this.currentIndex),f.push(n[0],n[1],0|n[2],this.totalDistance,this.thickness*O,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,c.push.apply(c,y(this.lastFlip!==-O?[e,e+2,e+3]:[e+2,e+1,e+3])),c.push(e+2,e+3,e+4),zv(Cv,Dv),Iv(this.normal,Cv),l.push(this.normal[0],this.normal[1],0),f.push(n[0],n[1],0|n[2],this.totalDistance,-this.thickness*O,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,s+=3):(this.extrusions(f,l,n,A,E,this.totalDistance),c.push.apply(c,y(1===this.lastFlip?[e,e+2,e+3]:[e+2,e+1,e+3])),O=-1,Iv(this.normal,A),s+=2),this.lastFlip=O}else{if(zv(this.normal,Nv),h){var T=Tv(),k=Tv();Rv(k,Nv,this.normal),jv(T,Nv,this.normal),l.push(k[0],k[1],0),l.push(T[0],T[1],0),f.push(n[0],n[1],0|n[2],this.totalDistance,this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),f.push(n[0],n[1],0|n[2],this.totalDistance,this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(f,l,n,this.normal,this.thickness,this.totalDistance);c.push.apply(c,y(1===this.lastFlip?[e,e+2,e+3]:[e+2,e+1,e+3])),s+=2}return s}},{key:"simpleSegment",value:function(t,e,r,n,o){var i=0,a=t.indices,u=t.positions,s=t.normals,c=yv([n[0],n[1]]),f=yv([r[0],r[1]]);Bv(Nv,c,f);var l=0;if(this.dash&&(l=this.lineSegmentDistance(c,f),this.totalDistance+=l),this.normal||(this.normal=Tv(),zv(this.normal,Nv)),this.started||(this.started=!0,this.extrusions(u,s,r,this.normal,this.thickness,this.totalDistance-l)),a.push(e+0,e+1,e+2),o){var h=yv([o[0],o[1]]);Uv(c,h)&&jv(h,c,_v(h,Pv(h,c,f))),Bv(Dv,h,c);var p=d(Wv(Fv,Tv(),Nv,Dv,this.thickness),2),v=p[0],g=p[1];Mv(Fv,this.normal);this.extrusions(u,s,n,g,v,this.totalDistance),a.push.apply(a,y(1===this.lastFlip?[e,e+2,e+3]:[e+2,e+1,e+3])),-1,Iv(this.normal,g),i+=2,this.lastFlip=-1}else zv(this.normal,Nv),this.extrusions(u,s,n,this.normal,this.thickness,this.totalDistance),a.push.apply(a,y(1===this.lastFlip?[e,e+2,e+3]:[e+2,e+1,e+3])),i+=2;return i}},{key:"segment",value:function(t,e,r,n,o){var i=0,a=t.indices,u=t.positions,s=t.normals,c="square"===this.cap,f="bevel"===this.join,l=yv([n[0],n[1]]),h=yv([r[0],r[1]]);Bv(Nv,l,h);var p=0;if(this.dash&&(p=this.lineSegmentDistance(l,h),this.totalDistance+=p),this.normal||(this.normal=Tv(),zv(this.normal,Nv)),!this.started)if(this.started=!0,c){var v=Tv(),g=Tv();jv(v,this.normal,Nv),jv(g,this.normal,Nv),s.push(g[0],g[1],0),s.push(v[0],v[1],0),u.push(r[0],r[1],0|r[2],this.totalDistance-p,-this.thickness,0|r[2]),this.complex.indexes.push(this.currentIndex),u.push(r[0],r[1],0|r[2],this.totalDistance-p,this.thickness,0|r[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(u,s,r,this.normal,this.thickness,this.totalDistance-p);if(a.push(e+0,e+1,e+2),o){var m=yv([o[0],o[1]]);Uv(l,m)&&jv(m,l,_v(m,Pv(m,l,h))),Bv(Dv,m,l);var x=d(Wv(Fv,Tv(),Nv,Dv,this.thickness),2),b=x[0],w=x[1],E=Mv(Fv,this.normal)<0?-1:1,A=f;if(!A&&"miter"===this.join)b>this.miterLimit&&(A=!0);A?(s.push(this.normal[0],this.normal[1],0),s.push(w[0],w[1],0),u.push(n[0],n[1],0|n[2],this.totalDistance,-this.thickness*E,0|n[2]),this.complex.indexes.push(this.currentIndex),u.push(n[0],n[1],0|n[2],this.totalDistance,this.thickness*E,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,a.push.apply(a,y(this.lastFlip!==-E?[e,e+2,e+3]:[e+2,e+1,e+3])),a.push(e+2,e+3,e+4),zv(Cv,Dv),Iv(this.normal,Cv),s.push(this.normal[0],this.normal[1],0),u.push(n[0],n[1],0|n[2],this.totalDistance,-this.thickness*E,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,i+=3):(this.extrusions(u,s,n,w,b,this.totalDistance),a.push.apply(a,y(1===this.lastFlip?[e,e+2,e+3]:[e+2,e+1,e+3])),E=-1,Iv(this.normal,w),i+=2),this.lastFlip=E}else{if(zv(this.normal,Nv),c){var O=Tv(),S=Tv();Rv(S,Nv,this.normal),jv(O,Nv,this.normal),s.push(S[0],S[1],0),s.push(O[0],O[1],0),u.push(n[0],n[1],0|n[2],this.totalDistance,this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),u.push(n[0],n[1],0|n[2],this.totalDistance,this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(u,s,n,this.normal,this.thickness,this.totalDistance);a.push.apply(a,y(1===this.lastFlip?[e,e+2,e+3]:[e+2,e+1,e+3])),i+=2}return i}},{key:"extrusions",value:function(t,e,r,n,o,i){e.push(n[0],n[1],0),e.push(n[0],n[1],0),t.push(r[0],r[1],0|r[2],i,-o,0|r[2]),this.complex.indexes.push(this.currentIndex),t.push(r[0],r[1],0|r[2],i,o,0|r[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(t,e){var r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}}]),t}();function Hv(t){var e=t.coordinates,r=t.originCoordinates,n=t.version,o=new Gv({dash:!0,join:"bevel"});if("GAODE2.x"===n){var i=e;Array.isArray(i[0][0])||(i=[e]);var a=r;Array.isArray(a[0][0])||(a=[r]);for(var u=0;u<i.length;u++){var s=i[u],c=a[u];o.extrude_gaode2(s,c)}}else{var f=e;f[0]&&!Array.isArray(f[0][0])&&(f=[e]),f.forEach((function(t){o.extrude(t)}))}var l=o.complex;return{vertices:l.positions,indices:l.indices,normals:l.normals,indexes:l.indexes,size:6}}function Vv(t){var e=function(t){if(dv(t[0]))return t;if(dv(t[0][0]))throw new Error("当前数据不支持标注");if(dv(t[0][0][0])){var e=0,r=0,n=0;return t.forEach((function(t){t.forEach((function(t){e+=t[0],r+=t[1],n++}))})),[e/n,r/n,0]}throw new Error("当前数据不支持标注")}(t.coordinates);return{vertices:[].concat(y(e),y(e),y(e),y(e)),indices:[0,1,2,2,3,0],size:e.length}}function qv(t){var e=t.coordinates,r=up.flatten(e),n=r.vertices,o=r.dimensions,i=r.holes;return{indices:up(n,i,o),vertices:n,size:o}}var Zv=function(){var t=o(r().mark((function t(e){var n,o,i,a,u,s,c,f,l;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.descriptors,o=e.features,i=e.enablePicking,a=e.iconMap,u={a_Color:np,a_Position:op,filter:ip,a_vertexId:ap,a_PickingColor:function(t){var e=t.id;return i?tp(e):[0,0,0]},a_DistanceAndIndex:function(t,e,r,n,o,i){return void 0===i?[r[3],10]:[r[3],i]},a_Total_Distance:function(t,e,r){return[r[5]]},a_Size:function(t){var e=t.size,r=void 0===e?1:e;return Array.isArray(r)?[r[0],r[1]]:[r,0]},a_Normal:function(t,e,r,n,o){return o},a_Miter:function(t,e,r){return[r[4]]},a_iconMapUV:function(t){var e=t.texture,r=a[e]||{x:0,y:0};return[r.x,r.y]}},s={sizePerElement:0,elements:[]},c=0,f=[],l=3,o.forEach((function(t,e){var r=Hv(t),o=r.indices,i=r.vertices,a=r.normals,h=r.size,p=r.indexes;o.forEach((function(t){f.push(t+c)})),l=h;var v=i.length/h;s.sizePerElement=l,s.elements.push({featureIdx:e,vertices:i,normals:a,offset:c}),c+=v;for(var d=function(r){var o=(null==a?void 0:a.slice(3*r,3*r+3))||[],s=i.slice(r*h,r*h+h),c=0;p&&void 0!==p[r]&&(c=p[r]),n.forEach((function(n){var i;n&&u[n.name]&&(i=n.buffer.data).push.apply(i,y(u[n.name](t,e,s,r,o,c)))}))},g=0;g<v;g++)d(g)})),t.abrupt("return",{descriptors:n,featureLayout:s,indices:f});case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Yv={pointFill:function(){var t=o(r().mark((function t(e){var n,o,i,a,u,s,c,f,l;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.descriptors,o=e.features,i=e.enablePicking,a=e.shape2d,u={a_Color:np,a_Position:op,filter:ip,a_vertexId:ap,a_PickingColor:function(t){var e=t.id;return i?tp(e):[0,0,0]},a_Shape:function(t){var e=t.shape,r=void 0===e?2:e;return[a.indexOf(r)]},a_Extrude:function(t,e,r,n){var o=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],i=n%4*3;return[o[i],o[i+1],o[i+2]]},a_Size:function(t){var e=t.size,r=void 0===e?5:e;return Array.isArray(r)?[r[0]]:[r]}},s={sizePerElement:0,elements:[]},c=0,f=[],l=3,o.forEach((function(t,e){var r=Vv(t),o=r.indices,i=r.vertices,a=r.normals,h=r.size;o.forEach((function(t){f.push(t+c)})),l=h;var p=i.length/h;s.sizePerElement=l,s.elements.push({featureIdx:e,vertices:i,normals:a,offset:c}),c+=p;for(var v=function(r){var o=[],a=i.slice(r*h,r*h+h);n.forEach((function(n){var i;n&&u[n.name]&&(i=n.buffer.data).push.apply(i,y(u[n.name](t,e,a,r,o,0)))}))},d=0;d<p;d++)v(d)})),t.abrupt("return",{descriptors:n,featureLayout:s,indices:f});case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),line:Zv,polygonFill:function(){var t=o(r().mark((function t(e){var n,o,i,a,u,s,c,f;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.descriptors,o=e.features,i=e.enablePicking,a={a_Color:np,a_Position:op,filter:ip,a_vertexId:ap,a_PickingColor:function(t){var e=t.id;return i?tp(e):[0,0,0]}},u={sizePerElement:0,elements:[]},s=0,c=[],f=3,o.forEach((function(t,e){var r=qv(t),o=r.indices,i=r.vertices,l=r.normals,h=r.size;o.forEach((function(t){c.push(t+s)})),f=h;var p=i.length/h;u.sizePerElement=f,u.elements.push({featureIdx:e,vertices:i,normals:l,offset:s}),s+=p;for(var v=function(r){var o=[],u=i.slice(r*h,r*h+h);n.forEach((function(n){var i;n&&a[n.name]&&(i=n.buffer.data).push.apply(i,y(a[n.name](t,e,u,r,o,0)))}))},d=0;d<p;d++)v(d)})),t.abrupt("return",{descriptors:n,featureLayout:u,indices:c});case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},$v=function(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?e(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Yv);function Kv(t){return Qv.apply(this,arguments)}function Qv(){return(Qv=o(r().mark((function t(e){var n,o;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.workerType,o=e.data,!$v[n]){t.next=3;break}return t.abrupt("return",$v[n](o));case 3:return t.abrupt("return",Promise.reject(new Error(\'Worker with type "\'.concat(n,\'" non-existent.\'))));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return fi(Kv),t.WorkerSourceMap=Yv,t.createWorker=fi,t.worker=Kv,t}({});\n')},function(t,e,n){"use strict";n.r(e),n.d(e,"createWorker",(function(){return h}));var r,i,o=n(690),a=n(283),s=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},u=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},l=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}},c=0;function h(t,e){var n=this;if("undefined"!=typeof self){var c={process:f};a.default.onmessage=function(h,f){return s(n,void 0,void 0,(function(){var n,s,d,p,g,v,m,y,b,_;return u(this,(function(u){switch(u.label){case 0:switch(u.trys.push([0,19,,20]),h){case"process":return[3,1];case"process-in-batches":return[3,3];case"input-batch":return[3,16];case"input-done":return[3,17]}return[3,18];case 1:if(!t)throw new Error("Worker does not support atomic processing");return[4,t(f.input,f.options||{},c)];case 2:return n=u.sent(),a.default.postMessage("done",{result:n}),[3,18];case 3:if(!e)throw new Error("Worker does not support batched processing");r=new o.default,i=f.options||{},s=e(r,i,c),u.label=4;case 4:u.trys.push([4,9,10,15]),d=l(s),u.label=5;case 5:return[4,d.next()];case 6:if((p=u.sent()).done)return[3,8];g=p.value,a.default.postMessage("output-batch",{result:g}),u.label=7;case 7:return[3,5];case 8:return[3,15];case 9:return v=u.sent(),b={error:v},[3,15];case 10:return u.trys.push([10,,13,14]),p&&!p.done&&(_=d.return)?[4,_.call(d)]:[3,12];case 11:u.sent(),u.label=12;case 12:return[3,14];case 13:if(b)throw b.error;return[7];case 14:return[7];case 15:return a.default.postMessage("done",{}),[3,18];case 16:return r.push(f.input),[3,18];case 17:return r.close(),[3,18];case 18:return[3,20];case 19:return m=u.sent(),y=m instanceof Error?m.message:"",a.default.postMessage("error",{error:y}),[3,20];case 20:return[2]}}))}))}}}function f(t,e){return void 0===e&&(e={}),new Promise((function(n,r){var i=c++,o=function(t,e){if(e.id===i)switch(t){case"done":a.default.removeEventListener(o),n(e.result);break;case"error":a.default.removeEventListener(o),r(e.error)}};a.default.addEventListener(o);var s={id:i,input:t,options:e};a.default.postMessage("process",s)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"WorkerSourceMap",(function(){return h})),n.d(e,"worker",(function(){return d}));var r=n(266),i=n(204),o=n(49),a=n.n(o),s=n(566);n.d(e,"createWorker",(function(){return s.createWorker}));var u=n(1848),l=n(1850),c=n(1851),h={pointFill:l.pointFillModel,line:u.lineModel,polygonFill:c.polygonFillModel},f=Object(i.default)({},h);function d(t){return p.apply(this,arguments)}function p(){return(p=Object(r.default)(a.a.mark((function t(e){var n,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.workerType,r=e.data,!f[n]){t.next=3;break}return t.abrupt("return",f[n](r));case 3:return t.abrupt("return",Promise.reject(new Error('Worker with type "'.concat(n,'" non-existent.'))));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}Object(s.createWorker)(d)},function(t,e,n){"use strict";n.r(e),n.d(e,"getCullFace",(function(){return o}));var r=1029,i=1028;function o(t){switch(t){case"GAODE1.x":case"GAODE2.x":return r;case"MAPBOX":case"SIMPLE":return i;case"GLOBEL":return r;case"DEBAULT":default:return i}}},function(t,e,n){"use strict";function r(t){return"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap}function i(){return"function"==typeof importScripts}n.r(e),n.d(e,"isImageBitmap",(function(){return r})),n.d(e,"isWorker",(function(){return i})),n.d(e,"getReferrer",(function(){return o}));var o=i()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===window.location.protocol?window.parent:window).location.href}},function(t,e,n){"use strict";n.r(e);var r=n(1297);n.d(e,"isURLTemplate",(function(){return r.isURLTemplate})),n.d(e,"expandUrl",(function(){return r.expandUrl})),n.d(e,"getURLFromTemplate",(function(){return r.getURLFromTemplate})),n.d(e,"getWMTSURLFromTemplate",(function(){return r.getWMTSURLFromTemplate}));var i=n(168);n.d(e,"UpdateTileStrategy",(function(){return i.UpdateTileStrategy})),n.d(e,"LoadTileDataStatus",(function(){return i.LoadTileDataStatus}));var o=n(691);n.d(e,"SourceTile",(function(){return o.SourceTile}));var a=n(1298);n.d(e,"TilesetManager",(function(){return a.TilesetManager}));var s=n(328);n.d(e,"osmLonLat2TileXY",(function(){return s.osmLonLat2TileXY})),n.d(e,"osmTileXY2LonLat",(function(){return s.osmTileXY2LonLat})),n.d(e,"tileToBounds",(function(){return s.tileToBounds})),n.d(e,"getTileIndices",(function(){return s.getTileIndices})),n.d(e,"getTileWarpXY",(function(){return s.getTileWarpXY}))},function(t,e,n){"use strict";n.r(e),n.d(e,"isURLTemplate",(function(){return i})),n.d(e,"expandUrl",(function(){return o})),n.d(e,"getURLFromTemplate",(function(){return a})),n.d(e,"getWMTSURLFromTemplate",(function(){return s}));var r=n(328);function i(t){return/(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(t)}function o(t){var e=[],n=/\{([a-z])-([a-z])\}/.exec(t);if(n){var r,i=n[1].charCodeAt(0),o=n[2].charCodeAt(0);for(r=i;r<=o;++r)e.push(t.replace(n[0],String.fromCharCode(r)));return e}if(n=/\{(\d+)-(\d+)\}/.exec(t)){for(var a=parseInt(n[2],10),s=parseInt(n[1],10);s<=a;s++)e.push(t.replace(n[0],s.toString()));return e}return e.push(t),e}function a(t,e){if(!t||!t.length)throw new Error("url is not allowed to be empty");var n=e.x,i=e.y,a=e.z,s=o(t);return s[Math.abs(n+i)%s.length].replace(/\{x\}/g,n.toString()).replace(/\{y\}/g,i.toString()).replace(/\{z\}/g,a.toString()).replace(/\{bbox\}/g,Object(r.tileToBounds)(n,i,a).join(",")).replace(/\{-y\}/g,(Math.pow(2,a)-i-1).toString())}function s(t,e){var n=e.x,r=e.y,i=e.z,o=e.layer,a=e.version,s=void 0===a?"1.0.0":a,u=e.style,l=void 0===u?"default":u,c=e.format,h=e.service,f=void 0===h?"WMTS":h,d=e.tileMatrixset;return"".concat(t,"&SERVICE=").concat(f,"&REQUEST=GetTile&VERSION=").concat(s,"&LAYER=").concat(o,"&STYLE=").concat(l,"&TILEMATRIXSET=").concat(d,"&FORMAT=").concat(c,"&TILECOL=").concat(n,"&TILEROW=").concat(r,"&TILEMATRIX=").concat(i)}},function(t,e,n){"use strict";n.r(e),n.d(e,"TilesetManager",(function(){return O}));var r=n(74),i=n(204),o=n(19),a=n(20),s=n(68),u=n(61),l=n(63),c=n(32),h=n(52),f=n(209),d=n.n(f),p=n(122),g=n(407),v=n(691),m=n(168),y=n(945),b=n(328);function _(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(c.default)(t);if(e){var i=Object(c.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(l.default)(this,n)}}var O=function(t){Object(u.default)(n,t);var e=w(n);function n(t){var r;return Object(o.default)(this,n),r=e.call(this),Object(h.default)(Object(s.default)(r),"currentTiles",[]),Object(h.default)(Object(s.default)(r),"cacheTiles",new Map),Object(h.default)(Object(s.default)(r),"throttleUpdate",Object(p.throttle)((function(t,e){r.update(t,e)}),16)),Object(h.default)(Object(s.default)(r),"onTileLoad",(function(t){r.emit("tile-loaded",t),r.updateTileVisible()})),Object(h.default)(Object(s.default)(r),"onTileError",(function(t,e){r.emit("tile-error",{error:t,tile:e}),r.updateTileVisible()})),Object(h.default)(Object(s.default)(r),"onTileUnload",(function(t){r.emit("tile-unload",t)})),r.options={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0,extent:g.DEFAULT_EXTENT,getTileData:g.NOOP,warp:!0,updateStrategy:m.UpdateTileStrategy.Overlap},r.updateOptions(t),r}return Object(a.default)(n,[{key:"isLoaded",get:function(){return this.currentTiles.every((function(t){return t.isDone}))}},{key:"tiles",get:function(){return Array.from(this.cacheTiles.values()).sort((function(t,e){return t.z-e.z}))}},{key:"updateOptions",value:function(t){var e=void 0===t.minZoom?this.options.minZoom:Math.ceil(t.minZoom),n=void 0===t.maxZoom?this.options.maxZoom:Math.floor(t.maxZoom);this.options=Object(i.default)(Object(i.default)(Object(i.default)({},this.options),t),{},{minZoom:e,maxZoom:n})}},{key:"update",value:function(t,e){var n=this,r=Math.max(0,Math.ceil(t));if(!this.lastViewStates||this.lastViewStates.zoom!==r||!Object(y.isLatLonBoundsContains)(this.lastViewStates.latLonBoundsBuffer,e)){var i=Object(y.getLatLonBoundsBuffer)(e,g.BOUNDS_BUFFER_SCALE);this.lastViewStates={zoom:r,latLonBounds:e,latLonBoundsBuffer:i};var o=!1,a=this.getTileIndices(r,i).filter((function(t){return n.options.warp||t.x>=0&&t.x<Math.pow(2,r)}));this.currentTiles=a.map((function(t){var e,r,i=t.x,a=t.y,s=t.z,u=n.getTile(i,a,s);return u?(((null===(e=u)||void 0===e?void 0:e.isFailure)||(null===(r=u)||void 0===r?void 0:r.isCancelled))&&u.loadData({getData:n.options.getTileData,onLoad:n.onTileLoad,onError:n.onTileError}),u):(u=n.createTile(i,a,s),o=!0,u)})),o&&this.resizeCacheTiles(),this.updateTileVisible(),this.pruneRequests()}}},{key:"reloadAll",value:function(){var t,e=_(this.cacheTiles);try{for(e.s();!(t=e.n()).done;){var n=Object(r.default)(t.value,2),i=n[0],o=n[1];this.currentTiles.includes(o)||(this.cacheTiles.delete(i),this.onTileUnload(o)),this.onTileUnload(o),o.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError})}}catch(t){e.e(t)}finally{e.f()}}},{key:"pruneRequests",value:function(){var t,e=[],n=_(this.cacheTiles.values());try{for(n.s();!(t=n.n()).done;){var r=t.value;r.isLoading&&(r.isCurrent||r.isVisible||e.push(r))}}catch(t){n.e(t)}finally{n.f()}for(;e.length>0;){e.shift().abortLoad()}}},{key:"getTileByLngLat",value:function(t,e,n){var r=this.options.zoomOffset,i=Math.ceil(n)+r,o=Object(b.osmLonLat2TileXY)(t,e,i);return this.tiles.filter((function(t){return t.key==="".concat(o[0],"_").concat(o[1],"_").concat(i)}))[0]}},{key:"destroy",value:function(){var t,e=_(this.cacheTiles.values());try{for(e.s();!(t=e.n()).done;){var n=t.value;n.isLoading&&n.abortLoad()}}catch(t){e.e(t)}finally{e.f()}this.cacheTiles.clear(),this.currentTiles=[],this.removeAllListeners()}},{key:"updateTileVisible",value:function(){var t,e=this.options.updateStrategy,n=new Map,r=_(this.cacheTiles.values());try{for(r.s();!(t=r.n()).done;){var i=t.value;n.set(i.key,i.isVisible),i.isCurrent=!1,i.isVisible=!1}}catch(t){r.e(t)}finally{r.f()}var o,a=_(this.currentTiles);try{for(a.s();!(o=a.n()).done;){var s=o.value;s.isCurrent=!0,s.isVisible=!0}}catch(t){a.e(t)}finally{a.f()}var u=Array.from(this.cacheTiles.values());"function"==typeof e?e(u):g.UPDATE_TILE_STRATEGIES[e](u);var l=!1;Array.from(this.cacheTiles.values()).forEach((function(t){t.isVisible!==n.get(t.key)?(t.isVisibleChange=!0,l=!0):t.isVisibleChange=!1})),l&&this.emit("tile-update")}},{key:"getTileIndices",value:function(t,e){var n=this.options,r=n.tileSize,i=n.extent,o=n.zoomOffset,a=Math.floor(this.options.maxZoom),s=Math.ceil(this.options.minZoom);return Object(b.getTileIndices)({maxZoom:a,minZoom:s,zoomOffset:o,tileSize:r,zoom:t,latLonBounds:e,extent:i})}},{key:"getTileId",value:function(t,e,n){return"".concat(t,",").concat(e,",").concat(n)}},{key:"getTile",value:function(t,e,n){var r=this.getTileId(t,e,n);return this.cacheTiles.get(r)}},{key:"createTile",value:function(t,e,n){var r=this.getTileId(t,e,n),i=new v.SourceTile({x:t,y:e,z:n,tileSize:this.options.tileSize,warp:this.options.warp});return this.cacheTiles.set(r,i),i.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),i}},{key:"resizeCacheTiles",value:function(){var t=g.DEFAULT_CACHE_SCALE*this.currentTiles.length;if(this.cacheTiles.size>t){var e,n=_(this.cacheTiles);try{for(n.s();!(e=n.n()).done;){var i=Object(r.default)(e.value,2),o=i[0],a=i[1];if(a.isVisible||this.currentTiles.includes(a)||(this.cacheTiles.delete(o),this.onTileUnload(a)),this.cacheTiles.size<=t)break}}catch(t){n.e(t)}finally{n.f()}}this.rebuildTileTree()}},{key:"rebuildTileTree",value:function(){var t,e=_(this.cacheTiles.values());try{for(e.s();!(t=e.n()).done;){var n=t.value;n.parent=null,n.children.length=0}}catch(t){e.e(t)}finally{e.f()}var r,i=_(this.cacheTiles.values());try{for(i.s();!(r=i.n()).done;){var o=r.value,a=this.getNearestAncestor(o.x,o.y,o.z);o.parent=a,null!=a&&a.children&&a.children.push(o)}}catch(t){i.e(t)}finally{i.f()}}},{key:"getNearestAncestor",value:function(t,e,n){for(;n>this.options.minZoom;){t=Math.floor(t/2),e=Math.floor(e/2),n-=1;var r=this.getTile(t,e,n);if(r)return r}return null}}]),n}(d.a)},function(t,e,n){"use strict";n.r(e),n.d(e,"lineAtOffset",(function(){return u})),n.d(e,"lineAtOffsetAsyc",(function(){return l}));var r=n(74),i=n(204),o=n(946),a=n(1854),s=n(1855);function u(t,e){var n=e.featureId,u=t.data.dataArray;return"number"==typeof n&&(u=u.filter((function(t){return t.id===n}))),u.map((function(t){var n=function(t,e){var n=e.offset,i=e.shape,u=e.thetaOffset,l=e.mapVersion,c=e.segmentNumber,h=void 0===c?30:c,f=e.autoFit,d=void 0===f||f,p=t.coordinates;if("line"===i)return Object(s.pathLineAtOffset)(p,n);var g,v=p[0],m=p[1],y="string"==typeof u?t[u]||0:u;switch(i){case"arc":g=o.arcLineAtOffset;break;case"greatcircle":g=a.greatCircleLineAtOffset;break;default:g=o.arcLineAtOffset}var b=g(v,m,n,y,l,h,d),_=Object(r.default)(b,3),x=_[0],w=_[1],O=_[2];return{lng:x,lat:w,height:O}}(t,e);return Object(i.default)(Object(i.default)({},t),n)}))}function l(t,e){return new Promise((function(n){t.inited?n(u(t,e)):t.once("update",(function(){n(u(t,e))}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(19),i=n(20),o=n(61),a=n(63),s=n(32),u=n(252),l=n.n(u),c=n(141);function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(s.default)(t);if(e){var i=Object(s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.default)(this,n)}}var f=function(t){Object(o.default)(n,t);var e=h(n);function n(t,i,o){var a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Object(r.default)(this,n);var u=c.default.mousePos(i.getCanvasContainer(),o),h=i.unproject(u);return(a=e.call(this,t,l()({point:u,lngLat:h,originalEvent:o},s))).defaultPrevented=!1,a.target=i,a}return Object(i.default)(n,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),n}(n(90).Event)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(19),i=n(20),o=n(61),a=n(63),s=n(32),u=n(75),l=n(141);function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(s.default)(t);if(e){var i=Object(s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.default)(this,n)}}var h=function(t){Object(o.default)(n,t);var e=c(n);function n(t,i,o){var a;Object(r.default)(this,n);var s="touchend"===t?o.changedTouches:o.touches,c=l.default.touchPos(i.getCanvasContainer(),s),h=c.map((function(t){return i.unproject(t)})),f=c.reduce((function(t,e,n,r){return t.add(e.div(r.length))}),new u.default(0,0)),d=i.unproject(f);return(a=e.call(this,t,{points:c,point:f,lngLats:h,lngLat:d,originalEvent:o})).defaultPrevented=!1,a}return Object(i.default)(n,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),n}(n(90).Event)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return l}));var r=n(19),i=n(20),o=n(61),a=n(63),s=n(32);function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(s.default)(t);if(e){var i=Object(s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.default)(this,n)}}var l=function(t){Object(o.default)(n,t);var e=u(n);function n(t,i,o){var a;return Object(r.default)(this,n),(a=e.call(this,t,{originalEvent:o})).defaultPrevented=!1,a}return Object(i.default)(n,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),n}(n(90).Event)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(19),i=n(20),o=n(392),a=n(61),s=n(63),u=n(32),l=n(509),c=n(334);function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(u.default)(t);if(e){var i=Object(u.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.default)(this,n)}}var f=function(t){Object(a.default)(n,t);var e=h(n);function n(){return Object(r.default)(this,n),e.apply(this,arguments)}return Object(i.default)(n,[{key:"mousedown",value:function(t,e){Object(o.default)(Object(u.default)(n.prototype),"mousedown",this).call(this,t,e),this.lastPoint&&(this.active=!0)}},{key:"move",value:function(t,e){return{around:e,panDelta:e.sub(t)}}},{key:"correctButton",value:function(t,e){return e===c.LEFT_BUTTON&&!t.ctrlKey}}]),n}(l.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(19),i=n(20),o=n(61),a=n(63),s=n(32),u=n(509),l=n(334);function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(s.default)(t);if(e){var i=Object(s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.default)(this,n)}}var h=function(t){Object(o.default)(n,t);var e=c(n);function n(){return Object(r.default)(this,n),e.apply(this,arguments)}return Object(i.default)(n,[{key:"correctButton",value:function(t,e){return e===l.LEFT_BUTTON&&t.ctrlKey||e===l.RIGHT_BUTTON}},{key:"move",value:function(t,e){var n=-.5*(e.y-t.y);if(n)return this.active=!0,{pitchDelta:n}}},{key:"contextmenu",value:function(t){t.preventDefault()}}]),n}(u.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(19),i=n(20),o=n(61),a=n(63),s=n(32),u=n(509),l=n(334);function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(s.default)(t);if(e){var i=Object(s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.default)(this,n)}}var h=function(t){Object(o.default)(n,t);var e=c(n);function n(){return Object(r.default)(this,n),e.apply(this,arguments)}return Object(i.default)(n,[{key:"contextmenu",value:function(t){t.preventDefault()}},{key:"correctButton",value:function(t,e){return e===l.LEFT_BUTTON&&t.ctrlKey||e===l.RIGHT_BUTTON}},{key:"move",value:function(t,e){var n=.8*(e.x-t.x);if(n)return this.active=!0,{bearingDelta:n}}}]),n}(u.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(19),i=n(20),o=n(75),a=n(603),s=function(){function t(e){Object(r.default)(this,t),this.minTouches=1,this.clickTolerance=e.clickTolerance||1,this.reset()}return Object(i.default)(t,[{key:"reset",value:function(){this.active=!1,this.touches={},this.sum=new o.default(0,0)}},{key:"touchstart",value:function(t,e,n){return this.calculateTransform(t,e,n)}},{key:"touchmove",value:function(t,e,n){if(this.active)return t.preventDefault(),this.calculateTransform(t,e,n)}},{key:"touchend",value:function(t,e,n){this.calculateTransform(t,e,n),this.active&&n.length<this.minTouches&&this.reset()}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}},{key:"calculateTransform",value:function(t,e,n){n.length>0&&(this.active=!0);var r=Object(a.indexTouches)(n,e),i=new o.default(0,0),s=new o.default(0,0),u=0;for(var l in r)if(r[l]){var c=r[l],h=this.touches[l];h&&(i._add(c),s._add(c.sub(h)),u++,r[l]=c)}if(this.touches=r,!(u<this.minTouches)&&s.mag()){var f=s.div(u);if(this.sum._add(f),!(this.sum.mag()<this.clickTolerance))return{around:i.div(u),panDelta:f}}}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(19),i=n(20),o=n(392),a=n(61),s=n(63),u=n(32),l=n(510);function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(u.default)(t);if(e){var i=Object(u.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.default)(this,n)}}function h(t){return Math.abs(t.y)>Math.abs(t.x)}var f=function(t){Object(a.default)(n,t);var e=c(n);function n(){return Object(r.default)(this,n),e.apply(this,arguments)}return Object(i.default)(n,[{key:"reset",value:function(){Object(o.default)(Object(u.default)(n.prototype),"reset",this).call(this),this.valid=void 0,delete this.firstMove,delete this.lastPoints}},{key:"start",value:function(t){this.lastPoints=t,h(t[0].sub(t[1]))&&(this.valid=!1)}},{key:"move",value:function(t,e,n){var r=t[0].sub(this.lastPoints[0]),i=t[1].sub(this.lastPoints[1]);if(this.valid=this.gestureBeginsVertically(r,i,n.timeStamp),this.valid){this.lastPoints=t,this.active=!0;return{pitchDelta:-.5*((r.y+i.y)/2)}}}},{key:"gestureBeginsVertically",value:function(t,e,n){if(void 0!==this.valid)return this.valid;var r=t.mag()>=2,i=e.mag()>=2;if(r||i){if(!r||!i)return void 0===this.firstMove&&(this.firstMove=n),n-this.firstMove<100&&void 0;var o=t.y>0==e.y>0;return h(t)&&h(e)&&o}}}]),n}(l.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(19),i=n(20),o=n(392),a=n(61),s=n(63),u=n(32),l=n(510);function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(u.default)(t);if(e){var i=Object(u.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.default)(this,n)}}function h(t,e){return 180*t.angleWith(e)/Math.PI}var f=function(t){Object(a.default)(n,t);var e=c(n);function n(){return Object(r.default)(this,n),e.apply(this,arguments)}return Object(i.default)(n,[{key:"reset",value:function(){Object(o.default)(Object(u.default)(n.prototype),"reset",this).call(this),delete this.minDiameter,delete this.startVector,delete this.vector}},{key:"start",value:function(t){this.startVector=this.vector=t[0].sub(t[1]),this.minDiameter=t[0].dist(t[1])}},{key:"move",value:function(t,e){var n=this.vector;if(this.vector=t[0].sub(t[1]),this.active||!this.isBelowThreshold(this.vector))return this.active=!0,{bearingDelta:h(this.vector,n),pinchAround:e}}},{key:"isBelowThreshold",value:function(t){this.minDiameter=Math.min(this.minDiameter,t.mag());var e=25/(Math.PI*this.minDiameter)*360,n=h(t,this.startVector);return Math.abs(n)<e}}]),n}(l.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(19),i=n(20),o=n(392),a=n(61),s=n(63),u=n(32),l=n(510);function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(u.default)(t);if(e){var i=Object(u.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.default)(this,n)}}function h(t,e){return Math.log(t/e)/Math.LN2}var f=function(t){Object(a.default)(n,t);var e=c(n);function n(){return Object(r.default)(this,n),e.apply(this,arguments)}return Object(i.default)(n,[{key:"reset",value:function(){Object(o.default)(Object(u.default)(n.prototype),"reset",this).call(this),delete this.distance,delete this.startDistance}},{key:"start",value:function(t){this.startDistance=this.distance=t[0].dist(t[1])}},{key:"move",value:function(t,e){var n=this.distance;if(this.distance=t[0].dist(t[1]),this.active||!(Math.abs(h(this.distance,this.startDistance))<.1))return this.active=!0,{zoomDelta:h(this.distance,n),pinchAround:e}}}]),n}(l.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"EarthMap",(function(){return w}));var r=n(19),i=n(20),o=n(68),a=n(61),s=n(63),u=n(32),l=n(52),c=n(45),h=n(122),f=n(790),d=n(102),p=n(363),g=n(75),v=n(791),m=n(69),y=n(529),b=n(792);function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(u.default)(t);if(e){var i=Object(u.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.default)(this,n)}}!function(t,e){var n="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM,r="undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram);if(!n&&!r&&(e||(e=document),e)){var i=e.head||e.getElementsByTagName("head")[0];if(!i){i=e.createElement("head");var o=e.body||e.getElementsByTagName("body")[0];o?o.parentNode.insertBefore(i,o):e.documentElement.appendChild(i)}var a=e.createElement("style");a.type="text/css",a.styleSheet?a.styleSheet.cssText=t:a.appendChild(e.createTextNode(t)),i.appendChild(a)}}(".l7-map {\n font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;\n overflow: hidden;\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.l7-canvas {\n position: absolute;\n left: 0;\n top: 0;\n}\n\n.l7-map:-webkit-full-screen {\n width: 100%;\n height: 100%;\n}\n\n.l7-canary {\n background-color: salmon;\n}\n\n.l7-canvas-container.l7-interactive,\n.l7-ctrl-group button.l7-ctrl-compass {\n cursor: -webkit-grab;\n cursor: grab;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.l7-canvas-container.l7-interactive.l7-track-pointer {\n cursor: pointer;\n}\n\n.l7-canvas-container.l7-interactive:active,\n.l7-ctrl-group button.l7-ctrl-compass:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n\n.l7-canvas-container.l7-touch-zoom-rotate,\n.l7-canvas-container.l7-touch-zoom-rotate .l7-canvas {\n -ms-touch-action: pan-x pan-y;\n touch-action: pan-x pan-y;\n}\n\n.l7-canvas-container.l7-touch-drag-pan,\n.l7-canvas-container.l7-touch-drag-pan .l7-canvas {\n -ms-touch-action: pinch-zoom;\n touch-action: pinch-zoom;\n}\n\n.l7-canvas-container.l7-touch-zoom-rotate.l7-touch-drag-pan,\n.l7-canvas-container.l7-touch-zoom-rotate.l7-touch-drag-pan .l7-canvas {\n -ms-touch-action: none;\n touch-action: none;\n}\n\n.l7-ctrl-top-left,\n.l7-ctrl-top-right,\n.l7-ctrl-bottom-left,\n.l7-ctrl-bottom-right { position: absolute; pointer-events: none; z-index: 2; }\n.l7-ctrl-top-left { top: 0; left: 0; }\n.l7-ctrl-top-right { top: 0; right: 0; }\n.l7-ctrl-bottom-left { bottom: 0; left: 0; }\n.l7-ctrl-bottom-right { right: 0; bottom: 0; }\n\n.l7-ctrl {\n clear: both;\n pointer-events: auto;\n\n /* workaround for a Safari bug https://github.com/mapbox/mapbox-gl-js/issues/8185 */\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n.l7-ctrl-top-left .l7-ctrl { margin: 10px 0 0 10px; float: left; }\n.l7-ctrl-top-right .l7-ctrl { margin: 10px 10px 0 0; float: right; }\n.l7-ctrl-bottom-left .l7-ctrl { margin: 0 0 10px 10px; float: left; }\n.l7-ctrl-bottom-right .l7-ctrl { margin: 0 10px 10px 0; float: right; }\n\n\n.l7-crosshair,\n.l7-crosshair .l7-interactive,\n.l7-crosshair .l7-interactive:active {\n cursor: crosshair;\n}\n\n.l7-boxzoom {\n position: absolute;\n top: 0;\n left: 0;\n width: 0;\n height: 0;\n background: #fff;\n border: 2px dotted #202020;\n opacity: 0.5;\n z-index: 10;\n}\n");var x={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,trackResize:!0,renderWorldCopies:!0,pitchEnabled:!0,rotateEnabled:!0},w=function(t){Object(a.default)(n,t);var e=_(n);function n(t){var i;return Object(r.default)(this,n),i=e.call(this,Object(h.merge)({},x,t)),Object(l.default)(Object(o.default)(i),"renderTaskQueue",new b.default),Object(l.default)(Object(o.default)(i),"trackResize",!0),Object(l.default)(Object(o.default)(i),"onWindowOnline",(function(){i.update()})),Object(l.default)(Object(o.default)(i),"onWindowResize",(function(t){i.trackResize&&i.resize({originalEvent:t}).update()})),i.initContainer(),i.resize(),i.handlers=new v.default(Object(o.default)(i),i.options),"undefined"!=typeof window&&(window.addEventListener("online",i.onWindowOnline,!1),window.addEventListener("resize",i.onWindowResize,!1),window.addEventListener("orientationchange",i.onWindowResize,!1)),i}return Object(i.default)(n,[{key:"resize",value:function(t){var e=this.containerDimensions(),n=e[0],r=e[1];this.transform.resize(n,r);var i=!this.moving;return i&&(this.stop(),this.emit("movestart",new Event("movestart",t)),this.emit("move",new Event("move",t))),this.emit("resize",new Event("resize",t)),i&&this.emit("moveend",new Event("moveend",t)),this}},{key:"getContainer",value:function(){return this.container}},{key:"getCanvas",value:function(){return this.canvas}},{key:"getCanvasContainer",value:function(){return this.canvasContainer}},{key:"project",value:function(t){return this.transform.locationPoint(d.default.convert(t))}},{key:"unproject",value:function(t){return this.transform.pointLocation(g.default.convert(t))}},{key:"getBounds",value:function(){return this.transform.getBounds()}},{key:"getMaxBounds",value:function(){return this.transform.getMaxBounds()}},{key:"setMaxBounds",value:function(t){this.transform.setMaxBounds(p.default.convert(t))}},{key:"setStyle",value:function(t){}},{key:"setMinZoom",value:function(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this.getZoom()<t&&this.setZoom(t),this;throw new Error("minZoom must be between ".concat(-2," and the current maxZoom, inclusive"))}},{key:"getMinZoom",value:function(){return this.transform.minZoom}},{key:"setMaxZoom",value:function(t){if((t=null==t?22:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this.getZoom()>t&&this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to ".concat(0));if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this.getPitch()<t&&this.setPitch(t),this;throw new Error("minPitch must be between ".concat(0," and the current maxPitch, inclusive"))}},{key:"getMinPitch",value:function(){return this.transform.minPitch}},{key:"setMaxPitch",value:function(t){if((t=null==t?60:t)>60)throw new Error("maxPitch must be less than or equal to ".concat(60));if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this.getPitch()>t&&this.setPitch(t),this;throw new Error("maxPitch must be greater than the current minPitch")}},{key:"getMaxPitch",value:function(){return this.transform.maxPitch}},{key:"getRenderWorldCopies",value:function(){return this.transform.renderWorldCopies}},{key:"setRenderWorldCopies",value:function(t){this.transform.renderWorldCopies=!!t}},{key:"remove",value:function(){this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear()}},{key:"requestRenderFrame",value:function(t){return this.update(),this.renderTaskQueue.add(t)}},{key:"cancelRenderFrame",value:function(t){return this.renderTaskQueue.remove(t)}},{key:"triggerRepaint",value:function(){var t=this;this.frame||(this.frame=Object(m.renderframe)((function(e){y.PerformanceUtils.frame(e),t.frame=null,t.update(e)})))}},{key:"update",value:function(t){var e=this;this.frame||(this.frame=Object(m.renderframe)((function(n){y.PerformanceUtils.frame(n),e.frame=null,e.renderTaskQueue.run(t)})))}},{key:"initContainer",value:function(){if("string"==typeof this.options.container){if(this.container=window.document.getElementById(this.options.container),!this.container)throw new Error("Container '".concat(this.options.container,"' not found."))}else{if(!(this.options.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this.container=this.options.container}var t=this.container;t.classList.add("l7-map");var e=this.canvasContainer=c.DOM.create("div","l7-canvas-container",t);this.options.interactive&&e.classList.add("l7-interactive")}},{key:"containerDimensions",value:function(){var t=0,e=0;return this.container&&(t=this.container.clientWidth||400,e=this.container.clientHeight||300),[t,e]}},{key:"resizeCanvas",value:function(t,e){var n=c.DOM.DPR||1;this.canvas.width=n*t,this.canvas.height=n*e,this.canvas.style.width="".concat(t,"px"),this.canvas.style.height="".concat(e,"px")}}]),n}(f.default)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return v}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(50),u=n.n(s),l=n(51),c=n.n(l),h=n(28),f=n.n(h),d=n(326),p=n(1875);function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var v=function(t){u()(n,t);var e=g(n);function n(){return i()(this,n),e.apply(this,arguments)}return a()(n,[{key:"getServiceConstructor",value:function(){return p.default}}]),n}(d.default)},function(t,e,n){"use strict";n.r(e);var r=n(73),i=n(55);e.default=function(t,e,n,o,a){var s=[];if(t.required||!t.required&&o.hasOwnProperty(t.field)){if(Object(i.isEmptyValue)(e,"string")&&!t.required)return n();r.default.required(t,e,o,s,a,"string"),Object(i.isEmptyValue)(e,"string")||(r.default.type(t,e,o,s,a),r.default.range(t,e,o,s,a),r.default.pattern(t,e,o,s,a),!0===t.whitespace&&r.default.whitespace(t,e,o,s,a))}n(s)}},function(t,e,n){"use strict";n.r(e);var r=n(55);e.default=function(t,e,n,i,o){(/^\s+$/.test(e)||""===e)&&i.push(r.format(o.messages.whitespace,t.fullField))}},function(t,e,n){"use strict";n.r(e);var r=n(274),i=n.n(r),o=n(55),a=n(692),s={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},u={integer:function(t){return u.number(t)&&parseInt(t,10)===t},float:function(t){return u.number(t)&&!u.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(t){return!1}},date:function(t){return"function"==typeof t.getTime&&"function"==typeof t.getMonth&&"function"==typeof t.getYear},number:function(t){return!isNaN(t)&&"number"==typeof t},object:function(t){return"object"===(void 0===t?"undefined":i()(t))&&!u.array(t)},method:function(t){return"function"==typeof t},email:function(t){return"string"==typeof t&&!!t.match(s.email)&&t.length<255},url:function(t){return"string"==typeof t&&!!t.match(s.url)},hex:function(t){return"string"==typeof t&&!!t.match(s.hex)}};e.default=function(t,e,n,r,s){if(t.required&&void 0===e)Object(a.default)(t,e,n,r,s);else{var l=t.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(l)>-1?u[l](e)||r.push(o.format(s.messages.types[l],t.fullField,t.type)):l&&(void 0===e?"undefined":i()(e))!==t.type&&r.push(o.format(s.messages.types[l],t.fullField,t.type))}}},function(t,e,n){"use strict";n.r(e);var r=n(55);e.default=function(t,e,n,i,o){var a="number"==typeof t.len,s="number"==typeof t.min,u="number"==typeof t.max,l=e,c=null,h="number"==typeof e,f="string"==typeof e,d=Array.isArray(e);if(h?c="number":f?c="string":d&&(c="array"),!c)return!1;d&&(l=e.length),f&&(l=e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?l!==t.len&&i.push(r.format(o.messages[c].len,t.fullField,t.len)):s&&!u&&l<t.min?i.push(r.format(o.messages[c].min,t.fullField,t.min)):u&&!s&&l>t.max?i.push(r.format(o.messages[c].max,t.fullField,t.max)):s&&u&&(l<t.min||l>t.max)&&i.push(r.format(o.messages[c].range,t.fullField,t.min,t.max))}},function(t,e,n){"use strict";n.r(e);var r=n(55);e.default=function(t,e,n,i,o){t.enum=Array.isArray(t.enum)?t.enum:[],-1===t.enum.indexOf(e)&&i.push(r.format(o.messages.enum,t.fullField,t.enum.join(", ")))}},function(t,e,n){"use strict";n.r(e);var r=n(55);e.default=function(t,e,n,i,o){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||i.push(r.format(o.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"==typeof t.pattern){new RegExp(t.pattern).test(e)||i.push(r.format(o.messages.pattern.mismatch,t.fullField,e,t.pattern))}}},function(t,e,n){"use strict";n.r(e);var r=n(73),i=n(55);e.default=function(t,e,n,o,a){var s=[];if(t.required||!t.required&&o.hasOwnProperty(t.field)){if(Object(i.isEmptyValue)(e)&&!t.required)return n();r.default.required(t,e,o,s,a),void 0!==e&&r.default.type(t,e,o,s,a)}n(s)}},function(t,e,n){"use strict";n.r(e);var r=n(73),i=n(55);e.default=function(t,e,n,o,a){var s=[];if(t.required||!t.required&&o.hasOwnProperty(t.field)){if(Object(i.isEmptyValue)(e)&&!t.required)return n();r.default.required(t,e,o,s,a),void 0!==e&&(r.default.type(t,e,o,s,a),r.default.range(t,e,o,s,a))}n(s)}},function(t,e,n){"use strict";n.r(e);var r=n(55),i=n(73);e.default=function(t,e,n,o,a){var s=[];if(t.required||!t.required&&o.hasOwnProperty(t.field)){if(Object(r.isEmptyValue)(e)&&!t.required)return n();i.default.required(t,e,o,s,a),void 0!==e&&i.default.type(t,e,o,s,a)}n(s)}},function(t,e,n){"use strict";n.r(e);var r=n(73),i=n(55);e.default=function(t,e,n,o,a){var s=[];if(t.required||!t.required&&o.hasOwnProperty(t.field)){if(Object(i.isEmptyValue)(e)&&!t.required)return n();r.default.required(t,e,o,s,a),Object(i.isEmptyValue)(e)||r.default.type(t,e,o,s,a)}n(s)}},function(t,e,n){"use strict";n.r(e);var r=n(73),i=n(55);e.default=function(t,e,n,o,a){var s=[];if(t.required||!t.required&&o.hasOwnProperty(t.field)){if(Object(i.isEmptyValue)(e)&&!t.required)return n();r.default.required(t,e,o,s,a),void 0!==e&&(r.default.type(t,e,o,s,a),r.default.range(t,e,o,s,a))}n(s)}},function(t,e,n){"use strict";n.r(e);var r=n(73),i=n(55);e.default=function(t,e,n,o,a){var s=[];if(t.required||!t.required&&o.hasOwnProperty(t.field)){if(Object(i.isEmptyValue)(e)&&!t.required)return n();r.default.required(t,e,o,s,a),void 0!==e&&(r.default.type(t,e,o,s,a),r.default.range(t,e,o,s,a))}n(s)}},function(t,e,n){"use strict";n.r(e);var r=n(73),i=n(55);e.default=function(t,e,n,o,a){var s=[];if(t.required||!t.required&&o.hasOwnProperty(t.field)){if(Object(i.isEmptyValue)(e,"array")&&!t.required)return n();r.default.required(t,e,o,s,a,"array"),Object(i.isEmptyValue)(e,"array")||(r.default.type(t,e,o,s,a),r.default.range(t,e,o,s,a))}n(s)}},function(t,e,n){"use strict";n.r(e);var r=n(73),i=n(55);e.default=function(t,e,n,o,a){var s=[];if(t.required||!t.required&&o.hasOwnProperty(t.field)){if(Object(i.isEmptyValue)(e)&&!t.required)return n();r.default.required(t,e,o,s,a),void 0!==e&&r.default.type(t,e,o,s,a)}n(s)}},function(t,e,n){"use strict";n.r(e);var r=n(73),i=n(55);e.default=function(t,e,n,o,a){var s=[];if(t.required||!t.required&&o.hasOwnProperty(t.field)){if(Object(i.isEmptyValue)(e)&&!t.required)return n();r.default.required(t,e,o,s,a),e&&r.default.enum(t,e,o,s,a)}n(s)}},function(t,e,n){"use strict";n.r(e);var r=n(73),i=n(55);e.default=function(t,e,n,o,a){var s=[];if(t.required||!t.required&&o.hasOwnProperty(t.field)){if(Object(i.isEmptyValue)(e,"string")&&!t.required)return n();r.default.required(t,e,o,s,a),Object(i.isEmptyValue)(e,"string")||r.default.pattern(t,e,o,s,a)}n(s)}},function(t,e,n){"use strict";n.r(e);var r=n(73),i=n(55);e.default=function(t,e,n,o,a){var s=[];if(t.required||!t.required&&o.hasOwnProperty(t.field)){if(Object(i.isEmptyValue)(e)&&!t.required)return n();if(r.default.required(t,e,o,s,a),!Object(i.isEmptyValue)(e)){var u=void 0;u="number"==typeof e?new Date(e):e,r.default.type(t,u,o,s,a),u&&r.default.range(t,u.getTime(),o,s,a)}}n(s)}},function(t,e,n){"use strict";n.r(e);var r=n(274),i=n.n(r),o=n(73);e.default=function(t,e,n,r,a){var s=[],u=Array.isArray(e)?"array":void 0===e?"undefined":i()(e);o.default.required(t,e,r,s,a,u),n(s)}},function(t,e,n){"use strict";n.r(e),n.d(e,"ECEventProcessor",(function(){return o}));var r=n(0),i=n(127),o=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},o={};if(r.isString(t)){var a=Object(i.parseClassType)(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var s=["Index","Name","Id"],u={name:1,dataIndex:1,dataType:1};r.each(t,(function(t,r){for(var i=!1,a=0;a<s.length;a++){var l=s[a],c=r.lastIndexOf(l);if(c>0&&c===r.length-l.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[l.toLowerCase()]=t,i=!0)}}u.hasOwnProperty(r)&&(n[r]=t,i=!0),i||(o[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:o}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,u=e.dataQuery;return l(s,o,"mainType")&&l(s,o,"subType")&&l(s,o,"index","componentIndex")&&l(s,o,"name")&&l(s,o,"id")&&l(u,i,"name")&&l(u,i,"dataIndex")&&l(u,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function l(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}()},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(511),o=n(108),a=!1;function s(){a||(a=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function u(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var l=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=u}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,o=e.length;r<o;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,Object(i.default)(n,u)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];for(var i=r,a=t;i;)i.parent=a,i.updateTransform(),e.push(i),a=i,i=i.getClipPath()}if(t.childrenRef){for(var u=t.childrenRef(),l=0;l<u.length;l++){var c=u[l];t.__dirty&&(c.__dirty|=o.REDRAW_BIT),this._updateAndAddDisplayable(c,e,n)}t.__dirty=0}else{var h=t;e&&e.length?h.__clipPaths=e:h.__clipPaths&&h.__clipPaths.length>0&&(h.__clipPaths=[]),isNaN(h.z)&&(s(),h.z=0),isNaN(h.z2)&&(s(),h.z2=0),isNaN(h.zlevel)&&(s(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,e,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=r.indexOf(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();e.default=l},function(t,e,n){"use strict";n.r(e);var r,i,o=n(66),a=n(89),s=n(0),u=n(142),l=n(54),c=l.default.domSupported,h=(i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:s.map(r,(function(t){var e=t.replace("mouse","pointer");return i.hasOwnProperty(e)?e:t}))}),f=["mousemove","mouseup"],d=["pointermove","pointerup"],p=!1;function g(t){var e=t.pointerType;return"pen"===e||"touch"===e}function v(t){t&&(t.zrByTouch=!0)}function m(t,e){for(var n=e,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var y=function(t,e){this.stopPropagation=s.noop,this.stopImmediatePropagation=s.noop,this.preventDefault=s.noop,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},b={mousedown:function(t){t=Object(a.normalizeEvent)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Object(a.normalizeEvent)(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Object(a.normalizeEvent)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){m(this,(t=Object(a.normalizeEvent)(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){p=!0,t=Object(a.normalizeEvent)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){p||(t=Object(a.normalizeEvent)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){v(t=Object(a.normalizeEvent)(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),b.mousemove.call(this,t),b.mousedown.call(this,t)},touchmove:function(t){v(t=Object(a.normalizeEvent)(this.dom,t)),this.handler.processGesture(t,"change"),b.mousemove.call(this,t)},touchend:function(t){v(t=Object(a.normalizeEvent)(this.dom,t)),this.handler.processGesture(t,"end"),b.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&b.click.call(this,t)},pointerdown:function(t){b.mousedown.call(this,t)},pointermove:function(t){g(t)||b.mousemove.call(this,t)},pointerup:function(t){b.mouseup.call(this,t)},pointerout:function(t){g(t)||b.mouseout.call(this,t)}};s.each(["click","dblclick","contextmenu"],(function(t){b[t]=function(e){e=Object(a.normalizeEvent)(this.dom,e),this.trigger(t,e)}}));var _={pointermove:function(t){g(t)||_.mousemove.call(this,t)},pointerup:function(t){_.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function x(t,e){var n=e.domHandlers;l.default.pointerEventsSupported?s.each(h.pointer,(function(r){O(e,r,(function(e){n[r].call(t,e)}))})):(l.default.touchEventsSupported&&s.each(h.touch,(function(r){O(e,r,(function(i){n[r].call(t,i),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),s.each(h.mouse,(function(r){O(e,r,(function(i){i=Object(a.getNativeEvent)(i),e.touching||n[r].call(t,i)}))})))}function w(t,e){function n(n){O(e,n,(function(r){r=Object(a.getNativeEvent)(r),m(t,r.target)||(r=function(t,e){return Object(a.normalizeEvent)(t.dom,new y(t,e),!0)}(t,r),e.domHandlers[n].call(t,r))}),{capture:!0})}l.default.pointerEventsSupported?s.each(d,n):l.default.touchEventsSupported||s.each(f,n)}function O(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,Object(a.addEventListener)(t.domTarget,e,n,r)}function S(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Object(a.removeEventListener)(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var C=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},E=function(t){function e(e,n){var r=t.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=n,r._localHandlerScope=new C(e,b),c&&(r._globalHandlerScope=new C(document,_)),x(r,r._localHandlerScope),r}return Object(o.__extends)(e,t),e.prototype.dispose=function(){S(this._localHandlerScope),c&&S(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,c&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?w(this,e):S(e)}},e}(u.default);e.default=E},function(t,e,n){"use strict";n.r(e);var r=n(66),i=n(0),o=n(18),a=n(1335),s=n(142),u=n(89),l=n(1336),c=n(35);function h(){u.stop(this.event)}var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return Object(r.__extends)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(s.default),d=function(t,e){this.x=t,this.y=e},p=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],g=new c.default(0,0,0,0),v=function(t){function e(e,n,r,i,o){var s=t.call(this)||this;return s._hovered=new d(0,0),s.storage=e,s.painter=n,s.painterRoot=i,s._pointerSize=o,r=r||new f,s.proxy=null,s.setHandlerProxy(r),s._draggingMgr=new a.default(s),s}return Object(r.__extends)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(i.each(p,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=b(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new d(e,n):this.findHover(e,n),s=a.target,u=this.proxy;u.setCursor&&u.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new d(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var r=(t=t||{}).target;if(!r||!r.silent){for(var i="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:h}}(e,t,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new d(t,e);if(y(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,u=new c.default(t-s,e-s,a,a),l=r.length-1;l>=0;l--){var h=r[l];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(g.copy(h.getBoundingRect()),h.transform&&g.applyTransform(h.transform),g.intersect(u)&&o.push(h))}if(o.length)for(var f=Math.PI/12,p=2*Math.PI,v=0;v<s;v+=4)for(var m=0;m<p;m+=f){if(y(o,i,t+v*Math.cos(m),e+v*Math.sin(m),n),i.target)return i}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new l.GestureMgr);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new d;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(s.default);function m(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return!i||"silent"}return!1}function y(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=m(a,n,r))&&(!e.topTarget&&(e.topTarget=a),"silent"!==s)){e.target=a;break}}}function b(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}i.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){v.prototype[t]=function(e){var n,r,i=e.zrX,a=e.zrY,s=b(this,i,a);if("mouseup"===t&&s||(r=(n=this.findHover(i,a)).target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||o.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}})),e.default=v},function(t,e,n){"use strict";n.r(e);var r=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},i=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new r(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,o=n-this._x,a=i-this._y;this._x=n,this._y=i,e.drift(o,a,t),this.handler.dispatchToElement(new r(e,t),"drag",t.event);var s=this.handler.findHover(n,i,e).target,u=this._dropTarget;this._dropTarget=s,e!==s&&(u&&s!==u&&this.handler.dispatchToElement(new r(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new r(s,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new r(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new r(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"GestureMgr",(function(){return i}));var r=n(89),i=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var o={points:[],touches:[],target:e,event:t},a=0,s=i.length;a<s;a++){var u=i[a],l=r.clientToLocal(n,u,{});o.points.push([l.zrX,l.zrY]),o.touches.push(u)}this._track.push(o)}},t.prototype._recognize=function(t){for(var e in a)if(a.hasOwnProperty(e)){var n=a[e](this._track,t);if(n)return n}},t}();function o(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var a={pinch:function(t,e){var n=t.length;if(n){var r,i=(t[n-1]||{}).points,a=(t[n-2]||{}).points||i;if(a&&a.length>1&&i&&i.length>1){var s=o(i)/o(a);!isFinite(s)&&(s=1),e.pinchScale=s;var u=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return e.pinchX=u[0],e.pinchY=u[1],{type:"pinch",target:t[0].target,event:e}}}}}},function(t,e,n){"use strict";n.r(e);var r=n(693),i=n(0),o=n(473),a=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||i.noop,this.ondestroy=t.ondestroy||i.noop,this.onrestart=t.onrestart||i.noop,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(i.isFunction)(t)?t:r.default[t]||Object(o.createCubicEasingFunc)(t)},t}();e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return g}));var r=n(0),i=n(9),o=r.each,a=r.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function u(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=s.length;n<i;n++){var o=s[n],a=e.normal,u=e.emphasis;a&&a[o]&&(t[o]=t[o]||{},t[o].normal?r.merge(t[o].normal,a[o]):t[o].normal=a[o],a[o]=null),u&&u[o]&&(t[o]=t[o]||{},t[o].emphasis?r.merge(t[o].emphasis,u[o]):t[o].emphasis=u[o],u[o]=null)}}function l(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,o=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,r.defaults(t[e],i)):t[e]=i),o&&(t.emphasis=t.emphasis||{},t.emphasis[e]=o,o.focus&&(t.emphasis.focus=o.focus),o.blurScope&&(t.emphasis.blurScope=o.blurScope))}}function c(t){l(t,"itemStyle"),l(t,"lineStyle"),l(t,"areaStyle"),l(t,"label"),l(t,"labelLine"),l(t,"upperLabel"),l(t,"edgeLabel")}function h(t,e){var n=a(t)&&t[e],r=a(n)&&n.textStyle;if(r){0;for(var o=0,s=i.TEXT_STYLE_OPTIONS.length;o<s;o++){var u=i.TEXT_STYLE_OPTIONS[o];r.hasOwnProperty(u)&&(n[u]=r[u])}}}function f(t){t&&(c(t),h(t,"label"),t.emphasis&&h(t.emphasis,"label"))}function d(t){return r.isArray(t)?t:t?[t]:[]}function p(t){return(r.isArray(t)?t[0]:t)||{}}function g(t,e){o(d(t.series),(function(t){a(t)&&function(t){if(a(t)){u(t),c(t),h(t,"label"),h(t,"upperLabel"),h(t,"edgeLabel"),t.emphasis&&(h(t.emphasis,"label"),h(t.emphasis,"upperLabel"),h(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(u(e),f(e));var n=t.markLine;n&&(u(n),f(n));var i=t.markArea;i&&f(i);var o=t.data;if("graph"===t.type){o=o||t.nodes;var s=t.links||t.edges;if(s&&!r.isTypedArray(s))for(var d=0;d<s.length;d++)f(s[d]);r.each(t.categories,(function(t){c(t)}))}if(o&&!r.isTypedArray(o))for(d=0;d<o.length;d++)f(o[d]);if((e=t.markPoint)&&e.data){var p=e.data;for(d=0;d<p.length;d++)f(p[d])}if((n=t.markLine)&&n.data){var g=n.data;for(d=0;d<g.length;d++)r.isArray(g[d])?(f(g[d][0]),f(g[d][1])):f(g[d])}"gauge"===t.type?(h(t,"axisLabel"),h(t,"title"),h(t,"detail")):"treemap"===t.type?(l(t.breadcrumb,"itemStyle"),r.each(t.levels,(function(t){c(t)}))):"tree"===t.type&&c(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),o(n,(function(e){o(d(t[e]),(function(t){t&&(h(t,"axisLabel"),h(t.axisPointer,"label"))}))})),o(d(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;h(e,"axisLabel"),h(e&&e.axisPointer,"label")})),o(d(t.calendar),(function(t){l(t,"itemStyle"),h(t,"dayLabel"),h(t,"monthLabel"),h(t,"yearLabel")})),o(d(t.radar),(function(t){h(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),o(d(t.geo),(function(t){a(t)&&(f(t),o(d(t.regions),(function(t){f(t)})))})),o(d(t.timeline),(function(t){f(t),l(t,"label"),l(t,"itemStyle"),l(t,"controlStyle",!0);var e=t.data;r.isArray(e)&&r.each(e,(function(t){r.isObject(t)&&(l(t,"label"),l(t,"itemStyle"))}))})),o(d(t.toolbox),(function(t){l(t,"iconStyle"),o(t.feature,(function(t){l(t,"iconStyle")}))})),h(p(t.axisPointer),"label"),h(p(t.tooltip).axisPointer,"label")}},function(t,e,n){"use strict";n.r(e),n.d(e,"AREA_STYLE_KEY_MAP",(function(){return i})),n.d(e,"AreaStyleMixin",(function(){return a}));var r=n(242),i=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],o=Object(r.default)(i),a=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return o(this,t,e)},t}()},function(t,e,n){"use strict";n.r(e);var r=n(27),i=n(72),o=["textStyle","color"],a=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],s=new i.default,u=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(o):null)},t.prototype.getFont=function(){return Object(r.getFont)({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<a.length;n++)e[a[n]]=this.getShallow(a[n]);return s.useStyle(e),s.update(),s.getBoundingRect()},t}();e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"containStroke",(function(){return i}));var r=n(53);function i(t,e,n,i,o,a,s,u,l,c,h){if(0===l)return!1;var f=l;return!(h>e+f&&h>i+f&&h>a+f&&h>u+f||h<e-f&&h<i-f&&h<a-f&&h<u-f||c>t+f&&c>n+f&&c>o+f&&c>s+f||c<t-f&&c<n-f&&c<o-f&&c<s-f)&&r.cubicProjectPoint(t,e,n,i,o,a,s,u,c,h,null)<=f/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"containStroke",(function(){return o}));var r=n(341),i=2*Math.PI;function o(t,e,n,o,a,s,u,l,c){if(0===u)return!1;var h=u;l-=t,c-=e;var f=Math.sqrt(l*l+c*c);if(f-h>n||f+h<n)return!1;if(Math.abs(o-a)%i<1e-4)return!0;if(s){var d=o;o=Object(r.normalizeRadian)(a),a=Object(r.normalizeRadian)(d)}else o=Object(r.normalizeRadian)(o),a=Object(r.normalizeRadian)(a);o>a&&(a+=i);var p=Math.atan2(c,l);return p<0&&(p+=i),p>=o&&p<=a||p+i>=o&&p+i<=a}},function(t,e,n){"use strict";function r(t,e){var n,r,i,o,a,s=e.x,u=e.y,l=e.width,c=e.height,h=e.r;l<0&&(s+=l,l=-l),c<0&&(u+=c,c=-c),"number"==typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>l&&(n*=l/(a=n+r),r*=l/a),i+o>l&&(i*=l/(a=i+o),o*=l/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,u),t.lineTo(s+l-r,u),0!==r&&t.arc(s+l-r,u+r,r,-Math.PI/2,0),t.lineTo(s+l,u+c-i),0!==i&&t.arc(s+l-i,u+c-i,i,0,Math.PI/2),t.lineTo(s+o,u+c),0!==o&&t.arc(s+o,u+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,u+n),0!==n&&t.arc(s+n,u+n,n,Math.PI,1.5*Math.PI)}n.r(e),n.d(e,"buildPath",(function(){return r}))},function(t,e,n){"use strict";n.r(e),e.default={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}},function(t,e,n){"use strict";n.r(e),e.default={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}",withoutName:"第{seriesId}个系列是一个{seriesType}",separator:{middle:"",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"",end:""}}}}},function(t,e,n){"use strict";n.r(e);var r="";"undefined"!=typeof navigator&&(r=navigator.platform||"");var i="rgba(0, 0, 0, 0.2)";e.default={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:i,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:i,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:i,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:i,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:i,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:i,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:r.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1}},function(t,e,n){"use strict";n.r(e);var r=n(9),i=n(0),o=/^(min|max)?(.+)$/,a=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Object(i.each)(Object(r.normalizeToArray)(t.series),(function(t){t&&t.data&&Object(i.isTypedArray)(t.data)&&Object(i.setAsPrimitive)(t.data)})),Object(i.each)(Object(r.normalizeToArray)(t.dataset),(function(t){t&&t.source&&Object(i.isTypedArray)(t.source)&&Object(i.setAsPrimitive)(t.source)}))),t=Object(i.clone)(t);var o=this._optionBackup,a=function(t,e,n){var r,o,a=[],s=t.baseOption,u=t.timeline,l=t.options,c=t.media,h=!!t.media,f=!!(l||u||s&&s.timeline);s?(o=s).timeline||(o.timeline=u):((f||h)&&(t.options=t.media=null),o=t);h&&Object(i.isArray)(c)&&Object(i.each)(c,(function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))}));function d(t){Object(i.each)(e,(function(e){e(t,n)}))}return d(o),Object(i.each)(l,(function(t){return d(t)})),Object(i.each)(a,(function(t){return d(t.option)})),{baseOption:o,timelineOptions:l||[],mediaDefault:r,mediaList:a}}(t,e,!o);this._newBaseOption=a.baseOption,o?(a.timelineOptions.length&&(o.timelineOptions=a.timelineOptions),a.mediaList.length&&(o.mediaList=a.mediaList),a.mediaDefault&&(o.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Object(i.clone)(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=Object(i.clone)(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,r=this._api.getWidth(),o=this._api.getHeight(),a=this._mediaList,u=this._mediaDefault,l=[],c=[];if(!a.length&&!u)return c;for(var h=0,f=a.length;h<f;h++)s(a[h].query,r,o)&&l.push(h);return!l.length&&u&&(l=[-1]),l.length&&(e=l,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(c=Object(i.map)(l,(function(t){return Object(i.clone)(-1===t?u.option:a[t].option)}))),this._currentMediaIndices=l,c},t}();function s(t,e,n){var r={width:e,height:n,aspectratio:e/n},a=!0;return Object(i.each)(t,(function(t,e){var n=e.match(o);if(n&&n[1]&&n[2]){var i=n[1],s=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(r[s],t,i)||(a=!1)}})),a}e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"buildPath",(function(){return v}));var r=n(0),i=Math.PI,o=2*i,a=Math.sin,s=Math.cos,u=Math.acos,l=Math.atan2,c=Math.abs,h=Math.sqrt,f=Math.max,d=Math.min,p=1e-4;function g(t,e,n,r,i,o,a){var s=t-n,u=e-r,l=(a?o:-o)/h(s*s+u*u),c=l*u,d=-l*s,p=t+c,g=e+d,v=n+c,m=r+d,y=(p+v)/2,b=(g+m)/2,_=v-p,x=m-g,w=_*_+x*x,O=i-o,S=p*m-v*g,C=(x<0?-1:1)*h(f(0,O*O*w-S*S)),E=(S*x-_*C)/w,T=(-S*_-x*C)/w,A=(S*x+_*C)/w,M=(-S*_+x*C)/w,I=E-y,j=T-b,k=A-y,P=M-b;return I*I+j*j>k*k+P*P&&(E=A,T=M),{cx:E,cy:T,x0:-c,y0:-d,x1:E*(i/O-1),y1:T*(i/O-1)}}function v(t,e){var n,v=f(e.r,0),m=f(e.r0||0,0),y=v>0;if(y||m>0){if(y||(v=m,m=0),m>v){var b=v;v=m,m=b}var _=e.startAngle,x=e.endAngle;if(!isNaN(_)&&!isNaN(x)){var w=e.cx,O=e.cy,S=!!e.clockwise,C=c(x-_),E=C>o&&C%o;if(E>p&&(C=E),v>p)if(C>o-p)t.moveTo(w+v*s(_),O+v*a(_)),t.arc(w,O,v,_,x,!S),m>p&&(t.moveTo(w+m*s(x),O+m*a(x)),t.arc(w,O,m,x,_,S));else{var T=void 0,A=void 0,M=void 0,I=void 0,j=void 0,k=void 0,P=void 0,L=void 0,R=void 0,D=void 0,N=void 0,B=void 0,F=void 0,z=void 0,V=void 0,U=void 0,G=v*s(_),H=v*a(_),W=m*s(x),Y=m*a(x),X=C>p;if(X){var $=e.cornerRadius;$&&(T=(n=function(t){var e;if(Object(r.isArray)(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}($))[0],A=n[1],M=n[2],I=n[3]);var q=c(v-m)/2;if(j=d(q,M),k=d(q,I),P=d(q,T),L=d(q,A),N=R=f(j,k),B=D=f(P,L),(R>p||D>p)&&(F=v*s(x),z=v*a(x),V=m*s(_),U=m*a(_),C<i)){var Z=function(t,e,n,r,i,o,a,s){var u=n-t,l=r-e,c=a-i,h=s-o,f=h*u-c*l;if(!(f*f<p))return[t+(f=(c*(e-o)-h*(t-i))/f)*u,e+f*l]}(G,H,V,U,F,z,W,Y);if(Z){var K=G-Z[0],Q=H-Z[1],J=F-Z[0],tt=z-Z[1],et=1/a(u((K*J+Q*tt)/(h(K*K+Q*Q)*h(J*J+tt*tt)))/2),nt=h(Z[0]*Z[0]+Z[1]*Z[1]);N=d(R,(v-nt)/(et+1)),B=d(D,(m-nt)/(et-1))}}}if(X)if(N>p){var rt=d(M,N),it=d(I,N),ot=g(V,U,G,H,v,rt,S),at=g(F,z,W,Y,v,it,S);t.moveTo(w+ot.cx+ot.x0,O+ot.cy+ot.y0),N<R&&rt===it?t.arc(w+ot.cx,O+ot.cy,N,l(ot.y0,ot.x0),l(at.y0,at.x0),!S):(rt>0&&t.arc(w+ot.cx,O+ot.cy,rt,l(ot.y0,ot.x0),l(ot.y1,ot.x1),!S),t.arc(w,O,v,l(ot.cy+ot.y1,ot.cx+ot.x1),l(at.cy+at.y1,at.cx+at.x1),!S),it>0&&t.arc(w+at.cx,O+at.cy,it,l(at.y1,at.x1),l(at.y0,at.x0),!S))}else t.moveTo(w+G,O+H),t.arc(w,O,v,_,x,!S);else t.moveTo(w+G,O+H);if(m>p&&X)if(B>p){rt=d(T,B),ot=g(W,Y,F,z,m,-(it=d(A,B)),S),at=g(G,H,V,U,m,-rt,S);t.lineTo(w+ot.cx+ot.x0,O+ot.cy+ot.y0),B<D&&rt===it?t.arc(w+ot.cx,O+ot.cy,B,l(ot.y0,ot.x0),l(at.y0,at.x0),!S):(it>0&&t.arc(w+ot.cx,O+ot.cy,it,l(ot.y0,ot.x0),l(ot.y1,ot.x1),!S),t.arc(w,O,m,l(ot.cy+ot.y1,ot.cx+ot.x1),l(at.cy+at.y1,at.cx+at.x1),S),rt>0&&t.arc(w+at.cx,O+at.cy,rt,l(at.y1,at.x1),l(at.y0,at.x0),!S))}else t.lineTo(w+W,O+Y),t.arc(w,O,m,x,_,S);else t.lineTo(w+W,O+Y)}else t.moveTo(w,O);t.closePath()}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(18);function i(t,e,n,i){var o,a,s,u,l=[],c=[],h=[],f=[];if(i){s=[1/0,1/0],u=[-1/0,-1/0];for(var d=0,p=t.length;d<p;d++)Object(r.min)(s,s,t[d]),Object(r.max)(u,u,t[d]);Object(r.min)(s,s,i[0]),Object(r.max)(u,u,i[1])}for(d=0,p=t.length;d<p;d++){var g=t[d];if(n)o=t[d?d-1:p-1],a=t[(d+1)%p];else{if(0===d||d===p-1){l.push(Object(r.clone)(t[d]));continue}o=t[d-1],a=t[d+1]}Object(r.sub)(c,a,o),Object(r.scale)(c,c,e);var v=Object(r.distance)(g,o),m=Object(r.distance)(g,a),y=v+m;0!==y&&(v/=y,m/=y),Object(r.scale)(h,c,-v),Object(r.scale)(f,c,m);var b=Object(r.add)([],g,h),_=Object(r.add)([],g,f);i&&(Object(r.max)(b,b,s),Object(r.min)(b,b,u),Object(r.max)(_,_,s),Object(r.min)(_,_,u)),l.push(b),l.push(_)}return n&&l.push(l.shift()),l}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(296);function i(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=Object(r.createOrUpdatePatternFromDecal)(n,e))}));var o=i.getVisual("decal");if(o)i.getVisual("style").decal=Object(r.createOrUpdatePatternFromDecal)(o,e)}}))}},function(t,e,n){"use strict";n.r(e);var r=Math.round(9*Math.random()),i="function"==typeof Object.defineProperty,o=function(){function t(){this._id="__ec_inner_"+r++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return i?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}();e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(0),i=n(6);function o(t){var e=Object(r.createHashMap)();t.eachSeries((function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),e.each(a)}function a(t){Object(r.each)(t,(function(e,n){var r=[],o=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],s=e.data,u=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";s.modify(a,(function(a,c,h){var f,d,p=s.get(e.stackedDimension,h);if(isNaN(p))return o;u?d=s.getRawIndex(h):f=s.get(e.stackedByDimension,h);for(var g=NaN,v=n-1;v>=0;v--){var m=t[v];if(u||(d=m.data.rawIndexOf(m.stackedByDimension,f)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&p>=0&&y>0||"samesign"===l&&p<=0&&y<0){p=Object(i.addSafe)(p,y),g=y;break}}}return r[0]=p,r[1]=g,r}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return l}));var r=n(0),i=n(40),o=n(79),a=n(72),s=n(557),u=Math.PI;function l(t,e){e=e||{},r.defaults(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new i.default,l=new o.default({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(l);var c,h=new a.default({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),f=new o.default({style:{fill:"none"},textContent:h,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(f),e.showSpinner&&((c=new s.default({shape:{startAngle:-u/2,endAngle:-u/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*u/2}).start("circularInOut"),c.animateShape(!0).when(1e3,{startAngle:3*u/2}).delay(300).start("circularInOut"),n.add(c)),n.resize=function(){var n=h.getBoundingRect().width,r=e.showSpinner?e.spinnerRadius:0,i=(t.getWidth()-2*r-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:r),o=t.getHeight()/2;e.showSpinner&&c.setShape({cx:i,cy:o}),f.setShape({x:i-r,y:o-r,width:2*r,height:2*r}),l.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}},function(t,e,n){"use strict";n.r(e);var r=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];e.default={color:r,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],r]}},function(t,e,n){"use strict";n.r(e);var r=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],i={darkMode:!0,color:r,backgroundColor:"#100C2A",axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:"#B9B8CE"}},textStyle:{color:"#B9B8CE"},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:"#B9B8CE"}},dataZoom:{borderColor:"#71708A",textStyle:{color:"#B9B8CE"},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:"#B9B8CE"}},timeline:{lineStyle:{color:"#B9B8CE"},label:{color:"#B9B8CE"},controlStyle:{color:"#B9B8CE",borderColor:"#B9B8CE"}},calendar:{itemStyle:{color:"#100C2A"},dayLabel:{color:"#B9B8CE"},monthLabel:{color:"#B9B8CE"},yearLabel:{color:"#B9B8CE"}},timeAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},logAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},valueAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},categoryAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},line:{symbol:"circle"},graph:{color:r},gauge:{title:{color:"#B9B8CE"},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:"#B9B8CE"},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};i.categoryAxis.splitLine.show=!1,e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"getCoordSysInfoBySeries",(function(){return a}));var r=n(0),i=n(9),o=function(t){this.coordSysDims=[],this.axisMap=Object(r.createHashMap)(),this.categoryAxisMap=Object(r.createHashMap)(),this.coordSysName=t};function a(t){var e=t.get("coordinateSystem"),n=new o(e),r=s[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var s={cartesian2d:function(t,e,n,r){var o=t.getReferringComponents("xAxis",i.SINGLE_REFERRING).models[0],a=t.getReferringComponents("yAxis",i.SINGLE_REFERRING).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",a),u(o)&&(r.set("x",o),e.firstCategoryDimIndex=0),u(a)&&(r.set("y",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var o=t.getReferringComponents("singleAxis",i.SINGLE_REFERRING).models[0];e.coordSysDims=["single"],n.set("single",o),u(o)&&(r.set("single",o),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var o=t.getReferringComponents("polar",i.SINGLE_REFERRING).models[0],a=o.findAxisModel("radiusAxis"),s=o.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",s),u(a)&&(r.set("radius",a),e.firstCategoryDimIndex=0),u(s)&&(r.set("angle",s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var o=t.ecModel,a=o.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=a.dimensions.slice();Object(r.each)(a.parallelAxisIndex,(function(t,r){var a=o.getComponent("parallelAxis",t),l=s[r];n.set(l,a),u(a)&&(i.set(l,a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=r))}))}};function u(t){return"category"===t.get("type")}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(228),a=n(6),s=n(123),u=n(226),l=o.default.prototype,c=u.default.prototype,h=a.round,f=Math.floor,d=Math.ceil,p=Math.pow,g=Math.log,v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new u.default,e._interval=0,e}return Object(r.__extends)(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),o=c.getTicks.call(this,t);return i.map(o,(function(t){var e=t.value,i=a.round(p(this.base,e));return i=e===n[0]&&this._fixMin?y(i,r[0]):i,{value:i=e===n[1]&&this._fixMax?y(i,r[1]):i}}),this)},e.prototype.setExtent=function(t,e){var n=g(this.base);t=g(Math.max(0,t))/n,e=g(Math.max(0,e))/n,c.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=l.getExtent.call(this);e[0]=p(t,e[0]),e[1]=p(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=y(e[0],n[0])),this._fixMax&&(e[1]=y(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=g(t[0])/g(e),t[1]=g(t[1])/g(e),l.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var r=a.quantity(n);for(t/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[a.round(d(e[0]/r)*r),a.round(f(e[1]/r)*r)];this._interval=r,this._niceExtent=i}},e.prototype.calcNiceExtent=function(t){c.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=g(t)/g(this.base),s.contain(t,this._extent)},e.prototype.normalize=function(t){return t=g(t)/g(this.base),s.normalize(t,this._extent)},e.prototype.scale=function(t){return t=s.scale(t,this._extent),p(this.base,t)},e.type="log",e}(o.default),m=v.prototype;function y(t,e){return h(t,a.getPrecision(e))}m.getMinorTicks=c.getMinorTicks,m.getLabel=c.getLabel,o.default.registerClass(v),e.default=v},function(t,e,n){"use strict";n.r(e);var r=n(35),i=n(23),o=n(31),a=n(6),s=n(129),u=n(232),l=n(9),c=n(0),h=n(337),f=n(27);function d(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function p(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:d(r&&r.shape.points)}}var g=["align","verticalAlign","width","height","fontSize"],v=new s.default,m=Object(l.makeInner)(),y=Object(l.makeInner)();function b(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null!=e[i]&&(t[i]=e[i])}}var _=["x","y","rotation"],x=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,o){var a=i.style,s=i.__hostTarget.textConfig||{},u=i.getComputedTransform(),l=i.getBoundingRect().plain();r.default.applyTransform(l,l,u),u?v.setLocalTransform(u):(v.x=v.y=v.rotation=v.originX=v.originY=0,v.scaleX=v.scaleY=1);var c,h=i.__hostTarget;if(h){c=h.getBoundingRect().plain();var f=h.getComputedTransform();r.default.applyTransform(c,c,f)}var d=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:l,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:v.x,y:v.y,scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,r=n.get("labelLayout");(Object(c.isFunction)(r)||Object(c.keys)(r).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var i=t.getTextContent(),a=Object(o.getECData)(t);i&&!i.disableLabelLayout&&e._addLabel(a.dataIndex,a.dataType,n,i,r)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function r(t,e){return function(){Object(u.updateLabelLinePoints)(t,e)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,h=o.defaultAttr,f=void 0;f=(f=Object(c.isFunction)(o.layoutOption)?o.layoutOption(p(o,l)):o.layoutOption)||{},o.computedLayoutOption=f;var d=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=f.x||null!=f.y?null:h.attachedPos,rotation:null!=f.rotate?f.rotate*d:h.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(null!=f.x?(s.x=Object(a.parsePercent)(f.x,e),s.setStyle("x",0),v=!0):(s.x=h.x,s.setStyle("x",h.style.x)),null!=f.y?(s.y=Object(a.parsePercent)(f.y,n),s.setStyle("y",0),v=!0):(s.y=h.y,s.setStyle("y",h.style.y)),f.labelLinePoints){var y=l.getTextGuideLine();y&&(y.setShape({points:f.labelLinePoints}),v=!1)}m(s).needsUpdateLabelLine=v,s.rotation=null!=f.rotate?f.rotate*d:h.rotation,s.scaleX=h.scaleX,s.scaleY=h.scaleY;for(var b=0;b<g.length;b++){var _=g[b];s.setStyle(_,null!=f[_]?f[_]:h.style[_])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var x=o.seriesModel;if(null!=o.dataIndex)x=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);s.on("drag",r(l,x.getModel("labelLine")))}}else s.off("drag"),s.cursor=h.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),r=Object(h.prepareLayoutList)(this._labelList),i=Object(c.filter)(r,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),o=Object(c.filter)(r,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));Object(h.shiftLayoutOnX)(i,0,e),Object(h.shiftLayoutOnY)(o,0,n);var a=Object(c.filter)(r,(function(t){return t.layoutOption.hideOverlap}));Object(h.hideOverlap)(a)},t.prototype.processLabelsOverall=function(){var t=this;Object(c.each)(this._chartViewList,(function(e){var n=e.__model,r=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!r,a=e.getTextContent();!o&&a&&(o=m(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),i&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),r=Object(o.getECData)(t),i=r.dataIndex;if(n&&null!=i){var a=e.getData(r.dataType),s=a.getItemModel(i),l={},c=a.getItemVisual(i,"style"),h=a.getVisual("drawType");l.stroke=c[h];var f=s.getModel("labelLine");Object(u.setLabelLineStyle)(t,Object(u.getLabelLineStatesModels)(s),l),Object(u.updateLabelLinePoints)(t,f)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),r=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Object(i.isElementRemoved)(t))){var a=(x=m(n)).oldLayout,s=Object(o.getECData)(t),u=s.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},h=e.getData(s.dataType);if(a){n.attr(a);var d=t.prevStates;d&&(Object(c.indexOf)(d,"select")>=0&&n.attr(x.oldLayoutSelect),Object(c.indexOf)(d,"emphasis")>=0&&n.attr(x.oldLayoutEmphasis)),Object(i.updateProps)(n,l,e,u)}else if(n.attr(l),!Object(f.labelInner)(n).valueAnimation){var p=Object(c.retrieve2)(n.style.opacity,1);n.style.opacity=0,Object(i.initProps)(n,{style:{opacity:p}},e,u)}if(x.oldLayout=l,n.states.select){var g=x.oldLayoutSelect={};b(g,l,_),b(g,n.states.select,_)}if(n.states.emphasis){var v=x.oldLayoutEmphasis={};b(v,l,_),b(v,n.states.emphasis,_)}Object(f.animateLabelValue)(n,u,h,e,e)}if(r&&!r.ignore&&!r.invisible){a=(x=y(r)).oldLayout;var x,w={points:r.shape.points};a?(r.attr({shape:a}),Object(i.updateProps)(r,{shape:w},e)):(r.setShape(w),r.style.strokePercent=0,Object(i.initProps)(r,{style:{strokePercent:1}},e)),x.oldLayout=w}},t}();e.default=x},function(t,e,n){"use strict";n.r(e);var r=n(166),i=n(0),o=n(797),a=n(569),s=n(54),u=n(269),l=n(108),c=n(231);var h=function(){function t(t,e,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var s=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=i.extend({},n||{}),this.dpr=n.devicePixelRatio||r.devicePixelRatio,this._singleCanvas=s,this.root=t,t.style&&(i.disableUserSelect(t),t.innerHTML=""),this.storage=e;var u=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(s){var h=t,f=h.width,d=h.height;null!=n.width&&(f=n.width),null!=n.height&&(d=n.height),this.dpr=n.devicePixelRatio||1,h.width=f*this.dpr,h.height=d*this.dpr,this._width=f,this._height=d;var p=new o.default(h,this,this.dpr);p.__builtin__=!0,p.initContext(),l[314159]=p,p.zlevel=314159,u.push(314159),this._domRoot=t}else{this._width=Object(c.getSize)(t,0,n),this._height=Object(c.getSize)(t,1,n);var g=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(g)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(1e5)),r||(r=n.ctx).save(),Object(u.brush)(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(t,e){Object(u.brushSingle)(t,e)},t.prototype._paintList=function(t,e,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var u=this;Object(a.default)((function(){u._paintList(t,e,n,r)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(314159).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var r=this,o=[],a=this._opts.useDirtyRect,u=0;u<this._zlevelList.length;u++){var l=this._zlevelList[u],c=this._layers[l];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||n)&&o.push(c)}for(var h=!0,f=!1,d=function(i){var s,u=o[i],l=u.ctx,c=a&&u.createRepaintRects(t,e,p._width,p._height),d=n?u.__startIndex:u.__drawIndex,g=!n&&u.incremental&&Date.now,v=g&&Date.now(),m=u.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(u.__startIndex===u.__endIndex)u.clear(!1,m,c);else if(d===u.__startIndex){var y=t[d];y.incremental&&y.notClear&&!n||u.clear(!1,m,c)}-1===d&&(console.error("For some unknown reason. drawIndex is -1"),d=u.__startIndex);var b=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=d;s<u.__endIndex;s++){var i=t[s];if(i.__inHover&&(f=!0),r._doPaintEl(i,u,a,e,n,s===u.__endIndex-1),g)if(Date.now()-v>15)break}n.prevElClipPaths&&l.restore()};if(c)if(0===c.length)s=u.__endIndex;else for(var _=p.dpr,x=0;x<c.length;++x){var w=c[x];l.save(),l.beginPath(),l.rect(w.x*_,w.y*_,w.width*_,w.height*_),l.clip(),b(w),l.restore()}else l.save(),b(),l.restore();u.__drawIndex=s,u.__drawIndex<u.__endIndex&&(h=!1)},p=this,g=0;g<o.length;g++)d(g);return s.default.wxa&&i.each(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:h,needsRefreshHover:f}},t.prototype._doPaintEl=function(t,e,n,r,i,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!r||s&&s.intersect(r))&&(Object(u.brush)(a,t,i,o),t.setPrevPaintRect(s))}else Object(u.brush)(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=314159);var n=this._layers[t];return n||((n=new o.default("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?i.merge(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&i.merge(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(i>0&&t>r[0]){for(s=0;s<i-1&&!(r[s]<t&&r[s+1]>t);s++);a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var u=a.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];t.call(e,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){if((u=t[n]).zlevel!==t[n-1].zlevel||u.incremental){this._needsManuallyCompositing=!0;break}}var r,o,a=null,s=0;for(o=0;o<t.length;o++){var u,c=(u=t[o]).zlevel,h=void 0;r!==c&&(r=c,s=0),u.incremental?((h=this.getLayer(c+.001,this._needsManuallyCompositing)).incremental=!0,s=1):h=this.getLayer(c+(s>0?.01:0),this._needsManuallyCompositing),h.__builtin__||i.logError("ZLevel "+c+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==o&&(h.__dirty=!0),h.__startIndex=o,h.incremental?h.__drawIndex=-1:h.__drawIndex=o,e(o),a=h),u.__dirty&l.REDRAW_BIT&&!u.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,i.each(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?i.merge(n[t],e,!0):n[t]=e;for(var r=0;r<this._zlevelList.length;r++){var o=this._zlevelList[r];if(o===t||o===t+.01){var a=this._layers[o];i.merge(a,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],n.splice(i.indexOf(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=Object(c.getSize)(i,0,r),e=Object(c.getSize)(i,1,r),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(314159).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new o.default("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,i=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,c=s.length;l<c;l++){var h=s[l];Object(u.brush)(n,h,a,l===c-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();e.default=h},function(t,e,n){"use strict";n.r(e);var r=n(798),i=n(99),o=n(84),a=n(0),s=n(886),u=n(231),l=0,c=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=e,this._opts=n=Object(a.extend)({},n),this.root=t,this._id="zr"+l++,this._oldVNode=Object(i.createSVGVNode)(n.width,n.height),t&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=Object(i.createElement)("svg");Object(s.updateAttrs)(null,this._oldVNode),r.appendChild(o),t.appendChild(r)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Object(s.default)(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return Object(r.brush)(t,Object(i.createBrushScope)(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._backgroundColor,r=this._width,s=this._height,u=Object(i.createBrushScope)(this._id);u.animation=t.animation,u.willUpdate=t.willUpdate,u.compress=t.compress;var l=[];if(n&&"none"!==n){var c=Object(o.normalizeColor)(n),h=c.color,f=c.opacity;this._bgVNode=Object(i.createVNode)("rect","bg",{width:r,height:s,x:"0",y:"0",id:"0",fill:h,"fill-opacity":f}),l.push(this._bgVNode)}else this._bgVNode=null;var d=t.compress?null:this._mainVNode=Object(i.createVNode)("g","main",{},[]);this._paintList(e,u,d?d.children:l),d&&l.push(d);var p=Object(a.map)(Object(a.keys)(u.defs),(function(t){return u.defs[t]}));if(p.length&&l.push(Object(i.createVNode)("defs","defs",{},p)),t.animation){var g=Object(i.getCssString)(u.cssNodes,u.cssAnims,{newline:!0});if(g){var v=Object(i.createVNode)("style","stl",{},[],g);l.push(v)}}return Object(i.createSVGVNode)(r,s,l,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},Object(i.vNodeToString)(this.renderToVNode({animation:Object(a.retrieve2)(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(a.retrieve2)(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var n=Object(o.normalizeColor)(t),r=n.color,i=n.opacity;e.elm.setAttribute("fill",r),i<1&&e.elm.setAttribute("fill-opacity",i)}},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var o,a,s=t.length,u=[],l=0,c=0,h=0;h<s;h++){var f=t[h];if(!f.invisible){var d=f.__clipPaths,p=d&&d.length||0,g=a&&a.length||0,v=void 0;for(v=Math.max(p-1,g-1);v>=0&&(!d||!a||d[v]!==a[v]);v--);for(var m=g-1;m>v;m--)o=u[--l-1];for(var y=v+1;y<p;y++){var b={};Object(r.setClipPath)(d[y],b,e);var _=Object(i.createVNode)("g","clip-g-"+c++,b,[]);(o?o.children:n).push(_),u[l++]=_,o=_}a=d;var x=Object(r.brush)(f,e);x&&(o?o.children:n).push(x)}}},t.prototype.resize=function(t,e){var n=this._opts,r=this.root,i=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),r&&i&&(i.style.display="none",t=Object(u.getSize)(r,0,n),e=Object(u.getSize)(r,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e))}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=encodeURIComponent(this.renderToString()),n="data:image/svg+xml;";return t?(e=Object(o.encodeBase64)(e))&&n+"base64,"+e:n+"charset=UTF-8,"+e},t}();e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(36),i=n(114),o=n(572),a=n(0),s=n(84),u=Math.round;var l=["lineCap","miterLimit","lineJoin"],c=Object(a.map)(l,(function(t){return"stroke-"+t.toLowerCase()}));function h(t,e,n,a){var h=null==e.opacity?1:e.opacity;if(n instanceof i.default)t("opacity",h);else{if(function(t){var e=t.fill;return null!=e&&"none"!==e}(e)){var f=Object(s.normalizeColor)(e.fill);t("fill",f.color);var d=null!=e.fillOpacity?e.fillOpacity*f.opacity*h:f.opacity*h;(a||d<1)&&t("fill-opacity",d)}else t("fill","none");if(function(t){var e=t.stroke;return null!=e&&"none"!==e}(e)){var p=Object(s.normalizeColor)(e.stroke);t("stroke",p.color);var g=e.strokeNoScale?n.getLineScale():1,v=g?(e.lineWidth||0)/g:0,m=null!=e.strokeOpacity?e.strokeOpacity*p.opacity*h:p.opacity*h,y=e.strokeFirst;if((a||1!==v)&&t("stroke-width",v),(a||y)&&t("paint-order",y?"stroke":"fill"),(a||m<1)&&t("stroke-opacity",m),e.lineDash){var b=Object(o.getLineDash)(n),_=b[0],x=b[1];_&&(x=u(x||0),t("stroke-dasharray",_.join(",")),(x||a)&&t("stroke-dashoffset",x))}else a&&t("stroke-dasharray","none");for(var w=0;w<l.length;w++){var O=l[w];if(a||e[O]!==r.DEFAULT_PATH_STYLE[O]){var S=e[O]||r.DEFAULT_PATH_STYLE[O];S&&t(c[w],S)}}}else a&&t("stroke","none")}}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(317),a=n(357),s=n(1363),u=n(352),l=n(40),c=n(23),h=n(72),f=n(9),d=n(575),p=n(58),g=n(514),v=n(297),m=n(270),y=n(11),b=n(27),_=n(246),x=n(31),w=n(211),O=n(71),S=n(80);function C(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function E(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[e,n],[r,i]]}function T(t,e){var n=E(t),r=n[0],i=n[1],o=E(e),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function A(t){return i.isNumber(t)?t:t?.5:0}function M(t,e,n,r){var i=e.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,u=[],l=[],c=[],h=[];if(r){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||h.push(t[s],t[s+1]);t=h}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],l[0]=t[s],l[1]=t[s+1],a.push(l[0],l[1]),n){case"end":u[o]=c[o],u[1-o]=l[1-o],a.push(u[0],u[1]);break;case"middle":var f=(l[o]+c[o])/2,d=[];u[o]=d[o]=f,u[1-o]=l[1-o],d[1-o]=c[1-o],a.push(u[0],u[1]),a.push(d[0],d[1]);break;default:u[o]=l[o],u[1-o]=c[1-o],a.push(u[0],u[1])}return a.push(t[s++],t[s++]),a}function I(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count()&&"cartesian2d"===e.type){for(var o,a,s=r.length-1;s>=0;s--){var l=t.getDimensionInfo(r[s].dimension);if("x"===(o=l&&l.coordDim)||"y"===o){a=r[s];break}}if(a){var c=e.getAxis(o),h=i.map(a.stops,(function(t){return{coord:c.toGlobalCoord(c.dataToCoord(t.value)),color:t.color}})),f=h.length,d=a.outerColors.slice();f&&h[0].coord>h[f-1].coord&&(h.reverse(),d.reverse());var p=function(t,e){var n,r,i=[],o=t.length;function a(t,e,n){var r=t.coord,i=(n-r)/(e.coord-r);return{coord:n,color:Object(S.lerp)(i,[t.color,e.color])}}for(var s=0;s<o;s++){var u=t[s],l=u.coord;if(l<0)n=u;else{if(l>e){r?i.push(a(r,u,e)):n&&i.push(a(n,u,0),a(n,u,e));break}n&&(i.push(a(n,u,0)),n=null),i.push(u),r=u}}return i}(h,"x"===o?n.getWidth():n.getHeight()),g=p.length;if(!g&&f)return h[0].coord<0?d[1]?d[1]:h[f-1].color:d[0]?d[0]:h[0].color;var v=p[0].coord-10,m=p[g-1].coord+10,y=m-v;if(y<.001)return"transparent";i.each(p,(function(t){t.offset=(t.coord-v)/y})),p.push({offset:g?p[g-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:g?p[0].offset:.5,color:d[0]||"transparent"});var b=new u.default(0,0,0,0,p,!0);return b[o]=v,b[o+"2"]=m,b}}}function j(t,e,n){var r=t.get("showAllSymbol"),o="auto"===r;if(!r||o){var s=n.getAxesByScale("ordinal")[0];if(s&&(!o||!function(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),s=0;s<i;s+=o)if(1.5*a.default.getSymbolSize(e,s)[t.isHorizontal()?1:0]>r)return!1;return!0}(s,e))){var u=e.mapDimension(s.dim),l={};return i.each(s.getViewLabels(),(function(t){var e=s.scale.getRawOrdinalNumber(t.tickValue);l[e]=1})),function(t){return!l.hasOwnProperty(e.get(u,t))}}}}function k(t,e){return[t[2*e],t[2*e+1]]}function P(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<y.SPECIAL_STATES.length;e++)if(t.get([y.SPECIAL_STATES[e],"endLabel","show"]))return!0;return!1}function L(t,e,n,r){if(Object(m.isCoordinateSystemType)(e,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},u=P(r)?function(n,r){t._endLabelOnDuring(n,r,a,s,o,i,e)}:null,l=e.getBaseAxis().isHorizontal(),c=Object(v.createGridClipPath)(e,n,r,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),u);if(!r.get("clip",!0)){var h=c.shape,f=Math.max(h.width,h.height);l?(h.y-=f,h.height+=2*f):(h.x-=f,h.width+=2*f)}return u&&u(1,c),c}return Object(v.createPolarClipPath)(e,n,r)}var R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.init=function(){var t=new l.default,e=new o.default;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var r=this,o=t.coordinateSystem,a=this.group,s=t.getData(),u=t.getModel("lineStyle"),l=t.getModel("areaStyle"),h=s.getLayout("points")||[],f="polar"===o.type,d=this._coordSys,p=this._symbolDraw,v=this._polyline,m=this._polygon,b=this._lineGroup,_=t.get("animation"),S=!l.isEmpty(),E=l.get("origin"),T=Object(g.prepareDataCoordInfo)(o,s,E),k=S&&function(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=Object(w.createFloat32Array)(2*r),o=0;o<r;o++){var a=Object(g.getStackedOnPoint)(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(o,s,T),P=t.get("showSymbol"),R=t.get("connectNulls"),D=P&&!f&&j(t,s,o),N=this._data;N&&N.eachItemGraphicEl((function(t,e){t.__temp&&(a.remove(t),N.setItemGraphicEl(e,null))})),P||p.remove(),a.add(b);var B,F=!f&&t.get("step");o&&o.getArea&&t.get("clip",!0)&&(null!=(B=o.getArea()).width?(B.x-=.1,B.y-=.1,B.width+=.2,B.height+=.2):B.r0&&(B.r0-=.5,B.r+=.5)),this._clipShapeForSymbol=B;var z=I(s,o,n)||s.getVisual("style")[s.getVisual("drawType")];if(v&&d.type===o.type&&F===this._step){S&&!m?m=this._newPolygon(h,k):m&&!S&&(b.remove(m),m=this._polygon=null),f||this._initOrUpdateEndLabel(t,o,Object(O.convertToColorString)(z));var V=b.getClipPath();if(V){var U=L(this,o,!1,t);c.initProps(V,{shape:U.shape},t)}else b.setClipPath(L(this,o,!0,t));P&&p.updateData(s,{isIgnore:D,clipShape:B,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),C(this._stackedOnPoints,k)&&C(this._points,h)||(_?this._doUpdateAnimation(s,k,o,n,F,E,R):(F&&(h=M(h,o,F,R),k&&(k=M(k,o,F,R))),v.setShape({points:h}),m&&m.setShape({points:h,stackedOnPoints:k})))}else P&&p.updateData(s,{isIgnore:D,clipShape:B,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),_&&this._initSymbolLabelAnimation(s,o,B),F&&(h=M(h,o,F,R),k&&(k=M(k,o,F,R))),v=this._newPolyline(h),S?m=this._newPolygon(h,k):m&&(b.remove(m),m=this._polygon=null),f||this._initOrUpdateEndLabel(t,o,Object(O.convertToColorString)(z)),b.setClipPath(L(this,o,!0,t));var G=t.getModel("emphasis"),H=G.get("focus"),W=G.get("blurScope"),Y=G.get("disabled");(v.useStyle(i.defaults(u.getLineStyle(),{fill:"none",stroke:z,lineJoin:"bevel"})),Object(y.setStatesStylesFromModel)(v,t,"lineStyle"),v.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(v.getState("emphasis").style.lineWidth=+v.style.lineWidth+1);Object(x.getECData)(v).seriesIndex=t.seriesIndex,Object(y.toggleHoverEmphasis)(v,H,W,Y);var X=A(t.get("smooth")),$=t.get("smoothMonotone");if(v.setShape({smooth:X,smoothMonotone:$,connectNulls:R}),m){var q=s.getCalculationInfo("stackedOnSeries"),Z=0;m.useStyle(i.defaults(l.getAreaStyle(),{fill:z,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),q&&(Z=A(q.get("smooth"))),m.setShape({smooth:X,stackedOnSmooth:Z,smoothMonotone:$,connectNulls:R}),Object(y.setStatesStylesFromModel)(m,t,"areaStyle"),Object(x.getECData)(m).seriesIndex=t.seriesIndex,Object(y.toggleHoverEmphasis)(m,H,W,Y)}var K=function(t){r._changePolyState(t)};s.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=K)})),this._polyline.onHoverStateChange=K,this._data=s,this._coordSys=o,this._stackedOnPoints=k,this._points=h,this._step=F,this._valueOrigin=E,t.get("triggerLineEvent")&&(this.packEventData(t,v),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,e){Object(x.getECData)(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=f.queryDataIndex(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var s=i.getLayout("points"),u=i.getItemGraphicEl(o);if(!u){var l=s[2*o],c=s[2*o+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var h=t.get("zlevel")||0,d=t.get("z")||0;(u=new a.default(i,o)).x=l,u.y=c,u.setZ(h,d);var g=u.getSymbolPath().getTextContent();g&&(g.zlevel=h,g.z=d,g.z2=this._polyline.z2+1),u.__temp=!0,i.setItemGraphicEl(o,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else p.default.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=f.queryDataIndex(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else p.default.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;Object(y.setStatesFlag)(this._polyline,t),e&&Object(y.setStatesFlag)(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new d.ECPolyline({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new d.ECPolygon({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,o,a=e.getBaseAxis(),s=a.inverse;"cartesian2d"===e.type?(r=a.isHorizontal(),o=!1):"polar"===e.type&&(r="angle"===a.dim,o=!0);var u=t.hostModel,l=u.get("animationDuration");i.isFunction(l)&&(l=l(null));var c=u.get("animationDelay")||0,h=i.isFunction(c)?c(null):c;t.eachItemGraphicEl((function(t,a){var u=t;if(u){var f=[t.x,t.y],d=void 0,p=void 0,g=void 0;if(n)if(o){var v=n,m=e.pointToCoord(f);r?(d=v.startAngle,p=v.endAngle,g=-m[1]/180*Math.PI):(d=v.r0,p=v.r,g=m[0])}else{var y=n;r?(d=y.x,p=y.x+y.width,g=t.x):(d=y.y+y.height,p=y.y,g=t.y)}var b=p===d?0:(g-d)/(p-d);s&&(b=1-b);var _=i.isFunction(c)?c(a):l*b+h,x=u.getSymbolPath(),w=x.getTextContent();u.attr({scaleX:0,scaleY:0}),u.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(P(t)){var i=t.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new h.default({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var u=function(t){for(var e,n,r=t.length/2;r>0&&(e=t[2*r-2],n=t[2*r-1],isNaN(e)||isNaN(n));r--);return r-1}(a);u>=0&&(Object(b.setLabelStyle)(o,Object(b.getLabelStatesModels)(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:u,defaultText:function(t,e,n){return null!=n?Object(_.getDefaultInterpolatedLabel)(i,n):Object(_.getDefaultLabel)(i,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(r,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,u=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,g=a.getBaseAxis(),v=g.isHorizontal(),m=g.inverse,y=e.shape,_=m?v?y.x:y.y+y.height:v?y.x+y.width:y.y,x=(v?p:0)*(m?-1:1),w=(v?0:-p)*(m?-1:1),O=v?"x":"y",S=function(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,u=-1,l=0;l<o;l++)if(i=t[2*l+a],!isNaN(i)&&!isNaN(t[2*l+1-a]))if(0!==l){if(r<=e&&i>=e||r>=e&&i<=e){u=l;break}s=l,r=i}else r=i;return{range:[s,u],t:(e-r)/(i-r)}}(l,_,O),C=S.range,E=C[1]-C[0],T=void 0;if(E>=1){if(E>1&&!h){var A=k(l,C[0]);s.attr({x:A[0]+x,y:A[1]+w}),i&&(T=c.getRawValue(C[0]))}else{(A=u.getPointOn(_,O))&&s.attr({x:A[0]+x,y:A[1]+w});var M=c.getRawValue(C[0]),I=c.getRawValue(C[1]);i&&(T=f.interpolateRawValues(n,d,M,I,S.t))}r.lastFrameIndex=C[0]}else{var j=1===t||r.lastFrameIndex>0?C[0]:0;A=k(l,j);i&&(T=c.getRawValue(j)),s.attr({x:A[0]+x,y:A[1]+w})}i&&Object(b.labelInner)(s).setLabelText(T)}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var u=this._polyline,l=this._polygon,h=t.hostModel,f=Object(s.default)(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),d=f.current,p=f.stackedOnCurrent,g=f.next,v=f.stackedOnNext;if(i&&(d=M(f.current,n,i,a),p=M(f.stackedOnCurrent,n,i,a),g=M(f.next,n,i,a),v=M(f.stackedOnNext,n,i,a)),T(d,g)>3e3||l&&T(p,v)>3e3)return u.stopAnimation(),u.setShape({points:g}),void(l&&(l.stopAnimation(),l.setShape({points:g,stackedOnPoints:v})));u.shape.__points=f.current,u.shape.points=d;var m={shape:{points:g}};f.current!==d&&(m.shape.__points=f.next),u.stopAnimation(),c.updateProps(u,m,h),l&&(l.setShape({points:d,stackedOnPoints:p}),l.stopAnimation(),c.updateProps(l,{shape:{stackedOnPoints:v}},h),u.shape.points!==l.shape.points&&(l.shape.points=u.shape.points));for(var y=[],b=f.status,_=0;_<b.length;_++){if("="===b[_].cmd){var x=t.getItemGraphicEl(b[_].idx1);x&&y.push({el:x,ptIdx:_})}}u.animators&&u.animators.length&&u.animators[0].during((function(){l&&l.dirtyShape();for(var t=u.shape.__points,e=0;e<y.length;e++){var n=y[e].el,r=2*y[e].ptIdx;n.x=t[r],n.y=t[r+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,r){t.__temp&&(e.remove(t),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(p.default);e.default=R},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(514),i=n(211);function o(t,e,n,o,a,s,u,l){for(var c=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),h=[],f=[],d=[],p=[],g=[],v=[],m=[],y=Object(r.prepareDataCoordInfo)(a,e,u),b=t.getLayout("points")||[],_=e.getLayout("points")||[],x=0;x<c.length;x++){var w=c[x],O=!0,S=void 0,C=void 0;switch(w.cmd){case"=":S=2*w.idx,C=2*w.idx1;var E=b[S],T=b[S+1],A=_[C],M=_[C+1];(isNaN(E)||isNaN(T))&&(E=A,T=M),h.push(E,T),f.push(A,M),d.push(n[S],n[S+1]),p.push(o[C],o[C+1]),m.push(e.getRawIndex(w.idx1));break;case"+":var I=w.idx,j=y.dataDimsForPoint,k=a.dataToPoint([e.get(j[0],I),e.get(j[1],I)]);C=2*I,h.push(k[0],k[1]),f.push(_[C],_[C+1]);var P=Object(r.getStackedOnPoint)(y,a,e,I);d.push(P[0],P[1]),p.push(o[C],o[C+1]),m.push(e.getRawIndex(I));break;case"-":O=!1}O&&(g.push(w),v.push(v.length))}v.sort((function(t,e){return m[t]-m[e]}));var L=h.length,R=Object(i.createFloat32Array)(L),D=Object(i.createFloat32Array)(L),N=Object(i.createFloat32Array)(L),B=Object(i.createFloat32Array)(L),F=[];for(x=0;x<v.length;x++){var z=v[x],V=2*x,U=2*z;R[V]=h[U],R[V+1]=h[U+1],D[V]=f[U],D[V+1]=f[U+1],N[V]=d[U],N[V+1]=d[U+1],B[V]=p[U],B[V+1]=p[U+1],F[x]=g[z]}return{current:R,next:D,stackedOnCurrent:N,stackedOnNext:B,status:F}}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(163),o=n(59),a=n(67),s=n(40),u=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(r.__extends)(e,t),e.prototype.getInitialData=function(t){return Object(i.default)(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new s.default,n=Object(a.createSymbol)("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,u=.8*t.itemHeight,l=Object(a.createSymbol)(o,(t.itemWidth-u)/2,(t.itemHeight-u)/2,u,u,t.itemStyle.fill);e.add(l),l.setStyle(t.itemStyle);var c="inherit"===t.iconRotate?i:t.iconRotate||0;return l.rotation=c*Math.PI/180,l.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(o.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(36),o=n(40),a=n(0),s=n(12),u=n(23),l=n(79),c=n(190),h=n(31),f=n(11),d=n(27),p=n(143),g=n(297),v=n(515),m=n(58),y=n(270),b=n(246),_=n(887),x=Math.max,w=Math.min;var O=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Object(s.traverseElements)(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,r){var i,a=this.group,s=t.getData(),h=this._data,f=t.coordinateSystem,p=f.getBaseAxis();"cartesian2d"===f.type?i=p.isHorizontal():"polar"===f.type&&(i="angle"===p.dim);var g=t.isAnimationEnabled()?t:null,v=function(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();0;if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}(t,f);v&&this._enableRealtimeSort(v,s,n);var m=t.get("clip",!0)||v,b=function(t,e){var n=t.getArea&&t.getArea();if(Object(y.isCoordinateSystemType)(t,"cartesian2d")){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(f,s);a.removeClipPath();var _=t.get("roundCap",!0),x=t.get("showBackground",!0),w=t.getModel("backgroundStyle"),O=w.get("borderRadius")||0,T=[],A=this._backgroundEls,M=r&&r.isInitSort,k=r&&"changeAxisOrder"===r.type;function L(t){var e=j[f.type](s,t),n=function(t,e,n){return new("polar"===t.type?c.default:l.default)({shape:B(e,n,t),silent:!0,z2:0})}(f,i,e);return n.useStyle(w.getItemStyle()),"cartesian2d"===f.type&&n.setShape("r",O),T[t]=n,n}s.diff(h).add((function(e){var n=s.getItemModel(e),r=j[f.type](s,e,n);if(x&&L(e),s.hasValue(e)&&I[f.type](r)){var o=!1;m&&(o=S[f.type](b,r));var l=C[f.type](t,s,e,r,i,g,p.model,!1,_);v&&(l.forceLabelAnimation=!0),P(l,s,e,n,r,t,i,"polar"===f.type),M?l.attr({shape:r}):v?E(v,g,l,r,e,i,!1,!1):Object(u.initProps)(l,{shape:r},t,e),s.setItemGraphicEl(e,l),a.add(l),l.ignore=o}})).update((function(e,n){var r=s.getItemModel(e),o=j[f.type](s,e,r);if(x){var l=void 0;0===A.length?l=L(n):((l=A[n]).useStyle(w.getItemStyle()),"cartesian2d"===f.type&&l.setShape("r",O),T[e]=l);var c=j[f.type](s,e),y=B(i,c,f);Object(u.updateProps)(l,{shape:y},g,e)}var R=h.getItemGraphicEl(n);if(s.hasValue(e)&&I[f.type](o)){var D=!1;if(m&&(D=S[f.type](b,o))&&a.remove(R),R?Object(u.saveOldStyle)(R):R=C[f.type](t,s,e,o,i,g,p.model,!!R,_),v&&(R.forceLabelAnimation=!0),k){var N=R.getTextContent();if(N){var F=Object(d.labelInner)(N);null!=F.prevValue&&(F.prevValue=F.value)}}else P(R,s,e,r,o,t,i,"polar"===f.type);M?R.attr({shape:o}):v?E(v,g,R,o,e,i,!0,k):Object(u.updateProps)(R,{shape:o},t,e,null),s.setItemGraphicEl(e,R),R.ignore=D,a.add(R)}else a.remove(R)})).remove((function(e){var n=h.getItemGraphicEl(e);n&&Object(u.removeElementWithFadeOut)(n,t,e)})).execute();var R=this._backgroundGroup||(this._backgroundGroup=new o.default);R.removeAll();for(var D=0;D<T.length;++D)R.add(T[D]);a.add(R),this._backgroundEls=T,this._data=s},e.prototype._renderLarge=function(t,e,n){this._clear(),D(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),D(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&Object(g.createClipPath)(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var r=this;if(e.count()){var i=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var r=[];return t.each(t.mapDimension(e.dim),(function(t,e){var i=n(e);i=null==i?NaN:i,r.push({dataIndex:e,mappedValue:i,ordinalNumber:t})})),r.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:Object(a.map)(r,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var r=n.scale,i=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var u=t.rawIndexOf(i,r.getRawOrdinalNumber(a)),l=u<0?Number.MIN_VALUE:e(t.indexOfRawIndex(u));if(l>o)return!0;o=l}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){Object(u.removeElementWithFadeOut)(e,t,Object(h.getECData)(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(m.default),S={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=x(e.x,t.x),s=w(e.x+e.width,i),u=x(e.y,t.y),l=w(e.y+e.height,o),c=s<a,h=l<u;return e.x=c&&a>i?s:a,e.y=h&&u>o?l:u,e.width=c?0:s-a,e.height=h?0:l-u,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=w(e.r,t.r),o=x(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){r=e.r;e.r=e.r0,e.r0=r}return a}},C={cartesian2d:function(t,e,n,r,i,o,s,u,c){var h=new l.default({shape:Object(a.extend)({},r),z2:1});(h.__dataIndex=n,h.name="item",o)&&(h.shape[i?"height":"width"]=0);return h},polar:function(t,e,n,r,i,o,a,s,l){var h=!i&&l?v.default:c.default,f=new h({shape:r,z2:1});f.name="item";var d=k(i);if(f.calculateTextPosition=Object(_.createSectorCalculateTextPosition)(d,{isRoundCap:h===v.default}),o){var p=i?"r":"endAngle",g={};f.shape[p]=i?0:r.startAngle,g[p]=r[p],(s?u.updateProps:u.initProps)(f,{shape:g},o)}return f}};function E(t,e,n,r,i,o,a,s){var l,c;o?(c={x:r.x,width:r.width},l={y:r.y,height:r.height}):(c={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?u.updateProps:u.initProps)(n,{shape:l},e,i,null);var h=e?t.baseAxis.model:null;(a?u.updateProps:u.initProps)(n,{shape:c},h,i)}function T(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var A=["x","y","width","height"],M=["cx","cy","r","startAngle","endAngle"],I={cartesian2d:function(t){return!T(t,A)},polar:function(t){return!T(t,M)}},j={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),i=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function k(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function P(t,e,n,r,i,o,s,u){var l=e.getItemVisual(n,"style");u||t.setShape("r",r.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var c=r.getShallow("cursor");c&&t.attr("cursor",c);var h=u?s?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":s?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=Object(d.getLabelStatesModels)(r);Object(d.setLabelStyle)(t,p,{labelFetcher:o,labelDataIndex:n,defaultText:Object(b.getDefaultLabel)(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=t.getTextContent();if(u&&g){var v=r.get(["label","position"]);t.textConfig.inside="middle"===v||null,Object(_.setSectorTextRotation)(t,"outside"===v?h:v,k(s),r.get(["label","rotate"]))}Object(d.setLabelValueAnimation)(g,p,o.getRawValue(n),(function(t){return Object(b.getDefaultInterpolatedLabel)(e,t)}));var m=r.getModel(["emphasis"]);Object(f.toggleHoverEmphasis)(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),Object(f.setStatesStylesFromModel)(t,r),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(i)&&(t.style.fill="none",t.style.stroke="none",Object(a.each)(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var L=function(){},R=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new L},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,u=0;u<n.length;u+=3)a[r]=s,a[i]=n[u+2],o[r]=n[u+r],o[i]=n[u+i],t.rect(o[0],o[1],a[0],a[1])},e}(i.default);function D(t,e,n,r){var i=t.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),u=t.getModel("backgroundStyle"),l=i.getLayout("largeBackgroundPoints");if(l){var c=new R({shape:{points:l},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(u.getItemStyle()),e.add(c),n&&n.push(c)}var f=new R({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=o,f.largeDataIndices=a,f.barWidth=s,e.add(f),f.useStyle(i.getVisual("style")),Object(h.getECData)(f).seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",N),f.on("mousemove",N)),n&&n.push(f)}var N=Object(p.throttle)((function(t){var e=function(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],u=[],l=t.barWidth,c=0,h=o.length/3;c<h;c++){var f=3*c;if(u[r]=l,u[i]=o[f+2],s[r]=o[f+r],s[i]=o[f+i],u[i]<0&&(s[i]+=u[i],u[i]=-u[i]),e>=s[0]&&e<=s[0]+u[0]&&n>=s[1]&&n<=s[1]+u[1])return a[c]}return-1}(this,t.offsetX,t.offsetY);Object(h.getECData)(this).dataIndex=e>=0?e:null}),30,!1);function B(t,e,n){if(Object(y.isCoordinateSystemType)(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}var o=e;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}e.default=O},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(516),o=n(163),a=n(111),s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.getInitialData=function(){return Object(o.default)(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Object(a.inheritDefaultOption)(i.default.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(i.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(72),a=n(23),s=n(191),u=n(190),l=n(11),c=n(58),h=n(1368),f=n(232),d=n(27),p=n(400),g=n(709),v=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var a=new o.default;return i.setTextContent(a),i.updateData(e,n,r,!0),i}return Object(r.__extends)(e,t),e.prototype.updateData=function(t,e,n,r){var o=t.hostModel,s=t.getItemModel(e),u=s.getModel("emphasis"),c=t.getItemLayout(e),h=Object(i.extend)(Object(p.getSectorCornerRadius)(s.getModel("itemStyle"),c,!0),c);if(isNaN(h.startAngle))this.setShape(h);else{if(r){this.setShape(h);var f=o.getShallow("animationType");o.ecModel.ssr?(a.initProps(this,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),this.originX=h.cx,this.originY=h.cy):"scale"===f?(this.shape.r=c.r0,a.initProps(this,{shape:{r:c.r}},o,e)):null!=n?(this.setShape({startAngle:n,endAngle:n}),a.initProps(this,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},o,e)):(this.shape.endAngle=c.startAngle,a.updateProps(this,{shape:{endAngle:c.endAngle}},o,e))}else Object(a.saveOldStyle)(this),a.updateProps(this,{shape:h},o,e);this.useStyle(t.getItemVisual(e,"style")),Object(l.setStatesStylesFromModel)(this,s);var d=(c.startAngle+c.endAngle)/2,g=o.get("selectedOffset"),v=Math.cos(d)*g,m=Math.sin(d)*g,y=s.getShallow("cursor");y&&this.attr("cursor",y),this._updateLabel(o,t,e),this.ensureState("emphasis").shape=Object(i.extend)({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Object(p.getSectorCornerRadius)(u.getModel("itemStyle"),c)),Object(i.extend)(this.ensureState("select"),{x:v,y:m,shape:Object(p.getSectorCornerRadius)(s.getModel(["select","itemStyle"]),c)}),Object(i.extend)(this.ensureState("blur"),{shape:Object(p.getSectorCornerRadius)(s.getModel(["blur","itemStyle"]),c)});var b=this.getTextGuideLine(),_=this.getTextContent();b&&Object(i.extend)(b.ensureState("select"),{x:v,y:m}),Object(i.extend)(_.ensureState("select"),{x:v,y:m}),Object(l.toggleHoverEmphasis)(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var r=e.getItemModel(n),o=r.getModel("labelLine"),a=e.getItemVisual(n,"style"),u=a&&a.fill,l=a&&a.opacity;Object(d.setLabelStyle)(this,Object(d.getLabelStatesModels)(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var c=this.getTextContent();this.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=t.get(["label","position"]);if("outside"!==h&&"outer"!==h)this.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new s.default,this.setTextGuideLine(p)),Object(f.setLabelLineStyle)(this,Object(f.getLabelLineStatesModels)(r),{stroke:u,opacity:Object(i.retrieve3)(o.get(["lineStyle","opacity"]),l,1)})}},e}(u.default),m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n,r){var i,o=t.getData(),s=this._data,l=this.group;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(i=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var d=new u.default({shape:Object(g.getBasicPieLayout)(t,n)});d.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add((function(t){var e=new v(o,t,i);o.setItemGraphicEl(t,e),l.add(e)})).update((function(t,e){var n=s.getItemGraphicEl(e);n.updateData(o,t,i),n.off("click"),l.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){var n=s.getItemGraphicEl(e);a.removeElementWithFadeOut(n,t,e)})).execute(),Object(h.default)(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var r=t[0]-n.cx,i=t[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},e.type="pie",e}(c.default);e.default=m},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r=n(6),i=n(57),o=n(0),a=n(232),s=n(337),u=Math.PI/180;function l(t,e,n,r,i,o,a,u,l,h){if(!(t.length<2)){for(var f=t.length,d=0;d<f;d++)if("outer"===t[d].position&&"labelLine"===t[d].labelAlignTo){var p=t[d].label.x-h;t[d].linePoints[1][0]+=p,t[d].label.x=h}Object(s.shiftLayoutOnY)(t,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var u=t[s],l=u.label.y>n?a:o,c=Math.abs(u.label.y-n);if(c>=l.maxY){var h=u.label.x-e-u.len2*i,f=r+u.len,d=Math.abs(h)<f?Math.sqrt(c*c/(1-h*h/f/f)):f;l.rB=d,l.maxY=c}l.list.push(u)}g(o),g(a)}(t)}function g(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var u=t.list[s],l=Math.abs(u.label.y-n),h=r+u.len,f=h*h,d=Math.sqrt((1-Math.abs(l*l/a))*f),p=e+(d+u.len2)*i,g=p-u.label.x;c(u,u.targetTextWidth-g*i,!0),u.label.x=p}}}function c(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,u=s?s[1]+s[3]:0,l=i.overflow,c=o.width+(a?0:u);if(e<c||n){var h=o.height;if(l&&l.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-u);var f=r.getBoundingRect();r.setStyle("width",Math.ceil(f.width)),r.setStyle("backgroundColor",a)}else{var d=e-u,p=e<c?d:n?d>t.unconstrainedWidth?null:d:null;r.setStyle("width",p)}var g=r.getBoundingRect();o.width=g.width;var v=(r.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function h(t){return"center"===t.position}function f(t){var e,n,s=t.getData(),f=[],d=!1,p=(t.get("minShowLabelAngle")||0)*u,g=s.getLayout("viewRect"),v=s.getLayout("r"),m=g.width,y=g.x,b=g.y,_=g.height;function x(t){t.ignore=!0}s.each((function(t){var a=s.getItemGraphicEl(t),u=a.shape,l=a.getTextContent(),c=a.getTextGuideLine(),h=s.getItemModel(t),g=h.getModel("label"),b=g.get("position")||h.get(["emphasis","label","position"]),_=g.get("distanceToLabelLine"),w=g.get("alignTo"),O=Object(r.parsePercent)(g.get("edgeDistance"),m),S=g.get("bleedMargin"),C=h.getModel("labelLine"),E=C.get("length");E=Object(r.parsePercent)(E,m);var T=C.get("length2");if(T=Object(r.parsePercent)(T,m),Math.abs(u.endAngle-u.startAngle)<p)return Object(o.each)(l.states,x),Object(o.each)(c.states,x),void(l.ignore=c.ignore=!0);if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(l)){var A,M,I,j,k=(u.startAngle+u.endAngle)/2,P=Math.cos(k),L=Math.sin(k);e=u.cx,n=u.cy;var R="inside"===b||"inner"===b;if("center"===b)A=u.cx,M=u.cy,j="center";else{var D=(R?(u.r+u.r0)/2*P:u.r*P)+e,N=(R?(u.r+u.r0)/2*L:u.r*L)+n;if(A=D+3*P,M=N+3*L,!R){var B=D+P*(E+v-u.r),F=N+L*(E+v-u.r),z=B+(P<0?-1:1)*T;A="edge"===w?P<0?y+O:y+m-O:z+(P<0?-_:_),M=F,I=[[D,N],[B,F],[z,F]]}j=R?"center":"edge"===w?P>0?"right":"left":P>0?"left":"right"}var V=Math.PI,U=0,G=g.get("rotate");if(Object(o.isNumber)(G))U=G*(V/180);else if("center"===b)U=0;else if("radial"===G||!0===G){U=P<0?-k+V:-k}else if("tangential"===G&&"outside"!==b&&"outer"!==b){var H=Math.atan2(P,L);H<0&&(H=2*V+H),L>0&&(H=V+H),U=H-V}if(d=!!U,l.x=A,l.y=M,l.rotation=U,l.setStyle({verticalAlign:"middle"}),R){l.setStyle({align:j});var W=l.states.select;W&&(W.x+=l.x,W.y+=l.y)}else{var Y=l.getBoundingRect().clone();Y.applyTransform(l.getComputedTransform());var X=(l.style.margin||0)+2.1;Y.y-=X/2,Y.height+=X,f.push({label:l,labelLine:c,position:b,len:E,len2:T,minTurnAngle:C.get("minTurnAngle"),maxSurfaceAngle:C.get("maxSurfaceAngle"),surfaceNormal:new i.default(P,L),linePoints:I,textAlign:j,labelDistance:_,labelAlignTo:w,edgeDistance:O,bleedMargin:S,rect:Y,unconstrainedWidth:Y.width,labelStyleWidth:l.style.width})}a.setTextConfig({inside:R})}})),!d&&t.get("avoidLabelOverlap")&&function(t,e,n,r,i,o,a,s){for(var u=[],f=[],d=Number.MAX_VALUE,p=-Number.MAX_VALUE,g=0;g<t.length;g++){var v=t[g].label;h(t[g])||(v.x<e?(d=Math.min(d,v.x),u.push(t[g])):(p=Math.max(p,v.x),f.push(t[g])))}for(g=0;g<t.length;g++){if(!h(b=t[g])&&b.linePoints){if(null!=b.labelStyleWidth)continue;v=b.label;var m=b.linePoints,y=void 0;y="edge"===b.labelAlignTo?v.x<e?m[2][0]-b.labelDistance-a-b.edgeDistance:a+i-b.edgeDistance-m[2][0]-b.labelDistance:"labelLine"===b.labelAlignTo?v.x<e?d-a-b.bleedMargin:a+i-p-b.bleedMargin:v.x<e?v.x-a-b.bleedMargin:a+i-v.x-b.bleedMargin,b.targetTextWidth=y,c(b,y)}}for(l(f,e,n,r,1,0,o,0,s,p),l(u,e,n,r,-1,0,o,0,s,d),g=0;g<t.length;g++){var b;if(!h(b=t[g])&&b.linePoints){v=b.label,m=b.linePoints;var _="edge"===b.labelAlignTo,x=v.style.padding,w=x?x[1]+x[3]:0,O=v.style.backgroundColor?0:w,S=b.rect.width+O,C=m[1][0]-m[2][0];_?v.x<e?m[2][0]=a+b.edgeDistance+S+b.labelDistance:m[2][0]=a+i-b.edgeDistance-S-b.labelDistance:(v.x<e?m[2][0]=v.x+b.labelDistance:m[2][0]=v.x-b.labelDistance,m[1][0]=m[2][0]+C),m[1][1]=m[2][1]=v.y}}}(f,e,n,v,m,_,y,b);for(var w=0;w<f.length;w++){var O=f[w],S=O.label,C=O.labelLine,E=isNaN(S.x)||isNaN(S.y);if(S){S.setStyle({align:O.textAlign}),E&&(Object(o.each)(S.states,x),S.ignore=!0);var T=S.states.select;T&&(T.x+=S.x,T.y+=S.y)}if(C){var A=O.linePoints;E||!A?(Object(o.each)(C.states,x),C.ignore=!0):(Object(a.limitTurnAngle)(A,O.minTurnAngle),Object(a.limitSurfaceAngle)(A,O.surfaceNormal,O.maxSurfaceAngle),C.setShape({points:A}),S.__hostTarget.textGuideLineConfig={anchor:new i.default(A[0][0],A[0][1])})}}}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(265),o=n(0),a=n(9),s=n(6),u=n(152),l=n(319),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new l.default(o.bind(this.getData,this),o.bind(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){var t=Object(i.default)(this,{coordDimensions:["value"],encodeDefaulter:o.curry(u.makeSeriesEncodeForNameBased,this)}),e=[];return t.each(t.mapDimension("value"),(function(t){e.push(t)})),this.seats=Object(s.getPercentSeats)(e,t.hostModel.get("percentPrecision")),t},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.call(this,e);return n.percent=this.seats[e],n.$vars.push("percent"),n},e.prototype._defaultLabelLine=function(t){a.defaultEmphasis(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(n(59).default);e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(0);function i(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(Object(r.isNumber)(i)&&!isNaN(i)&&i<0)}))}}}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(n(41).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(33),o=n(85),a=n(800),s=n(1374),u=n(9),l=n(338),c=n(123),h=n(711),f=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=a.cartesian2DDimensions,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=Object(r.keys)(t),i=n.length;if(i){for(var a=[],s=i-1;s>=0;s--){var u=t[+n[s]],l=u.model,f=u.scale;Object(c.isIntervalOrLogScale)(f)&&l.get("alignTicks")&&null==l.get("interval")?a.push(u):(Object(o.niceScaleExtent)(f,l),Object(c.isIntervalOrLogScale)(f)&&(e=u))}a.length&&(e||(e=a.pop(),Object(o.niceScaleExtent)(e.scale,e.model)),Object(r.each)(a,(function(t){Object(h.alignScaleTicks)(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var a={};Object(r.each)(n.x,(function(t){p(n,"y",t,a)})),Object(r.each)(n.y,(function(t){p(n,"x",t,a)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),s=!n&&t.get("containLabel"),u=Object(i.getLayoutRect)(a,{width:e.getWidth(),height:e.getHeight()});this._rect=u;var l=this._axesList;function c(){Object(r.each)(l,(function(t){var e=t.isHorizontal(),n=e?[0,u.width]:[0,u.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),function(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}(t,e?u.x:u.y)}))}c(),s&&(Object(r.each)(l,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=Object(o.estimateLabelUnionRect)(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);u[n]-=e[n]+r,"top"===t.position?u.y+=e.height+r:"left"===t.position&&(u.x+=e.width+r)}}})),c()),Object(r.each)(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(r.isObject)(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===t||o[i].getAxis("y").index===e)return o[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents("xAxis",u.SINGLE_REFERRING).models[0],a=t.yAxisModel||i&&i.getReferringComponents("yAxis",u.SINGLE_REFERRING).models[0],s=t.gridModel,l=this._coordsList;if(i)e=i.coordinateSystem,Object(r.indexOf)(l,e)<0&&(e=null);else if(o&&a)e=this.getCartesian(o.componentIndex,a.componentIndex);else if(o)n=this.getAxis("x",o.componentIndex);else if(a)n=this.getAxis("y",a.componentIndex);else if(s){s.coordinateSystem===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,u=this,l={left:!1,right:!1,top:!1,bottom:!1},c={x:{},y:{}},h={x:0,y:0};if(e.eachComponent("xAxis",f("x"),this),e.eachComponent("yAxis",f("y"),this),!h.x||!h.y)return this._axesMap={},void(this._axesList=[]);function f(e){return function(n,r){if(d(n,t)){var i=n.get("position");"x"===e?"top"!==i&&"bottom"!==i&&(i=l.bottom?"top":"bottom"):"left"!==i&&"right"!==i&&(i=l.left?"right":"left"),l[i]=!0;var a=new s.default(e,Object(o.createScaleByModel)(n),[0,0],n.get("type"),i),f="category"===a.type;a.onBand=f&&n.get("boundaryGap"),a.inverse=n.get("inverse"),n.axis=a,a.model=n,a.grid=u,a.index=r,u._axesList.push(a),c[e][r]=a,h[e]++}}}this._axesMap=c,Object(r.each)(c.x,(function(e,n){Object(r.each)(c.y,(function(r,o){var s="x"+n+"y"+o,u=new a.default(s);u.master=i,u.model=t,i._coordsMap[s]=u,i._coordsList.push(u),u.addAxis(e),u.addAxis(r)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){Object(r.each)(Object(o.getDataDimensionsOnAxis)(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}Object(r.each)(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(Object(l.isCartesian2DSeries)(t)){var r=Object(l.findAxisModels)(t),i=r.xAxisModel,o=r.yAxisModel;if(!d(i,e)||!d(o,e))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=t.getData(),u=a.getAxis("x"),c=a.getAxis("y");n(s,u),n(s,c)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Object(r.each)(this.getCartesians(),(function(i){var o=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(o);Object(r.indexOf)(e,o)<0&&e.push(o),Object(r.indexOf)(n,a)<0&&n.push(a)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var r=[];return e.eachComponent("grid",(function(i,o){var a=new t(i,e,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)})),e.eachSeries((function(t){if(Object(l.isCartesian2DSeries)(t)){var e=Object(l.findAxisModels)(t),n=e.xAxisModel,r=e.yAxisModel;0;var i=n.getCoordSysModel().coordinateSystem;t.coordinateSystem=i.getCartesian(n.componentIndex,r.componentIndex)}})),r},t.dimensions=a.cartesian2DDimensions,t}();function d(t,e){return t.getCoordSysModel()===e}function p(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),u=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=u)g(o[u])&&(i=o[u]);else for(var l in o)if(o.hasOwnProperty(l)&&g(o[l])&&!r[c(o[l])]){i=o[l];break}i&&(r[c(i)]=!0)}function c(t){return t.dim+"_"+t.index}}function g(t){return t&&"category"!==t.type&&"time"!==t.type&&Object(o.ifAxisCrossZero)(t)}e.default=f},function(t,e,n){"use strict";n.r(e);var r=n(0),i=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return r.map(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),r.filter(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}();e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return Object(r.__extends)(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(n(164).default);e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"AXIS_TYPES",(function(){return r}));var r={value:1,category:1,time:1,log:1}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(163),o=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(r.__extends)(e,t),e.prototype.getInitialData=function(t,e){return Object(i.default)(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(n(59).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(317),o=n(1378),a=n(318),s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=Object(a.default)("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,r=e.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new o.default:new i.default,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(n(58).default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(35),o=n(36),a=n(40),s=n(67),u=n(31),l=function(){},c=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new l},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,r=e.points,i=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,u=s&&i[0]<4,l=this.softClipShape;if(u)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var c=r[n++],h=r[n++];isNaN(c)||isNaN(h)||(l&&!l.contain(c,h)||(a.x=c-i[0]/2,a.y=h-i[1]/2,a.width=i[0],a.height=i[1],o.buildPath(t,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,r=e.size,i=this._ctx,o=this.softClipShape;if(i){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||i.fillRect(a-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var u=2*s,l=r[u]-o/2,c=r[u+1]-a/2;if(t>=l&&e>=c&&t<=l+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return t=n[0],e=n[1],r.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,r=e.size,o=r[0],a=r[1],s=1/0,u=1/0,l=-1/0,c=-1/0,h=0;h<n.length;){var f=n[h++],d=n[h++];s=Math.min(f,s),l=Math.max(f,l),u=Math.min(d,u),c=Math.max(d,c)}t=this._rect=new i.default(s-o/2,u-a/2,l-s+o,c-u+a)}return t},e}(o.default),h=function(){function t(){this.group=new a.default}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),r=4*t.startIndex*2;e=new Float32Array(e.buffer,r,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var r=this._newAdded[0],i=e.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.endIndex=t.end,r.setShape({points:s})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new c({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=Object(s.createSymbol)(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),l=a&&a.fill;l&&t.setColor(l);var c=Object(u.getECData)(t);c.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){c.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(c.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(1382),i=n(1383),o=n(1380);function a(t){t.registerCoordinateSystem("radar",o.default),t.registerComponentModel(r.default),t.registerComponentView(i.default),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}},function(t,e,n){"use strict";n.r(e);var r=n(1381),i=n(226),o=n(6),a=n(0),s=n(711),u=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Object(a.map)(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,o=new r.default(n,new i.default);return o.name=t.get("name"),o.model=t,t.axis=o,this.dimensions.push(n),o}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=Math.sqrt(e*e+n*n);e/=r,n/=r;for(var i,o=Math.atan2(-n,e),a=1/0,s=-1,u=0;u<this._indicatorAxes.length;u++){var l=this._indicatorAxes[u],c=Math.abs(o-l.angle);c<a&&(i=l,s=u,a=c)}return[s,+(i&&i.coordToData(r))]},t.prototype.resize=function(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),s=Math.min(r,i)/2;this.cx=o.parsePercent(n[0],r),this.cy=o.parsePercent(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var u=t.get("radius");(Object(a.isString)(u)||Object(a.isNumber)(u))&&(u=[0,u]),this.r0=o.parsePercent(u[0],s),this.r=o.parsePercent(u[1],s),Object(a.each)(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,r=this._model;Object(a.each)(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,i){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===r){var o=e.getData();Object(a.each)(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var o=r.get("splitNumber"),u=new i.default;u.setExtent(0,o),u.setInterval(1),Object(a.each)(n,(function(t,e){Object(s.alignScaleTicks)(t.scale,t.model,u)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var r=[];return e.eachComponent("radar",(function(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("radarIndex")||0])})),r},t.dimensions=[],t}();e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(5),i=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return Object(r.__extends)(e,t),e}(n(164).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(712),a=n(64),s=n(264),u=n(41),l=o.default.value;function c(t,e){return i.defaults({show:e},t)}var h=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),o=this.get("axisTick"),u=this.get("axisLabel"),l=this.get("axisName"),c=this.get(["axisName","show"]),h=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),d=this.get("triggerEvent"),p=i.map(this.get("indicator")||[],(function(p){null!=p.max&&p.max>0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var g=l;null!=p.color&&(g=i.defaults({color:p.color},l));var v=i.merge(i.clone(p),{boundaryGap:t,splitNumber:e,scale:n,axisLine:r,axisTick:o,axisLabel:u,name:p.text,showName:c,nameLocation:"end",nameGap:f,nameTextStyle:g,triggerEvent:d},!1);if(i.isString(h)){var m=v.name;v.name=h.replace("{value}",null!=m?m:"")}else i.isFunction(h)&&(v.name=h(v.name,v));var y=new a.default(v,null,this.ecModel);return i.mixin(y,s.AxisModelCommonMixin.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this._indicatorModels=p},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:i.merge({lineStyle:{color:"#bbb"}},l.axisLine),axisLabel:c(l.axisLabel,!1),axisTick:c(l.axisTick,!1),splitLine:c(l.splitLine,!0),splitArea:c(l.splitArea,!0),indicator:[]},e}(u.default);e.default=h},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(186),a=n(250),s=n(475),u=n(191),l=n(180),c=n(12),h=n(70),f=["axisLine","axisTickLabel","axisName"],d=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),r=i.map(n,(function(t){var n=t.model.get("showName")?t.name:"";return new o.default(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));i.each(r,(function(t){i.each(f,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var r=t.get("shape"),o=t.getModel("splitLine"),h=t.getModel("splitArea"),f=o.getModel("lineStyle"),d=h.getModel("areaStyle"),p=o.get("show"),g=h.get("show"),v=f.get("color"),m=d.get("color"),y=i.isArray(v)?v:[v],b=i.isArray(m)?m:[m],_=[],x=[];if("circle"===r)for(var w=n[0].getTicksCoords(),O=e.cx,S=e.cy,C=0;C<w.length;C++){if(p)_[P(_,y,C)].push(new a.default({shape:{cx:O,cy:S,r:w[C].coord}}));if(g&&C<w.length-1)x[P(x,b,C)].push(new s.default({shape:{cx:O,cy:S,r0:w[C].coord,r:w[C+1].coord}}))}else{var E,T=i.map(n,(function(t,n){var r=t.getTicksCoords();return E=null==E?r.length-1:Math.min(r.length-1,E),i.map(r,(function(t){return e.coordToPoint(t.coord,n)}))})),A=[];for(C=0;C<=E;C++){for(var M=[],I=0;I<n.length;I++)M.push(T[I][C]);if(M[0]&&M.push(M[0].slice()),p)_[P(_,y,C)].push(new u.default({shape:{points:M}}));if(g&&A)x[P(x,b,C-1)].push(new l.default({shape:{points:M.concat(A)}}));A=M.slice().reverse()}}var j=f.getLineStyle(),k=d.getAreaStyle();i.each(x,(function(t,e){this.group.add(c.mergePath(t,{style:i.defaults({stroke:"none",fill:b[e%b.length]},k),silent:!0}))}),this),i.each(_,(function(t,e){this.group.add(c.mergePath(t,{style:i.defaults({fill:"none",stroke:y[e%y.length]},j),silent:!0}))}),this)}function P(t,e,n){var r=n%e.length;return t[r]=t[r]||[],r}},e.type="radar",e}(h.default);e.default=d},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(12),o=n(180),a=n(191),s=n(23),u=n(40),l=n(11),c=n(0),h=n(67),f=n(58),d=n(27),p=n(114),g=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.coordinateSystem,f=this.group,g=t.getData(),v=this._data;function m(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var r=h.normalizeSymbolSize(t.getItemVisual(e,"symbolSize")),i=h.createSymbol(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:o*Math.PI/180||0}),i}}function y(e,n,r,o,a,s){r.removeAll();for(var u=0;u<n.length-1;u++){var l=m(o,a);l&&(l.__dimIdx=u,e[u]?(l.setPosition(e[u]),i[s?"initProps":"updateProps"](l,{x:n[u][0],y:n[u][1]},t,a)):l.setPosition(n[u]),r.add(l))}}function b(t){return c.map(t,(function(t){return[r.cx,r.cy]}))}g.diff(v).add((function(e){var n=g.getItemLayout(e);if(n){var r=new o.default,i=new a.default,l={shape:{points:n}};r.shape.points=b(n),i.shape.points=b(n),s.initProps(r,l,t,e),s.initProps(i,l,t,e);var c=new u.default,h=new u.default;c.add(i),c.add(r),c.add(h),y(i.shape.points,n,h,g,e,!0),g.setItemGraphicEl(e,c)}})).update((function(e,n){var r=v.getItemGraphicEl(n),i=r.childAt(0),o=r.childAt(1),a=r.childAt(2),u={shape:{points:g.getItemLayout(e)}};u.shape.points&&(y(i.shape.points,u.shape.points,a,g,e,!1),Object(s.saveOldStyle)(o),Object(s.saveOldStyle)(i),s.updateProps(i,u,t),s.updateProps(o,u,t),g.setItemGraphicEl(e,r))})).remove((function(t){f.remove(v.getItemGraphicEl(t))})).execute(),g.eachItemGraphicEl((function(t,e){var n=g.getItemModel(e),r=t.childAt(0),i=t.childAt(1),o=t.childAt(2),a=g.getItemVisual(e,"style"),s=a.fill;f.add(t),r.useStyle(c.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:s})),Object(l.setStatesStylesFromModel)(r,n,"lineStyle"),Object(l.setStatesStylesFromModel)(i,n,"areaStyle");var u=n.getModel("areaStyle"),h=u.isEmpty()&&u.parentModel.isEmpty();i.ignore=h,c.each(["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),r=e.isEmpty()&&e.parentModel.isEmpty();i.ensureState(t).ignore=r&&h})),i.useStyle(c.defaults(u.getAreaStyle(),{fill:s,opacity:.7,decal:a.decal}));var v=n.getModel("emphasis"),m=v.getModel("itemStyle").getItemStyle();o.eachChild((function(t){if(t instanceof p.default){var r=t.style;t.useStyle(c.extend({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},a))}else t.useStyle(a),t.setColor(s),t.style.strokeNoScale=!0;t.ensureState("emphasis").style=c.clone(m);var i=g.getStore().get(g.getDimensionIndex(t.__dimIdx),e);(null==i||isNaN(i))&&(i=""),Object(d.setLabelStyle)(t,Object(d.getLabelStatesModels)(n),{labelFetcher:g.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:i,inheritColor:s,defaultOpacity:a.opacity})})),Object(l.toggleHoverEmphasis)(t,v.get("focus"),v.get("blurScope"),v.get("disabled"))})),this._data=g},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(f.default);e.default=g},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(59),o=n(265),a=n(0),s=n(319),u=n(83),l=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(r.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new s.default(a.bind(this.getData,this),a.bind(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return Object(o.default)(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(t),s=""===o?this.name:o,l=Object(u.retrieveVisualColorForTooltipMarker)(this,t);return Object(u.createTooltipMarkup)("section",{header:s,sortBlocks:!0,blocks:a.map(i,(function(e){var n=r.get(r.mapDimension(e.dim),t);return Object(u.createTooltipMarkup)("nameValue",{markerType:"subItem",markerColor:l,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,r=e.getValues(a.map(n.dimensions,(function(t){return e.mapDimension(t)})),t),i=0,o=r.length;i<o;i++)if(!isNaN(r[i])){var s=n.getIndicatorAxes();return n.coordToPoint(s[i].dataToCoord(r[i]),i)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(i.default);e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(0);function i(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var s=i.getIndicatorAxes();r.each(s,(function(t,r){e.each(e.mapDimension(s[r].dim),(function(t,e){n[e]=n[e]||[];var s=i.dataToPoint(t,r);n[e][r]=o(s)?s:a(i)}))})),e.each((function(t){var s=r.find(n[t],(function(t){return o(t)}))||a(i);n[t].push(s.slice()),e.setItemLayout(t,n[t])}))}}))}function o(t){return!isNaN(t[0])&&!isNaN(t[1])}function a(t){return[t.cx,t.cy]}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(0);function i(t){var e=t.polar;if(e){r.isArray(e)||(e=[e]);var n=[];r.each(e,(function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],r.isArray(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}r.each(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"GeoSVGResource",(function(){return h}));var r=n(891),i=n(40),o=n(79),a=n(0),s=n(35),u=n(558),l=n(336),c=Object(a.createHashMap)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),h=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Object(a.createHashMap)(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Object(u.parseXML)(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=function(t){var e=[],n=Object(a.createHashMap)();return Object(a.each)(t,(function(t){if(null==t.namedFrom){var r=new l.GeoSVGRegion(t.name,t.el);e.push(r),n.set(t.name,r)}})),{regions:e,regionsMap:n}}(t.named),n=e.regions,r=e.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n;try{n=(e=t&&Object(r.parseSVG)(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{}).root,Object(a.assert)(null!=n)}catch(t){throw new Error("Invalid svg format\n"+t.message)}var u=new i.default;u.add(n),u.isGeoSVGGraphicRoot=!0;var l=e.width,h=e.height,f=e.viewBoxRect,d=this._boundingRect;if(!d){var p=void 0,g=void 0,v=void 0,m=void 0;if(null!=l?(p=0,v=l):f&&(p=f.x,v=f.width),null!=h?(g=0,m=h):f&&(g=f.y,m=f.height),null==p||null==g){var y=n.getBoundingRect();null==p&&(p=y.x,v=y.width),null==g&&(g=y.y,m=y.height)}d=this._boundingRect=new s.default(p,g,v,m)}if(f){var b=Object(r.makeViewBoxTransform)(f,d);n.scaleX=n.scaleY=b.scale,n.x=b.x,n.y=b.y}u.setClipPath(new o.default({shape:d.plain()}));var _=[];return Object(a.each)(e.named,(function(t){var e;null!=c.get(t.svgNodeTagLower)&&(_.push(t),(e=t.el).silent=!1,e.isGroup&&e.traverse((function(t){t.silent=!1})))})),{root:u,boundingRect:d,named:_}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"GeoJSONResource",(function(){return l}));var r=n(0),i=n(454),o=n(1390),a=n(1391),s=n(1392),u=n(35),l=function(){function t(t,e,n){var i;this.type="geoJSON",this._parsedMap=Object(r.createHashMap)(),this._mapName=t,this._specialAreas=n,this._geoJSON=(i=e,Object(r.isString)(i)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(i):new Function("return ("+i+");")():i)}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:c(i)})}var o=Object(r.createHashMap)(),a=[];return Object(r.each)(n.regions,(function(e){var n=e.name;t&&Object(r.hasOwn)(t,n)&&(e=e.cloneShallow(n=t[n])),a.push(e),o.set(n,e)})),{regions:a,boundingRect:n.boundingRect||new u.default(0,0,0,0),regionsMap:o}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,u=this._geoJSON;try{e=u?Object(i.default)(u,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return Object(o.default)(n,e),Object(r.each)(e,(function(t){var e=t.name;Object(a.default)(n,t),Object(s.default)(n,t);var r=this._specialAreas&&this._specialAreas[e];r&&t.transformTo(r.left,r.top,r.width,r.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function c(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();(e=e||r.clone()).union(r)}return e}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return l}));for(var r=n(0),i=n(336),o=[126,25],a=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],s=0;s<a.length;s++)for(var u=0;u<a[s].length;u++)a[s][u][0]/=10.5,a[s][u][1]/=-14,a[s][u][0]+=o[0],a[s][u][1]+=o[1];function l(t,e){if("china"===t){for(var n=0;n<e.length;n++)if("南海诸岛"===e[n].name)return;e.push(new i.GeoJSONRegion("南海诸岛",r.map(a,(function(t){return{type:"polygon",exterior:t}})),o))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function i(t,e){if("china"===t){var n=r[e.name];if(n){var i=e.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,e.setCenter(i)}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function i(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:r[0]})}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(9),a=n(41),s=n(64),u=n(713),l=n(210),c=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e,n){var r=l.default.getGeoResource(t.map);if(r&&"geoJSON"===r.type){var i=t.itemStyle=t.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(t,n),o.defaultEmphasis(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=u.default.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=i.reduce(e.regions||[],(function(e,r){var i=r.name;return i&&(e.set(i,new s.default(r,t,t.ecModel)),r.selected&&(n[i]=!0)),e}),i.createHashMap()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new s.default(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),r="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:t};return i.isFunction(r)?(o.status=e,r(o)):i.isString(r)?r.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(a.default);e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(714),o=n(70),a=n(31),s=n(299),u=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,r){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new i.default(n));var o=this._mapDraw;o.draw(t,e,n,this,r),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;Object(s.findEventDispatcher)(t.target,(function(t){return null!=(e=Object(a.getECData)(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var r=this;this._mapDraw.group.traverse((function(t){var e=Object(a.getECData)(t).eventData;if(e)return r._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(o.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(250),o=n(714),a=n(58),s=n(27),u=n(11),l=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id)(a=this._mapDraw)&&i.add(a.group);else if(t.needsDrawMap){var a=this._mapDraw||new o.default(n);i.add(a.group),a.draw(t,e,n,this,r),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var r=t.originalData,o=this.group;r.each(r.mapDimension("value"),(function(e,n){if(!isNaN(e)){var a=r.getItemLayout(n);if(a&&a.point){var l=a.point,c=a.offset,h=new i.default({style:{fill:t.getData().getVisual("style").fill},shape:{cx:l[0]+9*c,cy:l[1],r:3},silent:!0,z2:8+(c?0:u.Z2_EMPHASIS_LIFT+1)});if(!c){var f=t.mainSeries.getData(),d=r.getName(n),p=f.indexOfName(d),g=r.getItemModel(n),v=g.getModel("label"),m=f.getItemGraphicEl(p);Object(s.setLabelStyle)(h,Object(s.getLabelStatesModels)(g),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(p,n)}},defaultText:d}),h.disableLabelAnimation=!0,v.get("position")||h.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(t){Object(u.setStatesFlag)(h,t)}}o.add(h)}}}))},e.type="map",e}(a.default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(265),a=n(59),s=n(210),u=n(152),l=n(83),c=n(67),h=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,r=n.getRegion(e);return r&&n.dataToPoint(r.getCenter())}},n}return Object(r.__extends)(e,t),e.prototype.getInitialData=function(t){for(var e=Object(o.default)(this,{coordDimensions:["value"],encodeDefaulter:i.curry(u.makeSeriesEncodeForNameBased,this)}),n=i.createHashMap(),r=[],a=0,l=e.count();a<l;a++){var c=e.getName(a);n.set(c,!0)}var h=s.default.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return i.each(h.regions,(function(t){var e=t.name;n.get(e)||r.push(e)})),e.appendValues([],r),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var r=this.getData(),i=this.getRawValue(t),o=r.getName(t),a=this.seriesGroup,s=[],u=0;u<a.length;u++){var c=a[u].originalData.indexOfName(o),h=r.mapDimension("value");isNaN(a[u].originalData.get(h,c))||s.push(a[u].name)}return Object(l.createTooltipMarkup)("section",{header:s.join(", "),noHeader:!s.length,blocks:[Object(l.createTooltipMarkup)("nameValue",{name:o,value:i})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=Object(c.createSymbol)(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(a.default);e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(0);function i(t){var e={};t.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!e[i]){var o={};r.each(n.seriesGroup,(function(e){var n=e.coordinateSystem,r=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&r.each(r.mapDimension("value"),(function(t,e){var i=r.getName(e),a=n.getRegion(i);if(a&&!isNaN(t)){var s=o[i]||0,u=n.dataToPoint(a.getCenter());o[i]=s+1,r.setItemLayout(e,{point:u,offset:s})}}))}));var a=n.getData();a.each((function(t){var e=a.getName(t),n=a.getItemLayout(t)||{};n.showLabel=!o[e],a.setItemLayout(t,n)})),e[i]=!0}}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(0);function i(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),r=n?"o"+n.id:"i"+t.getMapType();(e[r]=e[r]||[]).push(t)})),r.each(e,(function(t,e){for(var n,i,o,a=(n=r.map(t,(function(t){return t.getData()})),i=t[0].get("mapValueCalculation"),o={},r.each(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var r="ec-"+t.getName(n);o[r]=o[r]||[],isNaN(e)||o[r].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var r,a="ec-"+n[0].getName(e),s=0,u=1/0,l=-1/0,c=o[a].length,h=0;h<c;h++)u=Math.min(u,o[a][h]),l=Math.max(l,o[a][h]),s+=o[a][h];return r="min"===i?u:"max"===i?l:"average"===i?s/c:s,0===c?NaN:r}))),s=0;s<t.length;s++)t[s].originalData=t[s].getData();for(s=0;s<t.length;s++)t[s].seriesGroup=t,t[s].needsDrawMap=0===s&&!t[s].getHostGeoModel(),t[s].setData(a.cloneShallow()),t[s].mainSeries=t[0]}))}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(40),a=n(23),s=n(476),u=n(31),l=n(357),c=n(257),h=n(249),f=n(359),d=n(365),p=n(321),g=n(385),v=n(6),m=n(58),y=n(36),b=n(11),_=function(){this.parentPoint=[],this.childPoints=[]},x=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _},e.prototype.buildPath=function(t,e){var n=e.childPoints,r=n.length,i=e.parentPoint,o=n[0],a=n[r-1];if(1===r)return t.moveTo(i[0],i[1]),void t.lineTo(o[0],o[1]);var s=e.orient,u="TB"===s||"BT"===s?0:1,l=1-u,c=Object(v.parsePercent)(e.forkPosition,1),h=[];h[u]=i[u],h[l]=i[l]+(a[l]-i[l])*c,t.moveTo(i[0],i[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[u]=o[u],t.lineTo(h[0],h[1]),h[u]=a[u],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var f=1;f<r-1;f++){var d=n[f];t.moveTo(d[0],d[1]),h[u]=d[u],t.lineTo(h[0],h[1])}},e}(y.default),w=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new o.default,n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e){this._controller=new p.default(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var r=t.getData(),i=t.layoutInfo,o=this._mainGroup;"radial"===t.get("layout")?(o.x=i.x+i.width/2,o.y=i.y+i.height/2):(o.x=i.x,o.y=i.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var a=this._data;r.diff(a).add((function(e){O(r,e)&&S(r,e,null,o,t)})).update((function(e,n){var i=a.getItemGraphicEl(n);O(r,e)?S(r,e,i,o,t):i&&T(a,n,i,o,t)})).remove((function(e){var n=a.getItemGraphicEl(e);n&&T(a,e,n,o,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&r.eachItemGraphicEl((function(e,r){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:r})}))})),this._data=r},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),r=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||r.push([+e.x,+e.y])}));var i=[],o=[];h.fromPoints(r,i,o);var a=this._min,s=this._max;o[0]-i[0]==0&&(i[0]=a?a[0]:i[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-i[1]==0&&(i[1]=a?a[1]:i[1]-1,o[1]=s?s[1]:o[1]+1);var u=t.coordinateSystem=new f.default;u.zoomLimit=t.get("scaleLimit"),u.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1]),u.setCenter(t.get("center"),e),u.setZoom(t.get("zoom")),this.group.attr({x:u.x,y:u.y,scaleX:u.scaleX,scaleY:u.scaleY}),this._min=i,this._max=o},e.prototype._updateController=function(t,e,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(e,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!Object(g.onIrrelevantElement)(e,n,t)})),i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){d.updateViewOnPan(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){d.updateViewOnZoom(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),r._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,r=e.scaleX||1;return((e.getZoom()-1)*n+1)/r},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(m.default);function O(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function S(t,e,n,r,o){var c=!n,h=t.tree.getNodeByDataIndex(e),f=h.getModel(),d=h.getVisual("style").fill,p=!1===h.isExpand&&0!==h.children.length?d:"#fff",g=t.tree.root,v=h.parentNode===g?h:h.parentNode||h,m=t.getItemGraphicEl(v.dataIndex),y=v.getLayout(),_=m?{x:m.__oldX,y:m.__oldY,rawX:m.__radialOldRawX,rawY:m.__radialOldRawY}:y,w=h.getLayout();c?((n=new l.default(t,e,null,{symbolInnerColor:p,useNameLabel:!0})).x=_.x,n.y=_.y):n.updateData(t,e,null,{symbolInnerColor:p,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=w.rawX,n.__radialRawY=w.rawY,r.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,a.updateProps(n,{x:w.x,y:w.y},o);var O=n.getSymbolPath();if("radial"===o.get("layout")){var S=g.children[0],C=S.getLayout(),E=S.children.length,T=void 0,M=void 0;if(w.x===C.x&&!0===h.isExpand&&S.children.length){var I={x:(S.children[0].getLayout().x+S.children[E-1].getLayout().x)/2,y:(S.children[0].getLayout().y+S.children[E-1].getLayout().y)/2};(T=Math.atan2(I.y-C.y,I.x-C.x))<0&&(T=2*Math.PI+T),(M=I.x<C.x)&&(T-=Math.PI)}else(T=Math.atan2(w.y-C.y,w.x-C.x))<0&&(T=2*Math.PI+T),0===h.children.length||0!==h.children.length&&!1===h.isExpand?(M=w.x<C.x)&&(T-=Math.PI):(M=w.x>C.x)||(T-=Math.PI);var j=M?"left":"right",k=f.getModel("label"),P=k.get("rotate"),L=P*(Math.PI/180),R=O.getTextContent();R&&(O.setTextConfig({position:k.get("position")||j,rotation:null==P?-T:L,origin:"center"}),R.setStyle("verticalAlign","middle"))}var D=f.get(["emphasis","focus"]),N="relative"===D?i.concatArray(h.getAncestorsIndices(),h.getDescendantIndices()):"ancestor"===D?h.getAncestorsIndices():"descendant"===D?h.getDescendantIndices():null;N&&(Object(u.getECData)(n).focus=N),function(t,e,n,r,o,u,l,c){var h=e.getModel(),f=t.get("edgeShape"),d=t.get("layout"),p=t.getOrient(),g=t.get(["lineStyle","curveness"]),v=t.get("edgeForkPosition"),m=h.getModel("lineStyle").getLineStyle(),y=r.__edge;if("curve"===f)e.parentNode&&e.parentNode!==n&&(y||(y=r.__edge=new s.default({shape:A(d,p,g,o,o)})),a.updateProps(y,{shape:A(d,p,g,u,l)},t));else if("polyline"===f)if("orthogonal"===d){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var _=e.children,w=[],O=0;O<_.length;O++){var S=_[O].getLayout();w.push([S.x,S.y])}y||(y=r.__edge=new x({shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]],orient:p,forkPosition:v}})),a.updateProps(y,{shape:{parentPoint:[l.x,l.y],childPoints:w}},t)}}else 0;y&&("polyline"!==f||e.isExpand)&&(y.useStyle(i.defaults({strokeNoScale:!0,fill:null},m)),Object(b.setStatesStylesFromModel)(y,h,"lineStyle"),Object(b.setDefaultStateProxy)(y),c.add(y))}(o,h,g,n,_,y,w,r),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var r=h.parentNode&&t.getItemGraphicEl(h.parentNode.dataIndex);r&&r.hoverState===b.HOVER_STATE_BLUR||Object(b.setStatesFlag)(n.__edge,e)}})}function C(t,e,n,r,i){var o=E(e.tree.root,t),s=o.source,u=o.sourceLayout,l=e.getItemGraphicEl(t.dataIndex);if(l){var c=e.getItemGraphicEl(s.dataIndex).__edge,h=l.__edge||(!1===s.isExpand||1===s.children.length?c:void 0),f=r.get("edgeShape"),d=r.get("layout"),p=r.get("orient"),g=r.get(["lineStyle","curveness"]);h&&("curve"===f?a.removeElement(h,{shape:A(d,p,g,u,u),style:{opacity:0}},r,{cb:function(){n.remove(h)},removeOpt:i}):"polyline"===f&&"orthogonal"===r.get("layout")&&a.removeElement(h,{shape:{parentPoint:[u.x,u.y],childPoints:[[u.x,u.y]]},style:{opacity:0}},r,{cb:function(){n.remove(h)},removeOpt:i}))}}function E(t,e){for(var n,r=e.parentNode===t?e:e.parentNode||e;null==(n=r.getLayout());)r=r.parentNode===t?r:r.parentNode||r;return{source:r,sourceLayout:n}}function T(t,e,n,r,i){var o=t.tree.getNodeByDataIndex(e),s=E(t.tree.root,o).sourceLayout,u={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};a.removeElement(n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),t.setItemGraphicEl(e,null)},removeOpt:u}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:u}),o.children.forEach((function(e){C(e,t,r,i,u)})),C(o,t,r,i,u)}function A(t,e,n,r,i){var o,a,s,u,l,h,f,d;if("radial"===t){l=r.rawX,f=r.rawY,h=i.rawX,d=i.rawY;var p=Object(c.radialCoordinate)(l,f),g=Object(c.radialCoordinate)(l,f+(d-f)*n),v=Object(c.radialCoordinate)(h,d+(f-d)*n),m=Object(c.radialCoordinate)(h,d);return{x1:p.x||0,y1:p.y||0,x2:m.x||0,y2:m.y||0,cpx1:g.x||0,cpy1:g.y||0,cpx2:v.x||0,cpy2:v.y||0}}return l=r.x,f=r.y,h=i.x,d=i.y,"LR"!==e&&"RL"!==e||(o=l+(h-l)*n,a=f,s=h+(l-h)*n,u=d),"TB"!==e&&"BT"!==e||(o=l,a=f+(d-f)*n,s=h,u=d+(f-d)*n),{x1:l,y1:f,x2:h,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:u}}e.default=w},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(59),o=n(478),a=n(64),s=n(83),u=n(154),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return Object(r.__extends)(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},r=new a.default(n,this,this.ecModel),i=o.default.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=r),t}))}));var s=0;i.eachNode("preorder",(function(t){t.depth>s&&(s=t.depth)}));var u=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:s;return i.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=u})),i.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var r=this.getData().tree,i=r.root.children[0],o=r.getNodeByDataIndex(t),a=o.getValue(),u=o.name;o&&o!==i;)u=o.parentNode.name+"."+u,o=o.parentNode;return Object(s.createTooltipMarkup)("nameValue",{name:u,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Object(u.wrapTreePathInfo)(r,this),n.collapsed=!r.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(i.default);e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(445),i=n(257);function o(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=Object(i.getViewRect)(t,e);t.layoutInfo=n;var o=t.get("layout"),a=0,s=0,u=null;"radial"===o?(a=2*Math.PI,s=Math.min(n.height,n.width)/2,u=Object(i.separation)((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(a=n.width,s=n.height,u=Object(i.separation)());var l=t.getData().tree.root,c=l.children[0];if(c){Object(i.init)(l),Object(r.eachAfter)(c,i.firstWalk,u),l.hierNode.modifier=-c.hierNode.prelim,Object(r.eachBefore)(c,i.secondWalk);var h=c,f=c,d=c;Object(r.eachBefore)(c,(function(t){var e=t.getLayout().x;e<h.getLayout().x&&(h=t),e>f.getLayout().x&&(f=t),t.depth>d.depth&&(d=t)}));var p=h===f?1:u(h,f)/2,g=p-h.getLayout().x,v=0,m=0,y=0,b=0;if("radial"===o)v=a/(f.getLayout().x+p+g),m=s/(d.depth-1||1),Object(r.eachBefore)(c,(function(t){y=(t.getLayout().x+g)*v,b=(t.depth-1)*m;var e=Object(i.radialCoordinate)(y,b);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:b},!0)}));else{var _=t.getOrient();"RL"===_||"LR"===_?(m=s/(f.getLayout().x+p+g),v=a/(d.depth-1||1),Object(r.eachBefore)(c,(function(t){b=(t.getLayout().x+g)*m,y="LR"===_?(t.depth-1)*v:a-(t.depth-1)*v,t.setLayout({x:y,y:b},!0)}))):"TB"!==_&&"BT"!==_||(v=a/(f.getLayout().x+p+g),m=s/(d.depth-1||1),Object(r.eachBefore)(c,(function(t){y=(t.getLayout().x+g)*v,b="TB"===_?(t.depth-1)*m:s-(t.depth-1)*m,t.setLayout({x:y,y:b},!0)})))}}}(t,e)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(0);function i(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle(),i=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(r.extend)(i,n)}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"installTreeAction",(function(){return i}));var r=n(477);function i(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,r=e.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=e.coordinateSystem,o=Object(r.updateCenterAndZoom)(i,t,void 0,n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom)}))}))}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(59),a=n(478),s=n(64),u=n(154),l=n(9),c=n(83),h=n(716),f=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return Object(r.__extends)(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;i.each(e.children,(function(e){t(e);var r=e.value;i.isArray(r)&&(r=r[0]),n+=r}));var r=e.value;i.isArray(r)&&(r=r[0]);(null==r||isNaN(r))&&(r=n);r<0&&(r=0);i.isArray(e.value)?e.value[0]=r:e.value=r}(n);var r=t.levels||[],o=this.designatedVisualItemStyle={},u=new s.default({itemStyle:o},this,e);r=t.levels=function(t,e){var n,r,o=Object(l.normalizeToArray)(e.get("color")),a=Object(l.normalizeToArray)(e.get(["aria","decal","decals"]));if(!o)return;t=t||[],i.each(t,(function(t){var e=new s.default(t),i=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||i&&"none"!==i)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(r=!0)}));var u=t[0]||(t[0]={});n||(u.color=o.slice());!r&&a&&(u.decal=a.slice());return t}(r,e);var c=i.map(r||[],(function(t){return new s.default(t,u,e)}),this),h=a.default.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=h.getNodeByDataIndex(e),r=n?c[n.depth]:null;return t.parentModel=r||u,t}))}));return h.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),o=r.getName(t);return Object(c.createTooltipMarkup)("nameValue",{name:o,value:i})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Object(u.wrapTreePathInfo)(r,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},i.extend(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=i.createHashMap(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Object(h.default)(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(o.default);e.default=f},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(40),a=n(79),s=n(31),u=n(11),l=n(185),c=n(154),h=n(1407),f=n(321),d=n(35),p=n(42),g=n(1406),v=n(242),m=n(58),y=n(106),b=n(9),_=n(71),x=n(27),w=o.default,O=a.default,S=10*u.Z2_EMPHASIS_LIFT,C=2*u.Z2_EMPHASIS_LIFT,E=3*u.Z2_EMPHASIS_LIFT,T=Object(v.default)([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),A=function(t){var e=T(t);return e.stroke=e.fill=e.lineWidth=null,e},M=Object(b.makeInner)(),I=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n,r){var o=e.findComponents({mainType:"series",subType:"treemap",query:r});if(!(Object(i.indexOf)(o,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var a=c.retrieveTargetInfo(r,["treemapZoomToNode","treemapRootToNode"],t),s=r&&r.type,u=t.layoutInfo,l=!this._oldTree,h=this._storage,f="treemapRootToNode"===s&&a&&h?{rootNodeGroup:h.nodeGroup[a.node.getRawIndex()],direction:r.direction}:null,d=this._giveContainerGroup(u),p=t.get("animation"),g=this._doRender(d,t,f);!p||l||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?g.renderFinally():this._doAnimation(d,g,t,f),this._resetController(n),this._renderBreadcrumb(t,n,a)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new w,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var r=e.getData().tree,a=this._oldTree,c={nodeGroup:[],background:[],content:[]},h={nodeGroup:[],background:[],content:[]},f=this._storage,d=[];function p(t,r,a,l){return function(t,e,n,r,a,l,c,h,f,d){if(!c)return;var p=c.getLayout(),g=t.getData(),v=c.getModel();if(g.setItemGraphicEl(c.dataIndex,null),!p||!p.isInView)return;var m=p.width,_=p.height,I=p.borderWidth,j=p.invisible,k=c.getRawIndex(),P=h&&h.getRawIndex(),L=c.viewChildren,R=p.upperHeight,D=L&&L.length,N=v.getModel("itemStyle"),B=v.getModel(["emphasis","itemStyle"]),F=v.getModel(["blur","itemStyle"]),z=v.getModel(["select","itemStyle"]),V=N.get("borderRadius")||0,U=J("nodeGroup",w);if(!U)return;if(f.add(U),U.x=p.x||0,U.y=p.y||0,U.markRedraw(),M(U).nodeWidth=m,M(U).nodeHeight=_,p.isAboveViewRoot)return U;var G=J("background",O,d,C);G&&function(e,n,r){var i=Object(s.getECData)(n);if(i.dataIndex=c.dataIndex,i.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:m,height:_,r:V}),j)Z(n);else{n.invisible=!1;var o=c.getVisual("style"),a=o.stroke,l=A(N);l.fill=a;var h=T(B);h.fill=B.get("borderColor");var f=T(F);f.fill=F.get("borderColor");var d=T(z);if(d.fill=z.get("borderColor"),r){var p=m-2*I;K(n,a,o.opacity,{x:I,y:0,width:p,height:R})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=h,n.ensureState("blur").style=f,n.ensureState("select").style=d,Object(u.setDefaultStateProxy)(n)}e.add(n)}(U,G,D&&p.upperLabelHeight);var H=v.getModel("emphasis"),W=H.get("focus"),Y=H.get("blurScope"),X=H.get("disabled"),$="ancestor"===W?c.getAncestorsIndices():"descendant"===W?c.getDescendantIndices():W;if(D)Object(u.isHighDownDispatcher)(U)&&Object(u.setAsHighDownDispatcher)(U,!1),G&&(Object(u.setAsHighDownDispatcher)(G,!X),g.setItemGraphicEl(c.dataIndex,G),Object(u.enableHoverFocus)(G,$,Y));else{var q=J("content",O,d,E);q&&function(e,n){var r=Object(s.getECData)(n);r.dataIndex=c.dataIndex,r.seriesIndex=t.seriesIndex;var i=Math.max(m-2*I,0),o=Math.max(_-2*I,0);if(n.culling=!0,n.setShape({x:I,y:I,width:i,height:o,r:V}),j)Z(n);else{n.invisible=!1;var a=c.getVisual("style"),l=a.fill,h=A(N);h.fill=l,h.decal=a.decal;var f=T(B),d=T(F),p=T(z);K(n,l,a.opacity,null),n.setStyle(h),n.ensureState("emphasis").style=f,n.ensureState("blur").style=d,n.ensureState("select").style=p,Object(u.setDefaultStateProxy)(n)}e.add(n)}(U,q),G.disableMorphing=!0,G&&Object(u.isHighDownDispatcher)(G)&&Object(u.setAsHighDownDispatcher)(G,!1),Object(u.setAsHighDownDispatcher)(U,!X),g.setItemGraphicEl(c.dataIndex,U),Object(u.enableHoverFocus)(U,$,Y)}return U;function Z(t){!t.invisible&&l.push(t)}function K(e,n,r,o){var a=v.getModel(o?"upperLabel":"label"),s=Object(b.convertOptionIdName)(v.get("name"),null),u=a.getShallow("show");Object(x.setLabelStyle)(e,Object(x.getLabelStatesModels)(v,o?"upperLabel":"label"),{defaultText:u?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:t,labelDataIndex:c.dataIndex});var l=e.getTextContent();if(l){var h=l.style,f=Object(i.normalizeCssArray)(h.padding||0);o&&(e.setTextConfig({layoutRect:o}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var t=Math.max((o?o.width:e.shape.width)-f[1]-f[3],0),n=Math.max((o?o.height:e.shape.height)-f[0]-f[2],0);h.width===t&&h.height===n||l.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",Q(h,o,p);var d=l.getState("emphasis");Q(d?d.style:null,o,p)}}function Q(e,n,r){var i=e?e.text:null;if(!n&&r.isLeafRoot&&null!=i){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+i:i}}function J(t,s,u,l){var h=null!=P&&n[t][P],f=a[t];return h?(n[t][P]=null,function(t,e){var n=t[k]={};e instanceof w?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Object(i.extend)({},e.shape)}(f,h)):j||((h=new s)instanceof y.default&&(h.z2=function(t,e){return t*S+e}(u,l)),function(t,e){var n=t[k]={},i=c.parentNode,s=e instanceof o.default;if(i&&(!r||"drillDown"===r.direction)){var u=0,l=0,h=a.background[i.getRawIndex()];!r&&h&&h.oldShape&&(u=h.oldShape.width,l=h.oldShape.height),s?(n.oldX=0,n.oldY=l):n.oldShape={x:u,y:l,width:0,height:0}}n.fadein=!s}(f,h)),e[t][k]=h}}(e,h,f,n,c,d,t,r,a,l)}!function t(e,n,r,o,a){o?(n=e,Object(i.each)(e,(function(t,e){!t.isRemoved()&&u(e,e)}))):new l.default(n,e,s,s).add(u).update(u).remove(Object(i.curry)(u,null)).execute();function s(t){return t.getId()}function u(i,s){var u=null!=i?e[i]:null,l=null!=s?n[s]:null,c=p(u,l,r,a);c&&t(u&&u.viewChildren||[],l&&l.viewChildren||[],c,o,a+1)}}(r.root?[r.root]:[],a&&a.root?[a.root]:[],t,r===a||!a,0);var g=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&Object(i.each)(t,(function(t,n){var r=e[n];Object(i.each)(t,(function(t){t&&(r.push(t),M(t).willDelete=!0)}))})),e}(f);return this._oldTree=r,this._storage=h,{lastsForAnimation:c,willDeleteEls:g,renderFinally:function(){Object(i.each)(g,(function(t){Object(i.each)(t,(function(t){t.parent&&t.parent.remove(t)}))})),Object(i.each)(d,(function(t){t.invisible=!0,t.dirty()}))}}},e.prototype._doAnimation=function(t,e,n,r){var a=n.get("animationDurationUpdate"),s=n.get("animationEasing"),u=(Object(i.isFunction)(a)?0:a)||0,l=(Object(i.isFunction)(s)?null:s)||"cubicOut",c=g.createWrap();Object(i.each)(e.willDeleteEls,(function(t,e){Object(i.each)(t,(function(t,n){if(!t.invisible){var i,o=t.parent,a=M(o);if(r&&"drillDown"===r.direction)i=o===r.rootNodeGroup?{shape:{x:0,y:0,width:a.nodeWidth,height:a.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var s=0,h=0;a.willDelete||(s=a.nodeWidth/2,h=a.nodeHeight/2),i="nodeGroup"===e?{x:s,y:h,style:{opacity:0}}:{shape:{x:s,y:h,width:0,height:0},style:{opacity:0}}}i&&c.add(t,i,u,0,l)}}))})),Object(i.each)(this._storage,(function(t,n){Object(i.each)(t,(function(t,r){var a=e.lastsForAnimation[n][r],s={};a&&(t instanceof o.default?null!=a.oldX&&(s.x=t.x,s.y=t.y,t.x=a.oldX,t.y=a.oldY):(a.oldShape&&(s.shape=Object(i.extend)({},t.shape),t.setShape(a.oldShape)),a.fadein?(t.setStyle("opacity",0),s.style={opacity:1}):1!==t.style.opacity&&(s.style={opacity:1})),c.add(t,s,u,0,l))}))}),this),this._state="animating",c.finished(Object(i.bind)((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller;e||((e=this._controller=new f.default(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",Object(i.bind)(this._onPan,this)),e.on("zoom",Object(i.bind)(this._onZoom,this)));var n=new d.default(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,r){return n.contain(e,r)}))},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;var o=new d.default(i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=p.create();p.translate(s,s,[-e,-n]),p.scale(s,s,[t.scale,t.scale]),p.translate(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var r=e.findTarget(t.offsetX,t.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)e._rootToNode(r);else if("zoomToNode"===n)e._zoomToNode(r);else if("link"===n){var o=i.hostTree.data.getItemModel(i.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Object(_.windowOpen)(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var r=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new h.default(this.group))).render(t,e,n.node,(function(e){"animating"!==r._state&&(c.aboveViewRoot(t.getViewRoot(),e)?r._rootToNode({node:e}):r._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var o=i.transformCoordToLocal(t,e),a=i.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:r,offsetX:o[0],offsetY:o[1]}}}),this),n},e.type="treemap",e}(m.default);e.default=I},function(t,e,n){"use strict";n.r(e),n.d(e,"createWrap",(function(){return i}));var r=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,r,i){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:r,easing:i}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var o=this._storage[r];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();function i(){return new r}},function(t,e,n){"use strict";n.r(e);var r=n(40),i=n(180),o=n(72),a=n(31),s=n(33),u=n(154),l=n(0),c=n(9),h=n(11),f=n(27),d=function(){function t(t){this.group=new r.default,t.add(this.group)}return t.prototype.render=function(t,e,n,r){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&n){var a=i.getModel("itemStyle"),u=i.getModel("emphasis"),l=a.getModel("textStyle"),c=u.getModel(["itemStyle","textStyle"]),h={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,h,l),this._renderContent(t,h,a,u,l,c,r),s.positionElement(o,h.pos,h.box)}},t.prototype._prepare=function(t,e,n){for(var r=t;r;r=r.parentNode){var i=Object(c.convertOptionIdName)(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:r,text:i,width:a})}},t.prototype._renderContent=function(t,e,n,r,a,u,c){for(var d=0,v=e.emptyItemWidth,m=t.get(["breadcrumb","height"]),y=s.getAvailableSize(e.pos,e.box),b=e.totalWidth,_=e.renderList,x=r.getModel("itemStyle").getItemStyle(),w=_.length-1;w>=0;w--){var O=_[w],S=O.node,C=O.width,E=O.text;b>y.width&&(b-=C-v,C=v,E=null);var T=new i.default({shape:{points:p(d,0,C,m,w===_.length-1,0===w)},style:Object(l.defaults)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new o.default({style:Object(f.createTextStyle)(a,{text:E})}),textConfig:{position:"inside"},z2:1e4*h.Z2_EMPHASIS_LIFT,onclick:Object(l.curry)(c,S)});T.disableLabelAnimation=!0,T.getTextContent().ensureState("emphasis").style=Object(f.createTextStyle)(u,{text:E}),T.ensureState("emphasis").style=x,Object(h.toggleHoverEmphasis)(T,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(T),g(T,t,S),d+=C+8}},t.prototype.remove=function(){this.group.removeAll()},t}();function p(t,e,n,r,i,o){var a=[[i?t:t-5,e],[t+n,e],[t+n,e+r],[i?t:t-5,e+r]];return!o&&a.splice(2,0,[t+n+5,e+r/2]),!i&&a.push([t,e+r/2]),a}function g(t,e,n){Object(a.getECData)(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Object(u.wrapTreePathInfo)(n,e)}}e.default=d},function(t,e,n){"use strict";n.r(e);var r=n(140),i=n(0),o=n(80),a=n(9),s=Object(a.makeInner)();function u(t){var e=l(t,"color");if(e){var n=l(t,"colorAlpha"),r=l(t,"colorSaturation");return r&&(e=Object(o.modifyHSL)(e,null,null,r)),n&&(e=Object(o.modifyAlpha)(e,n)),e}}function l(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function c(t,e){var n=t.get(e);return Object(i.isArray)(n)&&n.length?{name:e,range:n}:null}e.default={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||function t(e,n,a,l){var h=e.getModel(),f=e.getLayout(),d=e.hostTree.data;if(!f||f.invisible||!f.isInView)return;var p,g=h.getModel("itemStyle"),v=function(t,e,n){var r=Object(i.extend)({},e),o=n.designatedVisualItemStyle;return Object(i.each)(["color","colorAlpha","colorSaturation"],(function(n){o[n]=e[n];var i=t.get(n);o[n]=null,null!=i&&(r[n]=i)})),r}(g,n,l),m=d.ensureUniqueItemVisual(e.dataIndex,"style"),y=g.get("borderColor"),b=g.get("borderColorSaturation");null!=b&&(p=u(v),y=function(t,e){return null!=e?Object(o.modifyHSL)(e,null,null,t):null}(b,p));m.stroke=y;var _=e.viewChildren;if(_&&_.length){var x=function(t,e,n,i,o,a){if(!a||!a.length)return;var u=c(e,"color")||null!=o.color&&"none"!==o.color&&(c(e,"colorAlpha")||c(e,"colorSaturation"));if(!u)return;var l=e.get("visualMin"),h=e.get("visualMax"),f=n.dataExtent.slice();null!=l&&l<f[0]&&(f[0]=l),null!=h&&h>f[1]&&(f[1]=h);var d=e.get("colorMappingBy"),p={type:u.name,dataExtent:f,visual:u.range};"color"!==p.type||"index"!==d&&"id"!==d?p.mappingMethod="linear":(p.mappingMethod="category",p.loop=!0);var g=new r.default(p);return s(g).drColorMappingBy=d,g}(0,h,f,0,v,_);Object(i.each)(_,(function(e,n){if(e.depth>=a.length||e===a[e.depth]){var r=function(t,e,n,r,o,a){var u=Object(i.extend)({},e);if(o){var l=o.type,c="color"===l&&s(o).drColorMappingBy,h="index"===c?r:"id"===c?a.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));u[l]=o.mapValueToVisual(h)}return u}(h,v,e,n,x,l);t(e,r,a,l)}}))}else p=u(v),m.fill=p}(e,{},t.getViewRoot().getAncestors(),t)}}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(35),o=n(6),a=n(33),s=n(154),u=Math.max,l=Math.min,c=r.retrieve,h=r.each,f=["itemStyle","borderWidth"],d=["itemStyle","gapWidth"],p=["upperLabel","show"],g=["upperLabel","height"];function v(t,e,n){for(var r=0,i=1/0,o=0,a=void 0,s=t.length;o<s;o++)(a=t[o].getLayout().area)&&(a<i&&(i=a),a>r&&(r=a));var l=t.area*t.area,c=e*e*n;return l?u(c*r/l,l/(c*i)):1/0}function m(t,e,n,r,i){var o=e===n.width?0:1,a=1-o,s=["x","y"],c=["width","height"],h=n[s[o]],f=e?t.area/e:0;(i||f>n[c[a]])&&(f=n[c[a]]);for(var d=0,p=t.length;d<p;d++){var g=t[d],v={},m=f?g.getLayout().area/f:0,y=v[c[a]]=u(f-2*r,0),b=n[s[o]]+n[c[o]]-h,_=d===p-1||b<m?b:m,x=v[c[o]]=u(_-2*r,0);v[s[a]]=n[s[a]]+l(r,y/2),v[s[o]]=h+l(r,x/2),h+=_,g.setLayout(v,!0)}n[s[a]]+=f,n[c[a]]-=f}function y(t){return t.get(p)?t.get(g):0}e.default={seriesType:"treemap",reset:function(t,e,n,p){var g=n.getWidth(),b=n.getHeight(),_=t.option,x=a.getLayoutRect(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),w=_.size||[],O=Object(o.parsePercent)(c(x.width,w[0]),g),S=Object(o.parsePercent)(c(x.height,w[1]),b),C=p&&p.type,E=s.retrieveTargetInfo(p,["treemapZoomToNode","treemapRootToNode"],t),T="treemapRender"===C||"treemapMove"===C?p.rootRect:null,A=t.getViewRoot(),M=s.getPathToRoot(A);if("treemapMove"!==C){var I="treemapZoomToNode"===C?function(t,e,n,r,i){var a,s=(e||{}).node,u=[r,i];if(!s||s===n)return u;var l=r*i,c=l*t.option.zoomToNodeRatio;for(;a=s.parentNode;){for(var h=0,d=a.children,p=0,g=d.length;p<g;p++)h+=d[p].getValue();var v=s.getValue();if(0===v)return u;c*=h/v;var m=a.getModel(),b=m.get(f),_=Math.max(b,y(m));(c+=4*b*b+(3*b+_)*Math.pow(c,.5))>o.MAX_SAFE_INTEGER&&(c=o.MAX_SAFE_INTEGER),s=a}c<l&&(c=l);var x=Math.pow(c/l,.5);return[r*x,i*x]}(t,E,A,O,S):T?[T.width,T.height]:[O,S],j=_.sort;j&&"asc"!==j&&"desc"!==j&&(j="desc");var k={squareRatio:_.squareRatio,sort:j,leafDepth:_.leafDepth};A.hostTree.clearLayouts();var P={x:0,y:0,width:I[0],height:I[1],area:I[0]*I[1]};A.setLayout(P),function t(e,n,i,o){var a,s;if(e.isRemoved())return;var c=e.getLayout();a=c.width,s=c.height;var p=e.getModel(),g=p.get(f),b=p.get(d)/2,_=y(p),x=Math.max(g,_),w=g-b,O=x-b;e.setLayout({borderWidth:g,upperHeight:x,upperLabelHeight:_},!0),a=u(a-2*w,0),s=u(s-w-O,0);var S=a*s,C=function(t,e,n,i,o,a){var s=t.children||[],u=i.sort;"asc"!==u&&"desc"!==u&&(u=null);var l=null!=i.leafDepth&&i.leafDepth<=a;if(o&&!l)return t.viewChildren=[];!function(t,e){e&&t.sort((function(t,n){var r="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===r?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:r}))}(s=r.filter(s,(function(t){return!t.isRemoved()})),u);var c=function(t,e,n){for(var r=0,i=0,o=e.length;i<o;i++)r+=e[i].getValue();var a,s=t.get("visualDimension");e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],h(e,(function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)}))):a=[NaN,NaN];return{sum:r,dataExtent:a}}(e,s,u);if(0===c.sum)return t.viewChildren=[];if(c.sum=function(t,e,n,r,i){if(!r)return n;for(var o=t.get("visibleMin"),a=i.length,s=a,u=a-1;u>=0;u--){var l=i["asc"===r?a-u-1:u].getValue();l/n*e<o&&(s=u,n-=l)}return"asc"===r?i.splice(0,a-s):i.splice(s,a-s),n}(e,n,c.sum,u,s),0===c.sum)return t.viewChildren=[];for(var f=0,d=s.length;f<d;f++){var p=s[f].getValue()/c.sum*n;s[f].setLayout({area:p})}l&&(s.length&&t.setLayout({isLeafRoot:!0},!0),s.length=0);return t.viewChildren=s,t.setLayout({dataExtent:c.dataExtent},!0),s}(e,p,S,n,i,o);if(!C.length)return;var E={x:w,y:O,width:a,height:s},T=l(a,s),A=1/0,M=[];M.area=0;for(var I=0,j=C.length;I<j;){var k=C[I];M.push(k),M.area+=k.getLayout().area;var P=v(M,T,n.squareRatio);P<=A?(I++,A=P):(M.area-=M.pop().getLayout().area,m(M,T,E,b,!1),T=l(E.width,E.height),M.length=M.area=0,A=1/0)}M.length&&m(M,T,E,b,!0);if(!i){var L=p.get("childrenVisibleMin");null!=L&&S<L&&(i=!0)}for(I=0,j=C.length;I<j;I++)t(C[I],n,i,o+1)}(A,k,!1,0),P=A.getLayout(),h(M,(function(t,e){var n=(M[e+1]||A).getValue();t.setLayout(r.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},P))}))}var L=t.getData().tree.root;L.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!n)return r;var i=n.node,o=i.getLayout();if(!o)return r;var a=[o.width/2,o.height/2],s=i;for(;s;){var u=s.getLayout();a[0]+=u.x,a[1]+=u.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}(x,T,E),!0),t.setLayoutInfo(x),function t(e,n,r,o,a){var s=e.getLayout(),u=r[a],l=u&&u===e;if(u&&!l||a===r.length&&e!==o)return;e.setLayout({isInView:!0,invisible:!l&&!n.intersect(s),isAboveViewRoot:l},!0);var c=new i.default(n.x-s.x,n.y-s.y,n.width,n.height);h(e.viewChildren||[],(function(e){t(e,c,r,o,a+1)}))}(L,new i.default(-x.x,-x.y,g,b),M,A,0)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"installTreemapAction",(function(){return a}));var r=n(154),i=n(0),o=["treemapZoomToNode","treemapRender","treemapMove"];function a(t){for(var e=0;e<o.length;e++)t.registerAction({type:o[e],update:"updateView"},i.noop);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},(function(e,n){var i=r.retrieveTargetInfo(t,["treemapZoomToNode","treemapRootToNode"],e);if(i){var o=e.getViewRoot();o&&(t.direction=r.aboveViewRoot(o,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}))}))}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(317),o=n(479),a=n(321),s=n(365),u=n(385),l=n(23),c=n(802),h=n(254),f=n(58),d=n(31),p=n(427),g=n(426);function v(t){return"view"===t.type}var m=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e){var n=new i.default,r=new o.default,s=this.group;this._controller=new a.default(e.getZr()),this._controllerHost={target:s},s.add(n.group),s.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(v(i)){var u={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(u):l.updateProps(s,u,t)}Object(c.default)(t.getGraph(),Object(h.getNodeGlobalScale)(t));var f=t.getData();o.updateData(f);var m=t.getEdgeData();a.updateData(m),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var y=t.forceLayout,b=t.get(["force","layoutAnimation"]);y&&this._startForceLayoutIteration(y,b);var _=t.get("layout");f.graph.eachNode((function(e){var n=e.dataIndex,i=e.getGraphicEl(),o=e.getModel();if(i){i.off("drag").off("dragend");var a=o.get("draggable");a&&i.on("drag",(function(o){switch(_){case"force":y.warmUp(),!r._layouting&&r._startForceLayoutIteration(y,b),y.setFixed(n),f.setItemLayout(n,[i.x,i.y]);break;case"circular":f.setItemLayout(n,[i.x,i.y]),e.setLayout({fixed:!0},!0),Object(g.circularLayout)(t,"symbolSize",e,[o.offsetX,o.offsetY]),r.updateLayout(t);break;case"none":default:f.setItemLayout(n,[i.x,i.y]),Object(p.simpleLayoutEdge)(t.getGraph(),t),r.updateLayout(t)}})).on("dragend",(function(){y&&y.setUnfixed(n)})),i.setDraggable(a&&!!y,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(Object(d.getECData)(i).focus=e.getAdjacentDataIndices())}})),f.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Object(d.getECData)(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var x="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),w=f.getLayout("cx"),O=f.getLayout("cy");f.graph.eachNode((function(t){Object(g.rotateNodeLabel)(t,x,w,O)})),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;!function r(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(r,16):r())}))}()},e.prototype._updateController=function(t,e,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(e,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!Object(u.onIrrelevantElement)(e,n,t)})),v(t.coordinateSystem)?(i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){s.updateViewOnPan(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){s.updateViewOnZoom(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),r._updateNodeAndLinkScale(),Object(c.default)(t.getGraph(),Object(h.getNodeGlobalScale)(t)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=Object(h.getNodeGlobalScale)(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){Object(c.default)(t.getGraph(),Object(h.getNodeGlobalScale)(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(f.default);e.default=m},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(157),o=n(476),a=n(36),s=n(18),u=i.default.prototype,l=o.default.prototype,c=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(r.__extends)(e,t)}(c);function h(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var f=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return Object(r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new c},e.prototype.buildPath=function(t,e){h(e)?u.buildPath.call(this,t,e):l.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return h(this.shape)?u.pointAt.call(this,t):l.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=h(e)?[e.x2-e.x1,e.y2-e.y1]:l.tangentAt.call(this,t);return s.normalize(n,n)},e}(a.default);e.default=f},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(118),o=n(0),a=n(9),s=n(64),u=n(717),l=n(319),c=n(59),h=n(83),f=n(704),d=n(360),p=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(r.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new l.default(r,r),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Object(a.defaultEmphasis)(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],r=t.data||t.nodes||[],i=this;if(r&&n){Object(d.initCurvenessList)(this);var a=Object(u.default)(r,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=i._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=s.default.prototype.getModel;function r(t,e){var r=n.call(this,t,e);return r.resolveParentPath=o,r}function o(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=o,t.getModel=r,t}))}));return o.each(a.edges,(function(t){Object(d.createEdgeMapForCurveness)(t.node1,t.node2,this,t.dataIndex)}),this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(t,n),o=r.graph.getEdgeByIndex(t),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),u=[];return null!=a&&u.push(a),null!=s&&u.push(s),Object(h.createTooltipMarkup)("nameValue",{name:u.join(" > "),value:i.value,noValue:null==i.value})}return Object(f.defaultSeriesFormatTooltip)({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=o.map(this.option.categories||[],(function(t){return null!=t.value?t:o.extend({value:0},t)})),e=new i.default(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(c.default);e.default=p},function(t,e,n){"use strict";n.r(e),n.d(e,"GraphNode",(function(){return a})),n.d(e,"GraphEdge",(function(){return s}));var r=n(0);function i(t){return"_EC_"+t}var o=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[i(t)]){var r=new a(t,e);return r.hostGraph=this,this.nodes.push(r),n[i(t)]=r,r}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[i(t)]},t.prototype.addEdge=function(t,e,n){var o=this._nodesMap,u=this._edgesMap;if(r.isNumber(t)&&(t=this.nodes[t]),r.isNumber(e)&&(e=this.nodes[e]),t instanceof a||(t=o[i(t)]),e instanceof a||(e=o[i(e)]),t&&e){var l=t.id+"-"+e.id,c=new s(t,e,n);return c.hostGraph=this,this._directed&&(t.outEdges.push(c),e.inEdges.push(c)),t.edges.push(c),t!==e&&e.edges.push(c),this.edges.push(c),u[l]=c,c}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof a&&(t=t.id),e instanceof a&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&t.call(e,n[i],i)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},t.prototype.breadthFirstTraverse=function(t,e,n,r){if(e instanceof a||(e=this._nodesMap[i(e)]),e){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",s=0;s<this.nodes.length;s++)this.nodes[s].__visited=!1;if(!t.call(r,e,null))for(var u=[e];u.length;){var l=u.shift(),c=l[o];for(s=0;s<c.length;s++){var h=c[s],f=h.node1===l?h.node2:h.node1;if(!f.__visited){if(t.call(r,f,l))return;u.push(f),f.__visited=!0}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,r=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;e.filterSelf((function(t){var n=r[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(i=0,o=e.count();i<o;i++)r[e.getRawIndex(i)].dataIndex=i},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)e.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var o=r[i];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),a=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t}(),s=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t}();function u(t,e){return{getValue:function(n){var r=this[t][e];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}r.mixin(a,u("hostGraph","data")),r.mixin(s,u("hostGraph","edgeData")),e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(0);function i(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph().data,o=n.mapArray(n.getName);i.filterSelf((function(t){var n=i.getItemModel(t).getShallow("category");if(null!=n){Object(r.isNumber)(n)&&(n=o[n]);for(var a=0;a<e.length;a++)if(!e[a].isSelected(n))return!1}return!0}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(0);function i(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getData(),o={};n.each((function(r){var i=n.getName(r);o["ec-"+i]=r;var a=n.getItemModel(r),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(i,e)),n.setItemVisual(r,"style",s);for(var u=["symbol","symbolSize","symbolKeepAspect"],l=0;l<u.length;l++){var c=a.getShallow(u[l],!0);null!=c&&n.setItemVisual(r,u[l],c)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t).getShallow("category");if(null!=e){Object(r.isString)(e)&&(e=o["ec-"+e]);var a=n.getItemVisual(e,"style"),s=i.ensureUniqueItemVisual(t,"style");Object(r.extend)(s,a);for(var u=["symbol","symbolSize","symbolKeepAspect"],l=0;l<u.length;l++)i.setItemVisual(t,u[l],n.getItemVisual(e,u[l]))}}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(0);function i(t){return t instanceof Array||(t=[t,t]),t}function o(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),o=i(t.get("edgeSymbol")),a=i(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",o&&o[0]),n.setVisual("toSymbol",o&&o[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var o=n.getItemModel(t),a=e.getEdgeByIndex(t),s=i(o.getShallow("symbol",!0)),u=i(o.getShallow("symbolSize",!0)),l=o.getModel("lineStyle").getLineStyle(),c=n.ensureUniqueItemVisual(t,"style");switch(Object(r.extend)(c,l),c.stroke){case"source":var h=a.node1.getVisual("style");c.stroke=h&&h.fill;break;case"target":h=a.node2.getVisual("style");c.stroke=h&&h.fill}s[0]&&a.setVisual("fromSymbol",s[0]),s[1]&&a.setVisual("toSymbol",s[1]),u[0]&&a.setVisual("fromSymbolSize",u[0]),u[1]&&a.setVisual("toSymbolSize",u[1])}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(0),i=n(427);function o(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var o=t.getData(),a=[];Object(r.each)(n.dimensions,(function(t){a=a.concat(o.mapDimensionsAll(t))}));for(var s=0;s<o.count();s++){for(var u=[],l=!1,c=0;c<a.length;c++){var h=o.get(a[c],s);isNaN(h)||(l=!0),u.push(h)}l?o.setItemLayout(s,n.dataToPoint(u)):o.setItemLayout(s,[NaN,NaN])}Object(i.simpleLayoutEdge)(o.graph,t)}else e&&"none"!==e||Object(i.simpleLayout)(t)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(426);function i(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&Object(r.circularLayout)(t,"symbolSize")}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return c}));var r=n(1421),i=n(427),o=n(426),a=n(6),s=n(18),u=n(0),l=n(360);function c(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},c=t.getGraph(),h=c.data,f=c.edgeData,d=t.getModel("force"),p=d.get("initLayout");t.preservedPoints?h.each((function(t){var e=h.getId(t);h.setItemLayout(t,n[e]||[NaN,NaN])})):p&&"none"!==p?"circular"===p&&Object(o.circularLayout)(t,"value"):Object(i.simpleLayout)(t);var g=h.getDataExtent("value"),v=f.getDataExtent("value"),m=d.get("repulsion"),y=d.get("edgeLength"),b=u.isArray(m)?m:[m,m],_=u.isArray(y)?y:[y,y];_=[_[1],_[0]];var x=h.mapArray("value",(function(t,e){var n=h.getItemLayout(e),r=Object(a.linearMap)(t,g,b);return isNaN(r)&&(r=(b[0]+b[1])/2),{w:r,rep:r,fixed:h.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),w=f.mapArray("value",(function(e,n){var r=c.getEdgeByIndex(n),i=Object(a.linearMap)(e,v,_);isNaN(i)&&(i=(_[0]+_[1])/2);var o=r.getModel(),s=u.retrieve3(r.getModel().get(["lineStyle","curveness"]),-Object(l.getCurvenessForEdge)(r,t,n,!0),0);return{n1:x[r.node1.dataIndex],n2:x[r.node2.dataIndex],d:i,curveness:s,ignoreForceLayout:o.get("ignoreForceLayout")}})),O=e.getBoundingRect(),S=Object(r.forceLayout)(x,w,{rect:O,gravity:d.get("gravity"),friction:d.get("friction")});S.beforeStep((function(t,e){for(var n=0,r=t.length;n<r;n++)t[n].fixed&&s.copy(t[n].p,c.getNodeByIndex(n).getLayout())})),S.afterStep((function(t,e,r){for(var i=0,o=t.length;i<o;i++)t[i].fixed||c.getNodeByIndex(i).setLayout(t[i].p),n[h.getId(i)]=t[i].p;for(i=0,o=e.length;i<o;i++){var a=e[i],u=c.getEdgeByIndex(i),l=a.n1.p,f=a.n2.p,d=u.getLayout();(d=d?d.slice():[])[0]=d[0]||[],d[1]=d[1]||[],s.copy(d[0],l),s.copy(d[1],f),+a.curveness&&(d[2]=[(l[0]+f[0])/2-(l[1]-f[1])*a.curveness,(l[1]+f[1])/2-(f[0]-l[0])*a.curveness]),u.setLayout(d)}})),t.forceLayout=S,t.preservedPoints=n,S.step()}else t.forceLayout=null}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"forceLayout",(function(){return o}));var r=n(18),i=r.scaleAndAdd;function o(t,e,n){for(var o=t,a=e,s=n.rect,u=s.width,l=s.height,c=[s.x+u/2,s.y+l/2],h=null==n.gravity?.1:n.gravity,f=0;f<o.length;f++){var d=o[f];d.p||(d.p=r.create(u*(Math.random()-.5)+c[0],l*(Math.random()-.5)+c[1])),d.pp=r.clone(d.p),d.edges=null}var p,g,v=null==n.friction?.6:n.friction,m=v;return{warmUp:function(){m=.8*v},setFixed:function(t){o[t].fixed=!0},setUnfixed:function(t){o[t].fixed=!1},beforeStep:function(t){p=t},afterStep:function(t){g=t},step:function(t){p&&p(o,a);for(var e=[],n=o.length,s=0;s<a.length;s++){var u=a[s];if(!u.ignoreForceLayout){var l=u.n1,f=u.n2;r.sub(e,f.p,l.p);var d=r.len(e)-u.d,v=f.w/(l.w+f.w);isNaN(v)&&(v=0),r.normalize(e,e),!l.fixed&&i(l.p,l.p,e,v*d*m),!f.fixed&&i(f.p,f.p,e,-(1-v)*d*m)}}for(s=0;s<n;s++){(x=o[s]).fixed||(r.sub(e,c,x.p),i(x.p,x.p,e,h*m))}for(s=0;s<n;s++){l=o[s];for(var y=s+1;y<n;y++){f=o[y];r.sub(e,f.p,l.p),0===(d=r.len(e))&&(r.set(e,Math.random()-.5,Math.random()-.5),d=1);var b=(l.rep+f.rep)/d/d;!l.fixed&&i(l.pp,l.pp,e,b),!f.fixed&&i(f.pp,f.pp,e,-b)}}var _=[];for(s=0;s<n;s++){var x;(x=o[s]).fixed||(r.sub(_,x.p,x.pp),i(x.p,x.p,_,m),r.copy(x.pp,x.p))}var w=(m*=.992)<.01;g&&g(o,a,w),t&&t(w)}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(359),i=n(33),o=n(249),a=n(0);function s(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var s=t.get("coordinateSystem");if(!s||"view"===s){var u=t.getData(),l=u.mapArray((function(t){var e=u.getItemModel(t);return[+e.get("x"),+e.get("y")]})),c=[],h=[];o.fromPoints(l,c,h),h[0]-c[0]==0&&(h[0]+=1,c[0]-=1),h[1]-c[1]==0&&(h[1]+=1,c[1]-=1);var f=(h[0]-c[0])/(h[1]-c[1]),d=function(t,e,n){var r=Object(a.extend)(t.getBoxLayoutParams(),{aspect:n});return Object(i.getLayoutRect)(r,{width:e.getWidth(),height:e.getHeight()})}(t,e,f);isNaN(f)&&(c=[d.x,d.y],h=[d.x+d.width,d.y+d.height]);var p=h[0]-c[0],g=h[1]-c[1],v=d.width,m=d.height,y=t.coordinateSystem=new r.default;y.zoomLimit=t.get("scaleLimit"),y.setBoundingRect(c[0],c[1],p,g),y.setViewRect(d.x,d.y,v,m),y.setCenter(t.get("center"),e),y.setZoom(t.get("zoom")),n.push(y)}})),n}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(1424),o=n(190),a=n(157),s=n(72),u=n(23),l=n(40),c=n(11),h=n(27),f=n(58),d=n(6),p=n(515),g=n(67),v=n(114),m=n(0),y=n(31),b=n(151);function _(t,e){var n=null==t?"":t+"";return e&&(Object(m.isString)(e)?n=e.replace("{value}",n):Object(m.isFunction)(e)&&(n=e(t))),n}var x=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var r=t.get(["axisLine","lineStyle","color"]),i=function(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i);return{cx:Object(d.parsePercent)(n[0],e.getWidth()),cy:Object(d.parsePercent)(n[1],e.getHeight()),r:Object(d.parsePercent)(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,r,i),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,r,i){var a=this.group,s=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),h=c.get("roundCap")?p.default:o.default,f=c.get("show"),d=c.getModel("lineStyle"),g=d.get("width"),v=[u,l];Object(b.normalizeArcAngles)(v,!s);for(var m=(l=v[1])-(u=v[0]),y=u,_=0;f&&_<r.length;_++){var x=new h({shape:{startAngle:y,endAngle:l=u+m*Math.min(Math.max(r[_][0],0),1),cx:i.cx,cy:i.cy,clockwise:s,r0:i.r-g,r:i.r},silent:!0});x.setStyle({fill:r[_][1]}),x.setStyle(d.getLineStyle(["color","width"])),a.add(x),y=l}var w=function(t){if(t<=0)return r[0][1];var e;for(e=0;e<r.length;e++)if(r[e][0]>=t&&(0===e?0:r[e-1][0])<t)return r[e][1];return r[e-1][1]};this._renderTicks(t,e,n,w,i,u,l,s,g),this._renderTitleAndDetail(t,e,n,w,i),this._renderAnchor(t,i),this._renderPointer(t,e,n,w,i,u,l,s,g)},e.prototype._renderTicks=function(t,e,n,r,i,o,u,l,c){for(var f,p,g=this.group,v=i.cx,y=i.cy,b=i.r,x=+t.get("min"),w=+t.get("max"),O=t.getModel("splitLine"),S=t.getModel("axisTick"),C=t.getModel("axisLabel"),E=t.get("splitNumber"),T=S.get("splitNumber"),A=Object(d.parsePercent)(O.get("length"),b),M=Object(d.parsePercent)(S.get("length"),b),I=o,j=(u-o)/E,k=j/T,P=O.getModel("lineStyle").getLineStyle(),L=S.getModel("lineStyle").getLineStyle(),R=O.get("distance"),D=0;D<=E;D++){if(f=Math.cos(I),p=Math.sin(I),O.get("show")){var N=R?R+c:c,B=new a.default({shape:{x1:f*(b-N)+v,y1:p*(b-N)+y,x2:f*(b-A-N)+v,y2:p*(b-A-N)+y},style:P,silent:!0});"auto"===P.stroke&&B.setStyle({stroke:r(D/E)}),g.add(B)}if(C.get("show")){N=C.get("distance")+R;var F=_(Object(d.round)(D/E*(w-x)+x),C.get("formatter")),z=r(D/E),V=f*(b-A-N)+v,U=p*(b-A-N)+y,G=C.get("rotate"),H=0;"radial"===G?(H=-I+2*Math.PI)>Math.PI/2&&(H+=Math.PI):"tangential"===G?H=-I-Math.PI/2:Object(m.isNumber)(G)&&(H=G*Math.PI/180),0===H?g.add(new s.default({style:Object(h.createTextStyle)(C,{text:F,x:V,y:U,verticalAlign:p<-.8?"top":p>.8?"bottom":"middle",align:f<-.4?"left":f>.4?"right":"center"},{inheritColor:z}),silent:!0})):g.add(new s.default({style:Object(h.createTextStyle)(C,{text:F,x:V,y:U,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:V,originY:U,rotation:H}))}if(S.get("show")&&D!==E){N=(N=S.get("distance"))?N+c:c;for(var W=0;W<=T;W++){f=Math.cos(I),p=Math.sin(I);var Y=new a.default({shape:{x1:f*(b-N)+v,y1:p*(b-N)+y,x2:f*(b-M-N)+v,y2:p*(b-M-N)+y},silent:!0,style:L});"auto"===L.stroke&&Y.setStyle({stroke:r((D+W/T)/E)}),g.add(Y),I+=k}I-=k}else I+=j}},e.prototype._renderPointer=function(t,e,n,r,a,s,l,h,f){var b=this.group,_=this._data,x=this._progressEls,w=[],O=t.get(["pointer","show"]),S=t.getModel("progress"),C=S.get("show"),E=t.getData(),T=E.mapDimension("value"),A=+t.get("min"),M=+t.get("max"),I=[A,M],j=[s,l];function k(e,n){var r,o=E.getItemModel(e).getModel("pointer"),s=Object(d.parsePercent)(o.get("width"),a.r),u=Object(d.parsePercent)(o.get("length"),a.r),l=t.get(["pointer","icon"]),c=o.get("offsetCenter"),h=Object(d.parsePercent)(c[0],a.r),f=Object(d.parsePercent)(c[1],a.r),p=o.get("keepAspect");return(r=l?Object(g.createSymbol)(l,h-s/2,f-u,s,u,null,p):new i.default({shape:{angle:-Math.PI/2,width:s,r:u,x:h,y:f}})).rotation=-(n+Math.PI/2),r.x=a.cx,r.y=a.cy,r}function P(t,e){var n=S.get("roundCap")?p.default:o.default,r=S.get("overlap"),i=r?S.get("width"):f/E.count(),u=r?a.r-i:a.r-(t+1)*i,l=r?a.r:a.r-t*i,c=new n({shape:{startAngle:s,endAngle:e,cx:a.cx,cy:a.cy,clockwise:h,r0:u,r:l}});return r&&(c.z2=M-E.get(T,t)%M),c}(C||O)&&(E.diff(_).add((function(e){var n=E.get(T,e);if(O){var r=k(e,s);u.initProps(r,{rotation:-((isNaN(+n)?j[0]:Object(d.linearMap)(n,I,j,!0))+Math.PI/2)},t),b.add(r),E.setItemGraphicEl(e,r)}if(C){var i=P(e,s),o=S.get("clip");u.initProps(i,{shape:{endAngle:Object(d.linearMap)(n,I,j,o)}},t),b.add(i),Object(y.setCommonECData)(t.seriesIndex,E.dataType,e,i),w[e]=i}})).update((function(e,n){var r=E.get(T,e);if(O){var i=_.getItemGraphicEl(n),o=i?i.rotation:s,a=k(e,o);a.rotation=o,u.updateProps(a,{rotation:-((isNaN(+r)?j[0]:Object(d.linearMap)(r,I,j,!0))+Math.PI/2)},t),b.add(a),E.setItemGraphicEl(e,a)}if(C){var l=x[n],c=P(e,l?l.shape.endAngle:s),h=S.get("clip");u.updateProps(c,{shape:{endAngle:Object(d.linearMap)(r,I,j,h)}},t),b.add(c),Object(y.setCommonECData)(t.seriesIndex,E.dataType,e,c),w[e]=c}})).execute(),E.each((function(t){var e=E.getItemModel(t),n=e.getModel("emphasis"),i=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(O){var s=E.getItemGraphicEl(t),u=E.getItemVisual(t,"style"),l=u.fill;if(s instanceof v.default){var h=s.style;s.useStyle(Object(m.extend)({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},u))}else s.useStyle(u),"pointer"!==s.type&&s.setColor(l);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r(Object(d.linearMap)(E.get(T,t),I,[0,1],!0))),s.z2EmphasisLift=0,Object(c.setStatesStylesFromModel)(s,e),Object(c.toggleHoverEmphasis)(s,i,o,a)}if(C){var f=w[t];f.useStyle(E.getItemVisual(t,"style")),f.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),f.z2EmphasisLift=0,Object(c.setStatesStylesFromModel)(f,e),Object(c.toggleHoverEmphasis)(f,i,o,a)}})),this._progressEls=w)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var r=n.get("size"),i=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=Object(g.createSymbol)(i,e.cx-r/2+Object(d.parsePercent)(o[0],e.r),e.cy-r/2+Object(d.parsePercent)(o[1],e.r),r,r,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,r,i){var o=this,a=t.getData(),u=a.mapDimension("value"),c=+t.get("min"),f=+t.get("max"),p=new l.default,g=[],v=[],m=t.isAnimationEnabled(),y=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){g[t]=new s.default({silent:!0}),v[t]=new s.default({silent:!0})})).update((function(t,e){g[t]=o._titleEls[e],v[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(u,e),s=new l.default,b=r(Object(d.linearMap)(o,[c,f],[0,1],!0)),x=n.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),O=i.cx+Object(d.parsePercent)(w[0],i.r),S=i.cy+Object(d.parsePercent)(w[1],i.r);(k=g[e]).attr({z2:y?0:2,style:Object(h.createTextStyle)(x,{x:O,y:S,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:b})}),s.add(k)}var C=n.getModel("detail");if(C.get("show")){var E=C.get("offsetCenter"),T=i.cx+Object(d.parsePercent)(E[0],i.r),A=i.cy+Object(d.parsePercent)(E[1],i.r),M=Object(d.parsePercent)(C.get("width"),i.r),I=Object(d.parsePercent)(C.get("height"),i.r),j=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:b,k=v[e],P=C.get("formatter");k.attr({z2:y?0:2,style:Object(h.createTextStyle)(C,{x:T,y:A,text:_(o,P),width:isNaN(M)?null:M,height:isNaN(I)?null:I,align:"center",verticalAlign:"middle"},{inheritColor:j})}),Object(h.setLabelValueAnimation)(k,{normal:C},o,(function(t){return _(t,P)})),m&&Object(h.animateLabelValue)(k,e,a,t,{getFormattedLabel:function(t,e,n,r,i,a){return _(a?a.interpolatedValue:o,P)}}),s.add(k)}p.add(s)})),this.group.add(p),this._titleEls=g,this._detailEls=v},e.type="gauge",e}(f.default);e.default=x},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(36),o=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=Math.cos,r=Math.sin,i=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=i/3?1:2),u=e.y-r(a)*o*(o>=i/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,u),t.lineTo(e.x+n(a)*o,e.y+r(a)*o),t.lineTo(e.x+n(e.angle)*i,e.y+r(e.angle)*i),t.lineTo(e.x-n(a)*o,e.y-r(a)*o),t.lineTo(s,u)},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(265),o=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return Object(r.__extends)(e,t),e.prototype.getInitialData=function(t,e){return Object(i.default)(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(n(59).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(191),o=n(72),a=n(23),s=n(57),u=n(180),l=n(11),c=n(58),h=n(232),f=n(27),d=["itemStyle","opacity"],p=function(t){function e(e,n){var r=t.call(this)||this,a=r,s=new i.default,u=new o.default;return a.setTextContent(u),r.setTextGuideLine(s),r.updateData(e,n,!0),r}return Object(r.__extends)(e,t),e.prototype.updateData=function(t,e,n){var r=t.hostModel,i=t.getItemModel(e),o=t.getItemLayout(e),s=i.getModel("emphasis"),u=i.get(d);u=null==u?1:u,n||Object(a.saveOldStyle)(this),this.useStyle(t.getItemVisual(e,"style")),this.style.lineJoin="round",n?(this.setShape({points:o.points}),this.style.opacity=0,a.initProps(this,{style:{opacity:u}},r,e)):a.updateProps(this,{style:{opacity:u},shape:{points:o.points}},r,e),Object(l.setStatesStylesFromModel)(this,i),this._updateLabel(t,e),Object(l.toggleHoverEmphasis)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this.getTextGuideLine(),r=this.getTextContent(),i=t.hostModel,o=t.getItemModel(e),u=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),c=l.fill;Object(f.setLabelStyle)(r,Object(f.getLabelStatesModels)(o),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:u.textAlign,verticalAlign:u.verticalAlign}}),this.setTextConfig({local:!0,inside:!!u.inside,insideStroke:c,outsideFill:c});var d=u.linePoints;n.setShape({points:d}),this.textGuideLineConfig={anchor:d?new s.default(d[0][0],d[0][1]):null},a.updateProps(r,{style:{x:u.x,y:u.y}},i,e),r.attr({rotation:u.rotation,originX:u.x,originY:u.y,z2:10}),Object(h.setLabelLineStyle)(this,Object(h.getLabelLineStatesModels)(o),{stroke:c})},e}(u.default),g=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._data,o=this.group;r.diff(i).add((function(t){var e=new p(r,t);r.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=i.getItemGraphicEl(e);n.updateData(r,t),o.add(n),r.setItemGraphicEl(t,n)})).remove((function(e){var n=i.getItemGraphicEl(e);a.removeElementWithFadeOut(n,t,e)})).execute(),this._data=r},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(c.default);e.default=g},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(265),a=n(9),s=n(152),u=n(319),l=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new u.default(i.bind(this.getData,this),i.bind(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return Object(o.default)(this,{coordDimensions:["value"],encodeDefaulter:i.curry(s.makeSeriesEncodeForNameBased,this)})},e.prototype._defaultLabelLine=function(t){Object(a.defaultEmphasis)(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),r=t.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),o=n.getSum(i);return r.percent=o?+(n.get(i,e)/o*100).toFixed(2):0,r.$vars.push("percent"),r},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(n(59).default);e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(33),i=n(6),o=n(0);function a(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),a=n.mapDimension("value"),s=t.get("sort"),u=function(t,e){return r.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),l=t.get("orient"),c=u.width,h=u.height,f=function(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,(function(t){return t})),i=[],a="ascending"===e,s=0,u=t.count();s<u;s++)i[s]=s;return Object(o.isFunction)(e)?i.sort(e):"none"!==e&&i.sort((function(t,e){return a?r[t]-r[e]:r[e]-r[t]})),i}(n,s),d=u.x,p=u.y,g="horizontal"===l?[Object(i.parsePercent)(t.get("minSize"),h),Object(i.parsePercent)(t.get("maxSize"),h)]:[Object(i.parsePercent)(t.get("minSize"),c),Object(i.parsePercent)(t.get("maxSize"),c)],v=n.getDataExtent(a),m=t.get("min"),y=t.get("max");null==m&&(m=Math.min(v[0],0)),null==y&&(y=v[1]);var b=t.get("funnelAlign"),_=t.get("gap"),x=(("horizontal"===l?c:h)-_*(n.count()-1))/n.count(),w=function(t,e){if("horizontal"===l){var r=n.get(a,t)||0,o=Object(i.linearMap)(r,[m,y],g,!0),s=void 0;switch(b){case"top":s=p;break;case"center":s=p+(h-o)/2;break;case"bottom":s=p+(h-o)}return[[e,s],[e,s+o]]}var u,f=n.get(a,t)||0,v=Object(i.linearMap)(f,[m,y],g,!0);switch(b){case"left":u=d;break;case"center":u=d+(c-v)/2;break;case"right":u=d+c-v}return[[u,e],[u+v,e]]};"ascending"===s&&(x=-x,_=-_,"horizontal"===l?d+=c:p+=h,f=f.reverse());for(var O=0;O<f.length;O++){var S=f[O],C=f[O+1],E=n.getItemModel(S);if("horizontal"===l){var T=E.get(["itemStyle","width"]);null==T?T=x:(T=Object(i.parsePercent)(T,c),"ascending"===s&&(T=-T));var A=w(S,d),M=w(C,d+T);d+=T+_,n.setItemLayout(S,{points:A.concat(M.slice().reverse())})}else{var I=E.get(["itemStyle","height"]);null==I?I=x:(I=Object(i.parsePercent)(I,h),"ascending"===s&&(I=-I));A=w(S,p),M=w(C,p+I);p+=I+_,n.setItemLayout(S,{points:A.concat(M.slice().reverse())})}}!function(t){var e=t.hostModel.get("orient");t.each((function(n){var r,i,o,a,s=t.getItemModel(n),u=s.getModel("label").get("position"),l=s.getModel("labelLine"),c=t.getItemLayout(n),h=c.points,f="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(f)"insideLeft"===u?(i=(h[0][0]+h[3][0])/2+5,o=(h[0][1]+h[3][1])/2,r="left"):"insideRight"===u?(i=(h[1][0]+h[2][0])/2-5,o=(h[1][1]+h[2][1])/2,r="right"):(i=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,o=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,r="center"),a=[[i,o],[i,o]];else{var d=void 0,p=void 0,g=void 0,v=void 0,m=l.get("length");0,"left"===u?(d=(h[3][0]+h[0][0])/2,p=(h[3][1]+h[0][1])/2,i=(g=d-m)-5,r="right"):"right"===u?(d=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,i=(g=d+m)+5,r="left"):"top"===u?(d=(h[3][0]+h[0][0])/2,o=(v=(p=(h[3][1]+h[0][1])/2)-m)-5,r="center"):"bottom"===u?(d=(h[1][0]+h[2][0])/2,o=(v=(p=(h[1][1]+h[2][1])/2)+m)+5,r="center"):"rightTop"===u?(d="horizontal"===e?h[3][0]:h[1][0],p="horizontal"===e?h[3][1]:h[1][1],"horizontal"===e?(o=(v=p-m)-5,r="center"):(i=(g=d+m)+5,r="top")):"rightBottom"===u?(d=h[2][0],p=h[2][1],"horizontal"===e?(o=(v=p+m)+5,r="center"):(i=(g=d+m)+5,r="bottom")):"leftTop"===u?(d=h[0][0],p="horizontal"===e?h[0][1]:h[1][1],"horizontal"===e?(o=(v=p-m)-5,r="center"):(i=(g=d-m)-5,r="right")):"leftBottom"===u?(d="horizontal"===e?h[1][0]:h[3][0],p="horizontal"===e?h[1][1]:h[2][1],"horizontal"===e?(o=(v=p+m)+5,r="center"):(i=(g=d-m)-5,r="right")):(d=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,"horizontal"===e?(o=(v=p+m)+5,r="center"):(i=(g=d+m)+5,r="left")),"horizontal"===e?i=g=d:o=v=p,a=[[d,p],[g,v]]}c.label={linePoints:a,x:i,y:o,verticalAlign:"middle",textAlign:r,inside:f}}))}(n)}))}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(70),o=n(0),a=n(143),s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},Object(o.each)(u,(function(t,e){n.getZr().on(e,this._handlers[e]=Object(o.bind)(t,this))}),this)),Object(a.createOrUpdate)(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){Object(a.clear)(this,"_throttledDispatchExpand"),Object(o.each)(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Object(o.extend)({type:"parallelAxisExpand"},t))},e.type="parallel",e}(i.default),u={mousedown:function(t){l(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(l(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2)>5)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&l(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function l(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&i.merge(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){i.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=i.filter(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);i.each(n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(n(41).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(1432),i=n(9);var o={create:function(t,e){var n=[];return t.eachComponent("parallel",(function(i,o){var a=new r.default(i,t,e);a.name="parallel_"+o,a.resize(i,e),i.coordinateSystem=a,a.model=i,n.push(a)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",i.SINGLE_REFERRING).models[0];t.coordinateSystem=e.coordinateSystem}})),n}};e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(42),o=n(33),a=n(85),s=n(1433),u=n(12),l=n(6),c=n(243),h=r.each,f=Math.min,d=Math.max,p=Math.floor,g=Math.ceil,v=l.round,m=Math.PI,y=function(){function t(t,e,n){this.type="parallel",this._axesMap=r.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=t.dimensions,i=t.parallelAxisIndex;h(r,(function(t,n){var r=i[n],o=e.getComponent("parallelAxis",r),u=this._axesMap.set(t,new s.default(t,a.createScaleByModel(o),[0,0],o.get("type"),r)),l="category"===u.type;u.onBand=l&&o.get("boundaryGap"),u.inverse=o.get("inverse"),o.axis=u,u.model=o,u.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,r=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],a=t[i];return o>=n&&o<=n+e.axisLength&&a>=r&&a<=r+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var r=n.getData();h(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(r,r.mapDimension(t)),a.niceScaleExtent(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=o.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],u=[0,s],l=this.dimensions.length,c=b(e.get("axisExpandWidth"),u),h=b(e.get("axisExpandCount")||0,[0,l]),f=e.get("axisExpandable")&&l>3&&l>h&&h>1&&c>0&&s>0,d=e.get("axisExpandWindow");d?(t=b(d[1]-d[0],u),d[1]=d[0]+t):(t=b(c*(h-1),u),(d=[c*(e.get("axisExpandCenter")||p(l/2))-t/2])[1]=d[0]+t);var m=(s-t)/(l-h);m<3&&(m=0);var y=[p(v(d[0]/c,1))+1,g(v(d[1]/c,1))-1],_=m/c*d[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:d,axisCount:l,winInnerIndices:y,axisExpandWindow0Pos:_}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),o=r.layout;e.each((function(t){var e=[0,r.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),h(n,(function(e,n){var a=(r.axisExpandable?x:_)(n,r),s={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},u={horizontal:m/2,vertical:0},l=[s[o].x+t.x,s[o].y+t.y],c=u[o],h=i.create();i.rotate(h,h,c),i.translate(h,h,l),this._axesLayout[e]={position:l,rotation:c,transform:h,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var o=this._axesMap,a=this.dimensions,s=[],u=[];r.each(a,(function(e){s.push(t.mapDimension(e)),u.push(o.get(e).model)}));for(var l=this.hasAxisBrushed(),c=n;c<i;c++){var h=void 0;if(l){h="active";for(var f=t.getValues(s,c),d=0,p=a.length;d<p;d++){if("inactive"===u[d].getActiveState(f[d])){h="inactive";break}}}else h="normal";e(h,c)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,r=0,i=t.length;r<i;r++)"normal"!==e.get(t[r]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return u.applyTransform([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return r.clone(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,r=e.axisExpandWindow.slice(),i=r[1]-r[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:r};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,u="slide",l=e.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),p=null!=h[0];if(l)p&&l&&s<i*h[0]?(u="jump",a=s-i*h[2]):p&&l&&s>i*(1-h[0])?(u="jump",a=s-i*(1-h[2])):(a=s-i*h[1])>=0&&(a=s-i*(1-h[1]))<=0&&(a=0),(a*=e.axisExpandWidth/l)?Object(c.default)(a,r,o,"all"):u="none";else{var g=r[1]-r[0];(r=[d(0,o[1]*s/g-g/2)])[1]=f(o[1],r[0]+g),r[0]=r[1]-g}return{axisExpandWindow:r,behavior:u}},t}();function b(t,e){return f(d(t,e[0]),e[1])}function _(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function x(t,e){var n,r,i=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,u=e.winInnerIndices,l=s,c=!1;return t<u[0]?(n=t*s,r=s):t<=u[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],l=o,c=!0):(n=i-(a-1-t)*s,r=s),{position:n,axisNameAvailableWidth:l,axisLabelShow:c,nameTruncateMaxWidth:r}}e.default=y},function(t,e,n){"use strict";n.r(e);var r=n(5),i=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.type=i||"value",a.axisIndex=o,a}return Object(r.__extends)(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(n(164).default);e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(0),i=n(9);function o(t){!function(t){if(t.parallel)return;var e=!1;r.each(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}(t),function(t){var e=i.normalizeToArray(t.parallelAxis);r.each(e,(function(e){if(r.isObject(e)){var n=e.parallelIndex||0,o=i.normalizeToArray(t.parallel)[n];o&&o.parallelAxisDefault&&r.merge(e,o.parallelAxisDefault,!1)}}))}(t)}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(186),a=n(481),s=n(401),u=n(40),l=n(12),c=n(35),h=n(70),f=["axisLine","axisTickLabel","axisName"],d=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new a.default(n.getZr())).on("brush",i.bind(this._onBrush,this))},e.prototype.render=function(t,e,n,r){if(!function(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}(t,e,r)){this.axisModel=t,this.api=n,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new u.default,this.group.add(this._axisGroup),t.get("show")){var s=function(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}(t,e),c=s.coordinateSystem,h=t.getAreaSelectStyle(),d=h.width,p=t.axis.dim,g=c.getAxisLayout(p),v=i.extend({strokeContainThreshold:d},g),m=new o.default(t,v);i.each(f,m.add,m),this._axisGroup.add(m.getGroup()),this._refreshBrushController(v,h,t,s,d,n),l.groupTransition(a,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,r,o,a){var u=n.axis.getExtent(),l=u[1]-u[0],h=Math.min(30,.1*Math.abs(l)),f=c.default.create({x:u[0],y:-o/2,width:l,height:o});f.x-=h,f.width+=2*h,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:s.makeRectPanelClipPath(f),isTargetByCursor:s.makeRectIsTargetByCursor(f,a,r),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(f,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(function(t){var e=t.axis;return i.map(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,r=n.axis,o=i.map(e,(function(t){return[r.coordToData(t.range[0],!0),r.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(h.default);e.default=d},function(t,e,n){"use strict";n.r(e),n.d(e,"installParallelActions",(function(){return i}));var r={type:"axisAreaSelect",event:"axisAreaSelected"};function i(t){t.registerAction(r,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(40),o=n(23),a=n(79),s=n(191),u=n(11),l=n(58),c=n(6),h=n(0),f=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new i.default,n._initialized=!1,n}return Object(r.__extends)(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._dataGroup,s=t.getData(),u=this._data,l=t.coordinateSystem,c=l.dimensions,h=g(t);if(s.diff(u).add((function(t){v(p(s,i,t,c,l),s,t,h)})).update((function(e,n){var r=u.getItemGraphicEl(n),i=d(s,e,c,l);s.setItemGraphicEl(e,r),o.updateProps(r,{shape:{points:i}},t,e),Object(o.saveOldStyle)(r),v(r,s,e,h)})).remove((function(t){var e=u.getItemGraphicEl(t);i.remove(e)})).execute(),!this._initialized){this._initialized=!0;var f=function(t,e,n){var r=t.model,i=t.getRect(),s=new a.default({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),u="horizontal"===r.get("layout")?"width":"height";return s.setShape(u,0),o.initProps(s,{shape:{width:i.width,height:i.height}},e,n),s}(l,t,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(f)}this._data=s},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var r=e.getData(),i=e.coordinateSystem,o=i.dimensions,a=g(e),s=this._progressiveEls=[],u=t.start;u<t.end;u++){var l=p(r,this._dataGroup,u,o,i);l.incremental=!0,v(l,r,u,a),s.push(l)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(l.default);function d(t,e,n,r){for(var i,o=[],a=0;a<n.length;a++){var s=n[a],u=t.get(t.mapDimension(s),e);i=u,("category"===r.getAxis(s).type?null==i:null==i||isNaN(i))||o.push(r.dataToPoint(u,s))}return o}function p(t,e,n,r,i){var o=d(t,n,r,i),a=new s.default({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function g(t){var e=t.get("smooth",!0);return!0===e&&(e=.3),e=Object(c.numericToNumber)(e),Object(h.eqNaN)(e)&&(e=0),{smooth:e}}function v(t,e,n,r){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",r.smooth);var i=e.getItemModel(n),o=i.getModel("emphasis");Object(u.setStatesStylesFromModel)(t,i,"lineStyle"),Object(u.toggleHoverEmphasis)(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}e.default=f},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(59),a=n(163),s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(r.__extends)(e,t),e.prototype.getInitialData=function(t,e){return Object(a.default)(null,this,{useEncodeDefaulter:Object(i.bind)(u,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),r=[];return e.eachActiveState(n,(function(e,i){t===e&&r.push(n.getRawIndex(i))})),r},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(o.default);function u(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return Object(i.each)(e.dimensions,(function(t){var e=+t.replace("dim","");n[t]=e})),n}}e.default=s},function(t,e,n){"use strict";n.r(e);var r=["lineStyle","opacity"],i={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,i={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var o=i[t];if("normal"===t&&e.hasItemOption){var a=e.getItemModel(n).get(r,!0);null!=a&&(o=a)}e.ensureUniqueItemVisual(n,"style").opacity=o}),t.start,t.end)}}}};e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(36),o=n(352),a=n(79),s=n(23),u=n(11),l=n(58),c=n(27),h=n(31),f=n(0),d=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},p=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new d},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){Object(u.enterEmphasis)(this)},e.prototype.downplay=function(){Object(u.leaveEmphasis)(this)},e}(i.default),g=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n){var r=this,i=t.getGraph(),l=this.group,d=t.layoutInfo,g=d.width,v=d.height,m=t.getData(),y=t.getData("edge"),b=t.get("orient");this._model=t,l.removeAll(),l.x=d.x,l.y=d.y,i.eachEdge((function(e){var n=new p,r=Object(h.getECData)(n);r.dataIndex=e.dataIndex,r.seriesIndex=t.seriesIndex,r.dataType="edge";var i,a,s,c,d,m,_,x,w=e.getModel(),O=w.getModel("lineStyle"),S=O.get("curveness"),C=e.node1.getLayout(),E=e.node1.getModel(),T=E.get("localX"),A=E.get("localY"),M=e.node2.getLayout(),I=e.node2.getModel(),j=I.get("localX"),k=I.get("localY"),P=e.getLayout();switch(n.shape.extent=Math.max(1,P.dy),n.shape.orient=b,"vertical"===b?(i=(null!=T?T*g:C.x)+P.sy,a=(null!=A?A*v:C.y)+C.dy,s=(null!=j?j*g:M.x)+P.ty,d=i,m=a*(1-S)+(c=null!=k?k*v:M.y)*S,_=s,x=a*S+c*(1-S)):(i=(null!=T?T*g:C.x)+C.dx,a=(null!=A?A*v:C.y)+P.sy,d=i*(1-S)+(s=null!=j?j*g:M.x)*S,m=a,_=i*S+s*(1-S),x=c=(null!=k?k*v:M.y)+P.ty),n.setShape({x1:i,y1:a,x2:s,y2:c,cpx1:d,cpy1:m,cpx2:_,cpy2:x}),n.useStyle(O.getItemStyle()),n.style.fill){case"source":n.style.fill=e.node1.getVisual("color"),n.style.decal=e.node1.getVisual("style").decal;break;case"target":n.style.fill=e.node2.getVisual("color"),n.style.decal=e.node2.getVisual("style").decal;break;case"gradient":var L=e.node1.getVisual("color"),R=e.node2.getVisual("color");Object(f.isString)(L)&&Object(f.isString)(R)&&(n.style.fill=new o.default(0,0,+("horizontal"===b),+("vertical"===b),[{color:L,offset:0},{color:R,offset:1}]))}var D=w.getModel("emphasis");Object(u.setStatesStylesFromModel)(n,w,"lineStyle",(function(t){return t.getItemStyle()})),l.add(n),y.setItemGraphicEl(e.dataIndex,n);var N=D.get("focus");Object(u.toggleHoverEmphasis)(n,"adjacency"===N?e.getAdjacentDataIndices():N,D.get("blurScope"),D.get("disabled")),Object(h.getECData)(n).dataType="edge"})),i.eachNode((function(e){var n=e.getLayout(),r=e.getModel(),i=r.get("localX"),o=r.get("localY"),s=r.getModel("emphasis"),f=new a.default({shape:{x:null!=i?i*g:n.x,y:null!=o?o*v:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle(),z2:10});Object(c.setLabelStyle)(f,Object(c.getLabelStatesModels)(r),{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id}),f.disableLabelAnimation=!0,f.setStyle("fill",e.getVisual("color")),f.setStyle("decal",e.getVisual("style").decal),Object(u.setStatesStylesFromModel)(f,r),l.add(f),m.setItemGraphicEl(e.dataIndex,f),Object(h.getECData)(f).dataType="node";var d=s.get("focus");Object(u.toggleHoverEmphasis)(f,"adjacency"===d?e.getAdjacentDataIndices():d,s.get("blurScope"),s.get("disabled"))})),m.eachItemGraphicEl((function(e,i){m.getItemModel(i).get("draggable")&&(e.drift=function(e,o){r._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:m.getRawIndex(i),localX:this.shape.x/g,localY:this.shape.y/v})},e.ondragend=function(){r._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&l.setClipPath(function(t,e,n){var r=new a.default({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return s.initProps(r,{shape:{width:t.width+20}},e,n),r}(l.getBoundingRect(),t,(function(){l.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(l.default);e.default=g},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(59),o=n(717),a=n(64),s=n(83),u=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,r=t.data||t.nodes,i=t.levels;this.levelModels=[];for(var s=this.levelModels,u=0;u<i.length;u++)null!=i[u].depth&&i[u].depth>=0&&(s[i[u].depth]=new a.default(i[u],this,e));if(r&&n)return Object(o.default)(r,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getData().getItemLayout(e);if(r){var i=r.depth,o=n.levelModels[i];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(r){var i=r.depth,o=n.levelModels[i];o&&(t.parentModel=o)}return t}))})).data},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function r(t){return isNaN(t)||null==t}if("edge"===n){var i=this.getDataParams(t,n),o=i.data,a=i.value,u=o.source+" -- "+o.target;return Object(s.createTooltipMarkup)("nameValue",{name:u,value:a,noValue:r(a)})}var l=this.getGraph().getNodeByIndex(t).getLayout().value,c=this.getDataParams(t,n).data.name;return Object(s.createTooltipMarkup)("nameValue",{name:null!=c?c+"":null,value:l,noValue:r(l)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var r=t.prototype.getDataParams.call(this,e,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(e).getLayout().value;r.value=i}return r},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(i.default);e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(33),i=n(0),o=n(9);function a(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),a=t.get("nodeGap"),c=function(t,e){return r.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=c;var h=c.width,f=c.height,d=t.getGraph(),p=d.nodes,y=d.edges;!function(t){i.each(t,(function(t){var e=v(t.outEdges,g),n=v(t.inEdges,g),r=t.getValue()||0,i=Math.max(e,n,r);t.setLayout({value:i},!0)}))}(p),function(t,e,n,r,a,c,h,f,d){(function(t,e,n,r,o,a,u){for(var l=[],c=[],h=[],f=[],d=0,p=0;p<e.length;p++)l[p]=1;for(p=0;p<t.length;p++)c[p]=t[p].inEdges.length,0===c[p]&&h.push(t[p]);var g=-1;for(;h.length;){for(var v=0;v<h.length;v++){var m=h[v],y=m.hostGraph.data.getRawDataItem(m.dataIndex),b=null!=y.depth&&y.depth>=0;b&&y.depth>g&&(g=y.depth),m.setLayout({depth:b?y.depth:d},!0),"vertical"===a?m.setLayout({dy:n},!0):m.setLayout({dx:n},!0);for(var _=0;_<m.outEdges.length;_++){var x=m.outEdges[_],w=e.indexOf(x);l[w]=0;var O=x.node2,S=t.indexOf(O);0==--c[S]&&f.indexOf(O)<0&&f.push(O)}}++d,h=f,f=[]}for(p=0;p<l.length;p++)if(1===l[p])throw new Error("Sankey is a DAG, the original data has cycle!");var C=g>d-1?g:d-1;u&&"left"!==u&&function(t,e,n,r){if("right"===e){for(var o=[],a=t,u=0;a.length;){for(var l=0;l<a.length;l++){var c=a[l];c.setLayout({skNodeHeight:u},!0);for(var h=0;h<c.inEdges.length;h++){var f=c.inEdges[h];o.indexOf(f.node1)<0&&o.push(f.node1)}}a=o,o=[],++u}i.each(t,(function(t){s(t)||t.setLayout({depth:Math.max(0,r-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&function(t,e){i.each(t,(function(t){s(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}(t,r)}(t,u,0,C);!function(t,e,n){i.each(t,(function(t){var r=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:r},!0):t.setLayout({x:r},!0)}))}(t,"vertical"===a?(o-n)/C:(r-n)/C,a)})(t,e,n,a,c,f,d),function(t,e,n,r,a,s,c){var h=function(t,e){var n=[],r="vertical"===e?"y":"x",a=Object(o.groupData)(t,(function(t){return t.getLayout()[r]}));return a.keys.sort((function(t,e){return t-e})),i.each(a.keys,(function(t){n.push(a.buckets.get(t))})),n}(t,c);(function(t,e,n,r,o,a){var s=1/0;i.each(t,(function(t){var e=t.length,u=0;i.each(t,(function(t){u+=t.getLayout().value}));var l="vertical"===a?(r-(e-1)*o)/u:(n-(e-1)*o)/u;l<s&&(s=l)})),i.each(t,(function(t){i.each(t,(function(t,e){var n=t.getLayout().value*s;"vertical"===a?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),i.each(e,(function(t){var e=+t.getValue()*s;t.setLayout({dy:e},!0)}))})(h,e,n,r,a,c),u(h,a,n,r,c);for(var f=1;s>0;s--)l(h,f*=.99,c),u(h,a,n,r,c),m(h,f,c),u(h,a,n,r,c)}(t,e,c,a,r,h,f),function(t,e){var n="vertical"===e?"x":"y";i.each(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),i.each(t,(function(t){var e=0,n=0;i.each(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),i.each(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,f)}(p,y,n,a,h,f,0!==i.filter(p,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function s(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function u(t,e,n,r,o){var a="vertical"===o?"x":"y";i.each(t,(function(t){var i,s,u;t.sort((function(t,e){return t.getLayout()[a]-e.getLayout()[a]}));for(var l=0,c=t.length,h="vertical"===o?"dx":"dy",f=0;f<c;f++)(u=l-(s=t[f]).getLayout()[a])>0&&(i=s.getLayout()[a]+u,"vertical"===o?s.setLayout({x:i},!0):s.setLayout({y:i},!0)),l=s.getLayout()[a]+s.getLayout()[h]+e;if((u=l-e-("vertical"===o?r:n))>0){i=s.getLayout()[a]-u,"vertical"===o?s.setLayout({x:i},!0):s.setLayout({y:i},!0),l=i;for(f=c-2;f>=0;--f)(u=(s=t[f]).getLayout()[a]+s.getLayout()[h]+e-l)>0&&(i=s.getLayout()[a]-u,"vertical"===o?s.setLayout({x:i},!0):s.setLayout({y:i},!0)),l=s.getLayout()[a]}}))}function l(t,e,n){i.each(t.slice().reverse(),(function(t){i.each(t,(function(t){if(t.outEdges.length){var r=v(t.outEdges,c,n)/v(t.outEdges,g);if(isNaN(r)){var i=t.outEdges.length;r=i?v(t.outEdges,h,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-p(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-p(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function c(t,e){return p(t.node2,e)*t.getValue()}function h(t,e){return p(t.node2,e)}function f(t,e){return p(t.node1,e)*t.getValue()}function d(t,e){return p(t.node1,e)}function p(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function g(t){return t.getValue()}function v(t,e,n){for(var r=0,i=t.length,o=-1;++o<i;){var a=+e(t[o],n);isNaN(a)||(r+=a)}return r}function m(t,e,n){i.each(t,(function(t){i.each(t,(function(t){if(t.inEdges.length){var r=v(t.inEdges,f,n)/v(t.inEdges,g);if(isNaN(r)){var i=t.inEdges.length;r=i?v(t.inEdges,d,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-p(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-p(t,n))*e;t.setLayout({y:a},!0)}}}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(0),i=n(140);function o(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph().nodes;if(e.length){var n=1/0,o=-1/0;r.each(e,(function(t){var e=t.getLayout().value;e<n&&(n=e),e>o&&(o=e)})),r.each(e,(function(e){var r=new i.default({type:"color",mappingMethod:"linear",dataExtent:[n,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),a=e.getModel().get(["itemStyle","color"]);null!=a?(e.setVisual("color",a),e.setVisual("style",{fill:a})):(e.setVisual("color",r),e.setVisual("style",{fill:r}))}))}}))}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(59),o=n(718),a=n(0),s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return Object(r.__extends)(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(i.default);Object(a.mixin)(s,o.WhiskerBoxCommonMixin,!0),e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(58),a=n(12),s=n(11),u=n(36),l=n(23),c=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===t.get("layout")?1:0;r.diff(o).add((function(t){if(r.hasValue(t)){var e=d(r.getItemLayout(t),r,t,a,!0);r.setItemGraphicEl(t,e),i.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var s=r.getItemLayout(t);n?(Object(l.saveOldStyle)(n),p(s,n,r,t)):n=d(s,r,t,a),i.add(n),r.setItemGraphicEl(t,n)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=r},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(o.default),h=function(){},f=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new h},e.prototype.buildPath=function(t,e){var n=e.points,r=0;for(t.moveTo(n[r][0],n[r][1]),r++;r<4;r++)t.lineTo(n[r][0],n[r][1]);for(t.closePath();r<n.length;r++)t.moveTo(n[r][0],n[r][1]),r++,t.lineTo(n[r][0],n[r][1])},e}(u.default);function d(t,e,n,r,i){var o=t.ends,a=new f({shape:{points:i?g(o,r,t):o}});return p(t,a,e,n,i),a}function p(t,e,n,r,i){var o=n.hostModel;(0,a[i?"initProps":"updateProps"])(e,{shape:{points:t.ends}},o,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var u=n.getItemModel(r),l=u.getModel("emphasis");Object(s.setStatesStylesFromModel)(e,u),Object(s.toggleHoverEmphasis)(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function g(t,e,n){return i.map(t,(function(t){return(t=t.slice())[e]=n.initBaseline,t}))}e.default=c},function(t,e,n){"use strict";function r(t,e){}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(0),i=n(6),o=r.each;function a(t){var e=function(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var i=t.getBaseAxis(),o=r.indexOf(n,i);o<0&&(o=n.length,n[o]=i,e[o]={axis:i,seriesModels:[]}),e[o].seriesModels.push(t)})),e}(t);o(e,(function(t){var e=t.seriesModels;e.length&&(!function(t){var e,n=t.axis,a=t.seriesModels,s=a.length,u=t.boxWidthList=[],l=t.boxOffsetList=[],c=[];if("category"===n.type)e=n.getBandWidth();else{var h=0;o(a,(function(t){h=Math.max(h,t.getData().count())}));var f=n.getExtent();e=Math.abs(f[1]-f[0])/h}o(a,(function(t){var n=t.get("boxWidth");r.isArray(n)||(n=[n,n]),c.push([Object(i.parsePercent)(n[0],e)||0,Object(i.parsePercent)(n[1],e)||0])}));var d=.8*e-2,p=d/s*.3,g=(d-p*(s-1))/s,v=g/2-d/2;o(a,(function(t,e){l.push(v),v+=p+g,u.push(Math.min(Math.max(g,c[e][0]),c[e][1]))}))}(t),o(e,(function(e,n){!function(t,e,n){var r=t.coordinateSystem,i=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,u=["x","y"],l=i.mapDimension(u[a]),c=i.mapDimensionsAll(u[s]);if(null==l||c.length<5)return;for(var h=0;h<i.count();h++){var f=i.get(l,h),d=b(f,c[2],h),p=b(f,c[0],h),g=b(f,c[1],h),v=b(f,c[3],h),m=b(f,c[4],h),y=[];_(y,g,!1),_(y,v,!0),y.push(p,g,m,v),x(y,p),x(y,m),x(y,d),i.setItemLayout(h,{initBaseline:d[s],ends:y})}function b(t,n,o){var u,l=i.get(n,o),c=[];return c[a]=t,c[s]=l,isNaN(t)||isNaN(l)?u=[NaN,NaN]:(u=r.dataToPoint(c))[a]+=e,u}function _(t,e,n){var r=e.slice(),i=e.slice();r[a]+=o,i[a]-=o,n?t.push(r,i):t.push(i,r)}function x(t,e){var n=e.slice(),r=e.slice();n[a]-=o,r[a]+=o,t.push(n,r)}}(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"boxplotTransform",(function(){return a}));var r=n(1449),i=n(38),o=n(30),a={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==o.SOURCE_FORMAT_ARRAY_ROWS){0,Object(i.throwError)("")}var n=Object(r.default)(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(6),i=n(0);function o(t,e){for(var n=[],o=[],a=(e=e||{}).boundIQR,s="none"===a||0===a,u=0;u<t.length;u++){var l=Object(r.asc)(t[u].slice()),c=Object(r.quantile)(l,.25),h=Object(r.quantile)(l,.5),f=Object(r.quantile)(l,.75),d=l[0],p=l[l.length-1],g=(null==a?1.5:a)*(f-c),v=s?d:Math.max(d,c-g),m=s?p:Math.min(p,f+g),y=e.itemNameFormatter,b=Object(i.isFunction)(y)?y({value:u}):Object(i.isString)(y)?y.replace("{value}",u+""):u+"";n.push([b,v,c,h,f,m]);for(var _=0;_<l.length;_++){var x=l[_];if(x<v||x>m){var w=[b,x];o.push(w)}}}return{boxData:n,outliers:o}}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(58),a=n(12),s=n(23),u=n(11),l=n(36),c=n(297),h=["color","borderColor"],f=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){a.traverseElements(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,r=this.group,i=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,u=a.getArea&&a.getArea();this._data||r.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&v(u,a))return;var l=g(a,n,!0);s.initProps(l,{shape:{points:a.ends}},t,n),m(l,e,n,i),r.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var c=n.getItemGraphicEl(l);if(e.hasValue(a)){var h=e.getItemLayout(a);o&&v(u,h)?r.remove(c):(c?(s.updateProps(c,{shape:{points:h.ends}},t,a),Object(s.saveOldStyle)(c)):c=g(h,a),m(c,e,a,i),r.add(c),e.setItemGraphicEl(a,c))}else r.remove(c)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),x(t,this.group);var e=t.get("clip",!0)?Object(c.createClipPath)(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,r=e.getData(),i=r.getLayout("isSimpleBox");null!=(n=t.next());){var o=g(r.getItemLayout(n),n);m(o,r,n,i),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){x(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(o.default),d=function(){},p=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new d},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(l.default);function g(t,e,n){var r=t.ends;return new p({shape:{points:n?y(r,t):r},z2:100})}function v(t,e){for(var n=!0,r=0;r<e.ends.length;r++)if(t.contain(e.ends[r][0],e.ends[r][1])){n=!1;break}return n}function m(t,e,n,r){var i=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,Object(u.setStatesStylesFromModel)(t,i)}function y(t,e){return i.map(t,(function(t){return(t=t.slice())[1]=e.initBaseline,t}))}var b=function(){},_=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new b},e.prototype.buildPath=function(t,e){for(var n=e.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];t.moveTo(i,n[r++]),t.lineTo(i,n[r++])}else r+=3},e}(l.default);function x(t,e,n,r){var i=t.getData(),o=i.getLayout("largePoints"),a=new _({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new _({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s),w(1,a,t,i),w(-1,s,t,i),r&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function w(t,e,n,r){var i=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(h);e.useStyle(o),e.style.fill=null,e.style.stroke=i}e.default=f},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(59),o=n(718),a=n(0),s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return Object(r.__extends)(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var r=e.getItemLayout(t);return r&&n.rect(r.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(i.default);Object(a.mixin)(s,o.WhiskerBoxCommonMixin,!0),e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(0);function i(t){t&&r.isArray(t.series)&&r.each(t.series,(function(t){r.isObject(t)&&"k"===t.type&&(t.type="candlestick")}))}},function(t,e,n){"use strict";n.r(e);var r=n(263),i=n(0),o=["itemStyle","borderColor"],a=["itemStyle","borderColor0"],s=["itemStyle","color"],u=["itemStyle","color0"],l={seriesType:"candlestick",plan:Object(r.default)(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?s:u)}function r(t,e){return e.get(t>0?o:a)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var o;null!=(o=t.next());){var a=e.getItemModel(o),s=e.getItemLayout(o).sign,u=a.getItemStyle();u.fill=n(s,a),u.stroke=r(s,a)||u.fill;var l=e.ensureUniqueItemVisual(o,"style");Object(i.extend)(l,u)}}}}};e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(12),i=n(263),o=n(6),a=n(0),s=n(211),u={seriesType:"candlestick",plan:Object(i.default)(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,r=t.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/e.count()),s=Object(o.parsePercent)(Object(a.retrieve2)(t.get("barMaxWidth"),i),i),u=Object(o.parsePercent)(Object(a.retrieve2)(t.get("barMinWidth"),1),i),l=t.get("barWidth");return null!=l?Object(o.parsePercent)(l,i):Math.max(Math.min(i/2,s),u)}(t,n),u=["x","y"],c=n.getDimensionIndex(n.mapDimension(u[0])),h=Object(a.map)(n.mapDimensionsAll(u[1]),n.getDimensionIndex,n),f=h[0],d=h[1],p=h[2],g=h[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(c<0||h.length<4))return{progress:t.pipelineContext.large?function(t,n){var r,i,o=Object(s.createFloat32Array)(4*t.count),a=0,u=[],h=[],v=n.getStore();for(;null!=(i=t.next());){var m=v.get(c,i),y=v.get(f,i),b=v.get(d,i),_=v.get(p,i),x=v.get(g,i);isNaN(m)||isNaN(_)||isNaN(x)?(o[a++]=NaN,a+=3):(o[a++]=l(v,i,y,b,d),u[0]=m,u[1]=_,r=e.dataToPoint(u,null,h),o[a++]=r?r[0]:NaN,o[a++]=r?r[1]:NaN,u[1]=x,r=e.dataToPoint(u,null,h),o[a++]=r?r[1]:NaN)}n.setLayout("largePoints",o)}:function(t,n){var o,a=n.getStore();for(;null!=(o=t.next());){var s=a.get(c,o),u=a.get(f,o),h=a.get(d,o),v=a.get(p,o),m=a.get(g,o),y=Math.min(u,h),b=Math.max(u,h),_=C(y,s),x=C(b,s),w=C(v,s),O=C(m,s),S=[];E(S,x,0),E(S,_,1),S.push(A(O),A(x),A(w),A(_)),n.setItemLayout(o,{sign:l(a,o,u,h,d),initBaseline:u>h?x[1]:_[1],ends:S,brushRect:T(v,m,s)})}function C(t,n){var r=[];return r[0]=n,r[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(r)}function E(t,e,n){var o=e.slice(),a=e.slice();o[0]=Object(r.subPixelOptimize)(o[0]+i/2,1,!1),a[0]=Object(r.subPixelOptimize)(a[0]-i/2,1,!0),n?t.push(o,a):t.push(a,o)}function T(t,e,n){var r=C(t,n),o=C(e,n);return r[0]-=i/2,o[0]-=i/2,{x:r[0],y:r[1],width:i,height:o[1]-r[1]}}function A(t){return t[0]=Object(r.subPixelOptimize)(t[0],1),t}}}}};function l(t,e,n,r,i){return n>r?-1:n<r?1:e>0?t.get(i,e-1)<=r?1:-1:1}e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(317),o=n(1456),a=n(42),s=n(318),u=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.init=function(){this._symbolDraw=new i.default(o.default)},e.prototype.render=function(t,e,n){var r=t.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(t)}),this.group.add(i.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var r=t.getData();this.group.dirty();var i=Object(s.default)("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=a.clone(e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(n(58).default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(67),o=n(40),a=n(11),s=n(357);function u(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var l=function(t){function e(e,n){var r=t.call(this)||this,i=new s.default(e,n),a=new o.default;return r.add(i),r.add(a),r.updateData(e,n),r}return Object(r.__extends)(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,r=t.rippleNumber,o=this.childAt(1),a=0;a<r;a++){var s=Object(i.createSymbol)(e,-1,-1,2,2,n);s.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var l=-a/r*t.period+t.effectOffset;s.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(l).start(),s.animateStyle(!0).when(t.period,{opacity:0}).delay(l).start(),o.add(s)}u(o,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],i=0;i<r.length;i++){var o=r[i];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}u(n,t)},e.prototype.highlight=function(){Object(a.enterEmphasis)(this)},e.prototype.downplay=function(){Object(a.leaveEmphasis)(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,r=t.hostModel;this.childAt(0).updateData(t,e);var o=this.childAt(1),s=t.getItemModel(e),u=t.getItemVisual(e,"symbol"),l=Object(i.normalizeSymbolSize)(t.getItemVisual(e,"symbolSize")),c=t.getItemVisual(e,"style"),h=c&&c.fill,f=s.getModel("emphasis");o.setScale(l),o.traverse((function(t){t.setStyle("fill",h)}));var d=Object(i.normalizeSymbolOffset)(t.getItemVisual(e,"symbolOffset"),l);d&&(o.x=d[0],o.y=d[1]);var p=t.getItemVisual(e,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var g={};g.showEffectOn=r.get("showEffectOn"),g.rippleScale=s.get(["rippleEffect","scale"]),g.brushType=s.get(["rippleEffect","brushType"]),g.period=1e3*s.get(["rippleEffect","period"]),g.effectOffset=e/t.count(),g.z=r.getShallow("z")||0,g.zlevel=r.getShallow("zlevel")||0,g.symbolType=u,g.color=h,g.rippleEffectColor=s.get(["rippleEffect","color"]),g.rippleNumber=s.get(["rippleEffect","number"]),"render"===g.showEffectOn?(this._effectCfg?this.updateEffectAnimation(g):this.startEffectAnimation(g),this._effectCfg=g):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==g.showEffectOn&&n.startEffectAnimation(g):"normal"===t&&"render"!==g.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=g,Object(a.toggleHoverEmphasis)(this,f.get("focus"),f.get("blurScope"),f.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(o.default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(163),o=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(r.__extends)(e,t),e.prototype.getInitialData=function(t,e){return Object(i.default)(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(n(59).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(479),o=n(721),a=n(480),s=n(720),u=n(1460),l=n(1459),c=n(719),h=n(297),f=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._updateLineDraw(r,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),u="svg"===s.painter.getType();u||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||u||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(u||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),i.updateData(r);var l=t.get("clip",!0)&&Object(h.createClipPath)(t.coordinateSystem,!1,t);l?this.group.setClipPath(l):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData();this._updateLineDraw(r,t).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var r=t.getData(),i=t.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=c.default.reset(t,e,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,r=this._showEffect(e),c=!!e.get("polyline"),h=e.pipelineContext.large;return n&&r===this._hasEffet&&c===this._isPolyline&&h===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=h?new l.default:new i.default(c?r?u.default:s.default:r?o.default:a.default),this._hasEffet=r,this._isPolyline=c,this._isLargeDraw=h),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(n(58).default);e.default=f},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(35),o=n(36),a=n(40),s=n(340),u=n(697),l=n(31),c=function(){this.polyline=!1,this.curveness=0,this.segs=[]},h=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(r.__extends)(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new c},e.prototype.buildPath=function(t,e){var n,r=e.segs,i=e.curveness;if(e.polyline)for(n=this._off;n<r.length;){var o=r[n++];if(o>0){t.moveTo(r[n++],r[n++]);for(var a=1;a<o;a++)t.lineTo(r[n++],r[n++])}}else for(n=this._off;n<r.length;){var s=r[n++],u=r[n++],l=r[n++],c=r[n++];if(t.moveTo(s,u),i>0){var h=(s+l)/2-(u-c)*i,f=(u+c)/2-(l-s)*i;t.quadraticCurveTo(h,f,l,c)}else t.lineTo(l,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,r=n.segs,i=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,l=0;l<r.length;){var c=r[l++];if(c>0)for(var h=r[l++],f=r[l++],d=1;d<c;d++){var p=r[l++],g=r[l++];if(s.containStroke(h,f,p,g,o,t,e))return a}a++}else for(a=0,l=0;l<r.length;){h=r[l++],f=r[l++],p=r[l++],g=r[l++];if(i>0){var v=(h+p)/2-(f-g)*i,m=(f+g)/2-(p-h)*i;if(u.containStroke(h,f,v,m,p,g,o,t,e))return a}else if(s.containStroke(h,f,p,g,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return t=n[0],e=n[1],r.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,r=1/0,o=-1/0,a=-1/0,s=0;s<e.length;){var u=e[s++],l=e[s++];n=Math.min(u,n),o=Math.max(u,o),r=Math.min(l,r),a=Math.max(l,a)}t=this._rect=new i.default(n,r,o,a)}return t},e}(o.default),f=function(){function t(){this.group=new a.default}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],r=e.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,a=new Float32Array(o+r.length);a.set(i),a.set(r,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new h({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;t.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),t.useStyle(r.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=Object(l.getECData)(t);o.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var n=t.hoverDataIdx;n>0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();e.default=f},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(720),o=n(721),a=n(18),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return Object(r.__extends)(e,t),e.prototype.createLine=function(t,e,n){return new i.default(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],r=0,i=1;i<e.length;i++){var o=e[i-1],s=e[i];r+=a.dist(o,s),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,r=this._offsets,i=n.length;if(r){var o,a=this._lastFrame;if(e<this._lastFramePercent){for(o=Math.min(a+1,i-1);o>=0&&!(r[o]<=e);o--);o=Math.min(o,i-2)}else{for(o=a;o<i&&!(r[o]>e);o++);o=Math.min(o-1,i-2)}var s=(e-r[o])/(r[o+1]-r[o]),u=n[o],l=n[o+1];t.x=u[0]*(1-s)+s*l[0],t.y=u[1]*(1-s)+s*l[1];var c=t.__t<1?l[0]-u[0]:u[0]-l[0],h=t.__t<1?l[1]-u[1]:u[1]-l[1];t.rotation=-Math.atan2(h,c)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(59),o=n(118),a=n(0),s=n(83),u="undefined"==typeof Uint32Array?Array:Uint32Array,l="undefined"==typeof Float64Array?Array:Float64Array;function c(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(a.map)(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),Object(a.mergeAll)([e,t[0],t[1]])})))}var h=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(r.__extends)(e,t),e.prototype.init=function(e){e.data=e.data||[],c(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(c(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(a.concatArray)(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(a.concatArray)(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],r=this._flatCoordsOffset[2*t+1],i=0;i<r;i++)e[i]=e[i]||[],e[i][0]=this._flatCoords[n+2*i],e[i][1]=this._flatCoords[n+2*i+1];return r}var o=this._getCoordsFromItemModel(t);for(i=0;i<o.length;i++)e[i]=e[i]||[],e[i][0]=o[i][0],e[i][1]=o[i][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Object(a.isNumber)(t[0])){for(var n=t.length,r=new u(n),i=new l(n),o=0,s=0,c=0,h=0;h<n;){c++;var f=t[h++];r[s++]=o+e,r[s++]=f;for(var d=0;d<f;d++){var p=t[h++],g=t[h++];i[o++]=p,i[o++]=g}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,s),flatCoords:i,count:c}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new o.default(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,r,i){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[i]:o:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var r=this.getData().getItemModel(t),i=r.get("name");if(i)return i;var o=r.get("fromName"),a=r.get("toName"),u=[];return null!=o&&u.push(o),null!=a&&u.push(a),Object(s.createTooltipMarkup)("nameValue",{name:u.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(i.default);e.default=h},function(t,e,n){"use strict";function r(t){return t instanceof Array||(t=[t,t]),t}n.r(e);var i={seriesType:"lines",reset:function(t){var e=r(t.get("symbol")),n=r(t.get("symbolSize")),i=t.getData();return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=r(n.getShallow("symbol",!0)),o=r(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),o[0]&&t.setItemVisual(e,"fromSymbolSize",o[0]),o[1]&&t.setItemVisual(e,"toSymbolSize",o[1])}:null}}};e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(12),o=n(79),a=n(114),s=n(11),u=n(1464),l=n(0),c=n(58),h=n(270),f=n(27);function d(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var p=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n){var r;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(r=e)}))})),this._progressiveEls=null,this.group.removeAll();var i=t.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):d(i)&&this._renderOnGeo(i,t,r,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,r){var i=e.coordinateSystem;i&&(d(i)?this.render(e,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,r,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){i.traverseElements(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,r,i){var a,u,l,c,d=t.coordinateSystem,p=Object(h.isCoordinateSystemType)(d,"cartesian2d");if(p){var g=d.getAxis("x"),v=d.getAxis("y");0,a=g.getBandWidth()+.5,u=v.getBandWidth()+.5,l=g.scale.getExtent(),c=v.scale.getExtent()}for(var m=this.group,y=t.getData(),b=t.getModel(["emphasis","itemStyle"]).getItemStyle(),_=t.getModel(["blur","itemStyle"]).getItemStyle(),x=t.getModel(["select","itemStyle"]).getItemStyle(),w=t.get(["itemStyle","borderRadius"]),O=Object(f.getLabelStatesModels)(t),S=t.getModel("emphasis"),C=S.get("focus"),E=S.get("blurScope"),T=S.get("disabled"),A=p?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],M=n;M<r;M++){var I=void 0,j=y.getItemVisual(M,"style");if(p){var k=y.get(A[0],M),P=y.get(A[1],M);if(isNaN(y.get(A[2],M))||k<l[0]||k>l[1]||P<c[0]||P>c[1])continue;var L=d.dataToPoint([k,P]);I=new o.default({shape:{x:L[0]-a/2,y:L[1]-u/2,width:a,height:u},style:j})}else{if(isNaN(y.get(A[1],M)))continue;I=new o.default({z2:1,shape:d.dataToRect([y.get(A[0],M)]).contentShape,style:j})}if(y.hasItemOption){var R=y.getItemModel(M),D=R.getModel("emphasis");b=D.getModel("itemStyle").getItemStyle(),_=R.getModel(["blur","itemStyle"]).getItemStyle(),x=R.getModel(["select","itemStyle"]).getItemStyle(),w=R.get(["itemStyle","borderRadius"]),C=D.get("focus"),E=D.get("blurScope"),T=D.get("disabled"),O=Object(f.getLabelStatesModels)(R)}I.shape.r=w;var N=t.getRawValue(M),B="-";N&&null!=N[2]&&(B=N[2]+""),Object(f.setLabelStyle)(I,O,{labelFetcher:t,labelDataIndex:M,defaultOpacity:j.opacity,defaultText:B}),I.ensureState("emphasis").style=b,I.ensureState("blur").style=_,I.ensureState("select").style=x,Object(s.toggleHoverEmphasis)(I,C,E,T),I.incremental=i,i&&(I.states.emphasis.hoverLayer=!0),m.add(I),y.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(t,e,n,r){var i=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,s=e.getData(),c=this._hmLayer||this._hmLayer||new u.default;c.blurSize=e.get("blurSize"),c.pointSize=e.get("pointSize"),c.minOpacity=e.get("minOpacity"),c.maxOpacity=e.get("maxOpacity");var h=t.getViewRect().clone(),f=t.getRoamTransform();h.applyTransform(f);var d=Math.max(h.x,0),p=Math.max(h.y,0),g=Math.min(h.width+h.x,r.getWidth()),v=Math.min(h.height+h.y,r.getHeight()),m=g-d,y=v-p,b=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],_=s.mapArray(b,(function(e,n,r){var i=t.dataToPoint([e,n]);return i[0]-=d,i[1]-=p,i.push(r),i})),x=n.getExtent(),w="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(x,n.option.range):function(t,e,n){var r=t[1]-t[0],i=(e=l.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}}))).length,o=0;return function(t){var r;for(r=o;r<i;r++){if((a=e[r].interval)[0]<=t&&t<=a[1]){o=r;break}}if(r===i)for(r=o-1;r>=0;r--){var a;if((a=e[r].interval)[0]<=t&&t<=a[1]){o=r;break}}return r>=0&&r<i&&n[r]}}(x,n.getPieceList(),n.option.selected);c.update(_,m,y,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},w);var O=new a.default({style:{width:m,height:y,x:d,y:p,image:c.canvas},silent:!0});this.group.add(O)},e.type="heatmap",e}(c.default);e.default=p},function(t,e,n){"use strict";n.r(e);var r=n(107),i=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=r.platformApi.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,r,i,o){var a=this._getBrush(),s=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),l=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),f=t.length;c.width=e,c.height=n;for(var d=0;d<f;++d){var p=t[d],g=p[0],v=p[1],m=r(p[2]);h.globalAlpha=m,h.drawImage(a,g-l,v-l)}if(!c.width||!c.height)return c;for(var y=h.getImageData(0,0,c.width,c.height),b=y.data,_=0,x=b.length,w=this.minOpacity,O=this.maxOpacity-w;_<x;){m=b[_+3]/256;var S=4*Math.floor(255*m);if(m>0){var C=o(m)?s:u;m>0&&(m=m*O+w),b[_++]=C[S],b[_++]=C[S+1],b[_++]=C[S+2],b[_++]=C[S+3]*m*256}else _+=4}return h.putImageData(y,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=r.platformApi.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,r=n[e]||(n[e]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,i),r[o++]=i[0],r[o++]=i[1],r[o++]=i[2],r[o++]=i[3];return r},t}();e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(59),o=n(163),a=n(295),s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.getInitialData=function(t,e){return Object(o.default)(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=a.default.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(i.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(250),a=n(79),s=n(23),u=n(12),l=n(40),c=n(11),h=n(67),f=n(6),d=n(58),p=n(246),g=n(27),v=n(114),m=n(31),y=["itemStyle","borderWidth"],b=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],_=new o.default,x=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n){var r=this.group,i=t.getData(),o=this._data,a=t.coordinateSystem,u=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:u,valueDim:b[+u],categoryDim:b[1-+u]};return i.diff(o).add((function(t){if(i.hasValue(t)){var e=M(i,t),n=w(i,t,e,c),o=k(i,c,n);i.setItemGraphicEl(t,o),r.add(o),N(o,c,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var a=M(i,t),u=w(i,t,a,c),l=L(i,u);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var r=n.animationModel,i=n.dataIndex,o=t.__pictorialBundle;s.updateProps(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?C(t,e,n,!0):E(t,e,n,!0);T(t,n,!0),A(t,e,n,!0)}(n,c,u):n=k(i,c,u,!0),i.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=u,r.add(n),N(n,c,u)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&P(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=i,this.group},e.prototype.remove=function(t,e){var n=this.group,r=this._data;t.get("animation")?r&&r.eachItemGraphicEl((function(e){P(r,Object(m.getECData)(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(d.default);function w(t,e,n,r){var o=t.getItemLayout(e),a=n.get("symbolRepeat"),s=n.get("symbolClip"),u=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,d=n.isAnimationEnabled(),p={dataIndex:e,layout:o,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:s,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:l,animationModel:d?n:null,hoverScale:d&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(t,e,n,r,o){var a,s=r.valueDim,u=t.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=l.toGlobalCoord(l.dataToCoord(0)),h=1-+(n[s.wh]<=0);if(i.isArray(u)){var f=[O(l,u[0])-c,O(l,u[1])-c];f[1]<f[0]&&f.reverse(),a=f[h]}else a=null!=u?O(l,u)-c:e?r.coordSysExtent[s.index][h]-c:n[s.wh];o.boundingLength=a,e&&(o.repeatCutLength=n[s.wh]);o.pxSign=a>0?1:-1}(n,a,o,r,p),function(t,e,n,r,o,a,s,u,l,c){var h,d=l.valueDim,p=l.categoryDim,g=Math.abs(n[p.wh]),v=t.getItemVisual(e,"symbolSize");h=i.isArray(v)?v.slice():null==v?["100%","100%"]:[v,v];h[p.index]=Object(f.parsePercent)(h[p.index],g),h[d.index]=Object(f.parsePercent)(h[d.index],r?g:Math.abs(a)),c.symbolSize=h,(c.symbolScale=[h[0]/u,h[1]/u])[d.index]*=(l.isHorizontal?-1:1)*s}(t,e,o,a,0,p.boundingLength,p.pxSign,c,r,p),function(t,e,n,r,i){var o=t.get(y)||0;o&&(_.attr({scaleX:e[0],scaleY:e[1],rotation:n}),_.updateTransform(),o/=_.getLineScale(),o*=e[r.valueDim.index]);i.valueLineWidth=o||0}(n,p.symbolScale,l,r,p);var g=p.symbolSize,v=Object(h.normalizeSymbolOffset)(n.get("symbolOffset"),g);return function(t,e,n,r,o,a,s,u,l,c,h,d){var p=h.categoryDim,g=h.valueDim,v=d.pxSign,m=Math.max(e[g.index]+u,0),y=m;if(r){var b=Math.abs(l),_=i.retrieve(t.get("symbolMargin"),"15%")+"",x=!1;_.lastIndexOf("!")===_.length-1&&(x=!0,_=_.slice(0,_.length-1));var w=Object(f.parsePercent)(_,e[g.index]),O=Math.max(m+2*w,0),S=x?0:2*w,C=Object(f.isNumeric)(r),E=C?r:B((b+S)/O);w=(b-E*m)/2/(x?E:Math.max(E-1,1)),O=m+2*w,S=x?0:2*w,C||"fixed"===r||(E=c?B((Math.abs(c)+S)/O):0),y=E*O-S,d.repeatTimes=E,d.symbolMargin=w}var T=v*(y/2),A=d.pathPosition=[];A[p.index]=n[p.wh]/2,A[g.index]="start"===s?T:"end"===s?l-T:l/2,a&&(A[0]+=a[0],A[1]+=a[1]);var M=d.bundlePosition=[];M[p.index]=n[p.xy],M[g.index]=n[g.xy];var I=d.barRectShape=i.extend({},n);I[g.wh]=v*Math.max(Math.abs(n[g.wh]),Math.abs(A[g.index]+T)),I[p.wh]=n[p.wh];var j=d.clipShape={};j[p.xy]=-n[p.xy],j[p.wh]=h.ecSize[p.wh],j[g.xy]=0,j[g.wh]=n[g.wh]}(n,g,o,a,0,v,u,p.valueLineWidth,p.boundingLength,p.repeatCutLength,r,p),p}function O(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function S(t){var e=t.symbolPatternSize,n=Object(h.createSymbol)(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function C(t,e,n,r){var i=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,u=e.valueDim,l=n.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(R(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=l,c<l?D(t,null,p(c),n,r):D(t,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(t)})),c++}));c<l;c++){var f=S(n);f.__pictorialAnimationIndex=c,f.__pictorialRepeatTimes=l,i.add(f);var d=p(c);D(f,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},n,r)}function p(t){var e=s.slice(),r=n.pxSign,i=t;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=l-1-t),e[u.index]=h*(i-l/2+.5)+s[u.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function E(t,e,n,r){var i=t.__pictorialBundle,o=t.__pictorialMainPath;o?D(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=t.__pictorialMainPath=S(n),i.add(o),D(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function T(t,e,n){var r=i.extend({},e.barRectShape),o=t.__pictorialBarRect;o?D(o,null,{shape:r},e,n):((o=t.__pictorialBarRect=new a.default({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(o))}function A(t,e,n,r){if(n.symbolClip){var o=t.__pictorialClipPath,l=i.extend({},n.clipShape),c=e.valueDim,h=n.animationModel,f=n.dataIndex;if(o)s.updateProps(o,{shape:l},h,f);else{l[c.wh]=0,o=new a.default({shape:l}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var d={};d[c.wh]=n.clipShape[c.wh],u[r?"updateProps":"initProps"](o,{shape:d},h,f)}}}function M(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=I,n.isAnimationEnabled=j,n}function I(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function j(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function k(t,e,n,r){var i=new l.default,o=new l.default;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?C(i,e,n):E(i,0,n),T(i,n,r),A(i,e,n,r),i.__pictorialShapeStr=L(t,n),i.__pictorialSymbolMeta=n,i}function P(t,e,n,r){var o=r.__pictorialBarRect;o&&o.removeTextContent();var a=[];R(r,(function(t){a.push(t)})),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),i.each(a,(function(t){s.removeElement(t,{scaleX:0,scaleY:0},n,e,(function(){r.parent&&r.parent.remove(r)}))})),t.setItemGraphicEl(e,null)}function L(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function R(t,e,n){i.each(t.__pictorialBundle.children(),(function(r){r!==t.__pictorialBarRect&&e.call(n,r)}))}function D(t,e,n,r,i,o){e&&t.attr(e),r.symbolClip&&!i?n&&t.attr(n):n&&u[i?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,o)}function N(t,e,n){var r=n.dataIndex,o=n.itemModel,a=o.getModel("emphasis"),s=a.getModel("itemStyle").getItemStyle(),u=o.getModel(["blur","itemStyle"]).getItemStyle(),l=o.getModel(["select","itemStyle"]).getItemStyle(),h=o.getShallow("cursor"),f=a.get("focus"),d=a.get("blurScope"),m=a.get("scale");R(t,(function(t){if(t instanceof v.default){var e=t.style;t.useStyle(i.extend({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var r=t.ensureState("emphasis");r.style=s,m&&(r.scaleX=1.1*t.scaleX,r.scaleY=1.1*t.scaleY),t.ensureState("blur").style=u,t.ensureState("select").style=l,h&&(t.cursor=h),t.z2=n.z2}));var y=e.valueDim.posDesc[+(n.boundingLength>0)],b=t.__pictorialBarRect;Object(g.setLabelStyle)(b,Object(g.getLabelStatesModels)(o),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Object(p.getDefaultLabel)(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:y}),Object(c.toggleHoverEmphasis)(t,f,d,a.get("disabled"))}function B(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}e.default=x},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(516),o=n(111),a=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return Object(r.__extends)(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Object(o.inheritDefaultOption)(i.default.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(575),o=n(40),a=n(23),s=n(79),u=n(11),l=n(27),c=n(0),h=n(185),f=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),f=this,d=this.group,p=t.getLayerSeries(),g=r.getLayout("layoutInfo"),v=g.rect,m=g.boundaryGap;function y(t){return t.name}d.x=0,d.y=v.y+m[0];var b=new h.default(this._layersSeries||[],p,y,y),_=[];function x(e,n,c){var h=f._layers;if("remove"!==e){for(var g,v,m=[],y=[],b=p[n].indices,x=0;x<b.length;x++){var w=r.getItemLayout(b[x]),O=w.x,S=w.y0,C=w.y;m.push(O,S),y.push(O,S+C),g=r.getItemVisual(b[x],"style")}var E=r.getItemLayout(b[0]),T=t.getModel("label").get("margin"),A=t.getModel("emphasis");if("add"===e){var M=_[n]=new o.default;v=new i.ECPolygon({shape:{points:m,stackedOnPoints:y,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),M.add(v),d.add(M),t.isAnimationEnabled()&&v.setClipPath(function(t,e,n){var r=new s.default({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return a.initProps(r,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),r}(v.getBoundingRect(),t,(function(){v.removeClipPath()})))}else{M=h[c];v=M.childAt(0),d.add(M),_[n]=M,a.updateProps(v,{shape:{points:m,stackedOnPoints:y}},t),Object(a.saveOldStyle)(v)}Object(l.setLabelStyle)(v,Object(l.getLabelStatesModels)(t),{labelDataIndex:b[x-1],defaultText:r.getName(b[x-1]),inheritColor:g.fill},{normal:{verticalAlign:"middle"}}),v.setTextConfig({position:null,local:!0});var I=v.getTextContent();I&&(I.x=E.x-T,I.y=E.y0+E.y/2),v.useStyle(g),r.setItemGraphicEl(n,v),Object(u.setStatesStylesFromModel)(v,t),Object(u.toggleHoverEmphasis)(v,A.get("focus"),A.get("blurScope"),A.get("disabled"))}else d.remove(h[n])}b.add(Object(c.bind)(x,this,"add")).update(Object(c.bind)(x,this,"update")).remove(Object(c.bind)(x,this,"remove")).execute(),this._layersSeries=p,this._layers=_},e.type="themeRiver",e}(n(58).default);e.default=f},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(59),o=n(259),a=n(356),s=n(118),u=n(0),l=n(9),c=n(319),h=n(83),f=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new c.default(u.bind(this.getData,this),u.bind(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},r=Object(l.groupData)(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),i=[];r.buckets.each((function(t,e){i.push({name:e,dataList:t})}));for(var o=i.length,a=0;a<o;++a){for(var s=i[a].name,u=0;u<i[a].dataList.length;++u){var c=i[a].dataList[u][0]+"";n[c]=a}for(var c in n)n.hasOwnProperty(c)&&n[c]!==a&&(n[c]=a,t[e]=[c,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",l.SINGLE_REFERRING).models[0].get("type"),r=u.filter(t.data,(function(t){return void 0!==t[2]})),i=this.fixData(r||[]),c=[],h=this.nameMap=u.createHashMap(),f=0,d=0;d<i.length;++d)c.push(i[d][2]),h.get(i[d][2])||(h.set(i[d][2],f),f++);var p=Object(o.default)(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Object(a.getDimensionTypeByAxis)(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,g=new s.default(p,this);return g.initData(i),g},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],r=0;r<e;++r)n[r]=r;var i=t.mapDimension("single"),o=Object(l.groupData)(n,(function(e){return t.get("name",e)})),a=[];return o.buckets.each((function(e,n){e.sort((function(e,n){return t.get(i,e)-t.get(i,n)})),a.push({name:n,indices:e})})),a},e.prototype.getAxisTooltipData=function(t,e,n){u.isArray(t)||(t=t?[t]:[]);for(var r,i=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var c=Number.MAX_VALUE,h=-1,f=o[l].indices.length,d=0;d<f;++d){var p=i.get(t[0],o[l].indices[d]),g=Math.abs(p-e);g<=c&&(r=p,c=g,h=o[l].indices[d])}a.push(h)}return{dataIndices:a,nestestValue:r}},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=r.getName(t),o=r.get(r.mapDimension("value"),t);return Object(h.createTooltipMarkup)("nameValue",{name:i,value:o})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(i.default);e.default=f},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(0),i=n(6);function o(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,r={},o=n.getRect();r.rect=o;var s=t.get("boundaryGap"),u=n.getAxis();(r.boundaryGap=s,"horizontal"===u.orient)?(s[0]=i.parsePercent(s[0],o.height),s[1]=i.parsePercent(s[1],o.height),a(e,t,o.height-s[0]-s[1])):(s[0]=i.parsePercent(s[0],o.width),s[1]=i.parsePercent(s[1],o.width),a(e,t,o.width-s[0]-s[1]));e.setLayout("layoutInfo",r)}))}function a(t,e,n){if(t.count())for(var i,o=e.coordinateSystem,a=e.getLayerSeries(),s=t.mapDimension("single"),u=t.mapDimension("value"),l=r.map(a,(function(e){return r.map(e.indices,(function(e){var n=o.dataToPoint(t.get(s,e));return n[1]=t.get(u,e),n}))})),c=function(t){for(var e=t.length,n=t[0].length,r=[],i=[],o=0,a=0;a<n;++a){for(var s=0,u=0;u<e;++u)s+=t[u][a][1];s>o&&(o=s),r.push(s)}for(var l=0;l<n;++l)i[l]=(o-r[l])/2;o=0;for(var c=0;c<n;++c){var h=r[c]+i[c];h>o&&(o=h)}return{y0:i,max:o}}(l),h=c.y0,f=n/c.max,d=a.length,p=a[0].indices.length,g=0;g<p;++g){i=h[g]*f,t.setItemLayout(a[0].indices[g],{layerIndex:0,x:l[0][g][0],y0:i,y:l[0][g][1]*f});for(var v=1;v<d;++v)i+=l[v-1][g][1]*f,t.setItemLayout(a[v].indices[g],{layerIndex:v,x:l[v][g][0],y0:i,y:l[v][g][1]*f})}}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(58),a=n(894),s=n(185),u=n(722),l=n(71),c=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n,r){var o=this;this.seriesModel=t,this.api=n,this.ecModel=e;var u=t.getData(),l=u.tree.root,c=t.getViewRoot(),h=this.group,f=t.get("renderLabelForZeroData"),d=[];c.eachNode((function(t){d.push(t)}));var p=this._oldChildren||[];!function(r,o){if(0===r.length&&0===o.length)return;function c(t){return t.getId()}function d(i,s){!function(r,i){f||!r||r.getValue()||(r=null);if(r!==l&&i!==l)if(i&&i.piece)r?(i.piece.updateData(!1,r,t,e,n),u.setItemGraphicEl(r.dataIndex,i.piece)):function(t){if(!t)return;t.piece&&(h.remove(t.piece),t.piece=null)}(i);else if(r){var o=new a.default(r,t,e,n);h.add(o),u.setItemGraphicEl(r.dataIndex,o)}}(null==i?null:r[i],null==s?null:o[s])}new s.default(o,r,c,c).add(d).update(d).remove(i.curry(d,null)).execute()}(d,p),function(r,i){i.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,r,t,e,n):(o.virtualPiece=new a.default(r,t,e,n),h.add(o.virtualPiece)),i.piece.off("click"),o.virtualPiece.on("click",(function(t){o._rootToNode(i.parentNode)}))):o.virtualPiece&&(h.remove(o.virtualPiece),o.virtualPiece=null)}(l,c),this._initEvents(),this._oldChildren=d},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(r){if(!n&&r.piece&&r.piece===e.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)t._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Object(l.windowOpen)(a,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:u.ROOT_TO_NODE_ACTION,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var r=t[0]-n.cx,i=t[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(o.default);e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(59),a=n(478),s=n(154),u=n(64),l=n(716),c=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return Object(r.__extends)(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;i.each(e.children,(function(e){t(e);var r=e.value;i.isArray(r)&&(r=r[0]),n+=r}));var r=e.value;i.isArray(r)&&(r=r[0]);(null==r||isNaN(r))&&(r=n);r<0&&(r=0);i.isArray(e.value)?e.value[0]=r:e.value=r}(n);var r=this._levelModels=i.map(t.levels||[],(function(t){return new u.default(t,this,e)}),this),o=a.default.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=o.getNodeByDataIndex(e),i=r[n.depth];return i&&(t.parentModel=i),t}))}));return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=Object(s.wrapTreePathInfo)(r,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Object(l.default)(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(o.default);e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(6),i=n(0),o=Math.PI/180;function a(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),a=t.get("radius");i.isArray(a)||(a=[0,a]),i.isArray(e)||(e=[e,e]);var u=n.getWidth(),l=n.getHeight(),c=Math.min(u,l),h=Object(r.parsePercent)(e[0],u),f=Object(r.parsePercent)(e[1],l),d=Object(r.parsePercent)(a[0],c/2),p=Object(r.parsePercent)(a[1],c/2),g=-t.get("startAngle")*o,v=t.get("minAngle")*o,m=t.getData().tree.root,y=t.getViewRoot(),b=y.depth,_=t.get("sort");null!=_&&s(y,_);var x=0;i.each(y.children,(function(t){!isNaN(t.getValue())&&x++}));var w=y.getValue(),O=Math.PI/(w||x)*2,S=y.depth>0,C=y.height-(S?-1:1),E=(p-d)/(C||1),T=t.get("clockwise"),A=t.get("stillShowZeroSum"),M=T?1:-1,I=function(e,n){if(e){var o=n;if(e!==m){var a=e.getValue(),s=0===w&&A?O:a*O;s<v&&(s=v),o=n+M*s;var u=e.depth-b-(S?-1:1),l=d+E*u,p=d+E*(u+1),g=t.getLevelModel(e);if(g){var y=g.get("r0",!0),_=g.get("r",!0),x=g.get("radius",!0);null!=x&&(y=x[0],_=x[1]),null!=y&&(l=Object(r.parsePercent)(y,c/2)),null!=_&&(p=Object(r.parsePercent)(_,c/2))}e.setLayout({angle:s,startAngle:n,endAngle:o,clockwise:T,cx:h,cy:f,r0:l,r:p})}if(e.children&&e.children.length){var C=0;i.each(e.children,(function(t){C+=I(t,n+C)}))}return o-n}};if(S){var j=d,k=d+E,P=2*Math.PI;m.setLayout({angle:P,startAngle:g,endAngle:g+P,clockwise:T,cx:h,cy:f,r0:j,r:k})}I(y,g)}))}function s(t,e){var n=t.children||[];t.children=function(t,e){if(i.isFunction(e)){var n=i.map(t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),i.map(n,(function(e){return t[e.index]}))}var r="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(r?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(r?-1:1):n}))}(n,e),n.length&&i.each(t.children,(function(t){s(t,e)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(80),i=n(0);function o(t){var e={};t.eachSeriesByType("sunburst",(function(t){var n=t.getData(),o=n.tree;o.eachNode((function(a){var s=a.getModel().getModel("itemStyle").getItemStyle();s.fill||(s.fill=function(t,n,o){for(var a=t;a&&a.depth>1;)a=a.parentNode;var s=n.getColorFromPalette(a.name||a.dataIndex+"",e);return t.depth>1&&Object(i.isString)(s)&&(s=Object(r.lift)(s,(t.depth-1)/(o-1)*.5)),s}(a,t,o.root.height));var u=n.ensureUniqueItemVisual(a.dataIndex,"style");Object(i.extend)(u,s)}))}))}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(36),a=n(12),s=n(114),u=n(72),l=n(40),c=n(11),h=n(27),f=n(246),d=n(275),p=n(185),g=n(58),v=n(297),m=n(1476),y=n(1477),b=n(1478),_=n(1479),x=n(1480),w=n(106),O=n(402),S=n(38),C=n(296),E=n(238),T=n(235),A=n(439),M=["normal","emphasis","blur","select"],I={normal:["itemStyle"],emphasis:["emphasis","itemStyle"],blur:["blur","itemStyle"],select:["select","itemStyle"]},j={normal:["label"],emphasis:["emphasis","label"],blur:["blur","label"],select:["select","label"]},k=["x","y"],P={normal:{},emphasis:{},blur:{},select:{}},L={cartesian2d:m.default,geo:y.default,single:b.default,polar:_.default,calendar:x.default};function R(t){return t instanceof o.default}function D(t){return t instanceof w.default}var N=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._data,o=t.getData(),a=this.group,s=U(t,o,e,n);i||a.removeAll(),o.diff(i).add((function(e){H(n,null,e,s(e,r),t,a,o)})).remove((function(e){var n=i.getItemGraphicEl(e);n&&Object(T.applyLeaveTransition)(n,Object(E.customInnerStore)(n).option,t)})).update((function(e,u){var l=i.getItemGraphicEl(u);H(n,l,e,s(e,r),t,a,o)})).execute();var u=t.get("clip",!0)?Object(v.createClipPath)(t.coordinateSystem,!1,t):null;u?a.setClipPath(u):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,r,i){var o=e.getData(),a=U(e,o,n,r),s=this._progressiveEls=[];function u(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var l=t.start;l<t.end;l++){var c=H(null,null,l,a(l,i),e,this.group,o);c&&(c.traverse(u),s.push(c))}},e.prototype.eachRendered=function(t){a.traverseElements(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,r){var i=e.element;if(null==i||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},e.type="custom",e}(g.default);function B(t){var e,n=t.type;if("path"===n){var r=t.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=tt(r);e=a.makePath(o,null,i,r.layout||"center"),Object(E.customInnerStore)(e).customPathData=o}else if("image"===n)e=new s.default({}),Object(E.customInnerStore)(e).customImagePath=t.style.image;else if("text"===n)e=new u.default({});else if("group"===n)e=new l.default;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var c=a.getShapeClass(n);if(!c){0,Object(S.throwError)("")}e=new c}return Object(E.customInnerStore)(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function F(t,e,n,r,o,a,s){Object(A.stopPreviousKeyframeAnimationAndRestore)(e);var u=o&&o.normal.cfg;u&&e.setTextConfig(u),r&&null==r.transition&&(r.transition=k);var l=r&&r.style;if(l){if("text"===e.type){var c=l;Object(i.hasOwn)(c,"textFill")&&(c.fill=c.textFill),Object(i.hasOwn)(c,"textStroke")&&(c.stroke=c.textStroke)}var h=void 0,f=R(e)?l.decal:null;t&&f&&(f.dirty=!0,h=Object(C.createOrUpdatePatternFromDecal)(f,t)),l.__decalPattern=h}D(e)&&(l&&(h=l.__decalPattern)&&(l.decal=h));Object(T.applyUpdateTransition)(e,r,a,{dataIndex:n,isInit:s,clearStyle:!0}),Object(A.applyKeyframeAnimation)(e,r.keyframeAnimation,a)}function z(t,e,n,r,i){var o=e.isGroup?null:e,a=i&&i[t].cfg;if(o){var s=o.ensureState(t);if(!1===r){var u=o.getState(t);u&&(u.style=null)}else s.style=r||null;a&&(s.textConfig=a),Object(c.setDefaultStateProxy)(o)}}function V(t,e,n){var r="normal"===n,i=r?e:$(e,n),o=i?i.z2:null;null!=o&&((r?t:t.ensureState(n)).z2=o||0)}function U(t,e,n,r){var o=t.get("renderItem"),a=t.coordinateSystem,s={};a&&(s=a.prepareCustoms?a.prepareCustoms(a):L[a.type](a));for(var u,l,c=Object(i.defaults)({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:function(t,n){return null==n&&(n=u),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,r){0;null==r&&(r=u);var o=e.getItemVisual(r,"style"),a=o&&o.fill,s=o&&o.opacity,l=w(r,"normal").getItemStyle();null!=a&&(l.fill=a),null!=s&&(l.opacity=s);var c={inheritColor:Object(i.isString)(a)?a:"#000"},d=S(r,"normal"),p=h.createTextStyle(d,null,c,!1,!0);p.text=d.getShallow("show")?Object(i.retrieve2)(t.getFormattedLabel(r,"normal"),Object(f.getDefaultLabel)(e,r)):null;var g=h.createTextConfig(d,c,!1);return T(n,l),l=Object(O.convertToEC4StyleForCustomSerise)(l,p,g),n&&C(l,n),l.legacy=!0,l},ordinalRawValue:function(t,n){null==n&&(n=u),t=t||0;var r=e.getDimensionInfo(t);if(!r){var i=e.getDimensionIndex(t);return i>=0?e.getStore().get(i,n):void 0}var o=e.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,r){0;null==r&&(r=u);var o=w(r,"emphasis").getItemStyle(),a=S(r,"emphasis"),s=h.createTextStyle(a,null,null,!0,!0);s.text=a.getShallow("show")?Object(i.retrieve3)(t.getFormattedLabel(r,"emphasis"),t.getFormattedLabel(r,"normal"),Object(f.getDefaultLabel)(e,r)):null;var l=h.createTextConfig(a,null,!0);return T(n,o),o=Object(O.convertToEC4StyleForCustomSerise)(o,s,l),n&&C(o,n),o.legacy=!0,o},visual:function(t,n){if(null==n&&(n=u),Object(i.hasOwn)(E.STYLE_VISUAL_TYPE,t)){var r=e.getItemVisual(n,"style");return r?r[E.STYLE_VISUAL_TYPE[t]]:null}if(Object(i.hasOwn)(E.NON_STYLE_VISUAL_PROPS,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===a.type){var e=a.getBaseAxis();return Object(d.getLayoutOnAxis)(Object(i.defaults)({axis:e},t))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return h.getFont(t,n)}},s.api||{}),p={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:G(t.getData())},g={},v={},m={},y={},b=0;b<M.length;b++){var _=M[b];m[_]=t.getModel(I[_]),y[_]=t.getModel(j[_])}function x(t){return t===u?l||(l=e.getItemModel(t)):e.getItemModel(t)}function w(t,n){return e.hasItemOption?t===u?g[n]||(g[n]=x(t).getModel(I[n])):x(t).getModel(I[n]):m[n]}function S(t,n){return e.hasItemOption?t===u?v[n]||(v[n]=x(t).getModel(j[n])):x(t).getModel(j[n]):y[n]}return function(t,n){return u=t,l=null,g={},v={},o&&o(Object(i.defaults)({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},p),c)};function C(t,e){for(var n in e)Object(i.hasOwn)(e,n)&&(t[n]=e[n])}function T(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function G(t){var e={};return Object(i.each)(t.dimensions,(function(n){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim;(e[i]=e[i]||[])[r.coordDimIndex]=t.getDimensionIndex(n)}})),e}function H(t,e,n,r,i,o,a){if(r){var s=W(t,e,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&Object(c.toggleHoverEmphasis)(s,r.focus,r.blurScope,r.emphasisDisabled),s}o.remove(e)}function W(t,e,n,r,o,a){var s=-1,u=e;e&&Y(e,r,o)&&(s=Object(i.indexOf)(a.childrenRef(),e),e=null);var l,c,h=!e,f=e;f?f.clearStates():(f=B(r),u&&(l=u,(c=f).copyTransform(l),D(c)&&D(l)&&(c.setStyle(l.style),c.z=l.z,c.z2=l.z2,c.zlevel=l.zlevel,c.invisible=l.invisible,c.ignore=l.ignore,R(c)&&R(l)&&c.setShape(l.shape)))),!1===r.morph?f.disableMorphing=!0:f.disableMorphing&&(f.disableMorphing=!1),P.normal.cfg=P.normal.conOpt=P.emphasis.cfg=P.emphasis.conOpt=P.blur.cfg=P.blur.conOpt=P.select.cfg=P.select.conOpt=null,P.isLegacy=!1,function(t,e,n,r,i,o){if(t.isGroup)return;X(n,null,o),X(n,"emphasis",o);var a=o.normal.conOpt,s=o.emphasis.conOpt,u=o.blur.conOpt,l=o.select.conOpt;if(null!=a||null!=s||null!=l||null!=u){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=B(a),t.setTextContent(c)),F(null,c,e,a,null,r,i);for(var h=a&&a.style,f=0;f<M.length;f++){var d=M[f];if("normal"!==d){var p=o[d].conOpt;z(d,c,0,q(a,p,d),null)}}h?c.dirty():c.markRedraw()}}}(f,n,r,o,h,P),function(t,e,n,r,i){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&Y(a,o,r)&&(a=null),a||(a=B(o),t.setClipPath(a)),F(null,a,e,o,null,r,i)}}(f,n,r,o,h),F(t,f,n,r,P,o,h),Object(i.hasOwn)(r,"info")&&(Object(E.customInnerStore)(f).info=r.info);for(var d=0;d<M.length;d++){var g=M[d];if("normal"!==g){var v=$(r,g);z(g,f,0,q(r,v,g),P)}}return function(t,e,n){if(!t.isGroup){var r=t,i=n.currentZ,o=n.currentZLevel;r.z=i,r.zlevel=o;var a=e.z2;null!=a&&(r.z2=a||0);for(var s=0;s<M.length;s++)V(r,e,M[s])}}(f,r,o),"group"===r.type&&function(t,e,n,r,i){var o=r.children,a=o?o.length:0,s=r.$mergeChildren,u="byName"===s||r.diffChildrenByName,l=!1===s;if(!a&&!u&&!l)return;if(u)return c={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:e},void new p.default(c.oldChildren,c.newChildren,K,K,c).add(Q).update(Q).remove(J).execute();var c;l&&e.removeAll();for(var h=0;h<a;h++){var f=o[h],d=e.childAt(h);f?(null==f.ignore&&(f.ignore=!1),W(t,d,n,f,i,e)):d.ignore=!0}for(var g=e.childCount()-1;g>=h;g--){var v=e.childAt(g);Z(e,v,i)}}(t,f,n,r,o),s>=0?a.replaceAt(f,s):a.add(f),f}function Y(t,e,n){var r,o=Object(E.customInnerStore)(t),a=e.type,s=e.shape,u=e.style;return n.isUniversalTransitionEnabled()||null!=a&&a!==o.customGraphicType||"path"===a&&((r=s)&&(Object(i.hasOwn)(r,"pathData")||Object(i.hasOwn)(r,"d")))&&tt(s)!==o.customPathData||"image"===a&&Object(i.hasOwn)(u,"image")&&u.image!==o.customImagePath}function X(t,e,n){var r=e?$(t,e):t,i=e?q(t,r,"emphasis"):t.style,o=t.type,a=r?r.textConfig:null,s=t.textContent,u=s?e?$(s,e):s:null;if(i&&(n.isLegacy||Object(O.isEC4CompatibleStyle)(i,o,!!a,!!u))){n.isLegacy=!0;var l=Object(O.convertFromEC4CompatibleStyle)(i,o,!e);!a&&l.textConfig&&(a=l.textConfig),!u&&l.textContent&&(u=l.textContent)}if(!e&&u){var c=u;!c.type&&(c.type="text")}var h=e?n[e]:n.normal;h.cfg=a,h.conOpt=u}function $(t,e){return e?t?t[e]:null:t}function q(t,e,n){var r=e&&e.style;return null==r&&"emphasis"===n&&t&&(r=t.styleEmphasis),r}function Z(t,e,n){e&&Object(T.applyLeaveTransition)(e,Object(E.customInnerStore)(t).option,n)}function K(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function Q(t,e){var n=this.context,r=null!=t?n.newChildren[t]:null,i=null!=e?n.oldChildren[e]:null;W(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function J(t){var e=this.context,n=e.oldChildren[t];n&&Object(T.applyLeaveTransition)(n,Object(E.customInnerStore)(n).option,e.seriesModel)}function tt(t){return t&&(t.pathData||t.d)}e.default=N},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(0);function i(t,e){return e=e||[0,0],r.map(["x","y"],(function(n,r){var i=this.getAxis(n),o=e[r],a=t[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))}),this)}function o(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:r.bind(i,t)}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(0);function i(t,e){return e=e||[0,0],r.map([0,1],(function(n){var r=e[n],i=t[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function o(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:r.bind(i,t)}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(0);function i(t,e){var n=this.getAxis(),r=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function o(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Object(r.bind)(i,t)}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(0);function i(t,e){return e=e||[0,0],r.map(["Radius","Angle"],(function(n,r){var i=this["get"+n+"Axis"](),o=e[r],a=t[r]/2,s="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}function o(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),o=e.getExtent();return o[0]>o[1]&&o.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:o[1],r0:o[0]},api:{coord:function(r){var i=e.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=t.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a},size:r.bind(i,t)}}}},function(t,e,n){"use strict";function r(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(482),o=n(169),a=n(338),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var s=n.axis,c=s.grid,h=r.get("type"),f=u(c,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(e,!0));if(h&&"none"!==h){var p=o.buildElStyle(r),g=l[h](s,d,f);g.style=p,t.graphicKey=g.type,t.pointer=g}var v=a.layout(c.model,n);o.buildCartesianSingleLabelElOption(e,t,v,n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=a.layout(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=o.getTransformedPosition(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=u(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,c=[t.x,t.y];c[l]+=e[l],c[l]=Math.min(a[1],c[l]),c[l]=Math.max(a[0],c[l]);var h=(s[1]+s[0])/2,f=[h,h];f[l]=c[l];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:f,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(i.default);function u(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var l={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:o.makeLineShape([e,n[0]],[e,n[1]],c(t))}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:o.makeRectShape([e-r/2,n[0]],[r,i],c(t))}}};function c(t){return"x"===t.dim?0:1}e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(5),i=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(n(41).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(440),o=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),o=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";i.register("axisPointer",n,(function(t,e,n){"none"!==o&&("leave"===t||o.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){i.unregister("axisPointer",e)},e.prototype.dispose=function(t,e){i.unregister("axisPointer",e)},e.type="axisPointer",e}(n(70).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var r=n(9),i=n(358),o=n(723),a=n(0),s=Object(r.makeInner)();function u(t,e,n){var r=t.currTrigger,i=[t.x,t.y],u=t,p=t.dispatchAction||Object(a.bind)(n.dispatchAction,n),g=e.getComponent("axisPointer").coordSysAxesInfo;if(g){d(i)&&(i=Object(o.default)({seriesIndex:u.seriesIndex,dataIndex:u.dataIndex},e).point);var v=d(i),m=u.axesInfo,y=g.axesInfo,b="leave"===r||d(i),_={},x={},w={list:[],map:{}},O={showPointer:Object(a.curry)(c,x),showTooltip:Object(a.curry)(h,w)};Object(a.each)(g.coordSysMap,(function(t,e){var n=v||t.containPoint(i);Object(a.each)(g.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}(m,t);if(!b&&n&&(!m||o)){var a=o&&o.value;null!=a||v||(a=r.pointToData(i)),null!=a&&l(t,a,O,!1,_)}}))}));var S={};return Object(a.each)(y,(function(t,e){var n=t.linkGroup;n&&!x[e]&&Object(a.each)(n.axesInfo,(function(e,r){var i=x[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,f(e),f(t)))),S[t.key]=o}}))})),Object(a.each)(S,(function(t,e){l(y[e],t,O,!0,_)})),function(t,e,n){var r=n.axesInfo=[];Object(a.each)(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}(x,y,_),function(t,e,n,r){if(d(e)||!t.list.length)return void r({type:"hideTip"});var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}(w,i,t,p),function(t,e,n){var r=n.getZr(),i=s(r).axisPointerLastHighlights||{},o=s(r).axisPointerLastHighlights={};Object(a.each)(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&Object(a.each)(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t}))}));var u=[],l=[];Object(a.each)(i,(function(t,e){!o[e]&&l.push(t)})),Object(a.each)(o,(function(t,e){!i[e]&&u.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),u.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:u})}(y,0,n),_}}function l(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var s=function(t,e){var n=e.axis,r=n.dim,i=t,o=[],s=Number.MAX_VALUE,u=-1;return Object(a.each)(e.seriesModels,(function(e,l){var c,h,f=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(f,t,n);h=d.dataIndices,c=d.nestestValue}else{if(!(h=e.getData().indicesOfNearest(f[0],t,"category"===n.type?.5:null)).length)return;c=e.getData().get(f[0],h[0])}if(null!=c&&isFinite(c)){var p=t-c,g=Math.abs(p);g<=s&&((g<s||p>=0&&u<0)&&(s=g,u=p,i=c,o.length=0),Object(a.each)(h,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}(e,t),u=s.payloadBatch,l=s.snapToValue;u[0]&&null==i.seriesIndex&&Object(a.extend)(i,u[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,u),n.showTooltip(t,s,l)}else n.showPointer(t,e)}function c(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function h(t,e,n,r){var o=n.payloadBatch,a=e.axis,s=a.model,u=e.axisPointerModel;if(e.triggerTooltip&&o.length){var l=e.coordSys.model,c=i.makeKey(l),h=t.map[c];h||(h=t.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:r,valueLabelOpt:{precision:u.get(["label","precision"]),formatter:u.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function f(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function d(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(482),o=n(12),a=n(169),s=n(42),u=n(186),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var l=n.axis;"angle"===l.dim&&(this.animationThreshold=Math.PI/18);var h=l.polar,f=h.getOtherAxis(l).getExtent(),d=l.dataToCoord(e),p=r.get("type");if(p&&"none"!==p){var g=a.buildElStyle(r),v=c[p](l,h,d,f);v.style=g,t.graphicKey=v.type,t.pointer=v}var m=function(t,e,n,r,i){var a=e.axis,l=a.dataToCoord(t),c=r.getAngleAxis().getExtent()[0];c=c/180*Math.PI;var h,f,d,p=r.getRadiusAxis().getExtent();if("radius"===a.dim){var g=s.create();s.rotate(g,g,c),s.translate(g,g,[r.cx,r.cy]),h=o.applyTransform([l,-i],g);var v=e.getModel("axisLabel").get("rotate")||0,m=u.default.innerTextLayout(c,v*Math.PI/180,-1);f=m.textAlign,d=m.textVerticalAlign}else{var y=p[1];h=r.coordToPoint([y+i,l]);var b=r.cx,_=r.cy;f=Math.abs(h[0]-b)/y<.3?"center":h[0]>b?"left":"right",d=Math.abs(h[1]-_)/y<.3?"middle":h[1]>_?"top":"bottom"}return{position:h,align:f,verticalAlign:d}}(e,n,0,h,r.get(["label","margin"]));a.buildLabelElOption(t,n,r,i,m)},e}(i.default);var c={line:function(t,e,n,r){return"angle"===t.dim?{type:"Line",shape:a.makeLineShape(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r){var i=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:a.makeSectorShape(e.cx,e.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:a.makeSectorShape(e.cx,e.cy,n-i/2,n+i/2,0,2*Math.PI)}}};e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(895),o=n(6),a=n(85),s=n(9);function u(t,e){var n=this,i=n.getAngleAxis(),o=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();r.each(Object(a.getDataDimensionsOnAxis)(e,"radius"),(function(t){o.scale.unionExtentFromData(e,t)})),r.each(Object(a.getDataDimensionsOnAxis)(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),Object(a.niceScaleExtent)(i.scale,i.model),Object(a.niceScaleExtent)(o.scale,o.model),"category"===i.type&&!i.onBand){var s=i.getExtent(),u=360/i.scale.count();i.inverse?s[1]+=u:s[1]-=u,i.setExtent(s[0],s[1])}}function l(t,e){if(t.type=e.get("type"),t.scale=Object(a.createScaleByModel)(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var c={dimensions:i.polarDimensions,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,a){var s=new i.default(a+"");s.update=u;var c=s.getRadiusAxis(),h=s.getAngleAxis(),f=t.findAxisModel("radiusAxis"),d=t.findAxisModel("angleAxis");l(c,f),l(h,d),function(t,e,n){var i=e.get("center"),a=n.getWidth(),s=n.getHeight();t.cx=Object(o.parsePercent)(i[0],a),t.cy=Object(o.parsePercent)(i[1],s);var u=t.getRadiusAxis(),l=Math.min(a,s)/2,c=e.get("radius");null==c?c=[0,"100%"]:r.isArray(c)||(c=[0,c]);var h=[Object(o.parsePercent)(c[0],l),Object(o.parsePercent)(c[1],l)];u.inverse?u.setExtent(h[1],h[0]):u.setExtent(h[0],h[1])}(s,t,e),n.push(s),t.coordinateSystem=s,s.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",s.SINGLE_REFERRING).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}};e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(164),o=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return Object(r.__extends)(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(i.default);o.prototype.dataToRadius=i.default.prototype.dataToCoord,o.prototype.radiusToData=i.default.prototype.coordToData,e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(60),o=n(164),a=n(9),s=Object(a.makeInner)(),u=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return Object(r.__extends)(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this.getLabelModel(),e=this.scale,n=e.getExtent(),r=e.count();if(n[1]-n[0]<1)return 0;var o=n[0],a=this.dataToCoord(o+1)-this.dataToCoord(o),u=Math.abs(a),l=i.getBoundingRect(null==o?"":o+"",t.getFont(),"center","top"),c=Math.max(l.height,7)/u;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),f=s(this.model),d=f.lastAutoInterval,p=f.lastTickCount;return null!=d&&null!=p&&Math.abs(d-h)<=1&&Math.abs(p-r)<=1&&d>h?h=d:(f.lastTickCount=r,f.lastAutoInterval=h),h},e}(o.default);u.prototype.dataToAngle=o.default.prototype.dataToCoord,u.prototype.angleToData=o.default.prototype.coordToData,e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(5),i=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(n(41).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(250),a=n(475),s=n(157),u=n(12),l=n(72),c=n(190),h=n(27),f=n(64),d=n(221),p=n(186),g=n(31),v=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function m(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var r=t.coordToPoint([e[0],n]),i=t.coordToPoint([e[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function y(t){return t.getRadiusAxis().inverse?0:1}function b(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var _=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,o=r.getRadiusAxis().getExtent(),a=n.getTicksCoords(),s=n.getMinorTicksCoords(),u=i.map(n.getViewLabels(),(function(t){t=i.clone(t);var e=n.scale,r="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(r),t}));b(u),b(a),i.each(v,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||x[e](this.group,t,r,a,s,o,u)}),this)}},e.type="angleAxis",e}(d.default),x={axisLine:function(t,e,n,r,i,s){var u,l=e.getModel(["axisLine","lineStyle"]),c=y(n),h=c?0:1;(u=0===s[h]?new o.default({shape:{cx:n.cx,cy:n.cy,r:s[c]},style:l.getLineStyle(),z2:1,silent:!0}):new a.default({shape:{cx:n.cx,cy:n.cy,r:s[c],r0:s[h]},style:l.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(u)},axisTick:function(t,e,n,r,o,a){var l=e.getModel("axisTick"),c=(l.get("inside")?-1:1)*l.get("length"),h=a[y(n)],f=i.map(r,(function(t){return new s.default({shape:m(n,[h,h+c],t.coord)})}));t.add(u.mergePath(f,{style:i.defaults(l.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,o,a){if(o.length){for(var l=e.getModel("axisTick"),c=e.getModel("minorTick"),h=(l.get("inside")?-1:1)*c.get("length"),f=a[y(n)],d=[],p=0;p<o.length;p++)for(var g=0;g<o[p].length;g++)d.push(new s.default({shape:m(n,[f,f+h],o[p][g].coord)}));t.add(u.mergePath(d,{style:i.defaults(c.getModel("lineStyle").getLineStyle(),i.defaults(l.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,r,o,a,s){var u=e.getCategories(!0),c=e.getModel("axisLabel"),d=c.get("margin"),v=e.get("triggerEvent");i.each(s,(function(r,o){var s=c,m=r.tickValue,b=a[y(n)],_=n.coordToPoint([b+d,r.coord]),x=n.cx,w=n.cy,O=Math.abs(_[0]-x)/b<.3?"center":_[0]>x?"left":"right",S=Math.abs(_[1]-w)/b<.3?"middle":_[1]>w?"top":"bottom";if(u&&u[m]){var C=u[m];i.isObject(C)&&C.textStyle&&(s=new f.default(C.textStyle,c,c.ecModel))}var E=new l.default({silent:p.default.isLabelSilent(e),style:Object(h.createTextStyle)(s,{x:_[0],y:_[1],fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:O,verticalAlign:S})});if(t.add(E),v){var T=p.default.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=r.rawLabel,Object(g.getECData)(E).eventData=T}}),this)},splitLine:function(t,e,n,r,o,a){var l=e.getModel("splitLine").getModel("lineStyle"),c=l.get("color"),h=0;c=c instanceof Array?c:[c];for(var f=[],d=0;d<r.length;d++){var p=h++%c.length;f[p]=f[p]||[],f[p].push(new s.default({shape:m(n,a,r[d].coord)}))}for(d=0;d<f.length;d++)t.add(u.mergePath(f[d],{style:i.defaults({stroke:c[d%c.length]},l.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),l=[],c=0;c<i.length;c++)for(var h=0;h<i[c].length;h++)l.push(new s.default({shape:m(n,o,i[c][h].coord)}));t.add(u.mergePath(l,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,r,o,a){if(r.length){var s=e.getModel("splitArea").getModel("areaStyle"),l=s.get("color"),h=0;l=l instanceof Array?l:[l];for(var f=[],d=Math.PI/180,p=-r[0].coord*d,g=Math.min(a[0],a[1]),v=Math.max(a[0],a[1]),m=e.get("clockwise"),y=1,b=r.length;y<=b;y++){var _=y===b?r[0].coord:r[y].coord,x=h++%l.length;f[x]=f[x]||[],f[x].push(new c.default({shape:{cx:n.cx,cy:n.cy,r0:g,r:v,startAngle:p,endAngle:-_*d,clockwise:m},silent:!0})),p=-_*d}for(y=0;y<f.length;y++)t.add(u.mergePath(f[y],{style:i.defaults({fill:l[y%l.length]},s.getAreaStyle()),silent:!0}))}}};e.default=_},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(40),a=n(12),s=n(250),u=n(190),l=n(186),c=n(221),h=["axisLine","axisTickLabel","axisName"],f=["splitLine","splitArea","minorSplitLine"],d=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,r=this._axisGroup=new o.default;this.group.add(r);var s=t.axis,u=s.polar,c=u.getAngleAxis(),d=s.getTicksCoords(),g=s.getMinorTicksCoords(),v=c.getExtent()[0],m=s.getExtent(),y=function(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}(u,t,v),b=new l.default(t,y);i.each(h,b.add,b),r.add(b.getGroup()),a.groupTransition(n,r,t),i.each(f,(function(e){t.get([e,"show"])&&!s.scale.isBlank()&&p[e](this.group,t,u,v,m,d,g)}),this)}},e.type="radiusAxis",e}(c.default),p={splitLine:function(t,e,n,r,o,u){var l=e.getModel("splitLine").getModel("lineStyle"),c=l.get("color"),h=0;c=c instanceof Array?c:[c];for(var f=[],d=0;d<u.length;d++){var p=h++%c.length;f[p]=f[p]||[],f[p].push(new s.default({shape:{cx:n.cx,cy:n.cy,r:Math.max(u[d].coord,0)}}))}for(d=0;d<f.length;d++)t.add(a.mergePath(f[d],{style:i.defaults({stroke:c[d%c.length],fill:null},l.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,r,o,u,l){if(l.length){for(var c=e.getModel("minorSplitLine").getModel("lineStyle"),h=[],f=0;f<l.length;f++)for(var d=0;d<l[f].length;d++)h.push(new s.default({shape:{cx:n.cx,cy:n.cy,r:l[f][d].coord}}));t.add(a.mergePath(h,{style:i.defaults({fill:null},c.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,r,o,s){if(s.length){var l=e.getModel("splitArea").getModel("areaStyle"),c=l.get("color"),h=0;c=c instanceof Array?c:[c];for(var f=[],d=s[0].coord,p=1;p<s.length;p++){var g=h++%c.length;f[g]=f[g]||[],f[g].push(new u.default({shape:{cx:n.cx,cy:n.cy,r0:d,r:s[p].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=s[p].coord}for(p=0;p<f.length;p++)t.add(a.mergePath(f[p],{style:i.defaults({fill:c[p%c.length]},l.getAreaStyle()),silent:!0}))}}};e.default=d},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(6),o=n(147);function a(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function s(t,e){return e.dim+t.model.componentIndex}e.default=function(t,e,n){var u={},l=function(t){var e={};r.each(t,(function(t,n){var r=t.getData(),o=t.coordinateSystem,u=o.getBaseAxis(),l=s(o,u),c=u.getExtent(),h="category"===u.type?u.getBandWidth():Math.abs(c[1]-c[0])/r.count(),f=e[l]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;e[l]=f;var p=a(t);d[p]||f.autoWidthCount++,d[p]=d[p]||{width:0,maxWidth:0};var g=Object(i.parsePercent)(t.get("barWidth"),h),v=Object(i.parsePercent)(t.get("barMaxWidth"),h),m=t.get("barGap"),y=t.get("barCategoryGap");g&&!d[p].width&&(g=Math.min(f.remainedWidth,g),d[p].width=g,f.remainedWidth-=g),v&&(d[p].maxWidth=v),null!=m&&(f.gap=m),null!=y&&(f.categoryGap=y)}));var n={};return r.each(e,(function(t,e){n[e]={};var o=t.stacks,a=t.bandWidth,s=Object(i.parsePercent)(t.categoryGap,a),u=Object(i.parsePercent)(t.gap,1),l=t.remainedWidth,c=t.autoWidthCount,h=(l-s)/(c+(c-1)*u);h=Math.max(h,0),r.each(o,(function(t,e){var n=t.maxWidth;n&&n<h&&(n=Math.min(n,l),t.width&&(n=Math.min(n,t.width)),l-=n,t.width=n,c--)})),h=(l-s)/(c+(c-1)*u),h=Math.max(h,0);var f,d=0;r.each(o,(function(t,e){t.width||(t.width=h),f=t,d+=t.width*(1+u)})),f&&(d-=f.width*u);var p=-d/2;r.each(o,(function(t,r){n[e][r]=n[e][r]||{offset:p,width:t.width},p+=t.width*(1+u)}))})),n}(r.filter(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=s(n,r),c=a(t),h=l[i][c],f=h.offset,d=h.width,p=n.getOtherAxis(r),g=t.coordinateSystem.cx,v=t.coordinateSystem.cy,m=t.get("barMinHeight")||0,y=t.get("barMinAngle")||0;u[c]=u[c]||[];for(var b=e.mapDimension(p.dim),_=e.mapDimension(r.dim),x=Object(o.isDimensionStacked)(e,b),w="radius"!==r.dim||!t.get("roundCap",!0),O=p.dataToCoord(0),S=0,C=e.count();S<C;S++){var E=e.get(b,S),T=e.get(_,S),A=E>=0?"p":"n",M=O;x&&(u[c][T]||(u[c][T]={p:O,n:O}),M=u[c][T][A]);var I=void 0,j=void 0,k=void 0,P=void 0;if("radius"===p.dim){var L=p.dataToCoord(E)-O,R=r.dataToCoord(T);Math.abs(L)<m&&(L=(L<0?-1:1)*m),I=M,j=M+L,P=(k=R-f)-d,x&&(u[c][T][A]=j)}else{var D=p.dataToCoord(E,w)-O,N=r.dataToCoord(T);Math.abs(D)<y&&(D=(D<0?-1:1)*y),j=(I=N+f)+d,k=M,P=M+D,x&&(u[c][T][A]=P)}e.setItemLayout(S,{cx:g,cy:v,r0:I,r:j,startAngle:-k*Math.PI/180,endAngle:-P*Math.PI/180,clockwise:k>=P})}}}))}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(482),o=n(169),a=n(576),s=["x","y"],u=["width","height"],l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var s=n.axis,u=s.coordinateSystem,l=f(u,1-h(s)),d=u.dataToPoint(e)[0],p=r.get("type");if(p&&"none"!==p){var g=o.buildElStyle(r),v=c[p](s,d,l);v.style=g,t.graphicKey=v.type,t.pointer=v}var m=a.layout(n);o.buildCartesianSingleLabelElOption(e,t,m,n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=a.layout(e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=o.getTransformedPosition(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.coordinateSystem,a=h(i),s=f(o,a),u=[t.x,t.y];u[a]+=e[a],u[a]=Math.min(s[1],u[a]),u[a]=Math.max(s[0],u[a]);var l=f(o,1-a),c=(l[1]+l[0])/2,d=[c,c];return d[a]=u[a],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},e}(i.default),c={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:o.makeLineShape([e,n[0]],[e,n[1]],h(t))}},shadow:function(t,e,n){var r=t.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:o.makeRectShape([e-r/2,n[0]],[r,i],h(t))}}};function h(t){return t.isHorizontal()?0:1}function f(t,e){var n=t.getRect();return[n[s[e]],n[s[e]]+n[u[e]]]}e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(186),a=n(40),s=n(12),u=n(157),l=n(576),c=n(221),h=n(517),f=["axisLine","axisTickLabel","axisName"],d=["splitArea","splitLine"],p=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return Object(r.__extends)(e,t),e.prototype.render=function(e,n,r,u){var c=this.group;c.removeAll();var h=this._axisGroup;this._axisGroup=new a.default;var p=l.layout(e),v=new o.default(e,p);i.each(f,v.add,v),c.add(this._axisGroup),c.add(v.getGroup()),i.each(d,(function(t){e.get([t,"show"])&&g[t](this,this.group,this._axisGroup,e)}),this),s.groupTransition(h,this._axisGroup,e),t.prototype.render.call(this,e,n,r,u)},e.prototype.remove=function(){Object(h.rectCoordAxisHandleRemove)(this)},e.type="singleAxis",e}(c.default),g={splitLine:function(t,e,n,r){var o=r.axis;if(!o.scale.isBlank()){var a=r.getModel("splitLine"),l=a.getModel("lineStyle"),c=l.get("color");c=c instanceof Array?c:[c];for(var h=l.get("width"),f=r.coordinateSystem.getRect(),d=o.isHorizontal(),p=[],g=0,v=o.getTicksCoords({tickModel:a}),m=[],y=[],b=0;b<v.length;++b){var _=o.toGlobalCoord(v[b].coord);d?(m[0]=_,m[1]=f.y,y[0]=_,y[1]=f.y+f.height):(m[0]=f.x,m[1]=_,y[0]=f.x+f.width,y[1]=_);var x=new u.default({shape:{x1:m[0],y1:m[1],x2:y[0],y2:y[1]},silent:!0});s.subPixelOptimizeLine(x.shape,h);var w=g++%c.length;p[w]=p[w]||[],p[w].push(x)}var O=l.getLineStyle(["color"]);for(b=0;b<p.length;++b)e.add(s.mergePath(p[b],{style:i.defaults({stroke:c[b%c.length]},O),silent:!0}))}},splitArea:function(t,e,n,r){Object(h.rectCoordAxisBuildSplitArea)(t,n,r,r)}};e.default=p},function(t,e,n){"use strict";n.r(e);var r=n(897),i=n(9);var o={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,o){var a=new r.default(i,t,e);a.name="single_"+o,a.resize(i,e),i.coordinateSystem=a,n.push(a)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",i.SINGLE_REFERRING).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n},dimensions:r.singleDimensions};e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(5),i=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.type=i||"value",a.position=o||"bottom",a}return Object(r.__extends)(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(n(164).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(41),a=n(33),s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.init=function(e,n,r){var i=Object(a.getLayoutParams)(e);t.prototype.init.apply(this,arguments),u(e,i)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),u(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(o.default);function u(t,e){var n,r=t.cellSize;1===(n=i.isArray(r)?r:t.cellSize=[r,r]).length&&(n[1]=n[0]);var o=i.map([0,1],(function(t){return Object(a.sizeCalculable)(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));Object(a.mergeLayoutParam)(t,e,{type:"box",ignoreSize:o})}e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(79),a=n(191),s=n(72),u=n(27),l=n(71),c=n(6),h=n(70),f=n(267),d=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n){var r=this.group;r.removeAll();var i=t.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,r),this._renderLines(t,o,a,r),this._renderYearText(t,o,a,r),this._renderMonthText(t,s,a,r),this._renderWeekText(t,s,o,a,r)},e.prototype._renderDayRect=function(t,e,n){for(var r=t.coordinateSystem,i=t.getModel("itemStyle").getItemStyle(),a=r.getCellWidth(),s=r.getCellHeight(),u=e.start.time;u<=e.end.time;u=r.getNextNDay(u,1).time){var l=r.dataToRect([u],!1).tl,c=new o.default({shape:{x:l[0],y:l[1],width:a,height:s},cursor:"default",style:i});n.add(c)}},e.prototype._renderLines=function(t,e,n,r){var i=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),u=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var l=e.start,c=0;l.time<=e.end.time;c++){f(l.formatedDate),0===c&&(l=o.getDateInfo(e.start.y+"-"+e.start.m));var h=l.date;h.setMonth(h.getMonth()+1),l=o.getDateInfo(h)}function f(e){i._firstDayOfMonth.push(o.getDateInfo(e)),i._firstDayPoints.push(o.dataToRect([e],!1).tl);var u=i._getLinePointsOfOneWeek(t,e,n);i._tlpoints.push(u[0]),i._blpoints.push(u[u.length-1]),s&&i._drawSplitline(u,a,r)}f(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,u,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,u,n),a,r)},e.prototype._getEdgesPoints=function(t,e,n){var r=[t[0].slice(),t[t.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-e/2,r[1][i]=r[1][i]+e/2,r},e.prototype._drawSplitline=function(t,e,n){var r=new a.default({z2:20,shape:{points:t},style:e});n.add(r)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var r=t.coordinateSystem,i=r.getDateInfo(e),o=[],a=0;a<7;a++){var s=r.getNextNDay(i.time,a),u=r.dataToRect([s.time],!1);o[2*s.day]=u.tl,o[2*s.day+1]=u["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return Object(i.isString)(t)&&t?Object(l.formatTplSimple)(t,e):Object(i.isFunction)(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,r,i){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===r?(a+=i,s=["center","top"]):"left"===r?o-=i:"right"===r?(o+=i,s=["center","top"]):a-=i;var u=0;return"left"!==r&&"right"!==r||(u=Math.PI/2),{rotation:u,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,r){var i=t.getModel("yearLabel");if(i.get("show")){var o=i.get("margin"),a=i.get("position");a||(a="horizontal"!==n?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(l[0][0]+l[1][0])/2,h=(l[0][1]+l[1][1])/2,f="horizontal"===n?0:1,d={top:[c,l[f][1]],bottom:[c,l[1-f][1]],left:[l[1-f][0],h],right:[l[f][0],h]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var g=i.get("formatter"),v={start:e.start.y,end:e.end.y,nameMap:p},m=this._formatterLabel(g,v),y=new s.default({z2:30,style:Object(u.createTextStyle)(i,{text:m})});y.attr(this._yearTextPositionControl(y,d[a],n,a,o)),r.add(y)}},e.prototype._monthTextPositionControl=function(t,e,n,r,i){var o="left",a="top",s=t[0],u=t[1];return"horizontal"===n?(u+=i,e&&(o="center"),"start"===r&&(a="bottom")):(s+=i,e&&(a="middle"),"start"===r&&(o="right")),{x:s,y:u,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,r){var o=t.getModel("monthLabel");if(o.get("show")){var a=o.get("nameMap"),l=o.get("margin"),c=o.get("position"),h=o.get("align"),d=[this._tlpoints,this._blpoints];a&&!Object(i.isString)(a)||(a&&(e=Object(f.getLocaleModel)(a)||e),a=e.get(["time","monthAbbr"])||[]);var p="start"===c?0:1,g="horizontal"===n?0:1;l="start"===c?-l:l;for(var v="center"===h,m=0;m<d[p].length-1;m++){var y=d[p][m].slice(),b=this._firstDayOfMonth[m];if(v){var _=this._firstDayPoints[m];y[g]=(_[g]+d[0][m+1][g])/2}var x=o.get("formatter"),w=a[+b.m-1],O={yyyy:b.y,yy:(b.y+"").slice(2),MM:b.m,M:+b.m,nameMap:w},S=this._formatterLabel(x,O),C=new s.default({z2:30,style:Object(i.extend)(Object(u.createTextStyle)(o,{text:S}),this._monthTextPositionControl(y,v,n,c,l))});r.add(C)}}},e.prototype._weekTextPositionControl=function(t,e,n,r,i){var o="center",a="middle",s=t[0],u=t[1],l="start"===n;return"horizontal"===e?(s=s+r+(l?1:-1)*i[0]/2,o=l?"right":"left"):(u=u+r+(l?1:-1)*i[1]/2,a=l?"bottom":"top"),{x:s,y:u,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,r,o){var a=t.getModel("dayLabel");if(a.get("show")){var l=t.coordinateSystem,h=a.get("position"),d=a.get("nameMap"),p=a.get("margin"),g=l.getFirstDayOfWeek();if(!d||Object(i.isString)(d))d&&(e=Object(f.getLocaleModel)(d)||e),d=e.get(["time","dayOfWeekShort"])||Object(i.map)(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}));var v=l.getNextNDay(n.end.time,7-n.lweek).time,m=[l.getCellWidth(),l.getCellHeight()];p=Object(c.parsePercent)(p,Math.min(m[1],m[0])),"start"===h&&(v=l.getNextNDay(n.start.time,-(7+n.fweek)).time,p=-p);for(var y=0;y<7;y++){var b,_=l.getNextNDay(v,y),x=l.dataToRect([_.time],!1).center;b=Math.abs((y+g)%7);var w=new s.default({z2:30,style:Object(i.extend)(Object(u.createTextStyle)(a,{text:d[b]}),this._weekTextPositionControl(x,r,h,p,m))});o.add(w)}}},e.type="calendar",e}(h.default);e.default=d},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(33),o=n(6),a=function(){function t(e,n,r){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){var e=(t=o.parseDate(t)).getFullYear(),n=t.getMonth()+1,r=n<10?"0"+n:""+n,i=t.getDate(),a=i<10?"0"+i:""+i,s=t.getDay();return{y:e+"",m:r,d:a,day:s=Math.abs((s+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+r+"-"+a,date:t}},t.prototype.getNextNDay=function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},t.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,o=["width","height"],a=this._model.getCellSize().slice(),s=this._model.getBoxLayoutParams(),u="horizontal"===this._orient?[n,7]:[7,n];r.each([0,1],(function(t){h(a,t)&&(s[o[t]]=a[t]*u[t])}));var l={width:e.getWidth(),height:e.getHeight()},c=this._rect=i.getLayoutRect(s,l);function h(t,e){return null!=t[e]&&"auto"!==t[e]}r.each([0,1],(function(t){h(a,t)||(a[t]=c[o[t]]/u[t])})),this._sw=a[0],this._sh=a[1]},t.prototype.dataToPoint=function(t,e){r.isArray(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,o=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+864e5))return[NaN,NaN];var a=n.day,s=this._getRangeInfo([i.start.time,o]).nthWeek;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,r):this._getDateByWeeksAndDay(e,n-1,r)},t.prototype.convertToPixel=function(t,e,n){var r=s(e);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=s(e);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(r.isArray(e)&&1===e.length&&(e=e[0]),r.isArray(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),o=i.date;o.setMonth(o.getMonth()+1);var a=this.getNextNDay(o,-1);t=[i.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var r=Math.floor(n[1].time/864e5)-Math.floor(n[0].time/864e5)+1,i=new Date(n[0].time),o=i.getDate(),a=n[1].date.getDate();i.setDate(o+r-1);var s=i.getDate();if(s!==a)for(var u=i.getTime()-n[1].time>0?1:-1;(s=i.getDate())!==a&&(i.getTime()-n[1].time)*u>0;)r-=u,i.setDate(s-u);var l=Math.floor((r+n[0].day+6)/7),c=e?1-l:l-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:l,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var r=this._getRangeInfo(n);if(t>r.weeks||0===t&&e<r.fweek||t===r.weeks&&e>r.lweek)return null;var i=7*(t-1)-r.fweek+e,o=new Date(r.start.time);return o.setDate(+r.start.d+i),this.getDateInfo(o)},t.create=function(e,n){var r=[];return e.eachComponent("calendar",(function(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("calendarIndex")||0])})),r},t.dimensions=["time","value"],t}();function s(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"setKeyInfoToNewElOption",(function(){return u})),n.d(e,"GraphicComponentModel",(function(){return d}));var r=n(5),i=n(0),o=n(9),a=n(41),s=n(33);function u(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function l(t,e){var n;return i.each(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var c=["transition","enterFrom","leaveTo"],h=c.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function f(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var r=n?c:h,i=0;i<r.length;i++){var o=r[i];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}var d=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return Object(r.__extends)(e,t),e.prototype.mergeOption=function(e,n){var r=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=r},e.prototype.optionUpdated=function(t,e){var n=this.option,r=(e?n:t).elements,a=n.elements=e?[]:n.elements,c=[];this._flatten(r,c,null);var h=o.mappingToExists(a,c,"normalMerge"),d=this._elOptionsToUpdate=[];i.each(h,(function(t,e){var n=t.newOption;n&&(d.push(n),u(t,n),function(t,e,n){var r=i.extend({},n),o=t[e],a=n.$action||"merge";"merge"===a?o?(i.merge(o,r,!0),Object(s.mergeLayoutParam)(o,r,{ignoreSize:!0}),Object(s.copyLayoutParams)(n,o),f(n,o),f(n,o,"shape"),f(n,o,"style"),f(n,o,"extra"),n.clipPath=o.clipPath):t[e]=r:"replace"===a?t[e]=r:"remove"===a&&o&&(t[e]=null)}(a,e,n),function(t,e){if(t&&(t.hv=e.hv=[l(e,["left","right"]),l(e,["top","bottom"])],"group"===t.type)){var n=t,r=e;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}(a[e],n))}),this),n.elements=i.filter(a,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){i.each(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var r=t.children;r&&r.length&&this._flatten(r,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(a.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"inner",(function(){return _})),n.d(e,"GraphicComponentView",(function(){return x}));var r=n(5),i=n(0),o=n(106),a=n(9),s=n(40),u=n(114),l=n(72),c=n(12),h=n(33),f=n(6),d=n(70),p=n(31),g=n(402),v=n(235),m=n(23),y=n(439),b={path:null,compoundPath:null,group:s.default,image:u.default,text:l.default},_=a.makeInner(),x=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.init=function(){this._elMap=i.createHashMap()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,r=this.group,o=t.get("z"),s=t.get("zlevel");i.each(e,(function(e){var u=a.convertOptionIdName(e.id,null),f=null!=u?n.get(u):null,d=a.convertOptionIdName(e.parentId,null),m=null!=d?n.get(d):r,b=e.type,x=e.style;"text"===b&&x&&e.hv&&e.hv[1]&&(x.textVerticalAlign=x.textBaseline=x.verticalAlign=x.align=null);var E=e.textContent,T=e.textConfig;if(x&&Object(g.isEC4CompatibleStyle)(x,b,!!T,!!E)){var A=Object(g.convertFromEC4CompatibleStyle)(x,b,!0);!T&&A.textConfig&&(T=e.textConfig=A.textConfig),!E&&A.textContent&&(E=A.textContent)}var M=function(t){return t=i.extend({},t),i.each(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(h.LOCATION_PARAMS),(function(e){delete t[e]})),t}(e);var I=e.$action||"merge",j="merge"===I,k="replace"===I;if(j){var P=f;(z=!f)?P=O(u,m,e.type,n):(P&&(_(P).isNew=!1),Object(y.stopPreviousKeyframeAnimationAndRestore)(P)),P&&(Object(v.applyUpdateTransition)(P,M,t,{isInit:z}),C(P,e,o,s))}else if(k){S(f,e,n,t);var L=O(u,m,e.type,n);L&&(Object(v.applyUpdateTransition)(L,M,t,{isInit:!0}),C(L,e,o,s))}else"remove"===I&&(Object(v.updateLeaveTo)(f,e),S(f,e,n,t));var R=n.get(u);if(R&&E)if(j){var D=R.getTextContent();D?D.attr(E):R.setTextContent(new l.default(E))}else k&&R.setTextContent(new l.default(E));if(R){var N=e.clipPath;if(N){var B=N.type,F=void 0,z=!1;if(j){var V=R.getClipPath();F=(z=!V||_(V).type!==B)?w(B):V}else k&&(z=!0,F=w(B));R.setClipPath(F),Object(v.applyUpdateTransition)(F,N,t,{isInit:z}),Object(y.applyKeyframeAnimation)(F,N.keyframeAnimation,t)}var U=_(R);R.setTextConfig(T),U.option=e,function(t,e,n){var r=Object(p.getECData)(t).eventData;t.silent||t.ignore||r||(r=Object(p.getECData)(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name});r&&(r.info=n.info)}(R,t,e),c.setTooltipConfig({el:R,componentModel:t,itemName:R.name,itemTooltipOption:e.tooltip}),Object(y.applyKeyframeAnimation)(R,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,r=this.group,o=this._elMap,s=e.getWidth(),u=e.getHeight(),l=["x","y"],c=0;c<n.length;c++){var d=n[c];if((x=null!=(b=a.convertOptionIdName(d.id,null))?o.get(b):null)&&x.isGroup){var p=(w=x.parent)===r,g=_(x),y=_(w);g.width=Object(f.parsePercent)(g.option.width,p?s:y.width)||0,g.height=Object(f.parsePercent)(g.option.height,p?u:y.height)||0}}for(c=n.length-1;c>=0;c--){var b,x;d=n[c];if(x=null!=(b=a.convertOptionIdName(d.id,null))?o.get(b):null){var w=x.parent,O=(y=_(w),w===r?{width:s,height:u}:{width:y.width,height:y.height}),S={},C=h.positionElement(x,d,O,null,{hv:d.hv,boundingMode:d.bounding},S);if(!_(x).isNew&&C){for(var E=d.transition,T={},A=0;A<l.length;A++){var M=l[A],I=S[M];E&&(Object(v.isTransitionAll)(E)||i.indexOf(E,M)>=0)?T[M]=I:x[M]=I}Object(m.updateProps)(x,T,t,0)}else x.attr(S)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){S(n,_(n).option,e,t._lastGraphicModel)})),this._elMap=i.createHashMap()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(d.default);function w(t){var e=new(i.hasOwn(b,t)?b[t]:c.getShapeClass(t))({});return _(e).type=t,e}function O(t,e,n,r){var i=w(n);return e.add(i),r.set(t,i),_(i).id=t,_(i).isNew=!0,i}function S(t,e,n,r){t&&t.parent&&("group"===t.type&&t.traverse((function(t){S(t,e,n,r)})),Object(v.applyLeaveTransition)(t,e,r),n.removeKey(_(t).id))}function C(t,e,n,r){t.isGroup||i.each([["cursor",o.default.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];i.hasOwn(e,r)?t[r]=i.retrieve2(e[r],n[1]):null==t[r]&&(t[r]=n[1])})),i.each(i.keys(e),(function(n){if(0===n.indexOf("on")){var r=e[n];t[n]=i.isFunction(r)?r:null}})),i.hasOwn(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(112),a=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;i.each(this.option.feature,(function(t,n){var r=o.getFeature(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(e)),i.merge(t,r.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(n(41).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(60),a=n(12),s=n(11),u=n(64),l=n(185),c=n(577),h=n(70),f=n(112),d=n(111),p=n(72),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n,r){var h=this.group;if(h.removeAll(),t.get("show")){var g=+t.get("itemSize"),v="vertical"===t.get("orient"),m=t.get("feature")||{},y=this._features||(this._features={}),b=[];i.each(m,(function(t,e){b.push(e)})),new l.default(this._featureNames||[],b).add(_).update(_).remove(i.curry(_,null)).execute(),this._featureNames=b,c.layout(h,t,n),h.add(c.makeBackground(h.getBoundingRect(),t)),v||h.eachChild((function(t){var e=t.__title,r=t.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=t.getTextContent(),u=s&&s.ensureState("emphasis");if(u&&!i.isFunction(u)&&e){var l=u.style||(u.style={}),c=o.getBoundingRect(e,p.default.makeFont(l)),f=t.x+h.x,d=!1;t.y+h.y+g+c.height>n.getHeight()&&(a.position="top",d=!0);var v=d?-5-c.height:g+10;f+c.width/2>n.getWidth()?(a.position=["100%",v],l.align="right"):f-c.width/2<0&&(a.position=[0,v],l.align="left")}}))}function _(o,l){var c,_=b[o],x=b[l],w=m[_],O=new u.default(w,t,t.ecModel);if(r&&null!=r.newTitle&&r.featureName===_&&(w.title=r.newTitle),_&&!x){if(function(t){return 0===t.indexOf("my")}(_))c={onclick:O.option.onclick,featureName:_};else{var S=Object(f.getFeature)(_);if(!S)return;c=new S}y[_]=c}else if(!(c=y[x]))return;c.uid=Object(d.getUID)("toolbox-feature"),c.model=O,c.ecModel=e,c.api=n;var C=c instanceof f.ToolboxFeature;_||!x?!O.get("show")||C&&c.unusable?C&&c.remove&&c.remove(e,n):(!function(r,o,u){var l,c,d=r.getModel("iconStyle"),m=r.getModel(["emphasis","iconStyle"]),y=o instanceof f.ToolboxFeature&&o.getIcons?o.getIcons():r.get("icon"),b=r.get("title")||{};i.isString(y)?(l={})[u]=y:l=y;i.isString(b)?(c={})[u]=b:c=b;var _=r.iconPaths={};i.each(l,(function(u,l){var f=a.createIcon(u,{},{x:-g/2,y:-g/2,width:g,height:g});f.setStyle(d.getItemStyle()),f.ensureState("emphasis").style=m.getItemStyle();var y=new p.default({style:{text:c[l],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});f.setTextContent(y),a.setTooltipConfig({el:f,componentModel:t,itemName:l,formatterParamsExtra:{title:c[l]}}),f.__title=c[l],f.on("mouseover",(function(){var e=m.getItemStyle(),r=v?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";y.setStyle({fill:m.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),f.setTextConfig({position:m.get("textPosition")||r}),y.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",l])&&n.leaveEmphasis(this),y.hide()})),("emphasis"===r.get(["iconStatus",l])?s.enterEmphasis:s.leaveEmphasis)(f),h.add(f),f.on("click",i.bind(o.onclick,o,e,n,l)),_[l]=f}))}(O,c,_),O.setIconStatus=function(t,e){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,r[t]&&("emphasis"===e?s.enterEmphasis:s.leaveEmphasis)(r[t])},c instanceof f.ToolboxFeature&&c.render&&c.render(O,e,n,r)):C&&c.dispose&&c.dispose(e,n)}},e.prototype.updateView=function(t,e,n,r){i.each(this._features,(function(t){t instanceof f.ToolboxFeature&&t.updateView&&t.updateView(t.model,e,n,r)}))},e.prototype.remove=function(t,e){i.each(this._features,(function(n){n instanceof f.ToolboxFeature&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){i.each(this._features,(function(n){n instanceof f.ToolboxFeature&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(h.default);e.default=g},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(54),o=n(112),a=n(0),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.onclick=function(t,e){var n=this.model,r=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===e.getZr().painter.getType(),s=o?"svg":n.get("type",!0)||"png",u=e.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),l=i.default.browser;if(Object(a.isFunction)(MouseEvent)&&(l.newEdge||!l.ie&&!l.edge)){var c=document.createElement("a");c.download=r+"."+s,c.target="_blank",c.href=u;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var f=u.split(","),d=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];d&&(p=window.atob(p));var g=r+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var v=p.length,m=new Uint8Array(v);v--;)m[v]=p.charCodeAt(v);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,g)}else{var b=document.createElement("iframe");document.body.appendChild(b);var _=b.contentWindow,x=_.document;x.open("image/svg+xml","replace"),x.write(p),x.close(),_.focus(),x.execCommand("SaveAs",!0,g),document.body.removeChild(b)}}else{var w=n.get("lang"),O='<body style="margin:0;"><img src="'+u+'" style="max-width:100%;" title="'+(w&&w[0]||"")+'" /></body>',S=window.open();S.document.write(O),S.document.title=r}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(o.ToolboxFeature);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(139),o=n(0),a=n(112),s=n(9),u=[["line","bar"],["stack"]],l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return o.each(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var r=this.model,i=r.get(["seriesIndex",n]);if(c[n]){var a,l={series:[]};o.each(u,(function(t){o.indexOf(t,n)>=0&&o.each(t,(function(t){r.setIconStatus(t,"normal")}))})),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},(function(t){var e=t.subType,i=t.id,a=c[n](e,i,t,r);a&&(o.defaults(a,t.option),l.series.push(a));var u=t.coordinateSystem;if(u&&"cartesian2d"===u.type&&("line"===n||"bar"===n)){var h=u.getAxesByScale("ordinal")[0];if(h){var f=h.dim+"Axis",d=t.getReferringComponents(f,s.SINGLE_REFERRING).models[0].componentIndex;l[f]=l[f]||[];for(var p=0;p<=d;p++)l[f][d]=l[f][d]||{};l[f][d].boundaryGap="bar"===n}}}));var h=n;"stack"===n&&(a=o.merge({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(h="tiled")),e.dispatchAction({type:"changeMagicType",currentType:h,newOption:l,newTitle:a,featureName:"magicType"})}},e}(a.ToolboxFeature),c={line:function(t,e,n,r){if("bar"===t)return o.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(t,e,n,r){if("line"===t)return o.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(t,e,n,r){var i="__ec_magicType_stack__"===n.get("stack");if("line"===t||"bar"===t)return r.setIconStatus("stack",i?"normal":"emphasis"),o.merge({id:e,stack:i?"":"__ec_magicType_stack__"},r.get(["option","stack"])||{},!0)}};i.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(139),o=n(0),a=n(112),s=n(89),u=new Array(60).join("-");function l(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var c=new RegExp("[\t]+","g");function h(t,e){var n=t.split(new RegExp("\n*"+u+"\n*","g")),r={series:[]};return o.each(n,(function(t,n){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf("\t")>=0)return!0}(t)){var i=function(t){for(var e=t.split(/\n+/g),n=l(e.shift()).split(c),r=[],i=o.map(n,(function(t){return{name:t,data:[]}})),a=0;a<e.length;a++){var s=l(e[a]).split(c);r.push(s.shift());for(var u=0;u<s.length;u++)i[u]&&(i[u].data[a]=s[u])}return{series:i,categories:r}}(t),a=e[n],s=a.axisDim+"Axis";a&&(r[s]=r[s]||[],r[s][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=function(t){for(var e=t.split(/\n+/g),n=l(e.shift()),r=[],i=0;i<e.length;i++){var o=l(e[i]);if(o){var a=o.split(c),s="",u=void 0,h=!1;isNaN(a[0])?(h=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},u=r[i].value):u=r[i]=[];for(var f=0;f<a.length;f++)u.push(+a[f]);1===u.length&&(h?r[i].value=u[0]:r[i]=u[0])}}return{name:n,data:r}}(t);r.series.push(i)}})),r}var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var a=document.createElement("h4"),l=r.get("lang")||[];a.innerHTML=l[0]||r.get("title"),a.style.cssText="margin:10px 20px",a.style.color=r.get("textColor");var c=document.createElement("div"),f=document.createElement("textarea");c.style.cssText="overflow:auto";var d=r.get("optionToContent"),p=r.get("contentToOption"),g=function(t){var e,n,r,i=function(t){var e={},n=[],r=[];return t.eachRawSeries((function(t){var i=t.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(t);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:r}}(t);return{value:o.filter([(n=i.seriesGroupByCategoryAxis,r=[],o.each(n,(function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,a=[" "].concat(o.map(t.series,(function(t){return t.name}))),s=[n.model.getCategories()];o.each(t.series,(function(t){var e=t.getRawData();s.push(t.getRawData().mapArray(e.mapDimension(i),(function(t){return t})))}));for(var u=[a.join("\t")],l=0;l<s[0].length;l++){for(var c=[],h=0;h<s.length;h++)c.push(s[h][l]);u.push(c.join("\t"))}r.push(u.join("\n"))})),r.join("\n\n"+u+"\n\n")),(e=i.other,o.map(e,(function(t){var e=t.getRawData(),n=[t.name],r=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,i=arguments[t-1],o=e.getName(i),a=0;a<t-1;a++)r[a]=arguments[a];n.push((o?o+"\t":"")+r.join("\t"))})),n.join("\n")})).join("\n\n"+u+"\n\n"))],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+u+"\n\n"),meta:i.meta}}(t);if(o.isFunction(d)){var v=d(e.getOption());o.isString(v)?c.innerHTML=v:o.isDom(v)&&c.appendChild(v)}else{f.readOnly=r.get("readOnly");var m=f.style;m.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",m.color=r.get("textColor"),m.borderColor=r.get("textareaBorderColor"),m.backgroundColor=r.get("textareaColor"),f.value=g.value,c.appendChild(f)}var y=g.meta,b=document.createElement("div");b.style.cssText="position:absolute;bottom:5px;left:0;right:0";var _="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),w=document.createElement("div");_+=";background-color:"+r.get("buttonColor"),_+=";color:"+r.get("buttonTextColor");var O=this;function S(){n.removeChild(i),O._dom=null}Object(s.addEventListener)(x,"click",S),Object(s.addEventListener)(w,"click",(function(){if(null==p&&null!=d||null!=p&&null==d)S();else{var t;try{t=o.isFunction(p)?p(c,e.getOption()):h(f.value,y)}catch(t){throw S(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),S()}})),x.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=x.style.cssText=_,!r.get("readOnly")&&b.appendChild(w),b.appendChild(x),i.appendChild(a),i.appendChild(c),i.appendChild(b),c.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},e}(a.ToolboxFeature);function d(t,e){return o.map(t,(function(t,n){var r=e&&e[n];if(o.isObject(r)&&!o.isArray(r)){o.isObject(t)&&!o.isArray(t)||(t={value:t});var i=null!=r.name&&null==t.name;return t=o.defaults(t,r),i&&delete t.name,t}return t}))}i.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];o.each(t.newOption.series,(function(t){var r=e.getSeriesByName(t.name)[0];if(r){var i=r.get("data");n.push({name:t.name,data:d(t.data,i)})}else n.push(o.extend({type:"scatter"},t))})),e.mergeOption(o.defaults({series:n},t.newOption))})),e.default=f},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(481),a=n(578),s=n(519),u=n(243),l=n(112),c=n(9),h=n(699),f=i.each,d=Object(c.makeInternalComponentId)("toolbox-dataZoom_"),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n,r){this._brushController||(this._brushController=new o.default(n.getZr()),this._brushController.on("brush",i.bind(this._onBrush,this)).mount()),function(t,e,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive);n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var s=new a.default(v(t),e,{include:["grid"]}).makePanelOpts(i,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,r,n),function(t,e){t.setIconStatus("back",s.count(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){g[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new a.default(v(this.model),r,{include:["grid"]}).matchOutputRanges(e,r,(function(t,e,n){if("cartesian2d"===n.type){var r=t.brushType;"rect"===r?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[r],n,e)}})),s.push(r,n),this._dispatchZoomAction(n)}function i(t,e,i){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(r=n)})),r}(t,a,r),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(i=Object(u.default)(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];f(t,(function(t,n){e.push(i.clone(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(l.ToolboxFeature),g={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(s.pop(this.ecModel))}};function v(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}Object(h.registerInternalOptionCreator)("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var r=e.getModel(n),i=[],o=v(r),a=Object(c.parseFinder)(t,o);return f(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),f(a.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),i}function s(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:d+e+o};a[n]=o,i.push(a)}})),e.default=p},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(139),o=n(519),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.onclick=function(t,e){o.clear(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])}},e}(n(112).ToolboxFeature);i.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")})),e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(1510),i=n(1511),o=n(484);function a(t){t.registerComponentModel(r.default),t.registerComponentView(i.default),Object(o.default)(t)}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.type="dataZoom.select",e}(n(396).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.type="dataZoom.select",e}(n(483).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(172),o=n(1513),a={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,o){var a=t.getComponent(Object(i.getAxisMainType)(r),o);e(r,o,a,n)}))}))}e((function(t,e,n,r){n.__dzAxisProxy=null}));var n=[];e((function(e,r,i,a){i.__dzAxisProxy||(i.__dzAxisProxy=new o.default(e,r,a,t),n.push(i.__dzAxisProxy))}));var a=Object(r.createHashMap)();return Object(r.each)(n,(function(t){Object(r.each)(t.getTargetSeriesModels(),(function(t){a.set(t.uid,t)}))})),a},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,r){t.getAxisProxy(n,r).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),r=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}};e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(6),o=n(243),a=n(85),s=n(705),u=n(172),l=n(9),c=r.each,h=i.asc,f=function(){function t(t,e,n,r){this._dimName=t,this._axisIndex=e,this.ecModel=r,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(Object(u.isCoordSupported)(e)){var n=Object(u.getAxisMainType)(this._dimName),r=e.getReferringComponents(n,l.SINGLE_REFERRING).models[0];r&&this._axisIndex===r.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return r.clone(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,r=this.getAxisModel().axis.scale,a=this._dataZoomModel.getRangePropMode(),s=[0,100],u=[],l=[];c(["start","end"],(function(o,c){var h=t[o],f=t[o+"Value"];"percent"===a[c]?(null==h&&(h=s[c]),f=r.parse(i.linearMap(h,s,n))):(e=!0,f=null==f?n[c]:r.parse(f),h=i.linearMap(f,n,s)),l[c]=f,u[c]=h})),h(l),h(u);var f=this._minMaxSpan;function d(t,e,n,a,s){var u=s?"Span":"ValueSpan";Object(o.default)(0,t,n,"all",f["min"+u],f["max"+u]);for(var l=0;l<2;l++)e[l]=i.linearMap(t[l],n,a,!0),s&&(e[l]=r.parse(e[l]))}return e?d(l,u,n,s,!1):d(u,l,s,n,!0),{valueWindow:l,percentWindow:u}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var r=[1/0,-1/0];c(n,(function(t){Object(a.unionAxisExtentFromData)(r,t.getData(),e)}));var i=t.getAxisModel(),o=Object(s.ensureScaleRawExtentInfo)(i.axis.scale,i,r).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),o=t.get("filterMode"),a=this._valueWindow;"none"!==o&&c(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===o){var s=e.getStore(),u=r.map(i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,r,o=0;o<i.length;o++){var l=s.get(u[o],t),c=!isNaN(l),h=l<a[0],f=l>a[1];if(c&&!h&&!f)return!0;c&&(r=!0),h&&(e=!0),f&&(n=!0)}return r&&e&&n}))}else c(i,(function(n){if("empty"===o)t.setData(e=e.map(n,(function(t){return function(t){return t>=a[0]&&t<=a[1]}(t)?t:NaN})));else{var r={};r[n]=a,e.selectRange(r)}}));c(i,(function(t){e.setApproximateExtent(a,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;c(["min","max"],(function(r){var o=e.get(r+"Span"),a=e.get(r+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?o=i.linearMap(n[0]+a,n,[0,100],!0):null!=o&&(a=i.linearMap(o,[0,100],n,!0)-n[0]),t[r+"Span"]=o,t[r+"ValueSpan"]=a}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var r=i.getPixelPrecision(n,[0,500]);r=Math.min(r,20);var o=t.axis.scale.rawExtentInfo;0!==e[0]&&o.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==e[1]&&o.setDeterminedMinMax("max",+n[1].toFixed(r)),o.freeze()}},t}();e.default=f},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(172),i=n(0);function o(t){t.registerAction("dataZoom",(function(t,e){var n=Object(r.findEffectedDataZooms)(e,t);Object(i.each)(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(n(41).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(54),a=n(1518),s=n(1517),u=n(71),l=n(6),c=n(79),h=n(723),f=n(33),d=n(64),p=n(440),g=n(85),v=n(169),m=n(9),y=n(70),b=n(43),_=n(31),x=n(342),w=n(355),O=n(83),S=n(299),C=n(143),E=new c.default({shape:{x:-1,y:-1,width:2,height:2}}),T=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e){if(!o.default.node&&e.getDom()){var n=t.getComponent("tooltip"),r=this._renderMode=Object(m.getTooltipRenderMode)(n.get("renderMode"));this._tooltipContent="richText"===r?new s.default(e):new a.default(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!o.default.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Object(C.createOrUpdate)(this,"_updatePosition",50,"fixRate"):Object(C.clear)(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");p.register("itemTooltip",this._api,Object(i.bind)((function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!o.default.node&&n.getDom()){var i=M(r,n);this._ticket="";var a=r.dataByCoordSys,s=function(t,e,n){var r=Object(m.preParseFinder)(t).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var o,a=Object(m.queryReferringComponents)(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(!a)return;if(n.getViewOfComponentModel(a).group.traverse((function(e){var n=Object(_.getECData)(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0})),o)return{componentMainType:i,componentIndex:a.componentIndex,el:o}}(r,e,n);if(s){var u=s.el.getBoundingRect().clone();u.applyTransform(s.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:s.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=E;l.x=r.x,l.y=r.y,l.update(),Object(_.getECData)(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var c=Object(h.default)(r,e),f=c.point[0],d=c.point[1];null!=f&&null!=d&&this._tryShow({offsetX:f,offsetY:d,target:c.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(M(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s)if("axis"===A([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var i,o;this._lastDataByCoordSys=null,Object(S.findEventDispatcher)(n,(function(t){return null!=Object(_.getECData)(t).dataIndex?(i=t,!0):null!=Object(_.getECData)(t).tooltipConfig?(o=t,!0):void 0}),!0),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(i.bind)(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,o=[e.offsetX,e.offsetY],a=A([e.tooltipOption],r),s=this._renderMode,l=[],c=Object(O.createTooltipMarkup)("section",{blocks:[],noHeader:!0}),h=[],f=new O.TooltipMarkupStyleCreator;Object(i.each)(t,(function(t){Object(i.each)(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),o=t.value;if(e&&null!=o){var a=v.getValueLabel(o,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),d=Object(O.createTooltipMarkup)("section",{header:a,noHeader:!Object(i.trim)(a),sortBlocks:!0,blocks:[]});c.blocks.push(d),Object(i.each)(t.seriesDataIndices,(function(c){var p=n.getSeriesByIndex(c.seriesIndex),v=c.dataIndexInside,m=p.getDataParams(v);if(!(m.dataIndex<0)){m.axisDim=t.axisDim,m.axisIndex=t.axisIndex,m.axisType=t.axisType,m.axisId=t.axisId,m.axisValue=g.getAxisRawValue(e.axis,{value:o}),m.axisValueLabel=a,m.marker=f.makeTooltipMarker("item",Object(u.convertToColorString)(m.color),s);var y=Object(w.normalizeTooltipFormatResult)(p.formatTooltip(v,!0,null)),b=y.frag;if(b){var _=A([p],r).get("valueFormatter");d.blocks.push(_?Object(i.extend)({valueFormatter:_},b):b)}y.text&&h.push(y.text),l.push(m)}}))}}))})),c.blocks.reverse(),h.reverse();var d=e.position,p=a.get("order"),m=Object(O.buildTooltipMarkup)(c,f,s,p,n.get("useUTC"),a.get("textStyle"));m&&h.unshift(m);var y="richText"===s?"\n\n":"<br/>",b=h.join(y);this._showOrMove(a,(function(){this._updateContentNotChangedOnAxis(t,l)?this._updatePosition(a,d,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(a,b,l,Math.random()+"",o[0],o[1],d,null,f)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,o=Object(_.getECData)(e),a=o.seriesIndex,s=r.getSeriesByIndex(a),l=o.dataModel||s,c=o.dataIndex,h=o.dataType,f=l.getData(h),d=this._renderMode,p=t.positionDefault,g=A([f.getItemModel(c),l,s&&(s.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),v=g.get("trigger");if(null==v||"item"===v){var m=l.getDataParams(c,h),y=new O.TooltipMarkupStyleCreator;m.marker=y.makeTooltipMarker("item",Object(u.convertToColorString)(m.color),d);var b=Object(w.normalizeTooltipFormatResult)(l.formatTooltip(c,!1,h)),x=g.get("order"),S=g.get("valueFormatter"),C=b.frag,E=C?Object(O.buildTooltipMarkup)(S?Object(i.extend)({valueFormatter:S},C):C,y,d,x,r.get("useUTC"),g.get("textStyle")):b.text,T="item_"+l.name+"_"+c;this._showOrMove(g,(function(){this._showTooltipContent(g,E,m,T,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:a,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r=Object(_.getECData)(e),o=r.tooltipConfig.option||{};if(Object(i.isString)(o)){o={content:o,formatter:o}}var a=[o],s=this._ecModel.getComponent(r.componentMainType,r.componentIndex);s&&a.push(s),a.push({formatter:o.content});var u=t.positionDefault,l=A(a,this._tooltipModel,u?{position:u}:null),c=l.get("content"),h=Math.random()+"",f=new O.TooltipMarkupStyleCreator;this._showOrMove(l,(function(){var n=Object(i.clone)(l.get("formatterParams")||{});this._showTooltipContent(l,c,n,h,t.offsetX,t.offsetY,t.position,e,f)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,o,a,s,l,c){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var f=t.get("formatter");s=s||t.get("position");var d=e,p=this._getNearestPoint([o,a],n,t.get("trigger"),t.get("borderColor")).color;if(f)if(Object(i.isString)(f)){var g=t.ecModel.get("useUTC"),v=Object(i.isArray)(n)?n[0]:n;d=f,v&&v.axisType&&v.axisType.indexOf("time")>=0&&(d=Object(b.format)(v.axisValue,d,g)),d=Object(u.formatTpl)(d,n,!0)}else if(Object(i.isFunction)(f)){var m=Object(i.bind)((function(e,r){e===this._ticket&&(h.setContent(r,c,t,p,s),this._updatePosition(t,s,o,a,h,n,l))}),this);this._ticket=r,d=f(n,r,m)}else d=f;h.setContent(d,c,t,p,s),h.show(t,p),this._updatePosition(t,s,o,a,h,n,l)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||Object(i.isArray)(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(i.isArray)(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,o,a,s){var u=this._api.getWidth(),c=this._api.getHeight();e=e||t.get("position");var h=o.getSize(),d=t.get("align"),p=t.get("verticalAlign"),g=s&&s.getBoundingRect().clone();if(s&&g.applyTransform(s.transform),Object(i.isFunction)(e)&&(e=e([n,r],a,o.el,g,{viewSize:[u,c],contentSize:h.slice()})),Object(i.isArray)(e))n=Object(l.parsePercent)(e[0],u),r=Object(l.parsePercent)(e[1],c);else if(Object(i.isObject)(e)){var v=e;v.width=h[0],v.height=h[1];var m=Object(f.getLayoutRect)(v,{width:u,height:c});n=m.x,r=m.y,d=null,p=null}else if(Object(i.isString)(e)&&s){var y=function(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,u=0,l=e.width,c=e.height;switch(t){case"inside":s=e.x+l/2-i/2,u=e.y+c/2-o/2;break;case"top":s=e.x+l/2-i/2,u=e.y-o-a;break;case"bottom":s=e.x+l/2-i/2,u=e.y+c+a;break;case"left":s=e.x-i-a,u=e.y+c/2-o/2;break;case"right":s=e.x+l+a,u=e.y+c/2-o/2}return[s,u]}(e,g,h,t.get("borderWidth"));n=y[0],r=y[1]}else{y=function(t,e,n,r,i,o,a){var s=n.getSize(),u=s[0],l=s[1];null!=o&&(t+u+o+2>r?t-=u+o:t+=o);null!=a&&(e+l+a>i?e-=l+a:e+=a);return[t,e]}(n,r,o,u,c,d?null:20,p?null:20);n=y[0],r=y[1]}if(d&&(n-=I(d)?h[0]/2:"right"===d?h[0]:0),p&&(r-=I(p)?h[1]/2:"bottom"===p?h[1]:0),Object(x.shouldTooltipConfine)(t)){y=function(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,r,o,u,c);n=y[0],r=y[1]}o.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,o=!!n&&n.length===t.length;return o&&Object(i.each)(n,(function(n,a){var s=n.dataByAxis||[],u=(t[a]||{}).dataByAxis||[];(o=o&&s.length===u.length)&&Object(i.each)(s,(function(t,n){var a=u[n]||{},s=t.seriesDataIndices||[],l=a.seriesDataIndices||[];(o=o&&t.value===a.value&&t.axisType===a.axisType&&t.axisId===a.axisId&&s.length===l.length)&&Object(i.each)(s,(function(t,e){var n=l[e];o=o&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&Object(i.each)(t.seriesDataIndices,(function(t){var n=t.seriesIndex,i=e[n],a=r[n];i&&a&&a.data!==i.data&&(o=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!o.default.node&&e.getDom()&&(Object(C.clear)(this,"_updatePosition"),this._tooltipContent.dispose(),p.unregister("itemTooltip",e))},e.type="tooltip",e}(y.default);function A(t,e,n){var r,o=e.ecModel;n?(r=new d.default(n,o,o),r=new d.default(e.option,r,o)):r=e;for(var a=t.length-1;a>=0;a--){var s=t[a];s&&(s instanceof d.default&&(s=s.get("tooltip",!0)),Object(i.isString)(s)&&(s={formatter:s}),s&&(r=new d.default(s,r,o)))}return r}function M(t,e){return t.dispatchAction||Object(i.bind)(e.dispatchAction,e)}function I(t){return"center"===t||"middle"===t}e.default=T},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(72),o=n(83),a=n(38),s=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),c(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,s,u){var l=this;r.isObject(t)&&Object(a.throwError)(""),this.el&&this._zr.remove(this.el);var c=n.getModel("textStyle");this.el=new i.default({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:s,textShadowColor:c.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Object(o.getPaddingFromTooltipModel)(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),r.each(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){l.el.style[t]=n.get(t)})),r.each(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){l.el.style[t]=c.get(t)||0})),this._zr.add(this.el);var h=this;this.el.on("mouseover",(function(){h._enterable&&(clearTimeout(h._hideTimeout),h._show=!0),h._inContent=!0})),this.el.on("mouseout",(function(){h._enterable&&h._show&&h.hideLater(h._hideDelay),h._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=l(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var r=this._styleCoord;c(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=u(i.borderWidth||0),a=l(i);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(r.bind(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function u(t){return Math.max(0,t)}function l(t){var e=u(t.shadowBlur||0),n=u(t.shadowOffsetX||0),r=u(t.shadowOffsetY||0);return{left:u(e-n),right:u(e+n),top:u(e-r),bottom:u(e+r)}}function c(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(89),o=n(144),a=n(54),s=n(71),u=n(342),l=n(83),c=Object(u.toCSSVendorPrefix)(u.TRANSITION_VENDOR,"transition"),h=Object(u.toCSSVendorPrefix)(u.TRANSFORM_VENDOR,"transform"),f="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(a.default.transform3dSupported?"will-change:transform;":"");function d(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!a.default.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=a.default.transform3dSupported,s="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+h+":"+s+";":[["top",0],["left",0],[u.TRANSFORM_VENDOR,s]]}function p(t,e,n){var i=[],o=t.get("transitionDuration"),u=t.get("backgroundColor"),f=t.get("shadowBlur"),d=t.get("shadowColor"),p=t.get("shadowOffsetX"),g=t.get("shadowOffsetY"),v=t.getModel("textStyle"),m=Object(l.getPaddingFromTooltipModel)(t,"html"),y=p+"px "+g+"px "+f+"px "+d;return i.push("box-shadow:"+y),e&&o&&i.push(function(t,e){var n=" "+t/2+"s cubic-bezier(0.23,1,0.32,1)",r="opacity"+n+",visibility"+n;return e||(n=" "+t+"s cubic-bezier(0.23,1,0.32,1)",r+=a.default.transformSupported?","+h+n:",left"+n+",top"+n),c+":"+r}(o,n)),u&&i.push("background-color:"+u),Object(r.each)(["width","color","radius"],(function(e){var n="border-"+e,r=Object(s.toCamelCase)(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))})),i.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+s+"px "+u+"px "+a+"px "+o),Object(r.each)(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}(v)),null!=m&&i.push("padding:"+Object(s.normalizeCssArray)(m).join("px ")+"px"),i.join(";")+";"}function g(t,e,n,r,i){var a=e&&e.painter;if(n){var s=a&&a.getViewportRoot();s&&Object(o.transformLocalCoord)(t,s,document.body,r,i)}else{t[0]=r,t[1]=i;var u=a&&a.getViewportRootOffset();u&&(t[0]+=u.offsetLeft,t[1]+=u.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var v=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,a.default.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var o=this._zr=e.getZr(),s=this._appendToBody=n&&n.appendToBody;g(this._styleCoord,o,s,e.getWidth()/2,e.getHeight()/2),s?document.body.appendChild(r):t.appendChild(r),this._container=t;var u=this;r.onmouseenter=function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0},r.onmousemove=function(t){if(t=t||window.event,!u._enterable){var e=o.handler,n=o.painter.getViewportRoot();Object(i.normalizeEvent)(n,t,!0),e.dispatch("mousemove",t)}},r.onmouseleave=function(){u._inContent=!1,u._enterable&&u._show&&u.hideLater(u._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=Object(u.getComputedStyle)(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=f+p(t,!this._firstShow,this._longHide)+d(i[0],i[1],!0)+"border-color:"+Object(s.convertToColorString)(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,o){var a=this.el;if(null!=t){var l="";if(Object(r.isString)(o)&&"item"===n.get("trigger")&&!Object(u.shouldTooltipConfine)(n)&&(l=function(t,e,n){if(!Object(r.isString)(n)||"inside"===n)return"";var i=t.get("backgroundColor"),o=t.get("borderWidth");e=Object(s.convertToColorString)(e);var a,u,l=a="left"===(a=n)?"right":"right"===a?"left":"top"===a?"bottom":"top",c=Math.max(1.5*Math.round(o),6),f="",d=h+":";Object(r.indexOf)(["left","right"],l)>-1?(f+="top:50%",d+="translateY(-50%) rotate("+(u="left"===l?-225:-45)+"deg)"):(f+="left:50%",d+="translateX(-50%) rotate("+(u="top"===l?225:45)+"deg)");var p=u*Math.PI/180,g=c+o,v=g*Math.abs(Math.cos(p))+g*Math.abs(Math.sin(p)),m=e+" solid "+o+"px;";return'<div style="'+["position:absolute;width:"+c+"px;height:"+c+"px;",(f+=";"+l+":-"+Math.round(100*((v-Math.SQRT2*o)/2+Math.SQRT2*o-(v-g)/2))/100+"px")+";"+d+";","border-bottom:"+m,"border-right:"+m,"background-color:"+i+";"].join("")+'"></div>'}(n,i,o)),Object(r.isString)(t))a.innerHTML=t+l;else if(t){a.innerHTML="",Object(r.isArray)(t)||(t=[t]);for(var c=0;c<t.length;c++)Object(r.isDom)(t[c])&&t[c].parentNode!==a&&a.appendChild(t[c]);if(l&&a.childNodes.length){var f=document.createElement("div");f.innerHTML=l,a.appendChild(f)}}}else a.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(g(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,o=d(n[0],n[1]);Object(r.each)(o,(function(t){i[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",a.default.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(r.bind)(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}();e.default=v},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(481),a=n(724),s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new o.default(e.getZr())).on("brush",i.bind(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,r){this.model=t,this._updateController(t,e,n,r)},e.prototype.updateTransform=function(t,e,n,r){Object(a.layoutCovers)(e),this._updateController(t,e,n,r)},e.prototype.updateVisual=function(t,e,n,r){this.updateTransform(t,e,n,r)},e.prototype.updateView=function(t,e,n,r){this._updateController(t,e,n,r)},e.prototype._updateController=function(t,e,n,r){(!r||r.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:i.clone(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:i.clone(n),$from:e})},e.type="brush",e}(n(70).default);e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"makeBrushCommonSelectorForSeries",(function(){return a}));var r=n(369),i=n(35),o=n(12);function a(t){var e=t.brushType,n={point:function(r){return s[e].point(r,n,t)},rect:function(r){return s[e].rect(r,n,t)}};return n}var s={lineX:u(0),lineY:u(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&r.contain(n.range,t[0],t[1])},rect:function(t,e,n){var a=n.range;if(!t||a.length<=1)return!1;var s=t.x,u=t.y,l=t.width,c=t.height,h=a[0];return!!(r.contain(a,s,u)||r.contain(a,s+l,u)||r.contain(a,s,u+c)||r.contain(a,s+l,u+c)||i.default.create(t).contain(h[0],h[1])||Object(o.linePolygonIntersect)(s,u,s+l,u,a)||Object(o.linePolygonIntersect)(s,u,s,u+c,a)||Object(o.linePolygonIntersect)(s+l,u,s+l,u+c,a)||Object(o.linePolygonIntersect)(s,u+c,s+l,u+c,a))||void 0}}};function u(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,r){if(e){var i=r.range;return l(e[t],i)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[e[t]],r[e[t]]+r[n[t]]];return s[1]<s[0]&&s.reverse(),l(s[0],a)||l(s[1],a)||l(a[0],s)||l(a[1],s)}}}}function l(t,e){return e[0]<=t&&t<=e[1]}e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(300),a=n(64),s=n(41),u=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return Object(r.__extends)(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&o.replaceVisualOption(n,t,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},r.hasOwnProperty("liftZ")||(r.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=i.map(t,(function(t){return l(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=l(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(s.default);function l(t,e){return i.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new a.default(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(0),i=n(9),o=["rect","polygon","keep","clear"];function a(t,e){var n=Object(i.normalizeToArray)(t?t.brush:[]);if(n.length){var a=[];r.each(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(a=a.concat(e))}));var s=t&&t.toolbox;r.isArray(s)&&(s=s[0]),s||(s={feature:{}},t.toolbox=[s]);var u,l,c=s.feature||(s.feature={}),h=c.brush||(c.brush={}),f=h.type||(h.type=[]);f.push.apply(f,a),u=f,l={},r.each(u,(function(t){l[t]=1})),u.length=0,r.each(l,(function(t,e){u.push(e)})),e&&!f.length&&f.push.apply(f,o)}}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(112),a=["rect","polygon","lineX","lineY","keep","clear"],s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n){var r,o,a;e.eachComponent({mainType:"brush"},(function(t){r=t.brushType,o=t.brushOption.brushMode||"single",a=a||!!t.areas.length})),this._brushType=r,this._brushMode=o,i.each(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===o:"clear"===e?a:e===r)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return i.each(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var r=this._brushType,i=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},e.getDefaultOption=function(t){return{show:!0,type:a.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(o.ToolboxFeature);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(898),o=n(355),a=n(0),s=n(111),u=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.type="timeline.slider",e.defaultOption=Object(s.inheritDefaultOption)(i.default.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(i.default);Object(a.mixin)(u,o.DataFormatMixin.prototype),e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(35),o=n(42),a=n(40),s=n(157),u=n(72),l=n(12),c=n(27),h=n(33),f=n(1527),d=n(1526),p=n(67),g=n(6),v=n(0),m=n(573),y=n(706),b=n(226),_=n(60),x=n(9),w=n(31),O=n(11),S=n(83),C=Math.PI,E=Object(x.makeInner)(),T=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),i=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){var e=a.scale.getLabel({value:t});return Object(S.createTooltipMarkup)("nameValue",{noName:!0,value:e})},Object(v.each)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](r,i,a,t)}),this),this._renderAxisLabel(r,o,a,t),this._position(r,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,r,i,o,a=t.get(["label","position"]),s=t.get("orient"),u=function(t,e){return h.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),l={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?u.y+u.height/2<e.getHeight()/2?"-":"+":u.x+u.width/2<e.getWidth()/2?"+":"-":Object(v.isString)(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:C/2},d="vertical"===s?u.height:u.width,p=t.getModel("controlStyle"),g=p.get("show",!0),m=g?p.get("itemSize"):0,y=g?p.get("itemGap"):0,b=m+y,_=t.get(["label","rotate"])||0;_=_*C/180;var x=p.get("position",!0),w=g&&p.get("showPlayBtn",!0),O=g&&p.get("showPrevBtn",!0),S=g&&p.get("showNextBtn",!0),E=0,T=d;"left"===x||"bottom"===x?(w&&(r=[0,0],E+=b),O&&(i=[E,0],E+=b),S&&(o=[T-m,0],T-=b)):(w&&(r=[T-m,0],T-=b),O&&(i=[0,0],E+=b),S&&(o=[T-m,0],T-=b));var A=[E,T];return t.get("inverse")&&A.reverse(),{viewRect:u,mainLength:d,orient:s,rotation:f[s],labelRotation:_,labelPosOpt:n,labelAlign:t.get(["label","align"])||l[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[s],playPosition:r,prevBtnPosition:i,nextBtnPosition:o,axisExtent:A,controlSize:m,controlGap:y}},e.prototype._position=function(t,e){var n=this._mainGroup,r=this._labelGroup,i=t.viewRect;if("vertical"===t.orient){var a=o.create(),s=i.x,u=i.y+i.height;o.translate(a,a,[-s,-u]),o.rotate(a,a,-C/2),o.translate(a,a,[s,u]),(i=i.clone()).applyTransform(a)}var l=y(i),c=y(n.getBoundingRect()),h=y(r.getBoundingRect()),f=[n.x,n.y],d=[r.x,r.y];d[0]=f[0]=l[0][0];var p,g=t.labelPosOpt;null==g||Object(v.isString)(g)?(b(f,c,l,1,p="+"===g?0:1),b(d,h,l,1,1-p)):(b(f,c,l,1,p=g>=0?0:1),d[1]=f[1]+g);function m(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function b(t,e,n,r,i){t[r]+=n[r][i]-e[r][i]}n.setPosition(f),r.setPosition(d),n.rotation=r.rotation=t.rotation,m(n),m(r)},e.prototype._createAxis=function(t,e){var n=e.getData(),r=e.get("axisType"),i=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new m.default({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new y.default({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new b.default}}(e,r);i.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.calcNiceTicks();var a=new d.default("value",i,t.axisExtent,r);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new a.default;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var o=new s.default({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Object(v.extend)({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new s.default({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Object(v.defaults)({lineCap:"round",lineWidth:o.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,r){var i=this,o=r.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(v.each)(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),u=s.getModel("itemStyle"),l=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:Object(v.bind)(i._changeTimeline,i,t.value)},f=A(s,u,e,h);f.ensureState("emphasis").style=l.getItemStyle(),f.ensureState("progress").style=c.getItemStyle(),Object(O.enableHoverEmphasis)(f);var d=Object(w.getECData)(f);s.get("tooltip")?(d.dataIndex=t.value,d.dataModel=r):d.dataIndex=d.dataModel=null,i._tickSymbols.push(f)}))},e.prototype._renderAxisLabel=function(t,e,n,r){var i=this;if(n.getLabelModel().get("show")){var o=r.getData(),a=n.getViewLabels();this._tickLabels=[],Object(v.each)(a,(function(r){var a=r.tickValue,s=o.getItemModel(a),l=s.getModel("label"),h=s.getModel(["emphasis","label"]),f=s.getModel(["progress","label"]),d=n.dataToCoord(r.tickValue),p=new u.default({x:d,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(v.bind)(i._changeTimeline,i,a),silent:!1,style:Object(c.createTextStyle)(l,{text:r.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});p.ensureState("emphasis").style=Object(c.createTextStyle)(h),p.ensureState("progress").style=Object(c.createTextStyle)(f),e.add(p),Object(O.enableHoverEmphasis)(p),E(p).dataIndex=a,i._tickLabels.push(p)}))}},e.prototype._renderControl=function(t,e,n,r){var o=t.controlSize,a=t.rotation,s=r.getModel("controlStyle").getItemStyle(),u=r.getModel(["emphasis","controlStyle"]).getItemStyle(),c=r.getPlayState(),h=r.get("inverse",!0);function f(t,n,c,h){if(t){var f=Object(_.parsePercent)(Object(v.retrieve2)(r.get(["controlStyle",n+"BtnSize"]),o),o),d=function(t,e,n,r){var o=r.style,a=l.createIcon(t.get(["controlStyle",e]),r||{},new i.default(n[0],n[1],n[2],n[3]));o&&a.setStyle(o);return a}(r,n+"Icon",[0,-f/2,f,f],{x:t[0],y:t[1],originX:o/2,originY:0,rotation:h?-a:0,rectHover:!0,style:s,onclick:c});d.ensureState("emphasis").style=u,e.add(d),Object(O.enableHoverEmphasis)(d)}}f(t.nextBtnPosition,"next",Object(v.bind)(this._changeTimeline,this,h?"-":"+")),f(t.prevBtnPosition,"prev",Object(v.bind)(this._changeTimeline,this,h?"+":"-")),f(t.playPosition,c?"stop":"play",Object(v.bind)(this._handlePlayClick,this,!c),!0)},e.prototype._renderCurrentPointer=function(t,e,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,u={onCreate:function(t){t.draggable=!0,t.drift=Object(v.bind)(s._handlePointerDrag,s),t.ondragend=Object(v.bind)(s._handlePointerDragend,s),M(t,s._progressLine,o,n,r,!0)},onUpdate:function(t){M(t,s._progressLine,o,n,r)}};this._currentPointer=A(a,a,this._mainGroup,{},this._currentPointer,u)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],r=this._axis,i=g.asc(r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var o=this._findNearestTick(n),a=this.model;(e||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getLocalTransform();return l.applyTransform(t,e,!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],(function(n,o){var a=i.dataToCoord(n),s=Math.abs(a-t);s<r&&(r=s,e=o)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var r=0;r<e.length;r++)e&&e[r]&&e[r].toggleState("progress",r<t);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",E(n[r]).dataIndex<=t)},e.type="timeline.slider",e}(f.default);function A(t,e,n,r,i,o){var a=e.get("color");if(i)i.setColor(a),n.add(i),o&&o.onUpdate(i);else{var s=t.get("symbol");(i=Object(p.createSymbol)(s,-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(i),o&&o.onCreate(i)}var u=e.getItemStyle(["color"]);i.setStyle(u),r=Object(v.merge)({rectHover:!0,z2:100},r,!0);var l=Object(p.normalizeSymbolSize)(t.get("symbolSize"));r.scaleX=l[0]/2,r.scaleY=l[1]/2;var c=Object(p.normalizeSymbolOffset)(t.get("symbolOffset"),l);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var h=t.get("symbolRotate");return r.rotation=(h||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function M(t,e,n,r,i,o){if(!t.dragging){var a=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var u={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},u),e&&e.animateTo({shape:{x2:s}},u)}}}e.default=T},function(t,e,n){"use strict";n.r(e);var r=n(5),i=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.type=i||"value",o}return Object(r.__extends)(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(n(164).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.type="timeline",e}(n(70).default);e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"installTimelineAction",(function(){return i}));var r=n(0);function i(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Object(r.defaults)({currentIndex:i.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(0);function i(t){var e=t&&t.timeline;r.isArray(e)||(e=e?[e]:[]),r.each(e,(function(t){t&&function(t){var e=t.type,n={number:"value",time:"time"};n[e]&&(t.axisType=n[e],delete t.type);if(o(t),a(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});a(i,"position")||(i.position=t.controlPosition),"none"!==i.position||a(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}r.each(t.data||[],(function(t){r.isObject(t)&&!r.isArray(t)&&(!a(t,"value")&&a(t,"name")&&(t.value=t.name),o(t))}))}(t)}))}function o(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},o=i.normal||(i.normal={}),s={normal:1,emphasis:1};r.each(i,(function(t,e){s[e]||a(o,e)||(o[e]=t)})),n.label&&!a(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function a(t,e){return t.hasOwnProperty(e)}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(n(206).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(317),o=n(6),a=n(118),s=n(183),u=n(485),l=n(206),c=n(0),h=n(31),f=n(198);function d(t,e,n){var r=e.coordinateSystem;t.each((function(i){var a,s=t.getItemModel(i),u=o.parsePercent(s.get("x"),n.getWidth()),l=o.parsePercent(s.get("y"),n.getHeight());if(isNaN(u)||isNaN(l)){if(e.getMarkerPosition)a=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(r){var c=t.get(r.dimensions[0],i),h=t.get(r.dimensions[1],i);a=r.dataToPoint([c,h])}}else a=[u,l];isNaN(u)||(a[0]=u),isNaN(l)||(a[1]=l),t.setItemLayout(i,a)}))}var p=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=l.default.getMarkerModelFromSeries(t,"markPoint");e&&(d(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,r){var o=t.coordinateSystem,u=t.id,l=t.getData(),p=this.markerGroupMap,g=p.get(u)||p.set(u,new i.default),v=function(t,e,n){var r;r=t?Object(c.map)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(c.extend)(Object(c.extend)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new a.default(r,n),o=Object(c.map)(n.get("data"),Object(c.curry)(s.dataTransform,e));t&&(o=Object(c.filter)(o,Object(c.curry)(s.dataFilter,t)));var u=s.createMarkerDimValueGetter(!!t,r);return i.initData(o,null,u),i}(o,t,e);e.setData(v),d(e.getData(),t,r),v.each((function(t){var n=v.getItemModel(t),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),a=n.getShallow("symbolOffset"),s=n.getShallow("symbolKeepAspect");if(Object(c.isFunction)(r)||Object(c.isFunction)(i)||Object(c.isFunction)(o)||Object(c.isFunction)(a)){var u=e.getRawValue(t),h=e.getDataParams(t);Object(c.isFunction)(r)&&(r=r(u,h)),Object(c.isFunction)(i)&&(i=i(u,h)),Object(c.isFunction)(o)&&(o=o(u,h)),Object(c.isFunction)(a)&&(a=a(u,h))}var d=n.getModel("itemStyle").getItemStyle(),p=Object(f.getVisualFromData)(l,"color");d.fill||(d.fill=p),v.setItemVisual(t,{symbol:r,symbolSize:i,symbolRotate:o,symbolOffset:a,symbolKeepAspect:s,style:d})})),g.updateData(v),this.group.add(g.group),v.eachItemGraphicEl((function(t){t.traverse((function(t){Object(h.getECData)(t).dataModel=e}))})),this.markKeep(g),g.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(u.default);e.default=p},function(t,e,n){"use strict";n.r(e);var r=n(5),i=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(n(206).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(118),o=n(6),a=n(183),s=n(479),u=n(485),l=n(147),c=n(270),h=n(31),f=n(206),d=n(0),p=n(9),g=n(198),v=Object(p.makeInner)(),m=function(t,e,n,r){var i,o=t.getData();if(Object(d.isArray)(r))i=r;else{var s=r.type;if("min"===s||"max"===s||"average"===s||"median"===s||null!=r.xAxis||null!=r.yAxis){var u=void 0,c=void 0;if(null!=r.yAxis||null!=r.xAxis)u=e.getAxis(null!=r.yAxis?"y":"x"),c=Object(d.retrieve)(r.yAxis,r.xAxis);else{var h=a.getAxisInfo(r,o,e,t);u=h.valueAxis;var f=Object(l.getStackedDimension)(o,h.valueDataDim);c=a.numCalculate(o,f,s)}var p="x"===u.dim?0:1,g=1-p,v=Object(d.clone)(r),m={coord:[]};v.type=null,v.coord=[],v.coord[g]=-1/0,m.coord[g]=1/0;var y=n.get("precision");y>=0&&Object(d.isNumber)(c)&&(c=+c.toFixed(Math.min(y,20))),v.coord[p]=m.coord[p]=c,i=[v,m,{type:s,valueIndex:r.valueIndex,value:c}]}else i=[]}var b=[a.dataTransform(t,i[0]),a.dataTransform(t,i[1]),Object(d.extend)({},i[2])];return b[2].type=b[2].type||null,Object(d.merge)(b[2],b[0]),Object(d.merge)(b[2],b[1]),b};function y(t){return!isNaN(t)&&!isFinite(t)}function b(t,e,n,r){var i=1-t,o=r.dimensions[t];return y(e[i])&&y(n[i])&&e[t]===n[t]&&r.getAxis(o).containData(e[t])}function _(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(b(1,n,r,t)||b(0,n,r,t)))return!0}return a.dataFilter(t,e[0])&&a.dataFilter(t,e[1])}function x(t,e,n,r,i){var a,s=r.coordinateSystem,u=t.getItemModel(e),l=o.parsePercent(u.get("x"),i.getWidth()),h=o.parsePercent(u.get("y"),i.getHeight());if(isNaN(l)||isNaN(h)){if(r.getMarkerPosition)a=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var f=s.dimensions,d=t.get(f[0],e),p=t.get(f[1],e);a=s.dataToPoint([d,p])}if(Object(c.isCoordinateSystemType)(s,"cartesian2d")){var g=s.getAxis("x"),v=s.getAxis("y");f=s.dimensions;y(t.get(f[0],e))?a[0]=g.toGlobalCoord(g.getExtent()[n?0:1]):y(t.get(f[1],e))&&(a[1]=v.toGlobalCoord(v.getExtent()[n?0:1]))}isNaN(l)||(a[0]=l),isNaN(h)||(a[1]=h)}else a=[l,h];t.setItemLayout(e,a)}var w=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=f.default.getMarkerModelFromSeries(t,"markLine");if(e){var r=e.getData(),i=v(e).from,o=v(e).to;i.each((function(e){x(i,e,!0,t,n),x(o,e,!1,t,n)})),r.each((function(t){r.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,r){var o=t.coordinateSystem,u=t.id,l=t.getData(),c=this.markerGroupMap,f=c.get(u)||c.set(u,new s.default);this.group.add(f.group);var p=function(t,e,n){var r;r=t?Object(d.map)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(d.extend)(Object(d.extend)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new i.default(r,n),s=new i.default(r,n),u=new i.default([],n),l=Object(d.map)(n.get("data"),Object(d.curry)(m,e,t,n));t&&(l=Object(d.filter)(l,Object(d.curry)(_,t)));var c=a.createMarkerDimValueGetter(!!t,r);return o.initData(Object(d.map)(l,(function(t){return t[0]})),null,c),s.initData(Object(d.map)(l,(function(t){return t[1]})),null,c),u.initData(Object(d.map)(l,(function(t){return t[2]}))),u.hasItemOption=!0,{from:o,to:s,line:u}}(o,t,e),y=p.from,b=p.to,w=p.line;v(e).from=y,v(e).to=b,e.setData(w);var O=e.get("symbol"),S=e.get("symbolSize"),C=e.get("symbolRotate"),E=e.get("symbolOffset");function T(e,n,i){var o=e.getItemModel(n);x(e,n,i,t,r);var a=o.getModel("itemStyle").getItemStyle();null==a.fill&&(a.fill=Object(g.getVisualFromData)(l,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(d.retrieve2)(o.get("symbolOffset",!0),E[i?0:1]),symbolRotate:Object(d.retrieve2)(o.get("symbolRotate",!0),C[i?0:1]),symbolSize:Object(d.retrieve2)(o.get("symbolSize"),S[i?0:1]),symbol:Object(d.retrieve2)(o.get("symbol",!0),O[i?0:1]),style:a})}Object(d.isArray)(O)||(O=[O,O]),Object(d.isArray)(S)||(S=[S,S]),Object(d.isArray)(C)||(C=[C,C]),Object(d.isArray)(E)||(E=[E,E]),p.from.each((function(t){T(y,t,!0),T(b,t,!1)})),w.each((function(t){var e=w.getItemModel(t).getModel("lineStyle").getLineStyle();w.setItemLayout(t,[y.getItemLayout(t),b.getItemLayout(t)]),null==e.stroke&&(e.stroke=y.getItemVisual(t,"style").fill),w.setItemVisual(t,{fromSymbolKeepAspect:y.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:y.getItemVisual(t,"symbolOffset"),fromSymbolRotate:y.getItemVisual(t,"symbolRotate"),fromSymbolSize:y.getItemVisual(t,"symbolSize"),fromSymbol:y.getItemVisual(t,"symbol"),toSymbolKeepAspect:b.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:b.getItemVisual(t,"symbolOffset"),toSymbolRotate:b.getItemVisual(t,"symbolRotate"),toSymbolSize:b.getItemVisual(t,"symbolSize"),toSymbol:b.getItemVisual(t,"symbol"),style:e})})),f.updateData(w),p.line.eachItemGraphicEl((function(t){Object(h.getECData)(t).dataModel=e,t.traverse((function(t){Object(h.getECData)(t).dataModel=e}))})),this.markKeep(f),f.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(u.default);e.default=w},function(t,e,n){"use strict";n.r(e);var r=n(5),i=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(n(206).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(80),o=n(118),a=n(6),s=n(40),u=n(180),l=n(23),c=n(11),h=n(183),f=n(485),d=n(0),p=n(270),g=n(206),v=n(9),m=n(198),y=n(27),b=n(31),_=n(165),x=Object(v.makeInner)(),w=function(t,e,n,r){var i=h.dataTransform(t,r[0]),o=h.dataTransform(t,r[1]),a=i.coord,s=o.coord;a[0]=Object(d.retrieve)(a[0],-1/0),a[1]=Object(d.retrieve)(a[1],-1/0),s[0]=Object(d.retrieve)(s[0],1/0),s[1]=Object(d.retrieve)(s[1],1/0);var u=Object(d.mergeAll)([{},i,o]);return u.coord=[i.coord,o.coord],u.x0=i.x,u.y0=i.y,u.x1=o.x,u.y1=o.y,u};function O(t){return!isNaN(t)&&!isFinite(t)}function S(t,e,n,r){var i=1-t;return O(e[i])&&O(n[i])}function C(t,e){var n=e.coord[0],r=e.coord[1],i={coord:n,x:e.x0,y:e.y0},o={coord:r,x:e.x1,y:e.y1};return Object(p.isCoordinateSystemType)(t,"cartesian2d")?!(!n||!r||!S(1,n,r)&&!S(0,n,r))||h.zoneFilter(t,i,o):h.dataFilter(t,i)||h.dataFilter(t,o)}function E(t,e,n,r,i){var o,s=r.coordinateSystem,u=t.getItemModel(e),l=a.parsePercent(u.get(n[0]),i.getWidth()),c=a.parsePercent(u.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(c)){if(r.getMarkerPosition)o=r.getMarkerPosition(t.getValues(n,e));else{var h=[g=t.get(n[0],e),v=t.get(n[1],e)];s.clampData&&s.clampData(h,h),o=s.dataToPoint(h,!0)}if(Object(p.isCoordinateSystemType)(s,"cartesian2d")){var f=s.getAxis("x"),d=s.getAxis("y"),g=t.get(n[0],e),v=t.get(n[1],e);O(g)?o[0]=f.toGlobalCoord(f.getExtent()["x0"===n[0]?0:1]):O(v)&&(o[1]=d.toGlobalCoord(d.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];return o}var T=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],A=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=g.default.getMarkerModelFromSeries(t,"markArea");if(e){var r=e.getData();r.each((function(e){var i=Object(d.map)(T,(function(i){return E(r,e,i,t,n)}));r.setItemLayout(e,i),r.getItemGraphicEl(e).setShape("points",i)}))}}),this)},e.prototype.renderSeries=function(t,e,n,r){var h=t.coordinateSystem,f=t.id,p=t.getData(),g=this.markerGroupMap,v=g.get(f)||g.set(f,{group:new s.default});this.group.add(v.group),this.markKeep(v);var O=function(t,e,n){var r,i;if(t){var a=Object(d.map)(t&&t.dimensions,(function(t){var n=e.getData(),r=n.getDimensionInfo(n.mapDimension(t))||{};return Object(d.extend)(Object(d.extend)({},r),{name:t,ordinalMeta:null})}));i=Object(d.map)(["x0","y0","x1","y1"],(function(t,e){return{name:t,type:a[e%2].type}})),r=new o.default(i,n)}else i=[{name:"value",type:"float"}],r=new o.default(i,n);var s=Object(d.map)(n.get("data"),Object(d.curry)(w,e,t,n));t&&(s=Object(d.filter)(s,Object(d.curry)(C,t)));var u=t?function(t,e,n,r){var o=t.coord[Math.floor(r/2)][r%2];return Object(_.parseDataValue)(o,i[r])}:function(t,e,n,r){return Object(_.parseDataValue)(t.value,i[r])};return r.initData(s,null,u),r.hasItemOption=!0,r}(h,t,e);e.setData(O),O.each((function(e){var n=Object(d.map)(T,(function(n){return E(O,e,n,t,r)})),o=h.getAxis("x").scale,s=h.getAxis("y").scale,u=o.getExtent(),l=s.getExtent(),c=[o.parse(O.get("x0",e)),o.parse(O.get("x1",e))],f=[s.parse(O.get("y0",e)),s.parse(O.get("y1",e))];a.asc(c),a.asc(f);var g=!!(u[0]>c[1]||u[1]<c[0]||l[0]>f[1]||l[1]<f[0]);O.setItemLayout(e,{points:n,allClipped:g});var v=O.getItemModel(e).getModel("itemStyle").getItemStyle(),y=Object(m.getVisualFromData)(p,"color");v.fill||(v.fill=y,Object(d.isString)(v.fill)&&(v.fill=i.modifyAlpha(v.fill,.4))),v.stroke||(v.stroke=y),O.setItemVisual(e,"style",v)})),O.diff(x(v).data).add((function(t){var e=O.getItemLayout(t);if(!e.allClipped){var n=new u.default({shape:{points:e.points}});O.setItemGraphicEl(t,n),v.group.add(n)}})).update((function(t,n){var r=x(v).data.getItemGraphicEl(n),i=O.getItemLayout(t);i.allClipped?r&&v.group.remove(r):(r?l.updateProps(r,{shape:{points:i.points}},e,t):r=new u.default({shape:{points:i.points}}),O.setItemGraphicEl(t,r),v.group.add(r))})).remove((function(t){var e=x(v).data.getItemGraphicEl(t);v.group.remove(e)})).execute(),O.eachItemGraphicEl((function(t,n){var r=O.getItemModel(n),o=O.getItemVisual(n,"style");t.useStyle(O.getItemVisual(n,"style")),Object(y.setLabelStyle)(t,Object(y.getLabelStatesModels)(r),{labelFetcher:e,labelDataIndex:n,defaultText:O.getName(n)||"",inheritColor:Object(d.isString)(o.fill)?i.modifyAlpha(o.fill,1):"#000"}),Object(c.setStatesStylesFromModel)(t,r),Object(c.toggleHoverEmphasis)(t,null,null,r.get(["emphasis","disabled"])),Object(b.getECData)(t).dataModel=e})),x(v).data=O,v.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(f.default);e.default=A},function(t,e,n){"use strict";function r(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"installLegendAction",(function(){return o}));var r=n(0);function i(t,e,n){var i,o={},a="toggleSelected"===t;return n.eachComponent("legend",(function(n){a&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var s=n.getData();Object(r.each)(s,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var r=n.isSelected(e);o.hasOwnProperty(e)?o[e]=o[e]&&r:o[e]=r}}))})),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:e.name,selected:o}}function o(t){t.registerAction("legendToggleSelect","legendselectchanged",Object(r.curry)(i,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(r.curry)(i,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(r.curry)(i,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(r.curry)(i,"select")),t.registerAction("legendUnSelect","legendunselected",Object(r.curry)(i,"unSelect"))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return u}));var r=n(48),i=n(725),o=n(1539),a=n(1540),s=n(1541);function u(t){Object(r.use)(i.install),t.registerComponentModel(o.default),t.registerComponentView(a.default),Object(s.default)(t)}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(579),o=n(33),a=n(111),s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=Object(o.getLayoutParams)(e);t.prototype.init.call(this,e,n,r),u(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),u(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Object(a.inheritDefaultOption)(i.default.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(i.default);function u(t,e,n){var r=[1,1];r[t.getOrient().index]=0,Object(o.mergeLayoutParam)(e,n,{type:"box",ignoreSize:!!r})}e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(40),a=n(72),s=n(12),u=n(79),l=n(23),c=n(33),h=n(726),f=o.default,d=["width","height"],p=["x","y"],g=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return Object(r.__extends)(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new f),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new f)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,r,o,u,l,c){var h=this;t.prototype.renderInner.call(this,e,n,r,o,u,l,c);var f=this._controllerGroup,d=n.get("pageIconSize",!0),p=i.isArray(d)?d:[d,d];v("pagePrev",0);var g=n.getModel("pageTextStyle");function v(t,e){var r=t+"DataIndex",a=s.createIcon(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:i.bind(h._pageGo,h,r,n,o)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});a.name=t,f.add(a)}f.add(new a.default({name:"pageText",style:{text:"xx/xx",fill:g.getTextColor(),font:g.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1)},e.prototype.layoutInner=function(t,e,n,r,o,a){var s=this.getSelectorGroup(),u=t.getOrient().index,l=d[u],h=p[u],f=d[1-u],g=p[1-u];o&&c.box("horizontal",s,t.get("selectorItemGap",!0));var v=t.get("selectorButtonGap",!0),m=s.getBoundingRect(),y=[-m.x,-m.y],b=i.clone(n);o&&(b[l]=n[l]-m[l]-v);var _=this._layoutContentAndController(t,r,b,u,l,f,g,h);if(o){if("end"===a)y[u]+=_[l]+v;else{var x=m[l]+v;y[u]-=x,_[h]-=x}_[l]+=m[l]+v,y[1-u]+=_[g]+_[f]/2-m[f]/2,_[f]=Math.max(_[f],m[f]),_[g]=Math.min(_[g],m[g]+y[1-u]),s.x=y[0],s.y=y[1],s.markRedraw()}return _},e.prototype._layoutContentAndController=function(t,e,n,r,o,a,s,h){var f=this.getContentGroup(),d=this._containerGroup,p=this._controllerGroup;c.box(t.get("orient"),f,t.get("itemGap"),r?n.width:null,r?null:n.height),c.box("horizontal",p,t.get("pageButtonItemGap",!0));var g=f.getBoundingRect(),v=p.getBoundingRect(),m=this._showController=g[o]>n[o],y=[-g.x,-g.y];e||(y[r]=f[h]);var b=[0,0],_=[-v.x,-v.y],x=i.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));m&&("end"===t.get("pageButtonPosition",!0)?_[r]+=n[o]-v[o]:b[r]+=v[o]+x);_[1-r]+=g[a]/2-v[a]/2,f.setPosition(y),d.setPosition(b),p.setPosition(_);var w={x:0,y:0};if(w[o]=m?n[o]:g[o],w[a]=Math.max(g[a],v[a]),w[s]=Math.min(0,v[s]+_[1-r]),d.__rectSize=n[o],m){var O={x:0,y:0};O[o]=Math.max(n[o]-v[o]-x,0),O[a]=w[a],d.setClipPath(new u.default({shape:O})),d.__rectSize=O[o]}else p.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var S=this._getPageInfo(t);return null!=S.pageIndex&&l.updateProps(f,{x:S.contentPosition[0],y:S.contentPosition[1]},m?t:null),this._updatePageInfoView(t,S),w},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;i.each(["pagePrev","pageNext"],(function(r){var i=null!=e[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")}));var r=n.childOfName("pageText"),o=t.get("pageFormatter"),a=e.pageIndex,s=null!=a?a+1:0,u=e.pageCount;r&&o&&r.setStyle("text",i.isString(o)?o.replace("{current}",null==s?"":s+"").replace("{total}",null==u?"":u+""):o({current:s,total:u}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=d[i],a=p[i],s=this._findTargetItemIndex(e),u=n.children(),l=u[s],c=u.length,h=c?1:0,f={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var g=_(l);f.contentPosition[i]=-g.s;for(var v=s+1,m=g,y=g,b=null;v<=c;++v)(!(b=_(u[v]))&&y.e>m.s+r||b&&!x(b,m.s))&&(m=y.i>m.i?y:b)&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=m.i),++f.pageCount),y=b;for(v=s-1,m=g,y=g,b=null;v>=-1;--v)(b=_(u[v]))&&x(y,b.s)||!(m.i<y.i)||(y=m,null==f.pagePrevDataIndex&&(f.pagePrevDataIndex=m.i),++f.pageCount,++f.pageIndex),m=b;return f;function _(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function x(t,e){return t.e>=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(h.default);e.default=g},function(t,e,n){"use strict";function r(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(396),o=n(111),a=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.type="dataZoom.inside",e.defaultOption=Object(o.inheritDefaultOption)(i.default.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(483),o=n(243),a=n(580),s=n(0),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return Object(r.__extends)(e,t),e.prototype.render=function(e,n,r){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),a.setViewInfoToCoordSysRecord(r,e,{pan:Object(s.bind)(l.pan,this),zoom:Object(s.bind)(l.zoom,this),scrollMove:Object(s.bind)(l.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){a.disposeCoordSysRecordIfNeeded(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(i.default),l={zoom:function(t,e,n,r){var i=this.range,a=i.slice(),s=t.axisModels[0];if(s){var u=h[e](null,[r.originX,r.originY],s,n,t),l=(u.signal>0?u.pixelStart+u.pixelLength-u.pixel:u.pixel-u.pixelStart)/u.pixelLength*(a[1]-a[0])+a[0],c=Math.max(1/r.scale,0);a[0]=(a[0]-l)*c+l,a[1]=(a[1]-l)*c+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Object(o.default)(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1]?a:void 0}},pan:c((function(t,e,n,r,i,o){var a=h[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:c((function(t,e,n,r,i,o){return h[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,n).signal*(t[1]-t[0])*o.scrollDelta}))};function c(t){return function(e,n,r,i){var a=this.range,s=a.slice(),u=e.axisModels[0];if(u){var l=t(s,u,e,n,r,i);return Object(o.default)(l,s,[0,100],"all"),this.range=s,a[0]!==s[0]||a[1]!==s[1]?s:void 0}}}var h={grid:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,u=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(396),o=n(111),a=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Object(o.inheritDefaultOption)(i.default.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(89),a=n(79),s=n(40),u=n(180),l=n(191),c=n(72),h=n(12),f=n(57),d=n(143),p=n(483),g=n(6),v=n(33),m=n(243),y=n(172),b=n(11),_=n(67),x=n(27),w=a.default,O=["line","bar","candlestick","scatter"],S={easing:"cubicOut",duration:100,delay:0},C=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(i.bind)(this._onBrush,this),this._onBrushEnd=Object(i.bind)(this._onBrushEnd,this)},e.prototype.render=function(e,n,r,i){if(t.prototype.render.apply(this,arguments),d.createOrUpdate(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){d.clear(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new s.default;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,r=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===this._orient?{right:o.width-r.x-r.width,top:o.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height},s=v.getLayoutParams(t.option);Object(i.each)(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=a[t])}));var u=v.getLayoutRect(s,o);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],"vertical"===this._orient&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr("horizontal"!==n||i?"horizontal"===n&&i?{scaleY:a?1:-1,scaleX:-1}:"vertical"!==n||i?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,r=t.get("brushSelect");n.add(new w({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new w({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(i.bind)(this._onClickPanel,this)}),a=this.api.getZr();r?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",a.on("mousemove",this._onBrush),a.on("mouseup",this._onBrushEnd)):(a.off("mousemove",this._onBrush),a.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],r=t.series,i=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),a=o&&i.getDimensionInfo(o)?r.getShadowDim():t.otherDim;if(null!=a){var c=this._shadowPolygonPts,h=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var f=i.getDataExtent(a),d=.3*(f[1]-f[0]);f=[f[0]-d,f[1]+d];var p,v=[0,e[1]],m=[0,e[0]],y=[[e[0],0],[0,0]],b=[],_=m[1]/(i.count()-1),x=0,w=Math.round(i.count()/e[0]);i.each([a],(function(t,e){if(w>0&&e%w)x+=_;else{var n=null==t||isNaN(t)||""===t,r=n?0:Object(g.linearMap)(t,f,v,!0);n&&!p&&e?(y.push([y[y.length-1][0],0]),b.push([b[b.length-1][0],0])):!n&&p&&(y.push([x,0]),b.push([x,0])),y.push([x,r]),b.push([x,r]),x+=_,p=n}})),c=this._shadowPolygonPts=y,h=this._shadowPolylinePts=b}this._shadowData=i,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var O=this.dataZoomModel,S=0;S<3;S++){var C=E(1===S);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}}}function E(t){var e=O.getModel(t?"selectedDataBackground":"dataBackground"),n=new s.default,r=new u.default({shape:{points:c},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new l.default({shape:{points:h},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,r=this.ecModel;return t.eachTargetAxis((function(o,a){var s=t.getAxisProxy(o,a).getTargetSeriesModels();Object(i.each)(s,(function(t){if(!(n||!0!==e&&Object(i.indexOf)(O,t.get("type"))<0)){var s,u=r.getComponent(Object(y.getAxisMainType)(o),a).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[o],c=t.coordinateSystem;null!=l&&c.getOtherAxis&&(s=c.getOtherAxis(u).inverse),l=t.getData().mapDimension(l),n={thisAxis:u,series:t,thisDim:o,otherDim:l,otherAxisInverse:s}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],r=e.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,u=this.dataZoomModel,l=this.api,h=u.get("borderRadius")||0,f=u.get("brushSelect"),d=e.filler=new w({silent:f,style:{fill:u.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new w({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:h},style:{stroke:u.get("dataBackgroundColor")||u.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),Object(i.each)([0,1],(function(e){var a=u.get("handleIcon");!_.symbolBuildProxies[a]&&a.indexOf("path://")<0&&a.indexOf("image://")<0&&(a="path://"+a);var s=Object(_.createSymbol)(a,-1,0,2,2,null,!0);s.attr({cursor:E(this._orient),draggable:!0,drift:Object(i.bind)(this._onDragMove,this,e),ondragend:Object(i.bind)(this._onDragEnd,this),onmouseover:Object(i.bind)(this._showDataInfo,this,!0),onmouseout:Object(i.bind)(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),h=u.get("handleSize");this._handleHeight=Object(g.parsePercent)(h,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(u.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=u.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(b.enableHoverEmphasis)(s);var f=u.get("handleColor");null!=f&&(s.style.fill=f),o.add(n[e]=s);var d=u.getModel("textStyle");t.add(r[e]=new c.default({silent:!0,invisible:!0,style:Object(x.createTextStyle)(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))}),this);var p=d;if(f){var v=Object(g.parsePercent)(u.get("moveHandleSize"),s[1]),m=e.moveHandle=new a.default({style:u.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),y=.8*v,O=e.moveHandleIcon=Object(_.createSymbol)(u.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);O.silent=!0,O.y=s[1]+v/2-.5,m.ensureState("emphasis").style=u.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var S=Math.min(s[1]/2,Math.max(v,10));(p=e.moveZone=new a.default({invisible:!0,shape:{y:s[1]-S,height:v+S}})).on("mouseover",(function(){l.enterEmphasis(m)})).on("mouseout",(function(){l.leaveEmphasis(m)})),o.add(m),o.add(O),o.add(p)}p.attr({draggable:!0,cursor:E(this._orient),drift:Object(i.bind)(this._onDragMove,this,"all"),ondragstart:Object(i.bind)(this._showDataInfo,this,!0),ondragend:Object(i.bind)(this._onDragEnd,this),onmouseover:Object(i.bind)(this._showDataInfo,this,!0),onmouseout:Object(i.bind)(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Object(g.linearMap)(t[0],[0,100],e,!0),Object(g.linearMap)(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];Object(m.default)(e,r,i,n.get("zoomLock")?"all":t,null!=o.minSpan?Object(g.linearMap)(o.minSpan,a,i,!0):null,null!=o.maxSpan?Object(g.linearMap)(o.maxSpan,a,i,!0):null);var s=this._range,u=this._range=Object(g.asc)([Object(g.linearMap)(r[0],i,a,!0),Object(g.linearMap)(r[1],i,a,!0)]);return!s||s[0]!==u[0]||s[1]!==u[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,r=Object(g.asc)(n.slice()),o=this._size;Object(i.each)([0,1],(function(t){var r=e.handles[t],i=this._handleHeight;r.attr({scaleX:i/2,scaleY:i/2,x:n[t]+(t?-1:1),y:o[1]/2-i/2})}),this),e.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:o[1]});var s={x:r[0],width:r[1]-r[0]};e.moveHandle&&(e.moveHandle.setShape(s),e.moveZone.setShape(s),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",s.x+s.width/2));for(var u=e.dataShadowSegs,l=[0,r[0],r[1],o[0]],c=0;c<u.length;c++){var h=u[c],f=h.getClipPath();f||(f=new a.default,h.setClipPath(f)),f.setShape({x:l[c],y:0,width:l[c+1]-l[c],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,u=this._range,l=t?a.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(l[0],s),this._formatLabel(l[1],s)]}}var c=Object(g.asc)(this._handleEnds.slice());function f(t){var e=h.getTransform(n.handles[t].parent,this.group),a=h.transformDirection(0===t?"right":"left",e),s=this._handleWidth/2+5,u=h.applyTransform([c[t]+(0===t?-s:s),this._size[1]/2],e);r[t].setStyle({x:u[0],y:u[1],verticalAlign:"horizontal"===i?"middle":a,align:"horizontal"===i?a:"center",text:o[t]})}f.call(this,0),f.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,r=n.get("labelFormatter"),o=n.get("labelPrecision");null!=o&&"auto"!==o||(o=e.getPixelPrecision());var a=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return Object(i.isFunction)(r)?r(t,a):Object(i.isString)(r)?r.replace("{value}",a):a},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,r){this._dragging=!0,o.stop(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=h.applyTransform([e,n],i,!0),s=this._updateInterval(t,a[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),s&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new f.default(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=Object(g.asc)([Object(g.linearMap)(n.x,r,i,!0),Object(g.linearMap)(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(o.stop(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new w({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),u=a.transformCoordToLocal(o.x,o.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:u[0],y:0,width:s[0]-u[0],height:l[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?S:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=Object(y.collectReferCoordSysModelInfo)(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var r=this.api.getWidth(),i=this.api.getHeight();t={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return t},e.type="dataZoom.slider",e}(p.default);function E(t){return"vertical"===t?"ns-resize":"ew-resize"}e.default=C},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(520),a=n(6),s=n(111),u=[20,140],l=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=u[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=u[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):i.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),i.each(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=a.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(e,n){t[0]<=e&&e<=t[1]&&r.push(n)}),this),e.push({seriesId:n.id,dataIndex:r})}),this),e},e.prototype.getVisualMeta=function(t){var e=c(this,"outOfRange",this.getExtent()),n=c(this,"inRange",this.option.range.slice()),r=[];function i(e,n){r.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,u=e.length;a<u&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&i(e[a],"outOfRange");for(var l=1;o<s;o++,l=0)l&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(l=1;a<u;a++)(!n.length||n[n.length-1]<e[a])&&(l&&(r.length&&i(r[r.length-1].value,"outOfRange"),l=0),i(e[a],"outOfRange"));var h=r.length;return{stops:r,outerColors:[h?r[0].color:"transparent",h?r[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Object(s.inheritDefaultOption)(o.default.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(o.default);function c(t,e,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,i=n[0],o=[],a=0;a<=200&&i<n[1];a++)o.push(i),i+=r;return o.push(n[1]),o}e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(352),a=n(89),s=n(728),u=n(72),l=n(40),c=n(79),h=n(12),f=n(180),d=n(6),p=n(243),g=n(403),v=n(9),m=n(60),y=n(11),b=n(67),_=n(114),x=n(31),w=n(27),O=n(299),S=d.linearMap,C=i.each,E=Math.min,T=Math.max,A=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return Object(r.__extends)(e,t),e.prototype.doRender=function(t,e,n,r){this._api=n,r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var r=e[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),c=this._applyTransform(0===n?"bottom":"top",s),h=this._orient,f=this.visualMapModel.textStyleModel;this.group.add(new u.default({style:Object(w.createTextStyle)(f,{x:l[0],y:l[1],verticalAlign:"horizontal"===h?"middle":c,align:"horizontal"===h?c:"center",text:r})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,r=e.itemSize,o=this._orient,a=this._useHandle,s=g.getItemAlign(e,this.api,r),u=n.mainGroup=this._createBarGroup(s),h=new l.default;u.add(h),h.add(n.outOfRange=M()),h.add(n.inRange=M(null,a?j(this._orient):null,i.bind(this._dragHandle,this,"all",!1),i.bind(this._dragHandle,this,"all",!0))),h.setClipPath(new c.default({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var f=e.textStyleModel.getTextRect("国"),d=T(f.width,f.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,u,0,r,d,o),this._createHandle(e,u,1,r,d,o)),this._createIndicator(e,u,r,d,o),t.add(u)},e.prototype._createHandle=function(t,e,n,r,o,s){var l=i.bind(this._dragHandle,this,n,!1),c=i.bind(this._dragHandle,this,n,!0),h=Object(m.parsePercent)(t.get("handleSize"),r[0]),f=Object(b.createSymbol)(t.get("handleIcon"),-h/2,-h/2,h,h,null,!0),d=j(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:c,onmousemove:function(t){a.stop(t.event)}}),f.x=r[0]/2,f.useStyle(t.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(y.setAsHighDownDispatcher)(f,!0),e.add(f);var p=this.visualMapModel.textStyleModel,g=new u.default({cursor:d,draggable:!0,drift:l,onmousemove:function(t){a.stop(t.event)},ondragend:c,style:Object(w.createTextStyle)(p,{x:0,y:0,text:""})});g.ensureState("blur").style={opacity:.1},g.stateTransition={duration:200},this.group.add(g);var v=[h,0],_=this._shapes;_.handleThumbs[n]=f,_.handleLabelPoints[n]=v,_.handleLabels[n]=g},e.prototype._createIndicator=function(t,e,n,r,o){var a=Object(m.parsePercent)(t.get("indicatorSize"),n[0]),s=Object(b.createSymbol)(t.get("indicatorIcon"),-a/2,-a/2,a,a,null,!0);s.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var l=t.getModel("indicatorStyle").getItemStyle();if(s instanceof _.default){var c=s.style;s.useStyle(i.extend({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l);e.add(s);var h=this.visualMapModel.textStyleModel,f=new u.default({silent:!0,invisible:!0,style:Object(w.createTextStyle)(h,{x:0,y:0,text:""})});this.group.add(f);var d=[("horizontal"===o?r/2:6)+n[0]/2,0],p=this._shapes;p.indicator=s,p.indicatorLabel=f,p.indicatorLabelPoint=d,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,r){if(this._useHandle){if(this._dragging=!e,!e){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(t,i[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():I(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),r=[0,t.itemSize[1]];this._handleEnds=[S(e[0],n,r,!0),S(e[1],n,r,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];Object(p.default)(e,r,i,t,0);var o=n.getExtent();this._dataInterval=[S(r[0],i,o,!0),S(r[1],i,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),r=this._shapes,i=[0,e.itemSize[1]],o=t?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(t,i),s=[this.getControllerVisual(t[0],"symbolSize",i),this.getControllerVisual(t[1],"symbolSize",i)],u=this._createBarPoints(n,s);return{barColor:new o.default(0,0,0,1,a),barPoints:u,handlesColor:[a[0].color,a[a.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],r=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var i=1;i<100;i++){var o=t[0]+r*i;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:i/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new l.default("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent();C([0,1],(function(u){var l=i[u];l.setStyle("fill",e.handlesColor[u]),l.y=t[u];var c=S(t[u],[0,a[1]],s,!0),f=this.getControllerVisual(c,"symbolSize");l.scaleX=l.scaleY=f/a[0],l.x=a[0]-f/2;var d=h.applyTransform(n.handleLabelPoints[u],h.getTransform(l,this.group));o[u].setStyle({x:d[0],y:d[1],text:r.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],u=this._shapes,l=u.indicator;if(l){l.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),f=this.getControllerVisual(t,"symbolSize"),d=S(t,o,s,!0),p=a[0]-f/2,g={x:l.x,y:l.y};l.y=d,l.x=p;var v=h.applyTransform(u.indicatorLabelPoint,h.getTransform(l,this.group)),m=u.indicatorLabel;m.attr("invisible",!1);var y=this._applyTransform("left",u.mainGroup),b="horizontal"===this._orient;m.setStyle({text:(n||"")+i.formatValueText(e),verticalAlign:b?y:"middle",align:b?"center":y});var _={x:p,y:d,style:{fill:c}},x={style:{x:v[0],y:v[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};l.x=g.x,l.y=g.y,l.animateTo(_,w),m.animateTo(x,w)}else l.attr(_),m.attr(x);this._firstShowIndicator=!1;var O=this._shapes.handleLabels;if(O)for(var C=0;C<O.length;C++)this._api.enterBlur(O[C])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,r=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);r[1]=E(T(0,r[1]),n[1]),t._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();t=E(T(i[0],t),i[1]);var a=function(t,e,n){var r=6,i=t.get("hoverLinkDataSize");i&&(r=S(i,e,n,!0)/2);return r}(n,o,i),s=[t-a,t+a],u=S(t,i,o,!0),l=[S(s[0],i,o,!0),S(s[1],i,o,!0)];s[0]<i[0]&&(l[0]=-1/0),s[1]>i[1]&&(l[1]=1/0),e&&(l[0]===-1/0?this._showIndicator(u,l[1],"< ",a):l[1]===1/0?this._showIndicator(u,l[0],"> ",a):this._showIndicator(u,u,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||I(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=v.compressBatches(c,h);this._dispatchHighDown("downplay",g.makeHighDownBatch(f[0],n)),this._dispatchHighDown("highlight",g.makeHighDownBatch(f[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(Object(O.findEventDispatcher)(t.target,(function(t){var n=Object(x.getECData)(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(e.dataType),o=i.getStore().get(r.getDataDimensionIndex(i),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this._api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",g.makeHighDownBatch(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,r){var o=h.getTransform(e,r?null:this.group);return i.isArray(t)?h.applyTransform(t,o,n):h.transformDirection(t,o,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(s.default);function M(t,e,n,r){return new f.default({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){a.stop(t.event)},ondragend:r})}function I(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function j(t){return"vertical"===t?"ns-resize":"ew-resize"}e.default=A},function(t,e,n){"use strict";n.r(e),n.d(e,"visualMapEncodingHandlers",(function(){return s}));var r=n(0),i=n(300),o=n(140),a=n(198),s=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var o=t.pipelineContext;!e.isTargetSeries(t)||o&&o.large||n.push(i.incrementalApplyVisual(e.stateList,e.targetVisuals,r.bind(e.getValueState,e),e.getDataDimensionIndex(t.getData())))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var o=e.getVisualMeta(r.bind(u,null,t,e))||{stops:[],outerColors:[]},a=e.getDataDimensionIndex(n);a>=0&&(o.dimension=a,i.push(o))}})),t.getData().setVisual("visualMeta",i)}}];function u(t,e,n,r){for(var i=e.targetVisuals[r],s=o.default.prepareVisualTypes(i),u={color:Object(a.getVisualFromData)(t.getData(),"color")},l=0,c=s.length;l<c;l++){var h=s[l],f=i["opacity"===h?"__alphaForOpacity":h];f&&f.applyVisual(n,d,p)}return u.color;function d(t){return u[t]}function p(t,e){u[t]=e}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(0),i=r.each;function o(t){var e=t&&t.visualMap;r.isArray(e)||(e=e?[e]:[]),i(e,(function(t){if(t){a(t,"splitList")&&!a(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&r.isArray(e)&&i(e,(function(t){r.isObject(t)&&(a(t,"start")&&!a(t,"min")&&(t.min=t.start),a(t,"end")&&!a(t,"max")&&(t.max=t.end))}))}}))}function a(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(520),a=n(140),s=n(727),u=n(6),l=n(111),c=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return Object(r.__extends)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],h[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var o=this.option.categories;this.resetVisual((function(t,e){"categories"===r?(t.mappingMethod="category",t.categories=i.clone(o)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=i.map(this._pieceList,(function(t){return t=i.clone(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},r=a.default.listVisualTypes(),o=this.isCategory();function u(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}i.each(e.pieces,(function(t){i.each(r,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),i.each(n,(function(t,n){var r=!1;i.each(this.stateList,(function(t){r=r||u(e,t,n)||u(e.target,t,n)}),this),!r&&i.each(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=s.default.get(n,"inRange"===t?"active":"inactive",o)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,r=this._pieceList,o=(e?n:t).selected||{};if(n.selected=o,i.each(r,(function(t,e){var n=this.getSelectedMapKey(t);o.hasOwnProperty(n)||(o[n]=!0)}),this),"single"===n.selectedMode){var a=!1;i.each(r,(function(t,e){var n=this.getSelectedMapKey(t);o[n]&&(a?o[n]=!1:a=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=i.clone(t)},e.prototype.getValueState=function(t){var e=a.default.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(e,r){a.default.findPieceIndex(e,n)===t&&i.push(r)}),this),e.push({seriesId:r.id,dataIndex:i})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],r=this,o=this._pieceList.slice();if(o.length){var a=o[0].interval[0];a!==-1/0&&o.unshift({interval:[-1/0,a]}),(a=o[o.length-1].interval[1])!==1/0&&o.push({interval:[a,1/0]})}else o.push({interval:[-1/0,1/0]});var s=-1/0;return i.each(o,(function(t){var e=t.interval;e&&(e[0]>s&&u([s,e[0]],"outOfRange"),u(e.slice()),s=e[1])}),this),{stops:e,outerColors:n}}function u(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=t(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:e.push({value:i[0],color:s},{value:i[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Object(l.inheritDefaultOption)(o.default.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(o.default),h={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1),e.splitNumber=o;for(var a=(r[1]-r[0])/o;+a.toFixed(n)!==a&&n<5;)n++;e.precision=n,a=+a.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var s=0,l=r[0];s<o;l+=a,s++){var c=s===o-1?r[1]:l+a;t.push({interval:[l,c],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),Object(u.reformIntervals)(t),i.each(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;i.each(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),f(e,t)},pieces:function(t){var e=this.option;i.each(e.pieces,(function(e,n){i.isObject(e)||(e={value:e});var r={text:"",index:n};if(null!=e.label&&(r.text=e.label),e.hasOwnProperty("value")){var o=r.value=e.value;r.interval=[o,o],r.close=[1,1]}else{for(var s=r.interval=[],u=r.close=[0,0],l=[1,0,1],c=[-1/0,1/0],h=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],p=0;p<3&&null==s[f];p++)s[f]=e[d[p]],u[f]=l[p],h[f]=2===p;null==s[f]&&(s[f]=c[f])}h[0]&&s[1]===1/0&&(u[0]=0),h[1]&&s[0]===-1/0&&(u[1]=0),s[0]===s[1]&&u[0]&&u[1]&&(r.value=s[0])}r.visual=a.default.retrieveVisuals(e),t.push(r)}),this),f(e,t),Object(u.reformIntervals)(t),i.each(t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function f(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(728),a=n(40),s=n(72),u=n(67),l=n(33),c=n(403),h=n(27),f=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,o=r.getFont(),u=r.getTextColor(),c=this._getItemAlign(),h=e.itemSize,f=this._getViewData(),d=f.endsText,p=i.retrieve(e.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],h,p,c),i.each(f.viewPieceList,(function(r){var l=r.piece,f=new a.default;f.onclick=i.bind(this._onItemClick,this,l),this._enableHoverLink(f,r.indexInModelPieceList);var d=e.getRepresentValue(l);if(this._createItemSymbol(f,d,[0,0,h[0],h[1]]),p){var g=this.visualMapModel.getValueState(d);f.add(new s.default({style:{x:"right"===c?-n:h[0]+n,y:h[1]/2,text:l.text,verticalAlign:"middle",align:c,font:o,fill:u,opacity:"outOfRange"===g?.5:1}}))}t.add(f)}),this),d&&this._renderEndsText(t,d[1],h,p,c),l.box(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(t){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:t,batch:c.makeHighDownBatch(r.findTargetDataIndices(e),r)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return c.getItemAlign(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,r,i){if(e){var o=new a.default,u=this.visualMapModel.textStyleModel;o.add(new s.default({style:Object(h.createTextStyle)(u,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=i.map(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),r=t.get("orient"),o=t.get("inverse");return("horizontal"===r?o:!o)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(Object(u.createSymbol)(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,r=n.selectedMode;if(r){var o=i.clone(n.selected),a=e.getSelectedMapKey(t);"single"===r||!0===r?(o[a]=!0,i.each(o,(function(t,e){o[e]=e===a}))):o[a]=!o[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(o.default);e.default=f},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(0);function i(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},r.each(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return l}));var r=n(0),i=n(9),o=n(329),a={label:{enabled:!0},decal:{show:!1}},s=Object(i.makeInner)(),u={};function l(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=r.clone(a);r.merge(i.label,t.getLocaleModel().get("aria"),!1),r.merge(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=r.createHashMap();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),s(t).scope=n}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(r.isFunction(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=Object(o.getDecalFromPalette)(e.ecModel,e.name,u,t.getSeriesCount()),a=n.getVisual("decal");n.setVisual("decal",d(a,i))}else{var l=e.getRawData(),c={},h=s(e).scope;n.each((function(t){var e=n.getRawIndex(t);c[e]=t}));var f=l.count();l.each((function(t){var r=c[t],i=l.getName(t)||t+"",a=Object(o.getDecalFromPalette)(e.ecModel,i,h,f),s=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",d(s,a))}))}}function d(t,e){var n=t?r.extend(r.extend({},e),t):e;return n.dirty=!0,n}}))}}(),function(){var i=t.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=r.defaults(o.option,i),!o.get("enabled"))return;var a=e.getZr().dom;if(o.get("description"))return void a.setAttribute("aria-label",o.get("description"));var s,u=t.getSeriesCount(),c=o.get(["data","maxCount"])||10,h=o.get(["series","maxCount"])||10,f=Math.min(u,h);if(u<1)return;var d=function(){var e=t.get("title");e&&e.length&&(e=e[0]);return e&&e.text}();if(d){var p=o.get(["general","withTitle"]);s=l(p,{title:d})}else s=o.get(["general","withoutTitle"]);var g=[],v=u>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]);s+=l(v,{seriesCount:u}),t.eachSeries((function(e,n){if(n<f){var r=void 0,i=e.get("name")?"withName":"withoutName";r=l(r=u>1?o.get(["series","multiple",i]):o.get(["series","single",i]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(b=e.subType,t.getLocaleModel().get(["series","typeNames"])[b]||"自定义图")});var a=e.getData();if(a.count()>c)r+=l(o.get(["data","partialData"]),{displayCnt:c});else r+=o.get(["data","allData"]);for(var s=o.get(["data","separator","middle"]),h=o.get(["data","separator","end"]),d=[],p=0;p<a.count();p++)if(p<c){var v=a.getName(p),m=a.getValues(p),y=o.get(["data",v?"withName":"withoutName"]);d.push(l(y,{name:v,value:m.join(s)}))}r+=d.join(s)+h,g.push(r)}var b}));var m=o.getModel(["series","multiple","separator"]),y=m.get("middle"),b=m.get("end");s+=g.join(y)+b,a.setAttribute("aria-label",s)}()}function l(t,e){if(!r.isString(t))return t;var n=t;return r.each(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}}},function(t,e,n){"use strict";n.r(e),n.d(e,"filterTransform",(function(){return a}));var r=n(1555),i=n(0),o=n(38),a={type:"echarts:filter",transform:function(t){for(var e,n=t.upstream,a=Object(r.parseConditionalExpression)(t.config,{valueGetterAttrMap:Object(i.createHashMap)({dimension:!0}),prepareGetValue:function(t){var e=t.dimension;Object(i.hasOwn)(t,"dimension")||Object(o.throwError)("");var r=n.getDimensionInfo(e);return r||Object(o.throwError)(""),{dimIdx:r.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}}),s=[],u=0,l=n.count();u<l;u++)e=n.getRawDataItem(u),a.evaluate()&&s.push(e);return{data:s}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"parseConditionalExpression",(function(){return m}));var r=n(0),i=n(38),o=n(165),a={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},s=function(){function t(t){if(null==(this._condVal=Object(r.isString)(t)?new RegExp(t):Object(r.isRegExp)(t)?t:null)){0,Object(i.throwError)("")}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(r.isString)(e)?this._condVal.test(t):!!Object(r.isNumber)(e)&&this._condVal.test(t+"")},t}(),u=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),l=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),c=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),h=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),f=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(t?n:e))return!1;return!0},t}();function d(t,e){if(!0===t||!1===t){var n=new u;return n.value=t,n}return g(t)||Object(i.throwError)(""),t.and?p("and",t,e):t.or?p("or",t,e):t.not?function(t,e){var n=t.not;0;g(n)||Object(i.throwError)("");var r=new h;r.child=d(n,e),r.child||Object(i.throwError)("");return r}(t,e):function(t,e){for(var n=e.prepareGetValue(t),u=[],l=Object(r.keys)(t),c=t.parser,h=c?Object(o.getRawValueParser)(c):null,d=0;d<l.length;d++){var p=l[d];if("parser"!==p&&!e.valueGetterAttrMap.get(p)){var g=Object(r.hasOwn)(a,p)?a[p]:p,v=t[p],m=h?h(v):v,y=Object(o.createFilterComparator)(g,m)||"reg"===g&&new s(m);y||Object(i.throwError)(""),u.push(y)}}u.length||Object(i.throwError)("");var b=new f;return b.valueGetterParam=n,b.valueParser=h,b.getValue=e.getValue,b.subCondList=u,b}(t,e)}function p(t,e,n){var o=e[t];Object(r.isArray)(o)||Object(i.throwError)(""),o.length||Object(i.throwError)("");var a="and"===t?new l:new c;return a.children=Object(r.map)(o,(function(t){return d(t,n)})),a.children.length||Object(i.throwError)(""),a}function g(t){return Object(r.isObject)(t)&&!Object(r.isArrayLike)(t)}var v=function(){function t(t,e){this._cond=d(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function m(t,e){return new v(t,e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"sortTransform",(function(){return u}));var r=n(30),i=n(38),o=n(0),a=n(9),s=n(165);var u={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,u=Object(a.normalizeToArray)(n);u.length||Object(i.throwError)("");var l=[];Object(o.each)(u,(function(t){var n=t.dimension,r=t.order,o=t.parser,a=t.incomparable;if(null==n&&Object(i.throwError)(""),"asc"!==r&&"desc"!==r&&Object(i.throwError)(""),a&&"min"!==a&&"max"!==a){0,Object(i.throwError)("")}if("asc"!==r&&"desc"!==r){0,Object(i.throwError)("")}var u=e.getDimensionInfo(n);u||Object(i.throwError)("");var c=o?Object(s.getRawValueParser)(o):null;o&&!c&&Object(i.throwError)(""),l.push({dimIdx:u.index,parser:c,comparator:new s.SortOrderComparator(r,a)})}));var c=e.sourceFormat;c!==r.SOURCE_FORMAT_ARRAY_ROWS&&c!==r.SOURCE_FORMAT_OBJECT_ROWS&&Object(i.throwError)("");for(var h=[],f=0,d=e.count();f<d;f++)h.push(e.getRawDataItem(f));return h.sort((function(t,n){for(var r=0;r<l.length;r++){var i=l[r],o=e.retrieveValueFromItem(t,i.dimIdx),a=e.retrieveValueFromItem(n,i.dimIdx);i.parser&&(o=i.parser(o),a=i.parser(a));var s=i.comparator.evaluate(o,a);if(0!==s)return s}return 0})),{data:h}}}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(2205),o=n(521),a=n(907),s=n(653),u=n(339),l=n(904),c=[1,0,0,0,1,0,0,0,1];function h(t,e,n){var i,h=e.startTime;if(n<h+e.delay||e._paused)return!1;var f=e.duration,d=e.easing,p=Object(s.getEasing)(d);if(n=n-h-e.delay,e.repeat)i=p(i=n%f/f);else{if(!((i=n/f)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;i=p(i)}if(e.onFrame){var g=e.onFrame(i);t.attr(g)}else!function(t,e,n){var i={},s=e.fromAttrs,h=e.toAttrs;if(!t.destroyed){var f;for(var d in h)if(!Object(r.isEqual)(s[d],h[d]))if("path"===d){var p=h[d],g=s[d];p.length>g.length?(p=u.parsePathString(h[d]),g=u.parsePathString(s[d]),g=u.fillPathByDiff(g,p),g=u.formatPath(g,p),e.fromAttrs.path=g,e.toAttrs.path=p):e.pathFormatted||(p=u.parsePathString(h[d]),g=u.parsePathString(s[d]),g=u.formatPath(g,p),e.fromAttrs.path=g,e.toAttrs.path=p,e.pathFormatted=!0),i[d]=[];for(var v=0;v<p.length;v++){for(var m=p[v],y=g[v],b=[],_=0;_<m.length;_++)Object(r.isNumber)(m[_])&&y&&Object(r.isNumber)(y[_])?(f=Object(o.default)(y[_],m[_]),b.push(f(n))):b.push(m[_]);i[d].push(b)}}else if("matrix"===d){var x=Object(a.default)(s[d]||c,h[d]||c)(n);i[d]=x}else Object(l.isColorProp)(d)&&Object(l.isGradientColor)(h[d])?i[d]=h[d]:Object(r.isFunction)(h[d])||(f=Object(o.default)(s[d],h[d]),i[d]=f(n));t.attr(i)}}(t,e,i);return!1}var f=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,r=this;this.timer=i.timer((function(i){if(r.current=i,r.animators.length>0){for(var o=r.animators.length-1;o>=0;o--)if((t=r.animators[o]).destroyed)r.removeAnimator(o);else{if(!t.isAnimatePaused())for(var a=(e=t.get("animations")).length-1;a>=0;a--)n=e[a],h(t,n,i)&&(e.splice(a,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(o)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}();e.default=f},function(t,e,n){"use strict";n.r(e);var r=n(1079);n.d(e,"easeLinear",(function(){return r.linear}));var i=n(541);n.d(e,"easeQuad",(function(){return i.quadInOut})),n.d(e,"easeQuadIn",(function(){return i.quadIn})),n.d(e,"easeQuadOut",(function(){return i.quadOut})),n.d(e,"easeQuadInOut",(function(){return i.quadInOut}));var o=n(542);n.d(e,"easeCubic",(function(){return o.cubicInOut})),n.d(e,"easeCubicIn",(function(){return o.cubicIn})),n.d(e,"easeCubicOut",(function(){return o.cubicOut})),n.d(e,"easeCubicInOut",(function(){return o.cubicInOut}));var a=n(543);n.d(e,"easePoly",(function(){return a.polyInOut})),n.d(e,"easePolyIn",(function(){return a.polyIn})),n.d(e,"easePolyOut",(function(){return a.polyOut})),n.d(e,"easePolyInOut",(function(){return a.polyInOut}));var s=n(544);n.d(e,"easeSin",(function(){return s.sinInOut})),n.d(e,"easeSinIn",(function(){return s.sinIn})),n.d(e,"easeSinOut",(function(){return s.sinOut})),n.d(e,"easeSinInOut",(function(){return s.sinInOut}));var u=n(545);n.d(e,"easeExp",(function(){return u.expInOut})),n.d(e,"easeExpIn",(function(){return u.expIn})),n.d(e,"easeExpOut",(function(){return u.expOut})),n.d(e,"easeExpInOut",(function(){return u.expInOut}));var l=n(546);n.d(e,"easeCircle",(function(){return l.circleInOut})),n.d(e,"easeCircleIn",(function(){return l.circleIn})),n.d(e,"easeCircleOut",(function(){return l.circleOut})),n.d(e,"easeCircleInOut",(function(){return l.circleInOut}));var c=n(547);n.d(e,"easeBounce",(function(){return c.bounceOut})),n.d(e,"easeBounceIn",(function(){return c.bounceIn})),n.d(e,"easeBounceOut",(function(){return c.bounceOut})),n.d(e,"easeBounceInOut",(function(){return c.bounceInOut}));var h=n(548);n.d(e,"easeBack",(function(){return h.backInOut})),n.d(e,"easeBackIn",(function(){return h.backIn})),n.d(e,"easeBackOut",(function(){return h.backOut})),n.d(e,"easeBackInOut",(function(){return h.backInOut}));var f=n(549);n.d(e,"easeElastic",(function(){return f.elasticOut})),n.d(e,"easeElasticIn",(function(){return f.elasticIn})),n.d(e,"easeElasticOut",(function(){return f.elasticOut})),n.d(e,"easeElasticInOut",(function(){return f.elasticInOut}))},function(t,e,n){"use strict";n.r(e);var r=n(732);e.default=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),o=t[(i+e-1)%e],a=t[i%e],s=t[(i+1)%e],u=t[(i+2)%e];return Object(r.basis)((n-i/e)*e,o,a,s,u)}}},function(t,e,n){"use strict";n.r(e);var r=n(582),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(i.source,"g");e.default=function(t,e){var n,a,s,u=i.lastIndex=o.lastIndex=0,l=-1,c=[],h=[];for(t+="",e+="";(n=i.exec(t))&&(a=o.exec(e));)(s=a.index)>u&&(s=e.slice(u,s),c[l]?c[l]+=s:c[++l]=s),(n=n[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,h.push({i:l,x:Object(r.default)(n,a)})),u=o.lastIndex;return u<e.length&&(s=e.slice(u),c[l]?c[l]+=s:c[++l]=s),c.length<2?h[0]?function(t){return function(e){return t(e)+""}}(h[0].x):function(t){return function(){return t}}(e):(e=h.length,function(t){for(var n,r=0;r<e;++r)c[(n=h[r]).i]=n.x(t);return c.join("")})}},function(t,e,n){"use strict";n.r(e),e.default=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}},function(t,e,n){"use strict";n.r(e);var r=n(521);e.default=function(t,e){var n,i={},o={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Object(r.default)(t[n],e[n]):o[n]=e[n];return function(t){for(n in i)o[n]=i[n](t);return o}}},function(t,e,n){"use strict";n.r(e);var r=n(650),i=n(101),o=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function a(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function s(t,e,n){if(n.bubbles){var r=void 0,o=!1;if("mouseenter"===e?(r=n.fromShape,o=!0):"mouseleave"===e&&(o=!0,r=n.toShape),t.isCanvas()&&o)return;if(r&&Object(i.isParent)(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var u=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");Object(i.each)(o,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");Object(i.each)(o,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,i,o,a){var s=new r.default(t,e);return s.fromShape=o,s.toShape=a,s.x=n.x,s.y=n.y,s.clientX=n.clientX,s.clientY=n.clientY,s.propagationPath.push(i),s},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],o=!1;if(i)i.call(this,n,r,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(o||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,u=n.timeStamp-this.mousedownTimeStamp,l=a.clientX-t.clientX,c=a.clientY-t.clientY;u>120||l*l+c*c>40?s&&s.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,o){var u=this._getEventObj(t,e,n,r,i,o);if(r){u.shape=r,a(r,t,u);for(var l=r.getParent();l;)l.emitDelegation(t,u),u.propagationStopped||s(l,t,u),u.propagationPath.push(l),l=l.getParent()}else{a(this.canvas,t,u)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}();e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(104),i=n(489);e.default=function(t){for(var e=t.attr().points,n=[],o=[],a=0;a<e.length;a++){var s=e[a];n.push(s[0]),o.push(s[1])}var u=r.Util.getBBoxByArray(n,o),l=u.x,c=u.y,h={minX:l,minY:c,maxX:l+u.width,maxY:c+u.height};return{x:(h=Object(i.mergeArrowBBox)(t,h)).minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}},function(t,e,n){"use strict";n.r(e);var r=n(91);function i(t,e){var n=Math.abs(t);return e>0?n:-1*n}e.default={box:function(t,e,n,r){return{x:t-n,y:e-r,width:2*n,height:2*r}},length:function(t,e,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},nearestPoint:function(t,e,n,r,o,a){var s=n,u=r;if(0===s||0===u)return{x:t,y:e};for(var l,c,h=o-t,f=a-e,d=Math.abs(h),p=Math.abs(f),g=s*s,v=u*u,m=Math.PI/4,y=0;y<4;y++){l=s*Math.cos(m),c=u*Math.sin(m);var b=(g-v)*Math.pow(Math.cos(m),3)/s,_=(v-g)*Math.pow(Math.sin(m),3)/u,x=l-b,w=c-_,O=d-b,S=p-_,C=Math.hypot(w,x),E=Math.hypot(S,O);m+=C*Math.asin((x*S-w*O)/(C*E))/Math.sqrt(g+v-l*l-c*c),m=Math.min(Math.PI/2,Math.max(0,m))}return{x:t+i(l,h),y:e+i(c,f)}},pointDistance:function(t,e,n,i,o,a){var s=this.nearestPoint(t,e,n,i,o,a);return Object(r.distance)(s.x,s.y,o,a)},pointAt:function(t,e,n,r,i){var o=2*Math.PI*i;return{x:t+n*Math.cos(o),y:e+r*Math.sin(o)}},tangentAngle:function(t,e,n,i,o){var a=2*Math.PI*o,s=Math.atan2(i*Math.cos(a),-n*Math.sin(a));return Object(r.piMod)(s)}}},function(t,e,n){"use strict";n.r(e);var r=n(104);e.default=function(t){for(var e=t.attr().points,n=[],i=[],o=0;o<e.length;o++){var a=e[o];n.push(a[0]),i.push(a[1])}return r.Util.getBBoxByArray(n,i)}},function(t,e,n){"use strict";n.r(e);var r=n(422);e.default=function(t){var e=t.attr(),n=e.x,i=e.y,o=e.text,a=e.fontSize,s=e.lineHeight,u=e.font;u||(u=Object(r.assembleFont)(e));var l,c=Object(r.getTextWidth)(o,u);if(c){var h=e.textAlign,f=e.textBaseline,d=Object(r.getTextHeight)(o,a,s),p={x:n,y:i-d};h&&("end"===h||"right"===h?p.x-=c:"center"===h&&(p.x-=c/2)),f&&("top"===f?p.y+=d:"middle"===f&&(p.y+=d/2)),l={x:p.x,y:p.y,width:c,height:d}}else l={x:n,y:i,width:0,height:0};return l}},function(t,e,n){"use strict";n.r(e);var r=n(104),i=n(207),o=n(1),a=n(489);function s(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,a=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),s=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),u=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),l=Math.acos((a+s-u)/(2*Math.sqrt(a)*Math.sqrt(s)));if(!l||0===Math.sin(l)||Object(o.isNumberEqual)(l,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),h=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return c=c>Math.PI/2?Math.PI-c:c,h=h>Math.PI/2?Math.PI-h:h,{xExtra:Math.cos(l/2-c)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(h-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0}}e.default=function(t){var e=t.attr(),n=e.path,u=e.stroke?e.lineWidth:0,l=function(t,e){for(var n=[],i=[],a=[],u=0;u<t.length;u++){var l=(y=t[u]).currentPoint,c=y.params,h=y.prePoint,f=void 0;switch(y.command){case"Q":f=r.Quad.box(h[0],h[1],c[1],c[2],c[3],c[4]);break;case"C":f=r.Cubic.box(h[0],h[1],c[1],c[2],c[3],c[4],c[5],c[6]);break;case"A":var d=y.arcParams;f=r.Arc.box(d.cx,d.cy,d.rx,d.ry,d.xRotation,d.startAngle,d.endAngle);break;default:n.push(l[0]),i.push(l[1])}f&&(y.box=f,n.push(f.x,f.x+f.width),i.push(f.y,f.y+f.height)),e&&("L"===y.command||"M"===y.command)&&y.prePoint&&y.nextPoint&&a.push(y)}n=n.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0})),i=i.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0}));var p=Object(o.min)(n),g=Object(o.min)(i),v=Object(o.max)(n),m=Object(o.max)(i);if(0===a.length)return{x:p,y:g,width:v-p,height:m-g};for(u=0;u<a.length;u++){var y;(l=(y=a[u]).currentPoint)[0]===p?p-=s(y,e).xExtra:l[0]===v&&(v+=s(y,e).xExtra),l[1]===g?g-=s(y,e).yExtra:l[1]===m&&(m+=s(y,e).yExtra)}return{x:p,y:g,width:v-p,height:m-g}}(t.get("segments")||Object(i.path2Segments)(n),u),c=l.x,h=l.y,f={minX:c,minY:h,maxX:c+l.width,maxY:h+l.height};return{x:(f=Object(a.mergeArrowBBox)(t,f)).minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}}},function(t,e,n){"use strict";n.r(e),n.d(e,"segmentToCubic",(function(){return a}));var r=n(1570),i=n(1571),o=n(607);function a(t,e){"TQ".indexOf(t[0])<0&&(e.qx=null,e.qy=null);var n=t.slice(1),a=n[0],s=n[1];switch(t[0]){case"M":return e.x=a,e.y=s,t;case"A":return["C"].concat(r.arcToCubic.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"Q":return e.qx=a,e.qy=s,["C"].concat(i.quadToCubic.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"L":return["C"].concat(Object(o.lineToCubic)(e.x1,e.y1,t[1],t[2]));case"H":return["C"].concat(Object(o.lineToCubic)(e.x1,e.y1,t[1],e.y1));case"V":return["C"].concat(Object(o.lineToCubic)(e.x1,e.y1,e.x1,t[1]));case"Z":return["C"].concat(Object(o.lineToCubic)(e.x1,e.y1,e.x,e.y))}return t}},function(t,e,n){"use strict";n.r(e),n.d(e,"arcToCubic",(function(){return u}));var r=2*Math.PI,i=function(t,e,n,r,i,o,a){var s=t.x,u=t.y;return{x:r*(s*=e)-i*(u*=n)+o,y:i*s+r*u+a}},o=function(t,e){var n=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),a=Math.sin(t+e);return[{x:r-i*n,y:i+r*n},{x:o+a*n,y:a-o*n},{x:o,y:a}]},a=function(t,e,n,r){var i=t*n+e*r;return i>1&&(i=1),i<-1&&(i=-1),(t*r-e*n<0?-1:1)*Math.acos(i)},s=function(t){var e=t.px,n=t.py,s=t.cx,u=t.cy,l=t.rx,c=t.ry,h=t.xAxisRotation,f=void 0===h?0:h,d=t.largeArcFlag,p=void 0===d?0:d,g=t.sweepFlag,v=void 0===g?0:g,m=[];if(0===l||0===c)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:u}];var y=Math.sin(f*r/360),b=Math.cos(f*r/360),_=b*(e-s)/2+y*(n-u)/2,x=-y*(e-s)/2+b*(n-u)/2;if(0===_&&0===x)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:u}];l=Math.abs(l),c=Math.abs(c);var w=Math.pow(_,2)/Math.pow(l,2)+Math.pow(x,2)/Math.pow(c,2);w>1&&(l*=Math.sqrt(w),c*=Math.sqrt(w));var O=function(t,e,n,i,o,s,u,l,c,h,f,d){var p=Math.pow(o,2),g=Math.pow(s,2),v=Math.pow(f,2),m=Math.pow(d,2),y=p*g-p*m-g*v;y<0&&(y=0),y/=p*m+g*v;var b=(y=Math.sqrt(y)*(u===l?-1:1))*o/s*d,_=y*-s/o*f,x=h*b-c*_+(t+n)/2,w=c*b+h*_+(e+i)/2,O=(f-b)/o,S=(d-_)/s,C=(-f-b)/o,E=(-d-_)/s,T=a(1,0,O,S),A=a(O,S,C,E);return 0===l&&A>0&&(A-=r),1===l&&A<0&&(A+=r),[x,w,T,A]}(e,n,s,u,l,c,p,v,y,b,_,x),S=O[0],C=O[1],E=O[2],T=O[3],A=Math.abs(T)/(r/4);Math.abs(1-A)<1e-7&&(A=1);var M=Math.max(Math.ceil(A),1);T/=M;for(var I=0;I<M;I++)m.push(o(E,T)),E+=T;return m.map((function(t){var e=i(t[0],l,c,b,y,S,C),n=e.x,r=e.y,o=i(t[1],l,c,b,y,S,C),a=o.x,s=o.y,u=i(t[2],l,c,b,y,S,C);return{x1:n,y1:r,x2:a,y2:s,x:u.x,y:u.y}}))};function u(t,e,n,r,i,o,a,u,l){return s({px:t,py:e,cx:u,cy:l,rx:n,ry:r,xAxisRotation:i,largeArcFlag:o,sweepFlag:a}).reduce((function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.x,s=e.y;return t.push(n,r,i,o,a,s),t}),[])}},function(t,e,n){"use strict";function r(t,e,n,r,i,o){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]}n.r(e),n.d(e,"quadToCubic",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(489);e.default=function(t){var e=t.attr(),n=e.x1,i=e.y1,o=e.x2,a=e.y2,s={minX:Math.min(n,o),maxX:Math.max(n,o),minY:Math.min(i,a),maxY:Math.max(i,a)};return{x:(s=Object(r.mergeArrowBBox)(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}}},function(t,e,n){"use strict";n.r(e),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;return{x:n-i,y:r-o,width:2*i,height:2*o}}},function(t,e,n){"use strict";n.r(e);var r=n(203),i=n(1),o=n(397),a=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var r=e.marginRatio,i=void 0===r?o.MARGIN_RATIO:r,a=e.dodgeRatio,s=void 0===a?o.DODGE_RATIO:a,u=e.dodgeBy,l=e.intervalPadding,c=e.dodgePadding,h=e.xDimensionLength,f=e.groupNum,d=e.defaultSize,p=e.maxColumnWidth,g=e.minColumnWidth,v=e.columnWidthRatio,m=e.customOffset;return n.marginRatio=i,n.dodgeRatio=s,n.dodgeBy=u,n.intervalPadding=l,n.dodgePadding=c,n.xDimensionLegenth=h,n.groupNum=f,n.defaultSize=d,n.maxColumnWidth=p,n.minColumnWidth=g,n.columnWidthRatio=v,n.customOffset=m,n}return Object(r.__extends)(e,t),e.prototype.process=function(t){var e=i.clone(t),n=i.flatten(e),r=this.dodgeBy,o=r?i.group(n,r):e;return this.cacheMap={},this.adjustDataArray=o,this.mergeData=n,this.adjustData(o,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,r){var o=this,a=this.customOffset,s=this.getDistribution(t),u=this.groupData(n,t);return i.each(u,(function(n,u){var l;l=1===e.length?{pre:e[0]-1,next:e[0]+1}:o.getAdjustRange(t,parseFloat(u),e),i.each(n,(function(e){var n=e[t],u=s[n],c=u.indexOf(r);if(i.isNil(a))e[t]=o.getDodgeOffset(l,c,u.length);else{var h=l.pre,f=l.next;e[t]=i.isFunction(a)?a(e,l):(h+f)/2+a}}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var r,o=this.dodgeRatio,a=this.marginRatio,s=this.intervalPadding,u=this.dodgePadding,l=t.pre,c=t.next,h=c-l;if(!i.isNil(s)&&i.isNil(u)&&s>=0)r=l+this.getIntervalOnlyOffset(n,e);else if(!i.isNil(u)&&i.isNil(s)&&u>=0){r=l+this.getDodgeOnlyOffset(n,e)}else if(!i.isNil(s)&&!i.isNil(u)&&s>=0&&u>=0){r=l+this.getIntervalAndDodgeOffset(n,e)}else{var f=h*o/n,d=a*f;r=(l+c)/2+(.5*(h-n*f-(n-1)*d)+((e+1)*f+e*d)-.5*f-.5*h)}return r},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,r=n.defaultSize,o=n.intervalPadding,a=n.xDimensionLegenth,s=n.groupNum,u=n.dodgeRatio,l=n.maxColumnWidth,c=n.minColumnWidth,h=n.columnWidthRatio,f=o/a,d=(1-(s-1)*f)/s*u/(t-1),p=((1-f*(s-1))/s-d*(t-1))/t;if(p=i.isNil(h)?p:1/s/t*h,!i.isNil(l)){var g=l/a;p=Math.min(p,g)}if(!i.isNil(c)){var v=c/a;p=Math.max(p,v)}return((.5+e)*(p=r?r/a:p)+e*(d=((1-(s-1)*f)/s-t*p)/(t-1))+.5*f)*s-f/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,r=n.defaultSize,o=n.dodgePadding,a=n.xDimensionLegenth,s=n.groupNum,u=n.marginRatio,l=n.maxColumnWidth,c=n.minColumnWidth,h=n.columnWidthRatio,f=o/a,d=1*u/(s-1),p=((1-d*(s-1))/s-f*(t-1))/t;if(p=h?1/s/t*h:p,!i.isNil(l)){var g=l/a;p=Math.min(p,g)}if(!i.isNil(c)){var v=c/a;p=Math.max(p,v)}return((.5+e)*(p=r?r/a:p)+e*f+.5*(d=(1-(p*t+f*(t-1))*s)/(s-1)))*s-d/2},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this.intervalPadding,r=this.dodgePadding,i=this.xDimensionLegenth,o=this.groupNum,a=n/i,s=r/i;return((.5+e)*(((1-a*(o-1))/o-s*(t-1))/t)+e*s+.5*a)*o-a/2},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,r=n[t];return r||(r={},i.each(e,(function(e,n){var o=i.valuesOfKey(e,t);o.length||o.push(0),i.each(o,(function(t){r[t]||(r[t]=[]),r[t].push(n)}))})),n[t]=r),r},e}(n(258).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(203),i=n(1),o=n(397);var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.process=function(t){var e=i.clone(t),n=i.flatten(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var r=this,o=this.groupData(n,t);return i.each(o,(function(n,i){return r.adjustGroup(n,t,parseFloat(i),e)}))},e.prototype.getAdjustOffset=function(t){var e,n=t.pre,r=t.next,i=(r-n)*o.GAP;return(r-i-(e=n+i))*Math.random()+e},e.prototype.adjustGroup=function(t,e,n,r){var o=this,a=this.getAdjustRange(e,n,r);return i.each(t,(function(t){t[e]=o.getAdjustOffset(a)})),t},e}(n(258).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(203),i=n(1),o=n(258),a=i.Cache,s=function(t){function e(e){var n=t.call(this,e)||this,r=e.adjustNames,i=void 0===r?["y"]:r,o=e.height,a=void 0===o?NaN:o,s=e.size,u=void 0===s?10:s,l=e.reverseOrder,c=void 0!==l&&l;return n.adjustNames=i,n.height=a,n.size=u,n.reverseOrder=c,n}return Object(r.__extends)(e,t),e.prototype.process=function(t){var e=this.yField,n=this.reverseOrder,r=e?this.processStack(t):this.processOneDimStack(t);return n?this.reverse(r):r},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this.xField,n=this.yField,o=this.reverseOrder?this.reverse(t):t,s=new a,u=new a;return o.map((function(t){return t.map((function(t){var o,a=i.get(t,e,0),l=i.get(t,[n]),c=a.toString();if(l=i.isArray(l)?l[1]:l,!i.isNil(l)){var h=l>=0?s:u;h.has(c)||h.set(c,0);var f=h.get(c),d=l+f;return h.set(c,d),Object(r.__assign)(Object(r.__assign)({},t),((o={})[n]=[f,d],o))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this.xField,i=this.height,o=this.reverseOrder,s=o?this.reverse(t):t,u=new a;return s.map((function(t){return t.map((function(t){var o,a=e.size,s=t[n],l=2*a/i;u.has(s)||u.set(s,l/2);var c=u.get(s);return u.set(s,c+l),Object(r.__assign)(Object(r.__assign)({},t),((o={}).y=c,o))}))}))},e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(203),i=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.process=function(t){var e=i.flatten(t),n=this.xField,o=this.yField,a=this.getXValuesMaxMap(e),s=Math.max.apply(Math,Object.keys(a).map((function(t){return a[t]})));return i.map(t,(function(t){return i.map(t,(function(t){var e,u,l=t[o],c=t[n];if(i.isArray(l)){var h=(s-a[c])/2;return Object(r.__assign)(Object(r.__assign)({},t),((e={})[o]=i.map(l,(function(t){return h+t})),e))}var f=(s-l)/2;return Object(r.__assign)(Object(r.__assign)({},t),((u={})[o]=[f,l+f],u))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this.xField,r=this.yField,o=i.groupBy(t,(function(t){return t[n]}));return i.mapValues(o,(function(t){return e.getDimMaxValue(t,r)}))},e.prototype.getDimMaxValue=function(t,e){var n=i.map(t,(function(t){return i.get(t,e,[])})),r=i.flatten(n);return Math.max.apply(Math,r)},e}(n(258).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(1);e.default=function(t){return function(e,n,i,o){for(var a=Object(r.isNil)(i)?0:i,s=Object(r.isNil)(o)?e.length:o;a<s;){var u=a+s>>>1;t(e[u])>n?s=u:a=u+1}return a}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(1),i=n(1580),o=n(491),a=n(492);function s(t){var e=t.min,n=t.max,s=t.tickInterval,u=t.minLimit,l=t.maxLimit,c=Object(i.default)(t);return Object(r.isNil)(u)&&Object(r.isNil)(l)?s?Object(o.default)(e,n,s).ticks:c:Object(a.default)(t,Object(r.head)(c),Object(r.last)(c))}},function(t,e,n){"use strict";function r(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,o=new s;return o.domain([e,n]),r&&o.nice(i),o.ticks(i)}n.r(e),n.d(e,"default",(function(){return r})),n.d(e,"D3Linear",(function(){return s}));var i=Math.sqrt(50),o=Math.sqrt(10),a=Math.sqrt(2),s=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var r,i=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],l=this._domain[a];return l<s&&(s=(e=[l,s])[0],l=e[1],o=(n=[a,o])[0],a=n[1]),(r=u(s,l,t))>0?r=u(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,t):r<0&&(r=u(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,t)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,this.domain(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];(r=e<t)&&(i=t,t=e,e=i);if(0===(a=u(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(t+s)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(t-s)/a;r&&o.reverse();return o}(this._domain[0],this._domain[this._domain.length-1],t||5)},t}();function u(t,e,n){var r=(e-t)/Math.max(0,n),s=Math.floor(Math.log(r)/Math.LN10),u=r/Math.pow(10,s);return s>=0?(u>=i?10:u>=o?5:u>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(u>=i?10:u>=o?5:u>=a?2:1)}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(1),i=n(1582),o=n(491),a=n(492);function s(t){var e=t.min,n=t.max,s=t.tickCount,u=t.nice,l=t.tickInterval,c=t.minLimit,h=t.maxLimit,f=Object(i.default)(e,n,s,u).ticks;return Object(r.isNil)(c)&&Object(r.isNil)(h)?l?Object(o.default)(e,n,l).ticks:f:Object(a.default)(t,Object(r.head)(f),Object(r.last)(f))}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_Q",(function(){return o})),n.d(e,"ALL_Q",(function(){return a})),n.d(e,"default",(function(){return p}));var r=n(1),i=n(370),o=[1,5,2,2.5,4,3],a=[1,5,2,2.5,4,3,1.5,7,6,8,9],s=100*Number.EPSILON;function u(t,e,n,i,o,a){var u=Object(r.size)(e),l=Object(r.indexOf)(e,t),c=0,h=function(t,e){return(t%e+e)%e}(i,a);return(h<s||a-h<s)&&i<=0&&o>=0&&(c=1),1-l/(u-1)-n+c}function l(t,e,n){var i=Object(r.size)(e);return 1-Object(r.indexOf)(e,t)/(i-1)-n+1}function c(t,e,n,r,i,o){var a=(t-1)/(o-i),s=(e-1)/(Math.max(o,r)-Math.min(n,i));return 2-Math.max(a/s,s/a)}function h(t,e){return t>=e?2-(t-1)/(e-1):1}function f(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function d(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}function p(t,e,n,a,s,p){void 0===n&&(n=5),void 0===a&&(a=!0),void 0===s&&(s=o),void 0===p&&(p=[.25,.2,.5,.05]);var g=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!=typeof t||"number"!=typeof e||!g)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===g)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var v=(e-t)/(I=n||5);return{min:t,max:e,ticks:Array(I).fill(null).map((function(e,n){return Object(i.prettyNumber)(t+v*n)}))}}for(var m={score:-2,lmin:0,lmax:0,lstep:0},y=1;y<1/0;){for(var b=0;b<s.length;b+=1){var _=s[b],x=l(_,s,y);if(p[0]*x+p[1]+p[2]+p[3]<m.score){y=1/0;break}for(var w=2;w<1/0;){var O=h(w,g);if(p[0]*x+p[1]+p[2]*O+p[3]<m.score)break;for(var S=(e-t)/(w+1)/y/_,C=Math.ceil(Math.log10(S));C<1/0;){var E=y*_*Math.pow(10,C),T=d(t,e,E*(w-1));if(p[0]*x+p[1]*T+p[2]*O+p[3]<m.score)break;var A=Math.floor(e/E)*y-(w-1)*y,M=Math.ceil(t/E)*y;if(A<=M)for(var I=M-A,j=0;j<=I;j+=1){var k=(A+j)*(E/y),P=k+E*(w-1),L=E,R=u(_,s,y,k,P,L),D=f(t,e,k,P),N=c(w,g,t,e,k,P),B=p[0]*R+p[1]*D+p[2]*N+1*p[3];B>m.score&&(!a||k<=t&&P>=e)&&(m.lmin=k,m.lmax=P,m.lstep=L,m.score=B)}C+=1}w+=1}}y+=1}var F=Object(i.prettyNumber)(m.lmax),z=Object(i.prettyNumber)(m.lmin),V=Object(i.prettyNumber)(m.lstep),U=Math.floor(function(t){return Math.round(1e12*t)/1e12}((F-z)/V))+1,G=new Array(U);G[0]=Object(i.prettyNumber)(z);for(b=1;b<U;b++)G[b]=Object(i.prettyNumber)(G[b-1]+V);return{min:Math.min(t,Object(r.head)(G)),max:Math.max(e,Object(r.last)(G)),ticks:G}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(132);function i(t){var e,n=t.base,i=t.tickCount,o=t.min,a=t.max,s=t.values,u=Object(r.log)(n,a);if(o>0)e=Math.floor(Object(r.log)(n,o));else{var l=Object(r.getLogPositiveMin)(s,n,a);e=Math.floor(Object(r.log)(n,l))}for(var c=u-e,h=Math.ceil(c/i),f=[],d=e;d<u+h;d+=h)f.push(Math.pow(n,d));return o<=0&&f.unshift(0),f}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(132),i=n(736);function o(t){var e=t.exponent,n=t.tickCount,o=Math.ceil(Object(r.calBase)(e,t.max)),a=Math.floor(Object(r.calBase)(e,t.min));return Object(i.default)(a,o,n).ticks.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))}},function(t,e,n){"use strict";function r(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}function i(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var i=n.slice().sort((function(t,e){return t-e})),o=[],a=0;a<e;a++){var s=a/(e-1);o.push(r(i,s))}return o}n.r(e),n.d(e,"default",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(1),i=n(491),o=n(736),a=n(492);function s(t){var e=t.min,n=t.max,s=t.tickCount,u=t.tickInterval,l=t.minLimit,c=t.maxLimit,h=Object(o.default)(e,n,s).ticks;return Object(r.isNil)(l)&&Object(r.isNil)(c)?u?Object(i.default)(e,n,u).ticks:h:Object(a.default)(t,Object(r.head)(h),Object(r.last)(h))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(109);function i(t){var e=t.min,n=t.max,i=t.minTickInterval,o=t.tickInterval,a=t.tickCount;if(o)a=Math.ceil((n-e)/o);else{var s=(n-e)/(o=Object(r.getTickInterval)(e,n,a)[1])/a;s>1&&(o*=Math.ceil(s)),i&&o<i&&(o=i)}o=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),o);for(var u=[],l=e;l<n+o;l+=o)u.push(l);return u}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(2),i=n(735);function o(t){return Object(i.default)(Object(r.__assign)({showLast:!0},t))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var r=n(109);function i(t){return new Date(t).getFullYear()}function o(t){return new Date(t,0,1).getTime()}function a(t){return new Date(t).getMonth()}function s(t,e){return new Date(t,e,1).getTime()}function u(t){var e=t.min,n=t.max,u=t.minTickInterval,l=t.tickCount,c=t.tickInterval,h=[];c||(c=(n-e)/l,u&&c<u&&(c=u)),c=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),c);var f=i(e);if(c>r.YEAR)for(var d=i(n),p=Math.ceil(c/r.YEAR),g=f;g<=d+p;g+=p)h.push(o(g));else if(c>r.MONTH){var v=Math.ceil(c/r.MONTH),m=a(e),y=function(t,e){var n=i(t),r=i(e),o=a(t);return 12*(r-n)+(a(e)-o)%12}(e,n);for(g=0;g<=y+v;g+=v)h.push(s(f,g+m))}else if(c>r.DAY){var b=(S=new Date(e)).getFullYear(),_=S.getMonth(),x=S.getDate(),w=Math.ceil(c/r.DAY),O=function(t,e){return Math.ceil((e-t)/r.DAY)}(e,n);for(g=0;g<O+w;g+=w)h.push(new Date(b,_,x+g).getTime())}else if(c>r.HOUR){b=(S=new Date(e)).getFullYear(),_=S.getMonth(),w=S.getDate();var S,C=S.getHours(),E=Math.ceil(c/r.HOUR),T=function(t,e){return Math.ceil((e-t)/r.HOUR)}(e,n);for(g=0;g<=T+E;g+=E)h.push(new Date(b,_,w,C+g).getTime())}else if(c>r.MINUTE){var A=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),M=Math.ceil(c/r.MINUTE);for(g=0;g<=A+M;g+=M)h.push(e+g*r.MINUTE)}else{var I=c;I<r.SECOND&&(I=r.SECOND);var j=Math.floor(e/r.SECOND)*r.SECOND,k=Math.ceil((n-e)/r.SECOND),P=Math.ceil(I/r.SECOND);for(g=0;g<k+P;g+=P)h.push(j+g*r.SECOND)}return h.length>=512&&console.warn("Notice: current ticks length("+h.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+c+") is too small, increase the value to solve the problem!"),h}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(25),o=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var r=e.startAngle,i=void 0===r?1.25*Math.PI:r,o=e.endAngle,a=void 0===o?7.25*Math.PI:o,s=e.innerRadius,u=void 0===s?0:s,l=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=u,n.radius=l,n.initial(),n}return Object(r.__extends)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;this.isTransposed&&(n=(e=[r,n])[0],r=e[1]);var i=this.convertDim(n,"x"),o=this.a*i,a=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(o+a),y:this.center.y+Math.sin(i)*(o+a)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=i.vec2.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),a=i.ext.angleTo(r,[1,0],!0),s=a*this.a;i.vec2.length(r)<s&&(s=i.vec2.length(r)),a=2*Math.floor((i.vec2.length(r)-s)/n)*Math.PI+a;var u=this.a*a,l=i.vec2.length(r)-u;l=Object(o.isNumberEqual)(l,0)?0:l;var c=this.invertDim(a,"x"),h=this.invertDim(l,"y");return c=Object(o.isNumberEqual)(c,0)?0:c,h=Object(o.isNumberEqual)(h,0)?0:h,this.isTransposed&&(c=(e=[h,c])[0],h=e[1]),{x:c,y:h}},e}(n(377).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(25),o=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;n.isPolar=!0,n.type="polar";var r=e.startAngle,i=void 0===r?-Math.PI/2:r,o=e.endAngle,a=void 0===o?3*Math.PI/2:o,s=e.innerRadius,u=void 0===s?0:s,l=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=u,n.radius=l,n.initial(),n}return Object(r.__extends)(e,t),e.prototype.initial=function(){for(t.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=2*Math.PI;var e,n=this.getOneBox(),r=n.maxX-n.minX,i=n.maxY-n.minY,o=Math.abs(n.minX)/r,a=Math.abs(n.minY)/i;this.height/i>this.width/r?(e=this.width/r,this.circleCenter={x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-a)*e*i}):(e=this.height/i,this.circleCenter={x:this.center.x-(.5-o)*e*r,y:this.center.y-(.5-a)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),r=t.x,i=t.y;return this.isTransposed&&(r=(e=[i,r])[0],i=e[1]),r=this.convertDim(r,"x"),i=this.convertDim(i,"y"),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),r=[t.x-n.x,t.y-n.y],a=this.startAngle,s=this.endAngle;this.isReflect("x")&&(a=(e=[s,a])[0],s=e[1]);var u=[1,0,0,0,1,0,0,0,1];i.ext.leftRotate(u,u,a);var l=[1,0,0];i.vec3.transformMat3(l,l,u);var c=[l[0],l[1]],h=i.ext.angleTo(c,r,s<a);Object(o.isNumberEqual)(h,2*Math.PI)&&(h=0);var f=i.vec2.length(r),d=h/(s-a);d=s-a>0?d:-d;var p=this.invertDim(f,"y"),g={x:0,y:0};return g.x=this.isTransposed?p:d,g.y=this.isTransposed?d:p,g},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i<Math.max(t,e);i+=Math.PI/18)n.push(Math.cos(i)),r.push(Math.sin(i));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}},e}(n(377).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r,i=n(56),o=n(304);e.default=((r={})[""+o.CONTAINER_CLASS]={position:"relative"},r[""+o.CROSSHAIR_LINE]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+o.CROSSHAIR_TEXT]={position:"absolute",color:i.default.textColor,fontFamily:i.default.fontFamily},r)},function(t,e,n){"use strict";n.r(e);var r,i=n(56),o=n(136);e.default=((r={})[""+o.CONTAINER_CLASS]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:i.default.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},r[""+o.TITLE_CLASS]={marginBottom:"4px"},r[""+o.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},r[""+o.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},r[""+o.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r[""+o.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},r[""+o.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+o.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r)},function(t,e,n){"use strict";function r(t,e,n,r,i){return{left:t<i.x,right:t+n>i.x+i.width,top:e<i.y,bottom:e+r>i.y+i.height}}function i(t,e,n,r,i,o){var a=t,s=e;switch(o){case"left":a=t-r-n,s=e-i/2;break;case"right":a=t+n,s=e-i/2;break;case"top":a=t-r/2,s=e-i-n;break;case"bottom":a=t-r/2,s=e+n;break;default:a=t+n,s=e-i-n}return{x:a,y:s}}function o(t,e,n,o,a,s,u){var l=i(t,e,n,o,a,s);if(u){var c=r(l.x,l.y,o,a,u);"auto"===s?(c.right&&(l.x=Math.max(0,t-o-n)),c.top&&(l.y=Math.max(0,e-a-n))):"top"===s||"bottom"===s?(c.left&&(l.x=u.x),c.right&&(l.x=u.x+u.width-o),"top"===s&&c.top&&(l.y=e+n),"bottom"===s&&c.bottom&&(l.y=e-a-n)):(c.top&&(l.y=u.y),c.bottom&&(l.y=u.y+u.height-a),"left"===s&&c.left&&(l.x=t+n),"right"===s&&c.right&&(l.x=t-o-n))}return l}n.r(e),n.d(e,"getOutSides",(function(){return r})),n.d(e,"getPointByPosition",(function(){return i})),n.d(e,"getAlignPoint",(function(){return o}))},function(t,e,n){"use strict";n.r(e),n.d(e,"Trend",(function(){return s}));var r=n(2),i=n(96),o=n(804),a=n(912),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:o.BACKGROUND_STYLE,lineStyle:o.LINE_STYLE,areaStyle:o.AREA_STYLE})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,i=e.height,o=e.data,s=e.smooth,u=e.isArea,l=e.backgroundStyle,c=e.lineStyle,h=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(r.__assign)({x:0,y:0,width:n,height:i},l)});var f=Object(a.dataToPath)(o,n,i,s);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:Object(r.__assign)({path:f},c)}),u){var d=Object(a.linePathToAreaPath)(f,n,i,o);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:Object(r.__assign)({path:d},h)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(i.default);e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"parseAction",(function(){return u}));var r=n(2),i=n(1),o=n(418),a=n(1598),s=n(662);function u(t,e,n){var r=t.split(":"),i=r[0],a=e.getAction(i)||Object(o.createAction)(i,e);if(!a)throw new Error("There is no action named ".concat(i));return{action:a,methodName:r[1],arg:n}}function l(t){var e=t.action,n=t.methodName,r=t.arg;if(!e[n])throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(n));e[n](r)}var c="start",h="showEnable",f="end",d="rollback",p="processing",g=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return Object(r.__extends)(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;Object(i.each)(this.steps,(function(e,n){Object(i.each)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.bindEvent(e.trigger,r)}))}))},e.prototype.clearEvents=function(){var t=this;Object(i.each)(this.steps,(function(e,n){Object(i.each)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.offEvent(e.trigger,r)}))}))},e.prototype.initContext=function(){var t=this.view,e=new a.default(t);this.context=e;var n=this.steps;Object(i.each)(n,(function(t){Object(i.each)(t,(function(t){if(Object(i.isFunction)(t.action))t.actionObject={action:Object(o.createCallbackAction)(t.action,e),methodName:"execute"};else if(Object(i.isString)(t.action))t.actionObject=u(t.action,e,t.arg);else if(Object(i.isArray)(t.action)){var n=t.action,r=Object(i.isArray)(t.arg)?t.arg:[t.arg];t.actionObject=[],Object(i.each)(n,(function(n,i){t.actionObject.push(u(n,e,r[i]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===h)return!0;if(t===p)return e===c;if(t===c)return e!==p;if(t===f)return e===p||e===c;if(t===d){if(n[f])return e===f;if(e===c)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==h&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,r=this.context,o=this.callbackCaches,a=e.actionObject;if(e.action&&a){var s=this.getKey(t,e);if(!o[s]){var u=function(o){r.event=o,n.isAllowExecute(t,e)?(Object(i.isArray)(a)?Object(i.each)(a,(function(t){r.event=o,l(t)})):(r.event=o,l(a)),n.afterExecute(t,e),e.callback&&(r.event=o,e.callback(r))):r.event=null};e.debounce?o[s]=Object(i.debounce)(u,e.debounce.wait,e.debounce.immediate):e.throttle?o[s]=Object(i.throttle)(u,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):o[s]=u}return o[s]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(s.default);e.default=g},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(n(95).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(24),o=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find((function(e){return e.name===t}))},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,n=this.actions.indexOf(t);n>=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return Object(r.get)(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=Object(i.getComponents)(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var r=e.getBBox();return t?e.get("name")===t&&Object(i.isInBox)(r,n):Object(i.isInBox)(r,n)}))},t.prototype.destroy=function(){Object(r.each)(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}();e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"createLightStyleSheet",(function(){return g})),n.d(e,"antvLight",(function(){return v}));var r=n(2),i="#000",o="#595959",a="#8C8C8C",s="#BFBFBF",u="#D9D9D9",l="#F0F0F0",c="#FFFFFF",h="#D9D9D9",f=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],d=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],p=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],g=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?f:e,g=t.paletteQualitative20,v=void 0===g?d:g,m=t.brandColor,y=void 0===m?n[0]:m,b={backgroundColor:"transparent",brandColor:y,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:v,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:p,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:s,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:o,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:h,axisTickLineBorderColor:s,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:u,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:a,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:u,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:a,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:y,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:o,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:i,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:i,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:a,legendPageNavigatorTextFontSize:12,sliderRailFillColor:u,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:a,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:l,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:s,annotationArcBorderColor:u,annotationArcBorder:1,annotationLineBorderColor:s,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:o,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:i,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:s,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:o,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:o,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:c,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:o,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:c,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:s,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:y,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:c,pointBorderOpacity:1,pointActiveBorderColor:i,pointSelectedBorder:2,pointSelectedBorderColor:i,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:y,hollowPointBorderOpacity:.95,hollowPointFillColor:c,hollowPointActiveBorder:1,hollowPointActiveBorderColor:i,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:i,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:y,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:y,areaFillOpacity:.25,areaActiveFillColor:y,areaActiveFillOpacity:.5,areaSelectedFillColor:y,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:y,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:i,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:i,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:y,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:i,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:i,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:y,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:c,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:i,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:i,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return Object(r.__assign)(Object(r.__assign)({},b),t)},v=g()},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(97),a=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return Object(i.some)(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,i=n.type,a=n.cfg,s="theta"===i,u=Object(r.__assign)({start:t,end:e},a),l=Object(o.getCoordinate)(s?"polar":i);return this.coordinate=new l(u),this.coordinate.type=i,s&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return Object(r.__assign)({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;Object(i.each)(n,(function(n){var o,a=Object(r.__read)(n),s=a[0],u=a.slice(1);(!!Object(i.isNil)(t)||t.includes(s))&&(o=e.coordinate)[s].apply(o,Object(r.__spreadArray)([],Object(r.__read)(u),!1))}))},t}();e.default=a},function(t,e,n){"use strict";function r(t){var e=t.getController("axis"),n=t.getController("legend"),r=t.getController("annotation");[e,t.getController("slider"),t.getController("scrollbar"),n,r].forEach((function(t){t&&t.layout()}))}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"ScalePool",(function(){return o}));var r=n(1),i=n(171),o=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,o){var a=n,s=this.getScaleMeta(o);if(0===e.length&&s){var u=s.scale,l={type:u.type};u.isCategory&&(l.values=u.values),a=Object(r.deepMix)(l,s.scaleDef,n)}var c=Object(i.createScaleByField)(t,e,a);return this.cacheScale(c,n,o),c},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(o,a){var s=Number.MAX_SAFE_INTEGER,u=Number.MIN_SAFE_INTEGER,l=[];Object(r.each)(o,(function(t){var e=n.getScale(t);u=Object(r.isNumber)(e.max)?Math.max(u,e.max):u,s=Object(r.isNumber)(e.min)?Math.min(s,e.min):s,Object(r.each)(e.values,(function(t){l.includes(t)||l.push(t)}))})),Object(r.each)(o,(function(o){var a=n.getScale(o);if(a.isContinuous)a.change({min:s,max:u,values:l});else if(a.isCategory){var c=a.range,h=n.getScaleMeta(o);l&&!Object(r.get)(h,["scaleDef","range"])&&(c=Object(i.getDefaultCategoryScaleRange)(Object(r.deepMix)({},a,{values:l}),t,e)),a.change({values:l,range:c})}}))}))},t.prototype.cacheScale=function(t,e,n){var r=this.getScaleMeta(n);r&&r.scale.type===t.type?(Object(i.syncScale)(r.scale,t),r.scaleDef=e):(r={key:n,scale:t,scaleDef:e},this.scales.set(n,r));var o=this.getSyncKey(r);if(r.syncKey=o,this.removeFromSyncScales(n),o){var a=this.syncScales.get(o);a||(a=[],this.syncScales.set(o,a)),a.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=Object(r.last)(t.split("-")),i=this.syncScales.get(n);i&&i.length&&(e=this.getScaleMeta(i[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,r=this.syncScales.get(n);if(r&&r.length){var i=r.indexOf(t);-1!==i&&r.splice(i,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,r){var i=n.indexOf(t);if(-1!==i)return n.splice(i,1),0===n.length&&e.syncScales.delete(r),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,i=e.field,o=Object(r.get)(n,["sync"]);return!0===o?i:!1===o?void 0:o},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"calculatePadding",(function(){return l}));var r=n(2),i=n(1),o=n(7),a=n(126),s=n(431),u=n(525);function l(t){var e=t.padding;if(!Object(s.isAutoPadding)(e))return new(u.PaddingCal.bind.apply(u.PaddingCal,Object(r.__spreadArray)([void 0],Object(r.__read)(Object(s.parsePadding)(e)),!1)));var n=t.viewBBox,l=new u.PaddingCal,c=[],h=[],f=[];return Object(i.each)(t.getComponents(),(function(t){var e=t.type;e===o.COMPONENT_TYPE.AXIS?c.push(t):[o.COMPONENT_TYPE.LEGEND,o.COMPONENT_TYPE.SLIDER,o.COMPONENT_TYPE.SCROLLBAR].includes(e)?h.push(t):e!==o.COMPONENT_TYPE.GRID&&e!==o.COMPONENT_TYPE.TOOLTIP&&f.push(t)})),Object(i.each)(c,(function(t){var e=t.component.getLayoutBBox(),r=new a.BBox(e.x,e.y,e.width,e.height).exceed(n);l.max(r)})),Object(i.each)(h,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=e.get("padding"),o=new a.BBox(r.x,r.y,r.width,r.height).expand(i);l.inc(o,n)})),Object(i.each)(f,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=new a.BBox(r.x,r.y,r.width,r.height);l.inc(i,n)})),l}},function(t,e,n){"use strict";function r(t,e,n){var r=n.instance();e.forEach((function(t){t.autoPadding=r.max(t.autoPadding.getPadding())}))}n.r(e),n.d(e,"defaultSyncViewPadding",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"group",(function(){return o}));var r=n(2),i=n(1);function o(t,e,n){var o,a;if(void 0===n&&(n={}),!e)return[t];var s=Object(i.groupToMap)(t,e),u=[];if(1===e.length&&n[e[0]]){var l=n[e[0]];try{for(var c=Object(r.__values)(l),h=c.next();!h.done;h=c.next()){var f=h.value,d=s["_".concat(f)];d&&u.push(d)}}catch(t){o={error:t}}finally{try{h&&!h.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}}else for(var p in s)if(s.hasOwnProperty(p)){var g=s[p];u.push(g)}return u}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(155),a=n(351),s=n(189),u=n(78),l=n(199),c=n(7),h=n(1607),f=function(){function t(t){this.shapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){return void 0===n&&(n=!1),Object(r.__awaiter)(this,void 0,void 0,(function(){var a,s,u,l,c,f,d,p,g=this;return Object(r.__generator)(this,(function(v){switch(v.label){case 0:if(a={},s=this.createOffscreenGroup(),!t.length)return[3,2];try{for(u=Object(r.__values)(t),l=u.next();!l.done;l=u.next())(c=l.value)&&(a[c.id]=this.renderLabel(c,s))}catch(t){d={error:t}}finally{try{l&&!l.done&&(p=u.return)&&p.call(u)}finally{if(d)throw d.error}}return[4,this.doLayout(t,e,a)];case 1:v.sent(),this.renderLabelLine(t,a),this.renderLabelBackground(t,a),this.adjustLabel(t,a),v.label=2;case 2:return f=this.shapesMap,Object(i.each)(a,(function(t,e){if(t.destroyed)delete a[e];else{if(f[e]){var s=t.get("data"),u=t.get("origin"),l=t.get("coordinate"),c=t.get("animateCfg"),d=f[e];Object(h.updateLabel)(d,a[e],{data:s,origin:u,animateCfg:c,coordinate:l}),a[e]=d}else{if(g.container.destroyed)return;g.container.add(t);var p=Object(i.get)(t.get("animateCfg"),n?"enter":"appear");p&&Object(o.doAnimate)(t,p,{toAttrs:Object(r.__assign)({},t.attr()),coordinate:t.get("coordinate")})}delete f[e]}})),Object(i.each)(f,(function(t){var e=Object(i.get)(t.get("animateCfg"),"leave");e?Object(o.doAnimate)(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.shapesMap=a,s.destroy(),[2]}}))}))},t.prototype.clear=function(){this.container.clear(),this.shapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},t.prototype.renderLabel=function(t,e){var n,o=t.id,a=t.elementId,s=t.data,u=t.mappingData,h=t.coordinate,f=t.animate,d=t.content,p={id:o,elementId:a,capture:t.capture,data:s,origin:Object(r.__assign)(Object(r.__assign)({},u),{data:u[c.FIELD_ORIGIN]}),coordinate:h},g=e.addGroup(Object(r.__assign)({name:"label",animateCfg:!1!==this.animate&&null!==f&&!1!==f&&Object(i.deepMix)({},this.animate,f)},p));if(d.isGroup&&d.isGroup()||d.isShape&&d.isShape()){var v=d.getCanvasBBox(),m=v.width,y=v.height,b=Object(i.get)(t,"textAlign","left"),_=t.x,x=t.y-y/2;"center"===b?_-=m/2:"right"!==b&&"end"!==b||(_-=m),Object(l.translate)(d,_,x),n=d,g.add(d)}else{var w=Object(i.get)(t,["style","fill"]);n=g.addShape("text",Object(r.__assign)({attrs:Object(r.__assign)(Object(r.__assign)({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:Object(i.get)(t,"textBaseline","middle"),text:t.content},t.style),{fill:Object(i.isNull)(w)?t.color:w})},p))}return t.rotate&&Object(l.rotate)(n,t.rotate),g},t.prototype.doLayout=function(t,e,n){return Object(r.__awaiter)(this,void 0,void 0,(function(){var o,s=this;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return this.layout?(o=Object(i.isArray)(this.layout)?this.layout:[this.layout],[4,Promise.all(o.map((function(r){var o=Object(a.getGeometryLabelLayout)(Object(i.get)(r,"type",""));if(o){var u=[],l=[];return Object(i.each)(n,(function(t,n){u.push(t),l.push(e[t.get("elementId")])})),o(t,u,l,s.region,r.cfg)}})))]):[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){Object(i.each)(t,(function(t){var n=Object(i.get)(t,"coordinate");if(t&&n){var o=n.getCenter(),a=n.getRadius();if(t.labelLine){var s=Object(i.get)(t,"labelLine",{}),l=t.id,c=s.path;if(!c){var h=Object(u.polarToCartesian)(o.x,o.y,a,t.angle);c=[["M",h.x,h.y],["L",t.x,t.y]]}var f=e[l];f.destroyed||f.addShape("path",{capture:!1,attrs:Object(r.__assign)({path:c,stroke:t.color?t.color:Object(i.get)(t,["style","fill"],"#000"),fill:null},s.style),id:l,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){Object(i.each)(t,(function(t){var n=Object(i.get)(t,"coordinate"),o=Object(i.get)(t,"background");if(o&&n){var a=t.id,u=e[a];if(!u.destroyed){var l=u.getChildren()[0];if(l){var c=Object(s.getLabelBackgroundInfo)(u,t,o.padding),h=c.rotation,f=Object(r.__rest)(c,["rotation"]),d=u.addShape("rect",{attrs:Object(r.__assign)(Object(r.__assign)({},f),o.style||{}),id:a,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(d.setZIndex(-1),h){var p=l.getMatrix();d.setMatrix(p)}}}}}))},t.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t,e){Object(i.each)(t,(function(t){if(t){var n=t.id,r=e[n];if(!r.destroyed){var o=r.findAll((function(t){return"path"!==t.get("type")}));Object(i.each)(o,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}();e.default=f},function(t,e,n){"use strict";n.r(e),n.d(e,"updateLabel",(function(){return a}));var r=n(1),i=n(155),o=n(78);function a(t,e,n){var s=n.data,u=n.origin,l=n.animateCfg,c=n.coordinate,h=Object(r.get)(l,"update");t.set("data",s),t.set("origin",u),t.set("animateCfg",l),t.set("coordinate",c),t.set("visible",e.get("visible")),(t.getChildren()||[]).forEach((function(r,f){var d=e.getChildByIndex(f);if(d){r.set("data",s),r.set("origin",u),r.set("animateCfg",l),r.set("coordinate",c);var p=Object(o.getReplaceAttrs)(r,d);h?Object(i.doAnimate)(r,h,{toAttrs:p,coordinate:c}):r.attr(p),d.isGroup()&&a(r,d,n)}else t.removeChild(r),r.remove(!0)})),Object(r.each)(e.getChildren(),(function(e,n){n>=t.getCount()&&(e.destroyed||t.add(e))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"createDarkStyleSheet",(function(){return v})),n.d(e,"antvDark",(function(){return m}));var r=n(2),i="#000",o="#262626",a="#BFBFBF",s="#F0F0F0",u="#FFFFFF",l="#A6A6A6",c="#737373",h="#404040",f="#262626",d=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],p=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],g=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],v=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?d:e,v=t.paletteQualitative20,m=void 0===v?p:v,y=t.brandColor,b={backgroundColor:"#141414",brandColor:void 0===y?n[0]:y,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:n,paletteQualitative20:m,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:g,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:h,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:l,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:o,axisTickLineBorderColor:h,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:f,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:c,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:f,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:c,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:d[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:l,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:c,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:c,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:l,legendPageNavigatorTextFontSize:12,sliderRailFillColor:f,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:c,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:s,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:a,annotationArcBorderColor:f,annotationArcBorder:1,annotationLineBorderColor:h,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:l,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:u,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:h,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:l,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:l,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:i,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:l,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:i,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:h,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:d[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:i,pointBorderOpacity:1,pointActiveBorderColor:u,pointSelectedBorder:2,pointSelectedBorderColor:u,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:d[0],hollowPointBorderOpacity:.95,hollowPointFillColor:i,hollowPointActiveBorder:1,hollowPointActiveBorderColor:u,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:u,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:d[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:d[0],areaFillOpacity:.25,areaActiveFillColor:d[0],areaActiveFillOpacity:.5,areaSelectedFillColor:d[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:d[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:u,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:u,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:d[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:u,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:u,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:d[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:i,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:u,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:u,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return Object(r.__assign)(Object(r.__assign)({},b),t)},m=v()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(62);function i(t,e,n,i,o,a,s){var u=o/2;return Object(r.inBox)(t-u,e-u,n,o,a,s)||Object(r.inBox)(t+n-u,e-u,o,i,a,s)||Object(r.inBox)(t+u,e+i-u,n,o,a,s)||Object(r.inBox)(t-u,e+u,o,i,a,s)}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(277),i=n(442);function o(t,e,n,o,a,s,u,l){return Object(r.default)(t+a,e,t+n-a,e,s,u,l)||Object(r.default)(t+n,e+a,t+n,e+o-a,s,u,l)||Object(r.default)(t+n-a,e+o,t+a,e+o,s,u,l)||Object(r.default)(t,e+o-a,t,e+a,s,u,l)||Object(i.default)(t+n-a,e+a,a,1.5*Math.PI,2*Math.PI,s,u,l)||Object(i.default)(t+n-a,e+o-a,a,0,.5*Math.PI,s,u,l)||Object(i.default)(t+a,e+o-a,a,.5*Math.PI,Math.PI,s,u,l)||Object(i.default)(t+a,e+a,a,Math.PI,1.5*Math.PI,s,u,l)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getShape",(function(){return a}));var r=n(88);function i(t,e,n){var i=t.getTotalMatrix();if(i){var o=function(t,e){if(e){var n=Object(r.invert)(e);return Object(r.multiplyVec2)(n,t)}return t}([e,n,1],i);return[o[0],o[1]]}return[e,n]}function o(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!Object(r.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var o=i(t,e,n),a=o[0],s=o[1];if(t.isClipped(a,s))return!1}var u=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=u.minX&&e<=u.maxX&&n>=u.minY&&n<=u.maxY}function a(t,e,n){if(!o(t,e,n))return null;for(var r=null,s=t.getChildren(),u=s.length-1;u>=0;u--){var l=s[u];if(l.isGroup())r=a(l,e,n);else if(o(l,e,n)){var c=l,h=i(l,e,n),f=h[0],d=h[1];c.isInShape(f,d)&&(r=l)}if(r)break}return r}},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return s}));var r=n(380);n.d(e,"Shape",(function(){return r}));var i=n(88);n.d(e,"Event",(function(){return i.Event})),n.d(e,"Base",(function(){return i.Base})),n.d(e,"AbstractCanvas",(function(){return i.AbstractCanvas})),n.d(e,"AbstractGroup",(function(){return i.AbstractGroup})),n.d(e,"AbstractShape",(function(){return i.AbstractShape})),n.d(e,"PathUtil",(function(){return i.PathUtil})),n.d(e,"getBBoxMethod",(function(){return i.getBBoxMethod})),n.d(e,"registerBBox",(function(){return i.registerBBox})),n.d(e,"getTextHeight",(function(){return i.getTextHeight})),n.d(e,"assembleFont",(function(){return i.assembleFont})),n.d(e,"isAllowCapture",(function(){return i.isAllowCapture})),n.d(e,"multiplyVec2",(function(){return i.multiplyVec2})),n.d(e,"invert",(function(){return i.invert})),n.d(e,"getOffScreenContext",(function(){return i.getOffScreenContext})),n.d(e,"registerEasing",(function(){return i.registerEasing}));var o=n(1154);n.d(e,"Canvas",(function(){return o.default}));var a=n(470);n.d(e,"Group",(function(){return a.default}));var s="0.5.6"},function(t,e,n){"use strict";n.r(e),n.d(e,"parseRadius",(function(){return a})),n.d(e,"parsePath",(function(){return s}));var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s,]+/gi;function a(t){var e=0,n=0,i=0,o=0;return Object(r.isArray)(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o}}function s(t){return t=t||[],Object(r.isArray)(t)?t:Object(r.isString)(t)?(t=t.match(i),Object(r.each)(t,(function(e,n){if((e=e.match(o))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}Object(r.each)(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(1615),o=n(1616),a=n(914),s=n(1617),u=n(1618),l=n(120),c=function(){function t(t){var e=Object(l.createSVGElement)("defs"),n=Object(r.uniqueId)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},t.prototype.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new a.default(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),this.add(r),r.id},t.prototype.addGradient=function(t){var e=new i.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new a.default(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new o.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new u.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new s.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(120),o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function u(t){var e=t.match(s);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),Object(r.each)(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}var l=function(){function t(t){this.cfg={};var e=null,n=Object(r.uniqueId)("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,i,a=o.exec(t),s=Object(r.mod)(Object(r.toRadian)(parseFloat(a[1])),2*Math.PI),l=a[2];s>=0&&s<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=s&&s<Math.PI?(n={x:1,y:0},i={x:0,y:1}):Math.PI<=s&&s<1.5*Math.PI?(n={x:1,y:1},i={x:0,y:0}):(n={x:0,y:1},i={x:1,y:0});var c=Math.tan(s),h=c*c,f=(i.x-n.x+c*(i.y-n.y))/(h+1)+n.x,d=c*(i.x-n.x+c*(i.y-n.y))/(h+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",f),e.setAttribute("y2",d),e.innerHTML=u(l)}(t,e=Object(i.createSVGElement)("linearGradient")):function(t,e){var n=a.exec(t),r=parseFloat(n[1]),i=parseFloat(n[2]),o=parseFloat(n[3]),s=n[4];e.setAttribute("cx",r),e.setAttribute("cy",i),e.setAttribute("r",o),e.innerHTML=u(s)}(t,e=Object(i.createSVGElement)("radialGradient")),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(120),o={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a={x:"-40%",y:"-40%",width:"200%",height:"200%"},s=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=Object(i.createSVGElement)("filter");return Object(r.each)(a,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=Object(r.uniqueId)("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return Object(r.each)(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[o[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n dx="'+(t.dx||0)+'"\n dy="'+(t.dy||0)+'"\n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}();e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(120),o=function(){function t(t){this.type="clip",this.cfg={};var e=Object(i.createSVGElement)("clipPath");this.el=e,this.id=Object(r.uniqueId)("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(120),o=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function t(t){this.cfg={};var e=Object(i.createSVGElement)("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=Object(i.createSVGElement)("image");e.appendChild(n);var a=Object(r.uniqueId)("pattern_");e.id=a,this.el=e,this.id=a,this.cfg=t;var s=o.exec(t)[2];n.setAttribute("href",s);var u=new Image;function l(){e.setAttribute("width",""+u.width),e.setAttribute("height",""+u.height)}return s.match(/^data:/i)||(u.crossOrigin="Anonymous"),u.src=s,u.complete?l():(u.onload=l,u.src=u.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(7),o=n(495),a=(n(1967),function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var r=e.startOnZero,i=void 0===r||r,o=e.sortable,a=void 0!==o&&o,s=e.showSinglePoint,u=void 0!==s&&s;return n.startOnZero=i,n.sortable=a,n.showSinglePoint=u,n}return Object(r.__extends)(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,o=t.length;r<o;r++){var a=t[r];e.push(a.points),n.push(a[i.FIELD_ORIGIN])}return{points:e,data:n}},e.prototype.getYMinValue=function(){return this.startOnZero?t.prototype.getYMinValue.call(this):this.getYScale().min},e}(o.default));e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(178),o=(n(1968),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return Object(r.__extends)(e,t),e}(i.default));e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(247),o=n(1),a=n(7),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return Object(r.__extends)(e,t),e.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var n=0;n<t.length;n++){var r=t[n],i=this.prepareRange(r),a=this.prepareSize(),s=Object(o.get)(this.styleOption,["cfg","shadowBlur"]);Object(o.isNumber)(s)||(s=a/2),this.prepareGreyScaleBlurredCircle(a,s),this.drawWithRange(r,i,a,s)}},e.prototype.color=function(t,e){return this.createAttrOption("color",t,"function"!=typeof e?e:""),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color").getFields()[0],n=1/0,r=-1/0;return t.forEach((function(t){var i=t[a.FIELD_ORIGIN][e];i>r&&(r=i),i<n&&(n=i)})),n===r&&(n=r-1),[n,r]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return Object(o.isNumber)(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),r=t+e,i=n.getContext("2d");n.width=n.height=2*r,i.clearRect(0,0,n.width,n.height),i.shadowOffsetX=i.shadowOffsetY=2*r,i.shadowBlur=e,i.shadowColor="black",i.beginPath(),i.arc(-r,-r,t,0,2*Math.PI,!0),i.closePath(),i.fill()},e.prototype.drawWithRange=function(t,e,n,i){var o,s,u=this.coordinate,l=u.start,c=u.end,h=this.coordinate.getWidth(),f=this.coordinate.getHeight(),d=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var p=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t[a.FIELD_ORIGIN][d]<=e[1]&&t[a.FIELD_ORIGIN][d]>=e[0]})));var g=this.scales[d];try{for(var v=Object(r.__values)(t),m=v.next();!m.done;m=v.next()){var y=m.value,b=this.getDrawCfg(y),_=b.x,x=b.y,w=g.scale(y[a.FIELD_ORIGIN][d]);this.drawGrayScaleBlurredCircle(_-l.x,x-c.y,n+i,w,p)}}catch(t){o={error:t}}finally{try{m&&!m.done&&(s=v.return)&&s.call(v)}finally{if(o)throw o.error}}var O=p.getImageData(0,0,h,f);this.clearShadowCanvasCtx(),this.colorize(O),p.putImageData(O,0,0);var S=this.getImageShape();S.attr("x",l.x),S.attr("y",c.y),S.attr("width",h),S.attr("height",f),S.attr("img",p.canvas),S.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,r,i){var o=this.getGrayScaleBlurredCanvas();i.globalAlpha=r,i.drawImage(o,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,r=this.paletteCache,a=3;a<n.length;a+=4){var s=n[a];if(Object(o.isNumber)(s)){var u=r[s]?r[s]:i.default.rgb2arr(e.gradient(s/256));n[a-3]=u[0],n[a-2]=u[1],n[a-1]=u[2],n[a]=s}}},e.prototype.getImageShape=function(){var t=this.imageShape;return t||(t=this.container.addShape({type:"image",attrs:{}}),this.imageShape=t,t)},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=t.map((function(t){return t[a.FIELD_ORIGIN]}));return Object(r.__assign)(Object(r.__assign)({},e),{mappingData:t,data:n})},e}(n(178).default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(98),a=n(178),s=(n(1969),n(496)),u=n(171),l=function(t){function e(e){var n=t.call(this,e)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var r=e.background;return n.background=r,n}return Object(r.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");if(i){n=this.getAttributeValues(i,e)[0];var a=this.coordinate;n/=Object(o.getXDimensionLength)(a)}else this.defaultSize||(this.defaultSize=Object(s.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e=this.getYScale();if("theta"===this.coordinate.type)e.change({nice:!1,min:0,max:Object(u.getMaxScale)(e)});else{var n=this.scaleDefs,r=e.field,o=e.min,a=e.max;"time"!==e.type&&(o>0&&!Object(i.get)(n,[r,"min"])&&e.change({min:0}),a<=0&&!Object(i.get)(n,[r,"max"])&&e.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(a.default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(495),o=(n(664),function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var r=e.sortable,i=void 0!==r&&r;return n.sortable=i,n}return Object(r.__extends)(e,t),e}(i.default));e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(178),o=(n(1970),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return Object(r.__extends)(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return Object(r.__assign)(Object(r.__assign)({},n),{isStack:!!this.getAdjust("stack")})},e}(i.default));e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(178),a=(n(1971),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return Object(r.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),o=r.x,a=r.y;if(!Object(i.isArray)(o)||!Object(i.isArray)(a)){var s=this.getXScale(),u=this.getYScale(),l=.5/s.values.length,c=.5/u.values.length;s.isCategory&&u.isCategory?(o=[o-l,o-l,o+l,o+l],a=[a-c,a+c,a+c,a-c]):Object(i.isArray)(o)?(o=[(n=o)[0],n[0],n[1],n[1]],a=[a-c/2,a+c/2,a+c/2,a-c/2]):Object(i.isArray)(a)&&(a=[(n=a)[0],n[1],n[1],n[0]],o=[o-l/2,o-l/2,o+l/2,o+l/2]),r.x=o,r.y=a}return r},e}(o.default));e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(98),o=n(178),a=(n(1972),n(496)),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return Object(r.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),o=this.getAttribute("size");if(o){n=this.getAttributeValues(o,e)[0];var s=this.coordinate;n/=Object(i.getXDimensionLength)(s)}else this.defaultSize||(this.defaultSize=Object(a.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r},e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(7),a=n(98),s=n(496),u=n(178),l=(n(1973),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e}return Object(r.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),u=this.getAttribute("size");if(u){n=this.getAttributeValues(u,e)[0];var l=this.coordinate;n/=Object(a.getXDimensionLength)(l)}else this.defaultSize||(this.defaultSize=Object(s.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r._size=Object(i.get)(e[o.FIELD_ORIGIN],[this._sizeField]),r},e.prototype.initAttributes=function(){var e=this.attributeOption,n=e.size?e.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=n,delete e.size,t.prototype.initAttributes.call(this)},e}(u.default));e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getLabelValueDir=function(t){var e=t.points;return e[0].y<=e[2].y?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,i,o){var a,s=t.prototype.getLabelOffsetPoint.call(this,e,n,i),u=this.getCoordinate(),l=u.isTransposed?"x":"y",c=this.getLabelValueDir(e.mappingData);return s=Object(r.__assign)(Object(r.__assign)({},s),((a={})[l]=s[l]*c,a)),u.isReflect("x")&&(s=Object(r.__assign)(Object(r.__assign)({},s),{x:-1*s.x})),u.isReflect("y")&&(s=Object(r.__assign)(Object(r.__assign)({},s),{y:-1*s.y})),s},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.theme;return Object(i.deepMix)({},n,r.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,r){var o,a,s,u,l=this.getCoordinate(),c=l.isTransposed,h=e.points,f=l.convert(h[0]),d=l.convert(h[2]),p=this.getLabelValueDir(e),g=Object(i.isArray)(e.shape)?e.shape[0]:e.shape;if("funnel"===g||"pyramid"===g){var v=Object(i.get)(e,"nextPoints"),m=Object(i.get)(e,"points");if(v){var y=l.convert(m[0]),b=l.convert(m[1]),_=l.convert(v[0]),x=l.convert(v[1]);c?(o=Math.min(_.y,y.y),s=Math.max(_.y,y.y),a=(b.x+x.x)/2,u=(y.x+_.x)/2):(o=Math.min((b.y+x.y)/2,(y.y+_.y)/2),s=Math.max((b.y+x.y)/2,(y.y+_.y)/2),a=x.x,u=y.x)}else o=Math.min(d.y,f.y),s=Math.max(d.y,f.y),a=d.x,u=f.x}else o=Math.min(d.y,f.y),s=Math.max(d.y,f.y),a=d.x,u=f.x;switch(r){case"right":t.x=a,t.y=(o+s)/2,t.textAlign=Object(i.get)(t,"textAlign",p>0?"left":"right");break;case"left":t.x=u,t.y=(o+s)/2,t.textAlign=Object(i.get)(t,"textAlign",p>0?"left":"right");break;case"bottom":c&&(t.x=(a+u)/2),t.y=s,t.textAlign=Object(i.get)(t,"textAlign","center"),t.textBaseline=Object(i.get)(t,"textBaseline",p>0?"bottom":"top");break;case"middle":c&&(t.x=(a+u)/2),t.y=(o+s)/2,t.textAlign=Object(i.get)(t,"textAlign","center"),t.textBaseline=Object(i.get)(t,"textBaseline","middle");break;case"top":c&&(t.x=(a+u)/2),t.y=o,t.textAlign=Object(i.get)(t,"textAlign","center"),t.textBaseline=Object(i.get)(t,"textBaseline",p>0?"bottom":"top")}},e}(n(379).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(98),a=n(78),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return Object(r.__extends)(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return Object(i.deepMix)({},r,Object(i.get)(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var r;return e<0&&((r=t)>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),r={x:Object(i.isArray)(t.x)?t.x[0]:t.x,y:t.y[0]},a={x:Object(i.isArray)(t.x)?t.x[1]:t.x,y:t.y[1]},s=Object(o.getAngleByPoint)(n,r);if(t.points&&t.points[0].y===t.points[1].y)e=s;else{var u=Object(o.getAngleByPoint)(n,a);s>=u&&(u+=2*Math.PI),e=s+(u-s)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),i=n.getCenter(),o=n.getRadius()+e;return Object(r.__assign)(Object(r.__assign)({},Object(a.polarToCartesian)(i.x,i.y,o,t)),{angle:t,r:o})},e}(n(747).default);e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"distribute",(function(){return a}));var r=n(2),i=n(1),o=n(78);function a(t,e,n,a){if(t.length&&e.length){var s=t[0]?t[0].offset:0,u=e[0].get("coordinate"),l=u.getRadius(),c=u.getCenter();if(s>0){var h=2*(l+s)+28,f={start:u.start,end:u.end},d=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?d[0].push(t):d[1].push(t))})),d.forEach((function(t,n){var o=h/14;t.length>o&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(o,t.length-o)),t.sort((function(t,e){return t.y-e.y})),function(t,e,n,o,a,s){var u,l,c,h=!0,f=o.start,d=o.end,p=Math.min(f.y,d.y),g=Math.abs(f.y-d.y),v=0,m=Number.MIN_VALUE,y=e.map((function(t){return t.y>v&&(v=t.y),t.y<m&&(m=t.y),{size:n,targets:[t.y-p]}}));for(m-=p,v-p>g&&(g=v-p);h;)for(y.forEach((function(t){var e=(Math.min.apply(m,t.targets)+Math.max.apply(m,t.targets))/2;t.pos=Math.min(Math.max(m,e-t.size/2),g-t.size)})),h=!1,c=y.length;c--;)if(c>0){var b=y[c-1],_=y[c];b.pos+b.size>_.pos&&(b.size+=_.size,b.targets=b.targets.concat(_.targets),b.pos+b.size>g&&(b.pos=g-b.size),y.splice(c,1),h=!0)}c=0,y.forEach((function(t){var r=p+n/2;t.targets.forEach((function(){e[c].y=t.pos+r,r+=n,c++}))}));var x={};try{for(var w=Object(r.__values)(t),O=w.next();!O.done;O=w.next()){var S=O.value;x[S.get("id")]=S}}catch(t){u={error:t}}finally{try{O&&!O.done&&(l=w.return)&&l.call(w)}finally{if(u)throw u.error}}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-a.y),2);if(e<n)t.x=a.x;else{var r=Math.sqrt(e-n);t.x=s?a.x+r:a.x-r}var o=x[t.id];o.attr("x",t.x),o.attr("y",t.y);var u=Object(i.find)(o.getChildren(),(function(t){return"text"===t.get("type")}));u&&(u.attr("y",t.y),u.attr("x",t.x))}))}(e,t,14,f,c,n)}))}Object(i.each)(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,r=Object(o.polarToCartesian)(c.x,c.y,l,n),a=Object(o.polarToCartesian)(c.x,c.y,l+e/2,n),s=t.x+Object(i.get)(t,"offsetX",0),u=t.y+Object(i.get)(t,"offsetY",0),h={x:s-4*Math.cos(n),y:u-4*Math.sin(n)};Object(i.isObject)(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M ".concat(r.x),"".concat(r.y," Q").concat(a.x),"".concat(a.y," ").concat(h.x),h.y].join(",")}}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"pieOuterLabelLayout",(function(){return s}));var r=n(2),i=n(1),o=n(78),a=n(748);function s(t,e,n,s){var u,l,c=Object(i.filter)(t,(function(t){return!Object(i.isNil)(t)})),h=e[0]&&e[0].get("coordinate");if(h){var f=h.getCenter(),d=h.getRadius(),p={};try{for(var g=Object(r.__values)(e),v=g.next();!v.done;v=g.next()){var m=v.value;p[m.get("id")]=m}}catch(t){u={error:t}}finally{try{v&&!v.done&&(l=g.return)&&l.call(g)}finally{if(u)throw u.error}}var y=Object(i.get)(c[0],"labelHeight",14),b=Object(i.get)(c[0],"offset",0);if(!(b<=0)){var _=Object(i.groupBy)(c,(function(t){return t.x<f.x?"left":"right"})),x=h.start,w=h.end,O=Math.min(2*(d+b+y),h.getHeight()),S=O/2,C={minX:x.x,maxX:w.x,minY:f.y-S,maxY:f.y+S};Object(i.each)(_,(function(t,e){var n=Math.floor(O/y);t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(i.each)(t,(function(t,e){e+1>n&&(p[t.id].set("visible",!1),t.invisible=!0)}))),Object(a.antiCollision)(t,y,C)})),Object(i.each)(_,(function(t,e){Object(i.each)(t,(function(t){var n="right"===e,r=p[t.id].getChildByIndex(0);if(r){var a=d+b,s=t.y-f.y,u=Math.pow(a,2),l=Math.pow(s,2),c=u-l>0?u-l:0,g=Math.sqrt(c),v=Math.abs(Math.cos(t.angle)*a);t.x=n?f.x+Math.max(g,v):f.x-Math.max(g,v)}r&&(r.attr("y",t.y),r.attr("x",t.x)),function(t,e){var n=e.getCenter(),r=e.getRadius();if(t&&t.labelLine){var a=t.angle,s=t.offset,u=Object(o.polarToCartesian)(n.x,n.y,r,a),l=t.x+Object(i.get)(t,"offsetX",0)*(Math.cos(a)>0?1:-1),c=t.y+Object(i.get)(t,"offsetY",0)*(Math.sin(a)>0?1:-1),h={x:l-4*Math.cos(a),y:c-4*Math.sin(a)},f=t.labelLine.smooth,d=[],p=h.x-n.x,g=h.y-n.y,v=Math.atan(g/p);if(p<0&&(v+=Math.PI),!1===f){Object(i.isObject)(t.labelLine)||(t.labelLine={});var m=0;(a<0&&a>-Math.PI/2||a>1.5*Math.PI)&&h.y>u.y&&(m=1),a>=0&&a<Math.PI/2&&h.y>u.y&&(m=1),a>=Math.PI/2&&a<Math.PI&&u.y>h.y&&(m=1),(a<-Math.PI/2||a>=Math.PI&&a<1.5*Math.PI)&&u.y>h.y&&(m=1);var y=s/2>4?4:Math.max(s/2-1,0),b=Object(o.polarToCartesian)(n.x,n.y,r+y,a),_=Object(o.polarToCartesian)(n.x,n.y,r+s/2,v);d.push("M ".concat(u.x," ").concat(u.y)),d.push("L ".concat(b.x," ").concat(b.y)),d.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(0," ").concat(m," ").concat(_.x," ").concat(_.y)),d.push("L ".concat(h.x," ").concat(h.y))}else{b=Object(o.polarToCartesian)(n.x,n.y,r+(s/2>4?4:Math.max(s/2-1,0)),a);var x=u.x<n.x?1:-1;d.push("M ".concat(h.x," ").concat(h.y));var w=(u.y-n.y)/(u.x-n.x),O=(h.y-n.y)/(h.x-n.x);Math.abs(w-O)>Math.pow(Math.E,-16)&&d.push.apply(d,["C",h.x+4*x,h.y,2*b.x-u.x,2*b.y-u.y,u.x,u.y]),d.push("L ".concat(u.x," ").concat(u.y))}t.labelLine.path=d.join(" ")}}(t,h)}))}))}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"pieSpiderLabelLayout",(function(){return u}));var r=n(2),i=n(1),o=n(78),a=n(748),s=n(199);function u(t,e,n,u){var l,c,h=e[0]&&e[0].get("coordinate");if(h){var f=h.getCenter(),d=h.getRadius(),p={};try{for(var g=Object(r.__values)(e),v=g.next();!v.done;v=g.next()){var m=v.value;p[m.get("id")]=m}}catch(t){l={error:t}}finally{try{v&&!v.done&&(c=g.return)&&c.call(g)}finally{if(l)throw l.error}}var y=Object(i.get)(t[0],"labelHeight",14),b=Math.max(Object(i.get)(t[0],"offset",0),4);Object(i.each)(t,(function(t){if(t&&Object(i.get)(p,[t.id])){var e=t.x>f.x||t.x===f.x&&t.y>f.y,n=Object(i.isNil)(t.offsetX)?4:t.offsetX,r=Object(o.polarToCartesian)(f.x,f.y,d+4,t.angle),a=b+n;t.x=f.x+(e?1:-1)*(d+a),t.y=r.y}}));var _=h.start,x=h.end,w=Object(i.groupBy)(t,(function(t){return t.x<f.x?"left":"right"})),O=2*(d+b)+y;Object(i.each)(w,(function(t){var e=t.length*y;e>O&&(O=Math.min(e,Math.abs(_.y-x.y)))}));var S={minX:_.x,maxX:x.x,minY:f.y-O/2,maxY:f.y+O/2};Object(i.each)(w,(function(t,e){var n=O/y;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(i.each)(t,(function(t,e){e>n&&(p[t.id].set("visible",!1),t.invisible=!0)}))),Object(a.antiCollision)(t,y,S)}));var C=S.minY,E=S.maxY;Object(i.each)(w,(function(t,e){var n="right"===e;Object(i.each)(t,(function(t){var e=Object(i.get)(p,t&&[t.id]);if(e)if(t.y<C||t.y>E)e.set("visible",!1);else{var r=e.getChildByIndex(0),a=r.getCanvasBBox(),u=n?a.x:a.maxX,l=a.y+a.height/2;Object(s.translate)(r,t.x-u,t.y-l),t.labelLine&&function(t,e,n){var r,a=e.getCenter(),s=e.getRadius(),u={x:t.x-(n?4:-4),y:t.y},l=Object(o.polarToCartesian)(a.x,a.y,s+4,t.angle),c={x:u.x,y:u.y},h={x:l.x,y:l.y},f=Object(o.polarToCartesian)(a.x,a.y,s,t.angle);if(u.y!==l.y){var d=n?4:-4;c.y=u.y,t.angle<0&&t.angle>=-Math.PI/2&&(c.x=Math.max(l.x,u.x-d),u.y<l.y?h.y=c.y:(h.y=l.y,h.x=Math.max(h.x,c.x-d))),t.angle>0&&t.angle<Math.PI/2&&(c.x=Math.max(l.x,u.x-d),u.y>l.y?h.y=c.y:(h.y=l.y,h.x=Math.max(h.x,c.x-d))),t.angle>Math.PI/2&&(c.x=Math.min(l.x,u.x-d),u.y>l.y?h.y=c.y:(h.y=l.y,h.x=Math.min(h.x,c.x-d))),t.angle<-Math.PI/2&&(c.x=Math.min(l.x,u.x-d),u.y<l.y?h.y=c.y:(h.y=l.y,h.x=Math.min(h.x,c.x-d)))}r=["M ".concat(u.x,",").concat(u.y),"L ".concat(c.x,",").concat(c.y),"L ".concat(h.x,",").concat(h.y),"L ".concat(l.x,",").concat(l.y),"L ".concat(f.x,",").concat(f.y)].join(" "),t.labelLine=Object(i.deepMix)({},t.labelLine,{path:r})}(t,h,n)}}))}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"limitInCanvas",(function(){return o}));var r=n(1),i=n(199);function o(t,e,n,o){Object(r.each)(e,(function(t){var e=o.minX,n=o.minY,r=o.maxX,a=o.maxY,s=t.getCanvasBBox(),u=s.minX,l=s.minY,c=s.maxX,h=s.maxY,f=s.x,d=s.y,p=s.width,g=s.height,v=f,m=d;(u<e||c<e)&&(v=e),(l<n||h<n)&&(m=n),u>r?v=r-p:c>r&&(v-=c-r),l>a?m=a-g:h>a&&(m-=h-a),v===f&&m===d||Object(i.translate)(t,v-f,m-d)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"limitInShape",(function(){return i}));var r=n(1);function i(t,e,n,i){Object(r.each)(e,(function(t,e){var r=t.getCanvasBBox(),i=n[e].getBBox();(r.minX<i.minX||r.minY<i.minY||r.maxX>i.maxX||r.maxY>i.maxY)&&t.remove(!0)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"hideOverlap",(function(){return f}));var r=n(2),i=n(1),o=n(1636),a=n(189),s=n(1637),u=n(1638),l=function(t){for(var e=t.slice(),n=0;n<e.length;n++){var r=e[n];if(r.visible)for(var i=n+1;i<e.length;i++){var a=e[i];r!==a&&a.visible&&Object(o.intersect)(r,a)&&(a.visible=!1)}}return e},c=new Map,h=Object(s.createWorker)(u.code);function f(t,e,n,o){return Object(r.__awaiter)(this,void 0,void 0,(function(){var n,o,s,u,f,d;return Object(r.__generator)(this,(function(p){switch(p.label){case 0:return n=e.map((function(e,n){return Object(r.__assign)(Object(r.__assign)({},Object(a.getLabelBackgroundInfo)(e,t[n],Object(i.get)(t[n],"background.padding"))),{visible:!0})})),o=JSON.stringify(n),s=function(t){return c.set(o,t),Object(i.each)(t,(function(t,n){var r=t.visible,i=e[n];r?null==i||i.show():null==i||i.hide()})),t},c.get(o)?(s(c.get(o)),[3,7]):[3,1];case 1:if(!h)return[3,6];p.label=2;case 2:return p.trys.push([2,4,,5]),u=JSON.stringify({type:"hide-overlap",items:n}),[4,h.post(u,(function(){return s(l(n))}))];case 3:return f=p.sent(),s(Array.isArray(f.data)?f.data:[]),[3,5];case 4:return d=p.sent(),console.error(d),s(l(n)),[3,5];case 5:return[3,7];case 6:s(l(n)),p.label=7;case 7:return[2]}}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"isIntersectRect",(function(){return c})),n.d(e,"intersect",(function(){return h}));var r=n(2);function i(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function o(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function a(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n=t.rotation;return n?[o(e[0],n,e[0]),o(e[1],n,e[0]),o(e[2],n,e[0]),o(e[3],n,e[0])]:e}function s(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(Math,Object(r.__spreadArray)([],Object(r.__read)(n),!1)),max:Math.max.apply(Math,Object(r.__spreadArray)([],Object(r.__read)(n),!1))}}function u(t,e){return t.max>e.min&&t.min<e.max}function l(t){return["x","y","width","height"].every((function(e){return"number"==typeof(n=t[e])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}function c(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}function h(t,e,n){if(void 0===n&&(n=0),!l(t)||!l(e))return!1;if(!t.rotation&&!e.rotation)return c(t,e,n);for(var r=a(t),o=a(e),h=i(r).concat(i(o)),f=0;f<h.length;f++){var d=h[f];if(!u(s(r,d),s(o,d)))return!1}return!0}},function(t,e,n){"use strict";n.r(e),n.d(e,"createWorker",(function(){return o}));var r=n(1),i=function(){function t(t){var e=this;this.queue=[],this.worker=new Worker(t),this.worker.onmessage=function(t){var n;null===(n=e.queue.shift())||void 0===n||n.resolve(t)},this.worker.onmessageerror=function(t){var n;console.warn("[AntV G2] Web worker is not available"),null===(n=e.queue.shift())||void 0===n||n.reject(t)}}return t.prototype.post=function(t,e){var n=this;return new Promise((function(i,o){n.queue.push({resolve:i,reject:o});try{n.worker.postMessage(t)}catch(t){console.warn("[AntV G2] Web worker is not available"),Object(r.isFunction)(e)&&e()}}))},t.prototype.destroy=function(){this.worker.terminate()},t}();function o(t){if("undefined"!=typeof window){var e;try{e=new Blob([t.toString()],{type:"application/javascript"})}catch(n){(e=new window.BlobBuilder).append(t.toString()),e=e.getBlob()}return new i(URL.createObjectURL(e))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"code",(function(){return r}));var r="\n self.onmessage = ".concat(function(t){var e=function(){function t(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function e(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function n(t){var n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],r=t.rotation;return r?[e(n[0],r,n[0]),e(n[1],r,n[0]),e(n[2],r,n[0]),e(n[3],r,n[0])]:n}function r(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(null,n),max:Math.max.apply(null,n)}}function i(t,e){return t.max>e.min&&t.min<e.max}function o(t){return["x","y","width","height"].every((function(e){return"number"==typeof(n=t[e])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}return{intersect:function(e,a,s){if(void 0===s&&(s=0),!o(e)||!o(a))return!1;if(!e.rotation&&!a.rotation)return function(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}(e,a,s);for(var u=n(e),l=n(a),c=t(u).concat(t(l)),h=0;h<c.length;h++){var f=c[h];if(!i(r(u,f),r(l,f)))return!1}return!0}}}().intersect;var n={"hide-overlap":function(t){for(var n=t.slice(),r=0;r<n.length;r++){var i=n[r];if(i.visible)for(var o=r+1;o<n.length;o++){var a=n[o];i!==a&&a.visible&&e(i,a)&&(a.visible=!1)}}return n}};try{var r=JSON.parse(t.data);if(!r||!r.type||!n[r.type])return;var i=r.type,o=r.items,a=n[i](o);self.postMessage(a)}catch(t){throw t}}.toString(),"\n")},function(t,e,n){"use strict";n.r(e),n.d(e,"adjustColor",(function(){return o}));var r=n(126),i=n(1640);function o(t,e,n){if(0!==n.length){var o=n[0].get("element").geometry.theme,a=o.labels||{},s=a.fillColorLight,u=a.fillColorDark;n.forEach((function(t,n){var a=e[n].find((function(t){return"text"===t.get("type")})),l=r.BBox.fromObject(t.getBBox()),c=r.BBox.fromObject(a.getCanvasBBox()),h=!l.contains(c),f=t.attr("fill"),d=Object(i.isContrastColorWhite)(f);h?a.attr(o.overflowLabels.style):d?s&&a.attr("fill",s):u&&a.attr("fill",u)}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"isContrastColorWhite",(function(){return a}));var r=n(2),i=n(247),o={"#5B8FF9":!0},a=function(t){var e=i.default.toRGB(t).toUpperCase();if(o[e])return o[e];var n=Object(r.__read)(i.default.rgb2arr(e),3);return(299*n[0]+587*n[1]+114*n[2])/1e3<128}},function(t,e,n){"use strict";n.r(e),n.d(e,"intervalAdjustPosition",(function(){return a}));var r=n(126),i=n(189);function o(t,e,n){return!!t.getAdjust("stack")||e.every((function(e,o){var a=n[o];return function(t,e,n){var o=t.coordinate,a=Object(i.findLabelTextShape)(e),s=r.BBox.fromObject(a.getCanvasBBox()),u=r.BBox.fromObject(n.getBBox());return o.isTransposed?u.height>=s.height:u.width>=s.width}(t,e,a)}))}function a(t,e,n){var a;if(0!==n.length){var s=null===(a=n[0])||void 0===a?void 0:a.get("element"),u=null==s?void 0:s.geometry;if(u&&"interval"===u.type)o(u,e,n)&&n.forEach((function(t,n){var o=e[n];!function(t,e,n){var o=t.coordinate,a=r.BBox.fromObject(n.getBBox()),s=Object(i.findLabelTextShape)(e);o.isTransposed?s.attr({x:a.minX+a.width/2,textAlign:"center"}):s.attr({y:a.minY+a.height/2,textBaseline:"middle"})}(u,o,t)}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"intervalHideOverlap",(function(){return a}));var r=n(2),i=n(1),o=n(189);function a(t,e,n){var a;if(0!==n.length){var s=null===(a=n[0])||void 0===a?void 0:a.get("element"),u=null==s?void 0:s.geometry;if(u&&"interval"===u.type){var l,c=function(t){var e=[],n=Math.max(Math.floor(t.length/500),1);return Object(i.each)(t,(function(t,r){r%n==0?e.push(t):t.set("visible",!1)})),e}(e),h=Object(r.__read)(u.getXYFields(),1)[0],f=[],d=[],p=Object(i.groupBy)(c,(function(t){return t.get("data")[h]})),g=Object(i.uniq)(Object(i.map)(c,(function(t){return t.get("data")[h]})));c.forEach((function(t){t.set("visible",!0)}));var v=function(t){t&&(t.length&&d.push(t.pop()),d.push.apply(d,Object(r.__spreadArray)([],Object(r.__read)(t),!1)))};for(Object(i.size)(g)>0&&(l=g.shift(),v(p[l])),Object(i.size)(g)>0&&(l=g.pop(),v(p[l])),Object(i.each)(g.reverse(),(function(t){v(p[t])}));d.length>0;){var m=d.shift();m.get("visible")&&(Object(o.checkShapeOverlap)(m,f)?m.set("visible",!1):f.push(m))}}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"pointAdjustPosition",(function(){return u}));var r=n(2),i=n(1),o=n(189);function a(t,e,n){return t.some((function(t){return n(t,e)}))}function s(t,e){return a(t,e,(function(t,e){var n,r,i,a=Object(o.findLabelTextShape)(t),s=Object(o.findLabelTextShape)(e);return n=a.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}function u(t,e,n,u,l){var c,h;if(0!==n.length){var f=null===(c=n[0])||void 0===c?void 0:c.get("element"),d=null==f?void 0:f.geometry;if(d&&"point"===d.type){var p=Object(r.__read)(d.getXYFields(),2),g=p[0],v=p[1],m=Object(i.groupBy)(e,(function(t){return t.get("data")[g]})),y=[],b=l&&l.offset||(null===(h=t[0])||void 0===h?void 0:h.offset)||12;Object(i.map)(Object(i.keys)(m).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],i=[],o=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return o.length>0&&i.push(o.shift()),o.length>0&&i.push(o.pop()),i.push.apply(i,Object(r.__spreadArray)([],Object(r.__read)(o),!1)),i}(d,m[t]);e.length;){var n=e.shift(),i=Object(o.findLabelTextShape)(n);if(a(y,n,(function(t,e){return t.get("data")[g]===e.get("data")[g]&&t.get("data")[v]===e.get("data")[v]})))i.set("visible",!1);else{var u=!1;s(y,n)&&(i.attr("y",i.attr("y")+2*b),u=s(y,n)),u?i.set("visible",!1):y.push(n)}}}))}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"pathAdjustPosition",(function(){return u}));var r=n(2),i=n(1),o=n(189);function a(t,e,n){return t.some((function(t){return n(t,e)}))}function s(t,e){return a(t,e,(function(t,e){var n,r,i,a=Object(o.findLabelTextShape)(t),s=Object(o.findLabelTextShape)(e);return n=a.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}function u(t,e,n,u,l){var c,h;if(0!==n.length){var f=null===(c=n[0])||void 0===c?void 0:c.get("element"),d=null==f?void 0:f.geometry;if(d&&!(["path","line","area"].indexOf(d.type)<0)){var p=Object(r.__read)(d.getXYFields(),2),g=p[0],v=p[1],m=Object(i.groupBy)(e,(function(t){return t.get("data")[g]})),y=[],b=l&&l.offset||(null===(h=t[0])||void 0===h?void 0:h.offset)||12;Object(i.map)(Object(i.keys)(m).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],i=[],o=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return o.length>0&&i.push(o.shift()),o.length>0&&i.push(o.pop()),i.push.apply(i,Object(r.__spreadArray)([],Object(r.__read)(o),!1)),i}(d,m[t]);e.length;){var n=e.shift(),i=Object(o.findLabelTextShape)(n);if(a(y,n,(function(t,e){return t.get("data")[g]===e.get("data")[g]&&t.get("data")[v]===e.get("data")[v]})))i.set("visible",!1);else{var u=!1;s(y,n)&&(i.attr("y",i.attr("y")+2*b),u=s(y,n)),u?i.set("visible",!1):y.push(n)}}}))}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"limitInPlot",(function(){return s}));var r=n(1),i=n(98),o=n(1646),a=n(199);function s(t,e,n,s,u){if(!(e.length<=0)){var l=(null==u?void 0:u.direction)||["top","right","bottom","left"],c=(null==u?void 0:u.action)||"translate",h=(null==u?void 0:u.margin)||0,f=e[0].get("coordinate");if(f){var d=Object(i.getCoordinateBBox)(f,h),p=d.minX,g=d.minY,v=d.maxX,m=d.maxY;Object(r.each)(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,i=e.minY,s=e.maxX,u=e.maxY,h=e.x,f=e.y,d=e.width,y=e.height,b=h,_=f;if(l.indexOf("left")>=0&&(n<p||s<p)&&(b=p),l.indexOf("top")>=0&&(i<g||u<g)&&(_=g),l.indexOf("right")>=0&&(n>v?b=v-d:s>v&&(b-=s-v)),l.indexOf("bottom")>=0&&(i>m?_=m-y:u>m&&(_-=u-m)),b!==h||_!==f){var x=b-h;if("translate"===c)Object(a.translate)(t,x,_-f);else if("ellipsis"===c){t.findAll((function(t){return"text"===t.get("type")})).forEach((function(t){var e=Object(r.pick)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=Object(o.getEllipsisText)(t.attr("text"),n.width-Math.abs(x),e);t.attr("text",i)}))}else t.hide()}}))}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"measureTextWidth",(function(){return a})),n.d(e,"getEllipsisText",(function(){return s}));var r=n(2),i=n(1),o=n(1647),a=Object(i.memoize)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,a=e.fontWeight,s=e.fontStyle,u=e.fontVariant,l=Object(o.getCanvasContext)();return l.font=[s,u,a,"".concat(n,"px"),r].join(" "),l.measureText(Object(i.isString)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(r.__spreadArray)([t],Object(r.__read)(Object(i.values)(e)),!1).join("")})),s=function(t,e,n){var r,o=a("...",n);r=Object(i.isString)(t)?t:Object(i.toString)(t);var s,u,l=e,c=[];if(a(t,n)<=e)return t;for(;s=r.substr(0,16),!((u=a(s,n))+o>l&&u>l);)if(c.push(s),l-=u,!(r=r.substr(16)))return c.join("");for(;s=r.substr(0,1),!((u=a(s,n))+o>l);)if(c.push(s),l-=u,!(r=r.substr(1)))return c.join("");return"".concat(c.join(""),"...")}},function(t,e,n){"use strict";var r;function i(){return r||(r=document.createElement("canvas").getContext("2d")),r}n.r(e),n.d(e,"getCanvasContext",(function(){return i}))},function(t,e,n){"use strict";function r(t,e,n){var r=t.getTotalLength();t.attr("lineDash",[r]),t.animate((function(t){return{lineDashOffset:(1-t)*r}}),e)}n.r(e),n.d(e,"pathIn",(function(){return r}))},function(t,e,n){"use strict";function r(t,e,n){var r=n.toAttrs,i=r.x,o=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:o},e)}n.r(e),n.d(e,"positionUpdate",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"getArcInfo",(function(){return l})),n.d(e,"sectorPathUpdate",(function(){return c}));var r=n(2),i=n(742),o=n(1),a=n(78);function s(t,e){var n,a=Object(i.getArcParams)(t,e),s=a.startAngle,u=a.endAngle;return!Object(o.isNumberEqual)(s,.5*-Math.PI)&&s<.5*-Math.PI&&(s+=2*Math.PI),!Object(o.isNumberEqual)(u,.5*-Math.PI)&&u<.5*-Math.PI&&(u+=2*Math.PI),0===e[5]&&(s=(n=Object(r.__read)([u,s],2))[0],u=n[1]),Object(o.isNumberEqual)(s,1.5*Math.PI)&&(s=-.5*Math.PI),Object(o.isNumberEqual)(u,-.5*Math.PI)&&!Object(o.isNumberEqual)(s,u)&&(u=1.5*Math.PI),{startAngle:s,endAngle:u}}function u(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]&&"C"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function l(t){var e,n,i,a=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===a.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var l=a[0],c=a.length>1?a[1]:a[0],h=t.indexOf(l),f=t.indexOf(c),d=u(t[h-1]),p=u(t[f-1]),g=s(d,l),v=g.startAngle,m=g.endAngle,y=s(p,c),b=y.startAngle,_=y.endAngle;Object(o.isNumberEqual)(v,b)&&Object(o.isNumberEqual)(m,_)?(n=v,i=m):(n=Math.min(v,b),i=Math.max(m,_));var x=l[1],w=a[a.length-1][1];return x<w?(x=(e=Object(r.__read)([w,x],2))[0],w=e[1]):x===w&&(w=0),{startAngle:n,endAngle:i,radius:x,innerRadius:w}}function c(t,e,n){var i=n.toAttrs,s=n.coordinate,u=i.path||[],c=u.map((function(t){return t[0]}));if(!(u.length<1)){var h=l(u),f=h.startAngle,d=h.endAngle,p=h.radius,g=h.innerRadius,v=l(t.attr("path")),m=v.startAngle,y=v.endAngle,b=s.getCenter(),_=f-m,x=d-y;0!==_||0!==x?t.animate((function(t){var e=m+t*_,n=y+t*x;return Object(r.__assign)(Object(r.__assign)({},i),{path:Object(o.isEqual)(c,["M","A","A","Z"])?Object(a.getArcPath)(b.x,b.y,p,e,n):Object(a.getSectorPath)(b.x,b.y,p,e,n,g)})}),Object(r.__assign)(Object(r.__assign)({},e),{callback:function(){t.attr("path",u)}})):t.attr("path",u)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"waveIn",(function(){return o}));var r=n(2),i=n(98);function o(t,e,n){var o=Object(i.getCoordinateClipCfg)(n.coordinate,20),a=o.type,s=o.startState,u=o.endState,l=t.setClip({type:a,attrs:s});n.toAttrs&&t.attr(n.toAttrs),l.animate(u,Object(r.__assign)(Object(r.__assign)({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),l.remove(!0)}}))}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(7),a=n(179),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return Object(i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=2*Math.PI/t,r=-1*Math.PI/2+n*e,i=.5/(1+1/Math.sin(n/2)),o=Object(a.getAnglePoint)({x:.5,y:.5},.5-i,r),s=5*Math.PI/4,u=1*Math.PI/4;return{start:Object(a.getAnglePoint)(o,i,s),end:Object(a.getAnglePoint)(o,i,u)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,o=n.fields,a=n.type,s=Object(r.__read)(o,1)[0];if(!s)throw new Error("No `fields` specified!");var u=this.getFieldValues(t,s),l=u.length,c=[];return u.forEach((function(n,r){var o=[{field:s,value:n,values:u}],h=Object(i.filter)(t,e.getFacetDataFilter(o)),f={type:a,data:h,region:e.getRegion(l,r),columnValue:n,columnField:s,columnIndex:r,columnValuesLength:l,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};c.push(f)})),c},e.prototype.getXAxisOption=function(t,e,n,r){return n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;Object(i.each)(this.facets,(function(e){var n=e.columnValue,r=e.view,s=Object(i.get)(t.cfg.title,"formatter"),u=Object(i.deepMix)({position:["50%","0%"],content:s?s(n):n},Object(a.getFactTitleConfig)(o.DIRECTION.TOP),t.cfg.title);r.annotation().text(u)}))},e}(n(218).Facet);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(7),a=n(179),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return Object(i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,o=this.cfg.cols,a=Object(r.__read)(n,1)[0];if(!a)throw new Error("No `fields` specified!");var s=this.getFieldValues(t,a),u=s.length;o=o||u;var l=this.getPageCount(u,o),c=[];return s.forEach((function(n,r){var h=e.getRowCol(r,o),f=h.row,d=h.col,p=[{field:a,value:n,values:s}],g=Object(i.filter)(t,e.getFacetDataFilter(p)),v={type:e.cfg.type,data:g,region:e.getRegion(l,o,d,f),columnValue:n,rowValue:n,columnField:a,rowField:null,columnIndex:d,rowIndex:f,columnValuesLength:o,rowValuesLength:l,total:u};c.push(v)})),c},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1&&i.columnValuesLength*i.rowIndex+i.columnIndex+1+i.columnValuesLength<=i.total?Object(r.__assign)(Object(r.__assign)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?Object(r.__assign)(Object(r.__assign)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(i.each)(this.facets,(function(e){var n=e.columnValue,r=e.view,s=Object(i.get)(t.cfg.title,"formatter"),u=Object(i.deepMix)({position:["50%","0%"],content:s?s(n):n},Object(a.getFactTitleConfig)(o.DIRECTION.TOP),t.cfg.title);r.annotation().text(u)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){return{row:Math.floor(t/e),col:t%e}},e}(n(218).Facet);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(7),a=n(179),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return Object(i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:Object(r.__assign)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Object(r.__assign)({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,r=e.type,i=n.length,o=i,a=[],s=0;s<o;s++)for(var u=n[s],l=0;l<i;l++){var c=n[l],h={type:r,data:t,region:this.getRegion(i,o,s,l),columnValue:u,rowValue:c,columnField:u,rowField:c,columnIndex:s,rowIndex:l,columnValuesLength:o,rowValuesLength:i};a.push(h)}return a},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?Object(r.__assign)(Object(r.__assign)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?Object(r.__assign)(Object(r.__assign)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(i.each)(this.facets,(function(e,n){var r=e.columnIndex,s=e.rowIndex,u=e.columnValuesLength,l=(e.rowValuesLength,e.columnValue),c=e.rowValue,h=e.view;if(0===s){var f=Object(i.get)(t.cfg.columnTitle,"formatter"),d=Object(i.deepMix)({position:["50%","0%"],content:f?f(l):l},Object(a.getFactTitleConfig)(o.DIRECTION.TOP),t.cfg.columnTitle);h.annotation().text(d)}if(r===u-1){f=Object(i.get)(t.cfg.rowTitle,"formatter"),d=Object(i.deepMix)({position:["100%","50%"],content:f?f(c):c},Object(a.getFactTitleConfig)(o.DIRECTION.RIGHT),t.cfg.rowTitle);h.annotation().text(d)}}))},e}(n(218).Facet);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(7),a=n(179),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return Object(i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2==0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!=0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e,n,o=this,a=Object(r.__read)(this.cfg.fields,1)[0],s=[],u=1,l=1,c=[""],h=[""];return this.cfg.transpose?(e=a,c=this.getFieldValues(t,e).slice(0,2),u=c.length):(n=a,h=this.getFieldValues(t,n).slice(0,2),l=h.length),c.forEach((function(r,a){h.forEach((function(f,d){var p=[{field:e,value:r,values:c},{field:n,value:f,values:h}],g=Object(i.filter)(t,o.getFacetDataFilter(p)),v={type:o.cfg.type,data:g,region:o.getRegion(l,u,a,d),columnValue:r,rowValue:f,columnField:e,rowField:n,columnIndex:a,rowIndex:d,columnValuesLength:u,rowValuesLength:l};s.push(v)}))})),s},e.prototype.getXAxisOption=function(t,e,n,i){return 1===i.columnIndex||1===i.rowIndex?Object(r.__assign)(Object(r.__assign)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;Object(i.each)(this.facets,(function(e,n){var r=e.columnValue,s=e.rowValue,u=e.view,l=Object(i.get)(t.cfg.title,"formatter");if(t.cfg.transpose){var c=Object(i.deepMix)({position:["50%","0%"],content:l?l(r):r},Object(a.getFactTitleConfig)(o.DIRECTION.TOP),t.cfg.title);u.annotation().text(c)}else{c=Object(i.deepMix)({position:["100%","50%"],content:l?l(s):s},Object(a.getFactTitleConfig)(o.DIRECTION.RIGHT),t.cfg.title);u.annotation().text(c)}}))},e}(n(218).Facet);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(7),a=n(179),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return Object(i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:Object(r.__assign)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Object(r.__assign)({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,n=Object(r.__read)(this.cfg.fields,2),o=n[0],a=n[1],s=[],u=1,l=1,c=[""],h=[""];return o&&(c=this.getFieldValues(t,o),u=c.length),a&&(h=this.getFieldValues(t,a),l=h.length),c.forEach((function(n,r){h.forEach((function(f,d){var p=[{field:o,value:n,values:c},{field:a,value:f,values:h}],g=Object(i.filter)(t,e.getFacetDataFilter(p)),v={type:e.cfg.type,data:g,region:e.getRegion(l,u,r,d),columnValue:n,rowValue:f,columnField:o,rowField:a,columnIndex:r,rowIndex:d,columnValuesLength:u,rowValuesLength:l};s.push(v)}))})),s},e.prototype.renderTitle=function(){var t=this;Object(i.each)(this.facets,(function(e,n){var r=e.columnIndex,s=e.rowIndex,u=e.columnValuesLength,l=e.columnValue,c=e.rowValue,h=e.view;if(0===s){var f=Object(i.get)(t.cfg.columnTitle,"formatter"),d=Object(i.deepMix)({position:["50%","0%"],content:f?f(l):l},Object(a.getFactTitleConfig)(o.DIRECTION.TOP),t.cfg.columnTitle);h.annotation().text(d)}if(r===u-1){f=Object(i.get)(t.cfg.rowTitle,"formatter"),d=Object(i.deepMix)({position:["100%","50%"],content:f?f(c):c},Object(a.getFactTitleConfig)(o.DIRECTION.RIGHT),t.cfg.rowTitle);h.annotation().text(d)}}))},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?Object(r.__assign)(Object(r.__assign)({},n),{title:null,label:null}):i.columnIndex!==Math.floor((i.columnValuesLength-1)/2)?Object(r.__assign)(Object(r.__assign)({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?Object(r.__assign)(Object(r.__assign)({},n),{title:null,label:null}):i.rowIndex!==Math.floor((i.rowValuesLength-1)/2)?Object(r.__assign)(Object(r.__assign)({},n),{title:null}):n},e}(n(218).Facet);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(7),a=n(179),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return Object(r.__extends)(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(o.VIEW_LIFE_CIRCLE.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return Object(i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){if(!this.cfg.fields.length)throw new Error("Please specify for the fields for rootFacet!");var e=[],n={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return e.push(n),n.children=this.getChildFacets(t,1,e),this.setRegion(e),e},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)}))},e.prototype.getRegion=function(t,e,n,r){var i=1/e,o=1/t,a={x:i*n,y:o*r};return{start:a,end:{x:a.x+i,y:a.y+2*o/3}}},e.prototype.forceColIndex=function(t){var e,n,i=this,o=[],a=0;t.forEach((function(t){i.isLeaf(t)&&(o.push(t),t.columnIndex=a,a++)})),o.forEach((function(t){t.columnValuesLength=o.length}));for(var s=this.cfg.fields.length-1;s>=0;s--){var u=this.getFacetsByLevel(t,s);try{for(var l=(e=void 0,Object(r.__values)(u)),c=l.next();!c.done;c=l.next()){var h=c.value;this.isLeaf(h)||(h.originColIndex=h.columnIndex,h.columnIndex=this.getRegionIndex(h.children),h.columnValuesLength=o.length)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var r=this,i=this.cfg.fields;if(!(i.length<e)){var o=[],a=i[e-1],s=this.getFieldValues(t,a);return s.forEach((function(i,u){var l=[{field:a,value:i,values:s}],c=t.filter(r.getFacetDataFilter(l));if(c.length){var h={type:r.cfg.type,data:c,region:null,columnValue:i,rowValue:"",columnField:a,rowField:"",columnIndex:u,rowValuesLength:r.getRows(),columnValuesLength:1,rowIndex:e,children:r.getChildFacets(c,e+1,n)};o.push(h),n.push(h)}})),o}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;Object(i.each)(this.facets,(function(e){var n=e.columnValue,r=e.view,s=Object(i.get)(t.cfg.title,"formatter"),u=Object(i.deepMix)({position:["50%","0%"],content:s?s(n):n},Object(a.getFactTitleConfig)(o.DIRECTION.TOP),t.cfg.title);r.annotation().text(u)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var n=t.children;e.addFacetLines(t,n)}}))},e.prototype.addFacetLines=function(t,e){var n=this,r=t.view.coordinateBBox,i={x:r.x+r.width/2,y:r.y+r.height};e.forEach((function(t){var e=t.view.coordinateBBox,r={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},o={x:i.x,y:i.y+(r.y-i.y)/2},a={x:r.x,y:o.y};n.drawLine([i,o,a,r])}))},e.prototype.getPath=function(t){var e=[];return this.cfg.line.smooth?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:Object(i.assign)({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?Object(r.__assign)(Object(r.__assign)({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.originColIndex&&0!==i.columnIndex?Object(r.__assign)(Object(r.__assign)({},n),{title:null,label:null}):n},e}(n(218).Facet);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(97),a=n(155),s=n(7),u=n(98),l=n(86),c=n(609),h=n(219),f=["regionFilter","shape"],d=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(s.LAYER.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(s.LAYER.BG).addGroup(),n.option=[],n}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){this.update()},e.prototype.render=function(){},e.prototype.update=function(){var t=this;this.onAfterRender((function(){var e=new Map;Object(i.each)(t.option,(function(n){if(Object(i.includes)(f,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),t.cache=t.syncCache(e)}));var e=new Map;Object(i.each)(this.option,(function(n){if(!Object(i.includes)(f,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),this.cache=this.syncCache(e)},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.clearComponents=function(){this.getComponents().forEach((function(t){t.component.destroy()})),this.cache.clear()},e.prototype.onAfterRender=function(t){var e=!1;this.view.getOptions().animate&&this.view.geometries.forEach((function(n){n.animateOption&&(n.once(s.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE,(function(){t()})),e=!0)})),e||this.view.getRootView().once(s.VIEW_LIFE_CIRCLE.AFTER_RENDER,(function(){t()}))},e.prototype.createAnnotation=function(t){var e=t.type,n=o.Annotation[Object(i.upperFirst)(e)];if(n){var r=this.getAnnotationTheme(e),a=this.getAnnotationCfg(e,t,r);return a?{component:new n(a),layer:this.isTop(a)?s.LAYER.FORE:s.LAYER.BG,direction:s.DIRECTION.NONE,type:s.COMPONENT_TYPE.ANNOTATION,extra:t}:null}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(Object(r.__assign)({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(Object(r.__assign)({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(Object(r.__assign)({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(Object(r.__assign)({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(Object(r.__assign)({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(Object(r.__assign)({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(Object(r.__assign)({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(Object(r.__assign)({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation(Object(r.__assign)({type:"shape"},t))},e.prototype.html=function(t){this.annotation(Object(r.__assign)({type:"html"},t))},e.prototype.parsePosition=function(t){var e,n,o=this.view.getXScale(),a=this.view.getScalesByDim("y"),s=Object(i.isFunction)(t)?t.call(null,o,a):t,u=0,l=0;if(Object(i.isArray)(s)){var h=Object(r.__read)(s,2),f=h[0],d=h[1];if(Object(i.isString)(f)&&-1!==f.indexOf("%")&&!isNaN(f.slice(0,-1)))return this.parsePercentPosition(s);u=Object(c.getNormalizedValue)(f,o),l=Object(c.getNormalizedValue)(d,Object.values(a)[0])}else if(!Object(i.isNil)(s))try{for(var p=Object(r.__values)(Object(i.keys)(s)),g=p.next();!g.done;g=p.next()){var v=g.value,m=s[v];v===o.field&&(u=Object(c.getNormalizedValue)(m,o)),a[v]&&(l=Object(c.getNormalizedValue)(m,a[v]))}}catch(t){e={error:t}}finally{try{g&&!g.done&&(n=p.return)&&n.call(p)}finally{if(e)throw e.error}}return isNaN(u)||isNaN(l)?null:this.view.getCoordinate().convert({x:u,y:l})},e.prototype.getRegionPoints=function(t,e){var n,r=this,o=this.view.getXScale(),a=this.view.getScalesByDim("y"),s=Object.values(a)[0],u=o.field,l=this.view.getData(),c=Object(i.isArray)(t)?t[0]:t[u],h=Object(i.isArray)(e)?e[0]:e[u],f=[];return Object(i.each)(l,(function(t,e){if(t[u]===c&&(n=e),e>=n){var i=r.parsePosition([t[u],t[s.field]]);i&&f.push(i)}if(t[u]===h)return!1})),f},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,r=this.view.getCoordinate(),i=r.start,o=r.end,a=Math.min(i.x,o.x),s=Math.min(i.y,o.y);return{x:r.getWidth()*e+a,y:r.getHeight()*n+s}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),o={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+r,maxY:o.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var o=this,s=this.view.getCoordinate(),l=this.view.getCanvas(),c={};if(Object(i.isNil)(e))return null;var h=e.start,f=e.end,d=e.position,p=this.parsePosition(h),g=this.parsePosition(f),v=this.parsePosition(d);if(!(!["arc","image","line","region","regionFilter"].includes(t)||p&&g))return null;if(["text","dataMarker","html"].includes(t)&&!v)return null;if("arc"===t){var m=e,y=(m.start,m.end,Object(r.__rest)(m,["start","end"])),b=Object(u.getAngleByPoint)(s,p),_=Object(u.getAngleByPoint)(s,g);b>_&&(_=2*Math.PI+_),c=Object(r.__assign)(Object(r.__assign)({},y),{center:s.getCenter(),radius:Object(u.getDistanceToCenter)(s,p),startAngle:b,endAngle:_})}else if("image"===t){var x=e;x.start,x.end,y=Object(r.__rest)(x,["start","end"]);c=Object(r.__assign)(Object(r.__assign)({},y),{start:p,end:g,src:e.src})}else if("line"===t){var w=e;w.start,w.end,y=Object(r.__rest)(w,["start","end"]);c=Object(r.__assign)(Object(r.__assign)({},y),{start:p,end:g,text:Object(i.get)(e,"text",null)})}else if("region"===t){var O=e;O.start,O.end,y=Object(r.__rest)(O,["start","end"]);c=Object(r.__assign)(Object(r.__assign)({},y),{start:p,end:g})}else if("text"===t){var S=this.view.getData(),C=e,E=(C.position,C.content),T=(y=Object(r.__rest)(C,["position","content"]),E);Object(i.isFunction)(E)&&(T=E(S)),c=Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},v),y),{content:T})}else if("dataMarker"===t){var A=e,M=(A.position,A.point),I=A.line,j=A.text,k=A.autoAdjust,P=A.direction;y=Object(r.__rest)(A,["position","point","line","text","autoAdjust","direction"]);c=Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},y),v),{coordinateBBox:this.getCoordinateBBox(),point:M,line:I,text:j,autoAdjust:k,direction:P})}else if("dataRegion"===t){var L=e,R=L.start,D=L.end,N=L.region,B=(j=L.text,L.lineLength);y=Object(r.__rest)(L,["start","end","region","text","lineLength"]);c=Object(r.__assign)(Object(r.__assign)({},y),{points:this.getRegionPoints(R,D),region:N,text:j,lineLength:B})}else if("regionFilter"===t){var F=e,z=(F.start,F.end,F.apply),V=F.color,U=(y=Object(r.__rest)(F,["start","end","apply","color"]),this.view.geometries),G=[],H=function(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return H(t)})):G.push(t))};Object(i.each)(U,(function(t){z?Object(i.contains)(z,t.type)&&Object(i.each)(t.elements,(function(t){H(t.shape)})):Object(i.each)(t.elements,(function(t){H(t.shape)}))})),c=Object(r.__assign)(Object(r.__assign)({},y),{color:V,shapes:G,start:p,end:g})}else if("shape"===t){var W=e,Y=W.render,X=Object(r.__rest)(W,["render"]);c=Object(r.__assign)(Object(r.__assign)({},X),{render:function(t){if(Object(i.isFunction)(e.render))return Y(t,o.view,{parsePosition:o.parsePosition.bind(o)})}})}else if("html"===t){var $=e,q=$.html;$.position,X=Object(r.__rest)($,["html","position"]);c=Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},X),v),{parent:l.get("el").parentNode,html:function(t){return Object(i.isFunction)(q)?q(t,o.view):q}})}var Z=Object(i.deepMix)({},n,Object(r.__assign)(Object(r.__assign)({},c),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(Z.container=this.getComponentContainer(Z)),Z.animate=this.view.getOptions().animate&&Z.animate&&Object(i.get)(e,"animate",Z.animate),Z.animateOption=Object(i.deepMix)({},a.DEFAULT_ANIMATE_CFG,Z.animateOption,e.animateOption),Z},e.prototype.isTop=function(t){return Object(i.get)(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Object(i.get)(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,o=this.getAnnotationTheme(n),a=this.getAnnotationCfg(n,t,o);a&&Object(l.omit)(a,["container"]),e.component.update(Object(r.__assign)(Object(r.__assign)({},a||{}),{visible:!!a})),Object(i.includes)(f,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),Object(i.includes)(f,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach((function(t,e){n.set(e,t)})),n.forEach((function(t,r){Object(i.find)(e.option,(function(t){return r===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(r))})),n},e.prototype.getCacheKey=function(t){return t},e}(h.Controller);e.default=d},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(7),a=n(97),s=n(155),u=n(124),l=n(287),c=n(86),h=n(219),f=["container"],d=Object(r.__assign)(Object(r.__assign)({},s.DEFAULT_ANIMATE_CFG),{appear:null}),p=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(o.LAYER.BG).addGroup(),n.gridForeContainer=n.view.getLayer(o.LAYER.FORE).addGroup(),n.axisContainer=n.view.getLayer(o.LAYER.BG).addGroup(),n.axisForeContainer=n.view.getLayer(o.LAYER.FORE).addGroup(),n}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();Object(i.each)(this.getComponents(),(function(n){var r,i=n.component,a=n.direction,s=n.type,c=n.extra,h=c.dim,f=c.scale,d=c.alignTick;if(s===o.COMPONENT_TYPE.AXIS)e.isPolar?"x"===h?r=e.isTransposed?Object(u.getAxisRegion)(e,a):Object(u.getCircleAxisCenterRadius)(e):"y"===h&&(r=e.isTransposed?Object(u.getCircleAxisCenterRadius)(e):Object(u.getAxisRegion)(e,a)):r=Object(u.getAxisRegion)(e,a);else if(s===o.COMPONENT_TYPE.GRID)if(e.isPolar){r={items:e.isTransposed?"x"===h?Object(l.getCircleGridItems)(e,t.view.getYScales()[0],f,d,h):Object(l.getLineGridItems)(e,f,h,d):"x"===h?Object(l.getLineGridItems)(e,f,h,d):Object(l.getCircleGridItems)(e,t.view.getXScale(),f,d,h),center:t.view.getCoordinate().getCenter()}}else r={items:Object(l.getLineGridItems)(e,f,h,d)};i.update(r)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,r){t.has(r)?e.set(r,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=Object(u.getAxisOption)(this.option,e.field);if(!1!==n){var r=Object(u.getAxisDirection)(n,o.DIRECTION.BOTTOM),a=o.LAYER.BG,s=this.view.getCoordinate(),l=this.getId("axis",e.field),h=this.getId("grid",e.field);if(s.isRect){if(p=this.cache.get(l)){var d=this.getLineAxisCfg(e,n,r);Object(c.omit)(d,f),p.component.update(d),t.set(l,p)}else p=this.createLineAxis(e,n,a,r,"x"),this.cache.set(l,p),t.set(l,p);if(g=this.cache.get(h)){d=this.getLineGridCfg(e,n,r,"x");Object(c.omit)(d,f),g.component.update(d),t.set(h,g)}else(g=this.createLineGrid(e,n,a,r,"x"))&&(this.cache.set(h,g),t.set(h,g))}else if(s.isPolar){var p,g;if(p=this.cache.get(l)){d=s.isTransposed?this.getLineAxisCfg(e,n,o.DIRECTION.RADIUS):this.getCircleAxisCfg(e,n,r);Object(c.omit)(d,f),p.component.update(d),t.set(l,p)}else{if(s.isTransposed){if(Object(i.isUndefined)(n))return;p=this.createLineAxis(e,n,a,o.DIRECTION.RADIUS,"x")}else p=this.createCircleAxis(e,n,a,r,"x");this.cache.set(l,p),t.set(l,p)}if(g=this.cache.get(h)){d=s.isTransposed?this.getCircleGridCfg(e,n,o.DIRECTION.RADIUS,"x"):this.getLineGridCfg(e,n,o.DIRECTION.CIRCLE,"x");Object(c.omit)(d,f),g.component.update(d),t.set(h,g)}else{if(s.isTransposed){if(Object(i.isUndefined)(n))return;g=this.createCircleGrid(e,n,a,o.DIRECTION.RADIUS,"x")}else g=this.createLineGrid(e,n,a,o.DIRECTION.CIRCLE,"x");g&&(this.cache.set(h,g),t.set(h,g))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();Object(i.each)(n,(function(n,r){if(n&&!n.isIdentity){var a=n.field,s=Object(u.getAxisOption)(e.option,a);if(!1!==s){var l=o.LAYER.BG,h=e.getId("axis",a),d=e.getId("grid",a),p=e.view.getCoordinate();if(p.isRect){var g=Object(u.getAxisDirection)(s,0===r?o.DIRECTION.LEFT:o.DIRECTION.RIGHT);if(m=e.cache.get(h)){var v=e.getLineAxisCfg(n,s,g);Object(c.omit)(v,f),m.component.update(v),t.set(h,m)}else m=e.createLineAxis(n,s,l,g,"y"),e.cache.set(h,m),t.set(h,m);if(y=e.cache.get(d)){v=e.getLineGridCfg(n,s,g,"y");Object(c.omit)(v,f),y.component.update(v),t.set(d,y)}else(y=e.createLineGrid(n,s,l,g,"y"))&&(e.cache.set(d,y),t.set(d,y))}else if(p.isPolar){var m,y;if(m=e.cache.get(h)){v=p.isTransposed?e.getCircleAxisCfg(n,s,o.DIRECTION.CIRCLE):e.getLineAxisCfg(n,s,o.DIRECTION.RADIUS);Object(c.omit)(v,f),m.component.update(v),t.set(h,m)}else{if(p.isTransposed){if(Object(i.isUndefined)(s))return;m=e.createCircleAxis(n,s,l,o.DIRECTION.CIRCLE,"y")}else m=e.createLineAxis(n,s,l,o.DIRECTION.RADIUS,"y");e.cache.set(h,m),t.set(h,m)}if(y=e.cache.get(d)){v=p.isTransposed?e.getLineGridCfg(n,s,o.DIRECTION.CIRCLE,"y"):e.getCircleGridCfg(n,s,o.DIRECTION.RADIUS,"y");Object(c.omit)(v,f),y.component.update(v),t.set(d,y)}else{if(p.isTransposed){if(Object(i.isUndefined)(s))return;y=e.createLineGrid(n,s,l,o.DIRECTION.CIRCLE,"y")}else y=e.createCircleGrid(n,s,l,o.DIRECTION.RADIUS,"y");y&&(e.cache.set(d,y),t.set(d,y))}}}}}))},e.prototype.createLineAxis=function(t,e,n,r,i){var s={component:new a.LineAxis(this.getLineAxisCfg(t,e,r)),layer:n,direction:r===o.DIRECTION.RADIUS?o.DIRECTION.NONE:r,type:o.COMPONENT_TYPE.AXIS,extra:{dim:i,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createLineGrid=function(t,e,n,r,s){var u=this.getLineGridCfg(t,e,r,s);if(u){var l={component:new a.LineGrid(u),layer:n,direction:o.DIRECTION.NONE,type:o.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:Object(i.get)(u,"alignTick",!0)}};return l.component.init(),l}},e.prototype.createCircleAxis=function(t,e,n,r,i){var s={component:new a.CircleAxis(this.getCircleAxisCfg(t,e,r)),layer:n,direction:r,type:o.COMPONENT_TYPE.AXIS,extra:{dim:i,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createCircleGrid=function(t,e,n,r,s){var u=this.getCircleGridCfg(t,e,r,s);if(u){var l={component:new a.CircleGrid(u),layer:n,direction:o.DIRECTION.NONE,type:o.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:Object(i.get)(u,"alignTick",!0)}};return l.component.init(),l}},e.prototype.getLineAxisCfg=function(t,e,n){var o=Object(i.get)(e,["top"])?this.axisForeContainer:this.axisContainer,a=this.view.getCoordinate(),s=Object(u.getAxisRegion)(a,n),l=Object(u.getAxisTitleText)(t,e),c=Object(u.getAxisThemeCfg)(this.view.getTheme(),n),h=Object(i.get)(e,["title"])?Object(i.deepMix)({title:{style:{text:l}}},{title:Object(u.getAxisTitleOptions)(this.view.getTheme(),n,e.title)},e):e,f=Object(i.deepMix)(Object(r.__assign)(Object(r.__assign)({container:o},s),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:a.isPolar?-1*Object(u.getAxisFactorByRegion)(s,a.getCenter()):Object(u.getAxisFactorByRegion)(s,a.getCenter()),theme:c}),c,h),d=this.getAnimateCfg(f),p=d.animate,g=d.animateOption;f.animateOption=g,f.animate=p;var v=Object(u.isVertical)(s),m=Object(i.get)(f,"verticalLimitLength",v?1/3:.5);if(m<=1){var y=this.view.getCanvas().get("width"),b=this.view.getCanvas().get("height");f.verticalLimitLength=m*(v?y:b)}return f},e.prototype.getLineGridCfg=function(t,e,n,r){if(Object(l.showGrid)(Object(u.getAxisThemeCfg)(this.view.getTheme(),n),e)){var o=Object(l.getGridThemeCfg)(this.view.getTheme(),n),a=Object(i.deepMix)({container:Object(i.get)(e,["top"])?this.gridForeContainer:this.gridContainer},o,Object(i.get)(e,"grid"),this.getAnimateCfg(e));return a.items=Object(l.getLineGridItems)(this.view.getCoordinate(),t,r,Object(i.get)(a,"alignTick",!0)),a}},e.prototype.getCircleAxisCfg=function(t,e,n){var a=Object(i.get)(e,["top"])?this.axisForeContainer:this.axisContainer,s=this.view.getCoordinate(),l=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(s.endAngle-s.startAngle)!==2*Math.PI||l.pop();var c=Object(u.getAxisTitleText)(t,e),h=Object(u.getAxisThemeCfg)(this.view.getTheme(),o.DIRECTION.CIRCLE),f=Object(i.get)(e,["title"])?Object(i.deepMix)({title:{style:{text:c}}},{title:Object(u.getAxisTitleOptions)(this.view.getTheme(),n,e.title)},e):e,d=Object(i.deepMix)(Object(r.__assign)(Object(r.__assign)({container:a},Object(u.getCircleAxisCenterRadius)(this.view.getCoordinate())),{ticks:l,verticalFactor:1,theme:h}),h,f),p=this.getAnimateCfg(d),g=p.animate,v=p.animateOption;return d.animate=g,d.animateOption=v,d},e.prototype.getCircleGridCfg=function(t,e,n,r){if(Object(l.showGrid)(Object(u.getAxisThemeCfg)(this.view.getTheme(),n),e)){var a=Object(l.getGridThemeCfg)(this.view.getTheme(),o.DIRECTION.RADIUS),s=Object(i.deepMix)({container:Object(i.get)(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},a,Object(i.get)(e,"grid"),this.getAnimateCfg(e)),c=Object(i.get)(s,"alignTick",!0),h="x"===r?this.view.getYScales()[0]:this.view.getXScale();return s.items=Object(l.getCircleGridItems)(this.view.getCoordinate(),h,t,c,r),s}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(n.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&Object(i.get)(t,"animate"),animateOption:t&&t.animateOption?Object(i.deepMix)({},d,t.animateOption):d}},e}(h.Controller);e.default=p},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(7),a=n(97),s=n(155),u=n(126),l=n(302),c=n(86),h=n(345),f=n(171);function d(t,e){return Object(i.isBoolean)(t)?!1!==t&&{}:Object(i.get)(t,[e],t)}function p(t){return Object(i.get)(t,"position",o.DIRECTION.BOTTOM)}var g=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(o.LAYER.FORE).addGroup(),n}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,Object(i.each)(this.components,(function(e){var n=e.component,i=e.direction,o=Object(h.getLegendLayout)(i),a=n.get("maxWidthRatio"),s=n.get("maxHeightRatio"),c=t.getCategoryLegendSizeCfg(o,a,s),f=n.get("maxWidth"),d=n.get("maxHeight");n.update({maxWidth:Math.min(c.maxWidth,f||0),maxHeight:Math.min(c.maxHeight,d||0)});var p=n.get("padding"),g=n.getLayoutBBox(),v=new u.BBox(g.x,g.y,g.width,g.height).expand(p),m=Object(r.__read)(Object(l.directionToPosition)(t.view.viewBBox,v,i),2),y=m[0],b=m[1],_=Object(r.__read)(Object(l.directionToPosition)(t.layoutBBox,v,i),2),x=_[0],w=_[1],O=0,S=0;i.startsWith("top")||i.startsWith("bottom")?(O=y,S=w):(O=x,S=b),n.setLocation({x:O+p[3],y:S+p[0]}),t.layoutBBox=t.layoutBBox.cut(v,i)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={};if(Object(i.get)(this.option,"custom")){var n="global-custom",r=this.getComponentById(n);if(r){var a=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Object(c.omit)(a,["container"]),r.component.update(a),e[n]=!0}else{var s=this.createCustomLegend(void 0,void 0,void 0,this.option);if(s){s.init();var u=o.LAYER.FORE,l=p(this.option);this.components.push({id:n,component:s,layer:u,direction:l,type:o.COMPONENT_TYPE.LEGEND,extra:void 0}),e[n]=!0}}}else this.loopLegends((function(n,r,o){var a=t.getId(o.field),s=t.getComponentById(a);if(s){var u=void 0,l=d(t.option,o.field);!1!==l&&(Object(i.get)(l,"custom")?u=t.getCategoryCfg(n,r,o,l,!0):o.isLinear?u=t.getContinuousCfg(n,r,o,l):o.isCategory&&(u=t.getCategoryCfg(n,r,o,l))),u&&(Object(c.omit)(u,["container"]),s.direction=p(l),s.component.update(u),e[a]=!0)}else{var h=t.createFieldLegend(n,r,o);h&&(h.component.init(),t.components.push(h),e[a]=!0)}}));var h=[];Object(i.each)(this.getComponents(),(function(t){e[t.id]?h.push(t):t.component.destroy()})),this.components=h},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return Object(i.each)(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var e=this.getGeometries(this.view),n={};Object(i.each)(e,(function(e){var r=e.getGroupAttributes();Object(i.each)(r,(function(r){var i=r.getScale(r.type);i&&"identity"!==i.type&&!n[i.field]&&(t(e,r,i),n[i.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var r,a=d(this.option,n.field),s=o.LAYER.FORE,u=p(a);if(!1!==a&&(Object(i.get)(a,"custom")?r=this.createCustomLegend(t,e,n,a):n.isLinear?r=this.createContinuousLegend(t,e,n,a):n.isCategory&&(r=this.createCategoryLegend(t,e,n,a))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:s,direction:u,type:o.COMPONENT_TYPE.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r,!0);return new a.CategoryLegend(i)},e.prototype.createContinuousLegend=function(t,e,n,r){var i=this.getContinuousCfg(t,e,n,Object(c.omit)(r,["value"]));return new a.ContinuousLegend(i)},e.prototype.createCategoryLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r);return new a.CategoryLegend(i)},e.prototype.getContinuousCfg=function(t,e,n,r){var o=n.getTicks(),a=Object(i.find)(o,(function(t){return 0===t.value})),u=Object(i.find)(o,(function(t){return 1===t.value})),l=o.map((function(t){var r=t.value,i=t.tickValue,o=e.mapping(n.invert(r)).join("");return{value:i,attrValue:o,color:o,scaleValue:r}}));a||l.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),u||l.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),l.sort((function(t,e){return t.value-e.value}));var c={min:Object(i.head)(l).value,max:Object(i.last)(l).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(c.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(c.colors=l.map((function(t){return t.attrValue})));var d=this.container,g=p(r),v=Object(h.getLegendLayout)(g),m=Object(i.get)(r,"title");return m&&(m=Object(i.deepMix)({text:Object(f.getName)(n)},m)),c.container=d,c.layout=v,c.title=m,c.animateOption=s.DEFAULT_ANIMATE_CFG,this.mergeLegendCfg(c,r,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,r,a){var u=this.container,l=Object(i.get)(r,"position",o.DIRECTION.BOTTOM),c=Object(h.getLegendThemeCfg)(this.view.getTheme(),l),d=Object(i.get)(c,["marker"]),p=Object(i.get)(r,"marker"),g=Object(h.getLegendLayout)(l),v=Object(i.get)(c,["pageNavigator"]),m=Object(i.get)(r,"pageNavigator"),y=a?Object(h.getCustomLegendItems)(d,p,r.items):Object(h.getLegendItems)(this.view,t,e,d,p),b=Object(i.get)(r,"title");b&&(b=Object(i.deepMix)({text:n?Object(f.getName)(n):""},b));var _=Object(i.get)(r,"maxWidthRatio"),x=Object(i.get)(r,"maxHeightRatio"),w=this.getCategoryLegendSizeCfg(g,_,x);w.container=u,w.layout=g,w.items=y,w.title=b,w.animateOption=s.DEFAULT_ANIMATE_CFG,w.pageNavigator=Object(i.deepMix)({},v,m);var O=this.mergeLegendCfg(w,r,l);O.reversed&&O.items.reverse();var S=Object(i.get)(O,"maxItemWidth");return S&&S<=1&&(O.maxItemWidth=this.view.viewBBox.width*S),O},e.prototype.mergeLegendCfg=function(t,e,n){var r=n.split("-")[0],o=Object(h.getLegendThemeCfg)(this.view.getTheme(),r);return Object(i.deepMix)({},o,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return Object(i.find)(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=o.COMPONENT_MAX_VIEW_PERCENTAGE),void 0===n&&(n=o.COMPONENT_MAX_VIEW_PERCENTAGE);var r=this.view.viewBBox,i=r.width,a=r.height;return"vertical"===t?{maxWidth:i*e,maxHeight:a}:{maxWidth:i,maxHeight:a*n}},e}(n(219).Controller);e.default=g},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(7),a=n(97),s=n(126),u=n(302),l=n(86),c=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=i.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=Object(r.__read)(t,2),i=e[0],o=e[1];n.start=i,n.end=o,n.changeViewData(i,o)},n.container=n.view.getLayer(o.LAYER.FORE).addGroup(),n.onChangeFn=Object(i.throttle)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,n=t.end;Object(i.isNil)(this.start)&&(this.start=e,this.end=n);var r=this.view.getOptions().data;this.option&&!Object(i.isEmpty)(r)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),i=Object(r.__read)(n,4),a=i[0],l=(i[1],i[2],i[3]),c=this.slider.component.getLayoutBBox(),h=new s.BBox(c.x,c.y,Math.min(c.width,e),c.height).expand(n),f=this.getMinMaxText(this.start,this.end),d=f.minText,p=f.maxText,g=Object(r.__read)(Object(u.directionToPosition)(this.view.viewBBox,h,o.DIRECTION.BOTTOM),2),v=(g[0],g[1]),m=Object(r.__read)(Object(u.directionToPosition)(this.view.coordinateBBox,h,o.DIRECTION.BOTTOM),2),y=m[0];m[1];this.slider.component.update(Object(r.__assign)(Object(r.__assign)({},this.getSliderCfg()),{x:y+l,y:v+a,width:this.width,start:this.start,end:this.end,minText:d,maxText:p})),this.view.viewBBox=this.view.viewBBox.cut(h,o.DIRECTION.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new a.Slider(Object(r.__assign)({container:this.container},t));return e.init(),{component:e,layer:o.LAYER.FORE,direction:o.DIRECTION.BOTTOM,type:o.COMPONENT_TYPE.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,i=e.maxText;t=Object(r.__assign)(Object(r.__assign)({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:i})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if(Object(i.isObject)(this.option)){var e=Object(r.__assign)({data:this.getData()},Object(i.get)(this.option,"trendCfg",{}));t=Object(i.deepMix)({},t,this.getThemeOptions(),this.option),t=Object(r.__assign)(Object(r.__assign)({},t),{trendCfg:e})}return t.start=Object(i.clamp)(Math.min(Object(i.isNil)(t.start)?0:t.start,Object(i.isNil)(t.end)?1:t.end),0,1),t.end=Object(i.clamp)(Math.max(Object(i.isNil)(t.start)?0:t.start,Object(i.isNil)(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=Object(r.__read)(this.view.getYScales(),1)[0],n=this.view.getGroupScales();if(n.length){var i=n[0],o=i.field,a=i.ticks;return t.reduce((function(t,n){return n[o]===a[0]&&t.push(n[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(i.get)(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),o=Object(i.valuesOfKey)(n,r.field);r.isLinear&&(o=o.sort());var a=o,s=Object(i.size)(n);if(!r||!s)return{};var u=Object(i.size)(a),l=Math.round(t*(u-1)),c=Math.round(e*(u-1)),h=Object(i.get)(a,[l]),f=Object(i.get)(a,[c]),d=this.getSliderCfg().formatter;return d&&(h=d(h,n[l],l),f=d(f,n[c],c)),{minText:h,maxText:f}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),o=Object(i.size)(n);if(r&&o){var a=Object(i.valuesOfKey)(n,r.field),s=this.view.getXScale().isLinear?a.sort((function(t,e){return Number(t)-Number(e)})):a,u=s,c=Object(i.size)(u),h=Math.round(t*(c-1)),f=Math.round(e*(c-1));this.view.filter(r.field,(function(t,e){var n=u.indexOf(t);return!(n>-1)||Object(l.isBetween)(n,h,f)})),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(n(219).Controller);e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(219),o=n(97),a=n(126),s=n(302),u=n(7),l=n(1),c=n(86),h=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=l.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=Object(l.clamp)(e,0,1);var i=n.view.getOptions().animate;r||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(i)},n.container=n.view.getLayer(u.LAYER.FORE).addGroup(),n.onChangeFn=Object(l.throttle)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(u.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(u.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(u.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(u.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),i=this.scrollbar.component.getLayoutBBox(),o=new a.BBox(i.x,i.y,Math.min(i.width,e),i.height).expand(n),l=this.getScrollbarComponentCfg(),c=void 0,h=void 0;if(l.isHorizontal){var f=Object(r.__read)(Object(s.directionToPosition)(this.view.viewBBox,o,u.DIRECTION.BOTTOM),2),d=(f[0],f[1]),p=Object(r.__read)(Object(s.directionToPosition)(this.view.coordinateBBox,o,u.DIRECTION.BOTTOM),2),g=p[0];p[1];c=g,h=d}else{var v=Object(r.__read)(Object(s.directionToPosition)(this.view.viewBBox,o,u.DIRECTION.RIGHT),2),m=(v[0],d=v[1],Object(r.__read)(Object(s.directionToPosition)(this.view.viewBBox,o,u.DIRECTION.RIGHT),2));g=m[0],m[1];c=g,h=d}c+=n[3],h+=n[0],this.trackLen?this.scrollbar.component.update(Object(r.__assign)(Object(r.__assign)({},l),{x:c,y:h,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(Object(r.__assign)(Object(r.__assign)({},l),{x:c,y:h})),this.view.viewBBox=this.view.viewBBox.cut(o,l.isHorizontal?u.DIRECTION.BOTTOM:u.DIRECTION.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.setValue=function(t){this.onValueChange({ratio:t})},e.prototype.getValue=function(){return this.ratio},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(l.get)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=Object(l.get)(this.view.getTheme(),["components","scrollbar"]),n=t||{},i=n.thumbHighlightColor,o=Object(r.__rest)(n,["thumbHighlightColor"]);return{default:Object(l.deepMix)({},Object(l.get)(e,["default","style"],{}),o),hover:Object(l.deepMix)({},Object(l.get)(e,["hover","style"],{}),{thumbColor:i})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),r=n.trackLen,i=n.thumbLen;this.trackLen=r,this.thumbLen=i,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*Object(l.clamp)(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var n=this,i=Object(r.__read)(t,2),o=i[0],a=i[1],s="vertical"!==this.getValidScrollbarCfg().type,u=Object(l.valuesOfKey)(this.data,this.xScaleCfg.field),h=this.view.getXScale().isLinear?u.sort((function(t,e){return Number(t)-Number(e)})):u,f=s?h:h.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max,tickMethod:t.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=f.indexOf(t);return!(e>-1)||Object(c.isBetween)(e,o,a)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t="vertical"!==this.getValidScrollbarCfg().type,e=new o.Scrollbar(Object(r.__assign)(Object(r.__assign)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:u.LAYER.FORE,direction:t?u.DIRECTION.BOTTOM:u.DIRECTION.RIGHT,type:u.COMPONENT_TYPE.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?Object(r.__assign)(Object(r.__assign)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):Object(r.__assign)({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,r=e.categorySize,i="vertical"!==n;return Math.floor((i?t.width:t.height)/r)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData(),n=Object(l.valuesOfKey)(e,t.field);return Object(l.size)(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,i=this.getValidScrollbarCfg(),o=i.type,a=i.padding,s=i.width,u=i.height,c=i.style,h="vertical"!==o,f=Object(r.__read)(a,4),d=f[0],p=f[1],g=f[2],v=f[3],m=h?{x:e.minX+v,y:n.maxY-u-g}:{x:n.maxX-s-p,y:e.minY+d},y=this.getStep(),b=this.getCnt(),_=h?e.width-v-p:e.height-d-g,x=Math.max(_*Object(l.clamp)(y/b,0,1),20);return Object(r.__assign)(Object(r.__assign)({},this.getThemeOptions()),{x:m.x,y:m.y,size:h?u:s,isHorizontal:h,trackLen:_,thumbLen:x,thumbOffset:0,theme:this.getScrollbarTheme(c)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return Object(l.isObject)(this.option)&&(t=Object(r.__assign)(Object(r.__assign)({},t),this.option)),Object(l.isObject)(this.option)&&this.option.padding||(t.padding=(t.type,[0,0,0,0])),t},e.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),e=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===e.type&&(n=Object(r.__spreadArray)([],Object(r.__read)(n),!1).reverse()),n},e}(i.Controller);e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"getItemsOfView",(function(){return l}));var r=n(2),i=n(1),o=n(388),a=n(78),s=n(95),u={fill:"#CCD6EC",opacity:.3};function l(t,e,n){var a,s,u,l,c,h,f=Object(o.findItemsFromViewRecurisive)(t,e,n);if(f.length){f=Object(i.flatten)(f);try{for(var d=Object(r.__values)(f),p=d.next();!p.done;p=d.next()){var g=p.value;try{for(var v=(u=void 0,Object(r.__values)(g)),m=v.next();!m.done;m=v.next()){var y=m.value,b=y.mappingData,_=b.x,x=b.y;y.x=Object(i.isArray)(_)?_[_.length-1]:_,y.y=Object(i.isArray)(x)?x[x.length-1]:x}}catch(t){u={error:t}}finally{try{m&&!m.done&&(l=v.return)&&l.call(v)}finally{if(u)throw u.error}}}}catch(t){a={error:t}}finally{try{p&&!p.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}if(!1===n.shared&&f.length>1){var w=f[0],O=Math.abs(e.y-w[0].y);try{for(var S=Object(r.__values)(f),C=S.next();!C.done;C=S.next()){var E=C.value,T=Math.abs(e.y-E[0].y);T<=O&&(w=E,O=T)}}catch(t){c={error:t}}finally{try{C&&!C.done&&(h=S.return)&&h.call(S)}finally{if(c)throw c.error}}f=[w]}return Object(i.uniq)(Object(i.flatten)(f))}return[]}var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,o=e.getController("tooltip").getTooltipCfg(),s=l(e,{x:n.x,y:n.y},o);if(!Object(i.isEqual)(s,this.items)&&(this.items=s,s.length)){var c=e.getXScale().field,h=s[0].data[c],f=[],d=e.geometries;if(Object(i.each)(d,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){return t.getData()[c]===h}));f=f.concat(e)}})),f.length){var p=e.getCoordinate(),g=f[0].shape.getCanvasBBox(),v=f[0].shape.getCanvasBBox(),m=g;Object(i.each)(f,(function(t){var e=t.shape.getCanvasBBox();p.isTransposed?(e.minY<g.minY&&(g=e),e.maxY>v.maxY&&(v=e)):(e.minX<g.minX&&(g=e),e.maxX>v.maxX&&(v=e)),m.x=Math.min(e.minX,m.minX),m.y=Math.min(e.minY,m.minY),m.width=Math.max(e.maxX,m.maxX)-m.x,m.height=Math.max(e.maxY,m.maxY)-m.y}));var y=e.backgroundGroup,b=e.coordinateBBox,_=void 0;if(p.isRect){var x=e.getXScale(),w=t||{},O=w.appendRatio,S=w.appendWidth;Object(i.isNil)(S)&&(O=Object(i.isNil)(O)?x.isLinear?0:.25:O,S=p.isTransposed?O*v.height:O*g.width);var C=void 0,E=void 0,T=void 0,A=void 0;p.isTransposed?(C=b.minX,E=Math.min(v.minY,g.minY)-S,T=b.width,A=m.height+2*S):(C=Math.min(g.minX,v.minX)-S,E=b.minY,T=m.width+2*S,A=b.height),_=[["M",C,E],["L",C+T,E],["L",C+T,E+A],["L",C,E+A],["Z"]]}else{var M=Object(i.head)(f),I=Object(i.last)(f),j=Object(a.getAngle)(M.getModel(),p).startAngle,k=Object(a.getAngle)(I.getModel(),p).endAngle,P=p.getCenter(),L=p.getRadius(),R=p.innerRadius*L;_=Object(a.getSectorPath)(P.x,P.y,L,j,k,R)}if(this.regionPath)this.regionPath.attr("path",_),this.regionPath.show();else{var D=Object(i.get)(t,"style",u);this.regionPath=y.addShape({type:"path",name:"active-region",capture:!1,attrs:Object(r.__assign)(Object(r.__assign)({},D),{path:_})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(s.default);e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(24),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.showTooltip=function(t,e){var n=Object(o.getSilbings)(t);Object(i.each)(n,(function(n){var r=Object(o.getSiblingPoint)(t,n,e);n.showTooltip(r)}))},e.prototype.hideTooltip=function(t){var e=Object(o.getSilbings)(t);Object(i.each)(e,(function(t){t.hideTooltip()}))},e}(n(749).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(100),a=n(95),s=n(97),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(r.__extends)(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context.event,e=this.timeStamp,n=+new Date;if(n-e>16){var r=this.location,o={x:t.x,y:t.y};r&&Object(i.isEqual)(r,o)||this.showTooltip(o),this.timeStamp=n,this.location=o}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context.event.target;if(e&&e.get("tip")){this.tooltip||this.renderTooltip();var n=e.get("tip");this.tooltip.update(Object(r.__assign)({title:n},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,a={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},u=e.getTheme(),l=Object(i.get)(u,["components","tooltip","domStyles"],{}),c=new s.HtmlTooltip({parent:n.get("el").parentNode,region:a,visible:!1,crosshairs:null,domStyles:Object(r.__assign)({},Object(i.deepMix)({},l,(t={},t[o.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},t[o.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},t)))});c.init(),c.setCapture(!1),this.tooltip=c},e}(a.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(r.__extends)(e,t),e.prototype.active=function(){this.setState()},e}(n(497).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(95),o=n(24),a=n(1),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return Object(r.__extends)(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n=this.context.view.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),i=e.shape.getCanvasBBox();return n?[["M",r.minX,r.minY],["L",i.minX,i.maxY],["L",i.maxX,i.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",i.minX,i.minY],["L",i.minX,i.maxY],["L",r.maxX,r.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n,i){var o={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:Object(r.__assign)(Object(r.__assign)({},Object(a.deepMix)({},o,Object(a.isFunction)(i)?i(o,e):i)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,r=this.context.view,i=this.getColorScale(r,t);if(i){var s=Object(o.getElementValue)(t,i.field);if(!this.cache[s]){var u=Object(o.getElementsByField)(r,i.field,s),l=this.linkGroup.addGroup();this.cache[s]=l;var c=u.length;Object(a.each)(u,(function(t,r){if(r<c-1){var i=u[r+1];n.addLinkShape(l,t,i,e)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=Object(o.getElementValue)(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(t){var e=this.context;this.linkGroup||(this.linkGroup=e.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var n=Object(o.getCurrentElement)(e);n&&this.linkByElement(n,null==t?void 0:t.style)},e.prototype.unlink=function(){var t=Object(o.getCurrentElement)(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(i.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(r.__extends)(e,t),e.prototype.active=function(){this.setState()},e}(n(499).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(r.__extends)(e,t),e.prototype.active=function(){this.setState()},e}(n(500).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(24),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=t.geometry.getAttribute("color");if(r){var o=n.getScaleByField(r.getFields()[0]),a=Object(i.getElementValue)(t,o.field),s=Object(i.getElements)(n),u=s.filter((function(t){return Object(i.getElementValue)(t,o.field)===a}));this.setHighlightBy(s,(function(t){return u.includes(t)}),e)}},e}(n(281).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(24),o=n(281),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(o.STATUS_UNACTIVE)&&t.setState(o.STATUS_UNACTIVE,!1),t.setState(o.STATUS_ACTIVE,!0)):(t.setState(o.STATUS_UNACTIVE,!0),t.hasState(o.STATUS_ACTIVE)&&t.setState(o.STATUS_ACTIVE,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=n.getXScale(),o=Object(i.getElementValue)(t,r.field),a=Object(i.getElements)(n),s=a.filter((function(t){return Object(i.getElementValue)(t,r.field)===o}));this.setHighlightBy(a,(function(t){return s.includes(t)}),e)},e.prototype.toggle=function(){var t=Object(i.getCurrentElement)(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(o.default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(24),o=n(399),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(r.__extends)(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n=this.context.view,r=Object(i.getElements)(n);Object(o.setHighlightBy)(r,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;Object(o.clearHighlight)(t)},e}(n(500).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(r.__extends)(e,t),e.prototype.selected=function(){this.setState()},e}(n(499).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(r.__extends)(e,t),e.prototype.selected=function(){this.setState()},e}(n(497).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(r.__extends)(e,t),e.prototype.selected=function(){this.setState()},e}(n(500).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(r.__extends)(e,t),e.prototype.active=function(){this.setState()},e}(n(222).default);e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"clearList",(function(){return i}));var r=n(1);function i(t){var e=t.getItems();Object(r.each)(e,(function(e){t.hasState(e,"active")&&t.setItemState(e,"active",!1),t.hasState(e,"inactive")&&t.setItemState(e,"inactive",!1)}))}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(r.__extends)(e,t),e.prototype.selected=function(){this.setState()},e}(n(222).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return Object(r.__extends)(e,t),e.prototype.unchecked=function(){this.setState()},e}(n(222).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(222),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="checked",e}return Object(r.__extends)(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,(function(t){return t===e}),n)},e.prototype.setCheckedBy=function(t,e,n){var r=t.getItems();n&&Object(i.each)(r,(function(n){e(n)?(t.hasState(n,"unchecked")&&t.setItemState(n,"unchecked",!1),t.setItemState(n,"checked",!0)):t.hasState(n,"checked")||t.setItemState(n,"unchecked",!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item;!Object(i.some)(e.getItems(),(function(t){return e.hasState(t,"unchecked")}))||e.hasState(n,"unchecked")?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();Object(i.each)(t,(function(t){t.clearItemsState("checked"),t.clearItemsState("unchecked")}))},e}(o.default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(222),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.toggle=function(){var t,e,n,i,o,a,s,u,l=this.getTriggerListInfo();if(null==l?void 0:l.item){var c=l.list,h=l.item,f=c.getItems(),d=f.filter((function(t){return!c.hasState(t,"unchecked")})),p=f.filter((function(t){return c.hasState(t,"unchecked")})),g=d[0];if(f.length===d.length)try{for(var v=Object(r.__values)(f),m=v.next();!m.done;m=v.next()){var y=m.value;c.setItemState(y,"unchecked",y.id!==h.id)}}catch(e){t={error:e}}finally{try{m&&!m.done&&(e=v.return)&&e.call(v)}finally{if(t)throw t.error}}else if(f.length-p.length==1)if(g.id===h.id)try{for(var b=Object(r.__values)(f),_=b.next();!_.done;_=b.next()){y=_.value;c.setItemState(y,"unchecked",!1)}}catch(t){n={error:t}}finally{try{_&&!_.done&&(i=b.return)&&i.call(b)}finally{if(n)throw n.error}}else try{for(var x=Object(r.__values)(f),w=x.next();!w.done;w=x.next()){y=w.value;c.setItemState(y,"unchecked",y.id!==h.id)}}catch(t){o={error:t}}finally{try{w&&!w.done&&(a=x.return)&&a.call(x)}finally{if(o)throw o.error}}else try{for(var O=Object(r.__values)(f),S=O.next();!S.done;S=O.next()){y=S.value;c.setItemState(y,"unchecked",y.id!==h.id)}}catch(t){s={error:t}}finally{try{S&&!S.done&&(u=O.return)&&u.call(O)}finally{if(s)throw s.error}}}},e}(i.default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(222),o=n(1),a=n(100),s=n(97),u="legend-radio-tip",l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(r.__extends)(e,t),e.prototype.show=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!1)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context.event,e=this.timeStamp,n=+new Date,r=this.context.event.target;if(n-e>16&&"legend-item-radio"===r.get("name")){var i=this.location,a={x:t.x,y:t.y};this.timeStamp=n,this.location=a,i&&Object(o.isEqual)(i,a)||this.showTooltip(a)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event.target;if(n&&n.get("tip")){this.tooltip||this.renderTooltip();var i=e.view.getCanvas().get("el").getBoundingClientRect(),o=i.x,a=i.y;this.tooltip.update(Object(r.__assign)(Object(r.__assign)({title:n.get("tip")},t),{x:t.x+o,y:t.y+a})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=((t={})[a.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[a.TOOLTIP_CSS_CONST.TITLE_CLASS]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(u)&&document.body.removeChild(document.getElementById(u));var n=new s.HtmlTooltip({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:u});n.init(),n.setCapture(!1),this.tooltip=n},e}(i.default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(24),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return Object(r.__extends)(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=Object(i.last)(this.points),n=0,r=0,a=0;if(t.length){var s=t[0];n=Object(o.distance)(s,e)/2,r=(e.x+s.x)/2,a=(e.y+s.y)/2}return{x:r,y:a,r:n}},e}(n(501).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(24),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getMaskPath=function(){var t=this.points;return Object(i.getSpline)(t,!0)},e}(n(752).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.setCursor=function(t){this.context.view.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e.prototype.zoomIn=function(){this.setCursor("zoom-in")},e.prototype.zoomOut=function(){this.setCursor("zoom-out")},e}(n(95).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(95),a=n(24),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.filterView=function(t,e,n){var r=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&Object(i.each)(t.views,(function(t){r.filterView(t,e,n)}))},e.prototype.filter=function(){var t=Object(a.getDelegationObject)(this.context);if(t){var e=this.context.view,n=t.component,i=n.get("field");if(Object(a.isList)(t)){if(i){var o=n.getItemsByState("unchecked"),s=Object(a.getScaleByField)(e,i),u=o.map((function(t){return t.name}));u.length?this.filterView(e,i,(function(t){var e=s.getText(t);return!u.includes(e)})):this.filterView(e,i,null),e.render(!0)}}else if(Object(a.isSlider)(t)){var l=n.getValue(),c=Object(r.__read)(l,2),h=c[0],f=c[1];this.filterView(e,i,(function(t){return t>=h&&t<=f})),e.render(!0)}}},e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(95),a=n(24),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.filter=function(){var t=Object(a.getDelegationObject)(this.context),e=this.context.view,n=Object(a.getElements)(e);if(Object(a.isMask)(this.context)){var o=Object(a.getMaskedElements)(this.context,10);o&&Object(i.each)(n,(function(t){o.includes(t)?t.show():t.hide()}))}else if(t){var s=t.component,u=s.get("field");if(Object(a.isList)(t)){if(u){var l=s.getItemsByState("unchecked"),c=Object(a.getScaleByField)(e,u),h=l.map((function(t){return t.name}));Object(i.each)(n,(function(t){var e=Object(a.getElementValue)(t,u),n=c.getText(e);h.indexOf(n)>=0?t.hide():t.show()}))}}else if(Object(a.isSlider)(t)){var f=s.getValue(),d=Object(r.__read)(f,2),p=d[0],g=d[1];Object(i.each)(n,(function(t){var e=Object(a.getElementValue)(t,u);e>=p&&e<=g?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=Object(a.getElements)(this.context.view);Object(i.each)(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(25),o=n(1),a=n(431),s=n(95),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return Object(r.__extends)(e,t),e.prototype.getButtonCfg=function(){return Object(o.deepMix)(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:Object(r.__assign)({text:t.text},t.textStyle)}).getBBox(),i=Object(a.parsePadding)(t.padding),o=e.addShape({type:"rect",name:"button-rect",attrs:Object(r.__assign)({x:n.x-i[3],y:n.y-i[0],width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},t.style)});o.toBack(),e.on("mouseenter",(function(){o.attr(t.activeStyle)})),e.on("mouseleave",(function(){o.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=i.ext.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(s.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(95),o=n(24),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return Object(r.__extends)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):Object(o.distance)(t,this.startPoint)>4&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(25),o=n(314),a=n(24),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return Object(r.__extends)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint();if(Object(a.distance)(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,r=i.ext.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);n.backgroundGroup.setMatrix(r),n.foregroundGroup.setMatrix(r),n.middleGroup.setMatrix(r)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(o.Action);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return Object(r.__extends)(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;Object(i.each)(e,(function(e){var n=t.getScale(e),r=n.min,i=n.max,o=n.values;t.startCache[e]={min:r,max:i,values:o}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),r=this.context.getCurrentPoint(),o=n.invert(e),a=n.invert(r),s=a.x-o.x,u=a.y-o.y,l=this.context.view,c=this.dims;Object(i.each)(c,(function(e){t.translateDim(e,{x:-1*s,y:-1*u})})),l.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var r=this.context.view,i=this.startCache[t],o=i.min,a=i.max,s=a-o,u=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:o,max:a}),r.scale(e.field,{nice:!1,min:o+u,max:a+u})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(n(753).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return Object(r.__extends)(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;Object(i.each)(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var r=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var i=this.cacheScaleDefs[t],o=i.max-i.min,a=e.min,s=e.max,u=n*o,l=a-u,c=s+u,h=(c-l)/o;c>l&&h<100&&h>.01&&r.scale(e.field,{nice:!1,min:a-u,max:s+u})},e}(n(753).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(314);var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,r=e.event;if(n.getOptions().scrollbar){var o=(null==t?void 0:t.wheelDelta)||1,a=n.getController("scrollbar"),s=n.getXScale(),u=n.getOptions().data,l=Object(i.size)(Object(i.valuesOfKey)(u,s.field)),c=Object(i.size)(s.values),h=a.getValue(),f=Math.floor((l-c)*h)+(function(t){return t.gEvent.originalEvent.deltaY>0}(r)?o:-o),d=o/(l-c)/1e4,p=Object(i.clamp)(f/(l-c)+d,0,1);a.setValue(p)}},e}(o.Action);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(100),o=n(1),a=n(97),s=n(95),u=n(24),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.show=function(){var t=this.context,e=Object(u.getDelegationObject)(t).axis.cfg.title,n=e.description,r=e.text,o=e.descriptionTooltipStyle,a=t.event,s=a.x,l=a.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:r||"",customContent:function(){return'\n <div class="'.concat(i.TOOLTIP_CSS_CONST.CONTAINER_CLASS,'" style={').concat(o,'}>\n <div class="').concat(i.TOOLTIP_CSS_CONST.TITLE_CLASS,'">\n 字段说明:').concat(n,"\n </div>\n </div>\n ")},x:s,y:l}),this.tooltip.show()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view.canvas,n={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},s=new a.HtmlTooltip({parent:e.get("el").parentNode,region:n,visible:!1,containerId:"aixs-description-tooltip",domStyles:Object(r.__assign)({},Object(o.deepMix)({},(t={},t[i.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[i.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all","margin-bottom":"3px"},t)))});s.init(),s.setCapture(!1),this.tooltip=s},e}(s.default);e.default=l},function(t,e,n){"use strict";var r;function i(){return r||(r=document.createElement("canvas").getContext("2d")),r}n.r(e),n.d(e,"getCanvasContext",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"EN_US_LOCALE",(function(){return r}));var r={locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}}},function(t,e,n){"use strict";n.r(e),n.d(e,"ZH_CN_LOCALE",(function(){return r}));var r={locale:"zh-CN",general:{increase:"增加",decrease:"减少",root:"初始"},statistic:{total:"总计"},conversionTag:{label:"转化率"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"总计"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var r=n(1994);e.bind=function(t,e){var n=(0,r.getSensor)(t);return n.bind(e),function(){n.unbind(e)}};e.clear=function(t){var e=(0,r.getSensor)(t);(0,r.removeSensor)(e)};e.ver="1.0.1"},function(t,e,n){"use strict";n.r(e),n.d(e,"defaultDotPatternCfg",(function(){return o})),n.d(e,"drawDot",(function(){return a})),n.d(e,"createDotPattern",(function(){return s}));var r=n(3),i=n(174),o={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function a(t,e,n,r){var i=e.size,o=e.fill,a=e.lineWidth,s=e.stroke,u=e.fillOpacity;t.beginPath(),t.globalAlpha=u,t.fillStyle=o,t.strokeStyle=s,t.lineWidth=a,t.arc(n,r,i/2,0,2*Math.PI,!1),t.fill(),a&&t.stroke(),t.closePath()}function s(t){var e=Object(r.deepAssign)({},o,t),n=e.size,s=e.padding,u=e.isStagger,l=e.rotation,c=Object(i.getUnitPatternSize)(n,s,u),h=Object(i.getSymbolsPosition)(c,u),f=Object(i.initCanvas)(c,c),d=f.getContext("2d");Object(i.drawBackground)(d,e,c);for(var p=0,g=h;p<g.length;p++){var v=g[p];a(d,e,v[0],v[1])}var m=d.createPattern(f,"repeat");if(m){var y=Object(i.getPixelRatio)(),b=Object(i.transformMatrix)(y,l);m.setTransform(b)}return m}},function(t,e,n){"use strict";n.r(e),n.d(e,"defaultLinePatternCfg",(function(){return o})),n.d(e,"drawLine",(function(){return a})),n.d(e,"createLinePattern",(function(){return s}));var r=n(3),i=n(174),o={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2};function a(t,e,n){var r=e.stroke,i=e.lineWidth,o=e.strokeOpacity,a=new Path2D(n);t.globalAlpha=o,t.lineCap="square",t.strokeStyle=i?r:"transparent",t.lineWidth=i,t.stroke(a)}function s(t){var e=Object(r.deepAssign)({},o,t),n=e.spacing,s=e.rotation,u=e.lineWidth,l=n+u||1,c=n+u||1,h="\n M 0 0 L "+l+" 0\n M 0 "+c+" L "+l+" "+c+"\n ",f=Object(i.initCanvas)(l,c),d=f.getContext("2d");Object(i.drawBackground)(d,e,l,c),a(d,e,h);var p=d.createPattern(f,"repeat");if(p){var g=Object(i.getPixelRatio)(),v=Object(i.transformMatrix)(g,s);p.setTransform(v)}return p}},function(t,e,n){"use strict";n.r(e),n.d(e,"defaultSquarePatternCfg",(function(){return o})),n.d(e,"drawSquare",(function(){return a})),n.d(e,"createSquarePattern",(function(){return s}));var r=n(3),i=n(174),o={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function a(t,e,n,r){var i=e.stroke,o=e.size,a=e.fill,s=e.lineWidth,u=e.fillOpacity;t.globalAlpha=u,t.strokeStyle=i,t.lineWidth=s,t.fillStyle=a,t.strokeRect(n-o/2,r-o/2,o,o),t.fillRect(n-o/2,r-o/2,o,o)}function s(t){var e=Object(r.deepAssign)({},o,t),n=e.size,s=e.padding,u=e.isStagger,l=e.rotation,c=Object(i.getUnitPatternSize)(n,s,u),h=Object(i.getSymbolsPosition)(c,u),f=Object(i.initCanvas)(c,c),d=f.getContext("2d");Object(i.drawBackground)(d,e,c);for(var p=0,g=h;p<g.length;p++){var v=g[p];a(d,e,v[0],v[1])}var m=d.createPattern(f,"repeat");if(m){var y=Object(i.getPixelRatio)(),b=Object(i.transformMatrix)(y,l);m.setTransform(b)}return m}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return o}));var r=n(26),i=n(3),o=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1})},function(t,e,n){"use strict";n.r(e),n.d(e,"MarkerActiveAction",(function(){return o}));var r=n(2),i=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.active=function(){var t=this.getView(),e=this.context.event;if(e.data){var n=e.data.items,r=t.geometries.filter((function(t){return"point"===t.type}));Object(i.each)(r,(function(t){Object(i.each)(t.elements,(function(t){var e=-1!==Object(i.findIndex)(n,(function(e){return e.data===t.data}));t.setState("active",e)}))}))}},e.prototype.reset=function(){var t=this.getView().geometries.filter((function(t){return"point"===t.type}));Object(i.each)(t,(function(t){Object(i.each)(t.elements,(function(t){t.setState("active",!1)}))}))},e.prototype.getView=function(){return this.context.view},e}(n(13).InteractionAction)},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return o}));var r=n(26),i=n(3),o=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left",radio:{}}})},function(t,e,n){"use strict";n.r(e),n.d(e,"conversionTag",(function(){return h}));var r=n(2),i=n(1),o=n(13),a=n(3),s=n(754);function u(t,e){return Object(a.deepAssign)({size:e?32:80,spacing:e?8:12,offset:e?32:0,arrow:!1!==t.arrow&&{headSize:12,style:{fill:"rgba(0, 0, 0, 0.05)"}},text:!1!==t.text&&{style:{fontSize:12,fill:"rgba(0, 0, 0, 0.85)",textAlign:"center",textBaseline:"middle"},formatter:s.conversionTagFormatter}},t)}function l(t,e){return Object(i.map)(e.getModel().points,(function(e){return t.convertPoint(e)}))}function c(t,e,n){!function(t,e,n){var i=t.view,o=t.geometry,a=t.group,s=t.options,u=t.horizontal,c=s.offset,h=s.size,f=s.arrow,d=i.getCoordinate(),p=l(d,e)[3],g=l(d,n)[0],v=g.y-p.y,m=g.x-p.x;if("boolean"!=typeof f){var y,b=f.headSize,_=s.spacing;u?(m-b)/2<_?(_=Math.max(1,(m-b)/2),y=[[p.x+_,p.y-c],[p.x+_,p.y-c-h],[g.x-_,g.y-c-h/2]]):y=[[p.x+_,p.y-c],[p.x+_,p.y-c-h],[g.x-_-b,g.y-c-h],[g.x-_,g.y-c-h/2],[g.x-_-b,g.y-c]]:(v-b)/2<_?(_=Math.max(1,(v-b)/2),y=[[p.x+c,p.y+_],[p.x+c+h,p.y+_],[g.x+c+h/2,g.y-_]]):y=[[p.x+c,p.y+_],[p.x+c+h,p.y+_],[g.x+c+h,g.y-_-b],[g.x+c+h/2,g.y-_],[g.x+c,g.y-_-b]],a.addShape("polygon",{id:i.id+"-conversion-tag-arrow-"+o.getElementId(e.getModel().mappingData),name:"conversion-tag-arrow",origin:{element:e,nextElement:n},attrs:Object(r.__assign)(Object(r.__assign)({},f.style||{}),{points:y})})}}(t,e,n),function(t,e,n){var i,o,a,s=t.view,u=t.geometry,c=t.group,h=t.options,f=t.field,d=t.horizontal,p=h.offset,g=h.size;if("boolean"!=typeof h.text){var v=s.getCoordinate(),m=(null===(i=h.text)||void 0===i?void 0:i.formatter)&&(null===(o=h.text)||void 0===o?void 0:o.formatter(e.getData()[f],n.getData()[f])),y=l(v,e)[d?3:0],b=l(v,n)[d?0:3],_=c.addShape("text",{id:s.id+"-conversion-tag-text-"+u.getElementId(e.getModel().mappingData),name:"conversion-tag-text",origin:{element:e,nextElement:n},attrs:Object(r.__assign)(Object(r.__assign)({},(null===(a=h.text)||void 0===a?void 0:a.style)||{}),{text:m,x:d?(y.x+b.x)/2:y.x+p+g/2,y:d?y.y-p-g/2:(y.y+b.y)/2})});if(d){var x=b.x-y.x,w=_.getBBox().width;if(w>x){var O=w/m.length,S=Math.max(1,Math.ceil(x/O)-1),C=m.slice(0,S)+"...";_.attr("text",C)}}}}(t,e,n)}function h(t,e,n){return void 0===e&&(e=!0),void 0===n&&(n=!1),function(r){var s=r.options,l=r.chart,h=s.conversionTag,f=s.theme;return h&&!n&&(l.theme(Object(a.deepAssign)({},Object(i.isObject)(f)?f:Object(o.getTheme)(f),{columnWidthRatio:1/3})),l.annotation().shape({render:function(n,r){var o=n.addGroup({id:l.id+"-conversion-tag-group",name:"conversion-tag-group"}),a=Object(i.find)(l.geometries,(function(t){return"interval"===t.type})),s={view:r,geometry:a,group:o,field:t,horizontal:e,options:u(h,e)},f=a.elements;Object(i.each)(f,(function(t,e){e>0&&c(s,f[e-1],t)}))}})),r}}},function(t,e,n){"use strict";n.r(e),n.d(e,"connectedArea",(function(){return a}));var r=n(13),i={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},o=function(t,e){return"hover"===t?[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"],arg:[null,{style:e}]}]:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"],arg:[null,null,null,null,{style:e}]}]};function a(t){return void 0===t&&(t=!1),function(e){var n=e.chart,r=e.options.connectedArea,a=function(){n.removeInteraction(i.hover),n.removeInteraction(i.click)};if(!t&&r){var s=r.trigger||"hover";a(),n.interaction(i[s],{start:o(s,r.style)})}else a();return e}}Object(r.registerInteraction)(i.hover,{start:o(i.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Object(r.registerInteraction)(i.click,{start:o(i.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]})},function(t,e,n){"use strict";n.r(e),n.d(e,"BUTTON_ACTION_CONFIG",(function(){return s})),n.d(e,"ButtonAction",(function(){return u}));var r=n(2),i=n(13),o=n(1),a=n(3),s={padding:[8,10],text:"reset",textStyle:{default:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"}},buttonStyle:{default:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},active:{fill:"#e6e6e6"}}},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg=Object(r.__assign)({name:"button"},s),e}return Object(r.__extends)(e,t),e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(o.get)(t,["interactions","filter-action","cfg","buttonConfig"]);return Object(a.deepAssign)(this.buttonCfg,e,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=this.drawText(e);this.drawBackground(e,n.getBBox()),this.buttonGroup=e},e.prototype.drawText=function(t){var e,n=this.getButtonCfg();return t.addShape({type:"text",name:"button-text",attrs:Object(r.__assign)({text:n.text},null===(e=n.textStyle)||void 0===e?void 0:e.default)})},e.prototype.drawBackground=function(t,e){var n,i=this.getButtonCfg(),o=Object(a.normalPadding)(i.padding),s=t.addShape({type:"rect",name:"button-rect",attrs:Object(r.__assign)({x:e.x-o[3],y:e.y-o[0],width:e.width+o[1]+o[3],height:e.height+o[0]+o[2]},null===(n=i.buttonStyle)||void 0===n?void 0:n.default)});return s.toBack(),t.on("mouseenter",(function(){var t;s.attr(null===(t=i.buttonStyle)||void 0===t?void 0:t.active)})),t.on("mouseleave",(function(){var t;s.attr(null===(t=i.buttonStyle)||void 0===t?void 0:t.default)})),s},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=i.Util.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(i.Action)},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return o}));var r=n(26),i=n(3),o=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]})},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return o}));var r=n(26),i=n(3),o=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]})},function(t,e,n){"use strict";n.r(e),n.d(e,"PieLegendAction",(function(){return s}));var r=n(2),i=n(13),o=n(1),a=n(588),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getActiveElements=function(){var t=i.Util.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,r=t.item,o=n.get("field");if(o)return e.geometries[0].elements.filter((function(t){return t.getModel().data[o]===r.value}))}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,e=this.getActiveElements();return t.geometries[0].labelsContainer.getChildren().filter((function(t){return e.find((function(e){return Object(o.isEqual)(e.getData(),t.get("data"))}))}))},e.prototype.transfrom=function(t){void 0===t&&(t=7.5);var e=this.getActiveElements(),n=this.getActiveElementLabels();e.forEach((function(e,r){var o=n[r],s=e.geometry.coordinate;if(s.isPolar&&s.isTransposed){var u=i.Util.getAngle(e.getModel(),s),l=(u.startAngle+u.endAngle)/2,c=t,h=c*Math.cos(l),f=c*Math.sin(l);e.shape.setMatrix(Object(a.transform)([["t",h,f]])),o.setMatrix(Object(a.transform)([["t",h,f]]))}}))},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(i.Action)},function(t,e,n){"use strict";n.r(e),n.d(e,"StatisticAction",(function(){return u}));var r=n(2),i=n(13),o=n(1),a=n(555),s=n(1712),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getAnnotations=function(t){return(t||this.context.view).getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var t=this,e=this.context.view;e.removeInteraction("tooltip"),e.on("afterchangesize",(function(){var n=t.getAnnotations(e);t.initialAnnotation=n}))},e.prototype.change=function(t){var e=this.context,n=e.view,r=e.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var u=Object(o.get)(r,["data","data"]);if(r.type.match("legend-item")){var l=i.Util.getDelegationObject(this.context),c=n.getGroupedFields()[0];if(l&&c){var h=l.item;u=n.getData().find((function(t){return t[c]===h.value}))}}if(u){var f=Object(o.get)(t,"annotations",[]),d=Object(o.get)(t,"statistic",{});n.getController("annotation").clear(!0),Object(o.each)(f,(function(t){"object"==typeof t&&n.annotation()[t.type](t)})),Object(a.renderStatistic)(n,{statistic:d,plotType:"pie"},u),n.render(!0)}var p=Object(s.getCurrentElement)(this.context);p&&p.shape.toFront()},e.prototype.reset=function(){var t=this.context.view;t.getController("annotation").clear(!0);var e=this.getInitialAnnotation();Object(o.each)(e,(function(e){t.annotation()[e.type](e)})),t.render(!0)},e}(i.Action)},function(t,e,n){"use strict";function r(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}n.r(e),n.d(e,"getCurrentElement",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"legend",(function(){return c})),n.d(e,"adaptor",(function(){return p}));var r=n(2),i=n(1),o=n(3),a=n(8),s=n(34);function u(t){var e=t.chart,n=t.options,r=n.data,i=n.sectorStyle,a=n.color;return e.data(r),Object(o.flow)(s.interval)(Object(o.deepAssign)({},t,{options:{marginRatio:1,interval:{style:i,color:a}}})),t}function l(t){var e=t.chart,n=t.options,a=n.label,s=n.xField,u=Object(o.findGeometry)(e,"interval");if(!1===a)u.label(!1);else if(Object(i.isObject)(a)){var l=a.callback,c=a.fields,h=Object(r.__rest)(a,["callback","fields"]),f=h.offset,d=h.layout;(void 0===f||f>=0)&&(d=d?Object(i.isArray)(d)?d:[d]:[],h.layout=Object(i.filter)(d,(function(t){return"limit-in-shape"!==t.type})),h.layout.length||delete h.layout),u.label({fields:c||[s],callback:l,cfg:Object(o.transformLabel)(h)})}else Object(o.log)(o.LEVEL.WARN,null===a,"the label option must be an Object."),u.label({fields:[s]});return t}function c(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return!1===r?e.legend(!1):i&&e.legend(i,r),t}function h(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function f(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,s=n.xField,u=n.yField;return Object(o.flow)(Object(a.scale)(((e={})[s]=r,e[u]=i,e)))(t)}function d(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return r?e.axis(o,r):e.axis(o,!1),i?e.axis(a,i):e.axis(a,!1),t}function p(t){Object(o.flow)(Object(a.pattern)("sectorStyle"),u,f,l,h,d,c,a.tooltip,a.interaction,a.animation,a.theme,Object(a.annotation)(),a.state)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return o}));var r=n(26),i=n(3),o=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},function(t,e,n){"use strict";n.r(e),n.d(e,"legend",(function(){return f})),n.d(e,"adaptor",(function(){return d}));var r=n(2),i=n(1),o=n(8),a=n(3),s=n(34),u=n(589),l=n(590);function c(t){var e=t.chart,n=t.options,o=n.colorField,c=n.color,h=Object(u.transform)(t);e.data(h);var f=Object(a.deepAssign)({},t,{options:{xField:"x",yField:"y",seriesField:o&&l.WORD_CLOUD_COLOR_FIELD,rawFields:Object(i.isFunction)(c)&&Object(r.__spreadArrays)(Object(i.get)(n,"rawFields",[]),["datum"]),point:{color:c,shape:"word-cloud"}}});return Object(s.point)(f).ext.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function h(t){return Object(a.flow)(Object(o.scale)({x:{nice:!1},y:{nice:!1}}))(t)}function f(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField;return!1===r?e.legend(!1):i&&e.legend(l.WORD_CLOUD_COLOR_FIELD,r),t}function d(t){Object(a.flow)(c,h,o.tooltip,f,o.interaction,o.animation,o.theme,o.state)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return o}));var r=n(26),i=n(3),o=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}})},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptor",(function(){return f}));var r=n(2),i=n(8),o=n(34),a=n(3);function s(t){var e=t.chart,n=t.options,i=n.data,s=n.lineStyle,u=n.color,l=n.point,c=n.area;e.data(i);var h=Object(a.deepAssign)({},t,{options:{line:{style:s,color:u},point:l?Object(r.__assign)({color:u},l):l,area:c?Object(r.__assign)({color:u},c):c,label:void 0}}),f=Object(a.deepAssign)({},h,{options:{tooltip:!1}}),d=(null==l?void 0:l.state)||n.state,p=Object(a.deepAssign)({},h,{options:{tooltip:!1,state:d}});return Object(o.line)(h),Object(o.point)(p),Object(o.area)(f),t}function u(t){var e,n=t.options,r=n.xAxis,o=n.yAxis,s=n.xField,u=n.yField;return Object(a.flow)(Object(i.scale)(((e={})[s]=r,e[u]=o,e)))(t)}function l(t){var e=t.chart,n=t.options,r=n.radius,i=n.startAngle,o=n.endAngle;return e.coordinate("polar",{radius:r,startAngle:i,endAngle:o}),t}function c(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis,o=n.yField,a=n.yAxis;return e.axis(r,i),e.axis(o,a),t}function h(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,s=Object(a.findGeometry)(e,"line");if(i){var u=i.callback,l=Object(r.__rest)(i,["callback"]);s.label({fields:[o],callback:u,cfg:Object(a.transformLabel)(l)})}else s.label(!1);return t}function f(t){return Object(a.flow)(s,u,i.theme,l,c,i.legend,i.tooltip,h,i.interaction,i.animation,Object(i.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"RadarTooltipController",(function(){return a})),n.d(e,"RadarTooltipAction",(function(){return s}));var r=n(2),i=n(13),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(e){var n=this.getTooltipCfg(),a=n.shared,s=n.title,u=t.prototype.getTooltipItems.call(this,e);if(u.length>0){var l=this.view.geometries[0],c=l.dataArray,h=u[0].name,f=[];return c.forEach((function(t){t.forEach((function(t){var e=i.Util.getTooltipItems(t,l)[0];if(!a&&e&&e.name===h){var n=Object(o.isNil)(s)?h:s;f.push(Object(r.__assign)(Object(r.__assign)({},e),{name:e.title,title:n}))}else if(a&&e){n=Object(o.isNil)(s)?e.name||h:s;f.push(Object(r.__assign)(Object(r.__assign)({},e),{name:e.title,title:n}))}}))})),f}return[]},e}(i.TooltipController);Object(i.registerComponentController)("radar-tooltip",a);var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.init=function(){this.context.view.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event;this.getTooltipController().showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){this.getTooltipController().hideTooltip()},e.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},e}(i.Action)},function(t,e,n){"use strict";n.r(e),n.d(e,"transformOptions",(function(){return g})),n.d(e,"color",(function(){return y})),n.d(e,"meta",(function(){return b})),n.d(e,"axis",(function(){return _})),n.d(e,"tooltip",(function(){return x})),n.d(e,"interaction",(function(){return w})),n.d(e,"annotation",(function(){return O})),n.d(e,"theme",(function(){return S})),n.d(e,"animation",(function(){return C})),n.d(e,"limitInPlot",(function(){return E})),n.d(e,"legend",(function(){return T})),n.d(e,"slider",(function(){return A})),n.d(e,"adaptor",(function(){return M}));var r=n(2),i=n(1),o=n(8),a=n(244),s=n(3),u=n(105),l=n(236),c=n(921),h=n(1720),f=n(922),d=n(305),p=n(113);function g(t){var e,n=t.options,r=n.geometryOptions,o=void 0===r?[]:r,a=n.xField,u=n.yField,c=Object(i.every)(o,(function(t){var e=t.geometry;return e===d.DualAxesGeometry.Line||void 0===e}));return Object(s.deepAssign)({},{options:{geometryOptions:[],meta:(e={},e[a]={type:"cat",sync:!0,range:c?[0,1]:void 0},e),tooltip:{showMarkers:c,showCrosshairs:c,shared:!0,crosshairs:{type:"x"}},interactions:c?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},t,{options:{yAxis:Object(l.transformObjectToArray)(u,n.yAxis),geometryOptions:[Object(l.getGeometryOption)(a,u[0],o[0]),Object(l.getGeometryOption)(a,u[1],o[1])],annotations:Object(l.transformObjectToArray)(u,n.annotations)}})}function v(t){var e,n,r=t.chart,i=t.options.geometryOptions,o={line:0,column:1};return[{type:null===(e=i[0])||void 0===e?void 0:e.geometry,id:p.LEFT_AXES_VIEW},{type:null===(n=i[1])||void 0===n?void 0:n.geometry,id:p.RIGHT_AXES_VIEW}].sort((function(t,e){return-o[t.type]+o[e.type]})).forEach((function(t){return r.createView({id:t.id})})),t}function m(t){var e=t.chart,n=t.options,i=n.xField,o=n.yField,s=n.geometryOptions,c=n.data,f=n.tooltip;return[Object(r.__assign)(Object(r.__assign)({},s[0]),{id:p.LEFT_AXES_VIEW,data:c[0],yField:o[0]}),Object(r.__assign)(Object(r.__assign)({},s[1]),{id:p.RIGHT_AXES_VIEW,data:c[1],yField:o[1]})].forEach((function(t){var n=t.id,o=t.data,s=t.yField,c=Object(l.isColumn)(t)&&t.isPercent,d=c?Object(a.percent)(o,s,i,s):o,p=Object(u.findViewById)(e,n).data(d),g=c?Object(r.__assign)({formatter:function(e){return{name:e[t.seriesField]||s,value:(100*Number(e[s])).toFixed(2)+"%"}}},f):f;Object(h.drawSingleGeometry)({chart:p,options:{xField:i,yField:s,tooltip:g,geometryOption:t}})})),t}function y(t){var e,n=t.chart,r=t.options.geometryOptions,o=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],a=0;return n.once("beforepaint",(function(){Object(i.each)(r,(function(t,e){var r=Object(u.findViewById)(n,0===e?p.LEFT_AXES_VIEW:p.RIGHT_AXES_VIEW);if(!t.color){var s=r.getGroupScales(),l=Object(i.get)(s,[0,"values","length"],1),c=o.slice(a,a+l).concat(0===e?[]:o);r.geometries.forEach((function(e){t.seriesField?e.color(t.seriesField,c):e.color(c[0])})),a+=l}})),n.render(!0)})),t}function b(t){var e,n,r=t.chart,i=t.options,a=i.xAxis,l=i.yAxis,c=i.xField,h=i.yField;return Object(o.scale)(((e={})[c]=a,e[h[0]]=l[0],e))(Object(s.deepAssign)({},t,{chart:Object(u.findViewById)(r,p.LEFT_AXES_VIEW)})),Object(o.scale)(((n={})[c]=a,n[h[1]]=l[1],n))(Object(s.deepAssign)({},t,{chart:Object(u.findViewById)(r,p.RIGHT_AXES_VIEW)})),t}function _(t){var e=t.chart,n=t.options,r=Object(u.findViewById)(e,p.LEFT_AXES_VIEW),i=Object(u.findViewById)(e,p.RIGHT_AXES_VIEW),o=n.xField,a=n.yField,s=n.xAxis,c=n.yAxis;return e.axis(o,!1),e.axis(a[0],!1),e.axis(a[1],!1),r.axis(o,s),r.axis(a[0],Object(l.getYAxisWithDefault)(c[0],d.AxisType.Left)),i.axis(o,!1),i.axis(a[1],Object(l.getYAxisWithDefault)(c[1],d.AxisType.Right)),t}function x(t){var e=t.chart,n=t.options.tooltip,r=Object(u.findViewById)(e,p.LEFT_AXES_VIEW),i=Object(u.findViewById)(e,p.RIGHT_AXES_VIEW);return e.tooltip(n),r.tooltip({shared:!0}),i.tooltip({shared:!0}),t}function w(t){var e=t.chart;return Object(o.interaction)(Object(s.deepAssign)({},t,{chart:Object(u.findViewById)(e,p.LEFT_AXES_VIEW)})),Object(o.interaction)(Object(s.deepAssign)({},t,{chart:Object(u.findViewById)(e,p.RIGHT_AXES_VIEW)})),t}function O(t){var e=t.chart,n=t.options.annotations,r=Object(i.get)(n,[0]),a=Object(i.get)(n,[1]);return Object(o.annotation)(r)(Object(s.deepAssign)({},t,{chart:Object(u.findViewById)(e,p.LEFT_AXES_VIEW),options:{annotations:r}})),Object(o.annotation)(a)(Object(s.deepAssign)({},t,{chart:Object(u.findViewById)(e,p.RIGHT_AXES_VIEW),options:{annotations:a}})),t}function S(t){var e=t.chart;return Object(o.theme)(Object(s.deepAssign)({},t,{chart:Object(u.findViewById)(e,p.LEFT_AXES_VIEW)})),Object(o.theme)(Object(s.deepAssign)({},t,{chart:Object(u.findViewById)(e,p.RIGHT_AXES_VIEW)})),Object(o.theme)(t),t}function C(t){var e=t.chart;return Object(o.animation)(Object(s.deepAssign)({},t,{chart:Object(u.findViewById)(e,p.LEFT_AXES_VIEW)})),Object(o.animation)(Object(s.deepAssign)({},t,{chart:Object(u.findViewById)(e,p.RIGHT_AXES_VIEW)})),t}function E(t){var e=t.chart,n=t.options.yAxis;return Object(o.limitInPlot)(Object(s.deepAssign)({},t,{chart:Object(u.findViewById)(e,p.LEFT_AXES_VIEW),options:{yAxis:n[0]}})),Object(o.limitInPlot)(Object(s.deepAssign)({},t,{chart:Object(u.findViewById)(e,p.RIGHT_AXES_VIEW),options:{yAxis:n[1]}})),t}function T(t){var e=t.chart,n=t.options,r=n.legend,o=n.geometryOptions,a=n.yField,l=n.data,h=Object(u.findViewById)(e,p.LEFT_AXES_VIEW),f=Object(u.findViewById)(e,p.RIGHT_AXES_VIEW);if(!1===r)e.legend(!1);else if(Object(i.isObject)(r)&&!0===r.custom)e.legend(r);else{var d=Object(i.get)(o,[0,"legend"],r),g=Object(i.get)(o,[1,"legend"],r);e.once("beforepaint",(function(){var t=l[0].length?Object(c.getViewLegendItems)({view:h,geometryOption:o[0],yField:a[0],legend:d}):[],n=l[1].length?Object(c.getViewLegendItems)({view:f,geometryOption:o[1],yField:a[1],legend:g}):[];e.legend(Object(s.deepAssign)({},r,{custom:!0,items:t.concat(n)}))})),o[0].seriesField&&h.legend(o[0].seriesField,d),o[1].seriesField&&f.legend(o[1].seriesField,g),e.on("legend-item:click",(function(t){var n=Object(i.get)(t,"gEvent.delegateObject",{});if(n&&n.item){var r=n.item,o=r.value,s=r.isGeometry,l=r.viewId;if(s){if(Object(i.findIndex)(a,(function(t){return t===o}))>-1){var c=Object(i.get)(Object(u.findViewById)(e,l),"geometries");Object(i.each)(c,(function(t){t.changeVisible(!n.item.unchecked)}))}}else{var h=Object(i.get)(e.getController("legend"),"option.items",[]);Object(i.each)(e.views,(function(t){var n=t.getGroupScales();Object(i.each)(n,(function(e){e.values&&e.values.indexOf(o)>-1&&t.filter(e.field,(function(t){return!Object(i.find)(h,(function(e){return e.value===t})).unchecked}))})),e.render(!0)}))}}}))}return t}function A(t){var e=t.chart,n=t.options.slider,r=Object(u.findViewById)(e,p.LEFT_AXES_VIEW),o=Object(u.findViewById)(e,p.RIGHT_AXES_VIEW);return n&&(r.option("slider",n),r.on("slider:valuechanged",(function(t){var e=t.event,n=e.value,r=e.originValue;Object(i.isEqual)(n,r)||Object(f.doSliderFilter)(o,n)})),e.once("afterpaint",(function(){if(!Object(i.isBoolean)(n)){var t=n.start,e=n.end;(t||e)&&Object(f.doSliderFilter)(o,[t,e])}}))),t}function M(t){return Object(s.flow)(g,v,S,m,b,_,E,x,w,O,C,y,T,A)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"drawSingleGeometry",(function(){return l}));var r=n(2),i=n(1),o=n(34),a=n(3),s=n(293),u=n(236);function l(t){var e=t.options,n=t.chart,l=e.geometryOption,c=l.isStack,h=l.color,f=l.seriesField,d=l.groupField,p=l.isGroup,g=["xField","yField"];if(Object(u.isLine)(l)){Object(o.line)(Object(a.deepAssign)({},t,{options:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},Object(a.pick)(e,g)),l),{line:{color:l.color,style:l.lineStyle}})})),Object(o.point)(Object(a.deepAssign)({},t,{options:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},Object(a.pick)(e,g)),l),{point:l.point&&Object(r.__assign)({color:h,shape:"circle"},l.point)})}));var v=[];p&&v.push({type:"dodge",dodgeBy:d||f,customOffset:0}),c&&v.push({type:"stack"}),v.length&&Object(i.each)(n.geometries,(function(t){t.adjust(v)}))}return Object(u.isColumn)(l)&&Object(s.adaptor)(Object(a.deepAssign)({},t,{options:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},Object(a.pick)(e,g)),l),{widthRatio:l.columnWidthRatio,interval:Object(r.__assign)(Object(r.__assign)({},Object(a.pick)(l,["color"])),{style:l.columnStyle})})})),t}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_TOOLTIP_OPTIONS",(function(){return o})),n.d(e,"DEFAULT_OPTIONS",(function(){return a}));var r=n(2),i=n(1),o={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+Object(i.get)(e,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},a={appendPadding:2,tooltip:Object(r.__assign)({},o),animation:{}}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return o}));var r=n(2),i=n(181),o={appendPadding:2,tooltip:Object(r.__assign)({},i.DEFAULT_TOOLTIP_OPTIONS),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return r}));var r={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}}},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptor",(function(){return g}));var r=n(2),i=n(1),o=n(3),a=n(8),s=n(110),u=n(138);function l(t){var e=t.chart,n=t.options,r=n.data,a=n.type,l=n.xField,c=n.yField,h=n.colorField,f=n.sizeField,d=n.sizeRatio,p=n.shape,g=n.color,v=n.tooltip,m=n.heatmapStyle,y=n.meta;e.data(r);var b="polygon";"density"===a&&(b="heatmap");var _=Object(u.getTooltipMapping)(v,[l,c,h]),x=_.fields,w=_.formatter,O=1;return(d||0===d)&&(p||f?d<0||d>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):O=d:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),Object(s.geometry)(Object(o.deepAssign)({},t,{options:{type:b,colorField:h,tooltipFields:x,shapeField:f||"",label:void 0,mapping:{tooltip:w,shape:p&&(f?function(t){var e=r.map((function(t){return t[f]})),n=(null==y?void 0:y[f])||{},o=n.min,a=n.max;return o=Object(i.isNumber)(o)?o:Math.min.apply(Math,e),a=Object(i.isNumber)(a)?a:Math.max.apply(Math,e),[p,(Object(i.get)(t,f)-o)/(a-o),O]}:function(){return[p,1,O]}),color:g||h&&e.getTheme().sequenceColors.join("-"),style:m}}})),t}function c(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,s=n.xField,u=n.yField;return Object(o.flow)(Object(a.scale)(((e={})[s]=r,e[u]=i,e)))(t)}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function f(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.sizeField,a=n.sizeLegend,s=!1!==r;return i&&e.legend(i,!!s&&r),o&&e.legend(o,void 0===a?r:a),s||a||e.legend(!1),t}function d(t){var e=t.chart,n=t.options,i=n.label,a=n.colorField,s=n.type,u=Object(o.findGeometry)(e,"density"===s?"heatmap":"polygon");if(i){if(a){var l=i.callback,c=Object(r.__rest)(i,["callback"]);u.label({fields:[a],callback:l,cfg:Object(o.transformLabel)(c)})}}else u.label(!1);return t}function p(t){var e,n,r=t.chart,i=t.options,a=i.coordinate,s=i.reflect,u=Object(o.deepAssign)({actions:[]},null!=a?a:{type:"rect"});return s&&(null===(n=null===(e=u.actions)||void 0===e?void 0:e.push)||void 0===n||n.call(e,["reflect",s])),r.coordinate(u),t}function g(t){return Object(o.flow)(a.theme,Object(a.pattern)("heatmapStyle"),c,p,l,h,f,a.tooltip,d,Object(a.annotation)(),a.interaction,a.animation,a.state)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return o}));var r=n(26),i=n(3),o=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}})},function(t,e,n){"use strict";n.r(e),n.d(e,"legend",(function(){return g})),n.d(e,"adaptor",(function(){return v}));var r=n(2),i=n(1),o=n(8),a=n(34),s=n(3),u=n(148),l=n(282),c=n(760);function h(t){var e=t.chart,n=t.options,r=n.xField,o=n.yField,u=n.groupField,h=n.color,f=n.tooltip,d=n.boxStyle;e.data(Object(c.transformData)(n.data,o));var p=Object(i.isArray)(o)?l.BOX_RANGE:o,g=o?Object(i.isArray)(o)?o:[o]:[],v=f;!1!==v&&(v=Object(s.deepAssign)({},{fields:Object(i.isArray)(o)?o:[]},v));var m=Object(a.schema)(Object(s.deepAssign)({},t,{options:{xField:r,yField:p,seriesField:u,tooltip:v,rawFields:g,label:!1,schema:{shape:"box",color:h,style:d}}})).ext;return u&&m.geometry.adjust("dodge"),t}function f(t){var e=t.chart,n=t.options,i=n.xField,o=n.data,s=n.outliersField,u=n.outliersStyle,c=n.padding,h=n.label;if(!s)return t;var f=e.createView({padding:c,id:l.OUTLIERS_VIEW_ID}),d=o.reduce((function(t,e){return e[s].forEach((function(n){var i;return t.push(Object(r.__assign)(Object(r.__assign)({},e),((i={})[s]=n,i)))})),t}),[]);return f.data(d),Object(a.point)({chart:f,options:{xField:i,yField:s,point:{shape:"circle",style:u},label:h}}),f.axis(!1),t}function d(t){var e,n,r=t.chart,i=t.options,o=i.meta,a=i.xAxis,c=i.yAxis,h=i.xField,f=i.yField,d=i.outliersField,p=Array.isArray(f)?l.BOX_RANGE:f,g={};if(d){var v=l.BOX_SYNC_NAME;(e={})[d]={sync:v,nice:!0},e[p]={sync:v,nice:!0},g=e}var m=Object(s.deepAssign)(g,o,((n={})[h]=Object(s.pick)(a,u.AXIS_META_CONFIG_KEYS),n[p]=Object(s.pick)(c,u.AXIS_META_CONFIG_KEYS),n));return r.scale(m),t}function p(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,s=Array.isArray(a)?l.BOX_RANGE:a;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(l.BOX_RANGE,!1):e.axis(s,i),t}function g(t){var e=t.chart,n=t.options,r=n.legend,i=n.groupField;return i?r?e.legend(i,r):e.legend(i,{position:"bottom"}):e.legend(!1),t}function v(t){return Object(s.flow)(h,f,d,p,g,o.tooltip,Object(o.annotation)(),o.interaction,o.animation,o.theme)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"animation",(function(){return x})),n.d(e,"adaptor",(function(){return w}));var r=n(2),i=n(1),o=n(8),a=n(34),s=n(3),u=n(105),l=n(148),c=n(761),h=n(103),f=["low","high","q1","q3","median"],d=[{type:"dodge",marginRatio:1/32}];function p(t){var e=t.chart,n=t.options;return e.data(Object(c.transformViolinData)(n)),t}function g(t){var e=t.chart,n=t.options,i=n.seriesField,o=n.color,s=n.shape,u=void 0===s?"violin":s,l=n.violinStyle,c=n.tooltip,p=n.state,g=e.createView({id:h.VIOLIN_VIEW_ID});return Object(a.violin)({chart:g,options:{xField:h.X_FIELD,yField:h.VIOLIN_Y_FIELD,seriesField:i||h.X_FIELD,sizeField:h.VIOLIN_SIZE_FIELD,tooltip:Object(r.__assign)({fields:f},c),violin:{style:l,color:o,shape:u},state:p}}),g.geometries[0].adjust(d),t}function v(t){var e=t.chart,n=t.options,i=n.seriesField,o=n.color,s=n.tooltip,u=n.box;if(!1===u)return t;var l=e.createView({id:h.MIN_MAX_VIEW_ID});Object(a.interval)({chart:l,options:{xField:h.X_FIELD,yField:h.MIN_MAX_FIELD,seriesField:i||h.X_FIELD,tooltip:Object(r.__assign)({fields:f},s),state:"object"==typeof u?u.state:{},interval:{color:o,size:1,style:{lineWidth:0}}}}),l.geometries[0].adjust(d);var c=e.createView({id:h.QUANTILE_VIEW_ID});Object(a.interval)({chart:c,options:{xField:h.X_FIELD,yField:h.QUANTILE_FIELD,seriesField:i||h.X_FIELD,tooltip:Object(r.__assign)({fields:f},s),state:"object"==typeof u?u.state:{},interval:{color:o,size:8,style:{fillOpacity:1}}}}),c.geometries[0].adjust(d);var p=e.createView({id:h.MEDIAN_VIEW_ID});return Object(a.point)({chart:p,options:{xField:h.X_FIELD,yField:h.MEDIAN_FIELD,seriesField:i||h.X_FIELD,tooltip:Object(r.__assign)({fields:f},s),state:"object"==typeof u?u.state:{},point:{color:o,size:1,style:{fill:"white",lineWidth:0}}}}),p.geometries[0].adjust(d),c.axis(!1),l.axis(!1),p.axis(!1),p.legend(!1),l.legend(!1),c.legend(!1),t}function m(t){var e,n=t.chart,i=t.options,o=i.meta,a=i.xAxis,u=i.yAxis,c=Object(s.deepAssign)({},o,((e={})[h.X_FIELD]=Object(r.__assign)(Object(r.__assign)({sync:!0},Object(s.pick)(a,l.AXIS_META_CONFIG_KEYS)),{type:"cat"}),e[h.VIOLIN_Y_FIELD]=Object(r.__assign)({sync:!0},Object(s.pick)(u,l.AXIS_META_CONFIG_KEYS)),e[h.MIN_MAX_FIELD]=Object(r.__assign)({sync:h.VIOLIN_Y_FIELD},Object(s.pick)(u,l.AXIS_META_CONFIG_KEYS)),e[h.QUANTILE_FIELD]=Object(r.__assign)({sync:h.VIOLIN_Y_FIELD},Object(s.pick)(u,l.AXIS_META_CONFIG_KEYS)),e[h.MEDIAN_FIELD]=Object(r.__assign)({sync:h.VIOLIN_Y_FIELD},Object(s.pick)(u,l.AXIS_META_CONFIG_KEYS)),e));return n.scale(c),t}function y(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=Object(s.findViewById)(e,h.VIOLIN_VIEW_ID);return!1===r?o.axis(h.X_FIELD,!1):o.axis(h.X_FIELD,r),!1===i?o.axis(h.VIOLIN_Y_FIELD,!1):o.axis(h.VIOLIN_Y_FIELD,i),e.axis(!1),t}function b(t){var e=t.chart,n=t.options,r=n.legend,o=n.seriesField,a=n.shape;if(!1===r)e.legend(!1);else{var s=o||h.X_FIELD,u=Object(i.omit)(r,["selected"]);a&&a.startsWith("hollow")||Object(i.get)(u,["marker","style","lineWidth"])||Object(i.set)(u,["marker","style","lineWidth"],0),e.legend(s,u),Object(i.get)(r,"selected")&&Object(i.each)(e.views,(function(t){return t.legend(s,r)}))}return t}function _(t){var e=t.chart,n=Object(s.findViewById)(e,h.VIOLIN_VIEW_ID);return Object(o.annotation)()(Object(r.__assign)(Object(r.__assign)({},t),{chart:n})),t}function x(t){var e=t.chart,n=t.options.animation;return Object(i.each)(e.views,(function(t){Object(u.addViewAnimation)(t,n)})),t}function w(t){return Object(s.flow)(o.theme,p,g,v,m,o.tooltip,y,b,o.interaction,_,x)(t)}},function(t,e,n){"use strict";var r=Math.log(2),i=t.exports,o=n(2005);function a(t){return 1-Math.abs(t)}t.exports.getUnifiedMinMax=function(t,e){return i.getUnifiedMinMaxMulti([t],e)},t.exports.getUnifiedMinMaxMulti=function(t,e){e=e||{};var n=!1,r=!1,i=o.isNumber(e.width)?e.width:2,a=o.isNumber(e.size)?e.size:50,s=o.isNumber(e.min)?e.min:(n=!0,o.findMinMulti(t)),u=o.isNumber(e.max)?e.max:(r=!0,o.findMaxMulti(t)),l=(u-s)/(a-1);return n&&(s-=2*i*l),r&&(u+=2*i*l),{min:s,max:u}},t.exports.create=function(t,e){if(e=e||{},!t||0===t.length)return[];var n=o.isNumber(e.size)?e.size:50,r=o.isNumber(e.width)?e.width:2,s=i.getUnifiedMinMax(t,{size:n,width:r,min:e.min,max:e.max}),u=s.min,l=s.max-u,c=l/(n-1);if(0===l)return[{x:u,y:1}];for(var h=[],f=0;f<n;f++)h.push({x:u+f*c,y:0});var d=function(t,e){for(var n={},r=0,i=-e;i<=e;i++)r+=t(i/e),n[i]=r;return n}(a,r),p=d[r],g=d[r-1]-d[r-2],v=0;t.forEach((function(t){var e=function(t){return Math.floor((t-u)/c)}(t);if(!(e+r<0||e-r>=h.length)){var n=Math.max(e-r,0),i=e,a=Math.min(e+r,h.length-1),s=n-(e-r),l=e+r-a,f=d[-r-1+s]||0,m=d[-r-1+l]||0,y=p/(p-f-m);s>0&&(v+=y*(s-1)*g);var b=Math.max(0,e-r+1);o.inside(0,h.length-1,b)&&(h[b].y+=1*y*g),o.inside(0,h.length-1,i+1)&&(h[i+1].y-=2*y*g),o.inside(0,h.length-1,a+1)&&(h[a+1].y+=1*y*g)}}));var m=v,y=0,b=0;return h.forEach((function(t){y+=t.y,m+=y,t.y=m,b+=m})),b>0&&h.forEach((function(t){t.y/=b})),h},t.exports.getExpectedValueFromPdf=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){e+=t.x*t.y})),e}},t.exports.getXWithLeftTailArea=function(t,e){if(t&&0!==t.length){for(var n=0,r=0,i=0;i<t.length&&(r=i,!((n+=t[i].y)>=e));i++);return t[r].x}},t.exports.getPerplexity=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){var n=Math.log(t.y);isFinite(n)&&(e+=t.y*n)})),e=-e/r,Math.pow(2,e)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"LEGEND_SPACE",(function(){return c})),n.d(e,"legend",(function(){return v})),n.d(e,"axis",(function(){return m})),n.d(e,"adaptor",(function(){return b}));var r=n(2),i=n(1),o=n(8),a=n(34),s=n(3),u=n(812),l=n(193),c=(n(2006),n(2007),n(2008),40);function h(t,e,n){var r=t.chart,o=t.options,a=o.blendMode,s=o.setsField,l=r.getTheme(),c=l.colors10,h=l.colors20,f=n;Object(i.isArray)(f)||(f=e.filter((function(t){return 1===t[s].length})).length<=10?c:h);var d=Object(u.getColorMap)(f,e,a,s);return function(t){return d.get(t)||f[0]}}function f(t){var e=t.chart,n=t.options,r=n.legend,o=n.appendPadding,a=n.padding,u=Object(s.normalPadding)(o);return!1!==r&&(u=Object(s.getAdjustAppendPadding)(o,Object(i.get)(r,"position"),c)),e.appendPadding=Object(s.resolveAllPadding)([u,a]),t}function d(t){var e=t.options.data;e||(Object(s.log)(s.LEVEL.WARN,!1,"warn: %s","数据不能为空"),e=[]);var n=e.filter((function(t){return 1===t.sets.length})).map((function(t){return t.sets[0]})),r=e.filter((function(t){var e=t.sets;return Object(u.islegalSets)(n,e)}));return Object(i.isEqual)(r,e)||Object(s.log)(s.LEVEL.WARN,!1,"warn: %s","交集中不能出现不存在的集合, 请输入合法数据"),Object(i.deepMix)({},t,{options:{data:r}})}function p(t){var e=t.chart,n=t.options,r=n.pointStyle,i=n.setsField,o=n.sizeField,c=Object(s.normalPadding)(e.appendPadding),f=c[0],d=c[1],p=c[2],g=c[3],v={offsetX:g,offsetY:f},m=e.viewBBox,y=m.width,b=m.height,_=Object(u.layoutVennData)(n,Math.max(y-(d+g),0),Math.max(b-(f+p),0),0);e.data(_);var x=Object(a.schema)(Object(s.deepAssign)({},t,{options:{xField:"x",yField:"y",sizeField:o,seriesField:l.ID_FIELD,rawFields:[i,o],schema:{shape:"venn",style:r}}})).ext.geometry;x.customInfo(v);var w=function(t,e){var n=t.options.color;if("function"!=typeof n){var r=h(t,e,"string"==typeof n?[n]:n);return function(t){return r(t[l.ID_FIELD])}}return n}(t,_);return"function"==typeof w&&x.color(l.ID_FIELD,(function(e){var n=_.find((function(t){return t[l.ID_FIELD]===e})),r=h(t,_)(e);return w(n,r)})),t}function g(t){var e=t.chart,n=t.options.label,o=Object(s.normalPadding)(e.appendPadding),a=o[0],u={offsetX:o[3],offsetY:a},l=Object(s.findGeometry)(e,"schema");if(n){var c=n.callback,h=Object(r.__rest)(n,["callback"]);l.label({fields:["id"],callback:c,cfg:Object(i.deepMix)({},Object(s.transformLabel)(h),{type:"venn",customLabelInfo:u})})}else l.label(!1);return t}function v(t){var e=t.chart,n=t.options,r=n.legend,i=n.sizeField;return e.legend(l.ID_FIELD,r),e.legend(i,!1),t}function m(t){return t.chart.axis(!1),t}function y(t){var e=t.options,n=t.chart,i=e.interactions;if(i){var a={"legend-active":"venn-legend-active","legend-highlight":"venn-legend-highlight"};Object(o.interaction)(Object(s.deepAssign)({},t,{options:{interactions:i.map((function(t){return Object(r.__assign)(Object(r.__assign)({},t),{type:a[t.type]||t.type})}))}}))}return n.removeInteraction("legend-active"),n.removeInteraction("legend-highlight"),t}function b(t){return Object(s.flow)(f,o.theme,d,p,g,Object(o.scale)({}),v,m,o.tooltip,y,o.animation)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"innerBlend",(function(){return o})),n.d(e,"blend",(function(){return a})),n.d(e,"colorToArr",(function(){return s}));var r=n(247),i={normal:function(t){return t},multiply:function(t,e){return t*e/255},screen:function(t,e){return 255*(1-(1-t/255)*(1-e/255))},overlay:function(t,e){return e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255))},darken:function(t,e){return t>e?e:t},lighten:function(t,e){return t>e?t:e},dodge:function(t,e){return 255===t||(t=e/255*255/(1-t/255))>255?255:t},burn:function(t,e){return 255===e?255:0===t?0:255*(1-Math.min(1,(1-e/255)/(t/255)))}},o=function(t){if(!i[t])throw new Error("unknown blend mode "+t);return i[t]};function a(t,e,n){void 0===n&&(n="normal");var r,i=(r=o(n),function(t,e){var n=[];return n[0]=r(t[0],e[0]),n[1]=r(t[1],e[1]),n[2]=r(t[2],e[2]),n})(s(t),s(e)),a=s(t),u=a[0],l=a[1],c=a[2],h=a[3],f=s(e),d=f[0],p=f[1],g=f[2],v=f[3],m=Number((h+v*(1-h)).toFixed(2));return"rgba("+Math.round((h*(1-v)*(u/255)+h*v*(i[0]/255)+(1-h)*v*(d/255))/m*255)+", "+Math.round((h*(1-v)*(l/255)+h*v*(i[1]/255)+(1-h)*v*(p/255))/m*255)+", "+Math.round((h*(1-v)*(c/255)+h*v*(i[2]/255)+(1-h)*v*(g/255))/m*255)+", "+m+")"}function s(t){var e,n=t.replace("/s+/g","");return"string"!=typeof n||n.startsWith("rgba")||n.startsWith("#")?(n.startsWith("rgba")&&(e=n.replace("rgba(","").replace(")","").split(",")),n.startsWith("#")&&(e=r.default.rgb2arr(n).concat([1])),e.map((function(t,e){return 3===e?Number(t):0|t}))):r.default.rgb2arr(r.default.toRGB(n)).concat([1])}},function(t,e,n){"use strict";n.r(e),n.d(e,"VennElementActive",(function(){return a}));var r=n(2),i=n(13),o=n(434),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.syncElementsPos=function(){Object(o.placeElementsOrdered)(this.context.view)},e.prototype.active=function(){t.prototype.active.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(Object(i.getActionClass)("element-active"))},function(t,e,n){"use strict";n.r(e),n.d(e,"VennElementHighlight",(function(){return a}));var r=n(2),i=n(13),o=n(434),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.syncElementsPos=function(){Object(o.placeElementsOrdered)(this.context.view)},e.prototype.highlight=function(){t.prototype.highlight.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.clear=function(){t.prototype.clear.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(Object(i.getActionClass)("element-highlight"))},function(t,e,n){"use strict";n.r(e),n.d(e,"facetFunnel",(function(){return s}));var r=n(3),i=n(504);function o(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale(((e={})[a]={sync:!0},e)),t}function a(t){var e=t.chart,n=t.options,o=n.seriesField,a=n.isTransposed,s=n.showFacetTitle;return e.facet("rect",{fields:[o],padding:[a?0:32,10,0,10],showTitle:s,eachView:function(e,n){Object(i.basicFunnel)(Object(r.deepAssign)({},t,{chart:e,options:{data:n.data}}))}}),t}function s(t){return Object(r.flow)(o,a)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"dynamicHeightFunnel",(function(){return p}));var r=n(2),i=n(1),o=n(3),a=n(81),s=n(110),u=n(138),l=n(301);function c(t){var e=t.chart,n=t.options,r=n.data,o=void 0===r?[]:r,s=n.yField,u=Object(i.reduce)(o,(function(t,e){return t+(e[s]||0)}),0),l=Object(i.maxBy)(o,s)[s],c=Object(i.map)(o,(function(t,e){var n=[],r=[];if(t[a.FUNNEL_TOTAL_PERCENT]=(t[s]||0)/u,e){var c=o[e-1][a.PLOYGON_X],h=o[e-1][a.PLOYGON_Y];n[0]=c[3],r[0]=h[3],n[1]=c[2],r[1]=h[2]}else n[0]=-.5,r[0]=1,n[1]=.5,r[1]=1;return r[2]=r[1]-t[a.FUNNEL_TOTAL_PERCENT],n[2]=(r[2]+1)/4,r[3]=r[2],n[3]=-n[2],t[a.PLOYGON_X]=n,t[a.PLOYGON_Y]=r,t[a.FUNNEL_PERCENT]=(t[s]||0)/l,t[a.FUNNEL_CONVERSATION]=[Object(i.get)(o,[e-1,s]),t[s]],t}));return e.data(c),t}function h(t){var e=t.chart,n=t.options,r=n.xField,o=n.yField,l=n.color,c=n.tooltip,h=n.label,f=n.funnelStyle,d=n.state,p=Object(u.getTooltipMapping)(c,[r,o]),g=p.fields,v=p.formatter;return Object(s.geometry)({chart:e,options:{type:"polygon",xField:a.PLOYGON_X,yField:a.PLOYGON_Y,colorField:r,tooltipFields:Object(i.isArray)(g)&&g.concat([a.FUNNEL_PERCENT,a.FUNNEL_CONVERSATION]),label:h,state:d,mapping:{tooltip:v,color:l,style:f}}}),t}function f(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[["transpose"],["reflect","x"]]:[]}),t}function d(t){return Object(l.conversionTagComponent)((function(t,e,n,i){return Object(r.__assign)(Object(r.__assign)({},i),{start:[t[a.PLOYGON_X][1],t[a.PLOYGON_Y][1]],end:[t[a.PLOYGON_X][1]+.05,t[a.PLOYGON_Y][1]]})}))(t),t}function p(t){return Object(o.flow)(c,h,f,d)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"ConversionTagAction",(function(){return l}));var r=n(2),i=n(1),o=n(13),a=n(504),s=n(765),u=n(301),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.rendering=!1,e}return Object(r.__extends)(e,t),e.prototype.change=function(t){var e=this;if(!this.rendering){var n=t.seriesField,o=t.compareField,l=o?s.compareConversionTag:a.conversionTag,c=this.context.view,h=n||o?c.views:[c];Object(i.map)(h,(function(n,o){var a=n.getController("annotation"),s=Object(i.filter)(Object(i.get)(a,["option"],[]),(function(t){return t.name!==u.CONVERSION_TAG_NAME}));a.clear(!0),Object(i.each)(s,(function(t){"object"==typeof t&&n.annotation()[t.type](t)}));var c=Object(i.get)(n,["filteredData"],n.getOptions().data);l({chart:n,index:o,options:Object(r.__assign)(Object(r.__assign)({},t),{filteredData:Object(u.transformData)(c,c,t)})}),n.filterData(c),e.rendering=!0,n.render(!0)}))}this.rendering=!1},e}(o.Action)},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return r}));var r={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return o}));var r=n(26),i=n(3),o=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}})},function(t,e,n){"use strict";n.r(e),n.d(e,"axis",(function(){return f})),n.d(e,"meta",(function(){return g})),n.d(e,"tooltip",(function(){return v})),n.d(e,"adaptor",(function(){return b}));var r=n(2),i=n(1),o=n(34),a=n(8),s=n(3),u=n(223),l=n(237),c=n(928);function h(t){var e,n=t.chart,a=t.options,u=a.color,h=a.colorField,f=void 0===h?l.SUNBURST_ANCESTOR_FIELD:h,d=a.sunburstStyle,p=a.rawFields,g=void 0===p?[]:p,v=Object(c.transformData)(a);return n.data(v),d&&(e=function(t){return Object(s.deepAssign)({},{fillOpacity:Math.pow(.85,t.depth)},Object(i.isFunction)(d)?d(t):d)}),Object(o.polygon)(Object(s.deepAssign)({},t,{options:{xField:"x",yField:"y",seriesField:f,rawFields:Object(i.uniq)(Object(r.__spreadArrays)(l.RAW_FIELDS,g)),polygon:{color:u,style:e}}})),t}function f(t){return t.chart.axis(!1),t}function d(t){var e=t.chart,n=t.options.label,i=Object(s.findGeometry)(e,"polygon");if(n){var o=n.fields,a=void 0===o?["name"]:o,u=n.callback,l=Object(r.__rest)(n,["fields","callback"]);i.label({fields:a,callback:u,cfg:Object(s.transformLabel)(l)})}else i.label(!1);return t}function p(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius,o=n.reflect,a=e.coordinate({type:"polar",cfg:{innerRadius:r,radius:i}});return o&&a.reflect(o),t}function g(t){var e,n=t.options,r=n.hierarchyConfig,o=n.meta;return Object(s.flow)(Object(a.scale)({},((e={})[l.SUNBURST_Y_FIELD]=Object(i.get)(o,Object(i.get)(r,["field"],"value")),e)))(t)}function v(t){var e=t.chart,n=t.options.tooltip;if(!1===n)e.tooltip(!1);else{var o=n;Object(i.get)(n,"fields")||(o=Object(s.deepAssign)({},{customItems:function(t){return t.map((function(t){var n=Object(i.get)(e.getOptions(),"scales"),o=Object(i.get)(n,[l.SUNBURST_PATH_FIELD,"formatter"],(function(t){return t})),a=Object(i.get)(n,[l.SUNBURST_Y_FIELD,"formatter"],(function(t){return t}));return Object(r.__assign)(Object(r.__assign)({},t),{name:o(t.data[l.SUNBURST_PATH_FIELD]),value:a(t.data.value)})}))}},o)),e.tooltip(o)}return t}function m(t){var e=t.drilldown,n=t.interactions,i=void 0===n?[]:n;return(null==e?void 0:e.enabled)?Object(s.deepAssign)({},t,{interactions:Object(r.__spreadArrays)(i,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:c.transformData}}])}):t}function y(t){var e=t.chart,n=t.options,r=n.drilldown;return Object(a.interaction)({chart:e,options:m(n)}),(null==r?void 0:r.enabled)&&(e.appendPadding=Object(u.getAdjustAppendPadding)(e.appendPadding,Object(i.get)(r,["breadCrumb","position"]))),t}function b(t){return Object(s.flow)(a.theme,Object(a.pattern)("sunburstStyle"),h,f,g,a.legend,p,v,d,y,a.animation,Object(a.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"partition",(function(){return u}));var r=n(875),i=n(333),o=n(1),a=n(212),s={field:"value",size:[1,1],round:!1,padding:0,sort:function(t,e){return e.value-t.value},as:["x","y"],ignoreParentValue:!0};function u(t,e){var n,u=(e=Object(o.assign)({},s,e)).as;if(!Object(o.isArray)(u)||2!==u.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=Object(a.getField)(e)}catch(t){console.warn(t)}var l=function(t){return r.default().size(e.size).round(e.round).padding(e.padding)(i.default(t).sum((function(t){return Object(o.size)(t.children)?e.ignoreParentValue?0:t[n]-Object(o.reduce)(t.children,(function(t,e){return t+e[n]}),0):t[n]})).sort(e.sort))}(t),c=u[0],h=u[1];return l.each((function(t){var e,n;t[c]=[t.x0,t.x1,t.x1,t.x0],t[h]=[t.y1,t.y1,t.y0,t.y0],t.name=t.name||(null===(e=t.data)||void 0===e?void 0:e.name)||(null===(n=t.data)||void 0===n?void 0:n.label),t.data.name=t.name,["x0","x1","y0","y1"].forEach((function(e){-1===u.indexOf(e)&&delete t[e]}))})),Object(a.getAllNodes)(l)}},function(t,e,n){"use strict";function r(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}n.r(e),e.default=function(){return this.eachAfter(r)}},function(t,e,n){"use strict";n.r(e),e.default=function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this}},function(t,e,n){"use strict";n.r(e),e.default=function(t,e){for(var n,r,i,o=this,a=[o],s=[],u=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)t.call(e,o,++u,this);return this}},function(t,e,n){"use strict";n.r(e),e.default=function(t,e){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this}},function(t,e,n){"use strict";n.r(e),e.default=function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r}},function(t,e,n){"use strict";n.r(e),e.default=function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))}},function(t,e,n){"use strict";n.r(e),e.default=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))}},function(t,e,n){"use strict";n.r(e),e.default=function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}},function(t,e,n){"use strict";n.r(e),e.default=function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}},function(t,e,n){"use strict";n.r(e),e.default=function(){return Array.from(this)}},function(t,e,n){"use strict";n.r(e),e.default=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t}},function(t,e,n){"use strict";n.r(e),e.default=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e}},function(t,e,n){"use strict";n.r(e),e.default=function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)}},function(t,e,n){"use strict";n.r(e),n.d(e,"tooltip",(function(){return m})),n.d(e,"adaptor",(function(){return y}));var r=n(2),i=n(1),o=n(8),a=n(34),s=n(298),u=n(3),l=n(133),c=n(771);n(2012);function h(t){var e=t.options,n=e.locale,r=e.total,i=Object(s.getLocale)(n).get(["waterfall","total"]);return r&&"string"!=typeof r.label&&i&&(t.options.total.label=i),t}function f(t){var e=t.chart,n=t.options,r=n.data,o=n.xField,s=n.yField,h=n.total,f=n.leaderLine,d=n.columnWidthRatio,p=n.waterfallStyle,g=n.risingFill,v=n.fallingFill,m=n.color;e.data(Object(c.transformData)(r,o,s,h));var y=m||function(t){return Object(i.get)(t,[l.IS_TOTAL])?Object(i.get)(h,["style","fill"],""):Object(i.get)(t,[l.Y_FIELD,1])-Object(i.get)(t,[l.Y_FIELD,0])>0?g:v},b=Object(u.deepAssign)({},t,{options:{xField:o,yField:l.Y_FIELD,seriesField:o,rawFields:[s,l.DIFF_FIELD,l.IS_TOTAL,l.Y_FIELD],widthRatio:d,interval:{style:p,shape:"waterfall",color:y}}});return Object(a.interval)(b).ext.geometry.customInfo({leaderLine:f}),t}function d(t){var e,n,r=t.options,a=r.xAxis,s=r.yAxis,c=r.xField,h=r.yField,f=r.meta,d=Object(u.deepAssign)({},{alias:h},Object(i.get)(f,h));return Object(u.flow)(Object(o.scale)(((e={})[c]=a,e[h]=s,e[l.Y_FIELD]=s,e),Object(u.deepAssign)({},f,((n={})[l.Y_FIELD]=d,n[l.DIFF_FIELD]=d,n[l.ABSOLUTE_FIELD]=d,n))))(t)}function p(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?(e.axis(a,!1),e.axis(l.Y_FIELD,!1)):(e.axis(a,i),e.axis(l.Y_FIELD,i)),t}function g(t){var e=t.chart,n=t.options,r=n.legend,o=n.total,a=n.risingFill,l=n.fallingFill,c=n.locale,h=Object(s.getLocale)(c);if(!1===r)e.legend(!1);else{var f=[{name:h.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:h.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:l}}}];o&&f.push({name:o.label||"",value:"total",marker:{symbol:"square",style:Object(u.deepAssign)({},{r:5},Object(i.get)(o,"style"))}}),e.legend(Object(u.deepAssign)({},{custom:!0,position:"top",items:f},r)),e.removeInteraction("legend-filter")}return t}function v(t){var e=t.chart,n=t.options,i=n.label,o=n.labelMode,a=n.xField,s=Object(u.findGeometry)(e,"interval");if(i){var c=i.callback,h=Object(r.__rest)(i,["callback"]);s.label({fields:"absolute"===o?[l.ABSOLUTE_FIELD,a]:[l.DIFF_FIELD,a],callback:c,cfg:Object(u.transformLabel)(h)})}else s.label(!1);return t}function m(t){var e=t.chart,n=t.options,i=n.tooltip,o=n.xField,a=n.yField;if(!1!==i){e.tooltip(Object(r.__assign)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[a]},i));var s=e.geometries[0];(null==i?void 0:i.formatter)?s.tooltip(o+"*"+a,i.formatter):s.tooltip(a)}else e.tooltip(!1);return t}function y(t){return Object(u.flow)(h,o.theme,f,d,p,g,m,v,o.state,o.interaction,o.animation,Object(o.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return o}));var r=n(26),i=n(3),o=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240})},function(t,e,n){"use strict";n.r(e),n.d(e,"interaction",(function(){return d})),n.d(e,"limitInPlot",(function(){return p})),n.d(e,"theme",(function(){return g})),n.d(e,"animation",(function(){return v})),n.d(e,"adaptor",(function(){return y}));var r=n(2),i=n(1),o=n(8),a=n(34),s=n(3),u=n(116),l=n(346);function c(t){var e,n,r=t.chart,i=t.options,o=i.data,c=i.xField,h=i.yField,f=i.color,d=i.barStyle,p=i.widthRatio,g=i.legend,v=i.layout,m=Object(l.transformData)(c,h,u.SERIES_FIELD_KEY,o,Object(l.isHorizontal)(v));g?r.legend(u.SERIES_FIELD_KEY,g):!1===g&&r.legend(!1);var y=m[0],b=m[1];Object(l.isHorizontal)(v)?((e=r.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:u.FIRST_AXES_VIEW})).coordinate().transpose().reflect("x"),(n=r.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:u.SECOND_AXES_VIEW})).coordinate().transpose(),e.data(y),n.data(b)):(e=r.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:u.FIRST_AXES_VIEW}),(n=r.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:u.SECOND_AXES_VIEW})).coordinate().reflect("y"),e.data(y),n.data(b));var _=Object(s.deepAssign)({},t,{chart:e,options:{widthRatio:p,xField:c,yField:h[0],seriesField:u.SERIES_FIELD_KEY,interval:{color:f,style:d}}});Object(a.interval)(_);var x=Object(s.deepAssign)({},t,{chart:n,options:{xField:c,yField:h[1],seriesField:u.SERIES_FIELD_KEY,widthRatio:p,interval:{color:f,style:d}}});return Object(a.interval)(x),t}function h(t){var e,n,r,a=t.options,l=t.chart,c=a.xAxis,h=a.yAxis,f=a.xField,d=a.yField,p=Object(s.findViewById)(l,u.FIRST_AXES_VIEW),g=Object(s.findViewById)(l,u.SECOND_AXES_VIEW),v={};return Object(i.keys)((null==a?void 0:a.meta)||{}).map((function(t){Object(i.get)(null==a?void 0:a.meta,[t,"alias"])&&(v[t]=a.meta[t].alias)})),l.scale(((e={})[u.SERIES_FIELD_KEY]={sync:!0,formatter:function(t){return Object(i.get)(v,t,t)}},e)),Object(o.scale)(((n={})[f]=c,n[d[0]]=h[d[0]],n))(Object(s.deepAssign)({},t,{chart:p})),Object(o.scale)(((r={})[f]=c,r[d[1]]=h[d[1]],r))(Object(s.deepAssign)({},t,{chart:g})),t}function f(t){var e=t.chart,n=t.options,i=n.xAxis,o=n.yAxis,a=n.xField,c=n.yField,h=n.layout,f=Object(s.findViewById)(e,u.FIRST_AXES_VIEW),d=Object(s.findViewById)(e,u.SECOND_AXES_VIEW);return"bottom"===(null==i?void 0:i.position)?d.axis(a,Object(r.__assign)(Object(r.__assign)({},i),{label:{formatter:function(){return""}}})):d.axis(a,!1),!1===i?f.axis(a,!1):f.axis(a,Object(r.__assign)({position:Object(l.isHorizontal)(h)?"top":"bottom"},i)),!1===o?(f.axis(c[0],!1),d.axis(c[1],!1)):(f.axis(c[0],o[c[0]]),d.axis(c[1],o[c[1]])),e.__axisPosition={position:f.getOptions().axes[a].position,layout:h},t}function d(t){var e=t.chart;return Object(o.interaction)(Object(s.deepAssign)({},t,{chart:Object(s.findViewById)(e,u.FIRST_AXES_VIEW)})),Object(o.interaction)(Object(s.deepAssign)({},t,{chart:Object(s.findViewById)(e,u.SECOND_AXES_VIEW)})),t}function p(t){var e=t.chart,n=t.options,r=n.yField,i=n.yAxis;return Object(o.limitInPlot)(Object(s.deepAssign)({},t,{chart:Object(s.findViewById)(e,u.FIRST_AXES_VIEW),options:{yAxis:i[r[0]]}})),Object(o.limitInPlot)(Object(s.deepAssign)({},t,{chart:Object(s.findViewById)(e,u.SECOND_AXES_VIEW),options:{yAxis:i[r[1]]}})),t}function g(t){var e=t.chart;return Object(o.theme)(Object(s.deepAssign)({},t,{chart:Object(s.findViewById)(e,u.FIRST_AXES_VIEW)})),Object(o.theme)(Object(s.deepAssign)({},t,{chart:Object(s.findViewById)(e,u.SECOND_AXES_VIEW)})),Object(o.theme)(t),t}function v(t){var e=t.chart;return Object(o.animation)(Object(s.deepAssign)({},t,{chart:Object(s.findViewById)(e,u.FIRST_AXES_VIEW)})),Object(o.animation)(Object(s.deepAssign)({},t,{chart:Object(s.findViewById)(e,u.SECOND_AXES_VIEW)})),t}function m(t){var e,n,i=this,o=t.chart,a=t.options,c=a.label,h=a.yField,f=a.layout,d=Object(s.findViewById)(o,u.FIRST_AXES_VIEW),p=Object(s.findViewById)(o,u.SECOND_AXES_VIEW),g=Object(s.findGeometry)(d,"interval"),v=Object(s.findGeometry)(p,"interval");if(c){var m=c.callback,y=Object(r.__rest)(c,["callback"]);y.position||(y.position="middle"),void 0===y.offset&&(y.offset=2);var b=Object(r.__assign)({},y);if(Object(l.isHorizontal)(f)){var _=(null===(e=b.style)||void 0===e?void 0:e.textAlign)||("middle"===y.position?"center":"left");y.style=Object(s.deepAssign)({},y.style,{textAlign:_});b.style=Object(s.deepAssign)({},b.style,{textAlign:{left:"right",right:"left",center:"center"}[_]})}else{var x={top:"bottom",bottom:"top",middle:"middle"};"string"==typeof y.position?y.position=x[y.position]:"function"==typeof y.position&&(y.position=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return x[y.position.apply(i,t)]});var w=(null===(n=b.style)||void 0===n?void 0:n.textBaseline)||"bottom";b.style=Object(s.deepAssign)({},b.style,{textBaseline:w});y.style=Object(s.deepAssign)({},y.style,{textBaseline:{top:"bottom",bottom:"top",middle:"middle"}[w]})}g.label({fields:[h[0]],callback:m,cfg:Object(s.transformLabel)(b)}),v.label({fields:[h[1]],callback:m,cfg:Object(s.transformLabel)(y)})}else g.label(!1),v.label(!1);return t}function y(t){return Object(s.flow)(c,h,f,p,g,m,o.tooltip,d,v)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"interaction",(function(){return g})),n.d(e,"adaptor",(function(){return v}));var r=n(2),i=n(1),o=n(671),a=n(8),s=n(262),u=n(3),l=n(223),c=n(306);function h(t){var e=t.options.colorField;return Object(u.deepAssign)({options:{rawFields:["value"],tooltip:{fields:["name","value",e,"path"],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function f(t){var e=t.chart,n=t.options,r=n.color,i=n.colorField,a=n.rectStyle,s=n.hierarchyConfig,l=n.rawFields,h=Object(c.transformData)({data:n.data,colorField:n.colorField,enableDrillDown:Object(c.enableDrillInteraction)(n),hierarchyConfig:s});return e.data(h),Object(o.polygon)(Object(u.deepAssign)({},t,{options:{xField:"x",yField:"y",seriesField:i,rawFields:l,polygon:{color:r,style:a}}})),e.coordinate().reflect("y"),t}function d(t){return t.chart.axis(!1),t}function p(t){var e=t.drilldown,n=t.interactions,i=void 0===n?[]:n;return Object(c.enableDrillInteraction)(t)?Object(u.deepAssign)({},t,{interactions:Object(r.__spreadArrays)(i,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:c.transformData}}])}):t}function g(t){var e=t.chart,n=t.options,r=n.interactions,o=n.drilldown;Object(a.interaction)({chart:e,options:p(n)});var s=Object(c.findInteraction)(r,"view-zoom");return s&&(!1!==s.enable?e.getCanvas().on("mousewheel",(function(t){t.preventDefault()})):e.getCanvas().off("mousewheel")),Object(c.enableDrillInteraction)(n)&&(e.appendPadding=Object(l.getAdjustAppendPadding)(e.appendPadding,Object(i.get)(o,["breadCrumb","position"]))),t}function v(t){return Object(u.flow)(h,a.theme,Object(s.pattern)("rectStyle"),f,d,a.legend,a.tooltip,g,a.animation,Object(a.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return r}));var r={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"初始",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"animation",(function(){return d})),n.d(e,"nodeDraggable",(function(){return p})),n.d(e,"adaptor",(function(){return v}));var r=n(2),i=n(1),o=n(8),a=n(3),s=n(105),u=n(34),l=n(772),c=n(195);function h(t){var e=t.options.rawFields,n=void 0===e?[]:e;return Object(a.deepAssign)({},{options:{tooltip:{fields:Object(i.uniq)(Object(r.__spreadArrays)(["name","source","target","value","isNode"],n))},label:{fields:Object(i.uniq)(Object(r.__spreadArrays)(["x","name"],n))}}},t)}function f(t){var e=t.chart,n=t.options,r=n.color,i=n.nodeStyle,o=n.edgeStyle,a=n.label,s=n.tooltip,h=n.nodeState,f=n.edgeState;e.legend(!1),e.tooltip(s),e.axis(!1),e.coordinate().reflect("y");var d=Object(l.transformToViewsData)(n,e.width,e.height),p=d.nodes,g=d.edges,v=e.createView({id:c.EDGES_VIEW_ID});v.data(g),Object(u.edge)({chart:v,options:{xField:c.X_FIELD,yField:c.Y_FIELD,seriesField:c.COLOR_FIELD,edge:{color:r,style:o,shape:"arc"},tooltip:s,state:f}});var m=e.createView({id:c.NODES_VIEW_ID});return m.data(p),Object(u.polygon)({chart:m,options:{xField:c.X_FIELD,yField:c.Y_FIELD,seriesField:c.COLOR_FIELD,polygon:{color:r,style:i},label:a,tooltip:s,state:h}}),e.interaction("element-active"),e.scale({x:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},y:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},name:{sync:"color",type:"cat"}}),t}function d(t){var e=t.chart,n=t.options.animation,i=Object(r.__spreadArrays)(e.views[0].geometries,e.views[1].geometries);return Object(s.addViewAnimation)(e,n,i),t}function p(t){var e=t.chart;return t.options.nodeDraggable?e.interaction("sankey-node-draggable"):e.removeInteraction("sankey-node-draggable"),t}function g(t){var e=t.chart,n=t.options,r=n.interactions,i=void 0===r?[]:r,o=[].concat(i,n.nodeInteractions||[]),s=[].concat(i,n.edgeInteractions||[]),u=Object(a.findViewById)(e,c.NODES_VIEW_ID),l=Object(a.findViewById)(e,c.EDGES_VIEW_ID);return o.forEach((function(t){!1===(null==t?void 0:t.enable)?u.removeInteraction(t.type):u.interaction(t.type,t.cfg||{})})),s.forEach((function(t){!1===(null==t?void 0:t.enable)?l.removeInteraction(t.type):l.interaction(t.type,t.cfg||{})})),t}function v(t){return Object(a.flow)(h,f,g,p,d,o.theme)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getNodeAlignFunction",(function(){return s})),n.d(e,"getDefaultOptions",(function(){return u})),n.d(e,"sankeyLayout",(function(){return l}));var r=n(1),i=n(446),o={left:i.left,right:i.right,center:i.center,justify:i.justify},a={nodeId:function(t){return t.index},nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodeSort:void 0};function s(t){return(Object(r.isString)(t)?o[t]:Object(r.isFunction)(t)?t:null)||i.justify}function u(t){return Object(r.assign)({},a,t)}function l(t,e){var n=u(t),r=n.nodeId,o=n.nodeSort,a=n.nodeAlign,l=n.nodeWidth,c=n.nodePadding,h=n.nodeDepth,f=Object(i.sankey)().nodeSort(o).nodeWidth(l).nodePadding(c).nodeDepth(h).nodeAlign(s(a)).extent([[0,0],[1,1]]).nodeId(r)(e);return{nodes:f.nodes.map((function(t){var e=t.x0,n=t.x1,r=t.y0,i=t.y1;return t.x=[e,n,n,e],t.y=[r,r,i,i],t})).filter((function(t){return null!==t.name})),links:f.links.map((function(t){var e=t.source,n=t.target,r=e.x1,i=n.x0;t.x=[r,r,i,i];var o=t.width/2;return t.y=[t.y0+o,t.y0-o,t.y1+o,t.y1-o],t})).filter((function(t){var e=t.source,n=t.target;return null!==e.name&&null!==n.name}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"getNodes",(function(){return i})),n.d(e,"getMatrix",(function(){return o})),n.d(e,"cutoffCircle",(function(){return a}));var r=n(1);function i(t,e,n){var r=[];return t.forEach((function(t){var i=t[e],o=t[n];r.includes(i)||r.push(i),r.includes(o)||r.push(o)})),r}function o(t,e,n,r){var i={};return e.forEach((function(t){i[t]={},e.forEach((function(e){i[t][e]=0}))})),t.forEach((function(t){i[t[n]][t[r]]=1})),i}function a(t,e,n){if(!Object(r.isArray)(t))return[];var a=[],s=i(t,e,n),u=o(t,s,e,n),l={};return s.forEach((function(t){l[t]=0})),s.forEach((function(t){-1!=l[t]&&function t(e){l[e]=1,s.forEach((function(n){if(0!=u[e][n])if(1==l[n])a.push(e+"_"+n);else{if(-1==l[n])return;t(n)}})),l[e]=-1}(t)})),0!==a.length&&console.warn("sankey data contains circle, "+a.length+" records removed.",a),t.filter((function(t){return a.findIndex((function(r){return r===t[e]+"_"+t[n]}))<0}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"SankeyNodeDragAction",(function(){return u}));var r=n(2),i=n(13),o=n(1),a=n(3),s=n(195),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isDragging=!1,e}return Object(r.__extends)(e,t),e.prototype.isNodeElement=function(){var t=Object(o.get)(this.context,"event.target");if(t){var e=t.get("element");return e&&e.getModel().data.isNode}return!1},e.prototype.getNodeView=function(){return Object(a.findViewById)(this.context.view,s.NODES_VIEW_ID)},e.prototype.getEdgeView=function(){return Object(a.findViewById)(this.context.view,s.EDGES_VIEW_ID)},e.prototype.getCurrentDatumIdx=function(t){return this.getNodeView().geometries[0].elements.indexOf(t)},e.prototype.start=function(){if(this.isNodeElement()){this.prevPoint={x:Object(o.get)(this.context,"event.x"),y:Object(o.get)(this.context,"event.y")};var t=this.context.event.target.get("element"),e=this.getCurrentDatumIdx(t);if(-1===e)return;this.currentElementIdx=e,this.context.isDragging=!0,this.isDragging=!0,this.prevNodeAnimateCfg=this.getNodeView().getOptions().animate,this.prevEdgeAnimateCfg=this.getEdgeView().getOptions().animate,this.getNodeView().animate(!1),this.getEdgeView().animate(!1)}},e.prototype.translate=function(){if(this.isDragging){var t=this.context.view,e={x:Object(o.get)(this.context,"event.x"),y:Object(o.get)(this.context,"event.y")},n=e.x-this.prevPoint.x,i=e.y-this.prevPoint.y,a=this.getNodeView(),s=a.geometries[0].elements[this.currentElementIdx];if(s&&s.getModel()){var u=s.getModel().data,l=a.getOptions().data,c=a.getCoordinate(),h={x:n/c.getWidth(),y:i/c.getHeight()},f=Object(r.__assign)(Object(r.__assign)({},u),{x:u.x.map((function(t){return t+h.x})),y:u.y.map((function(t){return t+h.y}))}),d=Object(r.__spreadArrays)(l);d[this.currentElementIdx]=f,a.data(d);var p=u.name,g=this.getEdgeView(),v=g.getOptions().data;v.forEach((function(t){t.source===p&&(t.x[0]+=h.x,t.x[1]+=h.x,t.y[0]+=h.y,t.y[1]+=h.y),t.target===p&&(t.x[2]+=h.x,t.x[3]+=h.x,t.y[2]+=h.y,t.y[3]+=h.y)})),g.data(v),this.prevPoint=e,t.render(!0)}}},e.prototype.end=function(){this.isDragging=!1,this.context.isDragging=!1,this.prevPoint=null,this.currentElementIdx=null,this.getNodeView().animate(this.prevNodeAnimateCfg),this.getEdgeView().animate(this.prevEdgeAnimateCfg)},e}(i.Action)},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptor",(function(){return y}));var r=n(2),i=n(8),o=n(3),a=n(34),s=n(1763),u=n(307);function l(t){var e=t.options,n=e.data,i=e.sourceField,a=e.targetField,u=e.weightField,l=e.nodePaddingRatio,c=e.nodeWidthRatio,h=e.rawFields,f=void 0===h?[]:h,d=Object(o.transformDataToNodeLinkData)(n,i,a,u),p=Object(s.chordLayout)({weight:!0,nodePaddingRatio:l,nodeWidthRatio:c},d),g=p.nodes,v=p.links,m=g.map((function(t){return Object(r.__assign)(Object(r.__assign)({},Object(o.pick)(t,Object(r.__spreadArrays)(["id","x","y","name"],f))),{isNode:!0})})),y=v.map((function(t){return Object(r.__assign)(Object(r.__assign)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},Object(o.pick)(t,Object(r.__spreadArrays)(["x","y","value"],f))),{isNode:!1})}));return Object(r.__assign)(Object(r.__assign)({},t),{ext:Object(r.__assign)(Object(r.__assign)({},t.ext),{chordData:{nodesData:m,edgesData:y}})})}function c(t){var e;return t.chart.scale(((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}})[u.NODE_COLOR_FIELD]={sync:"color"},e[u.EDGE_COLOR_FIELD]={sync:"color"},e)),t}function h(t){return t.chart.axis(!1),t}function f(t){return t.chart.legend(!1),t}function d(t){var e=t.chart,n=t.options.tooltip;return e.tooltip(n),t}function p(t){return t.chart.coordinate("polar").reflect("y"),t}function g(t){var e=t.chart,n=t.options,r=t.ext.chordData.nodesData,i=n.nodeStyle,o=n.label,s=n.tooltip,l=e.createView();return l.data(r),Object(a.polygon)({chart:l,options:{xField:u.X_FIELD,yField:u.Y_FIELD,seriesField:u.NODE_COLOR_FIELD,polygon:{style:i},label:o,tooltip:s}}),t}function v(t){var e=t.chart,n=t.options,r=t.ext.chordData.edgesData,i=n.edgeStyle,o=n.tooltip,s=e.createView();s.data(r);var l={xField:u.X_FIELD,yField:u.Y_FIELD,seriesField:u.EDGE_COLOR_FIELD,edge:{style:i,shape:"arc"},tooltip:o};return Object(a.edge)({chart:s,options:l}),t}function m(t){var e=t.chart,n=t.options.animation;return Object(o.addViewAnimation)(e,n,Object(o.getAllGeometriesRecursively)(e)),t}function y(t){return Object(o.flow)(i.theme,l,p,c,h,f,d,v,g,i.interaction,i.state,m)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getDefaultOptions",(function(){return o})),n.d(e,"chordLayout",(function(){return a}));var r=n(1),i={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null};function o(t){return Object(r.assign)({},i,t)}function a(t,e){var n=o(t),i={},a=e.nodes,s=e.links;return a.forEach((function(t){var e=n.id(t);i[e]=t})),function(t,e,n){Object(r.forIn)(t,(function(t,r){t.inEdges=e.filter((function(t){return""+n.target(t)==""+r})),t.outEdges=e.filter((function(t){return""+n.source(t)==""+r})),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach((function(e){t.value+=n.targetWeight(e)})),t.outEdges.forEach((function(e){t.value+=n.sourceWeight(e)}))}))}(i,s,n),function(t,e){var n={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,n){return(""+e.id(t)).localeCompare(""+e.id(n))}}[e.sortBy];!n&&Object(r.isFunction)(e.sortBy)&&(n=e.sortBy),n&&t.sort(n)}(a,n),{nodes:function(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var r=e.nodePaddingRatio;if(r<0||r>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var i=r/(2*n),o=e.nodeWidthRatio;if(o<=0||o>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var a=0;t.forEach((function(t){a+=t.value})),t.forEach((function(t){t.weight=t.value/a,t.width=t.weight*(1-r),t.height=o})),t.forEach((function(n,r){for(var a=0,s=r-1;s>=0;s--)a+=t[s].width+2*i;var u=n.minX=i+a,l=n.maxX=n.minX+n.width,c=n.minY=e.y-o/2,h=n.maxY=c+o;n.x=[u,l,l,u],n.y=[c,c,h,h]}))}else{var s=1/n;t.forEach((function(t,n){t.x=(n+.5)*s,t.y=e.y}))}return t}(a,n),links:function(t,e,n){if(n.weight){var i={};Object(r.forIn)(t,(function(t,e){i[e]=t.value})),e.forEach((function(e){var r=n.source(e),o=n.target(e),a=t[r],s=t[o];if(a&&s){var u=i[r],l=n.sourceWeight(e),c=a.minX+(a.value-u)/a.value*a.width,h=c+l/a.value*a.width;i[r]-=l;var f=i[o],d=n.targetWeight(e),p=s.minX+(s.value-f)/s.value*s.width,g=p+d/s.value*s.width;i[o]-=d;var v=n.y;e.x=[c,h,p,g],e.y=[v,v,v,v],e.source=a,e.target=s}}))}else e.forEach((function(e){var r=t[n.source(e)],i=t[n.target(e)];r&&i&&(e.x=[r.x,i.x],e.y=[r.y,i.y],e.source=r,e.target=i)}));return e}(i,s,n)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return p})),n.d(e,"adaptor",(function(){return b}));var r=n(2),i=n(1),o=n(670),a=n(8),s=n(3),u=n(223),l=n(610),c=n(773);function h(t){var e=t.chart,n=Math.min(e.viewBBox.width,e.viewBBox.height);return Object(s.deepAssign)({options:{size:function(t){return t.r*n}}},t)}function f(t){var e=t.options,n=t.chart,r=n.viewBBox,o=e.padding,a=e.appendPadding,s=e.drilldown,c=a;if(null==s?void 0:s.enabled){var h=Object(u.getAdjustAppendPadding)(n.appendPadding,Object(i.get)(s,["breadCrumb","position"]));c=Object(u.resolveAllPadding)([h,a])}var f=Object(l.resolvePaddingForCircle)(o,c,r).finalPadding;return n.padding=f,n.appendPadding=0,t}function d(t){var e=t.chart,n=t.options,i=e.padding,a=e.appendPadding,u=n.color,h=n.colorField,f=n.pointStyle,d=n.hierarchyConfig,p=n.sizeField,g=n.rawFields,v=void 0===g?[]:g,m=n.drilldown,y=Object(l.transformData)({data:n.data,hierarchyConfig:d,enableDrillDown:null==m?void 0:m.enabled,rawFields:v});e.data(y);var b=e.viewBBox,_=Object(l.resolvePaddingForCircle)(i,a,b).finalSize,x=function(t){return t.r*_};return p&&(x=function(t){return t[p]*_}),Object(o.point)(Object(s.deepAssign)({},t,{options:{xField:"x",yField:"y",seriesField:h,sizeField:p,rawFields:Object(r.__spreadArrays)(c.RAW_FIELDS,v),point:{color:u,style:f,shape:"circle",size:x}}})),t}function p(t){return Object(s.flow)(Object(a.scale)({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(t)}function g(t){var e=t.chart,n=t.options.tooltip;if(!1===n)e.tooltip(!1);else{var o=n;Object(i.get)(n,"fields")||(o=Object(s.deepAssign)({},{customItems:function(t){return t.map((function(t){var n=Object(i.get)(e.getOptions(),"scales"),o=Object(i.get)(n,["name","formatter"],(function(t){return t})),a=Object(i.get)(n,["value","formatter"],(function(t){return t}));return Object(r.__assign)(Object(r.__assign)({},t),{name:o(t.data.name),value:a(t.data.value)})}))}},o)),e.tooltip(o)}return t}function v(t){return t.chart.axis(!1),t}function m(t){var e=t.drilldown,n=t.interactions,i=void 0===n?[]:n;return(null==e?void 0:e.enabled)?Object(s.deepAssign)({},t,{interactions:Object(r.__spreadArrays)(i,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:l.transformData,enableDrillDown:!0}}])}):t}function y(t){var e=t.chart,n=t.options;return Object(a.interaction)({chart:e,options:m(n)}),t}function b(t){return Object(s.flow)(Object(a.pattern)("pointStyle"),h,f,a.theme,p,d,v,a.legend,g,y,a.animation,Object(a.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"pack",(function(){return u}));var r=n(876),i=n(333),o=n(1),a=n(212),s={field:"value",as:["x","y","r"],sort:function(t,e){return e.value-t.value}};function u(t,e){var n,u=(e=Object(o.assign)({},s,e)).as;if(!Object(o.isArray)(u)||3!==u.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{n=Object(a.getField)(e)}catch(t){console.warn(t)}var l=function(t){return r.default().size(e.size).padding(e.padding)(i.default(t).sum((function(t){return t[n]})).sort(e.sort))}(t),c=u[0],h=u[1],f=u[2];return l.each((function(t){t[c]=t.x,t[h]=t.y,t[f]=t.r})),Object(a.getAllNodes)(l)}},function(t,e,n){"use strict";n.r(e),n.d(e,"slider",(function(){return d})),n.d(e,"adaptor",(function(){return p}));var r=n(2),i=n(1),o=n(110),a=n(8),s=n(26),u=n(148),l=n(3),c=n(596);function h(t){var e=t.chart,n=t.options,a=n.views,s=n.legend;return Object(i.each)(a,(function(t){var n=t.region,a=t.data,s=t.meta,c=t.axes,h=t.coordinate,f=t.interactions,d=t.annotations,p=t.tooltip,g=t.geometries,v=e.createView({region:n});v.data(a);var m={};c&&Object(i.each)(c,(function(t,e){m[e]=Object(l.pick)(t,u.AXIS_META_CONFIG_KEYS)})),m=Object(l.deepAssign)({},s,m),v.scale(m),c?Object(i.each)(c,(function(t,e){v.axis(e,t)})):v.axis(!1),v.coordinate(h),Object(i.each)(g,(function(t){var e=Object(o.geometry)({chart:v,options:t}).ext,n=t.adjust;n&&e.geometry.adjust(n)})),Object(i.each)(f,(function(t){!1===t.enable?v.removeInteraction(t.type):v.interaction(t.type,t.cfg)})),Object(i.each)(d,(function(t){v.annotation()[t.type](Object(r.__assign)({},t))})),"boolean"==typeof t.animation?v.animate(!1):(v.animate(!0),Object(i.each)(v.geometries,(function(e){e.animate(t.animation)}))),p&&(v.interaction("tooltip"),v.tooltip(p))})),s?Object(i.each)(s,(function(t,n){e.legend(n,t)})):e.legend(!1),e.tooltip(n.tooltip),t}function f(t){var e=t.chart,n=t.options,o=n.plots,a=n.data,u=void 0===a?[]:a;return Object(i.each)(o,(function(t){var n=t.type,i=t.region,o=t.options,a=void 0===o?{}:o,h=t.top,f=a.tooltip;if(h)Object(c.execPlotAdaptor)(n,e,Object(r.__assign)(Object(r.__assign)({},a),{data:u}));else{var d=e.createView(Object(r.__assign)({region:i},Object(l.pick)(a,s.PLOT_CONTAINER_OPTIONS)));f&&d.interaction("tooltip"),Object(c.execPlotAdaptor)(n,d,Object(r.__assign)({data:u},a))}})),t}function d(t){var e=t.chart,n=t.options;return e.option("slider",n.slider),t}function p(t){return Object(l.flow)(a.animation,h,f,a.interaction,a.animation,a.theme,a.tooltip,d,Object(a.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptor",(function(){return f}));var r=n(2),i=n(1),o=n(8),a=n(148),s=n(3),u=n(596),l=n(1768);function c(t){var e=t.chart,n=t.options,o=n.type,a=n.data,s=n.fields,c=n.eachView,h=Object(i.omit)(n,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return e.data(a),e.facet(o,Object(r.__assign)(Object(r.__assign)({},h),{fields:s,eachView:function(t,e){var n=c(t,e);if(n.geometries)Object(l.execViewAdaptor)(t,n);else{var r=n,i=r.options;i.tooltip&&t.interaction("tooltip"),Object(u.execPlotAdaptor)(r.type,t,i)}}})),t}function h(t){var e=t.chart,n=t.options,o=n.axes,u=n.meta,l=n.tooltip,c=n.coordinate,h=n.theme,f=n.legend,d=n.interactions,p=n.annotations,g={};return o&&Object(i.each)(o,(function(t,e){g[e]=Object(s.pick)(t,a.AXIS_META_CONFIG_KEYS)})),g=Object(s.deepAssign)({},u,g),e.scale(g),e.coordinate(c),o?Object(i.each)(o,(function(t,n){e.axis(n,t)})):e.axis(!1),l?(e.interaction("tooltip"),e.tooltip(l)):!1===l&&e.removeInteraction("tooltip"),e.legend(f),h&&e.theme(h),Object(i.each)(d,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)})),Object(i.each)(p,(function(t){e.annotation()[t.type](Object(r.__assign)({},t))})),t}function f(t){return Object(s.flow)(o.theme,c,h)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"execViewAdaptor",(function(){return u}));var r=n(2),i=n(1),o=n(110),a=n(148),s=n(3);function u(t,e){var n=e.data,u=e.coordinate,l=e.interactions,c=e.annotations,h=e.animation,f=e.tooltip,d=e.axes,p=e.meta,g=e.geometries;n&&t.data(n);var v={};d&&Object(i.each)(d,(function(t,e){v[e]=Object(s.pick)(t,a.AXIS_META_CONFIG_KEYS)})),v=Object(s.deepAssign)({},p,v),t.scale(v),u&&t.coordinate(u),!1===d?t.axis(!1):Object(i.each)(d,(function(e,n){t.axis(n,e)})),Object(i.each)(g,(function(e){var n=Object(o.geometry)({chart:t,options:e}).ext,r=e.adjust;r&&n.geometry.adjust(r)})),Object(i.each)(l,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)})),Object(i.each)(c,(function(e){t.annotation()[e.type](Object(r.__assign)({},e))})),Object(s.addViewAnimation)(t,h),f?(t.interaction("tooltip"),t.tooltip(f)):!1===f&&t.removeInteraction("tooltip")}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return r}));var r={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return J}));var r,i,o,a,s,u,l,c,h,f,d,p=n(436),g=n.n(p),v=n(182),m=n.n(v),y=n(227),b=n.n(y),_=n(115),x=n.n(_),w=n(121),O=n.n(w),S=n(47),C=n.n(S),E=n(16),T=n.n(E),A=n(17),M=n.n(A),I=n(4),j=n.n(I),k=n(44),P=n.n(k),L=(n(196),n(49)),R=n.n(L),D=n(774),N=n.n(D),B=n(76),F=n(37),z=n(10),V=n(21),U=(n(94),n(325)),G=n(527),H=n(224),W=n(938),Y=n(1818),X=["id","style","minZoom","maxZoom","token","mapInstance","plugin"];function $(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$(Object(n),!0).forEach((function(e){j()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}!function(t,e){var n="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM,r="undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram);if(!n&&!r&&(e||(e=document),e)){var i=e.head||e.getElementsByTagName("head")[0];if(!i){i=e.createElement("head");var o=e.body||e.getElementsByTagName("body")[0];o?o.parentNode.insertBefore(i,o):e.documentElement.appendChild(i)}var a=e.createElement("style");a.type="text/css",a.styleSheet?a.styleSheet.cssText=t:a.appendChild(e.createTextNode(t)),i.appendChild(a)}}(".amap-logo{\n display: none !important;\n}\n");var Z=0;window.forceWebGL=!0;var K=!1,Q=[],J=(r=Object(V.injectable)(),i=Object(V.inject)(B.TYPES.IGlobalConfigService),o=Object(V.inject)(B.TYPES.MapConfig),a=Object(V.inject)(B.TYPES.ICoordinateSystemService),s=Object(V.inject)(B.TYPES.IEventEmitter),r((l=function(){function t(){var e=this;T()(this,t),j()(this,"version",H.Version["GAODE1.x"]),j()(this,"simpleMapCoord",new U.SimpleMapCoord),j()(this,"map",void 0),j()(this,"bgColor","rgba(0, 0, 0, 0)"),C()(this,"configService",c,this),C()(this,"config",h,this),C()(this,"coordinateSystemService",f,this),C()(this,"eventEmitter",d,this),j()(this,"markerContainer",void 0),j()(this,"$mapContainer",void 0),j()(this,"viewport",void 0),j()(this,"cameraChangedCallback",void 0),j()(this,"handleCameraChanged",(function(t){var n=t.camera,r=n.fov,i=n.near,o=n.far,a=n.height,s=n.pitch,u=n.rotation,l=n.aspect,c=n.position,h=e.getCenter(),f=h.lng,d=h.lat;if(e.emit("mapchange"),e.cameraChangedCallback){e.viewport.syncWithMapCamera({aspect:l,bearing:360-u,far:o,fov:r,cameraHeight:a,near:i,pitch:s,zoom:e.map.getZoom()-1,center:[f,d],offsetOrigin:[c.x,c.y]});var p=e.config.offsetZoom,g=void 0===p?12:p;e.viewport.getZoom()>g?e.coordinateSystemService.setCoordinateSystem(B.CoordinateSystem.P20_OFFSET):e.coordinateSystemService.setCoordinateSystem(B.CoordinateSystem.P20),e.cameraChangedCallback(e.viewport)}}))}var e;return M()(t,[{key:"setBgColor",value:function(t){this.bgColor=t}},{key:"addMarkerContainer",value:function(){var t=this.map.getContainer();if(null!==t){var e=t.getElementsByClassName("amap-maps")[0];this.markerContainer=F.DOM.create("div","l7-marker-container",e)}}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(t,e){-1!==B.MapServiceEvent.indexOf(t)?this.eventEmitter.on(t,e):this.map.on(t,e)}},{key:"off",value:function(t,e){-1!==B.MapServiceEvent.indexOf(t)?this.eventEmitter.off(t,e):this.map.off(t,e)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){var t;return null===(t=this.map.getContainer())||void 0===t?void 0:t.getElementsByClassName("amap-maps")[0]}},{key:"getSize",value:function(){var t=this.map.getSize();return[t.getWidth(),t.getHeight()]}},{key:"getType",value:function(){return"amap"}},{key:"getZoom",value:function(){return this.map.getZoom()-1}},{key:"setZoom",value:function(t){return this.map.setZoom(t+1)}},{key:"getCenter",value:function(t){if(null!=t&&t.padding){var e=this.getCenter(),n=this.getSize(),r=O()(n,2),i=(r[0],r[1],Object(G.toPaddingOptions)(t.padding)),o=this.lngLatToPixel([e.lng,e.lat]),a=[(i.right-i.left)/2,(i.bottom-i.top)/2];return this.pixelToLngLat([o.x-a[0],o.y-a[1]])}var s=this.map.getCenter();return{lng:s.getLng(),lat:s.getLat()}}},{key:"setCenter",value:function(t,e){if(null!=e&&e.padding){var n=Object(G.toPaddingOptions)(e.padding),r=this.lngLatToPixel(t),i=[(n.right-n.left)/2,(n.bottom-n.top)/2],o=this.pixelToLngLat([r.x+i[0],r.y+i[1]]);this.map.setCenter([o.lng,o.lat])}else this.map.setCenter(t)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return 360-this.map.getRotation()}},{key:"getBounds",value:function(){var t=this.map.getBounds().toBounds(),e=t.getNorthEast(),n=t.getSouthWest(),r=this.getCenter(),i=r.lng>e.getLng()||r.lng<n.getLng()?180-e.getLng():e.getLng();return[[r.lng<n.getLng()?n.getLng()-180:n.getLng(),n.getLat()],[i,e.getLat()]]}},{key:"getMinZoom",value:function(){return this.map.get("zooms")[0]-1}},{key:"getMaxZoom",value:function(){return this.map.get("zooms")[1]-1}},{key:"setRotation",value:function(t){return this.map.setRotation(t)}},{key:"setPitch",value:function(t){return this.map.setPitch(t)}},{key:"zoomIn",value:function(){this.map.zoomIn()}},{key:"zoomOut",value:function(){this.map.zoomOut()}},{key:"panTo",value:function(t){this.map.panTo(t)}},{key:"panBy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.map.panBy(t,e)}},{key:"fitBounds",value:function(t){this.map.setBounds(new AMap.Bounds([t[0][0],t[0][1],t[1][0],t[1][1]]))}},{key:"setZoomAndCenter",value:function(t,e){this.map.setZoomAndCenter(t+1,e)}},{key:"setMapStyle",value:function(t){this.map.setMapStyle(this.getMapStyle(t))}},{key:"setMapStatus",value:function(t){this.map.setStatus(t)}},{key:"pixelToLngLat",value:function(t){var e=this.map.pixelToLngLat(new AMap.Pixel(t[0],t[1]));return{lng:e.getLng(),lat:e.getLat()}}},{key:"lngLatToPixel",value:function(t){var e=this.map.lnglatToPixel(new AMap.LngLat(t[0],t[1]));return{x:e.getX(),y:e.getY()}}},{key:"containerToLngLat",value:function(t){var e=new AMap.Pixel(t[0],t[1]),n=this.map.containerToLngLat(e);return{lng:null==n?void 0:n.getLng(),lat:null==n?void 0:n.getLat()}}},{key:"lngLatToContainer",value:function(t){var e=new AMap.LngLat(t[0],t[1]),n=this.map.lngLatToContainer(e);return{x:n.getX(),y:n.getY()}}},{key:"lngLatToCoord",value:function(t){var e=this.map.lngLatToGeodeticCoord(t);return[e.x,-e.y]}},{key:"lngLatToMercator",value:function(t,e){return{x:0,y:0,z:0}}},{key:"getModelMatrix",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[1,1,1],i=this.viewport.projectFlat(t),o=z.mat4.create();return z.mat4.translate(o,o,z.vec3.fromValues(i[0],i[1],e)),z.mat4.scale(o,o,z.vec3.fromValues(r[0],r[1],r[2])),z.mat4.rotateX(o,o,n[0]),z.mat4.rotateY(o,o,n[1]),z.mat4.rotateZ(o,o,n[2]),o}},{key:"init",value:(e=x()(R.a.mark((function t(){var e,n,r,i,o,a,s,u,l,c,h,f,d,p,g=this;return R.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.config,n=e.id,r=e.style,i=void 0===r?"light":r,o=e.minZoom,a=void 0===o?0:o,s=e.maxZoom,u=void 0===s?18:s,l=e.token,c=void 0===l?"15cd8a57710d40c9b7c0e3cc120f1200":l,h=e.mapInstance,f=e.plugin,d=void 0===f?[]:f,p=b()(e,X),t.next=3,new Promise((function(t){var e=function(){if(h)g.map=h,g.$mapContainer=g.map.getContainer(),setTimeout((function(){g.map.on("camerachange",g.handleCameraChanged),t()}),30);else{g.$mapContainer=g.creatAmapContainer(n);var e=q({mapStyle:g.getMapStyle(i),zooms:[a,u],viewMode:"3D"},p);e.zoom&&(e.zoom+=1);var r=new AMap.Map(g.$mapContainer,e);r.on("camerachange",g.handleCameraChanged),r.on("camerachange",(function(){setTimeout((function(){return g.handleAfterMapChange()}))})),g.map=r,setTimeout((function(){t()}),10)}};K||h?K&&window.AMap||h?e():Q.push(e):("15cd8a57710d40c9b7c0e3cc120f1200"===c&&console.warn(g.configService.getSceneWarninfo("MapToken")),K=!0,d.push("Map3D"),N.a.load({key:c,version:"1.4.15",plugins:d}).then((function(t){e(),Q.length&&(Q.forEach((function(t){return t()})),Q=[])})).catch((function(t){throw new Error(t)})))}));case 3:this.viewport=new Y.default;case 4:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"meterToCoord",value:function(t,e){var n=AMap.GeometryUtil.distance(g()(AMap.LngLat,m()(t)),g()(AMap.LngLat,m()(e))),r=this.lngLatToCoord(t),i=O()(r,2),o=i[0],a=i[1],s=this.lngLatToCoord(e),u=O()(s,2),l=u[0],c=u[1];return Math.sqrt(Math.pow(o-l,2)+Math.pow(a-c,2))/n}},{key:"exportMap",value:function(t){var e,n=null===(e=this.getContainer())||void 0===e?void 0:e.getElementsByClassName("amap-layer")[0];return"jpg"===t?null==n?void 0:n.toDataURL("image/jpeg"):null==n?void 0:n.toDataURL("image/png")}},{key:"emit",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this.eventEmitter).emit.apply(e,[t].concat(r))}},{key:"once",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this.eventEmitter).once.apply(e,[t].concat(r))}},{key:"destroy",value:function(){var t,e;this.map.destroy(),null===(t=this.$mapContainer)||void 0===t||null===(e=t.parentNode)||void 0===e||e.removeChild(this.$mapContainer),delete window.initAMap;var n=document.getElementById("amap-script");n&&document.head.removeChild(n)}},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"onCameraChanged",value:function(t){this.cameraChangedCallback=t}},{key:"handleAfterMapChange",value:function(){this.emit("mapAfterFrameChange")}},{key:"getMapStyle",value:function(t){return W.MapTheme[t]?W.MapTheme[t]:t}},{key:"creatAmapContainer",value:function(t){var e=t;"string"==typeof t&&(e=document.getElementById(t));var n=document.createElement("div");return n.style.cssText+="\n position: absolute;\n top: 0;\n height: 100%;\n width: 100%;\n ",n.id="l7_amap_div"+Z++,e.appendChild(n),n}}]),t}(),c=P()(l.prototype,"configService",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=P()(l.prototype,"config",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=P()(l.prototype,"coordinateSystemService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=P()(l.prototype,"eventEmitter",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=l))||u)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2055);e.default=function(t,e){return void 0===e&&(e=!0),{lazyInject:r.makePropertyInjectDecorator(t,e),lazyInjectNamed:r.makePropertyInjectNamedDecorator(t,e),lazyInjectTagged:r.makePropertyInjectTaggedDecorator(t,e),lazyMultiInject:r.makePropertyMultiInjectDecorator(t,e)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_CHAR_SET",(function(){return b})),n.d(e,"DEFAULT_FONT_FAMILY",(function(){return _})),n.d(e,"DEFAULT_FONT_WEIGHT",(function(){return x})),n.d(e,"DEFAULT_FONT_SIZE",(function(){return w})),n.d(e,"DEFAULT_BUFFER",(function(){return O})),n.d(e,"DEFAULT_CUTOFF",(function(){return S})),n.d(e,"DEFAULT_RADIUS",(function(){return C})),n.d(e,"default",(function(){return A}));var r,i=n(16),o=n.n(i),a=n(17),s=n.n(a),u=n(4),l=n.n(u),c=n(37),h=n(21),f=n(1782),d=n.n(f),p=(n(94),n(781));function g(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){l()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var b=function(){for(var t=[],e=32;e<128;e++)t.push(String.fromCharCode(e));return t}(),_="sans-serif",x="normal",w=24,O=3,S=.25,C=8;function E(t,e,n,r){t.font="".concat(r," ").concat(n,"px ").concat(e),t.fillStyle="black",t.textBaseline="middle"}function T(t,e){for(var n=0;n<t.length;n++)e.data[4*n+3]=t[n]}var A=Object(h.injectable)()(r=function(){function t(){o()(this,t),l()(this,"fontAtlas",void 0),l()(this,"iconFontMap",void 0),l()(this,"iconFontGlyphs",{}),l()(this,"fontOptions",void 0),l()(this,"key",void 0),l()(this,"cache",new c.LRUCache(3))}return s()(t,[{key:"scale",get:function(){return 1}},{key:"canvas",get:function(){var t=this.cache.get(this.key);return t&&t.data}},{key:"mapping",get:function(){var t=this.cache.get(this.key);return t&&t.mapping}},{key:"init",value:function(){this.cache.clear(),this.fontOptions={fontFamily:_,fontWeight:x,characterSet:b,fontSize:w,buffer:O,sdf:!0,cutoff:S,radius:C,iconfont:!1},this.key="",this.iconFontMap=new Map}},{key:"addIconGlyphs",value:function(t){var e=this;t.forEach((function(t){e.iconFontGlyphs[t.name]=t.unicode}))}},{key:"addIconFont",value:function(t,e){this.iconFontMap.set(t,e)}},{key:"getIconFontKey",value:function(t){return this.iconFontMap.get(t)||t}},{key:"getGlyph",value:function(t){return this.iconFontGlyphs[t]?String.fromCharCode(parseInt(this.iconFontGlyphs[t],16)):""}},{key:"setFontOptions",value:function(t){this.fontOptions=y(y({},this.fontOptions),t),this.key=this.getKey();var e=this.getNewChars(this.key,this.fontOptions.characterSet),n=this.cache.get(this.key);if(!n||0!==e.length){var r=this.generateFontAtlas(this.key,e,n);this.fontAtlas=r,this.cache.set(this.key,r)}}},{key:"destroy",value:function(){this.cache.clear(),this.iconFontMap.clear()}},{key:"generateFontAtlas",value:function(t,e,n){var r=this.fontOptions,i=r.fontFamily,o=r.fontWeight,a=r.fontSize,s=r.buffer,u=r.sdf,l=r.radius,h=r.cutoff,f=r.iconfont,v=n&&n.data;v||((v=c.$window.document.createElement("canvas")).width=1024);var m=v.getContext("2d");E(m,i,a,o);var b=Object(p.buildMapping)(y({getFontWidth:function(t){return m.measureText(t).width},fontHeight:1*a,buffer:s,characterSet:e,maxCanvasWidth:1024},n&&{mapping:n.mapping,xOffset:n.xOffset,yOffset:n.yOffset})),_=b.mapping,x=b.canvasHeight,w=b.xOffset,O=b.yOffset,S=m.getImageData(0,0,v.width,v.height);if(v.height=x,m.putImageData(S,0,0),E(m,i,a,o),u){var C,A=new d.a(a,s,l,h,i,o),M=m.getImageData(0,0,A.size,A.size),I=g(e);try{for(I.s();!(C=I.n()).done;){var j=C.value;if(f){var k=String.fromCharCode(parseInt(j.replace("&#x","").replace(";",""),16));T(A.draw(k),M)}else T(A.draw(j),M);m.putImageData(M,_[j].x,_[j].y)}}catch(t){I.e(t)}finally{I.f()}}else{var P,L=g(e);try{for(L.s();!(P=L.n()).done;){var R=P.value;m.fillText(R,_[R].x,_[R].y+1*a)}}catch(t){L.e(t)}finally{L.f()}}return{xOffset:w,yOffset:O,mapping:_,data:v,width:v.width,height:v.height}}},{key:"getKey",value:function(){return"key"}},{key:"getNewChars",value:function(t,e){var n=this.cache.get(t);if(!n)return e;var r=[],i=n.mapping,o=new Set(Object.keys(i));return new Set(e).forEach((function(t){o.has(t)||r.push(t)})),r}}]),t}())||r},function(t,e,n){"use strict";n.r(e),n.d(e,"Blob",(function(){return s}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=function(){function t(e,n){i()(this,t),this.buffers=e,this.type=n}return a()(t,[{key:"arraybuffer",value:function(){return Promise.resolve(this.buffers[0])}},{key:"stream",value:function(){throw new Error("not implemented")}},{key:"text",value:function(){throw new Error("not implemented")}},{key:"slice",value:function(t,e,n){throw new Error("not implemented")}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"HTMLCanvasElement",(function(){return r}));var r=Object},function(t,e,n){"use strict";n.r(e),n.d(e,"ImageData",(function(){return h}));var r=n(687),i=n.n(r),o=n(16),a=n.n(o),s=n(17),u=n.n(s),l=n(4),c=n.n(l),h=function(){function t(){a()(this,t),c()(this,"_w",void 0),c()(this,"_h",void 0),c()(this,"_data",void 0);var e=arguments.length;if(2===e){if("number"==typeof arguments[0]&&"number"==typeof arguments[1])return this._w=arguments[0],this._h=arguments[1],void(this._data=new Uint8ClampedArray(this._w*this._h*4))}else 3===e&&"object"===i()(arguments[0])&&"number"==typeof arguments[1]&&"number"==typeof arguments[2]&&(this._data=arguments[0],this._w=arguments[1],this._h=arguments[2]);throw new Error("ImageData: params error")}return u()(t,[{key:"width",get:function(){return this._w}},{key:"height",get:function(){return this._h}},{key:"data",get:function(){return this._data}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"isMiniAli",(function(){return u})),n.d(e,"navigator",(function(){return d}));var r,i,o,a,s=n(233),u="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM;if(u){var l=my.getSystemInfoSync();r=l.system,i=l.platform,o=l.language}else{var c={versions:(a=s.globalWindow.navigator.userAgent,{trident:a.indexOf("Trident")>-1,presto:a.indexOf("Presto")>-1,webKit:a.indexOf("AppleWebKit")>-1,gecko:a.indexOf("Gecko")>-1&&-1===a.indexOf("KHTML"),mobile:!!a.match(/AppleWebKit.*Mobile.*/),ios:!!a.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:a.indexOf("Android")>-1||a.indexOf("Linux")>-1,iPhone:a.indexOf("iPhone")>-1,iPad:a.indexOf("iPad")>-1,webApp:-1===a.indexOf("Safari"),weixin:a.indexOf("MicroMessenger")>-1,qq:" qq"===a.match(/\sQQ/i)}),language:(s.globalWindow.navigator.browserLanguage||s.globalWindow.navigator.language).toLowerCase()};c.versions.android?i="android":c.versions.trident?i="IE":c.versions.presto?i="Opera":c.versions.webKit?i="webKit":c.versions.gecko?i="Firefox":c.versions.mobile?i="mobile":c.versions.ios?i="ios":c.versions.iPhone?i="iPhone":c.versions.iPad?i="ipad":c.versions.webApp?i="webApp":c.versions.weixin?i="weixin":c.versions.qq&&(i="qq"),r=s.globalWindow.navigator.userAgent,o=c.language}var h=-1!==r.toLowerCase().indexOf("android")?"Android; CPU Android 6.0":"iPhone; CPU iPhone OS 10_3_1 like Mac OS X",f="Mozilla/5.0 (".concat(h,") AppleWebKit/603.1.30 (KHTML, like Gecko) Mobile/14E8301 MicroMessenger/6.6.0 MiniGame NetType/WIFI Language/").concat(o),d={platform:i,language:o,appVersion:"5.0 (".concat(h,") AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"),userAgent:f}},function(t,e,n){"use strict";n.r(e),n.d(e,"performance",(function(){return r}));var r={mark:function(t){return null},clearMeasures:function(t){return null},clearMarks:function(t){return null},measure:function(t,e,n){return{duration:0}},now:function(){}}},function(t,e,n){"use strict";n.r(e),n.d(e,"URL",(function(){return c}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(4),u=n.n(s),l=n(597),c=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";i()(this,t),u()(this,"href",void 0),0!=e.indexOf("http://")&&0!=e.indexOf("https://")?this.href=n+e:this.href=e}return a()(t,null,[{key:"createObjectURL",value:function(t){var e=t.buffers[0],n=t.type,r=function(t){for(var e="",n=new Uint8Array(t),r=n.byteLength,i=0;i<r;i++)e+=String.fromCharCode(n[i]);return Object(l.btoa)(e)}(e);return"data:".concat(n,";base64, ")+r}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"WebGLRenderingContext",(function(){return r}));var r={GCCSO_SHADER_BINARY_FJ:37472,_3DC_XY_AMD:34810,_3DC_X_AMD:34809,ACTIVE_ATTRIBUTES:35721,ACTIVE_ATTRIBUTE_MAX_LENGTH:35722,ACTIVE_PROGRAM_EXT:33369,ACTIVE_TEXTURE:34016,ACTIVE_UNIFORMS:35718,ACTIVE_UNIFORM_MAX_LENGTH:35719,ALIASED_LINE_WIDTH_RANGE:33902,ALIASED_POINT_SIZE_RANGE:33901,ALL_COMPLETED_NV:34034,ALL_SHADER_BITS_EXT:4294967295,ALPHA:6406,ALPHA16F_EXT:34844,ALPHA32F_EXT:34838,ALPHA8_EXT:32828,ALPHA8_OES:32828,ALPHA_BITS:3413,ALPHA_TEST_FUNC_QCOM:3009,ALPHA_TEST_QCOM:3008,ALPHA_TEST_REF_QCOM:3010,ALREADY_SIGNALED_APPLE:37146,ALWAYS:519,AMD_compressed_3DC_texture:1,AMD_compressed_ATC_texture:1,AMD_performance_monitor:1,AMD_program_binary_Z400:1,ANGLE_depth_texture:1,ANGLE_framebuffer_blit:1,ANGLE_framebuffer_multisample:1,ANGLE_instanced_arrays:1,ANGLE_pack_reverse_row_order:1,ANGLE_program_binary:1,ANGLE_texture_compression_dxt3:1,ANGLE_texture_compression_dxt5:1,ANGLE_texture_usage:1,ANGLE_translated_shader_source:1,ANY_SAMPLES_PASSED_CONSERVATIVE_EXT:36202,ANY_SAMPLES_PASSED_EXT:35887,APPLE_copy_texture_levels:1,APPLE_framebuffer_multisample:1,APPLE_rgb_422:1,APPLE_sync:1,APPLE_texture_format_BGRA8888:1,APPLE_texture_max_level:1,ARM_mali_program_binary:1,ARM_mali_shader_binary:1,ARM_rgba8:1,ARRAY_BUFFER:34962,ARRAY_BUFFER_BINDING:34964,ATC_RGBA_EXPLICIT_ALPHA_AMD:35987,ATC_RGBA_INTERPOLATED_ALPHA_AMD:34798,ATC_RGB_AMD:35986,ATTACHED_SHADERS:35717,BACK:1029,BGRA8_EXT:37793,BGRA_EXT:32993,BGRA_IMG:32993,BINNING_CONTROL_HINT_QCOM:36784,BLEND:3042,BLEND_COLOR:32773,BLEND_DST_ALPHA:32970,BLEND_DST_RGB:32968,BLEND_EQUATION:32777,BLEND_EQUATION_ALPHA:34877,BLEND_EQUATION_RGB:32777,BLEND_SRC_ALPHA:32971,BLEND_SRC_RGB:32969,BLUE_BITS:3412,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,BUFFER:33504,BUFFER_ACCESS_OES:35003,BUFFER_MAPPED_OES:35004,BUFFER_MAP_POINTER_OES:35005,BUFFER_OBJECT_EXT:37201,BUFFER_SIZE:34660,BUFFER_USAGE:34661,BYTE:5120,CCW:2305,CLAMP_TO_BORDER_NV:33069,CLAMP_TO_EDGE:33071,COLOR_ATTACHMENT0:36064,COLOR_ATTACHMENT0_NV:36064,COLOR_ATTACHMENT10_NV:36074,COLOR_ATTACHMENT11_NV:36075,COLOR_ATTACHMENT12_NV:36076,COLOR_ATTACHMENT13_NV:36077,COLOR_ATTACHMENT14_NV:36078,COLOR_ATTACHMENT15_NV:36079,COLOR_ATTACHMENT1_NV:36065,COLOR_ATTACHMENT2_NV:36066,COLOR_ATTACHMENT3_NV:36067,COLOR_ATTACHMENT4_NV:36068,COLOR_ATTACHMENT5_NV:36069,COLOR_ATTACHMENT6_NV:36070,COLOR_ATTACHMENT7_NV:36071,COLOR_ATTACHMENT8_NV:36072,COLOR_ATTACHMENT9_NV:36073,COLOR_ATTACHMENT_EXT:37104,COLOR_BUFFER_BIT:16384,COLOR_BUFFER_BIT0_QCOM:1,COLOR_BUFFER_BIT1_QCOM:2,COLOR_BUFFER_BIT2_QCOM:4,COLOR_BUFFER_BIT3_QCOM:8,COLOR_BUFFER_BIT4_QCOM:16,COLOR_BUFFER_BIT5_QCOM:32,COLOR_BUFFER_BIT6_QCOM:64,COLOR_BUFFER_BIT7_QCOM:128,COLOR_CLEAR_VALUE:3106,COLOR_EXT:6144,COLOR_WRITEMASK:3107,COMPARE_REF_TO_TEXTURE_EXT:34894,COMPILE_STATUS:35713,COMPRESSED_RGBA_ASTC_10x10_KHR:37819,COMPRESSED_RGBA_ASTC_10x5_KHR:37816,COMPRESSED_RGBA_ASTC_10x6_KHR:37817,COMPRESSED_RGBA_ASTC_10x8_KHR:37818,COMPRESSED_RGBA_ASTC_12x10_KHR:37820,COMPRESSED_RGBA_ASTC_12x12_KHR:37821,COMPRESSED_RGBA_ASTC_4x4_KHR:37808,COMPRESSED_RGBA_ASTC_5x4_KHR:37809,COMPRESSED_RGBA_ASTC_5x5_KHR:37810,COMPRESSED_RGBA_ASTC_6x5_KHR:37811,COMPRESSED_RGBA_ASTC_6x6_KHR:37812,COMPRESSED_RGBA_ASTC_8x5_KHR:37813,COMPRESSED_RGBA_ASTC_8x6_KHR:37814,COMPRESSED_RGBA_ASTC_8x8_KHR:37815,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGBA_PVRTC_2BPPV2_IMG:37175,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGBA_PVRTC_4BPPV2_IMG:37176,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_ANGLE:33778,COMPRESSED_RGBA_S3TC_DXT5_ANGLE:33779,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:37851,COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:37848,COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:37849,COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:37850,COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:37852,COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:37853,COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:37840,COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:37841,COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:37842,COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:37843,COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:37844,COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:37845,COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:37846,COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:37847,COMPRESSED_SRGB_ALPHA_S3TC_DXT1_NV:35917,COMPRESSED_SRGB_ALPHA_S3TC_DXT3_NV:35918,COMPRESSED_SRGB_ALPHA_S3TC_DXT5_NV:35919,COMPRESSED_SRGB_S3TC_DXT1_NV:35916,COMPRESSED_TEXTURE_FORMATS:34467,CONDITION_SATISFIED_APPLE:37148,CONSTANT_ALPHA:32771,CONSTANT_COLOR:32769,CONTEXT_FLAG_DEBUG_BIT:2,CONTEXT_ROBUST_ACCESS_EXT:37107,COUNTER_RANGE_AMD:35777,COUNTER_TYPE_AMD:35776,COVERAGE_ALL_FRAGMENTS_NV:36565,COVERAGE_ATTACHMENT_NV:36562,COVERAGE_AUTOMATIC_NV:36567,COVERAGE_BUFFERS_NV:36563,COVERAGE_BUFFER_BIT_NV:32768,COVERAGE_COMPONENT4_NV:36561,COVERAGE_COMPONENT_NV:36560,COVERAGE_EDGE_FRAGMENTS_NV:36566,COVERAGE_SAMPLES_NV:36564,CPU_OPTIMIZED_QCOM:36785,CULL_FACE:2884,CULL_FACE_MODE:2885,CURRENT_PROGRAM:35725,CURRENT_QUERY_EXT:34917,CURRENT_VERTEX_ATTRIB:34342,CW:2304,DEBUG_CALLBACK_FUNCTION:33348,DEBUG_CALLBACK_USER_PARAM:33349,DEBUG_GROUP_STACK_DEPTH:33389,DEBUG_LOGGED_MESSAGES:37189,DEBUG_NEXT_LOGGED_MESSAGE_LENGTH:33347,DEBUG_OUTPUT:37600,DEBUG_OUTPUT_SYNCHRONOUS:33346,DEBUG_SEVERITY_HIGH:37190,DEBUG_SEVERITY_LOW:37192,DEBUG_SEVERITY_MEDIUM:37191,DEBUG_SEVERITY_NOTIFICATION:33387,DEBUG_SOURCE_API:33350,DEBUG_SOURCE_APPLICATION:33354,DEBUG_SOURCE_OTHER:33355,DEBUG_SOURCE_SHADER_COMPILER:33352,DEBUG_SOURCE_THIRD_PARTY:33353,DEBUG_SOURCE_WINDOW_SYSTEM:33351,DEBUG_TYPE_DEPRECATED_BEHAVIOR:33357,DEBUG_TYPE_ERROR:33356,DEBUG_TYPE_MARKER:33384,DEBUG_TYPE_OTHER:33361,DEBUG_TYPE_PERFORMANCE:33360,DEBUG_TYPE_POP_GROUP:33386,DEBUG_TYPE_PORTABILITY:33359,DEBUG_TYPE_PUSH_GROUP:33385,DEBUG_TYPE_UNDEFINED_BEHAVIOR:33358,DECR:7683,DECR_WRAP:34056,DELETE_STATUS:35712,DEPTH24_STENCIL8_OES:35056,DEPTH_ATTACHMENT:36096,DEPTH_STENCIL_ATTACHMENT:33306,DEPTH_BITS:3414,DEPTH_BUFFER_BIT:256,DEPTH_BUFFER_BIT0_QCOM:256,DEPTH_BUFFER_BIT1_QCOM:512,DEPTH_BUFFER_BIT2_QCOM:1024,DEPTH_BUFFER_BIT3_QCOM:2048,DEPTH_BUFFER_BIT4_QCOM:4096,DEPTH_BUFFER_BIT5_QCOM:8192,DEPTH_BUFFER_BIT6_QCOM:16384,DEPTH_BUFFER_BIT7_QCOM:32768,DEPTH_CLEAR_VALUE:2931,DEPTH_COMPONENT:6402,DEPTH_COMPONENT16:33189,DEPTH_COMPONENT16_NONLINEAR_NV:36396,DEPTH_COMPONENT16_OES:33189,DEPTH_COMPONENT24_OES:33190,DEPTH_COMPONENT32_OES:33191,DEPTH_EXT:6145,DEPTH_FUNC:2932,DEPTH_RANGE:2928,DEPTH_STENCIL:34041,DEPTH_STENCIL_OES:34041,DEPTH_TEST:2929,DEPTH_WRITEMASK:2930,DITHER:3024,DMP_shader_binary:1,DONT_CARE:4352,DRAW_BUFFER0_NV:34853,DRAW_BUFFER10_NV:34863,DRAW_BUFFER11_NV:34864,DRAW_BUFFER12_NV:34865,DRAW_BUFFER13_NV:34866,DRAW_BUFFER14_NV:34867,DRAW_BUFFER15_NV:34868,DRAW_BUFFER1_NV:34854,DRAW_BUFFER2_NV:34855,DRAW_BUFFER3_NV:34856,DRAW_BUFFER4_NV:34857,DRAW_BUFFER5_NV:34858,DRAW_BUFFER6_NV:34859,DRAW_BUFFER7_NV:34860,DRAW_BUFFER8_NV:34861,DRAW_BUFFER9_NV:34862,DRAW_BUFFER_EXT:3073,DRAW_FRAMEBUFFER_ANGLE:36009,DRAW_FRAMEBUFFER_APPLE:36009,DRAW_FRAMEBUFFER_BINDING_ANGLE:36006,DRAW_FRAMEBUFFER_BINDING_APPLE:36006,DRAW_FRAMEBUFFER_BINDING_NV:36006,DRAW_FRAMEBUFFER_NV:36009,DST_ALPHA:772,DST_COLOR:774,DYNAMIC_DRAW:35048,ELEMENT_ARRAY_BUFFER:34963,ELEMENT_ARRAY_BUFFER_BINDING:34965,EQUAL:514,ES_VERSION_2_0:1,ETC1_RGB8_OES:36196,ETC1_SRGB8_NV:35054,EXTENSIONS:7939,EXT_blend_minmax:1,EXT_color_buffer_half_float:1,EXT_debug_label:1,EXT_debug_marker:1,EXT_discard_framebuffer:1,EXT_map_buffer_range:1,EXT_multi_draw_arrays:1,EXT_multisampled_render_to_texture:1,EXT_multiview_draw_buffers:1,EXT_occlusion_query_boolean:1,EXT_read_format_bgra:1,EXT_robustness:1,EXT_sRGB:1,EXT_separate_shader_objects:1,EXT_shader_framebuffer_fetch:1,EXT_shader_texture_lod:1,EXT_shadow_samplers:1,EXT_texture_compression_dxt1:1,EXT_texture_filter_anisotropic:1,EXT_texture_format_BGRA8888:1,EXT_texture_rg:1,EXT_texture_storage:1,EXT_texture_type_2_10_10_10_REV:1,EXT_unpack_subimage:1,FALSE:0,FASTEST:4353,FENCE_CONDITION_NV:34036,FENCE_STATUS_NV:34035,FIXED:5132,FJ_shader_binary_GCCSO:1,FLOAT:5126,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,FRAGMENT_SHADER:35632,FRAGMENT_SHADER_BIT_EXT:2,FRAGMENT_SHADER_DERIVATIVE_HINT_OES:35723,FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT:35410,FRAMEBUFFER:36160,FRAMEBUFFER_ATTACHMENT_ANGLE:37795,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:33297,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES:36052,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT:36204,FRAMEBUFFER_BINDING:36006,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE:36182,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE:36182,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT:36182,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG:37172,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_NV:36182,FRAMEBUFFER_UNDEFINED_OES:33305,FRAMEBUFFER_UNSUPPORTED:36061,FRONT:1028,FRONT_AND_BACK:1032,FRONT_FACE:2886,FUNC_ADD:32774,FUNC_REVERSE_SUBTRACT:32779,FUNC_SUBTRACT:32778,GENERATE_MIPMAP_HINT:33170,GEQUAL:518,GPU_OPTIMIZED_QCOM:36786,GREATER:516,GREEN_BITS:3411,GUILTY_CONTEXT_RESET_EXT:33363,HALF_FLOAT_OES:36193,HIGH_FLOAT:36338,HIGH_INT:36341,IMG_multisampled_render_to_texture:1,IMG_program_binary:1,IMG_read_format:1,IMG_shader_binary:1,IMG_texture_compression_pvrtc:1,IMG_texture_compression_pvrtc2:1,IMPLEMENTATION_COLOR_READ_FORMAT:35739,IMPLEMENTATION_COLOR_READ_TYPE:35738,INCR:7682,INCR_WRAP:34055,INFO_LOG_LENGTH:35716,INNOCENT_CONTEXT_RESET_EXT:33364,INT:5124,INT_10_10_10_2_OES:36343,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,INVALID_ENUM:1280,INVALID_FRAMEBUFFER_OPERATION:1286,INVALID_OPERATION:1282,INVALID_VALUE:1281,INVERT:5386,KEEP:7680,KHR_debug:1,KHR_texture_compression_astc_ldr:1,LEFT:1030,LEQUAL:515,LESS:513,LINEAR:9729,LINEAR_MIPMAP_LINEAR:9987,LINEAR_MIPMAP_NEAREST:9985,LINES:1,LINE_LOOP:2,LINE_STRIP:3,LINE_WIDTH:2849,LINK_STATUS:35714,LOSE_CONTEXT_ON_RESET_EXT:33362,LOW_FLOAT:36336,LOW_INT:36339,LUMINANCE:6409,LUMINANCE16F_EXT:34846,LUMINANCE32F_EXT:34840,LUMINANCE4_ALPHA4_OES:32835,LUMINANCE8_ALPHA8_EXT:32837,LUMINANCE8_ALPHA8_OES:32837,LUMINANCE8_EXT:32832,LUMINANCE8_OES:32832,LUMINANCE_ALPHA:6410,LUMINANCE_ALPHA16F_EXT:34847,LUMINANCE_ALPHA32F_EXT:34841,MALI_PROGRAM_BINARY_ARM:36705,MALI_SHADER_BINARY_ARM:36704,MAP_FLUSH_EXPLICIT_BIT_EXT:16,MAP_INVALIDATE_BUFFER_BIT_EXT:8,MAP_INVALIDATE_RANGE_BIT_EXT:4,MAP_READ_BIT_EXT:1,MAP_UNSYNCHRONIZED_BIT_EXT:32,MAP_WRITE_BIT_EXT:2,MAX_3D_TEXTURE_SIZE_OES:32883,MAX_COLOR_ATTACHMENTS_NV:36063,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_CUBE_MAP_TEXTURE_SIZE:34076,MAX_DEBUG_GROUP_STACK_DEPTH:33388,MAX_DEBUG_LOGGED_MESSAGES:37188,MAX_DEBUG_MESSAGE_LENGTH:37187,MAX_DRAW_BUFFERS_NV:34852,MAX_EXT:32776,MAX_FRAGMENT_UNIFORM_VECTORS:36349,MAX_LABEL_LENGTH:33512,MAX_MULTIVIEW_BUFFERS_EXT:37106,MAX_RENDERBUFFER_SIZE:34024,MAX_SAMPLES_ANGLE:36183,MAX_SAMPLES_APPLE:36183,MAX_SAMPLES_EXT:36183,MAX_SAMPLES_IMG:37173,MAX_SAMPLES_NV:36183,MAX_SERVER_WAIT_TIMEOUT_APPLE:37137,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047,MAX_TEXTURE_SIZE:3379,MAX_VARYING_VECTORS:36348,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VIEWPORT_DIMS:3386,MEDIUM_FLOAT:36337,MEDIUM_INT:36340,MIN_EXT:32775,MIRRORED_REPEAT:33648,MULTISAMPLE_BUFFER_BIT0_QCOM:16777216,MULTISAMPLE_BUFFER_BIT1_QCOM:33554432,MULTISAMPLE_BUFFER_BIT2_QCOM:67108864,MULTISAMPLE_BUFFER_BIT3_QCOM:134217728,MULTISAMPLE_BUFFER_BIT4_QCOM:268435456,MULTISAMPLE_BUFFER_BIT5_QCOM:536870912,MULTISAMPLE_BUFFER_BIT6_QCOM:1073741824,MULTISAMPLE_BUFFER_BIT7_QCOM:2147483648,MULTIVIEW_EXT:37105,NEAREST:9728,NEAREST_MIPMAP_LINEAR:9986,NEAREST_MIPMAP_NEAREST:9984,NEVER:512,NICEST:4354,NONE:0,NOTEQUAL:517,NO_ERROR:0,NO_RESET_NOTIFICATION_EXT:33377,NUM_COMPRESSED_TEXTURE_FORMATS:34466,NUM_PROGRAM_BINARY_FORMATS_OES:34814,NUM_SHADER_BINARY_FORMATS:36345,NV_coverage_sample:1,NV_depth_nonlinear:1,NV_draw_buffers:1,NV_draw_instanced:1,NV_fbo_color_attachments:1,NV_fence:1,NV_framebuffer_blit:1,NV_framebuffer_multisample:1,NV_generate_mipmap_sRGB:1,NV_instanced_arrays:1,NV_read_buffer:1,NV_read_buffer_front:1,NV_read_depth:1,NV_read_depth_stencil:1,NV_read_stencil:1,NV_sRGB_formats:1,NV_shadow_samplers_array:1,NV_shadow_samplers_cube:1,NV_texture_border_clamp:1,NV_texture_compression_s3tc_update:1,NV_texture_npot_2D_mipmap:1,OBJECT_TYPE_APPLE:37138,OES_EGL_image:1,OES_EGL_image_external:1,OES_compressed_ETC1_RGB8_texture:1,OES_compressed_paletted_texture:1,OES_depth24:1,OES_depth32:1,OES_depth_texture:1,OES_element_index_uint:1,OES_fbo_render_mipmap:1,OES_fragment_precision_high:1,OES_get_program_binary:1,OES_mapbuffer:1,OES_packed_depth_stencil:1,OES_required_internalformat:1,OES_rgb8_rgba8:1,OES_standard_derivatives:1,OES_stencil1:1,OES_stencil4:1,OES_surfaceless_context:1,OES_texture_3D:1,OES_texture_float:1,OES_texture_float_linear:1,OES_texture_half_float:1,OES_texture_half_float_linear:1,OES_texture_npot:1,OES_vertex_array_object:1,OES_vertex_half_float:1,OES_vertex_type_10_10_10_2:1,ONE:1,ONE_MINUS_CONSTANT_ALPHA:32772,ONE_MINUS_CONSTANT_COLOR:32770,ONE_MINUS_DST_ALPHA:773,ONE_MINUS_DST_COLOR:775,ONE_MINUS_SRC_ALPHA:771,ONE_MINUS_SRC_COLOR:769,OUT_OF_MEMORY:1285,PACK_ALIGNMENT:3333,PACK_REVERSE_ROW_ORDER_ANGLE:37796,PALETTE4_R5_G6_B5_OES:35730,PALETTE4_RGB5_A1_OES:35732,PALETTE4_RGB8_OES:35728,PALETTE4_RGBA4_OES:35731,PALETTE4_RGBA8_OES:35729,PALETTE8_R5_G6_B5_OES:35735,PALETTE8_RGB5_A1_OES:35737,PALETTE8_RGB8_OES:35733,PALETTE8_RGBA4_OES:35736,PALETTE8_RGBA8_OES:35734,PERCENTAGE_AMD:35779,PERFMON_GLOBAL_MODE_QCOM:36768,PERFMON_RESULT_AMD:35782,PERFMON_RESULT_AVAILABLE_AMD:35780,PERFMON_RESULT_SIZE_AMD:35781,POINTS:0,POLYGON_OFFSET_FACTOR:32824,POLYGON_OFFSET_FILL:32823,POLYGON_OFFSET_UNITS:10752,PROGRAM:33506,PROGRAM_BINARY_ANGLE:37798,PROGRAM_BINARY_FORMATS_OES:34815,PROGRAM_BINARY_LENGTH_OES:34625,PROGRAM_OBJECT_EXT:35648,PROGRAM_PIPELINE_BINDING_EXT:33370,PROGRAM_PIPELINE_OBJECT_EXT:35407,PROGRAM_SEPARABLE_EXT:33368,QCOM_alpha_test:1,QCOM_binning_control:1,QCOM_driver_control:1,QCOM_extended_get:1,QCOM_extended_get2:1,QCOM_perfmon_global_mode:1,QCOM_tiled_rendering:1,QCOM_writeonly_rendering:1,QUERY:33507,QUERY_OBJECT_EXT:37203,QUERY_RESULT_AVAILABLE_EXT:34919,QUERY_RESULT_EXT:34918,R16F_EXT:33325,R32F_EXT:33326,R8_EXT:33321,READ_BUFFER_EXT:3074,READ_BUFFER_NV:3074,READ_FRAMEBUFFER_ANGLE:36008,READ_FRAMEBUFFER_APPLE:36008,READ_FRAMEBUFFER_BINDING_ANGLE:36010,READ_FRAMEBUFFER_BINDING_APPLE:36010,READ_FRAMEBUFFER_BINDING_NV:36010,READ_FRAMEBUFFER_NV:36008,RED_BITS:3410,RED_EXT:6403,RENDERBUFFER:36161,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_BINDING:36007,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_SAMPLES_ANGLE:36011,RENDERBUFFER_SAMPLES_APPLE:36011,RENDERBUFFER_SAMPLES_EXT:36011,RENDERBUFFER_SAMPLES_IMG:37171,RENDERBUFFER_SAMPLES_NV:36011,RENDERBUFFER_STENCIL_SIZE:36181,RENDERBUFFER_WIDTH:36162,RENDERER:7937,RENDER_DIRECT_TO_FRAMEBUFFER_QCOM:36787,REPEAT:10497,REPLACE:7681,REQUIRED_TEXTURE_IMAGE_UNITS_OES:36200,RESET_NOTIFICATION_STRATEGY_EXT:33366,RG16F_EXT:33327,RG32F_EXT:33328,RG8_EXT:33323,RGB:6407,RGB10_A2_EXT:32857,RGB10_EXT:32850,RGB16F_EXT:34843,RGB32F_EXT:34837,RGB565:36194,RGB565_OES:36194,RGB5_A1:32855,RGB5_A1_OES:32855,RGB8_OES:32849,RGBA:6408,RGBA16F_EXT:34842,RGBA32F_EXT:34836,RGBA4:32854,RGBA4_OES:32854,RGBA8_OES:32856,RGB_422_APPLE:35359,RG_EXT:33319,RIGHT:1031,SAMPLER:33510,SAMPLER_2D:35678,SAMPLER_2D_ARRAY_SHADOW_NV:36292,SAMPLER_2D_SHADOW_EXT:35682,SAMPLER_3D_OES:35679,SAMPLER_CUBE:35680,SAMPLER_CUBE_SHADOW_NV:36293,SAMPLER_EXTERNAL_OES:36198,SAMPLES:32937,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_BUFFERS:32936,SAMPLE_COVERAGE:32928,SAMPLE_COVERAGE_INVERT:32939,SAMPLE_COVERAGE_VALUE:32938,SCISSOR_BOX:3088,SCISSOR_TEST:3089,SGX_BINARY_IMG:35850,SGX_PROGRAM_BINARY_IMG:37168,SHADER:33505,SHADER_BINARY_DMP:37456,SHADER_BINARY_FORMATS:36344,SHADER_BINARY_VIV:36804,SHADER_COMPILER:36346,SHADER_OBJECT_EXT:35656,SHADER_SOURCE_LENGTH:35720,SHADER_TYPE:35663,SHADING_LANGUAGE_VERSION:35724,SHORT:5122,SIGNALED_APPLE:37145,SLUMINANCE8_ALPHA8_NV:35909,SLUMINANCE8_NV:35911,SLUMINANCE_ALPHA_NV:35908,SLUMINANCE_NV:35910,SRC_ALPHA:770,SRC_ALPHA_SATURATE:776,SRC_COLOR:768,SRGB8_ALPHA8_EXT:35907,SRGB8_NV:35905,SRGB_ALPHA_EXT:35906,SRGB_EXT:35904,STACK_OVERFLOW:1283,STACK_UNDERFLOW:1284,STATE_RESTORE:35804,STATIC_DRAW:35044,STENCIL_ATTACHMENT:36128,STENCIL_BACK_FAIL:34817,STENCIL_BACK_FUNC:34816,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,STENCIL_BITS:3415,STENCIL_BUFFER_BIT:1024,STENCIL_BUFFER_BIT0_QCOM:65536,STENCIL_BUFFER_BIT1_QCOM:131072,STENCIL_BUFFER_BIT2_QCOM:262144,STENCIL_BUFFER_BIT3_QCOM:524288,STENCIL_BUFFER_BIT4_QCOM:1048576,STENCIL_BUFFER_BIT5_QCOM:2097152,STENCIL_BUFFER_BIT6_QCOM:4194304,STENCIL_BUFFER_BIT7_QCOM:8388608,STENCIL_CLEAR_VALUE:2961,STENCIL_EXT:6146,STENCIL_FAIL:2964,STENCIL_FUNC:2962,STENCIL_INDEX1_OES:36166,STENCIL_INDEX4_OES:36167,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_TEST:2960,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STREAM_DRAW:35040,SUBPIXEL_BITS:3408,SYNC_CONDITION_APPLE:37139,SYNC_FENCE_APPLE:37142,SYNC_FLAGS_APPLE:37141,SYNC_FLUSH_COMMANDS_BIT_APPLE:1,SYNC_GPU_COMMANDS_COMPLETE_APPLE:37143,SYNC_OBJECT_APPLE:35411,SYNC_STATUS_APPLE:37140,TEXTURE:5890,TEXTURE0:33984,TEXTURE1:33985,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE2:33986,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE3:33987,TEXTURE30:34014,TEXTURE31:34015,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE_2D:3553,TEXTURE_3D_OES:32879,TEXTURE_BINDING_2D:32873,TEXTURE_BINDING_3D_OES:32874,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_BINDING_EXTERNAL_OES:36199,TEXTURE_BORDER_COLOR_NV:4100,TEXTURE_COMPARE_FUNC_EXT:34893,TEXTURE_COMPARE_MODE_EXT:34892,TEXTURE_CUBE_MAP:34067,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_DEPTH_QCOM:35796,TEXTURE_EXTERNAL_OES:36197,TEXTURE_FORMAT_QCOM:35798,TEXTURE_HEIGHT_QCOM:35795,TEXTURE_IMAGE_VALID_QCOM:35800,TEXTURE_IMMUTABLE_FORMAT_EXT:37167,TEXTURE_INTERNAL_FORMAT_QCOM:35797,TEXTURE_MAG_FILTER:10240,TEXTURE_MAX_ANISOTROPY_EXT:34046,TEXTURE_MAX_LEVEL_APPLE:33085,TEXTURE_MIN_FILTER:10241,TEXTURE_NUM_LEVELS_QCOM:35801,TEXTURE_OBJECT_VALID_QCOM:35803,TEXTURE_SAMPLES_IMG:37174,TEXTURE_TARGET_QCOM:35802,TEXTURE_TYPE_QCOM:35799,TEXTURE_USAGE_ANGLE:37794,TEXTURE_WIDTH_QCOM:35794,TEXTURE_WRAP_R_OES:32882,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TIMEOUT_EXPIRED_APPLE:37147,TIMEOUT_IGNORED_APPLE:0x10000000000000000,TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE:37792,TRIANGLES:4,TRIANGLE_FAN:6,TRIANGLE_STRIP:5,TRUE:1,UNKNOWN_CONTEXT_RESET_EXT:33365,UNPACK_ALIGNMENT:3317,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_PIXELS:3316,UNPACK_SKIP_ROWS:3315,UNSIGNALED_APPLE:37144,UNSIGNED_BYTE:5121,UNSIGNED_INT:5125,UNSIGNED_INT64_AMD:35778,UNSIGNED_INT_10_10_10_2_OES:36342,UNSIGNED_INT_24_8_OES:34042,UNSIGNED_INT_2_10_10_10_REV_EXT:33640,UNSIGNED_NORMALIZED_EXT:35863,UNSIGNED_SHORT:5123,UNSIGNED_SHORT_1_5_5_5_REV_EXT:33638,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_4_4_4_4_REV_EXT:33637,UNSIGNED_SHORT_4_4_4_4_REV_IMG:33637,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,UNSIGNED_SHORT_8_8_APPLE:34234,UNSIGNED_SHORT_8_8_REV_APPLE:34235,VALIDATE_STATUS:35715,VENDOR:7936,VERSION:7938,VERTEX_ARRAY_BINDING_OES:34229,VERTEX_ARRAY_OBJECT_EXT:37204,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE:35070,VERTEX_ATTRIB_ARRAY_DIVISOR_NV:35070,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_SHADER:35633,VERTEX_SHADER_BIT_EXT:1,VIEWPORT:2978,VIV_shader_binary:1,WAIT_FAILED_APPLE:37149,WRITEONLY_RENDERING_QCOM:34851,WRITE_ONLY_OES:35001,Z400_BINARY_AMD:34624,ZERO:0,RASTERIZER_DISCARD:35977,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,CONTEXT_LOST_WEBGL:37442,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,BROWSER_DEFAULT_WEBGL:37444}},function(t,e,n){"use strict";n.r(e),n.d(e,"WebGL2RenderingContext",(function(){return r}));var r={}},function(t,e,n){var r=n(28),i=n(849),o=n(2056),a=n(436);function s(e){var n="function"==typeof Map?new Map:void 0;return t.exports=s=function(t){if(null===t||!o(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return a(t,arguments,r(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),i(e,t)},t.exports.__esModule=!0,t.exports.default=t.exports,s(e)}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";t.exports=i,t.exports.default=i;var r=1e20;function i(t,e,n,r,i,o){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=r||.25,this.fontFamily=i||"sans-serif",this.fontWeight=o||"normal",this.radius=n||8;var a=this.size=this.fontSize+2*this.buffer,s=a+2*this.buffer,u="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM;u?this.canvas=my.createOffscreenCanvas(a,a,"2d"):(this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=a),this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textAlign="left",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(s*s),this.gridInner=new Float64Array(s*s),this.f=new Float64Array(s),this.z=new Float64Array(s+1),this.v=new Uint16Array(s),this.useMetrics=void 0!==this.ctx.measureText("A").actualBoundingBoxLeft,this.middle=u?Math.round(a/2*1):Math.round(a/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function o(t,e,n,r,i,o){for(var s=0;s<e;s++)a(t,s,e,n,r,i,o);for(var u=0;u<n;u++)a(t,u*e,1,e,r,i,o)}function a(t,e,n,i,o,a,s){var u,l,c,h;for(a[0]=0,s[0]=-r,s[1]=r,u=0;u<i;u++)o[u]=t[e+u*n];for(u=1,l=0,c=0;u<i;u++){do{h=a[l],c=(o[u]-o[h]+u*u-h*h)/(u-h)/2}while(c<=s[l]&&--l>-1);a[++l]=u,s[l]=c,s[l+1]=r}for(u=0,l=0;u<i;u++){for(;s[l+1]<u;)l++;h=a[l],t[e+u*n]=o[h]+(u-h)*(u-h)}}i.prototype._draw=function(t,e){var n,i,a,s,u,l,c,h,f,d=this.ctx.measureText(t),p=d.width,g=2*this.buffer;e&&this.useMetrics?(u=Math.floor(d.actualBoundingBoxAscent),h=this.buffer+Math.ceil(d.actualBoundingBoxAscent),l=this.buffer,c=this.buffer,n=(i=Math.min(this.size,Math.ceil(d.actualBoundingBoxRight-d.actualBoundingBoxLeft)))+g,a=(s=Math.min(this.size-l,Math.ceil(d.actualBoundingBoxAscent+d.actualBoundingBoxDescent)))+g,this.ctx.textBaseline="alphabetic"):(n=i=this.size,a=s=this.size,u=19*this.fontSize/24,l=c=0,h=this.middle,this.ctx.textBaseline="middle"),i&&s&&(this.ctx.clearRect(c,l,i,s),this.ctx.fillText(t,this.buffer,h),f=this.ctx.getImageData(c,l,i,s));var v=new Uint8ClampedArray(n*a);return function(t,e,n,i,o,a,s){a.fill(r,0,e*n),s.fill(0,0,e*n);for(var u=(e-i)/2,l=0;l<o;l++)for(var c=0;c<i;c++){var h=(l+u)*e+c+u,f=t.data[4*(l*i+c)+3]/255;if(1===f)a[h]=0,s[h]=r;else if(0===f)a[h]=r,s[h]=0;else{var d=Math.max(0,.5-f),p=Math.max(0,f-.5);a[h]=d*d,s[h]=p*p}}}(f,n,a,i,s,this.gridOuter,this.gridInner),o(this.gridOuter,n,a,this.f,this.v,this.z),o(this.gridInner,n,a,this.f,this.v,this.z),function(t,e,n,r,i,o,a){for(var s=0;s<e*n;s++){var u=Math.sqrt(r[s])-Math.sqrt(i[s]);t[s]=Math.round(255-255*(u/o+a))}}(v,n,a,this.gridOuter,this.gridInner,this.radius,this.cutoff),{data:v,metrics:{width:i,height:s,sdfWidth:n,sdfHeight:a,top:u,left:0,advance:p}}},i.prototype.draw=function(t){return this._draw(t,!1).data},i.prototype.drawWithMetrics=function(t){return this._draw(t,!0)}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return O}));var r,i=n(16),o=n.n(i),a=n(17),s=n.n(a),u=n(14),l=n.n(u),c=n(50),h=n.n(c),f=n(51),d=n.n(f),p=n(28),g=n.n(p),v=n(4),m=n.n(v),y=n(37),b=n(209),_=n(21),x=(n(94),n(781));function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}var O=Object(_.injectable)()(r=function(t){h()(n,t);var e=w(n);function n(){var t;o()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),m()(l()(t),"canvasHeight",128),m()(l()(t),"texture",void 0),m()(l()(t),"canvas",void 0),m()(l()(t),"iconData",void 0),m()(l()(t),"iconMap",void 0),m()(l()(t),"ctx",void 0),m()(l()(t),"loadingImageCount",0),t}return s()(n,[{key:"isLoading",value:function(){return 0===this.loadingImageCount}},{key:"init",value:function(){this.iconData=[],this.iconMap={},this.canvas=y.$window.document.createElement("canvas"),this.canvas.width=128,this.canvas.height=128,this.ctx=this.canvas.getContext("2d")}},{key:"addImage",value:function(t,e){var n=this,r=new Image;if(this.loadingImageCount++,this.hasImage(t))throw new Error("Image Id already exists");this.iconData.push({id:t,size:64}),this.updateIconMap(),this.loadImage(e).then((function(e){r=e;var i=n.iconData.find((function(e){return e.id===t}));i&&(i.image=r,i.width=r.width,i.height=r.height),n.update()}))}},{key:"addImageMini",value:function(t,e,n){var r=this,i=n.getSceneConfig().canvas,o=i.createImage();if(this.loadingImageCount++,this.hasImage(t))throw new Error("Image Id already exists");this.iconData.push({id:t,size:64}),this.updateIconMap(),this.loadImageMini(e,i).then((function(e){o=e;var n=r.iconData.find((function(e){return e.id===t}));n&&(n.image=o,n.width=o.width,n.height=o.height),r.update()}))}},{key:"getTexture",value:function(){return this.texture}},{key:"getIconMap",value:function(){return this.iconMap}},{key:"getCanvas",value:function(){return this.canvas}},{key:"hasImage",value:function(t){return this.iconMap.hasOwnProperty(t)}},{key:"removeImage",value:function(t){this.hasImage(t)&&(this.iconData=this.iconData.filter((function(e){return e.id!==t})),delete this.iconMap[t],this.update())}},{key:"destroy",value:function(){this.removeAllListeners("imageUpdate"),this.iconData=[],this.iconMap={}}},{key:"loadImage",value:function(t){return new Promise((function(e,n){if(t instanceof HTMLImageElement)e(t);else{var r=new Image;r.crossOrigin="anonymous",r.onload=function(){e(r)},r.onerror=function(){n(new Error("Could not load image at "+t))},r.src=t instanceof File?URL.createObjectURL(t):t}}))}},{key:"update",value:function(){this.updateIconMap(),this.updateIconAtlas(),this.loadingImageCount--,0===this.loadingImageCount&&this.emit("imageUpdate")}},{key:"updateIconAtlas",value:function(){var t=this;this.canvas.width=1024,this.canvas.height=this.canvasHeight,Object.keys(this.iconMap).forEach((function(e){var n=t.iconMap[e],r=n.x,i=n.y,o=n.image,a=n.width,s=void 0===a?64:a,u=n.height,l=void 0===u?64:u,c=Math.max(s,l)/64,h=l/c,f=s/c;o&&t.ctx.drawImage(o,r+(64-f)/2,i+(64-h)/2,f,h)}))}},{key:"updateIconMap",value:function(){var t=Object(x.buildIconMaping)(this.iconData,3,1024),e=t.mapping,n=t.canvasHeight;this.iconMap=e,this.canvasHeight=n}},{key:"loadImageMini",value:function(t,e){return new Promise((function(n,r){var i=e.createImage();i.crossOrigin="anonymous",i.onload=function(){n(i)},i.onerror=function(){r(new Error("Could not load image at "+t))},i.src=t}))}}]),n}(b.EventEmitter))||r},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return p}));var r,i=n(121),o=n.n(i),a=n(16),s=n.n(a),u=n(17),l=n.n(u),c=n(4),h=n.n(c),f=n(10),d=n(21),p=(n(94),Object(d.injectable)()(r=function(){function t(){s()(this,t),h()(this,"viewport",void 0),h()(this,"overridedViewProjectionMatrix",void 0),h()(this,"jitteredViewProjectionMatrix",void 0),h()(this,"jitteredProjectionMatrix",void 0),h()(this,"viewMatrixInverse",void 0),h()(this,"cameraPosition",void 0)}return l()(t,[{key:"init",value:function(){}},{key:"update",value:function(t){this.viewport=t,this.viewMatrixInverse=f.mat4.create(),f.mat4.invert(this.viewMatrixInverse,t.getViewMatrix()),this.cameraPosition=[this.viewMatrixInverse[12],this.viewMatrixInverse[13],this.viewMatrixInverse[14]]}},{key:"getProjectionMatrix",value:function(){return this.jitteredProjectionMatrix||this.viewport.getProjectionMatrix()}},{key:"getModelMatrix",value:function(){return this.viewport.getModelMatrix()}},{key:"getViewMatrix",value:function(){return this.viewport.getViewMatrix()}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.getViewMatrixUncentered()}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.getViewProjectionMatrixUncentered()}},{key:"getViewProjectionMatrix",value:function(){return this.overridedViewProjectionMatrix||this.jitteredViewProjectionMatrix||this.viewport.getViewProjectionMatrix()}},{key:"getZoom",value:function(){return this.viewport.getZoom()}},{key:"getZoomScale",value:function(){return this.viewport.getZoomScale()}},{key:"getCenter",value:function(){var t=this.viewport.getCenter(),e=o()(t,2);return[e[0],e[1]]}},{key:"getFocalDistance",value:function(){return this.viewport.getFocalDistance()}},{key:"getCameraPosition",value:function(){return this.cameraPosition}},{key:"projectFlat",value:function(t,e){return this.viewport.projectFlat(t,e)}},{key:"setViewProjectionMatrix",value:function(t){this.overridedViewProjectionMatrix=t}},{key:"jitterProjectionMatrix",value:function(t,e){var n=f.mat4.fromTranslation(f.mat4.create(),[t,e,0]);this.jitteredProjectionMatrix=f.mat4.multiply(f.mat4.create(),n,this.viewport.getProjectionMatrix()),this.jitteredViewProjectionMatrix=f.mat4.multiply(f.mat4.create(),this.jitteredProjectionMatrix,this.viewport.getViewMatrix())}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0,this.jitteredViewProjectionMatrix=void 0}}]),t}())||r)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return g}));var r,i=n(16),o=n.n(i),a=n(17),s=n.n(a),u=n(4),l=n.n(u),c=n(37),h=n(21),f=(n(94),n(29));function d(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var g=Object(h.injectable)()(r=function(){function t(){o()(this,t),l()(this,"container",void 0),l()(this,"controlCorners",void 0),l()(this,"controlContainer",void 0),l()(this,"scene",void 0),l()(this,"mapsService",void 0),l()(this,"controls",[]),l()(this,"unAddControls",[])}return s()(t,[{key:"init",value:function(t,e){this.container=t.container,this.scene=e,this.mapsService=e.get(f.TYPES.IMapService),this.initControlPos()}},{key:"addControl",value:function(t,e){e.get(f.TYPES.IMapService).map?(t.addTo(this.scene),this.controls.push(t)):this.unAddControls.push(t)}},{key:"getControlByName",value:function(t){return this.controls.find((function(e){return e.controlOption.name===t}))}},{key:"removeControl",value:function(t){var e=this.controls.indexOf(t);return e>-1&&this.controls.splice(e,1),t.remove(),this}},{key:"addControls",value:function(){var t=this;this.unAddControls.forEach((function(e){e.addTo(t.scene),t.controls.push(e)})),this.unAddControls=[]}},{key:"destroy",value:function(){var t,e=d(this.controls);try{for(e.s();!(t=e.n()).done;){t.value.remove()}}catch(t){e.e(t)}finally{e.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var t=this.controlCorners={},e="l7-",n=this.controlContainer=c.DOM.create("div","l7-control-container",this.container);function r(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=r.map((function(t){return e+t})).join(" ");t[r.join("")]=c.DOM.create("div",i,n)}r(["top","left"]),r(["top","right"]),r(["bottom","left"]),r(["bottom","right"]),r(["top","center"]),r(["right","center"]),r(["left","center"]),r(["bottom","center"])}},{key:"clearControlPos",value:function(){for(var t in this.controlCorners)this.controlCorners[t]&&c.DOM.remove(this.controlCorners[t]);this.controlContainer&&c.DOM.remove(this.controlContainer),delete this.controlCorners,delete this.controlContainer}}]),t}())||r},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r,i=n(16),o=n.n(i),a=n(17),s=n.n(a),u=n(4),l=n.n(u),c=n(21),h=(n(94),n(29)),f=Object(c.injectable)()(r=function(){function t(){o()(this,t),l()(this,"container",void 0),l()(this,"scene",void 0),l()(this,"mapsService",void 0),l()(this,"markers",[]),l()(this,"markerLayers",[]),l()(this,"unAddMarkers",[]),l()(this,"unAddMarkerLayers",[])}return s()(t,[{key:"addMarkerLayer",value:function(t){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markerLayers.push(t),t.addTo(this.scene)):this.unAddMarkerLayers.push(t)}},{key:"removeMarkerLayer",value:function(t){t.destroy(),this.markerLayers.indexOf(t);var e=this.markerLayers.indexOf(t);e>-1&&this.markerLayers.splice(e,1)}},{key:"addMarker",value:function(t){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(t),t.addTo(this.scene)):this.unAddMarkers.push(t)}},{key:"addMarkers",value:function(){var t=this;this.unAddMarkers.forEach((function(e){e.addTo(t.scene),t.markers.push(e)})),this.unAddMarkers=[]}},{key:"addMarkerLayers",value:function(){var t=this;this.unAddMarkerLayers.forEach((function(e){t.markerLayers.push(e),e.addTo(t.scene)})),this.unAddMarkers=[]}},{key:"removeMarker",value:function(t){t.remove(),this.markers.indexOf(t);var e=this.markers.indexOf(t);e>-1&&this.markers.splice(e,1)}},{key:"removeAllMarkers",value:function(){this.destroy()}},{key:"init",value:function(t){this.scene=t,this.mapsService=t.get(h.TYPES.IMapService)}},{key:"destroy",value:function(){this.markers.forEach((function(t){t.remove()})),this.markers=[],this.markerLayers.forEach((function(t){t.destroy()})),this.markerLayers=[]}},{key:"removeMakerLayerMarker",value:function(t){t.destroy()}}]),t}())||r},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r,i=n(16),o=n.n(i),a=n(17),s=n.n(a),u=n(4),l=n.n(u),c=n(21),h=(n(94),n(29)),f=Object(c.injectable)()(r=function(){function t(){o()(this,t),l()(this,"scene",void 0),l()(this,"popup",void 0),l()(this,"mapsService",void 0),l()(this,"unAddPopup",void 0)}return s()(t,[{key:"removePopup",value:function(t){t.remove()}},{key:"destroy",value:function(){this.popup.remove()}},{key:"addPopup",value:function(t){this.popup&&this.popup.remove(),this.mapsService.map&&this.mapsService.getMarkerContainer()?(t.addTo(this.scene),this.popup=t):this.unAddPopup=t}},{key:"initPopup",value:function(){this.unAddPopup&&(this.addPopup(this.unAddPopup),this.unAddPopup=null)}},{key:"init",value:function(t){this.scene=t,this.mapsService=t.get(h.TYPES.IMapService)}}]),t}())||r},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return y}));var r,i=n(16),o=n.n(i),a=n(17),s=n.n(a),u=n(4),l=n.n(u),c=n(252),h=n.n(c),f=n(21),d=(n(94),n(1789));function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){l()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var v={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},m={colors:["rgb(103,0,31)","rgb(178,24,43)","rgb(214,96,77)","rgb(244,165,130)","rgb(253,219,199)","rgb(247,247,247)","rgb(209,229,240)","rgb(146,197,222)","rgb(67,147,195)","rgb(33,102,172)","rgb(5,48,97)"],size:10,shape:"circle",scales:{},shape2d:["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"],shape3d:["cylinder","triangleColumn","hexagonColumn","squareColumn"],minZoom:-1,maxZoom:24,visible:!0,autoFit:!1,pickingBuffer:0,enablePropagation:!1,zIndex:0,blend:"normal",pickedFeatureID:-1,enableMultiPassRenderer:!1,enablePicking:!0,active:!1,activeColor:"#2f54eb",enableHighlight:!1,enableSelect:!1,highlightColor:"#2f54eb",activeMix:0,selectColor:"blue",selectMix:0,enableTAA:!1,jitterScale:1,enableLighting:!1,animateOption:{enable:!1,interval:.2,duration:4,trailLength:.15},forward:!0},y=Object(f.injectable)()(r=function(){function t(){o()(this,t),l()(this,"sceneConfigCache",{}),l()(this,"layerConfigCache",{})}return s()(t,[{key:"getSceneConfig",value:function(t){return this.sceneConfigCache[t]}},{key:"getSceneWarninfo",value:function(t){return d.default[t]}},{key:"setSceneConfig",value:function(t,e){this.sceneConfigCache[t]=g(g({},v),e)}},{key:"getLayerConfig",value:function(t){return this.layerConfigCache[t]}},{key:"setLayerConfig",value:function(t,e,n){this.layerConfigCache[e]=g({},h()({},this.sceneConfigCache[t],m,n))}},{key:"clean",value:function(){this.sceneConfigCache={},this.layerConfigCache={}}}]),t}())||r},function(t,e,n){"use strict";n.r(e);e.default={MapToken:"您正在使用 Demo测试地图token如果生产环境中使用去对应地图请注册Token",SDK:"请确认引入了mapbox-gl api且在L7之前引入"}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return S}));var r,i,o,a,s,u=n(47),l=n.n(u),c=n(16),h=n.n(c),f=n(17),d=n.n(f),p=n(4),g=n.n(p),v=n(44),m=n.n(v),y=(n(196),n(10)),b=n(21),_=(n(94),n(29)),x=n(934),w=n(437),O=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0],S=(r=Object(b.injectable)(),i=Object(b.inject)(_.TYPES.ICameraService),r((a=function(){function t(){h()(this,t),g()(this,"needRefresh",!0),l()(this,"cameraService",s,this),g()(this,"coordinateSystem",void 0),g()(this,"viewportCenter",void 0),g()(this,"viewportCenterProjection",void 0),g()(this,"pixelsPerDegree",void 0),g()(this,"pixelsPerDegree2",void 0),g()(this,"pixelsPerMeter",void 0)}return d()(t,[{key:"refresh",value:function(){var t=this.cameraService.getZoom(),e=this.cameraService.getZoomScale(),n=this.cameraService.getCenter(),r=Object(x.getDistanceScales)({latitude:n[1],zoom:t}),i=r.pixelsPerMeter,o=r.pixelsPerDegree;this.viewportCenter=n,this.viewportCenterProjection=[0,0,0,0],this.pixelsPerMeter=i,this.pixelsPerDegree=o,this.pixelsPerDegree2=[0,0,0],this.coordinateSystem===w.CoordinateSystem.LNGLAT||this.coordinateSystem===w.CoordinateSystem.P20?this.cameraService.setViewProjectionMatrix(void 0):this.coordinateSystem===w.CoordinateSystem.LNGLAT_OFFSET?this.calculateLnglatOffset(n,t):this.coordinateSystem===w.CoordinateSystem.P20_OFFSET&&this.calculateLnglatOffset(n,t,e,!0),this.needRefresh=!1}},{key:"getCoordinateSystem",value:function(){return this.coordinateSystem}},{key:"setCoordinateSystem",value:function(t){this.coordinateSystem=t}},{key:"getViewportCenter",value:function(){return this.viewportCenter}},{key:"getViewportCenterProjection",value:function(){return this.viewportCenterProjection}},{key:"getPixelsPerDegree",value:function(){return this.pixelsPerDegree}},{key:"getPixelsPerDegree2",value:function(){return this.pixelsPerDegree2}},{key:"getPixelsPerMeter",value:function(){return this.pixelsPerMeter}},{key:"calculateLnglatOffset",value:function(t,e,n,r){var i=Object(x.getDistanceScales)({latitude:t[1],zoom:e,scale:n,flipY:r,highPrecision:!0}),o=i.pixelsPerMeter,a=i.pixelsPerDegree,s=i.pixelsPerDegree2,u=this.cameraService.getViewMatrix(),l=this.cameraService.getProjectionMatrix(),c=y.mat4.multiply([],l,u),h=this.cameraService.projectFlat([Math.fround(t[0]),Math.fround(t[1])],Math.pow(2,e));this.viewportCenterProjection=y.vec4.transformMat4([],[h[0],h[1],0,1],c),u=this.cameraService.getViewMatrixUncentered()||u,c=y.mat4.multiply([],l,u),c=y.mat4.multiply([],c,O),this.cameraService.setViewProjectionMatrix(c),this.pixelsPerMeter=o,this.pixelsPerDegree=a,this.pixelsPerDegree2=s}}]),t}(),s=m()(a.prototype,"cameraService",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=a))||o)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return D}));var r,i,o,a,s,u=n(47),l=n.n(u),c=n(16),h=n.n(c),f=n(17),d=n.n(f),p=n(14),g=n.n(p),v=n(50),m=n.n(v),y=n(51),b=n.n(y),_=n(28),x=n.n(_),w=n(4),O=n.n(w),S=n(44),C=n.n(S),E=(n(196),n(37)),T=n(209),A=n.n(T),M=n(21),I=n(536),j=n.n(I),k=(n(94),n(29)),P=n(156);function L(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=x()(t);if(e){var i=x()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return b()(this,n)}}var R={panstart:"dragstart",panmove:"dragging",panend:"dragend",pancancel:"dragcancel"},D=(r=Object(M.injectable)(),i=Object(M.inject)(k.TYPES.IMapService),r((a=function(t){m()(n,t);var e=L(n);function n(){var t;h()(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),O()(g()(t),"indragging",!1),l()(g()(t),"mapService",s,g()(t)),O()(g()(t),"hammertime",void 0),O()(g()(t),"lastClickTime",0),O()(g()(t),"lastClickXY",[-1,-1]),O()(g()(t),"clickTimer",void 0),O()(g()(t),"$containter",void 0),O()(g()(t),"onDrag",(function(e){var n=t.interactionEvent(e);n.type=R[n.type],"dragging"===n.type?t.indragging=!0:t.indragging=!1,t.emit(P.InteractionEvent.Drag,n)})),O()(g()(t),"onHammer",(function(e){e.srcEvent.stopPropagation();var n=t.interactionEvent(e);t.emit(P.InteractionEvent.Hover,n)})),O()(g()(t),"onTouch",(function(e){var n=e.touches[0];t.onHover({x:n.pageX,y:n.pageY,type:"touch"})})),O()(g()(t),"onHover",(function(e){var n=e.clientX,r=e.clientY,i=e.type,o=t.mapService.getMapContainer();if(o)if(E.isMini)n=n-o.left-0,r=r-o.top-0;else{var a=o.getBoundingClientRect(),s=a.top;n=n-a.left-o.clientLeft,r=r-s-o.clientTop}var u=t.mapService.containerToLngLat([n,r]);if("click"!==i)"touch"!==i?"click"!==i&&"dblclick"!==i&&t.emit(P.InteractionEvent.Hover,{x:n,y:r,lngLat:u,type:i,target:e}):t.isDoubleTap(n,r,u);else{if(!E.isMini&&"ontouchstart"in document.documentElement==!0)return;t.isDoubleTap(n,r,u)}})),t}return d()(n,[{key:"init",value:function(){this.addEventListenerOnMap(),this.$containter=this.mapService.getMapContainer()}},{key:"destroy",value:function(){this.hammertime&&this.hammertime.destroy(),this.removeEventListenerOnMap(),this.off(P.InteractionEvent.Hover)}},{key:"triggerHover",value:function(t){var e=t.x,n=t.y;this.emit(P.InteractionEvent.Hover,{x:e,y:n})}},{key:"triggerSelect",value:function(t){this.emit(P.InteractionEvent.Select,{featureId:t})}},{key:"triggerActive",value:function(t){this.emit(P.InteractionEvent.Active,{featureId:t})}},{key:"handleMiniEvent",value:function(t){this.onHover({clientX:t.touches[0].pageX,clientY:t.touches[0].pageY,type:"touch"})}},{key:"addEventListenerOnMap",value:function(){var t=this.mapService.getMapContainer();if(t)if(E.isMini)E.$window.document.addEventListener("touchstart",this.handleMiniEvent.bind(this));else{var e=new j.a.Manager(t);e.add(new j.a.Tap({event:"dblclick",taps:2})),e.add(new j.a.Tap({event:"click"})),e.add(new j.a.Pan({threshold:0,pointers:0})),e.add(new j.a.Press({})),e.on("dblclick click",this.onHammer),e.on("panstart panmove panend pancancel",this.onDrag),t.addEventListener("mousemove",this.onHover),t.addEventListener("mousedown",this.onHover,!0),t.addEventListener("mouseup",this.onHover),t.addEventListener("contextmenu",this.onHover),this.hammertime=e}}},{key:"removeEventListenerOnMap",value:function(){if(E.isMini)E.$window.document.removeEventListener("touchstart",this.handleMiniEvent.bind(this));else{var t=this.mapService.getMapContainer();t&&(t.removeEventListener("mousemove",this.onHover),this.hammertime.off("panstart panmove panend pancancel",this.onDrag),t.removeEventListener("mousedown",this.onHover),t.removeEventListener("mouseup",this.onHover),t.removeEventListener("contextmenu",this.onHover))}}},{key:"interactionEvent",value:function(t){var e,n,r=t.type;"touch"===t.pointerType?(n=Math.floor(t.pointers[0].clientY),e=Math.floor(t.pointers[0].clientX)):(n=Math.floor(t.srcEvent.y),e=Math.floor(t.srcEvent.x));var i=this.mapService.getMapContainer();if(i){var o=i.getBoundingClientRect(),a=o.top;e-=o.left,n-=a}return{x:e,y:n,lngLat:this.mapService.containerToLngLat([e,n]),type:r,target:t.srcEvent}}},{key:"isDoubleTap",value:function(t,e,n){var r=this,i=(new Date).getTime(),o="click";i-this.lastClickTime<400&&Math.abs(this.lastClickXY[0]-t)<10&&Math.abs(this.lastClickXY[1]-e)<10?(this.lastClickTime=0,this.lastClickXY=[-1,-1],this.clickTimer&&clearTimeout(this.clickTimer),o="dblclick",this.emit(P.InteractionEvent.Hover,{x:t,y:e,lngLat:n,type:o})):(this.lastClickTime=i,this.lastClickXY=[t,e],this.clickTimer=setTimeout((function(){o="click",r.emit(P.InteractionEvent.Hover,{x:t,y:e,lngLat:n,type:o})}),400))}}]),n}(A.a),s=C()(a.prototype,"mapService",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=a))||o)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return z}));var r,i,o,a,s,u,l,c,h,f,d,p,g,v=n(121),m=n.n(v),y=n(115),b=n.n(y),_=n(47),x=n.n(_),w=n(16),O=n.n(w),S=n(17),C=n.n(S),E=n(4),T=n.n(E),A=n(44),M=n.n(A),I=(n(196),n(49)),j=n.n(I),k=n(37),P=n(21),L=(n(94),n(29)),R=n(782),D=n(156),N=n(93);function B(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function F(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?B(Object(n),!0).forEach((function(e){T()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var z=(r=Object(P.injectable)(),i=Object(P.inject)(L.TYPES.IMapService),o=Object(P.inject)(L.TYPES.IRendererService),a=Object(P.inject)(L.TYPES.IGlobalConfigService),s=Object(P.inject)(L.TYPES.IInteractionService),u=Object(P.inject)(L.TYPES.ILayerService),r((c=function(){function t(){var e=this;O()(this,t),x()(this,"mapService",h,this),x()(this,"rendererService",f,this),x()(this,"configService",d,this),x()(this,"interactionService",p,this),x()(this,"layerService",g,this),T()(this,"pickingFBO",void 0),T()(this,"width",0),T()(this,"height",0),T()(this,"alreadyInPicking",!1),T()(this,"pickBufferScale",1),T()(this,"lastPickTime",(new Date).getTime()),T()(this,"pickFromPickingFBO",(function(t,n){var r,i=n.x,o=n.y,a=n.lngLat,s=n.type,u=n.target,l=!1,c=e.rendererService,h=(c.getViewportSize,c.readPixels),f=c.getContainer,d=e.getContainerSize(f()),p=d.width,g=d.height;p*=k.DOM.DPR,g*=k.DOM.DPR;var v,m=t.getLayerConfig(),y=m.enableHighlight,b=m.enableSelect,_=i*k.DOM.DPR,x=o*k.DOM.DPR;if(_>p-1*k.DOM.DPR||_<0||x>g-1*k.DOM.DPR||x<0)return!1;if(0!==(v=h({x:Math.floor(_/e.pickBufferScale),y:Math.floor((g-(o+1)*k.DOM.DPR)/e.pickBufferScale),width:1,height:1,data:new Uint8Array(4),framebuffer:e.pickingFBO}))[0]||0!==v[1]||0!==v[2]){var w=Object(k.decodePickingColor)(v),O=t.getSource().getFeatureById(w);w!==t.getCurrentPickId()&&"mousemove"===s&&(s="mouseenter");var S={x:i,y:o,type:s,lngLat:a,featureId:w,feature:O,target:u};O&&(l=!0,t.setCurrentPickId(w),e.triggerHoverOnLayer(t,S))}else{var C={x:i,y:o,lngLat:a,type:null!==t.getCurrentPickId()&&"mousemove"===s?"mouseout":"un"+s,featureId:null,target:u,feature:null};e.triggerHoverOnLayer(t,F(F({},C),{},{type:"unpick"})),e.triggerHoverOnLayer(t,C),t.setCurrentPickId(null)}if(y&&e.highlightPickedFeature(t,v),b&&"click"===s&&(null===(r=v)||void 0===r?void 0:r.toString())!==[0,0,0,0].toString()){var E=Object(k.decodePickingColor)(v);null===t.getCurrentSelectedId()||E!==t.getCurrentSelectedId()?(e.selectFeature(t,v),t.setCurrentSelectedId(E)):(e.selectFeature(t,new Uint8Array([0,0,0,0])),t.setCurrentSelectedId(null))}return l}))}var e,n,r;return C()(t,[{key:"init",value:function(t){var e=this.rendererService,n=e.createTexture2D,r=e.createFramebuffer,i=(e.getViewportSize,e.getContainer),o=this.getContainerSize(i()),a=o.width,s=o.height;a*=k.DOM.DPR,s*=k.DOM.DPR,this.pickBufferScale=this.configService.getSceneConfig(t).pickBufferScale||1,this.pickingFBO=r({color:n({width:Math.round(a/this.pickBufferScale),height:Math.round(s/this.pickBufferScale),wrapS:N.gl.CLAMP_TO_EDGE,wrapT:N.gl.CLAMP_TO_EDGE})}),this.interactionService.on(D.InteractionEvent.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:(r=b()(j.a.mark((function t(e,n,r){var i,o,a,s=this;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=this.rendererService,o=i.useFramebuffer,a=i.clear,i.getContainer,this.resizePickingFBO(),o(this.pickingFBO,(function(){a({framebuffer:s.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),e.hooks.beforePickingEncode.call(),e.renderModels(),e.hooks.afterPickingEncode.call();var t=s.pickBox(e,n);r(t)}));case 3:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return r.apply(this,arguments)})},{key:"pickBox",value:function(t,e){var n,r=this,i=e.map((function(t){var e=t<0?0:t;return Math.floor(e*k.DOM.DPR/r.pickBufferScale)})),o=m()(i,4),a=o[0],s=o[1],u=o[2],l=o[3],c=this.rendererService,h=(c.getViewportSize,c.readPixels),f=c.getContainer,d=this.getContainerSize(f()),p=d.width,g=d.height;if(p*=k.DOM.DPR,g*=k.DOM.DPR,a>(p-1)*k.DOM.DPR/this.pickBufferScale||u<0||s>(g-1)*k.DOM.DPR/this.pickBufferScale||l<0)return[];var v=Math.min(p/this.pickBufferScale,u)-a,y=Math.min(g/this.pickBufferScale,l)-s;n=h({x:a,y:Math.floor(g/this.pickBufferScale-(l+1)),width:v,height:y,data:new Uint8Array(v*y*4),framebuffer:this.pickingFBO});for(var b=[],_={},x=0;x<n.length/4;x+=1){var w=n.slice(4*x,4*x+4),O=Object(k.decodePickingColor)(w);if(-1!==O&&!_[O]){var S=t.getSource().getFeatureById(O);b.push(F(F({},S),{},{pickedFeatureIdx:O})),_[O]=!0}}return b}},{key:"handleCursor",value:function(t,e){var n=t.getLayerConfig(),r=n.cursor,i=void 0===r?"":r;if(n.cursorEnabled){var o="GAODE2.x"===this.mapService.version?this.mapService.getMapContainer():this.mapService.getMarkerContainer(),a=null==o?void 0:o.style.getPropertyValue("cursor");"unmousemove"===e&&""!==a?null==o||o.style.setProperty("cursor",""):"mousemove"===e&&(null==o||o.style.setProperty("cursor",i))}}},{key:"destroy",value:function(){this.pickingFBO.destroy(),this.pickingFBO=null}},{key:"getContainerSize",value:function(t){return t.getContext?{width:t.width/k.DOM.DPR,height:t.height/k.DOM.DPR}:t.getBoundingClientRect()}},{key:"pickingAllLayer",value:(n=b()(j.a.mark((function t(e){var n;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this.alreadyInPicking||this.layerService.alreadyInRendering||this.interactionService.indragging)&&this.layerService.getShaderPickStat()){t.next=2;break}return t.abrupt("return");case 2:if(this.alreadyInPicking=!0,!((n=(new Date).getTime())-this.lastPickTime>10||"contextmenu"===e.type||"click"===e.type)){t.next=7;break}return t.next=7,this.pickingLayers(e);case 7:this.lastPickTime=n,this.layerService.renderLayers(),this.alreadyInPicking=!1;case 10:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"resizePickingFBO",value:function(){var t=this.rendererService.getContainer,e=this.getContainerSize(t()),n=e.width,r=e.height;n*=k.DOM.DPR,r*=k.DOM.DPR,this.width===n&&this.height===r||(this.pickingFBO.resize({width:Math.round(n/this.pickBufferScale),height:Math.round(r/this.pickBufferScale)}),this.width=n,this.height=r)}},{key:"pickingLayers",value:(e=b()(j.a.mark((function t(e){var n,r,i,o=this;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(n=this.rendererService).getViewportSize,r=n.useFramebuffer,i=n.clear,n.getContainer,this.resizePickingFBO(),r(this.pickingFBO,(function(){o.layerService.getRenderList().filter((function(t){return t.needPick(e.type)})).reverse().some((function(t){i({framebuffer:o.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),t.hooks.beforePickingEncode.call(),t.masks.length>0&&t.masks.map((function(t){t.hooks.beforeRenderData.call(),t.hooks.beforeRender.call(),t.render(),t.hooks.afterRender.call()})),t.renderModels(!0),t.hooks.afterPickingEncode.call();var n=o.pickFromPickingFBO(t,e);return o.layerService.pickedLayerId=n?+t.id:-1,n&&!t.getLayerConfig().enablePropagation}))}));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"triggerHoverOnLayer",value:function(t,e){Object(R.isEventCrash)(e)&&(this.handleCursor(t,e.type),t.emit(e.type,e))}},{key:"highlightPickedFeature",value:function(t,e){var n=m()(e,3),r=n[0],i=n[1],o=n[2];t.hooks.beforeHighlight.call([r,i,o])}},{key:"selectFeature",value:function(t,e){var n=m()(e,3),r=n[0],i=n[1],o=n[2];t.hooks.beforeSelect.call([r,i,o])}}]),t}(),h=M()(c.prototype,"mapService",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=M()(c.prototype,"rendererService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=M()(c.prototype,"configService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=M()(c.prototype,"interactionService",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=M()(c.prototype,"layerService",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=c))||l)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return k}));var r,i,o,a,s,u,l,c,h,f=n(115),d=n.n(f),p=n(47),g=n.n(p),v=n(16),m=n.n(v),y=n(17),b=n.n(y),_=n(4),x=n.n(_),w=n(44),O=n.n(w),S=(n(196),n(49)),C=n.n(S),E=n(37),T=n(21),A=(n(94),n(29)),M=n(1794);function I(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var k=(r=Object(T.injectable)(),i=Object(T.inject)(A.TYPES.IRendererService),o=Object(T.inject)(A.TYPES.IMapService),a=Object(T.inject)(A.TYPES.IGlobalConfigService),r((u=function(){function t(){m()(this,t),x()(this,"pickedLayerId",-1),x()(this,"clock",new M.default),x()(this,"alreadyInRendering",!1),x()(this,"layers",[]),x()(this,"layerList",[]),x()(this,"layerRenderID",void 0),x()(this,"sceneInited",!1),x()(this,"animateInstanceCount",0),x()(this,"shaderPicking",!0),x()(this,"enableRender",!0),g()(this,"renderService",l,this),g()(this,"mapService",c,this),g()(this,"configService",h,this)}var e;return b()(t,[{key:"add",value:function(t){this.sceneInited&&t.init(),this.layers.push(t),this.updateLayerRenderList()}},{key:"addMask",value:function(t){this.sceneInited&&t.init()}},{key:"initLayers",value:function(){this.sceneInited=!0,this.layers.forEach((function(t){t.inited||t.init()})),this.updateLayerRenderList()}},{key:"getSceneInited",value:function(){return this.sceneInited}},{key:"getRenderList",value:function(){return this.layerList}},{key:"getLayers",value:function(){return this.layers}},{key:"getLayer",value:function(t){return this.layers.find((function(e){return e.id===t}))}},{key:"getLayerByName",value:function(t){return this.layers.find((function(e){return e.name===t}))}},{key:"cleanRemove",value:function(t,e){if(e){var n=e.layerChildren.indexOf(t);n>-1&&e.layerChildren.splice(n,1)}else{var r=this.layers.indexOf(t);r>-1&&this.layers.splice(r,1)}this.updateLayerRenderList(),this.renderLayers()}},{key:"remove",value:function(t,e){if(e){var n=e.layerChildren.indexOf(t);n>-1&&e.layerChildren.splice(n,1)}else{var r=this.layers.indexOf(t);r>-1&&this.layers.splice(r,1)}this.updateLayerRenderList(),t.destroy(),this.renderLayers()}},{key:"removeAllLayers",value:function(){this.destroy()}},{key:"setEnableRender",value:function(t){this.enableRender=t}},{key:"renderLayers",value:(e=d()(C.a.mark((function t(){var e,n,r;return C.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.alreadyInRendering&&this.enableRender){t.next=2;break}return t.abrupt("return");case 2:this.alreadyInRendering=!0,this.clear(),e=I(this.layerList),t.prev=5,e.s();case 7:if((n=e.n()).done){t.next=21;break}if((r=n.value).hooks.beforeRenderData.call(),r.hooks.beforeRender.call(),!r.isLayerGroup&&r.masks.length>0&&(this.renderService.clear({stencil:0,depth:1,framebuffer:null}),r.masks.map((function(t){t.hooks.beforeRenderData.call(),t.hooks.beforeRender.call(),t.render(),t.hooks.afterRender.call()}))),!r.getLayerConfig().enableMultiPassRenderer){t.next=17;break}return t.next=15,r.renderMultiPass();case 15:t.next=18;break;case 17:r.render();case 18:r.hooks.afterRender.call();case 19:t.next=7;break;case 21:t.next=26;break;case 23:t.prev=23,t.t0=t.catch(5),e.e(t.t0);case 26:return t.prev=26,e.f(),t.finish(26);case 29:this.alreadyInRendering=!1;case 30:case"end":return t.stop()}}),t,this,[[5,23,26,29]])}))),function(){return e.apply(this,arguments)})},{key:"updateLayerRenderList",value:function(){var t=this;this.layerList=[],this.layers.filter((function(t){return t.inited})).filter((function(t){return t.isVisible()})).sort((function(t,e){return t.zIndex-e.zIndex})).forEach((function(e){e.isLayerGroup?e.layerChildren.filter((function(t){return t.inited})).filter((function(t){return t.isVisible()})).sort((function(t,e){return t.zIndex-e.zIndex})).forEach((function(e){t.layerList.push(e)})):t.layerList.push(e)}))}},{key:"destroy",value:function(){this.layers.forEach((function(t){t.destroy()})),this.layers=[],this.layerList=[],this.renderLayers()}},{key:"startAnimate",value:function(){0==this.animateInstanceCount++&&(this.clock.start(),this.runRender())}},{key:"stopAnimate",value:function(){0==--this.animateInstanceCount&&(this.stopRender(),this.clock.stop())}},{key:"getOESTextureFloat",value:function(){return this.renderService.extensionObject.OES_texture_float}},{key:"enableShaderPick",value:function(){this.shaderPicking=!0}},{key:"disableShaderPick",value:function(){this.shaderPicking=!1}},{key:"getShaderPickStat",value:function(){return this.shaderPicking}},{key:"clear",value:function(){var t=Object(E.rgb2arr)(this.mapService.bgColor);this.renderService.clear({color:t,depth:1,stencil:0,framebuffer:null})}},{key:"runRender",value:function(){this.renderLayers(),this.layerRenderID=E.$window.requestAnimationFrame(this.runRender.bind(this))}},{key:"stopRender",value:function(){E.$window.cancelAnimationFrame(this.layerRenderID)}}]),t}(),l=O()(u.prototype,"renderService",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=O()(u.prototype,"mapService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=O()(u.prototype,"configService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=u))||s)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return l}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(4),u=n.n(s),l=function(){function t(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];i()(this,t),u()(this,"autoStart",void 0),u()(this,"startTime",0),u()(this,"oldTime",0),u()(this,"running",!1),u()(this,"elapsedTime",0),this.autoStart=e}return a()(t,[{key:"start",value:function(){this.startTime=("undefined"==typeof performance?Date:performance).now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}},{key:"stop",value:function(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}},{key:"getElapsedTime",value:function(){return this.getDelta(),this.elapsedTime}},{key:"getDelta",value:function(){var t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var e=("undefined"==typeof performance?Date:performance).now();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return k}));var r,i,o,a,s,u,l=n(227),c=n.n(l),h=n(182),f=n.n(h),d=n(47),p=n.n(d),g=n(16),v=n.n(g),m=n(17),y=n.n(m),b=n(44),_=n.n(b),x=(n(196),n(4)),w=n.n(x),O=n(21),S=(n(94),n(29)),C=n(93),E=n(1796),T=["buffer","update","name"],A=["buffer","update","name"];function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function I(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?M(Object(n),!0).forEach((function(e){w()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var j=(r={},w()(r,C.gl.FLOAT,4),w()(r,C.gl.UNSIGNED_BYTE,1),w()(r,C.gl.UNSIGNED_SHORT,2),r),k=(i=Object(O.injectable)(),o=Object(O.inject)(S.TYPES.IRendererService),i((s=function(){function t(){v()(this,t),w()(this,"attributesAndIndices",void 0),p()(this,"rendererService",u,this),w()(this,"attributes",[]),w()(this,"triangulation",void 0),w()(this,"featureLayout",{sizePerElement:0,elements:[]})}return y()(t,[{key:"registerStyleAttribute",value:function(t){var e=this.getLayerStyleAttribute(t.name||"");return e?e.setProps(t):(e=new E.default(t),this.attributes.push(e)),e}},{key:"updateStyleAttribute",value:function(t,e,n){var r=this.getLayerStyleAttribute(t);r||(r=this.registerStyleAttribute(I(I({},e),{},{name:t})));var i=e.scale;i&&r&&(r.scale=i,r.needRescale=!0,r.needRemapping=!0,r.needRegenerateVertices=!0,n&&n.featureRange&&(r.featureRange=n.featureRange))}},{key:"getLayerStyleAttributes",value:function(){return this.attributes}},{key:"getLayerStyleAttribute",value:function(t){return this.attributes.find((function(e){return e.name===t}))}},{key:"getLayerAttributeScale",value:function(t){var e,n=this.getLayerStyleAttribute(t),r=null==n||null===(e=n.scale)||void 0===e?void 0:e.scalers;return r&&r[0]?r[0].func:null}},{key:"updateAttributeByFeatureRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,i=this.attributes.find((function(e){return e.name===t}));if(i&&i.descriptor){var o=i.descriptor,a=o.update,s=o.buffer,u=o.size,l=void 0===u?0:u,c=j[s.type||C.gl.FLOAT];if(a){var h=this.featureLayout,d=h.elements,p=h.sizePerElement,g=d.slice(n,r);if(!g.length)return;var v=g[0].offset,m=v*l*c,y=g.map((function(t,n){for(var r=t.featureIdx,i=t.vertices,o=t.normals,s=i.length/p,u=[],l=0;l<s;l++){var c=o?o.slice(3*l,3*l+3):[];u.push.apply(u,f()(a(e[r],r,i.slice(l*p,l*p+p),n,c)))}return u})).reduce((function(t,e){return t.push.apply(t,f()(e)),t}),[]);i.vertexAttribute.updateBuffer({data:y,offset:m})}}}},{key:"createAttributesAndIndices",value:function(t,e,n){var r=this;this.featureLayout={sizePerElement:0,elements:[]},e&&(this.triangulation=e);var i=this.attributes.map((function(t){return t.resetDescriptor(),t.descriptor})),o=0,a=[],s=3;t.forEach((function(t,e){var u=r.triangulation(t,n),l=u.indices,c=u.vertices,h=u.normals,d=u.size,p=u.indexes;l.forEach((function(t){a.push(t+o)})),s=d;var g=c.length/d;r.featureLayout.sizePerElement=s,r.featureLayout.elements.push({featureIdx:e,vertices:c,normals:h,offset:o}),o+=g;for(var v=function(n){var r=(null==h?void 0:h.slice(3*n,3*n+3))||[],o=c.slice(n*d,n*d+d),a=0;p&&void 0!==p[n]&&(a=p[n]),i.forEach((function(i,s){var u;i&&i.update&&(u=i.buffer.data).push.apply(u,f()(i.update(t,e,o,n,r,a)))}))},m=0;m<g;m++)v(m)}));var u=this.rendererService,l=u.createAttribute,h=u.createBuffer,d=u.createElements,p={};i.forEach((function(t,e){if(t){var n=t.buffer,i=(t.update,t.name,c()(t,T)),o=l(I({buffer:h(n)},i));p[t.name||""]=o,r.attributes[e].vertexAttribute=o}}));var g=d({data:a,type:C.gl.UNSIGNED_INT,count:a.length});return this.attributesAndIndices={attributes:p,elements:g},this.attributesAndIndices}},{key:"createAttributes",value:function(t,e){var n=this;this.featureLayout={sizePerElement:0,elements:[]},e&&(this.triangulation=e);var r=this.attributes.map((function(t){return t.resetDescriptor(),t.descriptor})),i=0,o=[],a=3;t.forEach((function(t,e){var s=n.triangulation(t),u=s.indices,l=s.vertices,c=s.normals,h=s.size,d=s.indexes;u.forEach((function(t){o.push(t+i)})),a=h;var p=l.length/h;n.featureLayout.sizePerElement=a,n.featureLayout.elements.push({featureIdx:e,vertices:l,normals:c,offset:i}),i+=p;for(var g=function(n){var i=(null==c?void 0:c.slice(3*n,3*n+3))||[],o=l.slice(n*h,n*h+h),a=0;d&&void 0!==d[n]&&(a=d[n]),r.forEach((function(r,s){var u;r&&r.update&&(u=r.buffer.data).push.apply(u,f()(r.update(t,e,o,n,i,a)))}))},v=0;v<p;v++)g(v)}));var s=this.rendererService,u=s.createAttribute,l=s.createBuffer,h={};return r.forEach((function(t,e){if(t){var r=t.buffer,i=(t.update,t.name,c()(t,A)),o=u(I({buffer:l(r)},i));h[t.name||""]=o,n.attributes[e].vertexAttribute=o}})),{attributes:h}}},{key:"clearAllAttributes",value:function(){var t;this.attributes.forEach((function(t){t.vertexAttribute&&t.vertexAttribute.destroy()})),null===(t=this.attributesAndIndices)||void 0===t||t.elements.destroy(),this.attributes=[]}}]),t}(),u=_()(s.prototype,"rendererService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=s))||a)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return d}));var r=n(182),i=n.n(r),o=n(16),a=n.n(o),s=n(17),u=n.n(s),l=n(4),c=n.n(l),h=n(273),f=n.n(h),d=function(){function t(e){var n=this;a()(this,t),c()(this,"name",void 0),c()(this,"type",void 0),c()(this,"scale",void 0),c()(this,"descriptor",void 0),c()(this,"featureBufferLayout",[]),c()(this,"needRescale",!1),c()(this,"needRemapping",!1),c()(this,"needRegenerateVertices",!1),c()(this,"featureRange",{startIndex:0,endIndex:1/0}),c()(this,"vertexAttribute",void 0),c()(this,"defaultCallback",(function(t){var e;return 0===t.length?(null===(e=n.scale)||void 0===e?void 0:e.defaultValues)||[]:t.map((function(t,e){var r;return(null===(r=n.scale)||void 0===r?void 0:r.scalers[e].func)(t)}))})),this.setProps(e)}return u()(t,[{key:"setProps",value:function(t){Object.assign(this,t)}},{key:"mapping",value:function(t){var e;if(null!==(e=this.scale)&&void 0!==e&&e.callback){var n,r=null===(n=this.scale)||void 0===n?void 0:n.callback.apply(n,i()(t));if(!f()(r))return[r]}return this.defaultCallback(t)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return pt}));var r,i,o,a,s,u,l,c,h,f,d,p,g,v,m,y,b,_,x,w,O,S,C,E,T,A,M,I,j,k,P,L,R,D=n(115),N=n.n(D),B=n(47),F=n.n(B),z=n(16),V=n.n(z),U=n(17),G=n.n(U),H=n(14),W=n.n(H),Y=n(50),X=n.n(Y),$=n(51),q=n.n($),Z=n(28),K=n.n(Z),Q=n(4),J=n.n(Q),tt=n(44),et=n.n(tt),nt=(n(196),n(49)),rt=n.n(nt),it=n(1798),ot=n(37),at=n(935),st=n.n(at),ut=n(209),lt=n(21),ct=(n(94),n(29)),ht=n(782),ft=n(156);function dt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=K()(t);if(e){var i=K()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return q()(this,n)}}var pt=(r=Object(lt.injectable)(),i=Object(lt.inject)(ct.TYPES.SceneID),o=Object(lt.inject)(ct.TYPES.IIconService),a=Object(lt.inject)(ct.TYPES.IFontService),s=Object(lt.inject)(ct.TYPES.IControlService),u=Object(lt.inject)(ct.TYPES.IGlobalConfigService),l=Object(lt.inject)(ct.TYPES.IMapService),c=Object(lt.inject)(ct.TYPES.ICoordinateSystemService),h=Object(lt.inject)(ct.TYPES.IRendererService),f=Object(lt.inject)(ct.TYPES.ILayerService),d=Object(lt.inject)(ct.TYPES.ICameraService),p=Object(lt.inject)(ct.TYPES.IInteractionService),g=Object(lt.inject)(ct.TYPES.IPickingService),v=Object(lt.inject)(ct.TYPES.IShaderModuleService),m=Object(lt.inject)(ct.TYPES.IMarkerService),y=Object(lt.inject)(ct.TYPES.IPopupService),r((_=function(t){X()(r,t);var e,n=dt(r);function r(){var t;return V()(this,r),t=n.call(this),J()(W()(t),"destroyed",!1),J()(W()(t),"loaded",!1),J()(W()(t),"loadFont",!1),J()(W()(t),"fontFamily",""),F()(W()(t),"id",x,W()(t)),F()(W()(t),"iconService",w,W()(t)),F()(W()(t),"fontService",O,W()(t)),F()(W()(t),"controlService",S,W()(t)),F()(W()(t),"configService",C,W()(t)),F()(W()(t),"map",E,W()(t)),F()(W()(t),"coordinateSystemService",T,W()(t)),F()(W()(t),"rendererService",A,W()(t)),F()(W()(t),"layerService",M,W()(t)),F()(W()(t),"cameraService",I,W()(t)),F()(W()(t),"interactionService",j,W()(t)),F()(W()(t),"pickingService",k,W()(t)),F()(W()(t),"shaderModuleService",P,W()(t)),F()(W()(t),"markerService",L,W()(t)),F()(W()(t),"popupService",R,W()(t)),J()(W()(t),"inited",!1),J()(W()(t),"initPromise",void 0),J()(W()(t),"rendering",!1),J()(W()(t),"$container",void 0),J()(W()(t),"canvas",void 0),J()(W()(t),"markerContainer",void 0),J()(W()(t),"hooks",void 0),J()(W()(t),"handleWindowResized",(function(){t.emit("resize"),t.$container&&(t.initContainer(),ot.DOM.triggerResize(),t.coordinateSystemService.needRefresh=!0,t.render())})),J()(W()(t),"handleMapCameraChanged",(function(e){t.cameraService.update(e),t.render()})),t.hooks={init:new it.AsyncParallelHook},t}return G()(r,[{key:"init",value:function(t){var e=this;this.configService.setSceneConfig(this.id,t),this.shaderModuleService.registerBuiltinModules(),this.iconService.init(),this.iconService.on("imageUpdate",(function(){return e.render()})),this.fontService.init(),this.hooks.init.tapPromise("initMap",N()(rt.a.mark((function t(){return rt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new Promise((function(t){e.map.onCameraChanged((function(n){e.cameraService.init(),e.cameraService.update(n),"GAODE2.x"!==e.map.version&&t()})),"GAODE2.x"!==e.map.version?e.map.init():t()}));case 2:if("GAODE2.x"!==e.map.version||!e.map.initViewPort){t.next=6;break}return t.next=5,e.map.init();case 5:e.map.initViewPort();case 6:e.map.onCameraChanged(e.handleMapCameraChanged),e.map.addMarkerContainer(),e.markerService.addMarkers(),e.markerService.addMarkerLayers(),e.popupService.initPopup(),e.interactionService.init(),e.interactionService.on(ft.InteractionEvent.Drag,e.addSceneEvent.bind(e));case 13:case"end":return t.stop()}}),t)})))),this.hooks.init.tapPromise("initRenderer",N()(rt.a.mark((function t(){var n,r;return rt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=Object(ht.createRendererContainer)(e.configService.getSceneConfig(e.id).id||""),e.$container=n,!n){t.next=11;break}return e.canvas=ot.DOM.create("canvas","",n),e.setCanvas(),t.next=7,e.rendererService.init(e.canvas,e.configService.getSceneConfig(e.id));case 7:st()(e.$container,e.handleWindowResized),ot.$window.matchMedia&&(null===(r=ot.$window.matchMedia("screen and (-webkit-min-device-pixel-ratio: 1.5)"))||void 0===r||r.addListener(e.handleWindowResized)),t.next=12;break;case 11:console.error("容器 id 不存在");case 12:e.pickingService.init(e.id);case 13:case"end":return t.stop()}}),t)})))),this.initPromise=this.hooks.init.promise(),this.render()}},{key:"initMiniScene",value:function(t){var e=this;this.configService.setSceneConfig(this.id,t),this.shaderModuleService.registerBuiltinModules(),this.iconService.init(),this.iconService.on("imageUpdate",(function(){return e.render()})),this.fontService.init(),this.hooks.init.tapPromise("initMap",N()(rt.a.mark((function t(){return rt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new Promise((function(t){e.map.onCameraChanged((function(n){e.cameraService.init(),e.cameraService.update(n),"GAODE2.x"!==e.map.version&&t()})),e.map.initMiniMap()}));case 2:e.map.onCameraChanged(e.handleMapCameraChanged),e.interactionService.init(),e.interactionService.on(ft.InteractionEvent.Drag,e.addSceneEvent.bind(e));case 5:case"end":return t.stop()}}),t)})))),this.hooks.init.tapPromise("initRenderer",N()(rt.a.mark((function n(){var r;return rt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.canvas,e.$container=r||null,!e.$container){n.next=7;break}return n.next=5,e.rendererService.init(t.canvas,e.configService.getSceneConfig(e.id));case 5:n.next=8;break;case 7:console.error("容器 id 不存在");case 8:e.pickingService.init(e.id);case 9:case"end":return n.stop()}}),n)})))),this.initPromise=this.hooks.init.promise(),this.render()}},{key:"addLayer",value:function(t){this.layerService.sceneService=this,this.layerService.add(t),this.render()}},{key:"addMask",value:function(t){this.layerService.sceneService=this,this.layerService.addMask(t),this.render()}},{key:"render",value:(e=N()(rt.a.mark((function t(){return rt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.rendering&&!this.destroyed){t.next=2;break}return t.abrupt("return");case 2:if(this.rendering=!0,this.inited){t.next=23;break}return t.next=6,this.initPromise;case 6:if(this.destroyed&&this.destroy(),!this.loadFont||!document.fonts){t.next=18;break}return t.prev=8,t.next=11,document.fonts.load("24px ".concat(this.fontFamily),"L7text");case 11:t.next=18;break;case 13:t.prev=13,t.t0=t.catch(8),console.warn("当前环境不支持 document.fonts !"),console.warn("当前环境不支持 iconfont !"),console.warn(t.t0);case 18:this.layerService.initLayers(),this.controlService.addControls(),this.loaded=!0,this.emit("loaded"),this.inited=!0;case 23:this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this.rendering=!1;case 26:case"end":return t.stop()}}),t,this,[[8,13]])}))),function(){return e.apply(this,arguments)})},{key:"addFontFace",value:function(t,e){this.fontFamily=t;var n=document.createElement("style");n.type="text/css",n.innerText="\n @font-face{\n font-family: '".concat(t,"';\n src: url('").concat(e,"') format('woff2'),\n url('").concat(e,"') format('woff'),\n url('").concat(e,"') format('truetype');\n }"),document.getElementsByTagName("head")[0].appendChild(n),this.loadFont=!0}},{key:"getSceneContainer",value:function(){return this.$container}},{key:"exportPng",value:function(t){var e,n=null===(e=this.$container)||void 0===e?void 0:e.getElementsByTagName("canvas")[0];return this.render(),"jpg"===t?null==n?void 0:n.toDataURL("image/jpeg"):null==n?void 0:n.toDataURL("image/png")}},{key:"getSceneConfig",value:function(){return this.configService.getSceneConfig(this.id)}},{key:"getPointSizeRange",value:function(){return this.rendererService.getPointSizeRange()}},{key:"addMarkerContainer",value:function(){var t=this.$container.parentElement;null!==t&&(this.markerContainer=ot.DOM.create("div","l7-marker-container",t))}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"destroy",value:function(){var t,e,n,r=this;this.inited?(this.emit("destroy"),this.pickingService.destroy(),this.layerService.destroy(),setTimeout((function(){var t;null===(t=r.$container)||void 0===t||t.removeChild(r.canvas),r.canvas=null,r.rendererService.destroy()})),this.map.destroy(),this.interactionService.destroy(),this.controlService.destroy(),this.markerService.destroy(),this.fontService.destroy(),this.iconService.destroy(),null===(t=this.$container)||void 0===t||null===(e=t.parentNode)||void 0===e||e.removeChild(this.$container),this.removeAllListeners(),this.inited=!1,Object(at.unbind)(this.$container,this.handleWindowResized),ot.$window.matchMedia&&(null===(n=ot.$window.matchMedia("screen and (min-resolution: 2dppx)"))||void 0===n||n.removeListener(this.handleWindowResized))):this.destroyed=!0}},{key:"initContainer",value:function(){var t,e,n=ot.DOM.DPR,r=(null===(t=this.$container)||void 0===t?void 0:t.clientWidth)||400,i=(null===(e=this.$container)||void 0===e?void 0:e.clientHeight)||300,o=this.canvas;o&&(o.width=r*n,o.height=i*n),this.rendererService.viewport({x:0,y:0,width:n*r,height:n*i})}},{key:"setCanvas",value:function(){var t,e,n=ot.DOM.DPR,r=(null===(t=this.$container)||void 0===t?void 0:t.clientWidth)||400,i=(null===(e=this.$container)||void 0===e?void 0:e.clientHeight)||300,o=this.canvas;o.width=r*n,o.height=i*n,o.style.width="100%",o.style.height="100%"}},{key:"addSceneEvent",value:function(t){this.emit(t.type,t)}}]),r}(ut.EventEmitter),x=et()(_.prototype,"id",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=et()(_.prototype,"iconService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=et()(_.prototype,"fontService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=et()(_.prototype,"controlService",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=et()(_.prototype,"configService",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=et()(_.prototype,"map",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=et()(_.prototype,"coordinateSystemService",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=et()(_.prototype,"rendererService",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=et()(_.prototype,"layerService",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=et()(_.prototype,"cameraService",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=et()(_.prototype,"interactionService",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=et()(_.prototype,"pickingService",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=et()(_.prototype,"shaderModuleService",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=et()(_.prototype,"markerService",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=et()(_.prototype,"popupService",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=_))||b)},function(t,e,n){"use strict";n.r(e),function(t,r){function i(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function o(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function s(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}n.d(e,"AsyncParallelHook",(function(){return z})),n.d(e,"AsyncSeriesBailHook",(function(){return Y})),n.d(e,"AsyncSeriesHook",(function(){return W})),n.d(e,"AsyncWaterfallHook",(function(){return X})),n.d(e,"SyncBailHook",(function(){return H})),n.d(e,"SyncHook",(function(){return D})),n.d(e,"SyncWaterfallHook",(function(){return G}));var l={exports:{}},c={exports:{}},h={exports:{}};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t&&"number"==typeof t.length&&t.length>=0&&t.length%1==0},t.exports=e.default}(h,h.exports);var f={},d={exports:{}},p={exports:{}};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=e.pop();return t.call(this,e,r)}},t.exports=e.default}(p,p.exports);var g={};Object.defineProperty(g,"__esModule",{value:!0}),g.fallback=_,g.wrap=x;var v,m=g.hasQueueMicrotask="function"==typeof queueMicrotask&&queueMicrotask,y=g.hasSetImmediate="function"==typeof t&&t,b=g.hasNextTick="object"==typeof r&&"function"==typeof r.nextTick;function _(t){setTimeout(t,0)}function x(t){return function(e){for(var n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return t((function(){return e.apply(void 0,n)}))}}v=m?queueMicrotask:y?t:b?r.nextTick:_,g.default=x(v),function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,i.isAsync)(t))return function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=e.pop(),i=t.apply(this,e);return a(i,r)};return(0,n.default)((function(e,n){var r;try{r=t.apply(this,e)}catch(t){return n(t)}if(r&&"function"==typeof r.then)return a(r,n);n(null,r)}))};var n=o(p.exports),r=o(g),i=f;function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){return t.then((function(t){s(e,null,t)}),(function(t){s(e,t&&t.message?t:new Error(t))}))}function s(t,e,n){try{t(e,n)}catch(t){(0,r.default)((function(t){throw t}),t)}}t.exports=e.default}(d,d.exports),Object.defineProperty(f,"__esModule",{value:!0}),f.isAsyncIterable=f.isAsyncGenerator=f.isAsync=void 0;var w,O=(w=d.exports)&&w.__esModule?w:{default:w};function S(t){return"AsyncFunction"===t[Symbol.toStringTag]}f.default=function(t){if("function"!=typeof t)throw new Error("expected a function");return S(t)?(0,O.default)(t):t},f.isAsync=S,f.isAsyncGenerator=function(t){return"AsyncGenerator"===t[Symbol.toStringTag]},f.isAsyncIterable=function(t){return"function"==typeof t[Symbol.asyncIterator]};var C={exports:{}};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){void 0===e&&(e=t.length);if(!e)throw new Error("arity is undefined");return function(){for(var n=this,r=[],i=arguments.length;i--;)r[i]=arguments[i];return"function"==typeof r[e-1]?t.apply(this,r):new Promise((function(i,o){r[e-1]=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if(t)return o(t);i(e.length>1?e:e[0])},t.apply(n,r)}))}},t.exports=e.default}(C,C.exports),function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=o(h.exports),r=o(f),i=o(C.exports);function o(t){return t&&t.__esModule?t:{default:t}}e.default=(0,i.default)((function(t,e,i){var o=(0,n.default)(e)?[]:{};t(e,(function(t,e,n){(0,r.default)(t)((function(t){for(var r=[],i=arguments.length-1;i-- >0;)r[i]=arguments[i+1];r.length<2&&(r=r[0]),o[e]=r,n(t)}))}),(function(t){return i(t,o)}))}),3),t.exports=e.default}(c,c.exports);var E={exports:{}},T={exports:{}},A={exports:{}},M={exports:{}};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){function e(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(null!==t){var r=t;t=null,r.apply(this,e)}}return Object.assign(e,t),e},t.exports=e.default}(M,M.exports);var I={exports:{}},j={exports:{}};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()},t.exports=e.default}(j,j.exports),function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,n.default)(t))return function(t){var e=-1,n=t.length;return function(){return++e<n?{value:t[e],key:e}:null}}(t);var e=(0,r.default)(t);return e?function(t){var e=-1;return function(){var n=t.next();return n.done?null:(e++,{value:n.value,key:e})}}(e):function(t){var e=t?Object.keys(t):[],n=-1,r=e.length;return function i(){var o=e[++n];return"__proto__"===o?i():n<r?{value:t[o],key:o}:null}}(t)};var n=i(h.exports),r=i(j.exports);function i(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default}(I,I.exports);var k={exports:{}};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(null===t)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}},t.exports=e.default}(k,k.exports);var P={exports:{}},L={exports:{}};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0});e.default={},t.exports=e.default}(L,L.exports),function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r,i){var o=!1,a=!1,s=!1,u=0,l=0;function c(){u>=e||s||o||(s=!0,t.next().then((function(t){var e=t.value,n=t.done;if(!a&&!o){if(s=!1,n)return o=!0,void(u<=0&&i(null));u++,r(e,l,h),l++,c()}})).catch(f))}function h(t,e){if(u-=1,!a)return t?f(t):!1===t?(o=!0,void(a=!0)):e===n.default||o&&u<=0?(o=!0,i(null)):void c()}function f(t){a||(s=!1,o=!0,i(t))}c()};var n=function(t){return t&&t.__esModule?t:{default:t}}(L.exports);t.exports=e.default}(P,P.exports),function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=u(M.exports),r=u(I.exports),i=u(k.exports),o=f,a=u(P.exports),s=u(L.exports);function u(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){return function(e,u,l){if(l=(0,n.default)(l),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return l(null);if((0,o.isAsyncGenerator)(e))return(0,a.default)(e,t,u,l);if((0,o.isAsyncIterable)(e))return(0,a.default)(e[Symbol.asyncIterator](),t,u,l);var c=(0,r.default)(e),h=!1,f=!1,d=0,p=!1;function g(t,e){if(!f)if(d-=1,t)h=!0,l(t);else if(!1===t)h=!0,f=!0;else{if(e===s.default||h&&d<=0)return h=!0,l(null);p||v()}}function v(){for(p=!0;d<t&&!h;){var e=c();if(null===e)return h=!0,void(d<=0&&l(null));d+=1,u(e.value,e.key,(0,i.default)(g))}p=!1}v()}},t.exports=e.default}(A,A.exports),function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=o(A.exports),r=o(f),i=o(C.exports);function o(t){return t&&t.__esModule?t:{default:t}}e.default=(0,i.default)((function(t,e,i,o){return(0,n.default)(e)(t,(0,r.default)(i),o)}),4),t.exports=e.default}(T,T.exports),function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=i(T.exports),r=i(C.exports);function i(t){return t&&t.__esModule?t:{default:t}}e.default=(0,r.default)((function(t,e,r){return(0,n.default)(t,1,e,r)}),3),t.exports=e.default}(E,E.exports),function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return(0,n.default)(r.default,t,e)};var n=i(c.exports),r=i(E.exports);function i(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default}(l,l.exports);var R=u(l.exports),D=function(){function t(){this.args=[],this.tasks=[]}return t.prototype.call=function(){for(var t=arguments,e=[],n=0;n<arguments.length;n++)e[n]=t[n];return this.args=e,R(this.tasks)},t.prototype.tap=function(t,e){var n=this;this.tasks.push((function(r){e.apply(void 0,s([],a(n.args),!1)),r(null,t)}))},t}(),N={exports:{}},B={exports:{}};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=l(h.exports),r=l(L.exports),i=l(T.exports),o=l(M.exports),a=l(k.exports),s=l(f),u=l(C.exports);function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e,n){n=(0,o.default)(n);var i=0,s=0,u=t.length,l=!1;function c(t,e){!1===t&&(l=!0),!0!==l&&(t?n(t):++s!==u&&e!==r.default||n(null))}for(0===u&&n(null);i<u;i++)e(t[i],i,(0,a.default)(c))}function d(t,e,n){return(0,i.default)(t,1/0,e,n)}e.default=(0,u.default)((function(t,e,r){return((0,n.default)(t)?c:d)(t,(0,s.default)(e),r)}),3),t.exports=e.default}(B,B.exports),function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return(0,r.default)(n.default,t,e)};var n=i(B.exports),r=i(c.exports);function i(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default}(N,N.exports);var F=u(N.exports),z=function(){function t(){this.tasks=[]}return t.prototype.promise=function(){return F(this.tasks)},t.prototype.tapPromise=function(t,e){var n=this;this.tasks.push((function(r){return i(n,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,e()];case 1:return n.sent(),r(null,t),[2]}}))}))}))},t}(),V={exports:{}};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=a(M.exports),r=a(k.exports),i=a(f),o=a(C.exports);function a(t){return t&&t.__esModule?t:{default:t}}e.default=(0,o.default)((function(t,e){if(e=(0,n.default)(e),!Array.isArray(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var o=0;function a(e){(0,i.default)(t[o++]).apply(void 0,e.concat([(0,r.default)(s)]))}function s(n){for(var r=[],i=arguments.length-1;i-- >0;)r[i]=arguments[i+1];if(!1!==n)return n||o===t.length?e.apply(void 0,[n].concat(r)):void a(r)}a([])})),t.exports=e.default}(V,V.exports);var U=u(V.exports),G=function(){function t(){this.tasks=[]}return t.prototype.call=function(){return U(this.tasks)},t.prototype.tap=function(t,e){0===this.tasks.length?this.tasks.push((function(t){var n=e();t(!!n&&null,n)})):this.tasks.push((function(n,r){r(!!e.apply(void 0,s([],a(n),!1))&&null,t)}))},t}(),H=function(){function t(){this.tasks=[]}return t.prototype.call=function(){return R(this.tasks)},t.prototype.tap=function(t,e){this.tasks.push((function(n){n(e(),t)}))},t}(),W=function(){function t(){this.args=[],this.tasks=[]}return t.prototype.promise=function(){for(var t=arguments,e=[],n=0;n<arguments.length;n++)e[n]=t[n];return this.args=e,R(this.tasks)},t.prototype.tapPromise=function(t,e){var n=this;this.tasks.push((function(r){return i(n,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,e.apply(void 0,s([],a(this.args),!1))];case 1:return n.sent(),r(null,t),[2]}}))}))}))},t}(),Y=function(){function t(){this.args=[],this.tasks=[]}return t.prototype.promise=function(){for(var t=arguments,e=[],n=0;n<arguments.length;n++)e[n]=t[n];return this.args=e,R(this.tasks)},t.prototype.tapPromise=function(t,e){var n=this;this.tasks.push((function(r){return i(n,void 0,void 0,(function(){var n;return o(this,(function(i){switch(i.label){case 0:return[4,e.apply(void 0,s([],a(this.args),!1))];case 1:return n=i.sent(),r(n,t),[2]}}))}))}))},t}(),X=function(){function t(){this.tasks=[]}return t.prototype.promise=function(){return U(this.tasks)},t.prototype.tapPromise=function(t,e){0===this.tasks.length?this.tasks.push((function(t){e().then((function(e){t(null,e)}))})):this.tasks.push((function(t,n){e(t).then((function(t){n(null,t)}))}))},t}()}.call(this,n(950).setImmediate,n(447))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return b}));var r,i=n(16),o=n.n(i),a=n(17),s=n.n(a),u=n(4),l=n.n(u),c=n(1800),h=n.n(c),f=n(21),d=(n(94),n(936));function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){l()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var v="#define PI 3.14159265359",m=/precision\s+(high|low|medium)p\s+float/,y=/#pragma include (["^+"]?["\ "[a-zA-Z_0-9](.*)"]*?)/g,b=Object(f.injectable)()(r=function(){function t(){o()(this,t),l()(this,"moduleCache",{}),l()(this,"rawContentCache",{})}return s()(t,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:v,fs:v}),this.registerModule("decode",{vs:"#define SHIFT_RIGHT17 1.0 / 131072.0\n#define SHIFT_RIGHT18 1.0 / 262144.0\n#define SHIFT_RIGHT19 1.0 / 524288.0\n#define SHIFT_RIGHT20 1.0 / 1048576.0\n#define SHIFT_RIGHT21 1.0 / 2097152.0\n#define SHIFT_RIGHT22 1.0 / 4194304.0\n#define SHIFT_RIGHT23 1.0 / 8388608.0\n#define SHIFT_RIGHT24 1.0 / 16777216.0\n\n#define SHIFT_LEFT17 131072.0\n#define SHIFT_LEFT18 262144.0\n#define SHIFT_LEFT19 524288.0\n#define SHIFT_LEFT20 1048576.0\n#define SHIFT_LEFT21 2097152.0\n#define SHIFT_LEFT22 4194304.0\n#define SHIFT_LEFT23 8388608.0\n#define SHIFT_LEFT24 16777216.0\n\nvec2 unpack_float(float packedValue) {\n int packedIntValue = int(packedValue);\n int v0 = packedIntValue / 256;\n return vec2(v0, packedIntValue - v0 * 256);\n}\n\nvec4 decode_color(vec2 encodedColor) {\n return vec4(\n unpack_float(encodedColor[0]) / 255.0,\n unpack_float(encodedColor[1]) / 255.0\n );\n}\n",fs:""}),this.registerModule("projection",{vs:"#define TILE_SIZE 512.0\n#define PI 3.1415926536\n#define WORLD_SCALE TILE_SIZE / (PI * 2.0)\n\n#define COORDINATE_SYSTEM_LNGLAT 1.0 // mapbox\n#define COORDINATE_SYSTEM_LNGLAT_OFFSET 2.0 // mapbox offset\n#define COORDINATE_SYSTEM_VECTOR_TILE 3.0\n#define COORDINATE_SYSTEM_IDENTITY 4.0\n#define COORDINATE_SYSTEM_P20 5.0 // amap\n#define COORDINATE_SYSTEM_P20_OFFSET 6.0 // amap offset\n#define COORDINATE_SYSTEM_METER_OFFSET 7.0\n\n#define COORDINATE_SYSTEM_P20_2 8.0 // amap2.0\n\nuniform mat4 u_ViewMatrix;\nuniform mat4 u_ProjectionMatrix;\nuniform mat4 u_ViewProjectionMatrix;\nuniform float u_Zoom : 1;\nuniform float u_ZoomScale : 1;\n\nuniform float u_CoordinateSystem;\nuniform vec2 u_ViewportCenter;\nuniform vec4 u_ViewportCenterProjection;\nuniform vec3 u_PixelsPerDegree;\nuniform vec3 u_PixelsPerDegree2;\nuniform vec3 u_PixelsPerMeter;\n\nuniform vec2 u_ViewportSize;\nuniform float u_DevicePixelRatio;\nuniform float u_FocalDistance;\nuniform vec3 u_CameraPosition;\n\n// uniform mat4 u_Mvp;\n\n// web mercator coords -> world coords\nvec2 project_mercator(vec2 lnglat) {\n float x = lnglat.x;\n return vec2(\n radians(x) + PI,\n PI - log(tan(PI * 0.25 + radians(lnglat.y) * 0.5))\n );\n}\n\nfloat project_scale(float meters) {\n return meters * u_PixelsPerMeter.z;\n}\n\n\n// offset coords -> world coords\nvec4 project_offset(vec4 offset) {\n float dy = offset.y;\n dy = clamp(dy, -1., 1.);\n vec3 pixels_per_unit = u_PixelsPerDegree + u_PixelsPerDegree2 * dy;\n return vec4(offset.xyz * pixels_per_unit, offset.w);\n}\n\nvec3 project_normal(vec3 normal) {\n vec4 normal_modelspace = u_ModelMatrix * vec4(normal, 0.0);\n return normalize(normal_modelspace.xyz * u_PixelsPerMeter);\n}\n\nvec3 project_offset_normal(vec3 vector) {\n if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01\n || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // normals generated by the polygon tesselator are in lnglat offsets instead of meters\n return normalize(vector * u_PixelsPerDegree);\n }\n return project_normal(vector);\n}\n// || u_CoordinateSystem < COORDINATE_SYSTEM_P20_OFFSET + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_P20_OFFSET - 0.01\n// reverse Y\nvec3 reverse_offset_normal(vec3 vector) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 ||u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET ) {\n return vector * vec3(1.0, -1.0, 1.0);\n }\n\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.0\n return vector;\n }\n return vector;\n}\n\nvec4 project_position(vec4 position) {\n float a = COORDINATE_SYSTEM_LNGLAT_OFFSET;\n float b = COORDINATE_SYSTEM_P20_OFFSET;\n float c = COORDINATE_SYSTEM_LNGLAT;\n if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET\n || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n float X = position.x - u_ViewportCenter.x;\n float Y = position.y - u_ViewportCenter.y;\n return project_offset(vec4(X, Y, position.z, position.w));\n }\n if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01) {\n return vec4(\n project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale,\n project_scale(position.z),\n position.w\n );\n }\n\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) {\n return vec4(\n (project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale - vec2(215440491., 106744817.)) * vec2(1., -1.),\n project_scale(position.z),\n position.w\n );\n }\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // return vec4(\n // (position.xy * WORLD_SCALE * u_ZoomScale) * vec2(1., -1.), \n // project_scale(position.z), \n // position.w);\n\n return vec4(\n position.xy, \n project_scale(position.z), \n position.w);\n }\n return position;\n\n // TODO: 瓦片坐标系 & 常规世界坐标系\n}\nvec2 project_pixel_size_to_clipspace(vec2 pixels) {\n vec2 offset = pixels / u_ViewportSize * u_DevicePixelRatio * 2.0;\n return offset * u_FocalDistance;\n}\n\nfloat project_pixel_allmap(float pixel) {\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return pixel * pow(2.0, u_Zoom);\n }\n return pixel;\n}\n\n// 适配纹理贴图的等像素大小\nfloat project_pixel_texture(float pixel) {\n // mapbox zoom > 12\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n return pixel * pow(0.5, u_Zoom);\n }\n\n // amap2 zoom > 12\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom));\n }\n\n // amap zoom > 12\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n return pixel * pow(0.5, u_Zoom);\n }\n \n // amap zoom < 12\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) {\n return pixel * pow(2.0, (20.0 - u_Zoom));\n }\n return pixel * 2.0;\n}\n\n// 在不论什么底图下需要统一处理的时候使用\nfloat project_float_pixel(float pixel) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // mapbox P20 坐标系下,为了和 Web 墨卡托坐标系统一zoom 默认减1\n return pixel * pow(2.0, (19.0 - u_Zoom));\n }\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n // amap P20 坐标系下,为了和 Web 墨卡托坐标系统一zoom 默认减1\n return pixel * pow(2.0, (19.0 - u_Zoom));\n }\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // amap2 P20_2 坐标系下,为了和 Web 墨卡托坐标系统一zoom 默认减3\n return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom));\n }\n return pixel;\n}\n\nfloat project_pixel(float pixel) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n // amap P20 坐标系下,为了和 Web 墨卡托坐标系统一zoom 默认减1\n return pixel * pow(2.0, (19.0 - u_Zoom));\n }\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // amap2 P20_2 坐标系下,为了和 Web 墨卡托坐标系统一zoom 默认减3\n return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom));\n }\n return pixel;\n}\nvec2 project_pixel(vec2 pixel) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n // P20 坐标系下,为了和 Web 墨卡托坐标系统一zoom 默认减1\n return pixel * pow(2.0, (19.0 - u_Zoom));\n }\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // P20_2 坐标系下,为了和 Web 墨卡托坐标系统一zoom 默认减3\n return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom));\n }\n return pixel * -1.;\n}\nvec3 project_pixel(vec3 pixel) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n // P20 坐标系下,为了和 Web 墨卡托坐标系统一zoom 默认减1\n return pixel * pow(2.0, (19.0 - u_Zoom));\n }\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // P20_2 坐标系下,为了和 Web 墨卡托坐标系统一zoom 默认减3\n return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom));\n }\n return pixel * -1.;\n}\n\nvec4 project_common_position_to_clipspace(vec4 position, mat4 viewProjectionMatrix, vec4 center) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET ||\n u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // Needs to be divided with project_uCommonUnitsPerMeter\n position.w *= u_PixelsPerMeter.z;\n }\n\n return viewProjectionMatrix * position + center;\n}\n\n// Projects from common space coordinates to clip space\nvec4 project_common_position_to_clipspace(vec4 position) {\n return project_common_position_to_clipspace(\n position,\n u_ViewProjectionMatrix,\n u_ViewportCenterProjection\n );\n}\n\nvec4 unproject_clipspace_to_position(vec4 clipspacePos, mat4 u_InverseViewProjectionMatrix) {\n vec4 pos = u_InverseViewProjectionMatrix * (clipspacePos - u_ViewportCenterProjection);\n\n if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET ||\n u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // Needs to be divided with project_uCommonUnitsPerMeter\n pos.w = pos.w / u_PixelsPerMeter.z;\n }\n return pos;\n}\n\n\nbool isEqual( float a, float b) {\n return a< b + 0.001 && a > b - 0.001;\n}",fs:""}),this.registerModule("project",{vs:"\n#define E 2.718281828459045\nvec2 ProjectFlat(vec2 lnglat){\n float maxs=85.0511287798;\n float lat=max(min(maxs,lnglat.y),-maxs);\n float scale= 268435456.;\n float d=PI/180.;\n float x=lnglat.x*d;\n float y=lat*d;\n y=log(tan((PI/4.)+(y/2.)));\n\n float a=.5/PI,\n b=.5,\n c=-.5/PI;\n d=.5;\n x=scale*(a*x+b);\n y=scale*(c*y+d);\n return vec2(x,y);\n}\n\nvec2 unProjectFlat(vec2 px){\n float a=.5/PI;\n float b=.5;\n float c=-.5/PI;\n float d=.5;\n float scale = 268435456.;\n float x=(px.x/scale-b)/a;\n float y=(px.y/scale-d)/c;\n y=(atan(pow(E,y))-(PI/4.))*2.;\n d=PI/180.;\n float lat=y/d;\n float lng=x/d;\n return vec2(lng,lat);\n}\n\nfloat pixelDistance(vec2 from, vec2 to) {\n vec2 a1 = ProjectFlat(from);\n vec2 b1 = ProjectFlat(to);\n return distance(a1, b1);\n}\n\n// gaode2.0\nvec2 customProject(vec2 lnglat) { // 经纬度 => 平面坐标\n float t = lnglat.x;\n float e = lnglat.y;\n float Sm = 180.0 / PI;\n float Tm = 6378137.0;\n float Rm = PI / 180.0;\n float r = 85.0511287798;\n e = max(min(r, e), -r);\n t *= Rm;\n e *= Rm;\n e = log(tan(PI / 4.0 + e / 2.0));\n return vec2(t * Tm, e * Tm);\n}\n\nvec2 unProjCustomCoord(vec2 point) { // 平面坐标 => 经纬度\n float Sm = 57.29577951308232; //180 / Math.PI\n float Tm = 6378137.0;\n float t = point.x;\n float e = point.y;\n return vec2(t / Tm * Sm, (2.0 * atan(exp(e / Tm)) - PI / 2.0) * Sm);\n}\n\n\nfloat customPixelDistance(vec2 from, vec2 to) {\n vec2 a1 = ProjectFlat(from);\n vec2 b1 = ProjectFlat(to);\n return distance(a1, b1);\n}",fs:""}),this.registerModule("sdf_2d",{vs:"",fs:"/**\n * 2D signed distance field functions\n * @see http://www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm\n */\n\nfloat ndot(vec2 a, vec2 b ) { return a.x*b.x - a.y*b.y; }\n\nfloat sdCircle(vec2 p, float r) {\n return length(p) - r;\n}\n\nfloat sdEquilateralTriangle(vec2 p) {\n float k = sqrt(3.0);\n p.x = abs(p.x) - 1.0;\n p.y = p.y + 1.0/k;\n if( p.x + k*p.y > 0.0 ) p = vec2(p.x-k*p.y,-k*p.x-p.y)/2.0;\n p.x -= clamp( p.x, -2.0, 0.0 );\n return -length(p)*sign(p.y);\n}\n\nfloat sdBox(vec2 p, vec2 b) {\n vec2 d = abs(p)-b;\n return length(max(d,vec2(0))) + min(max(d.x,d.y),0.0);\n}\n\nfloat sdPentagon(vec2 p, float r) {\n vec3 k = vec3(0.809016994,0.587785252,0.726542528);\n p.x = abs(p.x);\n p -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y);\n p -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y);\n p -= vec2(clamp(p.x,-r*k.z,r*k.z),r);\n return length(p)*sign(p.y);\n}\n\nfloat sdHexagon(vec2 p, float r) {\n vec3 k = vec3(-0.866025404,0.5,0.577350269);\n p = abs(p);\n p -= 2.0*min(dot(k.xy,p),0.0)*k.xy;\n p -= vec2(clamp(p.x, -k.z*r, k.z*r), r);\n return length(p)*sign(p.y);\n}\n\nfloat sdOctogon(vec2 p, float r) {\n vec3 k = vec3(-0.9238795325, 0.3826834323, 0.4142135623 );\n p = abs(p);\n p -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y);\n p -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y);\n p -= vec2(clamp(p.x, -k.z*r, k.z*r), r);\n return length(p)*sign(p.y);\n}\n\nfloat sdHexagram(vec2 p, float r) {\n vec4 k=vec4(-0.5,0.8660254038,0.5773502692,1.7320508076);\n p = abs(p);\n p -= 2.0*min(dot(k.xy,p),0.0)*k.xy;\n p -= 2.0*min(dot(k.yx,p),0.0)*k.yx;\n p -= vec2(clamp(p.x,r*k.z,r*k.w),r);\n return length(p)*sign(p.y);\n}\n\nfloat sdRhombus(vec2 p, vec2 b) {\n vec2 q = abs(p);\n float h = clamp((-2.0*ndot(q,b)+ndot(b,b))/dot(b,b),-1.0,1.0);\n float d = length( q - 0.5*b*vec2(1.0-h,1.0+h) );\n return d * sign( q.x*b.y + q.y*b.x - b.x*b.y );\n}\n\nfloat sdVesica(vec2 p, float r, float d) {\n p = abs(p);\n float b = sqrt(r*r-d*d); // can delay this sqrt\n return ((p.y-b)*d>p.x*b)\n ? length(p-vec2(0.0,b))\n : length(p-vec2(-d,0.0))-r;\n}\n"}),this.registerModule("lighting",{vs:"// Blinn-Phong model\n// apply lighting in vertex shader instead of fragment shader\n// @see https://learnopengl.com/Advanced-Lighting/Advanced-Lighting\nuniform float u_Ambient : 1.0;\nuniform float u_Diffuse : 1.0;\nuniform float u_Specular : 1.0;\nuniform int u_NumOfDirectionalLights : 1;\nuniform int u_NumOfSpotLights : 0;\n\n#define SHININESS 32.0\n#define MAX_NUM_OF_DIRECTIONAL_LIGHTS 3\n#define MAX_NUM_OF_SPOT_LIGHTS 3\n\nstruct DirectionalLight {\n vec3 direction;\n vec3 ambient;\n vec3 diffuse;\n vec3 specular;\n};\n\nstruct SpotLight {\n vec3 position;\n vec3 direction;\n vec3 ambient;\n vec3 diffuse;\n vec3 specular;\n float constant;\n float linear;\n float quadratic;\n float angle;\n float blur;\n float exponent;\n};\n\nuniform DirectionalLight u_DirectionalLights[MAX_NUM_OF_DIRECTIONAL_LIGHTS];\nuniform SpotLight u_SpotLights[MAX_NUM_OF_SPOT_LIGHTS];\n\nvec3 calc_directional_light(DirectionalLight light, vec3 normal, vec3 viewDir) {\n vec3 lightDir = normalize(light.direction);\n // diffuse shading\n float diff = max(dot(normal, lightDir), 0.0);\n // Blinn-Phong specular shading\n vec3 halfwayDir = normalize(lightDir + viewDir);\n float spec = pow(max(dot(normal, halfwayDir), 0.0), SHININESS);\n\n vec3 ambient = light.ambient * u_Ambient;\n vec3 diffuse = light.diffuse * diff * u_Diffuse;\n vec3 specular = light.specular * spec * u_Specular;\n\n return ambient + diffuse + specular;\n}\n\n// vec3 calc_spot_light(SpotLight light, vec3 normal, vec3 fragPos, vec3 viewDir) {\n// vec3 lightDir = normalize(light.position - fragPos);\n// // diffuse shading\n// float diff = max(dot(normal, lightDir), 0.0);\n// // specular shading\n// vec3 reflectDir = reflect(-lightDir, normal);\n// float spec = pow(max(dot(viewDir, reflectDir), 0.0), SHININESS);\n// // attenuation\n// float distance = length(light.position - fragPos);\n// float attenuation = 1.0 / (light.constant + light.linear * distance +\n// light.quadratic * (distance * distance));\n\n// vec3 ambient = light.ambient * u_Ambient;\n// vec3 diffuse = light.diffuse * diff * u_Diffuse;\n// vec3 specular = light.specular * spec * u_Specular;\n\n// float spotEffect = dot(normalize(light.direction), -lightDir);\n// float spotCosCutoff = cos(light.angle / 180.0 * PI);\n// float spotCosOuterCutoff = cos((light.angle + light.blur) / 180.0 * PI);\n// float spotCosInnerCutoff = cos((light.angle - light.blur) / 180.0 * PI);\n// if (spotEffect > spotCosCutoff) {\n// spotEffect = pow(smoothstep(spotCosOuterCutoff, spotCosInnerCutoff, spotEffect), light.exponent);\n// } else {\n// spotEffect = 0.0;\n// }\n\n// return ambient + attenuation * (spotEffect * diffuse + specular);\n// }\n\nvec3 calc_lighting(vec3 position, vec3 normal, vec3 viewDir) {\n vec3 weight = vec3(0.0);\n for (int i = 0; i < MAX_NUM_OF_DIRECTIONAL_LIGHTS; i++) {\n if (i >= u_NumOfDirectionalLights) {\n break;\n }\n weight += calc_directional_light(u_DirectionalLights[i], normal, viewDir);\n }\n // for (int i = 0; i < MAX_NUM_OF_SPOT_LIGHTS; i++) {\n // if (i >= u_NumOfSpotLights) {\n // break;\n // }\n // weight += calc_spot_light(u_SpotLights[i], normal, position, viewDir);\n // }\n return weight;\n}\n",fs:""}),this.registerModule("light",{vs:"#define ambientRatio 0.5\n#define diffuseRatio 0.3\n#define specularRatio 0.2\n\n\nfloat calc_lighting(vec4 pos) {\n\n vec3 worldPos = vec3(pos * u_ModelMatrix);\n\n vec3 worldNormal = a_Normal;\n // //cal light weight\n vec3 viewDir = normalize(u_CameraPosition - worldPos);\n\n vec3 lightDir = normalize(vec3(1, -10.5, 12));\n\n vec3 halfDir = normalize(viewDir+lightDir);\n // //lambert\n float lambert = dot(worldNormal, lightDir);\n //specular\n float specular = pow(max(0.0, dot(worldNormal, halfDir)), 32.0);\n //sum to light weight\n float lightWeight = ambientRatio + diffuseRatio * lambert + specularRatio * specular;\n\n return lightWeight;\n}\n",fs:""}),this.registerModule("picking",{vs:"attribute vec3 a_PickingColor;\nvarying vec4 v_PickingResult;\n\nuniform vec3 u_PickingColor : [0, 0, 0];\nuniform vec3 u_CurrentSelectedId : [0, 0, 0];\nuniform vec4 u_HighlightColor : [0, 0, 0, 0];\nuniform vec4 u_SelectColor : [0, 0, 0, 0];\nuniform float u_PickingStage : 0.0;\nuniform float u_PickingThreshold : 1.0;\nuniform float u_PickingBuffer: 0.0;\nuniform float u_shaderPick;\nuniform float u_EnableSelect: 0.0;\n\n#define PICKING_NONE 0.0\n#define PICKING_ENCODE 1.0\n#define PICKING_HIGHLIGHT 2.0\n#define COLOR_SCALE 1. / 255.\n\n#define NORMAL 0.0\n#define HIGHLIGHT 1.0\n#define SELECT 2.0\n\nbool isVertexPicked(vec3 vertexColor) {\n return\n abs(vertexColor.r - u_PickingColor.r) < u_PickingThreshold &&\n abs(vertexColor.g - u_PickingColor.g) < u_PickingThreshold &&\n abs(vertexColor.b - u_PickingColor.b) < u_PickingThreshold;\n}\n\n// 判断当前点是否已经被 select 选中\nbool isVertexSelected(vec3 vertexColor) {\n return\n abs(vertexColor.r - u_CurrentSelectedId.r) < u_PickingThreshold &&\n abs(vertexColor.g - u_CurrentSelectedId.g) < u_PickingThreshold &&\n abs(vertexColor.b - u_CurrentSelectedId.b) < u_PickingThreshold;\n}\n\nvoid setPickingColor(vec3 pickingColor) {\n if(u_shaderPick < 0.5) {\n return;\n }\n // compares only in highlight stage\n\n v_PickingResult.a = float((u_PickingStage == PICKING_HIGHLIGHT) && isVertexPicked(pickingColor));\n\n // if (u_EnableSelect == 1.0 && u_PickingStage == PICKING_HIGHLIGHT && isVertexSelected(pickingColor)) {\n // // 选中态\n // v_PickingResult.a = SELECT;\n // } else if (u_PickingStage == PICKING_HIGHLIGHT && isVertexPicked(pickingColor)) {\n // // 高亮态\n // v_PickingResult.a = HIGHLIGHT;\n // } else {\n // v_PickingResult.a = NORMAL;\n // }\n\n // Stores the picking color so that the fragment shader can render it during picking\n v_PickingResult.rgb = pickingColor * COLOR_SCALE;\n}\n\nfloat setPickingSize(float x) {\n return u_PickingStage == PICKING_ENCODE ? x + u_PickingBuffer : x;\n}\n\nfloat setPickingOrder(float z) {\n bool selected = bool(v_PickingResult.a);\n return selected ? z + 1. : 0.;\n}\n",fs:"varying vec4 v_PickingResult;\nuniform vec4 u_HighlightColor : [0, 0, 0, 0];\nuniform vec4 u_SelectColor : [0, 0, 0, 0];\nuniform float u_PickingStage : 0.0;\nuniform float u_shaderPick;\n\nuniform float u_activeMix: 0;\n\n#define PICKING_NONE 0.0\n#define PICKING_ENCODE 1.0\n#define PICKING_HIGHLIGHT 2.0\n#define COLOR_SCALE 1. / 255.\n\n#define HIGHLIGHT 1.0\n#define SELECT 2.0\n\n/*\n * Returns highlight color if this item is selected.\n */\nvec4 filterHighlightColor(vec4 color, float weight) {\n // float selected = v_PickingResult.a;\n bool selected = bool(v_PickingResult.a);\n\n // if (selected == SELECT) {\n if (selected) {\n // // 点击选中状态\n // vec4 selectColor = u_SelectColor * COLOR_SCALE;\n // return selectColor;\n // } else if (selected == HIGHLIGHT) {\n // // hover 高亮状态\n vec4 highLightColor = u_HighlightColor * COLOR_SCALE;\n\n float highLightAlpha = highLightColor.a;\n float highLightRatio = highLightAlpha / (highLightAlpha + color.a * (1.0 - highLightAlpha));\n\n vec3 resultRGB = mix(color.rgb, highLightColor.rgb, highLightRatio);\n return vec4(mix(resultRGB * weight, color.rgb, u_activeMix), color.a);\n } else {\n return color;\n }\n}\n\n/*\n * Returns picking color if picking enabled else unmodified argument.\n */\nvec4 filterPickingColor(vec4 color) {\n vec3 pickingColor = v_PickingResult.rgb;\n if (u_PickingStage == PICKING_ENCODE && length(pickingColor) < 0.001) {\n discard;\n }\n return u_PickingStage == PICKING_ENCODE ? vec4(pickingColor, step(0.001,color.a)): color;\n}\n\n/*\n * Returns picking color if picking is enabled if not\n * highlight color if this item is selected, otherwise unmodified argument.\n */\nvec4 filterColor(vec4 color) {\n // TODO: 过滤多余的 shader 计算\n // return color;\n if(u_shaderPick < 0.5) {\n return color; // 暂时去除 直接取消计算在选中时拖拽地图会有问题\n } else {\n return filterPickingColor(filterHighlightColor(color, 1.0));\n }\n \n}\n\nvec4 filterColorAlpha(vec4 color, float alpha) {\n // TODO: 过滤多余的 shader 计算\n // return color;\n if(u_shaderPick < 0.5) {\n return color; // 暂时去除 直接取消计算在选中时拖拽地图会有问题\n } else {\n return filterPickingColor(filterHighlightColor(color, alpha));\n }\n}\n\n"}),this.registerModule("styleMapping",{vs:"attribute float a_vertexId;\n\nuniform mat4 u_cellTypeLayout; // 描述数据纹理 cell 结构的矩阵\nuniform sampler2D u_dataTexture; // 数据纹理\n\nbool hasOpacity() { // 判断 cell 中是否存在 opacity 的数据\n return u_cellTypeLayout[1][0] > 0.0 && u_cellTypeLayout[3][3] > 0.0;\n}\n\nbool hasStrokeOpacity() { // 判断 cell 中是否存在 strokeOpacity 的数据\n return u_cellTypeLayout[1][1] > 0.0 && u_cellTypeLayout[3][3] > 0.0;\n}\n\nbool hasStrokeWidth() { // 判断 cell 中是否存在 strokeWidth 的数据\n return u_cellTypeLayout[1][2] > 0.0 && u_cellTypeLayout[3][3] > 0.0;\n}\n\nbool hasStroke() { // 判断 cell 中是否存在 stroke 的数据\n return u_cellTypeLayout[1][3] > 0.0 && u_cellTypeLayout[3][3] > 0.0;\n}\n\nbool hasOffsets() { // 判断 cell 中是否存在 offsets 的数据\n return u_cellTypeLayout[2][0] > 0.0 && u_cellTypeLayout[3][3] > 0.0;\n}\n\nbool hasThetaOffset() { // 判断 cell 中是否存在 thetaOffset 的数据\n return u_cellTypeLayout[2][1] > 0.0 && u_cellTypeLayout[3][3] > 0.0;\n}\n\n// 根据坐标位置先是计算 uv ,然后根据 uv 从数据纹理中取值\nfloat pos2value(vec2 pos, float columnWidth, float rowHeight) {\n float u = (pos.r - 1.0) * columnWidth + columnWidth/2.0;\n float v = 1.0 - ((pos.g - 1.0) * rowHeight + rowHeight/2.0);\n return texture2D(u_dataTexture, vec2(u, v)).r;\n}\n\n/*\n currentRow 当前行\n currentColumn 当前列\n columnCount 有多少列\n nextStep 需要计算当前 cell 后的第几个 cell (当前 cell 则 nextStep = 0\n*/\nvec2 nextPos(float currentRow, float currentColumn, float columnCount, float nextStep) {\n float nextColumn = currentColumn;\n float nextRow = currentRow;\n if(currentColumn + nextStep <= columnCount){\n nextColumn = currentColumn + nextStep;\n } else {\n nextColumn = mod(currentColumn + nextStep, columnCount); // 不会出现跨两行\n nextRow = currentRow + 1.0;\n }\n return vec2(nextColumn, nextRow);\n}\n\n// 计算当前单个 cell 的大小\nfloat calCellCount() { \n // u_cellTypeLayout\n // cal_height, WIDTH, 0.0, 0.0, // rowCount columnCount - 几行几列\n // 1.0, 1.0, 1.0, 0.0, // opacity strokeOpacity strokeWidth stroke - 1.0 表示有数据映射、0.0 表示没有\n // 1.0, 1.0, 0.0, 0.0, // offsets thetaOffset\n // 0.0, 0.0, 0.0, 0.0\n \n return u_cellTypeLayout[1][0] + // opacity\n u_cellTypeLayout[1][1] + // strokeOpacity\n u_cellTypeLayout[1][2] + // strokeWidth\n u_cellTypeLayout[1][3] * 4.0 + // stroke\n u_cellTypeLayout[2][0] * 2.0 + // offsets\n u_cellTypeLayout[2][1]; // thetaOffset\n}",fs:""}),this.registerModule("styleMappingCalThetaOffset",{vs:"\n// 计算 thetaOffset 和标示在 cell 中取值位置的偏移量 textureOffset\nvec2 calThetaOffsetAndOffset(float cellCurrentRow, float cellCurrentColumn, float columnCount, float textureOffset, float columnWidth, float rowHeight) {\n if(!hasThetaOffset()) { // 数据纹理中不存在 thetaOffset 的时候取默认值(用户在 style 中传入的是常量)\n return vec2(u_thetaOffset, textureOffset);\n } else {\n vec2 valuePos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n float textureThetaOffset = pos2value(valuePos, columnWidth, rowHeight);\n return vec2(textureThetaOffset, textureOffset + 1.0);\n }\n}\n",fs:""}),this.registerModule("styleMappingCalOpacity",{vs:"\n// 计算 opacity 和标示在 cell 中取值位置的偏移量 textureOffset\nvec2 calOpacityAndOffset(float cellCurrentRow, float cellCurrentColumn, float columnCount, float textureOffset, float columnWidth, float rowHeight) {\n if(!hasOpacity()) { // 数据纹理中不存在 opacity 的时候取默认值(用户在 style 中传入的是常量)\n return vec2(u_opacity, textureOffset);\n } else {\n vec2 valuePos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n float textureOpacity = pos2value(valuePos, columnWidth, rowHeight);\n return vec2(textureOpacity, textureOffset + 1.0);\n }\n}\n",fs:""}),this.registerModule("styleMappingCalStrokeOpacity",{vs:"\n// 计算 strokeOpaicty 和标示在 cell 中取值位置的偏移量 textureOffset\nvec2 calStrokeOpacityAndOffset(float cellCurrentRow, float cellCurrentColumn, float columnCount, float textureOffset, float columnWidth, float rowHeight) {\n if(!hasStrokeOpacity()) {\n return vec2(u_stroke_opacity, textureOffset);\n } else {\n vec2 valuePos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n float textureStrokeOpacity = pos2value(valuePos, columnWidth, rowHeight);\n return vec2(textureStrokeOpacity, textureOffset + 1.0);\n }\n}\n",fs:""}),this.registerModule("styleMappingCalStrokeWidth",{vs:"\n// 计算 strokeWidth 和标示在 cell 中取值位置的偏移量 textureOffset\nvec2 calStrokeWidthAndOffset(float cellCurrentRow, float cellCurrentColumn, float columnCount, float textureOffset, float columnWidth, float rowHeight) {\n if(!hasStrokeWidth()) {\n return vec2(u_stroke_width, textureOffset);\n } else {\n vec2 valuePos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n float textureStrokeWidth = pos2value(valuePos, columnWidth, rowHeight);\n return vec2(textureStrokeWidth, textureOffset + 1.0);\n }\n}\n",fs:""})}},{key:"registerModule",value:function(t,e){if(!this.rawContentCache[t]){var n=e.vs,r=e.fs,i=e.uniforms,o=Object(d.extractUniforms)(n),a=o.content,s=o.uniforms,u=Object(d.extractUniforms)(r),l=u.content,c=u.uniforms;this.rawContentCache[t]={fs:l,uniforms:g(g(g({},s),c),i),vs:a}}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(t){var e=this;if(this.moduleCache[t])return this.moduleCache[t];var n=this.rawContentCache[t].vs,r=this.rawContentCache[t].fs,i=this.processModule(n,[],"vs"),o=i.content,a=i.includeList,s=this.processModule(r,[],"fs"),u=s.content,l=s.includeList,c=u,f=h()(a.concat(l).concat(t)).reduce((function(t,n){return g(g({},t),e.rawContentCache[n].uniforms)}),{});return m.test(u)||(c="#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n #else\n precision mediump float;\n#endif\n"+u),this.moduleCache[t]={fs:c.trim(),uniforms:f,vs:o.trim()},this.moduleCache[t]}},{key:"processModule",value:function(t,e,n){var r=this;return{content:t.replace(y,(function(t,i){var o=i.split(" ")[0].replace(/"/g,"");if(e.indexOf(o)>-1)return"";var a=r.rawContentCache[o][n];return e.push(o),r.processModule(a,e,n).content})),includeList:e}}}]),t}())||r},function(t,e,n){var r=n(2122);t.exports=function(t){return t&&t.length?r(t):[]}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return b}));var r,i=n(16),o=n.n(i),a=n(17),s=n.n(a),u=n(390),l=n.n(u),c=n(50),h=n.n(c),f=n(51),d=n.n(f),p=n(28),g=n.n(p),v=n(21),m=(n(94),n(391));function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}var b=Object(v.injectable)()(r=function(t){h()(n,t);var e=y(n);function n(){return o()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(t,e){l()(g()(n.prototype),"init",this).call(this,t,e)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}]),n}(m.default))||r},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return T}));var r,i,o,a,s,u=n(115),l=n.n(u),c=n(47),h=n.n(c),f=n(16),d=n.n(f),p=n(17),g=n.n(p),v=n(4),m=n.n(v),y=n(44),b=n.n(y),_=(n(196),n(49)),x=n.n(_),w=n(21),O=(n(94),n(29)),S=n(220);function C(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var T=(r=Object(w.injectable)(),i=Object(w.inject)(O.TYPES.IPostProcessor),r((a=function(){function t(){d()(this,t),m()(this,"passes",[]),h()(this,"postProcessor",s,this),m()(this,"layer",void 0),m()(this,"renderFlag",void 0),m()(this,"width",0),m()(this,"height",0)}var e;return g()(t,[{key:"setLayer",value:function(t){this.layer=t}},{key:"setRenderFlag",value:function(t){this.renderFlag=t}},{key:"getRenderFlag",value:function(){return this.renderFlag}},{key:"getPostProcessor",value:function(){return this.postProcessor}},{key:"render",value:(e=l()(x.a.mark((function t(){var e,n,r;return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=C(this.passes),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return r=n.value,t.next=7,r.render(this.layer);case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:return t.next=19,this.postProcessor.render(this.layer);case 19:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))),function(){return e.apply(this,arguments)})},{key:"resize",value:function(t,e){this.width===t&&this.height===e||(this.postProcessor.resize(t,e),this.width=t,this.height=e)}},{key:"add",value:function(t,e){t.getType()===S.PassType.PostProcessing?this.postProcessor.add(t,this.layer,e):(t.init(this.layer,e),this.passes.push(t))}},{key:"insert",value:function(t,e,n){t.init(this.layer,e),this.passes.splice(n,0,t)}},{key:"destroy",value:function(){this.passes.length=0}}]),t}(),s=b()(a.prototype,"postProcessor",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=a))||o)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return j}));var r,i=n(121),o=n.n(i),a=n(16),s=n.n(a),u=n(17),l=n.n(u),c=n(14),h=n.n(c),f=n(390),d=n.n(f),p=n(50),g=n.n(p),v=n(51),m=n.n(v),y=n(28),b=n.n(y),_=n(4),x=n.n(_),w=n(37),O=n(21),S=(n(94),n(156)),C=n(93),E=n(220),T=n(391);function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){x()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function I(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=b()(t);if(e){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}var j=Object(O.injectable)()(r=function(t){g()(n,t);var e=I(n);function n(){var t;s()(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),x()(h()(t),"pickingFBO",void 0),x()(h()(t),"layer",void 0),x()(h()(t),"width",0),x()(h()(t),"height",0),x()(h()(t),"alreadyInRendering",!1),x()(h()(t),"pickFromPickingFBO",(function(e){var n=e.x,r=e.y,i=e.lngLat,o=e.type;if(t.layer.isVisible()&&t.layer.needPick(o)){var a,s=t.rendererService,u=s.getViewportSize,l=s.readPixels,c=s.useFramebuffer,h=u(),f=h.width,d=h.height,p=t.layer.getLayerConfig(),g=p.enableHighlight,v=p.enableSelect,m=n*w.DOM.DPR,y=r*w.DOM.DPR;if(!(m>f||m<0||y>d||y<0))c(t.pickingFBO,(function(){var e;if(0!==(a=l({x:Math.round(m),y:Math.round(d-(r+1)*w.DOM.DPR),width:1,height:1,data:new Uint8Array(4),framebuffer:t.pickingFBO}))[0]||0!==a[1]||0!==a[2]){var s=Object(w.decodePickingColor)(a),u=t.layer.getSource().getFeatureById(s),c={x:n,y:r,type:o,lngLat:i,featureId:s,feature:u};u&&(t.layer.setCurrentPickId(s),t.triggerHoverOnLayer(c))}else{var h={x:n,y:r,lngLat:i,type:null===t.layer.getCurrentPickId()?"un"+o:"mouseout",featureId:null,feature:null};t.triggerHoverOnLayer(M(M({},h),{},{type:"unpick"})),t.triggerHoverOnLayer(h),t.layer.setCurrentPickId(null)}g&&t.highlightPickedFeature(a),v&&"click"===o&&(null===(e=a)||void 0===e?void 0:e.toString())!==[0,0,0,0].toString()&&t.selectFeature(a)}))}})),t}return l()(n,[{key:"getType",value:function(){return E.PassType.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(t,e){d()(b()(n.prototype),"init",this).call(this,t,e),this.layer=t;var r=this.rendererService,i=r.createTexture2D,o=r.createFramebuffer,a=(0,r.getViewportSize)(),s=a.width,u=a.height;this.pickingFBO=o({color:i({width:s,height:u,wrapS:C.gl.CLAMP_TO_EDGE,wrapT:C.gl.CLAMP_TO_EDGE})}),this.interactionService.on(S.InteractionEvent.Hover,this.pickFromPickingFBO),this.interactionService.on(S.InteractionEvent.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(S.InteractionEvent.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(t){var e=this;if(!this.alreadyInRendering){var n=this.rendererService,r=n.getViewportSize,i=n.useFramebuffer,o=n.clear,a=r(),s=a.width,u=a.height;this.alreadyInRendering=!0,this.width===s&&this.height===u||(this.pickingFBO.resize({width:s,height:u}),this.width=s,this.height=u),i(this.pickingFBO,(function(){o({framebuffer:e.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var n=e.layer.multiPassRenderer.getRenderFlag();e.layer.multiPassRenderer.setRenderFlag(!1),t.hooks.beforePickingEncode.call(),t.render(),t.hooks.afterPickingEncode.call(),e.layer.multiPassRenderer.setRenderFlag(n),e.alreadyInRendering=!1}))}}},{key:"triggerHoverOnLayer",value:function(t){this.layer.emit(t.type,t)}},{key:"highlightPickedFeature",value:function(t){var e=o()(t,3),n=e[0],r=e[1],i=e[2];this.layer.hooks.beforeHighlight.call([n,r,i]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(t){var e=o()(t,3),n=e[0],r=e[1],i=e[2];this.layer.hooks.beforeSelect.call([n,r,i]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(t){var e=t.featureId,n=Object(w.encodePickingColor)(e);this.selectFeature(new Uint8Array(n))}},{key:"highlightFeatureHandle",value:function(t){var e=t.featureId,n=Object(w.encodePickingColor)(e);this.highlightPickedFeature(new Uint8Array(n))}}]),n}(T.default))||r},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return O}));var r,i=n(4),o=n.n(i),a=n(16),s=n.n(a),u=n(17),l=n.n(u),c=n(50),h=n.n(c),f=n(51),d=n.n(f),p=n(28),g=n.n(p),v=n(273),m=n.n(v),y=n(21),b=(n(94),n(162));function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}var O=Object(y.injectable)()(r=function(t){h()(n,t);var e=w(n);function n(){return s()(this,n),e.apply(this,arguments)}return l()(n,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:"varying vec2 v_UV;\n\nuniform float u_BloomFinal: 0.0;\nuniform sampler2D u_Texture;\nuniform sampler2D u_Texture2;\n\nuniform vec2 u_ViewportSize: [1.0, 1.0];\nuniform float u_radius: 5.0;\nuniform float u_intensity: 0.3;\nuniform float u_baseRadio: 0.5;\n\n// https://github.com/Jam3/glsl-fast-gaussian-blur/blob/master/9.glsl\nvec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) {\n vec4 color = vec4(0.0);\n vec2 off1 = vec2(1.3846153846) * direction;\n vec2 off2 = vec2(3.2307692308) * direction;\n color += texture2D(image, uv) * 0.2270270270;\n color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162;\n color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162;\n color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703;\n color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703;\n return color;\n}\n\nfloat luminance(vec4 color) {\n return 0.2125 * color.r + 0.7154 * color.g + 0.0721 * color.b;\n}\n\nvoid main() {\n // vec4 baseColor = texture2D(u_Texture, v_UV);\n\n float r = sqrt(u_radius);\n\n vec4 c1 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(u_radius, 0.0));\n // c1 *= luminance(c1);\n vec4 c2 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(0.0, u_radius));\n // c2 *= luminance(c2);\n vec4 c3 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(r, r));\n // c3 *= luminance(c3);\n vec4 c4 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(r, -r));\n // c4 *= luminance(c4);\n vec4 inbloomColor = (c1 + c2 + c3 + c4) * 0.25;\n\n // float lum = luminance(inbloomColor);\n // inbloomColor.rgb *= lum;\n\n if(u_BloomFinal > 0.0) {\n vec4 baseColor = texture2D(u_Texture2, v_UV);\n float baselum = luminance(baseColor);\n gl_FragColor = mix(inbloomColor, baseColor, u_baseRadio);\n if(baselum <= 0.2) {\n gl_FragColor = inbloomColor * u_intensity;\n }\n } else {\n gl_FragColor = inbloomColor;\n }\n}"});var t=this.shaderModuleService.getModule("blur-pass"),e=t.vs,n=t.fs,r=t.uniforms,i=this.rendererService.getViewportSize(),o=i.width,a=i.height;return{vs:e,fs:n,uniforms:x(x({},r),{},{u_ViewportSize:[o,a]})}}},{key:"convertOptionsToUniforms",value:function(t){var e={};return m()(t.bloomRadius)||(e.u_radius=t.bloomRadius),m()(t.bloomIntensity)||(e.u_intensity=t.bloomIntensity),m()(t.bloomBaseRadio)||(e.u_baseRadio=t.bloomBaseRadio),e}}]),n}(b.default))||r},function(t,e,n){var r=n(2145),i=n(2146)((function(t,e,n){return e=e.toLowerCase(),t+(n?r(e):e)}));t.exports=i},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return O}));var r,i=n(4),o=n.n(i),a=n(16),s=n.n(a),u=n(17),l=n.n(u),c=n(50),h=n.n(c),f=n(51),d=n.n(f),p=n(28),g=n.n(p),v=n(273),m=n.n(v),y=n(21),b=(n(94),n(162));function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}var O=Object(y.injectable)()(r=function(t){h()(n,t);var e=w(n);function n(){return s()(this,n),e.apply(this,arguments)}return l()(n,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:"varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\n\nuniform vec2 u_ViewportSize: [1.0, 1.0];\nuniform vec2 u_BlurDir: [1.0, 0.0];\n\n// https://github.com/Jam3/glsl-fast-gaussian-blur/blob/master/9.glsl\nvec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) {\n vec4 color = vec4(0.0);\n vec2 off1 = vec2(1.3846153846) * direction;\n vec2 off2 = vec2(3.2307692308) * direction;\n color += texture2D(image, uv) * 0.2270270270;\n color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162;\n color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162;\n color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703;\n color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703;\n return color;\n}\n\nvoid main() {\n gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir);\n}"});var t=this.shaderModuleService.getModule("blur-pass"),e=t.vs,n=t.fs,r=t.uniforms,i=this.rendererService.getViewportSize(),o=i.width,a=i.height;return{vs:e,fs:n,uniforms:x(x({},r),{},{u_ViewportSize:[o,a]})}}},{key:"convertOptionsToUniforms",value:function(t){var e={};return m()(t.blurRadius)||(e.u_BlurDir=[t.blurRadius,0]),e}}]),n}(b.default))||r},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return O}));var r,i=n(4),o=n.n(i),a=n(16),s=n.n(a),u=n(17),l=n.n(u),c=n(50),h=n.n(c),f=n(51),d=n.n(f),p=n(28),g=n.n(p),v=n(273),m=n.n(v),y=n(21),b=n(162);function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}var O=Object(y.injectable)()(r=function(t){h()(n,t);var e=w(n);function n(){return s()(this,n),e.apply(this,arguments)}return l()(n,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:"varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\n\nuniform vec2 u_ViewportSize: [1.0, 1.0];\nuniform vec2 u_BlurDir: [1.0, 0.0];\n\n// https://github.com/Jam3/glsl-fast-gaussian-blur/blob/master/9.glsl\nvec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) {\n vec4 color = vec4(0.0);\n vec2 off1 = vec2(1.3846153846) * direction;\n vec2 off2 = vec2(3.2307692308) * direction;\n color += texture2D(image, uv) * 0.2270270270;\n color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162;\n color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162;\n color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703;\n color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703;\n return color;\n}\n\nvoid main() {\n gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir);\n}"});var t=this.shaderModuleService.getModule("blur-pass"),e=t.vs,n=t.fs,r=t.uniforms,i=this.rendererService.getViewportSize(),o=i.width,a=i.height;return{vs:e,fs:n,uniforms:x(x({},r),{},{u_ViewportSize:[o,a]})}}},{key:"convertOptionsToUniforms",value:function(t){var e={};return m()(t.blurRadius)||(e.u_BlurDir=[0,t.blurRadius]),e}}]),n}(b.default))||r},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return x}));var r,i=n(4),o=n.n(i),a=n(16),s=n.n(a),u=n(17),l=n.n(u),c=n(50),h=n.n(c),f=n(51),d=n.n(f),p=n(28),g=n.n(p),v=n(21),m=(n(94),n(162));function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}var x=Object(v.injectable)()(r=function(t){h()(n,t);var e=_(n);function n(){return s()(this,n),e.apply(this,arguments)}return l()(n,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("colorhalftone-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:'varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\nuniform vec2 u_ViewportSize: [1.0, 1.0];\nuniform vec2 u_Center : [0.5, 0.5];\nuniform float u_Angle : 0;\nuniform float u_Size : 8;\n\n#pragma include "common"\n\nfloat scale = PI / u_Size;\n\nfloat pattern(float u_Angle, vec2 texSize, vec2 texCoord) {\n float s = sin(u_Angle), c = cos(u_Angle);\n vec2 tex = texCoord * texSize - u_Center * texSize;\n vec2 point = vec2(\n c * tex.x - s * tex.y,\n s * tex.x + c * tex.y\n ) * scale;\n return (sin(point.x) * sin(point.y)) * 4.0;\n}\n\n// https://github.com/evanw/glfx.js/blob/master/src/filters/fun/colorhalftone.js\nvec4 colorHalftone_filterColor(vec4 color, vec2 texSize, vec2 texCoord) {\n vec3 cmy = 1.0 - color.rgb;\n float k = min(cmy.x, min(cmy.y, cmy.z));\n cmy = (cmy - k) / (1.0 - k);\n cmy = clamp(\n cmy * 10.0 - 3.0 + vec3(\n pattern(u_Angle + 0.26179, texSize, texCoord),\n pattern(u_Angle + 1.30899, texSize, texCoord),\n pattern(u_Angle, texSize, texCoord)\n ),\n 0.0,\n 1.0\n );\n k = clamp(k * 10.0 - 5.0 + pattern(u_Angle + 0.78539, texSize, texCoord), 0.0, 1.0);\n return vec4(1.0 - cmy - k, color.a);\n}\n\nvoid main() {\n gl_FragColor = vec4(texture2D(u_Texture, v_UV));\n gl_FragColor = colorHalftone_filterColor(gl_FragColor, u_ViewportSize, v_UV);\n}'});var t=this.shaderModuleService.getModule("colorhalftone-pass"),e=t.vs,n=t.fs,r=t.uniforms,i=this.rendererService.getViewportSize(),o=i.width,a=i.height;return{vs:e,fs:n,uniforms:b(b({},r),{},{u_ViewportSize:[o,a]})}}}]),n}(m.default))||r},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return m}));var r,i=n(16),o=n.n(i),a=n(17),s=n.n(a),u=n(50),l=n.n(u),c=n(51),h=n.n(c),f=n(28),d=n.n(f),p=n(21),g=(n(94),n(162));function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h()(this,n)}}var m=Object(p.injectable)()(r=function(t){l()(n,t);var e=v(n);function n(){return o()(this,n),e.apply(this,arguments)}return s()(n,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("copy-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:"varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\n\nvoid main() {\n gl_FragColor = vec4(texture2D(u_Texture, v_UV));\n}"}),this.shaderModuleService.getModule("copy-pass")}}]),n}(g.default))||r},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return x}));var r,i=n(4),o=n.n(i),a=n(16),s=n.n(a),u=n(17),l=n.n(u),c=n(50),h=n.n(c),f=n(51),d=n.n(f),p=n(28),g=n.n(p),v=n(21),m=(n(94),n(162));function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}var x=Object(v.injectable)()(r=function(t){h()(n,t);var e=_(n);function n(){return s()(this,n),e.apply(this,arguments)}return l()(n,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("hexagonalpixelate-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:"varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\nuniform vec2 u_ViewportSize: [1.0, 1.0];\nuniform vec2 u_Center : [0.5, 0.5];\nuniform float u_Scale : 10;\n\n// https://github.com/evanw/glfx.js/blob/master/src/filters/fun/hexagonalpixelate.js\nvec4 hexagonalPixelate_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoord) {\n vec2 tex = (texCoord * texSize - u_Center * texSize) / u_Scale;\n tex.y /= 0.866025404;\n tex.x -= tex.y * 0.5;\n vec2 a;\n if (tex.x + tex.y - floor(tex.x) - floor(tex.y) < 1.0) {\n a = vec2(floor(tex.x), floor(tex.y));\n }\n else a = vec2(ceil(tex.x), ceil(tex.y));\n vec2 b = vec2(ceil(tex.x), floor(tex.y));\n vec2 c = vec2(floor(tex.x), ceil(tex.y));\n vec3 TEX = vec3(tex.x, tex.y, 1.0 - tex.x - tex.y);\n vec3 A = vec3(a.x, a.y, 1.0 - a.x - a.y);\n vec3 B = vec3(b.x, b.y, 1.0 - b.x - b.y);\n vec3 C = vec3(c.x, c.y, 1.0 - c.x - c.y);\n float alen = length(TEX - A);\n float blen = length(TEX - B);\n float clen = length(TEX - C);\n vec2 choice;\n if (alen < blen) {\n if (alen < clen) choice = a;\n else choice = c;\n } else {\n if (blen < clen) choice = b;\n else choice = c;\n }\n choice.x += choice.y * 0.5;\n choice.y *= 0.866025404;\n choice *= u_Scale / texSize;\n return texture2D(texture, choice + u_Center);\n}\n\nvoid main() {\n gl_FragColor = vec4(texture2D(u_Texture, v_UV));\n gl_FragColor = hexagonalPixelate_sampleColor(u_Texture, u_ViewportSize, v_UV);\n}"});var t=this.shaderModuleService.getModule("hexagonalpixelate-pass"),e=t.vs,n=t.fs,r=t.uniforms,i=this.rendererService.getViewportSize(),o=i.width,a=i.height;return{vs:e,fs:n,uniforms:b(b({},r),{},{u_ViewportSize:[o,a]})}}}]),n}(m.default))||r},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return x}));var r,i=n(4),o=n.n(i),a=n(16),s=n.n(a),u=n(17),l=n.n(u),c=n(50),h=n.n(c),f=n(51),d=n.n(f),p=n(28),g=n.n(p),v=n(21),m=(n(94),n(162));function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}var x=Object(v.injectable)()(r=function(t){h()(n,t);var e=_(n);function n(){return s()(this,n),e.apply(this,arguments)}return l()(n,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("ink-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:"varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\nuniform vec2 u_ViewportSize: [1.0, 1.0];\nuniform float u_Strength : 0.6;\n\nvec4 ink_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoord) {\n vec2 dx = vec2(1.0 / texSize.x, 0.0);\n vec2 dy = vec2(0.0, 1.0 / texSize.y);\n vec4 color = texture2D(texture, texCoord);\n float bigTotal = 0.0;\n float smallTotal = 0.0;\n vec3 bigAverage = vec3(0.0);\n vec3 smallAverage = vec3(0.0);\n for (float x = -2.0; x <= 2.0; x += 1.0) {\n for (float y = -2.0; y <= 2.0; y += 1.0) {\n vec3 sample = texture2D(texture, texCoord + dx * x + dy * y).rgb;\n bigAverage += sample;\n bigTotal += 1.0;\n if (abs(x) + abs(y) < 2.0) {\n smallAverage += sample;\n smallTotal += 1.0;\n }\n }\n }\n vec3 edge = max(vec3(0.0), bigAverage / bigTotal - smallAverage / smallTotal);\n float power = u_Strength * u_Strength * u_Strength * u_Strength * u_Strength;\n return vec4(color.rgb - dot(edge, edge) * power * 100000.0, color.a);\n}\n\nvoid main() {\n gl_FragColor = vec4(texture2D(u_Texture, v_UV));\n gl_FragColor = ink_sampleColor(u_Texture, u_ViewportSize, v_UV);\n}"});var t=this.shaderModuleService.getModule("ink-pass"),e=t.vs,n=t.fs,r=t.uniforms,i=this.rendererService.getViewportSize(),o=i.width,a=i.height;return{vs:e,fs:n,uniforms:b(b({},r),{},{u_ViewportSize:[o,a]})}}}]),n}(m.default))||r},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return m}));var r,i=n(16),o=n.n(i),a=n(17),s=n.n(a),u=n(50),l=n.n(u),c=n(51),h=n.n(c),f=n(28),d=n.n(f),p=n(21),g=(n(94),n(162));function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h()(this,n)}}var m=Object(p.injectable)()(r=function(t){l()(n,t);var e=v(n);function n(){return o()(this,n),e.apply(this,arguments)}return s()(n,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("noise-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:"varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\nuniform float u_Amount : 0.5;\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\n\n// https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/noise.js\nvec4 noise_filterColor(vec4 color, vec2 texCoord) {\n float diff = (rand(texCoord) - 0.5) * u_Amount;\n color.r += diff;\n color.g += diff;\n color.b += diff;\n return color;\n}\n\nvoid main() {\n gl_FragColor = vec4(texture2D(u_Texture, v_UV));\n gl_FragColor = noise_filterColor(gl_FragColor, v_UV);\n}"}),this.shaderModuleService.getModule("noise-pass")}}]),n}(g.default))||r},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return m}));var r,i=n(16),o=n.n(i),a=n(17),s=n.n(a),u=n(50),l=n.n(u),c=n(51),h=n.n(c),f=n(28),d=n.n(f),p=n(21),g=(n(94),n(162));function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h()(this,n)}}var m=Object(p.injectable)()(r=function(t){l()(n,t);var e=v(n);function n(){return o()(this,n),e.apply(this,arguments)}return s()(n,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("sepia-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:"varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\n\nuniform float u_Amount : 0.5;\n\n// https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/sepia.js\nvec4 sepia_filterColor(vec4 color) {\n float r = color.r;\n float g = color.g;\n float b = color.b;\n color.r =\n min(1.0, (r * (1.0 - (0.607 * u_Amount))) + (g * (0.769 * u_Amount)) + (b * (0.189 * u_Amount)));\n color.g = min(1.0, (r * 0.349 * u_Amount) + (g * (1.0 - (0.314 * u_Amount))) + (b * 0.168 * u_Amount));\n color.b = min(1.0, (r * 0.272 * u_Amount) + (g * 0.534 * u_Amount) + (b * (1.0 - (0.869 * u_Amount))));\n return color;\n}\n\nvoid main() {\n gl_FragColor = vec4(texture2D(u_Texture, v_UV));\n gl_FragColor = sepia_filterColor(gl_FragColor);\n}"}),this.shaderModuleService.getModule("sepia-pass")}}]),n}(g.default))||r},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return E}));var r,i,o,a,s,u,l=n(115),c=n.n(l),h=n(47),f=n.n(h),d=n(16),p=n.n(d),g=n(17),v=n.n(g),m=n(4),y=n.n(m),b=n(44),_=n.n(b),x=(n(196),n(49)),w=n.n(x),O=n(21),S=(n(94),n(29)),C=n(93),E=(r=Object(O.injectable)(),i=Object(O.inject)(S.TYPES.IRendererService),o=Object(O.postConstruct)(),r((s=function(){function t(){p()(this,t),f()(this,"rendererService",u,this),y()(this,"passes",[]),y()(this,"readFBO",void 0),y()(this,"writeFBO",void 0)}var e,n;return v()(t,[{key:"getReadFBO",value:function(){return this.readFBO}},{key:"getWriteFBO",value:function(){return this.writeFBO}},{key:"getCurrentFBOTex",value:function(){var t=this.rendererService,e=t.getViewportSize,n=t.createTexture2D,r=e();return n({x:0,y:0,width:r.width,height:r.height,copy:!0})}},{key:"getReadFBOTex",value:function(){var t=this,e=this.rendererService.useFramebuffer;return new Promise((function(n,r){e(t.readFBO,c()(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n(t.getCurrentFBOTex());case 1:case"end":return e.stop()}}),e)}))))}))}},{key:"renderBloomPass",value:(n=c()(w.a.mark((function t(e,n){var r,i;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getReadFBOTex();case 2:r=t.sent,i=0;case 4:if(!(i<4)){t.next=11;break}return t.next=7,n.render(e,r);case 7:this.swap(),i++,t.next=4;break;case 11:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"render",value:(e=c()(w.a.mark((function t(e){var n,r;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=0;case 1:if(!(n<this.passes.length)){t.next=15;break}if((r=this.passes[n]).setRenderToScreen(this.isLastEnabledPass(n)),"bloom"!==r.getName()){t.next=9;break}return t.next=7,this.renderBloomPass(e,r);case 7:t.next=12;break;case 9:return t.next=11,r.render(e);case 11:n!==this.passes.length-1&&this.swap();case 12:n++,t.next=1;break;case 15:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"resize",value:function(t,e){this.readFBO.resize({width:t,height:e}),this.writeFBO.resize({width:t,height:e})}},{key:"add",value:function(t,e,n){t.init(e,n),this.passes.push(t)}},{key:"insert",value:function(t,e,n,r){t.init(n,r),this.passes.splice(e,0,t)}},{key:"getPostProcessingPassByName",value:function(t){return this.passes.find((function(e){return e.getName()===t}))}},{key:"init",value:function(){var t=this.rendererService,e=t.createFramebuffer,n=t.createTexture2D;this.readFBO=e({color:n({width:1,height:1,wrapS:C.gl.CLAMP_TO_EDGE,wrapT:C.gl.CLAMP_TO_EDGE})}),this.writeFBO=e({color:n({width:1,height:1,wrapS:C.gl.CLAMP_TO_EDGE,wrapT:C.gl.CLAMP_TO_EDGE})})}},{key:"isLastEnabledPass",value:function(t){for(var e=t+1;e<this.passes.length;e++)if(this.passes[e].isEnabled())return!1;return!0}},{key:"swap",value:function(){var t=this.readFBO;this.readFBO=this.writeFBO,this.writeFBO=t}}]),t}(),u=_()(s.prototype,"rendererService",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_()(s.prototype,"init",[o],Object.getOwnPropertyDescriptor(s.prototype,"init"),s.prototype),a=s))||a)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return _}));var r,i=n(16),o=n.n(i),a=n(17),s=n.n(a),u=n(390),l=n.n(u),c=n(50),h=n.n(c),f=n(51),d=n.n(f),p=n(28),g=n.n(p),v=n(21),m=(n(94),n(220)),y=n(391);function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}var _=Object(v.injectable)()(r=function(t){h()(n,t);var e=b(n);function n(){return o()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getType",value:function(){return m.PassType.Normal}},{key:"getName",value:function(){return"render"}},{key:"init",value:function(t,e){l()(g()(n.prototype),"init",this).call(this,t,e)}},{key:"render",value:function(t){var e=this.rendererService,n=e.useFramebuffer,r=e.clear,i=t.multiPassRenderer.getPostProcessor().getReadFBO();n(i,(function(){r({color:[0,0,0,0],depth:1,stencil:0,framebuffer:i}),t.multiPassRenderer.setRenderFlag(!1),t.models.forEach((function(e){e.draw({uniforms:t.layerModel.getUninforms()})})),t.multiPassRenderer.setRenderFlag(!0)}))}}]),n}(y.default))||r},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return z}));var r,i,o,a,s,u=n(47),l=n.n(u),c=n(16),h=n.n(c),f=n(17),d=n.n(f),p=n(14),g=n.n(p),v=n(390),m=n.n(v),y=n(50),b=n.n(y),_=n(51),x=n.n(_),w=n(28),O=n.n(w),S=n(4),C=n.n(S),E=n(44),T=n.n(E),A=(n(196),n(37)),M=n(21),I=(n(94),n(29)),j=n(93),k=n(220),P=n(391);function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(Object(n),!0).forEach((function(e){C()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function D(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O()(t);if(e){var i=O()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return x()(this,n)}}var N="varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\n\nvoid main() {\n gl_FragColor = vec4(texture2D(u_Texture, v_UV));\n}";function B(t,e){for(var n=0,r=1/e,i=t;i>0;)n+=r*(i%e),i=Math.floor(i/e),r/=e;return n}var F=1,z=(r=Object(M.injectable)(),i=Object(M.inject)(I.TYPES.IShaderModuleService),r((a=function(t){b()(n,t);var e=D(n);function n(){var t;h()(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),l()(g()(t),"shaderModuleService",s,g()(t)),C()(g()(t),"haltonSequence",[]),C()(g()(t),"accumulatingId",0),C()(g()(t),"frame",0),C()(g()(t),"timer",void 0),C()(g()(t),"sampleRenderTarget",void 0),C()(g()(t),"prevRenderTarget",void 0),C()(g()(t),"outputRenderTarget",void 0),C()(g()(t),"copyRenderTarget",void 0),C()(g()(t),"blendModel",void 0),C()(g()(t),"outputModel",void 0),C()(g()(t),"copyModel",void 0),t}return d()(n,[{key:"getType",value:function(){return k.PassType.Normal}},{key:"getName",value:function(){return"taa"}},{key:"init",value:function(t,e){m()(O()(n.prototype),"init",this).call(this,t,e);var r=this.rendererService,i=r.createFramebuffer,o=r.createTexture2D;this.sampleRenderTarget=i({color:o({width:1,height:1,wrapS:j.gl.CLAMP_TO_EDGE,wrapT:j.gl.CLAMP_TO_EDGE})}),this.prevRenderTarget=i({color:o({width:1,height:1,wrapS:j.gl.CLAMP_TO_EDGE,wrapT:j.gl.CLAMP_TO_EDGE})}),this.outputRenderTarget=i({color:o({width:1,height:1,wrapS:j.gl.CLAMP_TO_EDGE,wrapT:j.gl.CLAMP_TO_EDGE})}),this.copyRenderTarget=i({color:o({width:1,height:1,wrapS:j.gl.CLAMP_TO_EDGE,wrapT:j.gl.CLAMP_TO_EDGE})});for(var a=0;a<30;a++)this.haltonSequence.push([B(a,2),B(a,3)]);this.blendModel=this.createTriangleModel("blend-pass","uniform float u_opacity : 1.0;\nuniform float u_MixRatio : 0.5;\n\nuniform sampler2D u_Diffuse1;\nuniform sampler2D u_Diffuse2;\n\nvarying vec2 v_UV;\n\nvoid main() {\n vec4 texel1 = texture2D(u_Diffuse1, v_UV);\n vec4 texel2 = texture2D(u_Diffuse2, v_UV);\n gl_FragColor = u_opacity * mix(texel1, texel2, u_MixRatio);\n}\n"),this.outputModel=this.createTriangleModel("copy-pass",N,{blend:{enable:!0,func:{srcRGB:j.gl.ONE,dstRGB:j.gl.ONE_MINUS_SRC_ALPHA,srcAlpha:j.gl.ONE,dstAlpha:j.gl.ONE_MINUS_SRC_ALPHA},equation:{rgb:j.gl.FUNC_ADD,alpha:j.gl.FUNC_ADD}}}),this.copyModel=this.createTriangleModel("copy-pass",N)}},{key:"render",value:function(t){var e=this,n=this.rendererService,r=n.clear,i=n.getViewportSize,o=n.useFramebuffer,a=i(),s=a.width,u=a.height;this.sampleRenderTarget.resize({width:s,height:u}),this.prevRenderTarget.resize({width:s,height:u}),this.outputRenderTarget.resize({width:s,height:u}),this.copyRenderTarget.resize({width:s,height:u}),this.resetFrame(),this.stopAccumulating();var l=t.multiPassRenderer.getPostProcessor().getReadFBO();o(l,(function(){r({color:[0,0,0,0],depth:1,stencil:0,framebuffer:l}),t.multiPassRenderer.setRenderFlag(!1),t.render(),t.multiPassRenderer.setRenderFlag(!0)}));this.accumulatingId=F++,this.timer=A.$window.setTimeout((function(){!function n(r){e.accumulatingId&&r===e.accumulatingId&&(e.isFinished()||(e.doRender(t),A.$window.requestAnimationFrame((function(){n(r)}))))}(e.accumulatingId)}),50)}},{key:"doRender",value:function(t){var e=this,n=this.rendererService,r=n.clear,i=n.getViewportSize,o=n.useFramebuffer,a=i(),s=a.width,u=a.height,l=t.getLayerConfig().jitterScale,c=void 0===l?1:l,h=this.haltonSequence[this.frame%this.haltonSequence.length];this.cameraService.jitterProjectionMatrix((2*h[0]-1)/s*c,(2*h[1]-1)/u*c),t.multiPassRenderer.setRenderFlag(!1),t.hooks.beforeRender.call(),o(this.sampleRenderTarget,(function(){r({color:[0,0,0,0],depth:1,stencil:0,framebuffer:e.sampleRenderTarget}),t.render()})),t.hooks.afterRender.call(),t.multiPassRenderer.setRenderFlag(!0);var f=t.getLayerConfig();o(this.outputRenderTarget,(function(){e.blendModel.draw({uniforms:{u_opacity:f.opacity||1,u_MixRatio:0===e.frame?1:.9,u_Diffuse1:e.sampleRenderTarget,u_Diffuse2:0===e.frame?t.multiPassRenderer.getPostProcessor().getReadFBO():e.prevRenderTarget}})})),0===this.frame&&r({color:[0,0,0,0],depth:1,stencil:0,framebuffer:this.copyRenderTarget}),this.frame>=1&&(o(this.copyRenderTarget,(function(){e.outputModel.draw({uniforms:{u_Texture:e.outputRenderTarget}})})),o(t.multiPassRenderer.getPostProcessor().getReadFBO(),(function(){e.copyModel.draw({uniforms:{u_Texture:e.copyRenderTarget}})})),t.multiPassRenderer.getPostProcessor().render(t));var d=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=d,this.frame++,this.cameraService.clearJitterProjectionMatrix()}},{key:"isFinished",value:function(){return this.frame>=this.haltonSequence.length}},{key:"resetFrame",value:function(){this.frame=0}},{key:"stopAccumulating",value:function(){this.accumulatingId=0,A.$window.clearTimeout(this.timer)}},{key:"createTriangleModel",value:function(t,e,n){this.shaderModuleService.registerModule(t,{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:e});var r=this.shaderModuleService.getModule(t),i=r.vs,o=r.fs,a=r.uniforms,s=this.rendererService,u=s.createAttribute,l=s.createBuffer;return(0,s.createModel)(R({vs:i,fs:o,attributes:{a_Position:u({buffer:l({data:[-4,-4,4,-4,0,4],type:j.gl.FLOAT}),size:2})},uniforms:R({},a),depth:{enable:!1},count:3},n))}}]),n}(P.default),s=T()(a.prototype,"shaderModuleService",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=a))||o)},function(t,e,n){"use strict";n.r(e),n.d(e,"sdf2DFunctions",(function(){return r})),n.d(e,"getShapeIndex",(function(){return i}));var r=["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"];function i(t){return r.indexOf(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return d}));var r=n(121),i=n.n(r),o=n(16),a=n.n(o),s=n(17),u=n.n(s),l=n(4),c=n.n(l),h=n(10),f=Math.PI/180,d=function(){function t(){a()(this,t),c()(this,"projectionMatrix",h.mat4.create()),c()(this,"viewMatrix",h.mat4.create()),c()(this,"viewProjectionMatrix",h.mat4.create()),c()(this,"ViewProjectionMatrixUncentered",h.mat4.create()),c()(this,"viewUncenteredMatrix",h.mat4.create()),c()(this,"zoom",void 0),c()(this,"center",void 0)}return u()(t,[{key:"syncWithMapCamera",value:function(t){var e=t.zoom,n=void 0===e?1:e,r=t.pitch,i=void 0===r?0:r,o=t.bearing,a=void 0===o?0:o,s=t.center,u=void 0===s?[0,0]:s,l=t.offsetOrigin,c=void 0===l?[0,0]:l,d=t.cameraHeight,p=void 0===d?1:d,g=t.aspect,v=void 0===g?1:g,m=t.near,y=void 0===m?.1:m,b=t.far,_=void 0===b?1e3:b,x=t.fov,w=void 0===x?0:x;this.zoom=n,this.center=u;var O=i*f,S=(360-a)*f;h.mat4.perspective(this.projectionMatrix,w,v,y,_);var C=h.vec3.fromValues(p*Math.sin(O)*Math.sin(S),-p*Math.sin(O)*Math.cos(S),p*Math.cos(O)),E=h.vec3.fromValues(-Math.cos(O)*Math.sin(S),Math.cos(O)*Math.cos(S),Math.sin(O));h.mat4.lookAt(this.viewMatrix,C,h.vec3.fromValues(0,0,0),E),this.viewUncenteredMatrix=h.mat4.clone(this.viewMatrix),h.mat4.translate(this.viewMatrix,this.viewMatrix,h.vec3.fromValues(-c[0],c[1],0)),h.mat4.multiply(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),h.mat4.multiply(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 524288}},{key:"getCenter",value:function(){var t=i()(this.center,2);return[t[0],t[1]]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewUncenteredMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.ViewProjectionMatrixUncentered}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(t,e){var n=Math.max(Math.min(85.0511287798,t[1]),-85.0511287798),r=Math.PI/180,i=t[0]*r,o=n*r;o=Math.log(Math.tan(Math.PI/4+o/2));return[i=(256<<20)*(.5/Math.PI*i+.5)-215440491,o=-((256<<20)*(-.5/Math.PI*o+(r=.5))-106744817)]}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return J}));var r,i,o,a,s,u,l,c,h,f,d,p=n(436),g=n.n(p),v=n(227),m=n.n(v),y=n(115),b=n.n(y),_=n(121),x=n.n(_),w=n(182),O=n.n(w),S=n(47),C=n.n(S),E=n(16),T=n.n(E),A=n(17),M=n.n(A),I=n(4),j=n.n(I),k=n(44),P=n.n(k),L=(n(196),n(49)),R=n.n(L),D=n(774),N=n.n(D),B=n(76),F=n(37),z=n(10),V=n(21),U=(n(94),n(325)),G=n(527),H=n(224),W=n(939),Y=n(1820),X=["id","style","minZoom","maxZoom","token","mapInstance","plugin","version"];function $(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$(Object(n),!0).forEach((function(e){j()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}!function(t,e){var n="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM,r="undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram);if(!n&&!r&&(e||(e=document),e)){var i=e.head||e.getElementsByTagName("head")[0];if(!i){i=e.createElement("head");var o=e.body||e.getElementsByTagName("body")[0];o?o.parentNode.insertBefore(i,o):e.documentElement.appendChild(i)}var a=e.createElement("style");a.type="text/css",a.styleSheet?a.styleSheet.cssText=t:a.appendChild(e.createTextNode(t)),i.appendChild(a)}}(".amap-logo{\n display: none !important;\n}\n");var Z=0;window.forceWebGL=!0;var K=!1,Q=[],J=(r=Object(V.injectable)(),i=Object(V.inject)(B.TYPES.IGlobalConfigService),o=Object(V.inject)(B.TYPES.MapConfig),a=Object(V.inject)(B.TYPES.ICoordinateSystemService),s=Object(V.inject)(B.TYPES.IEventEmitter),r((l=function(){function t(){var e=this;T()(this,t),j()(this,"version",H.Version["GAODE2.x"]),j()(this,"simpleMapCoord",new U.SimpleMapCoord),j()(this,"map",void 0),j()(this,"sceneCenter",void 0),j()(this,"sceneCenterMKT",void 0),j()(this,"bgColor","rgba(0, 0, 0, 0)"),C()(this,"configService",c,this),C()(this,"config",h,this),C()(this,"coordinateSystemService",f,this),C()(this,"eventEmitter",d,this),j()(this,"markerContainer",void 0),j()(this,"$mapContainer",void 0),j()(this,"viewport",void 0),j()(this,"cameraChangedCallback",void 0),j()(this,"handleViewChanged",(function(t){var n=e.map.customCoords.getCameraParams(),r=n.fov,i=n.near,o=n.far,a=n.aspect,s=n.position,u=n.lookAt,l=n.up;e.emit("mapchange");var c=t.zoom,h=e.map.customCoords.getCenter();e.cameraChangedCallback&&(e.viewport.syncWithMapCamera({aspect:a,far:o,fov:r,cameraPosition:s,lookAt:u,up:l,near:i,zoom:c-1,center:h,offsetOrigin:[s[0],s[1]]}),e.coordinateSystemService.setCoordinateSystem(B.CoordinateSystem.P20_2),e.cameraChangedCallback(e.viewport))}))}var e;return M()(t,[{key:"setBgColor",value:function(t){this.bgColor=t}},{key:"setCustomCoordCenter",value:function(t){var e;this.sceneCenter=t,this.sceneCenterMKT=(e=this.map.getProjection()).project.apply(e,O()(this.sceneCenter))}},{key:"getCustomCoordCenter",value:function(){return this.sceneCenterMKT}},{key:"lngLatToCoord",value:function(t){var e=this.map.getProjection().project;return this.sceneCenter||(this.map.customCoords.setCenter(t),this.setCustomCoordCenter(t)),this._sub(e(t[0],t[1]),this.sceneCenterMKT)}},{key:"lngLatToCoords",value:function(t){var e=this;return t.map((function(t){return"number"==typeof t[0]?e.lngLatToCoord(t):t.map((function(t){return e.lngLatToCoord(t)}))}))}},{key:"addMarkerContainer",value:function(){if(this.map){var t=this.map.getContainer();if(null!==t){var e=t.getElementsByClassName("amap-maps")[0];e.style.zIndex="auto",this.markerContainer=F.DOM.create("div","l7-marker-container2",e)}}}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(t,e){-1!==B.MapServiceEvent.indexOf(t)?this.eventEmitter.on(t,e):this.map.on(t,e)}},{key:"off",value:function(t,e){-1!==B.MapServiceEvent.indexOf(t)?this.eventEmitter.off(t,e):this.map.off(t,e)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){var t;return null===(t=this.map.getContainer())||void 0===t?void 0:t.getElementsByClassName("amap-maps")[0]}},{key:"getSize",value:function(){var t=this.map.getSize();return[t.getWidth(),t.getHeight()]}},{key:"getType",value:function(){return"amap2"}},{key:"getZoom",value:function(){return this.map.getZoom()-1}},{key:"setZoom",value:function(t){return this.map.setZoom(t+1)}},{key:"getCenter",value:function(t){if(null!=t&&t.padding){var e=this.getCenter(),n=this.getSize(),r=x()(n,2),i=(r[0],r[1],Object(G.toPaddingOptions)(t.padding)),o=this.lngLatToPixel([e.lng,e.lat]),a=[(i.right-i.left)/2,(i.bottom-i.top)/2];return this.pixelToLngLat([o.x-a[0],o.y-a[1]])}var s=this.map.getCenter();return{lng:s.getLng(),lat:s.getLat()}}},{key:"setCenter",value:function(t,e){if(null!=e&&e.padding){var n=Object(G.toPaddingOptions)(e.padding),r=this.lngLatToPixel(t),i=[(n.right-n.left)/2,(n.bottom-n.top)/2],o=this.pixelToLngLat([r.x+i[0],r.y+i[1]]);this.map.setCenter([o.lng,o.lat])}else this.map.setCenter(t)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return 360-this.map.getRotation()}},{key:"getBounds",value:function(){var t=this.map.getBounds(),e=t.getNorthEast(),n=t.getSouthWest(),r=this.getCenter(),i=r.lng>e.getLng()||r.lng<n.getLng()?180-e.getLng():e.getLng();return[[r.lng<n.getLng()?n.getLng()-180:n.getLng(),n.getLat()],[i,e.getLat()]]}},{key:"getMinZoom",value:function(){return this.map.getZooms()[0]-1}},{key:"getMaxZoom",value:function(){return this.map.getZooms()[1]-1}},{key:"setRotation",value:function(t){return this.map.setRotation(t)}},{key:"setPitch",value:function(t){return this.map.setPitch(t)}},{key:"zoomIn",value:function(){this.map.zoomIn()}},{key:"zoomOut",value:function(){this.map.zoomOut()}},{key:"panTo",value:function(t){this.map.panTo(t)}},{key:"panBy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.map.panBy(t,e)}},{key:"fitBounds",value:function(t){this.map.setBounds(new AMap.Bounds([t[0][0],t[0][1],t[1][0],t[1][1]]))}},{key:"setZoomAndCenter",value:function(t,e){this.map.setZoomAndCenter(t+1,e)}},{key:"setMapStyle",value:function(t){this.map.setMapStyle(this.getMapStyle(t))}},{key:"setMapStatus",value:function(t){this.map.setStatus(t)}},{key:"pixelToLngLat",value:function(t){var e=this.map.pixelToLngLat(new AMap.Pixel(t[0],t[1]));return{lng:e.getLng(),lat:e.getLat()}}},{key:"lngLatToPixel",value:function(t){var e=this.map.lnglatToPixel(new AMap.LngLat(t[0],t[1]));return{x:e.getX(),y:e.getY()}}},{key:"containerToLngLat",value:function(t){var e=new AMap.Pixel(t[0],t[1]),n=this.map.containerToLngLat(e);return{lng:null==n?void 0:n.getLng(),lat:null==n?void 0:n.getLat()}}},{key:"lngLatToContainer",value:function(t){var e=new AMap.LngLat(t[0],t[1]),n=this.map.lngLatToContainer(e);return{x:n.getX(),y:n.getY()}}},{key:"lngLatToMercator",value:function(t,e){return{x:0,y:0,z:0}}},{key:"getModelMatrix",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[1,1,1],i=this.map.customCoords.lngLatToCoord(t),o=z.mat4.create();return z.mat4.translate(o,o,z.vec3.fromValues(i[0],i[1],e)),z.mat4.scale(o,o,z.vec3.fromValues(r[0],r[1],r[2])),z.mat4.rotateX(o,o,n[0]),z.mat4.rotateY(o,o,n[1]),z.mat4.rotateZ(o,o,n[2]),o}},{key:"init",value:(e=b()(R.a.mark((function t(){var e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,v,y=this;return R.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.config,n=e.id,r=e.style,i=void 0===r?"light":r,o=e.minZoom,a=void 0===o?0:o,s=e.maxZoom,u=void 0===s?18:s,l=e.token,c=void 0===l?"ff533602d57df6f8ab3b0fea226ae52f":l,h=e.mapInstance,f=e.plugin,d=void 0===f?[]:f,p=e.version,g=void 0===p?"2.0":p,v=m()(e,X),t.next=3,new Promise((function(t){var e=function(){if(h){var e;y.map=h,y.$mapContainer=y.map.getContainer();var r=y.map.getCenter();null===(e=y.map.customCoords)||void 0===e||e.setCenter([r.lng,r.lat]),y.setCustomCoordCenter([r.lng,r.lat]),setTimeout((function(){y.map.on("viewchange",y.handleViewChanged),t()}),30)}else{y.$mapContainer=y.creatAmapContainer(n);var o=q({mapStyle:y.getMapStyle(i),zooms:[a,u],viewMode:"3D"},v);o.zoom&&(o.zoom+=1);var s=new AMap.Map(y.$mapContainer,o);y.map=s;var l=s.getCenter();s.customCoords.setCenter([l.lng,l.lat]),y.setCustomCoordCenter([l.lng,l.lat]),s.on("viewchange",y.handleViewChanged),setTimeout((function(){t()}),10)}};y.viewport=new Y.default,K||h?K&&window.AMap||h?e():Q.push(e):("ff533602d57df6f8ab3b0fea226ae52f"===c&&console.warn(y.configService.getSceneWarninfo("MapToken")),K=!0,d.push("Map3D"),N.a.load({key:c,version:g,plugins:d}).then((function(t){e(),Q.length&&(Q.forEach((function(t){return t()})),Q=[])})).catch((function(t){throw new Error(t)})))}));case 3:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"meterToCoord",value:function(t,e){var n=AMap.GeometryUtil.distance(g()(AMap.LngLat,O()(t)),g()(AMap.LngLat,O()(e))),r=this.lngLatToCoord(t),i=x()(r,2),o=i[0],a=i[1],s=this.lngLatToCoord(e),u=x()(s,2),l=u[0],c=u[1];return Math.sqrt(Math.pow(o-l,2)+Math.pow(a-c,2))/n}},{key:"exportMap",value:function(t){var e,n=null===(e=this.getContainer())||void 0===e?void 0:e.getElementsByClassName("amap-layer")[0];return"jpg"===t?null==n?void 0:n.toDataURL("image/jpeg"):null==n?void 0:n.toDataURL("image/png")}},{key:"emit",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this.eventEmitter).emit.apply(e,[t].concat(r))}},{key:"once",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this.eventEmitter).once.apply(e,[t].concat(r))}},{key:"destroy",value:function(){var t,e;this.map.destroy(),null===(t=this.$mapContainer)||void 0===t||null===(e=t.parentNode)||void 0===e||e.removeChild(this.$mapContainer),delete window.initAMap;var n=document.getElementById("amap-script");n&&document.head.removeChild(n)}},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"onCameraChanged",value:function(t){this.cameraChangedCallback=t}},{key:"initViewPort",value:function(){var t,e=null===(t=this.map.customCoords)||void 0===t?void 0:t.getCameraParams(),n=e.fov,r=e.near,i=e.far,o=e.aspect,a=e.position,s=e.lookAt,u=e.up;this.emit("mapchange");var l=this.map.customCoords.getCenter(),c=this.map.getZoom();this.cameraChangedCallback&&(this.viewport.syncWithMapCamera({aspect:o,far:i,fov:n,cameraPosition:a,lookAt:s,near:r,up:u,zoom:c-1,center:l,offsetOrigin:[a[0],a[1]]}),this.coordinateSystemService.setCoordinateSystem(B.CoordinateSystem.P20_2),this.cameraChangedCallback(this.viewport))}},{key:"_sub",value:function(t,e){var n=[0,0];return n[0]=t[0]-e[0],n[1]=t[1]-e[1],n}},{key:"getMapStyle",value:function(t){return W.MapTheme[t]?W.MapTheme[t]:t}},{key:"creatAmapContainer",value:function(t){var e=t;"string"==typeof t&&(e=document.getElementById(t));var n=document.createElement("div");return n.style.cssText+="\n position: absolute;\n top: 0;\n height: 100%;\n width: 100%;\n ",n.id="l7_amap_div"+Z++,e.appendChild(n),n}}]),t}(),c=P()(l.prototype,"configService",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=P()(l.prototype,"config",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=P()(l.prototype,"coordinateSystemService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=P()(l.prototype,"eventEmitter",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=l))||u)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return p}));var r=n(121),i=n.n(r),o=n(182),a=n.n(o),s=n(16),u=n.n(s),l=n(17),c=n.n(l),h=n(4),f=n.n(h),d=n(10),p=function(){function t(){u()(this,t),f()(this,"projectionMatrix",d.mat4.create()),f()(this,"viewMatrix",d.mat4.create()),f()(this,"viewProjectionMatrix",d.mat4.create()),f()(this,"ViewProjectionMatrixUncentered",d.mat4.create()),f()(this,"viewUncenteredMatrix",d.mat4.create()),f()(this,"zoom",void 0),f()(this,"center",void 0)}return c()(t,[{key:"syncWithMapCamera",value:function(t){var e=t.zoom,n=void 0===e?1:e,r=t.center,i=void 0===r?[0,0]:r,o=t.offsetOrigin,s=void 0===o?[0,0]:o,u=t.cameraPosition,l=void 0===u?[0,0,0]:u,c=t.up,h=void 0===c?[0,1,0]:c,f=t.lookAt,p=void 0===f?[0,0,0]:f,g=t.aspect,v=void 0===g?1:g,m=t.near,y=void 0===m?.1:m,b=t.far,_=void 0===b?1e3:b,x=t.fov,w=void 0===x?45:x;this.zoom=n,this.center=i,d.mat4.perspective(this.projectionMatrix,w/180*Math.PI,v,y,_);var O=d.vec3.fromValues.apply(d.vec3,a()(l)),S=d.vec3.fromValues.apply(d.vec3,a()(p)),C=d.vec3.fromValues.apply(d.vec3,a()(h));d.mat4.lookAt(this.viewMatrix,O,S,C),this.viewUncenteredMatrix=d.mat4.clone(this.viewMatrix),d.mat4.translate(this.viewMatrix,this.viewMatrix,d.vec3.fromValues(-s[0],s[1],0)),d.mat4.multiply(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),d.mat4.multiply(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 1048576}},{key:"getCenter",value:function(){var t=i()(this.center,2);return[t[0],t[1]]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewUncenteredMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.ViewProjectionMatrixUncentered}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(t,e){var n=Math.max(Math.min(85.0511287798,t[1]),-85.0511287798),r=Math.PI/180,i=t[0]*r,o=n*r;o=Math.log(Math.tan(Math.PI/4+o/2));return[i=(256<<20)*(.5/Math.PI*i+.5)-215440491,o=-((256<<20)*(-.5/Math.PI*o+(r=.5))-106744817)]}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return Y}));var r,i,o,a,s,u,l,c,h,f,d,p=n(227),g=n.n(p),v=n(115),m=n.n(v),y=n(47),b=n.n(y),_=n(16),x=n.n(_),w=n(17),O=n.n(w),S=n(4),C=n.n(S),E=n(44),T=n.n(E),A=(n(196),n(49)),M=n.n(A),I=n(76),j=n(37),k=n(10),P=n(21),L=n(537),R=n.n(L),D=(n(94),n(224)),N=n(1822),B=n(325),F=n(940),z=["id","attributionControl","style","token","rotation","mapInstance"];function V(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?V(Object(n),!0).forEach((function(e){C()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}!function(t,e){var n="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM,r="undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram);if(!n&&!r&&(e||(e=document),e)){var i=e.head||e.getElementsByTagName("head")[0];if(!i){i=e.createElement("head");var o=e.body||e.getElementsByTagName("body")[0];o?o.parentNode.insertBefore(i,o):e.documentElement.appendChild(i)}var a=e.createElement("style");a.type="text/css",a.styleSheet?a.styleSheet.cssText=t:a.appendChild(e.createTextNode(t)),i.appendChild(a)}}(".mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mapboxgl-canvas{position:absolute;left:0;top:0}.mapboxgl-map:-webkit-full-screen{width:100%;height:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:-webkit-grab;cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:-webkit-grabbing;cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:pinch-zoom;touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:none;touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.mapboxgl-ctrl-top-left{top:0;left:0}.mapboxgl-ctrl-top-right{top:0;right:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{right:0;bottom:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;-webkit-transform:translate(0);transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{margin:10px 0 0 10px;float:left}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{margin:10px 10px 0 0;float:right}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin:0 0 10px 10px;float:left}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{margin:0 10px 10px 0;float:right}.mapboxgl-ctrl-group{border-radius:4px;background:#fff}.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 2px rgba(0,0,0,.1);box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 0 2px ButtonText;box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:transparent;cursor:pointer}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl button::-moz-focus-inner{border:0;padding:0}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-group button:focus:focus-visible{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}.mapboxgl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:focus:only-child{border-radius:inherit}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E\")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E\")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E\")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E\")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E\")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E\")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{-webkit-animation:mapboxgl-spin 2s linear infinite;animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E\")}}@-webkit-keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg opacity='.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg opacity='.9' fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E\")}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/svg%3E\")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E\");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner,.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;right:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;left:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E\")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E\")}}.mapboxgl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;border:2px solid #333;border-top:#333;padding:0 5px;color:#333;-webkit-box-sizing:border-box;box-sizing:border-box}.mapboxgl-popup{position:absolute;top:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;will-change:transform;pointer-events:none}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.mapboxgl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.mapboxgl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.mapboxgl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-top:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-right:none;border-left-color:#fff}.mapboxgl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.mapboxgl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.mapboxgl-popup-content{position:relative;background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:10px 10px 15px;pointer-events:auto}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{position:absolute;top:0;left:0;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.mapboxgl-user-location-dot:before{content:\"\";position:absolute;-webkit-animation:mapboxgl-user-location-dot-pulse 2s infinite;animation:mapboxgl-user-location-dot-pulse 2s infinite}.mapboxgl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:\"\";height:19px;left:-2px;position:absolute;top:-2px;width:19px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35)}@-webkit-keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);opacity:0}to{-webkit-transform:scale(1);opacity:0}}@keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);transform:scale(3);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:rgba(29,161,242,.2);width:1px;height:1px;border-radius:100%}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}@media print{.mapbox-improve-map{display:none}}"),window.mapboxgl=R.a;var G={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},H=0,W="pk.eyJ1IjoibHp4dWUiLCJhIjoiY2tvaWZuM2s4MWZuYjJ1dHI5ZGduYTlrdiJ9.DQCfMRbZzx0VSwecQ69McA",Y=(r=Object(P.injectable)(),i=Object(P.inject)(I.TYPES.MapConfig),o=Object(P.inject)(I.TYPES.IGlobalConfigService),a=Object(P.inject)(I.TYPES.ICoordinateSystemService),s=Object(P.inject)(I.TYPES.IEventEmitter),r((l=function(){function t(){var e=this;x()(this,t),C()(this,"version",D.Version.MAPBOX),C()(this,"map",void 0),C()(this,"simpleMapCoord",new B.SimpleMapCoord),C()(this,"bgColor","rgba(0.0, 0.0, 0.0, 0.0)"),b()(this,"config",c,this),b()(this,"configService",h,this),b()(this,"coordinateSystemService",f,this),b()(this,"eventEmitter",d,this),C()(this,"viewport",void 0),C()(this,"markerContainer",void 0),C()(this,"cameraChangedCallback",void 0),C()(this,"$mapContainer",void 0),C()(this,"handleCameraChanged",(function(){var t=e.map.getCenter().wrap(),n=t.lat,r=t.lng;e.emit("mapchange"),e.viewport.syncWithMapCamera({bearing:e.map.getBearing(),center:[r,n],viewportHeight:e.map.transform.height,pitch:e.map.getPitch(),viewportWidth:e.map.transform.width,zoom:e.map.getZoom(),cameraHeight:0});var i=e.config.offsetZoom,o=void 0===i?12:i;e.viewport.getZoom()>o?e.coordinateSystemService.setCoordinateSystem(I.CoordinateSystem.LNGLAT_OFFSET):e.coordinateSystemService.setCoordinateSystem(I.CoordinateSystem.LNGLAT),e.cameraChangedCallback(e.viewport)}))}var e;return O()(t,[{key:"setBgColor",value:function(t){this.bgColor=t}},{key:"addMarkerContainer",value:function(){var t=this.map.getCanvasContainer();this.markerContainer=j.DOM.create("div","l7-marker-container",t),this.markerContainer.setAttribute("tabindex","-1")}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(t,e){-1!==I.MapServiceEvent.indexOf(t)?this.eventEmitter.on(t,e):this.map.on(G[t]||t,e)}},{key:"off",value:function(t,e){this.map.off(G[t]||t,e),this.eventEmitter.off(t,e)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){var t=this.map.transform;return[t.width,t.height]}},{key:"getType",value:function(){return"mapbox"}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"setZoom",value:function(t){return this.map.setZoom(t)}},{key:"getCenter",value:function(){return this.map.getCenter()}},{key:"setCenter",value:function(t){this.map.setCenter(t)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return this.map.getBearing()}},{key:"getBounds",value:function(){return this.map.getBounds().toArray()}},{key:"getMinZoom",value:function(){return this.map.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.map.getMaxZoom()}},{key:"setRotation",value:function(t){this.map.setBearing(t)}},{key:"zoomIn",value:function(t,e){this.map.zoomIn(t,e)}},{key:"zoomOut",value:function(t,e){this.map.zoomOut(t,e)}},{key:"setPitch",value:function(t){return this.map.setPitch(t)}},{key:"panTo",value:function(t){this.map.panTo(t)}},{key:"panBy",value:function(t,e){this.panTo([t,e])}},{key:"fitBounds",value:function(t,e){this.map.fitBounds(t,e)}},{key:"setMaxZoom",value:function(t){this.map.setMaxZoom(t)}},{key:"setMinZoom",value:function(t){this.map.setMinZoom(t)}},{key:"setMapStatus",value:function(t){!0===t.doubleClickZoom&&this.map.doubleClickZoom.enable(),!1===t.doubleClickZoom&&this.map.doubleClickZoom.disable(),!1===t.dragEnable&&this.map.dragPan.disable(),!0===t.dragEnable&&this.map.dragPan.enable(),!1===t.rotateEnable&&this.map.dragRotate.disable(),!0===t.rotateEnable&&this.map.dragRotate.enable(),!1===t.keyboardEnable&&this.map.keyboard.disable(),!0===t.keyboardEnable&&this.map.keyboard.enable(),!1===t.zoomEnable&&this.map.scrollZoom.disable(),!0===t.zoomEnable&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(t,e){this.map.flyTo({zoom:t,center:e})}},{key:"setMapStyle",value:function(t){this.map.setStyle(this.getMapStyle(t))}},{key:"pixelToLngLat",value:function(t){return this.map.unproject(t)}},{key:"lngLatToPixel",value:function(t){return this.map.project(t)}},{key:"containerToLngLat",value:function(t){return this.map.unproject(t)}},{key:"lngLatToContainer",value:function(t){return this.map.project(t)}},{key:"lngLatToCoord",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{x:0,y:0,z:0},n=this.lngLatToMercator(t,0),r=n.x,i=n.y;return[r-e.x,i-e.y]}},{key:"lngLatToMercator",value:function(t,e){var n=window.mapboxgl.MercatorCoordinate.fromLngLat(t,e),r=n.x,i=void 0===r?0:r,o=n.y,a=void 0===o?0:o,s=n.z;return{x:i,y:a,z:void 0===s?0:s}}},{key:"getModelMatrix",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[1,1,1],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{x:0,y:0,z:0},o=window.mapboxgl.MercatorCoordinate.fromLngLat(t,e),a=o.meterInMercatorCoordinateUnits(),s=k.mat4.create();return k.mat4.translate(s,s,k.vec3.fromValues(o.x-i.x,o.y-i.y,o.z||0-i.z)),k.mat4.scale(s,s,k.vec3.fromValues(a*r[0],-a*r[1],a*r[2])),k.mat4.rotateX(s,s,n[0]),k.mat4.rotateY(s,s,n[1]),k.mat4.rotateZ(s,s,n[2]),s}},{key:"init",value:(e=m()(M.a.mark((function t(){var e,n,r,i,o,a,s,u,l,c,h,f,d;return M.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this.config,n=e.id,r=void 0===n?"map":n,i=e.attributionControl,o=void 0!==i&&i,a=e.style,s=void 0===a?"light":a,u=e.token,l=void 0===u?W:u,c=e.rotation,h=void 0===c?0:c,f=e.mapInstance,d=g()(e,z),this.viewport=new N.default,f||window.mapboxgl||console.error(this.configService.getSceneWarninfo("SDK")),l!==W||"blank"===s||window.mapboxgl.accessToken||f||console.warn(this.configService.getSceneWarninfo("MapToken")),f||window.mapboxgl.accessToken||(window.mapboxgl.accessToken=l),f?(this.map=f,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatAmapContainer(r),this.map=new window.mapboxgl.Map(U({container:this.$mapContainer,style:this.getMapStyle(s),attributionControl:o,bearing:h},d))),this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){var t,e;null===(t=this.$mapContainer)||void 0===t||null===(e=t.parentNode)||void 0===e||e.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this.eventEmitter).emit.apply(e,[t].concat(r))}},{key:"once",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this.eventEmitter).once.apply(e,[t].concat(r))}},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"meterToCoord",value:function(t,e){var n=new R.a.LngLat(t[0],t[1]),r=new R.a.LngLat(e[0],e[1]),i=n.distanceTo(r),o=R.a.MercatorCoordinate.fromLngLat({lng:t[0],lat:t[1]}),a=R.a.MercatorCoordinate.fromLngLat({lng:e[0],lat:e[1]}),s=o.x,u=o.y,l=a.x,c=a.y;return 4194304*Math.sqrt(Math.pow(s-l,2)+Math.pow(u-c,2))*2/i}},{key:"exportMap",value:function(t){var e=this.map.getCanvas();return"jpg"===t?null==e?void 0:e.toDataURL("image/jpeg"):null==e?void 0:e.toDataURL("image/png")}},{key:"onCameraChanged",value:function(t){this.cameraChangedCallback=t}},{key:"creatAmapContainer",value:function(t){var e=t;"string"==typeof t&&(e=document.getElementById(t));var n=document.createElement("div");return n.style.cssText+="\n position: absolute;\n top: 0;\n height: 100%;\n width: 100%;\n ",n.id="l7_mapbox_div"+H++,e.appendChild(n),n}},{key:"getMapStyle",value:function(t){return"string"!=typeof t?t:F.MapTheme[t]?F.MapTheme[t]:t}}]),t}(),c=T()(l.prototype,"config",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=T()(l.prototype,"configService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=T()(l.prototype,"coordinateSystemService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=T()(l.prototype,"eventEmitter",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=l))||u)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return c}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(4),u=n.n(s),l=n(813),c=function(){function t(){i()(this,t),u()(this,"viewport",void 0)}return a()(t,[{key:"syncWithMapCamera",value:function(t){var e=t.center,n=t.zoom,r=t.pitch,i=t.bearing,o=t.viewportHeight,a=t.viewportWidth;this.viewport=new l.default({width:a,height:o,longitude:e&&e[0],latitude:e&&e[1],zoom:n,pitch:r,bearing:i})}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(t,e){return this.viewport.projectFlat(t,e)}}]),t}()},function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(74),i=n(813),o=n(347);function a(t){var e=t.width,n=t.height,a=t.bounds,s=t.minExtent,u=void 0===s?0:s,l=t.maxZoom,c=void 0===l?24:l,h=t.padding,f=void 0===h?0:h,d=t.offset,p=void 0===d?[0,0]:d,g=Object(r.default)(a,2),v=Object(r.default)(g[0],2),m=v[0],y=v[1],b=Object(r.default)(g[1],2),_=b[0],x=b[1];if(Number.isFinite(f)){f={top:f,bottom:f,left:f,right:f}}else Object(o.default)(Number.isFinite(f.top)&&Number.isFinite(f.bottom)&&Number.isFinite(f.left)&&Number.isFinite(f.right));var w=new i.default({width:e,height:n,longitude:0,latitude:0,zoom:0}),O=w.project([m,x]),S=w.project([_,y]),C=[Math.max(Math.abs(S[0]-O[0]),u),Math.max(Math.abs(S[1]-O[1]),u)],E=[e-f.left-f.right-2*Math.abs(p[0]),n-f.top-f.bottom-2*Math.abs(p[1])];Object(o.default)(E[0]>0&&E[1]>0);var T=E[0]/C[0],A=E[1]/C[1],M=(f.right-f.left)/2/T,I=(f.bottom-f.top)/2/A,j=[(S[0]+O[0])/2+M,(S[1]+O[1])/2+I],k=w.unproject(j),P=w.zoom+Math.log2(Math.abs(Math.min(T,A)));return{longitude:k[0],latitude:k[1],zoom:Math.min(P,c)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return c}));var r=n(74),i=n(19),o=n(20),a=n(308),s=n(239),u=n(149),l=Object(a.createMat4)(),c=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width,r=e.height,o=e.viewMatrix,s=void 0===o?l:o,c=e.projectionMatrix,h=void 0===c?l:c;Object(i.default)(this,t),this.width=n||1,this.height=r||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=s,this.projectionMatrix=h;var f=Object(a.createMat4)();u.multiply(f,f,this.projectionMatrix),u.multiply(f,f,this.viewMatrix),this.viewProjectionMatrix=f;var d=Object(a.createMat4)();u.scale(d,d,[this.width/2,-this.height/2,1]),u.translate(d,d,[1,-1,0]),u.multiply(d,d,this.viewProjectionMatrix);var p=u.invert(Object(a.createMat4)(),d);if(!p)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=d,this.pixelUnprojectionMatrix=p,this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return Object(o.default)(t,[{key:"equals",value:function(e){return e instanceof t&&(e.width===this.width&&e.height===this.height&&u.equals(e.projectionMatrix,this.projectionMatrix)&&u.equals(e.viewMatrix,this.viewMatrix))}},{key:"project",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.topLeft,i=void 0===n||n,o=this.projectPosition(t),a=Object(s.worldToPixels)(o,this.pixelProjectionMatrix),u=Object(r.default)(a,2),l=u[0],c=u[1],h=i?c:this.height-c;return 2===t.length?[l,h]:[l,h,a[2]]}},{key:"unproject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.topLeft,i=void 0===n||n,o=e.targetZ,a=Object(r.default)(t,3),u=a[0],l=a[1],c=a[2],h=i?l:this.height-l,f=o&&o*this.pixelsPerMeter,d=Object(s.pixelsToWorld)([u,h,c],this.pixelUnprojectionMatrix,f),p=this.unprojectPosition(d),g=Object(r.default)(p,3),v=g[0],m=g[1],y=g[2];return Number.isFinite(c)?[v,m,y]:Number.isFinite(o)?[v,m,o]:[v,m]}},{key:"projectPosition",value:function(t){var e=this.projectFlat(t),n=Object(r.default)(e,2);return[n[0],n[1],(t[2]||0)*this.pixelsPerMeter]}},{key:"unprojectPosition",value:function(t){var e=this.unprojectFlat(t),n=Object(r.default)(e,2);return[n[0],n[1],(t[2]||0)/this.pixelsPerMeter]}},{key:"projectFlat",value:function(t){arguments.length>1&&void 0!==arguments[1]||this.scale;return t}},{key:"unprojectFlat",value:function(t){arguments.length>1&&void 0!==arguments[1]||this.scale;return t}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return G}));var r,i,o,a,s,u,l,c,h,f,d,p=n(227),g=n.n(p),v=n(115),m=n.n(v),y=n(47),b=n.n(y),_=n(16),x=n.n(_),w=n(17),O=n.n(w),S=n(4),C=n.n(S),E=n(44),T=n.n(E),A=(n(196),n(49)),M=n.n(A),I=n(76),j=n(600),k=n(37),P=n(21),L=(n(94),n(325)),R=n(224),D=n(947),N=n(948),B=["id","attributionControl","style","rotation","mapInstance","version","mapSize"],F=["id","attributionControl","style","rotation","mapInstance","canvas","hasBaseMap"];function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function V(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){C()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var U={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},G=(r=Object(P.injectable)(),i=Object(P.inject)(I.TYPES.MapConfig),o=Object(P.inject)(I.TYPES.IGlobalConfigService),a=Object(P.inject)(I.TYPES.ICoordinateSystemService),s=Object(P.inject)(I.TYPES.IEventEmitter),r((l=function(){function t(){var e=this;x()(this,t),C()(this,"version",R.Version.L7MAP),C()(this,"map",void 0),C()(this,"simpleMapCoord",new L.SimpleMapCoord),C()(this,"bgColor","rgba(0.0, 0.0, 0.0, 0.0)"),b()(this,"config",c,this),b()(this,"configService",h,this),b()(this,"coordinateSystemService",f,this),b()(this,"eventEmitter",d,this),C()(this,"viewport",void 0),C()(this,"markerContainer",void 0),C()(this,"cameraChangedCallback",void 0),C()(this,"$mapContainer",void 0),C()(this,"handleMiniCameraChanged",(function(t,n,r,i,o){var a=e.config.offsetCoordinate,s=void 0===a||a;e.viewport.syncWithMapCamera({bearing:i,center:[t,n],viewportHeight:e.map.transform.height,pitch:o,viewportWidth:e.map.transform.width,zoom:r,cameraHeight:0}),e.viewport.getZoom()>12&&s?e.coordinateSystemService.setCoordinateSystem(I.CoordinateSystem.LNGLAT_OFFSET):e.coordinateSystemService.setCoordinateSystem(I.CoordinateSystem.LNGLAT),e.cameraChangedCallback(e.viewport)})),C()(this,"handleCameraChanged",(function(){var t=e.map.getCenter(),n=t.lat,r=t.lng,i=e.config.offsetCoordinate,o=void 0===i||i;e.emit("mapchange"),e.viewport.syncWithMapCamera({bearing:e.map.getBearing(),center:[r,n],viewportHeight:e.map.transform.height,pitch:e.map.getPitch(),viewportWidth:e.map.transform.width,zoom:e.map.getZoom(),cameraHeight:0}),e.viewport.getZoom()>12&&o?e.coordinateSystemService.setCoordinateSystem(I.CoordinateSystem.LNGLAT_OFFSET):e.coordinateSystemService.setCoordinateSystem(I.CoordinateSystem.LNGLAT),e.cameraChangedCallback(e.viewport)}))}var e,n;return O()(t,[{key:"setBgColor",value:function(t){this.bgColor=t}},{key:"addMarkerContainer",value:function(){var t=this.map.getCanvasContainer();this.markerContainer=k.DOM.create("div","l7-marker-container",t),this.markerContainer.setAttribute("tabindex","-1")}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(t,e){-1!==I.MapServiceEvent.indexOf(t)?this.eventEmitter.on(t,e):this.map.on(U[t]||t,e)}},{key:"off",value:function(t,e){this.map.off(U[t]||t,e),this.eventEmitter.off(t,e)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){if(this.version===R.Version.SIMPLE)return this.simpleMapCoord.getSize();var t=this.map.transform;return[t.width,t.height]}},{key:"getType",value:function(){return"default"}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"setZoom",value:function(t){return this.map.setZoom(t)}},{key:"getCenter",value:function(){return this.map.getCenter()}},{key:"setCenter",value:function(t){this.map.setCenter(t)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return this.map.getBearing()}},{key:"getBounds",value:function(){return this.map.getBounds().toArray()}},{key:"getMinZoom",value:function(){return this.map.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.map.getMaxZoom()}},{key:"setRotation",value:function(t){this.map.setBearing(t)}},{key:"zoomIn",value:function(t,e){this.map.zoomIn(t,e)}},{key:"zoomOut",value:function(t,e){this.map.zoomOut(t,e)}},{key:"setPitch",value:function(t){return this.map.setPitch(t)}},{key:"panTo",value:function(t){this.map.panTo(t)}},{key:"panBy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.panTo([t,e])}},{key:"fitBounds",value:function(t,e){this.map.fitBounds(t,e)}},{key:"setMaxZoom",value:function(t){this.map.setMaxZoom(t)}},{key:"setMinZoom",value:function(t){this.map.setMinZoom(t)}},{key:"setMapStatus",value:function(t){!0===t.doubleClickZoom&&this.map.doubleClickZoom.enable(),!1===t.doubleClickZoom&&this.map.doubleClickZoom.disable(),!1===t.dragEnable&&this.map.dragPan.disable(),!0===t.dragEnable&&this.map.dragPan.enable(),!1===t.rotateEnable&&this.map.dragRotate.disable(),!0===t.dragEnable&&this.map.dragRotate.enable(),!1===t.keyboardEnable&&this.map.keyboard.disable(),!0===t.keyboardEnable&&this.map.keyboard.enable(),!1===t.zoomEnable&&this.map.scrollZoom.disable(),!0===t.zoomEnable&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(t,e){this.map.flyTo({zoom:t,center:e})}},{key:"setMapStyle",value:function(t){this.map.setStyle(this.getMapStyle(t))}},{key:"pixelToLngLat",value:function(t){return this.map.unproject(t)}},{key:"lngLatToPixel",value:function(t){return this.map.project(t)}},{key:"containerToLngLat",value:function(t){return this.map.unproject(t)}},{key:"lngLatToContainer",value:function(t){return this.map.project(t)}},{key:"lngLatToMercator",value:function(t,e){throw new Error("not implement")}},{key:"getModelMatrix",value:function(t,e,n){throw new Error("not implement")}},{key:"init",value:(n=m()(M.a.mark((function t(){var e,n,r,i,o,a,s,u,l,c,h,f,d;return M.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this.config,n=e.id,r=void 0===n?"map":n,e.attributionControl,i=e.style,o=void 0===i?"light":i,a=e.rotation,s=void 0===a?0:a,u=e.mapInstance,l=e.version,c=void 0===l?"L7MAP":l,h=e.mapSize,f=void 0===h?1e4:h,d=g()(e,B),this.viewport=new D.default,this.version=c,this.simpleMapCoord.setSize(f),c===R.Version.SIMPLE&&d.center&&(d.center=this.simpleMapCoord.unproject(d.center)),u?(this.map=u,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatAmapContainer(r),this.map=new j.Map(V({container:this.$mapContainer,style:this.getMapStyle(o),bearing:s},d))),this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"initMiniMap",value:(e=m()(M.a.mark((function t(){var e,n,r,i,o,a,s,u,l,c,h,f=this;return M.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this.config,e.id,e.attributionControl,n=e.style,r=void 0===n?"light":n,i=e.rotation,o=void 0===i?0:i,e.mapInstance,a=e.canvas,s=void 0===a?null:a,u=e.hasBaseMap,l=void 0!==u&&u,c=g()(e,F),this.viewport=new D.default,this.$mapContainer=s,this.map=new j.Map(V({container:this.$mapContainer,style:this.getMapStyle(r),bearing:o,canvas:s},c)),l?(h=this.map.getCenter(),this.handleMiniCameraChanged(h.lng,h.lat,this.map.getZoom(),this.map.getBearing(),this.map.getPitch()),k.$window.document.addEventListener("mapCameaParams",(function(t){var e=t.e,n=e.longitude,r=e.latitude,i=e.scale,o=e.bearing,a=e.pitch;f.handleMiniCameraChanged(n,r,i-1.25,o,a)}))):(this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged());case 5:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this.eventEmitter).emit.apply(e,[t].concat(r))}},{key:"once",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this.eventEmitter).once.apply(e,[t].concat(r))}},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"exportMap",value:function(t){var e=this.map.getCanvas();return"jpg"===t?null==e?void 0:e.toDataURL("image/jpeg"):null==e?void 0:e.toDataURL("image/png")}},{key:"onCameraChanged",value:function(t){this.cameraChangedCallback=t}},{key:"creatAmapContainer",value:function(t){var e=t;return"string"==typeof t&&(e=document.getElementById(t)),e}},{key:"getMapStyle",value:function(t){return"string"!=typeof t?t:N.MapTheme[t]?N.MapTheme[t]:t}}]),t}(),c=T()(l.prototype,"config",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=T()(l.prototype,"configService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=T()(l.prototype,"coordinateSystemService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=T()(l.prototype,"eventEmitter",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=l))||u)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(599);function i(t){if(Array.isArray(t))return Object(r.default)(t)}},function(t,e,n){"use strict";function r(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"Blob",(function(){return o}));var r=n(19),i=n(20),o=function(){function t(e,n){Object(r.default)(this,t),this.buffers=e,this.type=n}return Object(i.default)(t,[{key:"arraybuffer",value:function(){return Promise.resolve(this.buffers[0])}},{key:"stream",value:function(){throw new Error("not implemented")}},{key:"text",value:function(){throw new Error("not implemented")}},{key:"slice",value:function(t,e,n){throw new Error("not implemented")}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"HTMLCanvasElement",(function(){return r}));var r=Object},function(t,e,n){"use strict";n.r(e),n.d(e,"ImageData",(function(){return a}));var r=n(506),i=n(19),o=n(20),a=function(){function t(){Object(i.default)(this,t);var e=arguments.length;if(2===e){if("number"==typeof arguments[0]&&"number"==typeof arguments[1])return this._w=arguments[0],this._h=arguments[1],void(this._data=new Uint8ClampedArray(this._w*this._h*4))}else 3===e&&"object"===Object(r.default)(arguments[0])&&"number"==typeof arguments[1]&&"number"==typeof arguments[2]&&(this._data=arguments[0],this._w=arguments[1],this._h=arguments[2]);throw new Error("ImageData: params error")}return Object(o.default)(t,[{key:"width",get:function(){return this._w}},{key:"height",get:function(){return this._h}},{key:"data",get:function(){return this._data}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"isMiniAli",(function(){return u})),n.d(e,"navigator",(function(){return d}));var r,i,o,a,s=n(234),u="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM;if(u){var l=my.getSystemInfoSync();r=l.system,i=l.platform,o=l.language}else{var c={versions:(a=s.globalWindow.navigator.userAgent,{trident:a.indexOf("Trident")>-1,presto:a.indexOf("Presto")>-1,webKit:a.indexOf("AppleWebKit")>-1,gecko:a.indexOf("Gecko")>-1&&-1===a.indexOf("KHTML"),mobile:!!a.match(/AppleWebKit.*Mobile.*/),ios:!!a.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:a.indexOf("Android")>-1||a.indexOf("Linux")>-1,iPhone:a.indexOf("iPhone")>-1,iPad:a.indexOf("iPad")>-1,webApp:-1===a.indexOf("Safari"),weixin:a.indexOf("MicroMessenger")>-1,qq:" qq"===a.match(/\sQQ/i)}),language:(s.globalWindow.navigator.browserLanguage||s.globalWindow.navigator.language).toLowerCase()};c.versions.android?i="android":c.versions.trident?i="IE":c.versions.presto?i="Opera":c.versions.webKit?i="webKit":c.versions.gecko?i="Firefox":c.versions.mobile?i="mobile":c.versions.ios?i="ios":c.versions.iPhone?i="iPhone":c.versions.iPad?i="ipad":c.versions.webApp?i="webApp":c.versions.weixin?i="weixin":c.versions.qq&&(i="qq"),r=s.globalWindow.navigator.userAgent,o=c.language}var h=-1!==r.toLowerCase().indexOf("android")?"Android; CPU Android 6.0":"iPhone; CPU iPhone OS 10_3_1 like Mac OS X",f="Mozilla/5.0 (".concat(h,") AppleWebKit/603.1.30 (KHTML, like Gecko) Mobile/14E8301 MicroMessenger/6.6.0 MiniGame NetType/WIFI Language/").concat(o),d={platform:i,language:o,appVersion:"5.0 (".concat(h,") AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"),userAgent:f}},function(t,e,n){"use strict";n.r(e),n.d(e,"performance",(function(){return r}));var r={mark:function(t){return null},clearMeasures:function(t){return null},clearMarks:function(t){return null},measure:function(t,e,n){return{duration:0}},now:function(){}}},function(t,e,n){"use strict";n.r(e),n.d(e,"URL",(function(){return a}));var r=n(19),i=n(20),o=n(601),a=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Object(r.default)(this,t),0!=e.indexOf("http://")&&0!=e.indexOf("https://")?this.href=n+e:this.href=e}return Object(i.default)(t,null,[{key:"createObjectURL",value:function(t){var e=t.buffers[0],n=t.type,r=function(t){for(var e="",n=new Uint8Array(t),r=n.byteLength,i=0;i<r;i++)e+=String.fromCharCode(n[i]);return Object(o.btoa)(e)}(e);return"data:".concat(n,";base64, ")+r}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"WebGLRenderingContext",(function(){return r}));var r={GCCSO_SHADER_BINARY_FJ:37472,_3DC_XY_AMD:34810,_3DC_X_AMD:34809,ACTIVE_ATTRIBUTES:35721,ACTIVE_ATTRIBUTE_MAX_LENGTH:35722,ACTIVE_PROGRAM_EXT:33369,ACTIVE_TEXTURE:34016,ACTIVE_UNIFORMS:35718,ACTIVE_UNIFORM_MAX_LENGTH:35719,ALIASED_LINE_WIDTH_RANGE:33902,ALIASED_POINT_SIZE_RANGE:33901,ALL_COMPLETED_NV:34034,ALL_SHADER_BITS_EXT:4294967295,ALPHA:6406,ALPHA16F_EXT:34844,ALPHA32F_EXT:34838,ALPHA8_EXT:32828,ALPHA8_OES:32828,ALPHA_BITS:3413,ALPHA_TEST_FUNC_QCOM:3009,ALPHA_TEST_QCOM:3008,ALPHA_TEST_REF_QCOM:3010,ALREADY_SIGNALED_APPLE:37146,ALWAYS:519,AMD_compressed_3DC_texture:1,AMD_compressed_ATC_texture:1,AMD_performance_monitor:1,AMD_program_binary_Z400:1,ANGLE_depth_texture:1,ANGLE_framebuffer_blit:1,ANGLE_framebuffer_multisample:1,ANGLE_instanced_arrays:1,ANGLE_pack_reverse_row_order:1,ANGLE_program_binary:1,ANGLE_texture_compression_dxt3:1,ANGLE_texture_compression_dxt5:1,ANGLE_texture_usage:1,ANGLE_translated_shader_source:1,ANY_SAMPLES_PASSED_CONSERVATIVE_EXT:36202,ANY_SAMPLES_PASSED_EXT:35887,APPLE_copy_texture_levels:1,APPLE_framebuffer_multisample:1,APPLE_rgb_422:1,APPLE_sync:1,APPLE_texture_format_BGRA8888:1,APPLE_texture_max_level:1,ARM_mali_program_binary:1,ARM_mali_shader_binary:1,ARM_rgba8:1,ARRAY_BUFFER:34962,ARRAY_BUFFER_BINDING:34964,ATC_RGBA_EXPLICIT_ALPHA_AMD:35987,ATC_RGBA_INTERPOLATED_ALPHA_AMD:34798,ATC_RGB_AMD:35986,ATTACHED_SHADERS:35717,BACK:1029,BGRA8_EXT:37793,BGRA_EXT:32993,BGRA_IMG:32993,BINNING_CONTROL_HINT_QCOM:36784,BLEND:3042,BLEND_COLOR:32773,BLEND_DST_ALPHA:32970,BLEND_DST_RGB:32968,BLEND_EQUATION:32777,BLEND_EQUATION_ALPHA:34877,BLEND_EQUATION_RGB:32777,BLEND_SRC_ALPHA:32971,BLEND_SRC_RGB:32969,BLUE_BITS:3412,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,BUFFER:33504,BUFFER_ACCESS_OES:35003,BUFFER_MAPPED_OES:35004,BUFFER_MAP_POINTER_OES:35005,BUFFER_OBJECT_EXT:37201,BUFFER_SIZE:34660,BUFFER_USAGE:34661,BYTE:5120,CCW:2305,CLAMP_TO_BORDER_NV:33069,CLAMP_TO_EDGE:33071,COLOR_ATTACHMENT0:36064,COLOR_ATTACHMENT0_NV:36064,COLOR_ATTACHMENT10_NV:36074,COLOR_ATTACHMENT11_NV:36075,COLOR_ATTACHMENT12_NV:36076,COLOR_ATTACHMENT13_NV:36077,COLOR_ATTACHMENT14_NV:36078,COLOR_ATTACHMENT15_NV:36079,COLOR_ATTACHMENT1_NV:36065,COLOR_ATTACHMENT2_NV:36066,COLOR_ATTACHMENT3_NV:36067,COLOR_ATTACHMENT4_NV:36068,COLOR_ATTACHMENT5_NV:36069,COLOR_ATTACHMENT6_NV:36070,COLOR_ATTACHMENT7_NV:36071,COLOR_ATTACHMENT8_NV:36072,COLOR_ATTACHMENT9_NV:36073,COLOR_ATTACHMENT_EXT:37104,COLOR_BUFFER_BIT:16384,COLOR_BUFFER_BIT0_QCOM:1,COLOR_BUFFER_BIT1_QCOM:2,COLOR_BUFFER_BIT2_QCOM:4,COLOR_BUFFER_BIT3_QCOM:8,COLOR_BUFFER_BIT4_QCOM:16,COLOR_BUFFER_BIT5_QCOM:32,COLOR_BUFFER_BIT6_QCOM:64,COLOR_BUFFER_BIT7_QCOM:128,COLOR_CLEAR_VALUE:3106,COLOR_EXT:6144,COLOR_WRITEMASK:3107,COMPARE_REF_TO_TEXTURE_EXT:34894,COMPILE_STATUS:35713,COMPRESSED_RGBA_ASTC_10x10_KHR:37819,COMPRESSED_RGBA_ASTC_10x5_KHR:37816,COMPRESSED_RGBA_ASTC_10x6_KHR:37817,COMPRESSED_RGBA_ASTC_10x8_KHR:37818,COMPRESSED_RGBA_ASTC_12x10_KHR:37820,COMPRESSED_RGBA_ASTC_12x12_KHR:37821,COMPRESSED_RGBA_ASTC_4x4_KHR:37808,COMPRESSED_RGBA_ASTC_5x4_KHR:37809,COMPRESSED_RGBA_ASTC_5x5_KHR:37810,COMPRESSED_RGBA_ASTC_6x5_KHR:37811,COMPRESSED_RGBA_ASTC_6x6_KHR:37812,COMPRESSED_RGBA_ASTC_8x5_KHR:37813,COMPRESSED_RGBA_ASTC_8x6_KHR:37814,COMPRESSED_RGBA_ASTC_8x8_KHR:37815,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGBA_PVRTC_2BPPV2_IMG:37175,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGBA_PVRTC_4BPPV2_IMG:37176,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_ANGLE:33778,COMPRESSED_RGBA_S3TC_DXT5_ANGLE:33779,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:37851,COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:37848,COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:37849,COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:37850,COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:37852,COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:37853,COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:37840,COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:37841,COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:37842,COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:37843,COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:37844,COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:37845,COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:37846,COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:37847,COMPRESSED_SRGB_ALPHA_S3TC_DXT1_NV:35917,COMPRESSED_SRGB_ALPHA_S3TC_DXT3_NV:35918,COMPRESSED_SRGB_ALPHA_S3TC_DXT5_NV:35919,COMPRESSED_SRGB_S3TC_DXT1_NV:35916,COMPRESSED_TEXTURE_FORMATS:34467,CONDITION_SATISFIED_APPLE:37148,CONSTANT_ALPHA:32771,CONSTANT_COLOR:32769,CONTEXT_FLAG_DEBUG_BIT:2,CONTEXT_ROBUST_ACCESS_EXT:37107,COUNTER_RANGE_AMD:35777,COUNTER_TYPE_AMD:35776,COVERAGE_ALL_FRAGMENTS_NV:36565,COVERAGE_ATTACHMENT_NV:36562,COVERAGE_AUTOMATIC_NV:36567,COVERAGE_BUFFERS_NV:36563,COVERAGE_BUFFER_BIT_NV:32768,COVERAGE_COMPONENT4_NV:36561,COVERAGE_COMPONENT_NV:36560,COVERAGE_EDGE_FRAGMENTS_NV:36566,COVERAGE_SAMPLES_NV:36564,CPU_OPTIMIZED_QCOM:36785,CULL_FACE:2884,CULL_FACE_MODE:2885,CURRENT_PROGRAM:35725,CURRENT_QUERY_EXT:34917,CURRENT_VERTEX_ATTRIB:34342,CW:2304,DEBUG_CALLBACK_FUNCTION:33348,DEBUG_CALLBACK_USER_PARAM:33349,DEBUG_GROUP_STACK_DEPTH:33389,DEBUG_LOGGED_MESSAGES:37189,DEBUG_NEXT_LOGGED_MESSAGE_LENGTH:33347,DEBUG_OUTPUT:37600,DEBUG_OUTPUT_SYNCHRONOUS:33346,DEBUG_SEVERITY_HIGH:37190,DEBUG_SEVERITY_LOW:37192,DEBUG_SEVERITY_MEDIUM:37191,DEBUG_SEVERITY_NOTIFICATION:33387,DEBUG_SOURCE_API:33350,DEBUG_SOURCE_APPLICATION:33354,DEBUG_SOURCE_OTHER:33355,DEBUG_SOURCE_SHADER_COMPILER:33352,DEBUG_SOURCE_THIRD_PARTY:33353,DEBUG_SOURCE_WINDOW_SYSTEM:33351,DEBUG_TYPE_DEPRECATED_BEHAVIOR:33357,DEBUG_TYPE_ERROR:33356,DEBUG_TYPE_MARKER:33384,DEBUG_TYPE_OTHER:33361,DEBUG_TYPE_PERFORMANCE:33360,DEBUG_TYPE_POP_GROUP:33386,DEBUG_TYPE_PORTABILITY:33359,DEBUG_TYPE_PUSH_GROUP:33385,DEBUG_TYPE_UNDEFINED_BEHAVIOR:33358,DECR:7683,DECR_WRAP:34056,DELETE_STATUS:35712,DEPTH24_STENCIL8_OES:35056,DEPTH_ATTACHMENT:36096,DEPTH_STENCIL_ATTACHMENT:33306,DEPTH_BITS:3414,DEPTH_BUFFER_BIT:256,DEPTH_BUFFER_BIT0_QCOM:256,DEPTH_BUFFER_BIT1_QCOM:512,DEPTH_BUFFER_BIT2_QCOM:1024,DEPTH_BUFFER_BIT3_QCOM:2048,DEPTH_BUFFER_BIT4_QCOM:4096,DEPTH_BUFFER_BIT5_QCOM:8192,DEPTH_BUFFER_BIT6_QCOM:16384,DEPTH_BUFFER_BIT7_QCOM:32768,DEPTH_CLEAR_VALUE:2931,DEPTH_COMPONENT:6402,DEPTH_COMPONENT16:33189,DEPTH_COMPONENT16_NONLINEAR_NV:36396,DEPTH_COMPONENT16_OES:33189,DEPTH_COMPONENT24_OES:33190,DEPTH_COMPONENT32_OES:33191,DEPTH_EXT:6145,DEPTH_FUNC:2932,DEPTH_RANGE:2928,DEPTH_STENCIL:34041,DEPTH_STENCIL_OES:34041,DEPTH_TEST:2929,DEPTH_WRITEMASK:2930,DITHER:3024,DMP_shader_binary:1,DONT_CARE:4352,DRAW_BUFFER0_NV:34853,DRAW_BUFFER10_NV:34863,DRAW_BUFFER11_NV:34864,DRAW_BUFFER12_NV:34865,DRAW_BUFFER13_NV:34866,DRAW_BUFFER14_NV:34867,DRAW_BUFFER15_NV:34868,DRAW_BUFFER1_NV:34854,DRAW_BUFFER2_NV:34855,DRAW_BUFFER3_NV:34856,DRAW_BUFFER4_NV:34857,DRAW_BUFFER5_NV:34858,DRAW_BUFFER6_NV:34859,DRAW_BUFFER7_NV:34860,DRAW_BUFFER8_NV:34861,DRAW_BUFFER9_NV:34862,DRAW_BUFFER_EXT:3073,DRAW_FRAMEBUFFER_ANGLE:36009,DRAW_FRAMEBUFFER_APPLE:36009,DRAW_FRAMEBUFFER_BINDING_ANGLE:36006,DRAW_FRAMEBUFFER_BINDING_APPLE:36006,DRAW_FRAMEBUFFER_BINDING_NV:36006,DRAW_FRAMEBUFFER_NV:36009,DST_ALPHA:772,DST_COLOR:774,DYNAMIC_DRAW:35048,ELEMENT_ARRAY_BUFFER:34963,ELEMENT_ARRAY_BUFFER_BINDING:34965,EQUAL:514,ES_VERSION_2_0:1,ETC1_RGB8_OES:36196,ETC1_SRGB8_NV:35054,EXTENSIONS:7939,EXT_blend_minmax:1,EXT_color_buffer_half_float:1,EXT_debug_label:1,EXT_debug_marker:1,EXT_discard_framebuffer:1,EXT_map_buffer_range:1,EXT_multi_draw_arrays:1,EXT_multisampled_render_to_texture:1,EXT_multiview_draw_buffers:1,EXT_occlusion_query_boolean:1,EXT_read_format_bgra:1,EXT_robustness:1,EXT_sRGB:1,EXT_separate_shader_objects:1,EXT_shader_framebuffer_fetch:1,EXT_shader_texture_lod:1,EXT_shadow_samplers:1,EXT_texture_compression_dxt1:1,EXT_texture_filter_anisotropic:1,EXT_texture_format_BGRA8888:1,EXT_texture_rg:1,EXT_texture_storage:1,EXT_texture_type_2_10_10_10_REV:1,EXT_unpack_subimage:1,FALSE:0,FASTEST:4353,FENCE_CONDITION_NV:34036,FENCE_STATUS_NV:34035,FIXED:5132,FJ_shader_binary_GCCSO:1,FLOAT:5126,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,FRAGMENT_SHADER:35632,FRAGMENT_SHADER_BIT_EXT:2,FRAGMENT_SHADER_DERIVATIVE_HINT_OES:35723,FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT:35410,FRAMEBUFFER:36160,FRAMEBUFFER_ATTACHMENT_ANGLE:37795,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:33297,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES:36052,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT:36204,FRAMEBUFFER_BINDING:36006,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE:36182,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE:36182,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT:36182,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG:37172,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_NV:36182,FRAMEBUFFER_UNDEFINED_OES:33305,FRAMEBUFFER_UNSUPPORTED:36061,FRONT:1028,FRONT_AND_BACK:1032,FRONT_FACE:2886,FUNC_ADD:32774,FUNC_REVERSE_SUBTRACT:32779,FUNC_SUBTRACT:32778,GENERATE_MIPMAP_HINT:33170,GEQUAL:518,GPU_OPTIMIZED_QCOM:36786,GREATER:516,GREEN_BITS:3411,GUILTY_CONTEXT_RESET_EXT:33363,HALF_FLOAT_OES:36193,HIGH_FLOAT:36338,HIGH_INT:36341,IMG_multisampled_render_to_texture:1,IMG_program_binary:1,IMG_read_format:1,IMG_shader_binary:1,IMG_texture_compression_pvrtc:1,IMG_texture_compression_pvrtc2:1,IMPLEMENTATION_COLOR_READ_FORMAT:35739,IMPLEMENTATION_COLOR_READ_TYPE:35738,INCR:7682,INCR_WRAP:34055,INFO_LOG_LENGTH:35716,INNOCENT_CONTEXT_RESET_EXT:33364,INT:5124,INT_10_10_10_2_OES:36343,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,INVALID_ENUM:1280,INVALID_FRAMEBUFFER_OPERATION:1286,INVALID_OPERATION:1282,INVALID_VALUE:1281,INVERT:5386,KEEP:7680,KHR_debug:1,KHR_texture_compression_astc_ldr:1,LEFT:1030,LEQUAL:515,LESS:513,LINEAR:9729,LINEAR_MIPMAP_LINEAR:9987,LINEAR_MIPMAP_NEAREST:9985,LINES:1,LINE_LOOP:2,LINE_STRIP:3,LINE_WIDTH:2849,LINK_STATUS:35714,LOSE_CONTEXT_ON_RESET_EXT:33362,LOW_FLOAT:36336,LOW_INT:36339,LUMINANCE:6409,LUMINANCE16F_EXT:34846,LUMINANCE32F_EXT:34840,LUMINANCE4_ALPHA4_OES:32835,LUMINANCE8_ALPHA8_EXT:32837,LUMINANCE8_ALPHA8_OES:32837,LUMINANCE8_EXT:32832,LUMINANCE8_OES:32832,LUMINANCE_ALPHA:6410,LUMINANCE_ALPHA16F_EXT:34847,LUMINANCE_ALPHA32F_EXT:34841,MALI_PROGRAM_BINARY_ARM:36705,MALI_SHADER_BINARY_ARM:36704,MAP_FLUSH_EXPLICIT_BIT_EXT:16,MAP_INVALIDATE_BUFFER_BIT_EXT:8,MAP_INVALIDATE_RANGE_BIT_EXT:4,MAP_READ_BIT_EXT:1,MAP_UNSYNCHRONIZED_BIT_EXT:32,MAP_WRITE_BIT_EXT:2,MAX_3D_TEXTURE_SIZE_OES:32883,MAX_COLOR_ATTACHMENTS_NV:36063,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_CUBE_MAP_TEXTURE_SIZE:34076,MAX_DEBUG_GROUP_STACK_DEPTH:33388,MAX_DEBUG_LOGGED_MESSAGES:37188,MAX_DEBUG_MESSAGE_LENGTH:37187,MAX_DRAW_BUFFERS_NV:34852,MAX_EXT:32776,MAX_FRAGMENT_UNIFORM_VECTORS:36349,MAX_LABEL_LENGTH:33512,MAX_MULTIVIEW_BUFFERS_EXT:37106,MAX_RENDERBUFFER_SIZE:34024,MAX_SAMPLES_ANGLE:36183,MAX_SAMPLES_APPLE:36183,MAX_SAMPLES_EXT:36183,MAX_SAMPLES_IMG:37173,MAX_SAMPLES_NV:36183,MAX_SERVER_WAIT_TIMEOUT_APPLE:37137,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047,MAX_TEXTURE_SIZE:3379,MAX_VARYING_VECTORS:36348,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VIEWPORT_DIMS:3386,MEDIUM_FLOAT:36337,MEDIUM_INT:36340,MIN_EXT:32775,MIRRORED_REPEAT:33648,MULTISAMPLE_BUFFER_BIT0_QCOM:16777216,MULTISAMPLE_BUFFER_BIT1_QCOM:33554432,MULTISAMPLE_BUFFER_BIT2_QCOM:67108864,MULTISAMPLE_BUFFER_BIT3_QCOM:134217728,MULTISAMPLE_BUFFER_BIT4_QCOM:268435456,MULTISAMPLE_BUFFER_BIT5_QCOM:536870912,MULTISAMPLE_BUFFER_BIT6_QCOM:1073741824,MULTISAMPLE_BUFFER_BIT7_QCOM:2147483648,MULTIVIEW_EXT:37105,NEAREST:9728,NEAREST_MIPMAP_LINEAR:9986,NEAREST_MIPMAP_NEAREST:9984,NEVER:512,NICEST:4354,NONE:0,NOTEQUAL:517,NO_ERROR:0,NO_RESET_NOTIFICATION_EXT:33377,NUM_COMPRESSED_TEXTURE_FORMATS:34466,NUM_PROGRAM_BINARY_FORMATS_OES:34814,NUM_SHADER_BINARY_FORMATS:36345,NV_coverage_sample:1,NV_depth_nonlinear:1,NV_draw_buffers:1,NV_draw_instanced:1,NV_fbo_color_attachments:1,NV_fence:1,NV_framebuffer_blit:1,NV_framebuffer_multisample:1,NV_generate_mipmap_sRGB:1,NV_instanced_arrays:1,NV_read_buffer:1,NV_read_buffer_front:1,NV_read_depth:1,NV_read_depth_stencil:1,NV_read_stencil:1,NV_sRGB_formats:1,NV_shadow_samplers_array:1,NV_shadow_samplers_cube:1,NV_texture_border_clamp:1,NV_texture_compression_s3tc_update:1,NV_texture_npot_2D_mipmap:1,OBJECT_TYPE_APPLE:37138,OES_EGL_image:1,OES_EGL_image_external:1,OES_compressed_ETC1_RGB8_texture:1,OES_compressed_paletted_texture:1,OES_depth24:1,OES_depth32:1,OES_depth_texture:1,OES_element_index_uint:1,OES_fbo_render_mipmap:1,OES_fragment_precision_high:1,OES_get_program_binary:1,OES_mapbuffer:1,OES_packed_depth_stencil:1,OES_required_internalformat:1,OES_rgb8_rgba8:1,OES_standard_derivatives:1,OES_stencil1:1,OES_stencil4:1,OES_surfaceless_context:1,OES_texture_3D:1,OES_texture_float:1,OES_texture_float_linear:1,OES_texture_half_float:1,OES_texture_half_float_linear:1,OES_texture_npot:1,OES_vertex_array_object:1,OES_vertex_half_float:1,OES_vertex_type_10_10_10_2:1,ONE:1,ONE_MINUS_CONSTANT_ALPHA:32772,ONE_MINUS_CONSTANT_COLOR:32770,ONE_MINUS_DST_ALPHA:773,ONE_MINUS_DST_COLOR:775,ONE_MINUS_SRC_ALPHA:771,ONE_MINUS_SRC_COLOR:769,OUT_OF_MEMORY:1285,PACK_ALIGNMENT:3333,PACK_REVERSE_ROW_ORDER_ANGLE:37796,PALETTE4_R5_G6_B5_OES:35730,PALETTE4_RGB5_A1_OES:35732,PALETTE4_RGB8_OES:35728,PALETTE4_RGBA4_OES:35731,PALETTE4_RGBA8_OES:35729,PALETTE8_R5_G6_B5_OES:35735,PALETTE8_RGB5_A1_OES:35737,PALETTE8_RGB8_OES:35733,PALETTE8_RGBA4_OES:35736,PALETTE8_RGBA8_OES:35734,PERCENTAGE_AMD:35779,PERFMON_GLOBAL_MODE_QCOM:36768,PERFMON_RESULT_AMD:35782,PERFMON_RESULT_AVAILABLE_AMD:35780,PERFMON_RESULT_SIZE_AMD:35781,POINTS:0,POLYGON_OFFSET_FACTOR:32824,POLYGON_OFFSET_FILL:32823,POLYGON_OFFSET_UNITS:10752,PROGRAM:33506,PROGRAM_BINARY_ANGLE:37798,PROGRAM_BINARY_FORMATS_OES:34815,PROGRAM_BINARY_LENGTH_OES:34625,PROGRAM_OBJECT_EXT:35648,PROGRAM_PIPELINE_BINDING_EXT:33370,PROGRAM_PIPELINE_OBJECT_EXT:35407,PROGRAM_SEPARABLE_EXT:33368,QCOM_alpha_test:1,QCOM_binning_control:1,QCOM_driver_control:1,QCOM_extended_get:1,QCOM_extended_get2:1,QCOM_perfmon_global_mode:1,QCOM_tiled_rendering:1,QCOM_writeonly_rendering:1,QUERY:33507,QUERY_OBJECT_EXT:37203,QUERY_RESULT_AVAILABLE_EXT:34919,QUERY_RESULT_EXT:34918,R16F_EXT:33325,R32F_EXT:33326,R8_EXT:33321,READ_BUFFER_EXT:3074,READ_BUFFER_NV:3074,READ_FRAMEBUFFER_ANGLE:36008,READ_FRAMEBUFFER_APPLE:36008,READ_FRAMEBUFFER_BINDING_ANGLE:36010,READ_FRAMEBUFFER_BINDING_APPLE:36010,READ_FRAMEBUFFER_BINDING_NV:36010,READ_FRAMEBUFFER_NV:36008,RED_BITS:3410,RED_EXT:6403,RENDERBUFFER:36161,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_BINDING:36007,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_SAMPLES_ANGLE:36011,RENDERBUFFER_SAMPLES_APPLE:36011,RENDERBUFFER_SAMPLES_EXT:36011,RENDERBUFFER_SAMPLES_IMG:37171,RENDERBUFFER_SAMPLES_NV:36011,RENDERBUFFER_STENCIL_SIZE:36181,RENDERBUFFER_WIDTH:36162,RENDERER:7937,RENDER_DIRECT_TO_FRAMEBUFFER_QCOM:36787,REPEAT:10497,REPLACE:7681,REQUIRED_TEXTURE_IMAGE_UNITS_OES:36200,RESET_NOTIFICATION_STRATEGY_EXT:33366,RG16F_EXT:33327,RG32F_EXT:33328,RG8_EXT:33323,RGB:6407,RGB10_A2_EXT:32857,RGB10_EXT:32850,RGB16F_EXT:34843,RGB32F_EXT:34837,RGB565:36194,RGB565_OES:36194,RGB5_A1:32855,RGB5_A1_OES:32855,RGB8_OES:32849,RGBA:6408,RGBA16F_EXT:34842,RGBA32F_EXT:34836,RGBA4:32854,RGBA4_OES:32854,RGBA8_OES:32856,RGB_422_APPLE:35359,RG_EXT:33319,RIGHT:1031,SAMPLER:33510,SAMPLER_2D:35678,SAMPLER_2D_ARRAY_SHADOW_NV:36292,SAMPLER_2D_SHADOW_EXT:35682,SAMPLER_3D_OES:35679,SAMPLER_CUBE:35680,SAMPLER_CUBE_SHADOW_NV:36293,SAMPLER_EXTERNAL_OES:36198,SAMPLES:32937,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_BUFFERS:32936,SAMPLE_COVERAGE:32928,SAMPLE_COVERAGE_INVERT:32939,SAMPLE_COVERAGE_VALUE:32938,SCISSOR_BOX:3088,SCISSOR_TEST:3089,SGX_BINARY_IMG:35850,SGX_PROGRAM_BINARY_IMG:37168,SHADER:33505,SHADER_BINARY_DMP:37456,SHADER_BINARY_FORMATS:36344,SHADER_BINARY_VIV:36804,SHADER_COMPILER:36346,SHADER_OBJECT_EXT:35656,SHADER_SOURCE_LENGTH:35720,SHADER_TYPE:35663,SHADING_LANGUAGE_VERSION:35724,SHORT:5122,SIGNALED_APPLE:37145,SLUMINANCE8_ALPHA8_NV:35909,SLUMINANCE8_NV:35911,SLUMINANCE_ALPHA_NV:35908,SLUMINANCE_NV:35910,SRC_ALPHA:770,SRC_ALPHA_SATURATE:776,SRC_COLOR:768,SRGB8_ALPHA8_EXT:35907,SRGB8_NV:35905,SRGB_ALPHA_EXT:35906,SRGB_EXT:35904,STACK_OVERFLOW:1283,STACK_UNDERFLOW:1284,STATE_RESTORE:35804,STATIC_DRAW:35044,STENCIL_ATTACHMENT:36128,STENCIL_BACK_FAIL:34817,STENCIL_BACK_FUNC:34816,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,STENCIL_BITS:3415,STENCIL_BUFFER_BIT:1024,STENCIL_BUFFER_BIT0_QCOM:65536,STENCIL_BUFFER_BIT1_QCOM:131072,STENCIL_BUFFER_BIT2_QCOM:262144,STENCIL_BUFFER_BIT3_QCOM:524288,STENCIL_BUFFER_BIT4_QCOM:1048576,STENCIL_BUFFER_BIT5_QCOM:2097152,STENCIL_BUFFER_BIT6_QCOM:4194304,STENCIL_BUFFER_BIT7_QCOM:8388608,STENCIL_CLEAR_VALUE:2961,STENCIL_EXT:6146,STENCIL_FAIL:2964,STENCIL_FUNC:2962,STENCIL_INDEX1_OES:36166,STENCIL_INDEX4_OES:36167,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_TEST:2960,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STREAM_DRAW:35040,SUBPIXEL_BITS:3408,SYNC_CONDITION_APPLE:37139,SYNC_FENCE_APPLE:37142,SYNC_FLAGS_APPLE:37141,SYNC_FLUSH_COMMANDS_BIT_APPLE:1,SYNC_GPU_COMMANDS_COMPLETE_APPLE:37143,SYNC_OBJECT_APPLE:35411,SYNC_STATUS_APPLE:37140,TEXTURE:5890,TEXTURE0:33984,TEXTURE1:33985,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE2:33986,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE3:33987,TEXTURE30:34014,TEXTURE31:34015,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE_2D:3553,TEXTURE_3D_OES:32879,TEXTURE_BINDING_2D:32873,TEXTURE_BINDING_3D_OES:32874,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_BINDING_EXTERNAL_OES:36199,TEXTURE_BORDER_COLOR_NV:4100,TEXTURE_COMPARE_FUNC_EXT:34893,TEXTURE_COMPARE_MODE_EXT:34892,TEXTURE_CUBE_MAP:34067,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_DEPTH_QCOM:35796,TEXTURE_EXTERNAL_OES:36197,TEXTURE_FORMAT_QCOM:35798,TEXTURE_HEIGHT_QCOM:35795,TEXTURE_IMAGE_VALID_QCOM:35800,TEXTURE_IMMUTABLE_FORMAT_EXT:37167,TEXTURE_INTERNAL_FORMAT_QCOM:35797,TEXTURE_MAG_FILTER:10240,TEXTURE_MAX_ANISOTROPY_EXT:34046,TEXTURE_MAX_LEVEL_APPLE:33085,TEXTURE_MIN_FILTER:10241,TEXTURE_NUM_LEVELS_QCOM:35801,TEXTURE_OBJECT_VALID_QCOM:35803,TEXTURE_SAMPLES_IMG:37174,TEXTURE_TARGET_QCOM:35802,TEXTURE_TYPE_QCOM:35799,TEXTURE_USAGE_ANGLE:37794,TEXTURE_WIDTH_QCOM:35794,TEXTURE_WRAP_R_OES:32882,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TIMEOUT_EXPIRED_APPLE:37147,TIMEOUT_IGNORED_APPLE:0x10000000000000000,TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE:37792,TRIANGLES:4,TRIANGLE_FAN:6,TRIANGLE_STRIP:5,TRUE:1,UNKNOWN_CONTEXT_RESET_EXT:33365,UNPACK_ALIGNMENT:3317,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_PIXELS:3316,UNPACK_SKIP_ROWS:3315,UNSIGNALED_APPLE:37144,UNSIGNED_BYTE:5121,UNSIGNED_INT:5125,UNSIGNED_INT64_AMD:35778,UNSIGNED_INT_10_10_10_2_OES:36342,UNSIGNED_INT_24_8_OES:34042,UNSIGNED_INT_2_10_10_10_REV_EXT:33640,UNSIGNED_NORMALIZED_EXT:35863,UNSIGNED_SHORT:5123,UNSIGNED_SHORT_1_5_5_5_REV_EXT:33638,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_4_4_4_4_REV_EXT:33637,UNSIGNED_SHORT_4_4_4_4_REV_IMG:33637,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,UNSIGNED_SHORT_8_8_APPLE:34234,UNSIGNED_SHORT_8_8_REV_APPLE:34235,VALIDATE_STATUS:35715,VENDOR:7936,VERSION:7938,VERTEX_ARRAY_BINDING_OES:34229,VERTEX_ARRAY_OBJECT_EXT:37204,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE:35070,VERTEX_ATTRIB_ARRAY_DIVISOR_NV:35070,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_SHADER:35633,VERTEX_SHADER_BIT_EXT:1,VIEWPORT:2978,VIV_shader_binary:1,WAIT_FAILED_APPLE:37149,WRITEONLY_RENDERING_QCOM:34851,WRITE_ONLY_OES:35001,Z400_BINARY_AMD:34624,ZERO:0,RASTERIZER_DISCARD:35977,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,CONTEXT_LOST_WEBGL:37442,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,BROWSER_DEFAULT_WEBGL:37444}},function(t,e,n){"use strict";n.r(e),n.d(e,"WebGL2RenderingContext",(function(){return r}));var r={}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(32),i=n(507),o=n(1841),a=n(1842);function s(t){var e="function"==typeof Map?new Map:void 0;return(s=function(t){if(null===t||!Object(o.default)(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return Object(a.default)(t,arguments,Object(r.default)(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Object(i.default)(n,t)})(t)}},function(t,e,n){"use strict";function r(t){return-1!==Function.toString.call(t).indexOf("[native code]")}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(507),i=n(1843);function o(t,e,n){return(o=Object(i.default)()?Reflect.construct.bind():function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&Object(r.default)(o,n.prototype),o}).apply(null,arguments)}},function(t,e,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(1845);function i(t){var e=[1/0,1/0,-1/0,-1/0];return Object(r.coordEach)(t,(function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])})),e}i.default=i,e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"coordAll",(function(){return c})),n.d(e,"coordEach",(function(){return i})),n.d(e,"coordReduce",(function(){return o})),n.d(e,"featureEach",(function(){return u})),n.d(e,"featureReduce",(function(){return l})),n.d(e,"findPoint",(function(){return _})),n.d(e,"findSegment",(function(){return b})),n.d(e,"flattenEach",(function(){return d})),n.d(e,"flattenReduce",(function(){return p})),n.d(e,"geomEach",(function(){return h})),n.d(e,"geomReduce",(function(){return f})),n.d(e,"lineEach",(function(){return m})),n.d(e,"lineReduce",(function(){return y})),n.d(e,"propEach",(function(){return a})),n.d(e,"propReduce",(function(){return s})),n.d(e,"segmentEach",(function(){return g})),n.d(e,"segmentReduce",(function(){return v}));var r=n(87);function i(t,e,n){if(null!==t)for(var r,o,a,s,u,l,c,h,f=0,d=0,p=t.type,g="FeatureCollection"===p,v="Feature"===p,m=g?t.features.length:1,y=0;y<m;y++){u=(h=!!(c=g?t.features[y].geometry:v?t.geometry:t)&&"GeometryCollection"===c.type)?c.geometries.length:1;for(var b=0;b<u;b++){var _=0,x=0;if(null!==(s=h?c.geometries[b]:c)){l=s.coordinates;var w=s.type;switch(f=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===e(l,d,y,_,x))return!1;d++,_++;break;case"LineString":case"MultiPoint":for(r=0;r<l.length;r++){if(!1===e(l[r],d,y,_,x))return!1;d++,"MultiPoint"===w&&_++}"LineString"===w&&_++;break;case"Polygon":case"MultiLineString":for(r=0;r<l.length;r++){for(o=0;o<l[r].length-f;o++){if(!1===e(l[r][o],d,y,_,x))return!1;d++}"MultiLineString"===w&&_++,"Polygon"===w&&x++}"Polygon"===w&&_++;break;case"MultiPolygon":for(r=0;r<l.length;r++){for(x=0,o=0;o<l[r].length;o++){for(a=0;a<l[r][o].length-f;a++){if(!1===e(l[r][o][a],d,y,_,x))return!1;d++}x++}_++}break;case"GeometryCollection":for(r=0;r<s.geometries.length;r++)if(!1===i(s.geometries[r],e,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(t,e,n,r){var o=n;return i(t,(function(t,r,i,a,s){o=0===r&&void 0===n?t:e(o,t,r,i,a,s)}),r),o}function a(t,e){var n;switch(t.type){case"FeatureCollection":for(n=0;n<t.features.length&&!1!==e(t.features[n].properties,n);n++);break;case"Feature":e(t.properties,0)}}function s(t,e,n){var r=n;return a(t,(function(t,i){r=0===i&&void 0===n?t:e(r,t,i)})),r}function u(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var n=0;n<t.features.length&&!1!==e(t.features[n],n);n++);}function l(t,e,n){var r=n;return u(t,(function(t,i){r=0===i&&void 0===n?t:e(r,t,i)})),r}function c(t){var e=[];return i(t,(function(t){e.push(t)})),e}function h(t,e){var n,r,i,o,a,s,u,l,c,h,f=0,d="FeatureCollection"===t.type,p="Feature"===t.type,g=d?t.features.length:1;for(n=0;n<g;n++){for(s=d?t.features[n].geometry:p?t.geometry:t,l=d?t.features[n].properties:p?t.properties:{},c=d?t.features[n].bbox:p?t.bbox:void 0,h=d?t.features[n].id:p?t.id:void 0,a=(u=!!s&&"GeometryCollection"===s.type)?s.geometries.length:1,i=0;i<a;i++)if(null!==(o=u?s.geometries[i]:s))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===e(o,f,l,c,h))return!1;break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(!1===e(o.geometries[r],f,l,c,h))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===e(null,f,l,c,h))return!1;f++}}function f(t,e,n){var r=n;return h(t,(function(t,i,o,a,s){r=0===i&&void 0===n?t:e(r,t,i,o,a,s)})),r}function d(t,e){h(t,(function(t,n,i,o,a){var s,u=null===t?null:t.type;switch(u){case null:case"Point":case"LineString":case"Polygon":return!1!==e(Object(r.feature)(t,i,{bbox:o,id:a}),n,0)&&void 0}switch(u){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon"}for(var l=0;l<t.coordinates.length;l++){var c={type:s,coordinates:t.coordinates[l]};if(!1===e(Object(r.feature)(c,i),n,l))return!1}}))}function p(t,e,n){var r=n;return d(t,(function(t,i,o){r=0===i&&0===o&&void 0===n?t:e(r,t,i,o)})),r}function g(t,e){d(t,(function(t,n,o){var a=0;if(t.geometry){var s=t.geometry.type;if("Point"!==s&&"MultiPoint"!==s){var u,l=0,c=0,h=0;return!1!==i(t,(function(i,s,f,d,p){if(void 0===u||n>l||d>c||p>h)return u=i,l=n,c=d,h=p,void(a=0);var g=Object(r.lineString)([u,i],t.properties);if(!1===e(g,n,o,p,a))return!1;a++,u=i}))&&void 0}}}))}function v(t,e,n){var r=n,i=!1;return g(t,(function(t,o,a,s,u){r=!1===i&&void 0===n?t:e(r,t,o,a,s,u),i=!0})),r}function m(t,e){if(!t)throw new Error("geojson is required");d(t,(function(t,n,i){if(null!==t.geometry){var o=t.geometry.type,a=t.geometry.coordinates;switch(o){case"LineString":if(!1===e(t,n,i,0,0))return!1;break;case"Polygon":for(var s=0;s<a.length;s++)if(!1===e(Object(r.lineString)(a[s],t.properties),n,i,s))return!1}}}))}function y(t,e,n){var r=n;return m(t,(function(t,i,o,a){r=0===i&&void 0===n?t:e(r,t,i,o,a)})),r}function b(t,e){if(e=e||{},!Object(r.isObject)(e))throw new Error("options is invalid");var n,i=e.featureIndex||0,o=e.multiFeatureIndex||0,a=e.geometryIndex||0,s=e.segmentIndex||0,u=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),u=u||t.features[i].properties,n=t.features[i].geometry;break;case"Feature":u=u||t.properties,n=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=t;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var l=n.coordinates;switch(n.type){case"Point":case"MultiPoint":return null;case"LineString":return s<0&&(s=l.length+s-1),Object(r.lineString)([l[s],l[s+1]],u,e);case"Polygon":return a<0&&(a=l.length+a),s<0&&(s=l[a].length+s-1),Object(r.lineString)([l[a][s],l[a][s+1]],u,e);case"MultiLineString":return o<0&&(o=l.length+o),s<0&&(s=l[o].length+s-1),Object(r.lineString)([l[o][s],l[o][s+1]],u,e);case"MultiPolygon":return o<0&&(o=l.length+o),a<0&&(a=l[o].length+a),s<0&&(s=l[o][a].length-s-1),Object(r.lineString)([l[o][a][s],l[o][a][s+1]],u,e)}throw new Error("geojson is invalid")}function _(t,e){if(e=e||{},!Object(r.isObject)(e))throw new Error("options is invalid");var n,i=e.featureIndex||0,o=e.multiFeatureIndex||0,a=e.geometryIndex||0,s=e.coordIndex||0,u=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),u=u||t.features[i].properties,n=t.features[i].geometry;break;case"Feature":u=u||t.properties,n=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=t;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var l=n.coordinates;switch(n.type){case"Point":return Object(r.point)(l,u,e);case"MultiPoint":return o<0&&(o=l.length+o),Object(r.point)(l[o],u,e);case"LineString":return s<0&&(s=l.length+s),Object(r.point)(l[s],u,e);case"Polygon":return a<0&&(a=l.length+a),s<0&&(s=l[a].length+s),Object(r.point)(l[a][s],u,e);case"MultiLineString":return o<0&&(o=l.length+o),s<0&&(s=l[o].length+s),Object(r.point)(l[o][s],u,e);case"MultiPolygon":return o<0&&(o=l.length+o),a<0&&(a=l[o].length+a),s<0&&(s=l[o][a].length-s),Object(r.point)(l[o][a][s],u,e)}throw new Error("geojson is invalid")}},function(t,e,n){"use strict";n.r(e),n.d(e,"getLoadableWorkerURL",(function(){return o}));var r=n(225),i=new Map;function o(t){Object(r.assert)(t.source&&!t.url||!t.source&&t.url);var e=i.get(t.source||t.url);return e||(t.url&&(e=function(t){if(!t.startsWith("http"))return t;return a((e=t,"try {\n importScripts('"+e+"');\n} catch (error) {\n console.error(error);\n throw error;\n}"));var e}(t.url),i.set(t.url,e)),t.source&&(e=a(t.source),i.set(t.source,e))),Object(r.assert)(e),e}function a(t){var e=new Blob([t],{type:"application/javascript"});return URL.createObjectURL(e)}},function(t,e,n){"use strict";function r(t){return JSON.parse((e=t,n=new Set,JSON.stringify(e,(function(t,e){if("object"==typeof e&&null!==e){if(n.has(e))try{return JSON.parse(JSON.stringify(e))}catch(t){return}n.add(e)}return e}))));var e,n}n.r(e),n.d(e,"removeNontransferableOptions",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"lineModel",(function(){return c}));var r=n(130),i=n(266),o=n(49),a=n.n(o),s=n(383),u=n(214),l=n(384),c=function(){var t=Object(i.default)(a.a.mark((function t(e){var n,i,o,c,h,f,d,p,g;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.descriptors,i=e.features,o=e.enablePicking,c=e.iconMap,h={a_Color:u.a_Color,a_Position:u.a_Position,filter:u.a_filter,a_vertexId:u.a_vertexId,a_PickingColor:function(t){var e=t.id;return o?Object(s.encodePickingColor)(e):[0,0,0]},a_DistanceAndIndex:function(t,e,n,r,i,o){return void 0===o?[n[3],10]:[n[3],o]},a_Total_Distance:function(t,e,n){return[n[5]]},a_Size:function(t){var e=t.size,n=void 0===e?1:e;return Array.isArray(n)?[n[0],n[1]]:[n,0]},a_Normal:function(t,e,n,r,i){return i},a_Miter:function(t,e,n){return[n[4]]},a_iconMapUV:function(t){var e=t.texture,n=c[e]||{x:0,y:0};return[n.x,n.y]}},f={sizePerElement:0,elements:[]},d=0,p=[],g=3,i.forEach((function(t,e){var i=Object(l.LineTriangulation)(t),o=i.indices,a=i.vertices,s=i.normals,u=i.size,c=i.indexes;o.forEach((function(t){p.push(t+d)})),g=u;var v=a.length/u;f.sizePerElement=g,f.elements.push({featureIdx:e,vertices:a,normals:s,offset:d}),d+=v;for(var m=function(i){var o=(null==s?void 0:s.slice(3*i,3*i+3))||[],l=a.slice(i*u,i*u+u),f=0;c&&void 0!==c[i]&&(f=c[i]),n.forEach((function(n){var a;n&&h[n.name]&&(a=n.buffer.data).push.apply(a,Object(r.default)(h[n.name](t,e,l,i,o,f)))}))},y=0;y<v;y++)m(y)})),t.abrupt("return",{descriptors:n,featureLayout:f,indices:p});case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},function(t,e,n){"use strict";n.r(e),n.d(e,"computeMiter",(function(){return p})),n.d(e,"computeNormal",(function(){return g})),n.d(e,"direction",(function(){return v})),n.d(e,"getArrayUnique",(function(){return y})),n.d(e,"default",(function(){return b}));var r=n(74),i=n(130),o=n(19),a=n(20),s=n(52),u=n(10),l=n(134),c=u.vec2.create(),h=(u.vec2.create(),u.vec2.create()),f=u.vec2.create(),d=u.vec2.create();function p(t,e,n,r,i){u.vec2.add(t,n,r),u.vec2.normalize(t,t),e=u.vec2.fromValues(-t[1],t[0]);var o=u.vec2.fromValues(-n[1],n[0]);return[i/u.vec2.dot(e,o),e]}function g(t,e){return u.vec2.set(t,-e[1],e[0])}function v(t,e,n){return u.vec2.sub(t,e,n),u.vec2.normalize(t,t),t}function m(t,e){return t[0]===e[0]&&t[1]===e[1]}function y(t){for(var e=new Map,n=0;n<t.length;n++){var r=t[0].toString()+"-"+t[1].toString();e.get(r)?(t.splice(n,1),n++):e.set(r,r)}return t}var b=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(o.default)(this,t),Object(s.default)(this,"lastFlip",-1),Object(s.default)(this,"miter",u.vec2.fromValues(0,0)),Object(s.default)(this,"started",!1),Object(s.default)(this,"dash",!1),Object(s.default)(this,"totalDistance",0),Object(s.default)(this,"currentIndex",0),this.join=e.join||"miter",this.cap=e.cap||"butt",this.miterLimit=e.miterLimit||10,this.thickness=e.thickness||1,this.dash=e.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return Object(a.default)(t,[{key:"extrude_gaode2",value:function(t,e){var n=this.complex;if(t.length<=1)return n;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var r=t.length,o=n.startIndex,a=1;a<r;a++){var s,u,l,c=t[a-1];c.push(null!==(s=e[a-1][2])&&void 0!==s?s:0);var h=e[a-1],f=t[a];f.push(null!==(u=e[a][2])&&void 0!==u?u:0);var d=e[a],p=a<t.length-1?[].concat(Object(i.default)(t[a+1]),[null!==(l=e[a+1][2])&&void 0!==l?l:0]):null,g=a<e.length-1?e[a+1]:null;o+=this.segment_gaode2(n,o,c,f,p,h,d,g)}if(this.dash)for(var v=0;v<n.positions.length/6;v++)n.positions[6*v+5]=this.totalDistance;return n.startIndex=n.positions.length/6,n}},{key:"simpleExtrude_gaode2",value:function(t,e){var n=this.complex;if(t.length<=1)return n;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var r=t.length,o=n.startIndex,a=1;a<r;a++){var s,u,l,c=t[a-1];c.push(null!==(s=e[a-1][2])&&void 0!==s?s:0);var h=e[a-1],f=t[a];f.push(null!==(u=e[a][2])&&void 0!==u?u:0);var d=e[a],p=a<t.length-1?[].concat(Object(i.default)(t[a+1]),[null!==(l=e[a+1][2])&&void 0!==l?l:0]):null,g=a<e.length-1?e[a+1]:null;o+=this.simpleSegment(n,o,c,f,p,h,d,g)}if(this.dash)for(var v=0;v<n.positions.length/6;v++)n.positions[6*v+5]=this.totalDistance;return n.startIndex=n.positions.length/6,n}},{key:"extrude",value:function(t){var e=this.complex;if(t.length<=1)return e;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var n=t.length,r=e.startIndex,i=1;i<n;i++){var o=t[i-1],a=t[i],s=i<t.length-1?t[i+1]:null;r+=this.segment(e,r,o,a,s)}if(this.dash)for(var u=0;u<e.positions.length/6;u++)e.positions[6*u+5]=this.totalDistance;return e.startIndex=e.positions.length/6,e}},{key:"simpleExtrude",value:function(t){var e=this.complex;if(t.length<=1)return e;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var n=t.length,r=e.startIndex,i=1;i<n;i++){var o=t[i-1],a=t[i],s=i<t.length-1?t[i+1]:null;r+=this.simpleSegment(e,r,o,a,s)}if(this.dash)for(var u=0;u<e.positions.length/6;u++)e.positions[6*u+5]=this.totalDistance;return e.startIndex=e.positions.length/6,e}},{key:"segment_gaode2",value:function(t,e,n,o,a,s,y,b){var _=0,x=t.indices,w=t.positions,O=t.normals,S="square"===this.cap,C="bevel"===this.join,E=Object(l.aProjectFlat)([y[0],y[1]]),T=Object(l.aProjectFlat)([s[0],s[1]]);v(h,o,n);var A=0;if(this.dash&&(A=this.lineSegmentDistance(E,T),this.totalDistance+=A),this.normal||(this.normal=u.vec2.create(),g(this.normal,h)),!this.started)if(this.started=!0,S){var M=u.vec2.create(),I=u.vec2.create();u.vec2.add(M,this.normal,h),u.vec2.add(I,this.normal,h),O.push(I[0],I[1],0),O.push(M[0],M[1],0),w.push(n[0],n[1],0|n[2],this.totalDistance-A,-this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),w.push(n[0],n[1],0|n[2],this.totalDistance-A,this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(w,O,n,this.normal,this.thickness,this.totalDistance-A);if(x.push(e+0,e+1,e+2),a){m(o,a)&&u.vec2.add(a,o,u.vec2.normalize(a,u.vec2.subtract(a,o,n))),v(f,a,o);var j=p(d,u.vec2.create(),h,f,this.thickness),k=Object(r.default)(j,2),P=k[0],L=k[1],R=u.vec2.dot(d,this.normal)<0?-1:1,D=C;if(!D&&"miter"===this.join)P>this.miterLimit&&(D=!0);D?(O.push(this.normal[0],this.normal[1],0),O.push(L[0],L[1],0),w.push(o[0],o[1],0|o[2],this.totalDistance,-this.thickness*R,0|o[2]),this.complex.indexes.push(this.currentIndex),w.push(o[0],o[1],0|o[2],this.totalDistance,this.thickness*R,0|o[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,x.push.apply(x,Object(i.default)(this.lastFlip!==-R?[e,e+2,e+3]:[e+2,e+1,e+3])),x.push(e+2,e+3,e+4),g(c,f),u.vec2.copy(this.normal,c),O.push(this.normal[0],this.normal[1],0),w.push(o[0],o[1],0|o[2],this.totalDistance,-this.thickness*R,0|o[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,_+=3):(this.extrusions(w,O,o,L,P,this.totalDistance),x.push.apply(x,Object(i.default)(1===this.lastFlip?[e,e+2,e+3]:[e+2,e+1,e+3])),R=-1,u.vec2.copy(this.normal,L),_+=2),this.lastFlip=R}else{if(g(this.normal,h),S){var N=u.vec2.create(),B=u.vec2.create();u.vec2.sub(B,h,this.normal),u.vec2.add(N,h,this.normal),O.push(B[0],B[1],0),O.push(N[0],N[1],0),w.push(o[0],o[1],0|o[2],this.totalDistance,this.thickness,0|o[2]),this.complex.indexes.push(this.currentIndex),w.push(o[0],o[1],0|o[2],this.totalDistance,this.thickness,0|o[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(w,O,o,this.normal,this.thickness,this.totalDistance);x.push.apply(x,Object(i.default)(1===this.lastFlip?[e,e+2,e+3]:[e+2,e+1,e+3])),_+=2}return _}},{key:"simpleSegment",value:function(t,e,n,o,a){var s=0,c=t.indices,y=t.positions,b=t.normals,_=Object(l.aProjectFlat)([o[0],o[1]]),x=Object(l.aProjectFlat)([n[0],n[1]]);v(h,_,x);var w=0;if(this.dash&&(w=this.lineSegmentDistance(_,x),this.totalDistance+=w),this.normal||(this.normal=u.vec2.create(),g(this.normal,h)),this.started||(this.started=!0,this.extrusions(y,b,n,this.normal,this.thickness,this.totalDistance-w)),c.push(e+0,e+1,e+2),a){var O=Object(l.aProjectFlat)([a[0],a[1]]);m(_,O)&&u.vec2.add(O,_,u.vec2.normalize(O,u.vec2.subtract(O,_,x))),v(f,O,_);var S=p(d,u.vec2.create(),h,f,this.thickness),C=Object(r.default)(S,2),E=C[0],T=C[1];u.vec2.dot(d,this.normal);this.extrusions(y,b,o,T,E,this.totalDistance),c.push.apply(c,Object(i.default)(1===this.lastFlip?[e,e+2,e+3]:[e+2,e+1,e+3])),-1,u.vec2.copy(this.normal,T),s+=2,this.lastFlip=-1}else g(this.normal,h),this.extrusions(y,b,o,this.normal,this.thickness,this.totalDistance),c.push.apply(c,Object(i.default)(1===this.lastFlip?[e,e+2,e+3]:[e+2,e+1,e+3])),s+=2;return s}},{key:"segment",value:function(t,e,n,o,a){var s=0,y=t.indices,b=t.positions,_=t.normals,x="square"===this.cap,w="bevel"===this.join,O=Object(l.aProjectFlat)([o[0],o[1]]),S=Object(l.aProjectFlat)([n[0],n[1]]);v(h,O,S);var C=0;if(this.dash&&(C=this.lineSegmentDistance(O,S),this.totalDistance+=C),this.normal||(this.normal=u.vec2.create(),g(this.normal,h)),!this.started)if(this.started=!0,x){var E=u.vec2.create(),T=u.vec2.create();u.vec2.add(E,this.normal,h),u.vec2.add(T,this.normal,h),_.push(T[0],T[1],0),_.push(E[0],E[1],0),b.push(n[0],n[1],0|n[2],this.totalDistance-C,-this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),b.push(n[0],n[1],0|n[2],this.totalDistance-C,this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(b,_,n,this.normal,this.thickness,this.totalDistance-C);if(y.push(e+0,e+1,e+2),a){var A=Object(l.aProjectFlat)([a[0],a[1]]);m(O,A)&&u.vec2.add(A,O,u.vec2.normalize(A,u.vec2.subtract(A,O,S))),v(f,A,O);var M=p(d,u.vec2.create(),h,f,this.thickness),I=Object(r.default)(M,2),j=I[0],k=I[1],P=u.vec2.dot(d,this.normal)<0?-1:1,L=w;if(!L&&"miter"===this.join)j>this.miterLimit&&(L=!0);L?(_.push(this.normal[0],this.normal[1],0),_.push(k[0],k[1],0),b.push(o[0],o[1],0|o[2],this.totalDistance,-this.thickness*P,0|o[2]),this.complex.indexes.push(this.currentIndex),b.push(o[0],o[1],0|o[2],this.totalDistance,this.thickness*P,0|o[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,y.push.apply(y,Object(i.default)(this.lastFlip!==-P?[e,e+2,e+3]:[e+2,e+1,e+3])),y.push(e+2,e+3,e+4),g(c,f),u.vec2.copy(this.normal,c),_.push(this.normal[0],this.normal[1],0),b.push(o[0],o[1],0|o[2],this.totalDistance,-this.thickness*P,0|o[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,s+=3):(this.extrusions(b,_,o,k,j,this.totalDistance),y.push.apply(y,Object(i.default)(1===this.lastFlip?[e,e+2,e+3]:[e+2,e+1,e+3])),P=-1,u.vec2.copy(this.normal,k),s+=2),this.lastFlip=P}else{if(g(this.normal,h),x){var R=u.vec2.create(),D=u.vec2.create();u.vec2.sub(D,h,this.normal),u.vec2.add(R,h,this.normal),_.push(D[0],D[1],0),_.push(R[0],R[1],0),b.push(o[0],o[1],0|o[2],this.totalDistance,this.thickness,0|o[2]),this.complex.indexes.push(this.currentIndex),b.push(o[0],o[1],0|o[2],this.totalDistance,this.thickness,0|o[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(b,_,o,this.normal,this.thickness,this.totalDistance);y.push.apply(y,Object(i.default)(1===this.lastFlip?[e,e+2,e+3]:[e+2,e+1,e+3])),s+=2}return s}},{key:"extrusions",value:function(t,e,n,r,i,o){e.push(r[0],r[1],0),e.push(r[0],r[1],0),t.push(n[0],n[1],0|n[2],o,-i,0|n[2]),this.complex.indexes.push(this.currentIndex),t.push(n[0],n[1],0|n[2],o,i,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"pointFillModel",(function(){return c}));var r=n(130),i=n(266),o=n(49),a=n.n(o),s=n(383),u=n(214),l=n(384),c=function(){var t=Object(i.default)(a.a.mark((function t(e){var n,i,o,c,h,f,d,p,g;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.descriptors,i=e.features,o=e.enablePicking,c=e.shape2d,h={a_Color:u.a_Color,a_Position:u.a_Position,filter:u.a_filter,a_vertexId:u.a_vertexId,a_PickingColor:function(t){var e=t.id;return o?Object(s.encodePickingColor)(e):[0,0,0]},a_Shape:function(t){var e=t.shape,n=void 0===e?2:e;return[c.indexOf(n)]},a_Extrude:function(t,e,n,r){var i=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],o=r%4*3;return[i[o],i[o+1],i[o+2]]},a_Size:function(t){var e=t.size,n=void 0===e?5:e;return Array.isArray(n)?[n[0]]:[n]}},f={sizePerElement:0,elements:[]},d=0,p=[],g=3,i.forEach((function(t,e){var i=Object(l.PointFillTriangulation)(t),o=i.indices,a=i.vertices,s=i.normals,u=i.size,c=i.indexes;o.forEach((function(t){p.push(t+d)})),g=u;var v=a.length/u;f.sizePerElement=g,f.elements.push({featureIdx:e,vertices:a,normals:s,offset:d}),d+=v;for(var m=function(i){var o=(null==s?void 0:s.slice(3*i,3*i+3))||[],l=a.slice(i*u,i*u+u),f=0;c&&void 0!==c[i]&&(f=c[i]),n.forEach((function(n){var a;n&&h[n.name]&&(a=n.buffer.data).push.apply(a,Object(r.default)(h[n.name](t,e,l,i,o,f)))}))},y=0;y<v;y++)m(y)})),t.abrupt("return",{descriptors:n,featureLayout:f,indices:p});case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},function(t,e,n){"use strict";n.r(e),n.d(e,"polygonFillModel",(function(){return c}));var r=n(130),i=n(266),o=n(49),a=n.n(o),s=n(383),u=n(214),l=n(384),c=function(){var t=Object(i.default)(a.a.mark((function t(e){var n,i,o,c,h,f,d,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.descriptors,i=e.features,o=e.enablePicking,c={a_Color:u.a_Color,a_Position:u.a_Position,filter:u.a_filter,a_vertexId:u.a_vertexId,a_PickingColor:function(t){var e=t.id;return o?Object(s.encodePickingColor)(e):[0,0,0]}},h={sizePerElement:0,elements:[]},f=0,d=[],p=3,i.forEach((function(t,e){var i=Object(l.polygonFillTriangulation)(t),o=i.indices,a=i.vertices,s=i.normals,u=i.size,g=i.indexes;o.forEach((function(t){d.push(t+f)})),p=u;var v=a.length/u;h.sizePerElement=p,h.elements.push({featureIdx:e,vertices:a,normals:s,offset:f}),f+=v;for(var m=function(i){var o=(null==s?void 0:s.slice(3*i,3*i+3))||[],l=a.slice(i*u,i*u+u),h=0;g&&void 0!==g[i]&&(h=g[i]),n.forEach((function(n){var a;n&&c[n.name]&&(a=n.buffer.data).push.apply(a,Object(r.default)(c[n.name](t,e,l,i,o,h)))}))},y=0;y<v;y++)m(y)})),t.abrupt("return",{descriptors:n,featureLayout:h,indices:d});case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(87);function i(t,e){void 0===e&&(e={});var n=Number(t[0]),i=Number(t[1]),o=Number(t[2]),a=Number(t[3]);if(6===t.length)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var s=[n,i],u=[n,a],l=[o,a],c=[o,i];return Object(r.polygon)([[s,c,l,u,s]],e.properties,{bbox:t,id:e.id})}},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"Version",(function(){return r})),function(t){t["GAODE1.x"]="GAODE1.x",t["GAODE2.x"]="GAODE2.x",t.MAPBOX="MAPBOX",t.DEFAULT="DEFAUlTMAP",t.SIMPLE="SIMPLE",t.GLOBEL="GLOBEL"}(r||(r={}))},function(t,e,n){"use strict";n.r(e),n.d(e,"greatCircleLineAtOffset",(function(){return o})),n.d(e,"interpolate",(function(){return s}));var r=n(87),i=n(134);function o(t,e,n,r,i){var o=arguments.length>6?arguments[6]:void 0,a=n;return o&&(a=Math.round(29*n)/29),s(t,e,a,i)}function a(t,e){var n=1-e;return(t[0]*n+t[1]*e)*n+(t[1]*n+t[2]*e)*e}function s(t,e,n,o){var s=[Object(r.degreesToRadians)(t[0]),Object(r.degreesToRadians)(t[1])],u=[Object(r.degreesToRadians)(e[0]),Object(r.degreesToRadians)(e[1])];if("GAODE2.x"===o){var l=function(t,e){var n=[e[0]-t[0],e[1]-t[1]],r=Object(i.calDistance)(n,[0,0]),o=Math.atan2(n[1],n[0]),a=r/2/Math.cos(.314),s=o+.314;return[a*Math.cos(s)+t[0],a*Math.sin(s)+t[1]]}(s,u),c=[s[0],l[0],u[0]],h=[s[1],l[1],u[1]];return[a(c,n),a(h,n),0]}var f=function(t,e){var n=[t[0]-e[0],t[1]-e[1]],r=[Math.sin(n[0]/2),Math.sin(n[1]/2)],i=r[1]*r[1]+Math.cos(t[1])*Math.cos(e[1])*r[0]*r[0];return 2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))}(s,u);if(Math.abs(f-Math.PI)<.001)return[(1-n)*s[0]+n*u[0],(1-n)*s[1]+n*u[1]];var d=Math.sin((1-n)*f)/Math.sin(f),p=Math.sin(n*f)/Math.sin(f),g=[Math.sin(s[0]),Math.sin(s[1])],v=[Math.cos(s[0]),Math.cos(s[1])],m=[Math.sin(u[0]),Math.sin(u[1])],y=[Math.cos(u[0]),Math.cos(u[1])],b=d*v[1]*v[0]+p*y[1]*y[0],_=d*v[1]*g[0]+p*y[1]*m[0],x=d*g[1]+p*m[1];return[Object(r.radiansToDegrees)(Math.atan2(_,b)),Object(r.radiansToDegrees)(Math.atan2(x,Math.sqrt(b*b+_*_)))]}},function(t,e,n){"use strict";function r(t,e){for(var n=0,r=[],a=0;a<t.length-1;a++){var s=t[a],u=t[a+1],l=o(s,u),c=n;n+=l,r.push({p1:s,p2:u,totalDistance:n,distance:l,lastTotalDistance:c})}for(var h,f,d=n*e,p=0,g=r;p<g.length;p++){var v=g[p];if(v.totalDistance>d){var m=v.p1,y=i(v.p2,m,(d-v.lastTotalDistance)/v.distance);h=y[0],f=y[1];break}}return{lng:h,lat:f,height:0}}function i(t,e,n){return[t[0]*n+e[0]*(1-n),t[1]*n+e[1]*(1-n)]}function o(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}n.r(e),n.d(e,"pathLineAtOffset",(function(){return r}))},function(t,e){function n(t,e,n,r){this.cx=3*t,this.bx=3*(n-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(r-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=r,this.p2x=n,this.p2y=r}t.exports=n,n.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},n.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},n.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},n.prototype.solveCurveX=function(t,e){var n,r,i,o,a;for(void 0===e&&(e=1e-6),i=t,a=0;a<8;a++){if(o=this.sampleCurveX(i)-t,Math.abs(o)<e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=o/s}if((i=t)<(n=0))return n;if(i>(r=1))return r;for(;n<r;){if(o=this.sampleCurveX(i),Math.abs(o-t)<e)return i;t>o?n=i:r=i,i=.5*(r-n)+n}return i},n.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}},function(t,e,n){"use strict";n.r(e),n.d(e,"EXTENT",(function(){return g})),n.d(e,"default",(function(){return v}));var r=n(19),i=n(20),o=n(45),a=n(10),s=n(75),u=n(69),l=n(1858),c=n(102),h=n(363),f=n(289);function d(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var g=8192,v=function(){function t(e,n,i,o,a){Object(r.default)(this,t),this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===a||a,this._minZoom=e||0,this._maxZoom=n||22,this._minPitch=null==i?0:i,this._maxPitch=null==o?60:o,this.setMaxBounds(),this.width=0,this.height=0,this._center=new c.default(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this.unmodified=!0,this.edgeInsets=new l.default,this.posMatrixCache={},this.alignedPosMatrixCache={}}return Object(i.default)(t,[{key:"minZoom",get:function(){return this._minZoom},set:function(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))}},{key:"maxZoom",get:function(){return this._maxZoom},set:function(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))}},{key:"minPitch",get:function(){return this._minPitch},set:function(t){this._minPitch!==t&&(this._minPitch=t,this._pitch=Math.max(this._pitch,t))}},{key:"maxPitch",get:function(){return this._maxPitch},set:function(t){this._maxPitch!==t&&(this._maxPitch=t,this._pitch=Math.min(this._pitch,t))}},{key:"renderWorldCopies",get:function(){return this._renderWorldCopies},set:function(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t}},{key:"worldSize",get:function(){return this.tileSize*this.scale}},{key:"centerOffset",get:function(){return this.centerPoint._sub(this.size._div(2))}},{key:"size",get:function(){return new s.default(this.width,this.height)}},{key:"bearing",get:function(){return-this.angle/Math.PI*180},set:function(t){var e=-Object(u.wrap)(t,-180,180)*Math.PI/180;this.angle!==e&&(this.unmodified=!1,this.angle=e,this.calcMatrices(),this.rotationMatrix=a.mat2.create(),a.mat2.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))}},{key:"pitch",get:function(){return this._pitch/Math.PI*180},set:function(t){var e=Object(u.clamp)(t,this._minPitch,this._maxPitch)/180*Math.PI;this._pitch!==e&&(this.unmodified=!1,this._pitch=e,this.calcMatrices())}},{key:"fov",get:function(){return this._fov/Math.PI*180},set:function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this.unmodified=!1,this._fov=t/180*Math.PI,this.calcMatrices())}},{key:"zoom",get:function(){return this._zoom},set:function(t){var e=Math.min(Math.max(t,this._minZoom),this._maxZoom);this._zoom!==e&&(this.unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this.constrain(),this.calcMatrices())}},{key:"center",get:function(){return this._center},set:function(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this.unmodified=!1,this._center=t,this.constrain(),this.calcMatrices())}},{key:"padding",get:function(){return this.edgeInsets.toJSON()},set:function(t){this.edgeInsets.equals(t)||(this.unmodified=!1,this.edgeInsets.interpolate(this.edgeInsets,t,1),this.calcMatrices())}},{key:"centerPoint",get:function(){return this.edgeInsets.getCenter(this.width,this.height)}},{key:"point",get:function(){return this.project(this.center)}},{key:"clone",value:function(){var e=new t(this._minZoom,this._maxZoom,this._minPitch,this._maxPitch,this._renderWorldCopies);return e.tileSize=this.tileSize,e.latRange=this.latRange,e.width=this.width,e.height=this.height,e.center=this._center,e.zoom=this.zoom,e.angle=this.angle,e.fov=this._fov,e.pitch=this._pitch,e.unmodified=this.unmodified,e.edgeInsets=this.edgeInsets.clone(),e.calcMatrices(),e}},{key:"isPaddingEqual",value:function(t){return this.edgeInsets.equals(t)}},{key:"interpolatePadding",value:function(t,e,n){this.unmodified=!1,this.edgeInsets.interpolate(t,e,n),this.constrain(),this.calcMatrices()}},{key:"coveringZoomLevel",value:function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)}},{key:"resize",value:function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this.constrain(),this.calcMatrices()}},{key:"zoomScale",value:function(t){return Math.pow(2,t)}},{key:"scaleZoom",value:function(t){return Math.log(t)/Math.LN2}},{key:"project",value:function(t){var e=Object(u.clamp)(t.lat,-this.maxValidLatitude,this.maxValidLatitude);return new s.default(Object(f.mercatorXfromLng)(t.lng)*this.worldSize,Object(f.mercatorYfromLat)(e)*this.worldSize)}},{key:"unproject",value:function(t){return new f.default(t.x/this.worldSize,t.y/this.worldSize).toLngLat()}},{key:"setLocationAtPoint",value:function(t,e){var n=this.pointCoordinate(e),r=this.pointCoordinate(this.centerPoint),i=this.locationCoordinate(t),o=new f.default(i.x-(n.x-r.x),i.y-(n.y-r.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&&(this.center=this.center.wrap())}},{key:"pointCoordinate",value:function(t){var e=new Float64Array([t.x,t.y,0,1]),n=new Float64Array([t.x,t.y,1,1]);a.vec4.transformMat4(e,e,this.pixelMatrixInverse),a.vec4.transformMat4(n,n,this.pixelMatrixInverse);var r=e[3],i=n[3],o=e[0]/r,s=n[0]/i,l=e[1]/r,c=n[1]/i,h=e[2]/r,d=n[2]/i,p=h===d?0:(0-h)/(d-h);return new f.default(Object(u.interpolate)(o,s,p)/this.worldSize,Object(u.interpolate)(l,c,p)/this.worldSize)}},{key:"getBounds",value:function(){return(new h.default).extend(this.pointLocation(new s.default(0,0))).extend(this.pointLocation(new s.default(this.width,0))).extend(this.pointLocation(new s.default(this.width,this.height))).extend(this.pointLocation(new s.default(0,this.height)))}},{key:"getMaxBounds",value:function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new h.default([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}},{key:"setMaxBounds",value:function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this.constrain()):(this.lngRange=void 0,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])}},{key:"customLayerMatrix",value:function(){return this.mercatorMatrix.slice()}},{key:"maxPitchScaleFactor",value:function(){if(!this.pixelMatrixInverse)return 1;var t=this.pointCoordinate(new s.default(0,0)),e=new Float32Array([t.x*this.worldSize,t.y*this.worldSize,0,1]);return a.vec4.transformMat4(e,e,this.pixelMatrix)[3]/this.cameraToCenterDistance}},{key:"getCameraPoint",value:function(){var t=this._pitch,e=Math.tan(t)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new s.default(0,e))}},{key:"getCameraQueryGeometry",value:function(t){var e=this.getCameraPoint();if(1===t.length)return[t[0],e];var n,r=e.x,i=e.y,o=e.x,a=e.y,u=d(t);try{for(u.s();!(n=u.n()).done;){var l=n.value;r=Math.min(r,l.x),i=Math.min(i,l.y),o=Math.max(o,l.x),a=Math.max(a,l.y)}}catch(t){u.e(t)}finally{u.f()}return[new s.default(r,i),new s.default(o,i),new s.default(o,a),new s.default(r,a),new s.default(r,i)]}},{key:"coordinatePoint",value:function(t){var e=a.vec4.fromValues(t.x*this.worldSize,t.y*this.worldSize,0,1);return a.vec4.transformMat4(e,e,this.pixelMatrix),new s.default(e[0]/e[3],e[1]/e[3])}},{key:"locationPoint",value:function(t){return this.coordinatePoint(this.locationCoordinate(t))}},{key:"pointLocation",value:function(t){return this.coordinateLocation(this.pointCoordinate(t))}},{key:"locationCoordinate",value:function(t){return f.default.fromLngLat(t)}},{key:"coordinateLocation",value:function(t){return t.toLngLat()}},{key:"getProjectionMatrix",value:function(){return this.projMatrix}},{key:"constrain",value:function(){if(this.center&&this.width&&this.height&&!this.constraining){this.constraining=!0;var t,e,n,r,i=-90,a=90,u=-180,l=180,c=this.size,h=this.unmodified;if(this.latRange){var d=this.latRange;i=Object(f.mercatorYfromLat)(d[1])*this.worldSize,t=(a=Object(f.mercatorYfromLat)(d[0])*this.worldSize)-i<c.y?c.y/(a-i):0}if(this.lngRange){var p=this.lngRange;u=Object(f.mercatorXfromLng)(p[0])*this.worldSize,e=(l=Object(f.mercatorXfromLng)(p[1])*this.worldSize)-u<c.x?c.x/(l-u):0}var g=this.point,v=Math.max(e||0,t||0);if(v)return this.center=this.unproject(new s.default(e?(l+u)/2:g.x,t?(a+i)/2:g.y)),o.isMini?this.zoom=Math.max(this.zoom,Math.max(-1,this.minZoom)):this.zoom+=this.scaleZoom(v),this.unmodified=h,void(this.constraining=!1);if(this.latRange){var m=g.y,y=c.y/2;m-y<i&&(r=i+y),m+y>a&&(r=a-y)}if(this.lngRange){var b=g.x,_=c.x/2;b-_<u&&(n=u+_),b+_>l&&(n=l-_)}void 0===n&&void 0===r||(this.center=this.unproject(new s.default(void 0!==n?n:g.x,void 0!==r?r:g.y))),this.unmodified=h,this.constraining=!1}}},{key:"calcMatrices",value:function(){if(this.height){var t=this._fov/2,e=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(t)*this.height;var n=Math.PI/2+this._pitch,r=this._fov*(.5+e.y/this.height),i=Math.sin(r)*this.cameraToCenterDistance/Math.sin(Object(u.clamp)(Math.PI-n-r,.01,Math.PI-.01)),o=this.point,s=o.x,l=o.y,c=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),h=this.height/50,d=new Float64Array(16);a.mat4.perspective(d,this._fov,this.width/this.height,h,c),d[8]=2*-e.x/this.width,d[9]=2*e.y/this.height,a.mat4.scale(d,d,[1,-1,1]),a.mat4.translate(d,d,[0,0,-this.cameraToCenterDistance]),a.mat4.rotateX(d,d,this._pitch),a.mat4.rotateZ(d,d,this.angle),a.mat4.translate(d,d,[-s,-l,0]),this.mercatorMatrix=a.mat4.scale([],d,[this.worldSize,this.worldSize,this.worldSize]),a.mat4.scale(d,d,[1,1,Object(f.mercatorZfromAltitude)(1,this.center.lat)*this.worldSize,1]),this.projMatrix=d,this.invProjMatrix=a.mat4.invert([],this.projMatrix);var p=this.width%2/2,g=this.height%2/2,v=Math.cos(this.angle),m=Math.sin(this.angle),y=s-Math.round(s)+v*p+m*g,b=l-Math.round(l)+v*g+m*p,_=new Float64Array(d);if(a.mat4.translate(_,_,[y>.5?y-1:y,b>.5?b-1:b,0]),this.alignedProjMatrix=_,d=a.mat4.create(),a.mat4.scale(d,d,[this.width/2,-this.height/2,1]),a.mat4.translate(d,d,[1,-1,0]),this.labelPlaneMatrix=d,d=a.mat4.create(),a.mat4.scale(d,d,[1,-1,1]),a.mat4.translate(d,d,[-1,-1,0]),a.mat4.scale(d,d,[2/this.width,2/this.height,1]),this.glCoordMatrix=d,this.pixelMatrix=a.mat4.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(d=a.mat4.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=d,this.posMatrixCache={},this.alignedPosMatrixCache={}}}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(19),i=n(20),o=n(69),a=n(75),s=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(Object(r.default)(this,t),isNaN(e)||e<0||isNaN(n)||n<0||isNaN(i)||i<0||isNaN(o)||o<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=n,this.left=i,this.right=o}return Object(i.default)(t,[{key:"interpolate",value:function(t,e,n){return null!=e.top&&null!=t.top&&(this.top=Object(o.interpolate)(t.top,e.top,n)),null!=e.bottom&&null!=t.bottom&&(this.bottom=Object(o.interpolate)(t.bottom,e.bottom,n)),null!=e.left&&null!=t.left&&(this.left=Object(o.interpolate)(t.left,e.left,n)),null!=e.right&&null!=t.right&&(this.right=Object(o.interpolate)(t.right,e.right,n)),this}},{key:"getCenter",value:function(t,e){var n=Object(o.clamp)((this.left+t-this.right)/2,0,t),r=Object(o.clamp)((this.top+e-this.bottom)/2,0,e);return new a.default(n,r)}},{key:"equals",value:function(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}},{key:"clone",value:function(){return new t(this.top,this.bottom,this.left,this.right)}},{key:"toJSON",value:function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(19),i=n(20),o=n(205),a=function(){function t(e){Object(r.default)(this,t),this.map=e}return Object(i.default)(t,[{key:"reset",value:function(){this.delayContextMenu=!1,delete this.contextMenuEvent}},{key:"mousemove",value:function(t){this.map.emit(t.type,new o.MapMouseEvent(t.type,this.map,t))}},{key:"mousedown",value:function(){this.delayContextMenu=!0}},{key:"mouseup",value:function(){this.delayContextMenu=!1,this.contextMenuEvent&&(this.map.emit("contextmenu",new o.MapMouseEvent("contextmenu",this.map,this.contextMenuEvent)),delete this.contextMenuEvent)}},{key:"contextmenu",value:function(t){this.delayContextMenu?this.contextMenuEvent=t:this.map.emit(t.type,new o.MapMouseEvent(t.type,this.map,t)),this.map.listeners("contextmenu")&&t.preventDefault()}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){return!0}},{key:"disable",value:function(){return!1}}]),t}()},function(t,e,n){"use strict";n.r(e);var r=n(19),i=n(20),o=n(141),a=n(90),s=function(){function t(e,n){Object(r.default)(this,t),this.map=e,this.el=e.getCanvasContainer(),this.container=e.getContainer(),this.clickTolerance=n.clickTolerance||1}return Object(i.default)(t,[{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active}},{key:"enable",value:function(){this.isEnabled()||(this.enabled=!0)}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"mousedown",value:function(t,e){this.isEnabled()&&t.shiftKey&&0===t.button&&(o.default.disableDrag(),this.startPos=this.lastPos=e,this.active=!0)}},{key:"mousemoveWindow",value:function(t,e){if(this.active){var n=e;if(!(this.lastPos.equals(n)||!this.box&&n.dist(this.startPos)<this.clickTolerance)){var r=this.startPos;this.lastPos=n,this.box||(this.box=o.default.create("div","l7-boxzoom",this.container),this.container.classList.add("l7-crosshair"),this.fireEvent("boxzoomstart",t));var i=Math.min(r.x,n.x),a=Math.max(r.x,n.x),s=Math.min(r.y,n.y),u=Math.max(r.y,n.y);o.default.setTransform(this.box,"translate(".concat(i,"px,").concat(s,"px)")),this.box&&(this.box.style.width="".concat(a-i,"px"),this.box.style.height="".concat(u-s,"px"))}}}},{key:"mouseupWindow",value:function(t,e){var n=this;if(this.active&&0===t.button){var r=this.startPos,i=e;if(this.reset(),o.default.suppressClick(),r.x!==i.x||r.y!==i.y)return this.map.emit("boxzoomend",new a.Event("boxzoomend",{originalEvent:t})),{cameraAnimation:function(t){return t.fitScreenCoordinates(r,i,n.map.getBearing(),{linear:!0})}};this.fireEvent("boxzoomcancel",t)}}},{key:"keydown",value:function(t){this.active&&27===t.keyCode&&(this.reset(),this.fireEvent("boxzoomcancel",t))}},{key:"reset",value:function(){this.active=!1,this.container.classList.remove("l7-crosshair"),this.box&&(o.default.remove(this.box),this.box=null),o.default.enableDrag(),delete this.startPos,delete this.lastPos}},{key:"fireEvent",value:function(t,e){return this.map.emit(t,new a.Event(t,{originalEvent:e}))}}]),t}();e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(19),i=n(20),o=function(){function t(){Object(r.default)(this,t),this.reset()}return Object(i.default)(t,[{key:"reset",value:function(){this.active=!1}},{key:"dblclick",value:function(t,e){return t.preventDefault(),{cameraAnimation:function(n){n.easeTo({duration:300,zoom:n.getZoom()+(t.shiftKey?-1:1),around:n.unproject(e)},{originalEvent:t})}}}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(20),i=n(19),o=n(68),a=n(61),s=n(63),u=n(32),l=n(52);function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(u.default)(t);if(e){var i=Object(u.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.default)(this,n)}}var h=function(t){Object(a.default)(n,t);var e=c(n);function n(){var t;Object(i.default)(this,n);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=e.call.apply(e,[this].concat(a)),Object(l.default)(Object(o.default)(t),"type","renderFrame"),t}return Object(r.default)(n)}(n(90).Event)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return v}));var r=n(19),i=n(20),o=n(75),a=n(252),s=n.n(a),u=n(69);function l(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var h={linearity:.3,easing:Object(u.bezier)(0,0,.3,1)},f=s()({deceleration:2500,maxSpeed:1400},h),d=s()({deceleration:20,maxSpeed:1400},h),p=s()({deceleration:1e3,maxSpeed:360},h),g=s()({deceleration:1e3,maxSpeed:90},h),v=function(){function t(e){Object(r.default)(this,t),this.map=e,this.clear()}return Object(i.default)(t,[{key:"clear",value:function(){this.inertiaBuffer=[]}},{key:"record",value:function(t){this.drainInertiaBuffer(),this.inertiaBuffer.push({time:Object(u.now)(),settings:t})}},{key:"drainInertiaBuffer",value:function(){for(var t=this.inertiaBuffer,e=Object(u.now)();t.length>0&&e-t[0].time>160;)t.shift()}},{key:"onMoveEnd",value:function(t){if(this.drainInertiaBuffer(),!(this.inertiaBuffer.length<2)){var e,n={zoom:0,bearing:0,pitch:0,pan:new o.default(0,0),pinchAround:void 0,around:void 0},r=l(this.inertiaBuffer);try{for(r.s();!(e=r.n()).done;){var i=e.value.settings;n.zoom+=i.zoomDelta||0,n.bearing+=i.bearingDelta||0,n.pitch+=i.pitchDelta||0,i.panDelta&&n.pan._add(i.panDelta),i.around&&(n.around=i.around),i.pinchAround&&(n.pinchAround=i.pinchAround)}}catch(t){r.e(t)}finally{r.f()}var a=this.inertiaBuffer[this.inertiaBuffer.length-1].time-this.inertiaBuffer[0].time,c={};if(n.pan.mag()){var h=y(n.pan.mag(),a,s()({},f,t||{}));c.offset=n.pan.mult(h.amount/n.pan.mag()),c.center=this.map.transform.center,m(c,h)}if(n.zoom){var v=y(n.zoom,a,d);c.zoom=this.map.transform.zoom+v.amount,m(c,v)}if(n.bearing){var b=y(n.bearing,a,p);c.bearing=this.map.transform.bearing+Object(u.clamp)(b.amount,-179,179),m(c,b)}if(n.pitch){var _=y(n.pitch,a,g);c.pitch=this.map.transform.pitch+_.amount,m(c,_)}if(c.zoom||c.bearing){var x=void 0===n.pinchAround?n.around:n.pinchAround;c.around=x?this.map.unproject(x):this.map.getCenter()}return this.clear(),s()(c,{noMoveStart:!0})}}}]),t}();function m(t,e){(!t.duration||t.duration<e.duration)&&(t.duration=e.duration,t.easing=e.easing)}function y(t,e,n){var r=n.maxSpeed,i=n.linearity,o=n.deceleration,a=Object(u.clamp)(t*i/(e/1e3),-r,r),s=Math.abs(a)/(o*i);return{easing:n.easing,duration:1e3*s,amount:a*(s/2)}}},function(t,e,n){"use strict";n.r(e);var r=n(19),i=n(20),o={panStep:100,bearingStep:15,pitchStep:10},a=function(){function t(){Object(r.default)(this,t);var e=o;this.panStep=e.panStep,this.bearingStep=e.bearingStep,this.pitchStep=e.pitchStep}return Object(i.default)(t,[{key:"reset",value:function(){this.active=!1}},{key:"keydown",value:function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var n=0,r=0,i=0,o=0,a=0;switch(t.keyCode){case 61:case 107:case 171:case 187:n=1;break;case 189:case 109:case 173:n=-1;break;case 37:t.shiftKey?r=-1:(t.preventDefault(),o=-1);break;case 39:t.shiftKey?r=1:(t.preventDefault(),o=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),a=-1);break;case 40:t.shiftKey?i=-1:(t.preventDefault(),a=1);break;default:return}return{cameraAnimation:function(u){var l=u.getZoom();u.easeTo({duration:300,easeId:"keyboardHandler",easing:s,zoom:n?Math.round(l)+n*(t.shiftKey?2:1):l,bearing:u.getBearing()+r*e.bearingStep,pitch:u.getPitch()+i*e.pitchStep,offset:[-o*e.panStep,-a*e.panStep],center:u.getCenter()},{originalEvent:t})}}}}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}]),t}();function s(t){return t*(2-t)}e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(19),i=n(20),o=n(205),a=function(){function t(e,n){Object(r.default)(this,t),this.map=e,this.clickTolerance=n.clickTolerance}return Object(i.default)(t,[{key:"reset",value:function(){delete this.mousedownPos}},{key:"wheel",value:function(t){return this.firePreventable(new o.MapWheelEvent(t.type,this.map,t))}},{key:"mousedown",value:function(t,e){return this.mousedownPos=e,this.firePreventable(new o.MapMouseEvent(t.type,this.map,t))}},{key:"mouseup",value:function(t){this.map.emit(t.type,new o.MapMouseEvent(t.type,this.map,t))}},{key:"click",value:function(t,e){this.mousedownPos&&this.mousedownPos.dist(e)>=this.clickTolerance||this.map.emit(t.type,new o.MapMouseEvent(t.type,this.map,t))}},{key:"dblclick",value:function(t){return this.firePreventable(new o.MapMouseEvent(t.type,this.map,t))}},{key:"mouseover",value:function(t){this.map.emit(t.type,new o.MapMouseEvent(t.type,this.map,t))}},{key:"mouseout",value:function(t){this.map.emit(t.type,new o.MapMouseEvent(t.type,this.map,t))}},{key:"touchstart",value:function(t){return this.firePreventable(new o.MapTouchEvent(t.type,this.map,t))}},{key:"touchmove",value:function(t){this.map.emit(t.type,new o.MapTouchEvent(t.type,this.map,t))}},{key:"touchend",value:function(t){this.map.emit(t.type,new o.MapTouchEvent(t.type,this.map,t))}},{key:"touchcancel",value:function(t){this.map.emit(t.type,new o.MapTouchEvent(t.type,this.map,t))}},{key:"firePreventable",value:function(t){if(this.map.emit(t.type,t),t.defaultPrevented)return{}}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){return!1}},{key:"disable",value:function(){return!1}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(32);function i(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Object(r.default)(t)););return t}},function(t,e,n){"use strict";n.r(e);var r=n(19),i=n(20),o=n(52),a=n(102),s=n(69),u=n(141),l=function(){function t(e,n){var i=this;Object(r.default)(this,t),Object(o.default)(this,"onScrollFrame",(function(){if(i.frameId&&(i.frameId=null,i.isActive())){var t=i.map.transform;if(0!==i.delta){var e="wheel"===i.type&&Math.abs(i.delta)>4.000244140625?i.wheelZoomRate:i.defaultZoomRate,n=2/(1+Math.exp(-Math.abs(i.delta*e)));i.delta<0&&0!==n&&(n=1/n);var r="number"==typeof i.targetZoom?t.zoomScale(i.targetZoom):t.scale;i.targetZoom=Math.min(t.maxZoom,Math.max(t.minZoom,t.scaleZoom(r*n))),"wheel"===i.type&&(i.startZoom=t.zoom,i.easing=i.smoothOutEasing(200)),i.delta=0}var o,a="number"==typeof i.targetZoom?i.targetZoom:t.zoom,u=i.startZoom,l=i.easing,c=!1;if("wheel"===i.type&&u&&l){var h=Math.min((Object(s.now)()-i.lastWheelEventTime)/200,1),f=l(h);o=Object(s.interpolate)(u,a,f),h<1?i.frameId||(i.frameId=!0):c=!0}else o=a,c=!0;return i.active=!0,c&&(i.active=!1,i.finishTimeout=setTimeout((function(){i.zooming=!1,i.handler.triggerRenderFrame(),delete i.targetZoom,delete i.finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!c,zoomDelta:o-t.zoom,around:i.aroundPoint,originalEvent:i.lastWheelEvent}}})),this.map=e,this.el=e.getCanvasContainer(),this.handler=n,this.delta=0,this.defaultZoomRate=.01,this.wheelZoomRate=1/450}return Object(i.default)(t,[{key:"setZoomRate",value:function(t){this.defaultZoomRate=t}},{key:"setWheelZoomRate",value:function(t){this.wheelZoomRate=t}},{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active||void 0!==this.finishTimeout}},{key:"isZooming",value:function(){return!!this.zooming}},{key:"enable",value:function(t){this.isEnabled()||(this.enabled=!0,this.aroundCenter=t&&"center"===t.around)}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"wheel",value:function(t){if(this.isEnabled()){var e=t.deltaMode===window.WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY,n=Object(s.now)(),r=n-(this.lastWheelEventTime||0);this.lastWheelEventTime=n,0!==e&&e%4.000244140625==0?this.type="wheel":0!==e&&Math.abs(e)<4?this.type="trackpad":r>400?(this.type=null,this.lastValue=e,this.timeout=setTimeout(this.onTimeout,40,t)):this.type||(this.type=Math.abs(r*e)<200?"trackpad":"wheel",this.timeout&&(clearTimeout(this.timeout),this.timeout=null,e+=this.lastValue)),t.shiftKey&&e&&(e/=4),this.type&&(this.lastWheelEvent=t,this.delta-=e,this.active||this.start(t)),t.preventDefault()}}},{key:"renderFrame",value:function(){return this.onScrollFrame()}},{key:"reset",value:function(){this.active=!1}},{key:"onTimeout",value:function(t){this.type="wheel",this.delta-=this.lastValue,!this.active&&this.start&&this.start(t)}},{key:"start",value:function(t){if(this.delta){this.frameId&&(this.frameId=null),this.active=!0,this.isZooming()||(this.zooming=!0),this.finishTimeout&&(clearTimeout(this.finishTimeout),delete this.finishTimeout);var e=u.default.mousePos(this.el,t);this.around=a.default.convert(this.aroundCenter?this.map.getCenter():this.map.unproject(e)),this.aroundPoint=this.map.transform.locationPoint(this.around),this.frameId||(this.frameId=!0,this.handler.triggerRenderFrame())}}},{key:"smoothOutEasing",value:function(t){var e=s.ease;if(this.prevEase){var n=this.prevEase,r=(Object(s.now)()-n.start)/n.duration,i=n.easing(r+.01)-n.easing(r),o=.27/Math.sqrt(i*i+1e-4)*.01,a=Math.sqrt(.0729-o*o);e=Object(s.bezier)(o,a,.25,1)}return this.prevEase={start:Object(s.now)(),duration:t,easing:e},e}}]),t}();e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(19),i=n(20),o=function(){function t(e,n){Object(r.default)(this,t),this.clickZoom=e,this.tapZoom=n}return Object(i.default)(t,[{key:"enable",value:function(){this.clickZoom.enable(),this.tapZoom.enable()}},{key:"disable",value:function(){this.clickZoom.disable(),this.tapZoom.disable()}},{key:"isEnabled",value:function(){return this.clickZoom.isEnabled()&&this.tapZoom.isEnabled()}},{key:"isActive",value:function(){return this.clickZoom.isActive()||this.tapZoom.isActive()}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(19),i=n(20),o=n(45),a=function(){function t(e,n,i){Object(r.default)(this,t),this.el=e,this.mousePan=n,this.touchPan=i}return Object(i.default)(t,[{key:"enable",value:function(t){this.inertiaOptions=t||{},this.mousePan.enable(),this.touchPan.enable(),o.isMini||this.el.classList.add("l7-touch-drag-pan")}},{key:"disable",value:function(){this.mousePan.disable(),this.touchPan.disable(),o.isMini||this.el.classList.remove("l7-touch-drag-pan")}},{key:"isEnabled",value:function(){return this.mousePan.isEnabled()&&this.touchPan.isEnabled()}},{key:"isActive",value:function(){return this.mousePan.isActive()||this.touchPan.isActive()}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(19),i=n(20),o=function(){function t(e,n,i){Object(r.default)(this,t),this.pitchWithRotate=e.pitchWithRotate,this.mouseRotate=n,this.mousePitch=i}return Object(i.default)(t,[{key:"enable",value:function(){this.mouseRotate.enable(),this.pitchWithRotate&&this.mousePitch.enable()}},{key:"disable",value:function(){this.mouseRotate.disable(),this.mousePitch.disable()}},{key:"isEnabled",value:function(){return this.mouseRotate.isEnabled()&&(!this.pitchWithRotate||this.mousePitch.isEnabled())}},{key:"isActive",value:function(){return this.mouseRotate.isActive()||this.mousePitch.isActive()}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(19),i=n(20),o=n(45),a=function(){function t(e,n,i,o){Object(r.default)(this,t),this.el=e,this.touchZoom=n,this.touchRotate=i,this.tapDragZoom=o,this.rotationDisabled=!1,this.enabled=!0}return Object(i.default)(t,[{key:"enable",value:function(t){this.touchZoom.enable(t),this.rotationDisabled||this.touchRotate.enable(t),this.tapDragZoom.enable(),o.isMini||this.el.classList.add("l7-touch-zoom-rotate")}},{key:"disable",value:function(){this.touchZoom.disable(),this.touchRotate.disable(),this.tapDragZoom.disable(),o.isMini||this.el.classList.remove("l7-touch-zoom-rotate")}},{key:"isEnabled",value:function(){return this.touchZoom.isEnabled()&&(this.rotationDisabled||this.touchRotate.isEnabled())&&this.tapDragZoom.isEnabled()}},{key:"isActive",value:function(){return this.touchZoom.isActive()||this.touchRotate.isActive()||this.tapDragZoom.isActive()}},{key:"disableRotation",value:function(){this.rotationDisabled=!0,this.touchRotate.disable()}},{key:"enableRotation",value:function(){this.rotationDisabled=!1,this.touchZoom.isEnabled()&&this.touchRotate.enable()}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(19),i=n(20),o=n(528),a=n(604),s=function(){function t(){Object(r.default)(this,t),this.tap=new a.default({numTouches:1,numTaps:1}),this.reset()}return Object(i.default)(t,[{key:"reset",value:function(){this.active=!1,delete this.swipePoint,delete this.swipeTouch,delete this.tapTime,this.tap.reset()}},{key:"touchstart",value:function(t,e,n){this.swipePoint||(this.tapTime&&t.timeStamp-this.tapTime>o.MAX_TAP_INTERVAL&&this.reset(),this.tapTime?n.length>0&&(this.swipePoint=e[0],this.swipeTouch=n[0].identifier):this.tap.touchstart(t,e,n))}},{key:"touchmove",value:function(t,e,n){if(this.tapTime){if(this.swipePoint){if(n[0].identifier!==this.swipeTouch)return;var r=e[0],i=r.y-this.swipePoint.y;return this.swipePoint=r,t.preventDefault(),this.active=!0,{zoomDelta:i/128}}}else this.tap.touchmove(t,e,n)}},{key:"touchend",value:function(t,e,n){this.tapTime?this.swipePoint&&0===n.length&&this.reset():this.tap.touchend(t,e,n)&&(this.tapTime=t.timeStamp)}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(19),i=n(20),o=n(604),a=function(){function t(){Object(r.default)(this,t),this.zoomIn=new o.default({numTouches:1,numTaps:2}),this.zoomOut=new o.default({numTouches:2,numTaps:1}),this.reset()}return Object(i.default)(t,[{key:"reset",value:function(){this.active=!1,this.zoomIn.reset(),this.zoomOut.reset()}},{key:"touchstart",value:function(t,e,n){this.zoomIn.touchstart(t,e,n),this.zoomOut.touchstart(t,e,n)}},{key:"touchmove",value:function(t,e,n){this.zoomIn.touchmove(t,e,n),this.zoomOut.touchmove(t,e,n)}},{key:"touchend",value:function(t,e,n){var r=this,i=this.zoomIn.touchend(t,e,n),o=this.zoomOut.touchend(t,e,n);return i?(this.active=!0,t.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(i)},{originalEvent:t})}}):o?(this.active=!0,t.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(o)},{originalEvent:t})}}):void 0}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}]),t}()},function(t,e,n){"use strict";n.r(e);var r=n(19),i=n(20),o=n(52),a=n(45),s=n(122),u=function(){function t(e){var n=this;Object(r.default)(this,t),Object(o.default)(this,"onHashChange",(function(){var t=n.getCurrentHash();if(t.length>=3&&!t.some((function(t){return isNaN(+t)}))){var e=n.map.dragRotate.isEnabled()&&n.map.touchZoomRotate.isEnabled()?+(t[3]||0):n.map.getBearing();return n.map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1})),Object(o.default)(this,"getCurrentHash",(function(){var t,e=window.location.hash.replace("#","");return n.hashName?(e.split("&").map((function(t){return t.split("=")})).forEach((function(e){e[0]===n.hashName&&(t=e)})),(t&&t[1]||"").split("/")):e.split("/")})),Object(o.default)(this,"updateHashUnthrottled",(function(){var t=n.getHashString();try{window.history.replaceState(window.history.state,"",t)}catch(t){}})),this.hashName=e&&encodeURIComponent(e),this.updateHash=Object(s.throttle)(this.updateHashUnthrottled,300)}return Object(i.default)(t,[{key:"addTo",value:function(t){return this.map=t,a.$window.addEventListener("hashchange",this.onHashChange,!1),this.map.on("moveend",this.updateHash),this}},{key:"remove",value:function(){return a.$window.removeEventListener("hashchange",this.onHashChange,!1),this.map.off("moveend",this.updateHash),delete this.map,this}},{key:"getHashString",value:function(t){var e=this.map.getCenter(),n=Math.round(100*this.map.getZoom())/100,r=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),i=Math.pow(10,r),o=Math.round(e.lng*i)/i,a=Math.round(e.lat*i)/i,s=this.map.getBearing(),u=this.map.getPitch(),l="";if(l+=t?"/".concat(o,"/").concat(a,"/").concat(n):"".concat(n,"/").concat(a,"/").concat(o),(s||u)&&(l+="/".concat(Math.round(10*s)/10)),u&&(l+="/".concat(Math.round(u))),this.hashName){var c=this.hashName,h=!1,f=window.location.hash.slice(1).split("&").map((function(t){var e=t.split("=")[0];return e===c?(h=!0,"".concat(e,"=").concat(l)):t})).filter((function(t){return t}));return h||f.push("".concat(c,"=").concat(l)),"#".concat(f.join("&"))}return"#".concat(l)}}]),t}();e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return U}));var r,i,o,a,s,u,l,c,h,f,d,p=n(227),g=n.n(p),v=n(115),m=n.n(v),y=n(47),b=n.n(y),_=n(16),x=n.n(_),w=n(17),O=n.n(w),S=n(4),C=n.n(S),E=n(44),T=n.n(E),A=(n(196),n(49)),M=n.n(A),I=n(76),j=n(600),k=n(37),P=n(21),L=(n(94),n(224)),R=n(1876),D=n(325),N=n(949),B=["id","attributionControl","style","rotation","mapInstance"];function F(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?F(Object(n),!0).forEach((function(e){C()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var V={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},U=(r=Object(P.injectable)(),i=Object(P.inject)(I.TYPES.MapConfig),o=Object(P.inject)(I.TYPES.IGlobalConfigService),a=Object(P.inject)(I.TYPES.ICoordinateSystemService),s=Object(P.inject)(I.TYPES.IEventEmitter),r((l=function(){function t(){var e=this;x()(this,t),C()(this,"version",L.Version.GLOBEL),C()(this,"map",void 0),C()(this,"simpleMapCoord",new D.SimpleMapCoord),C()(this,"dragging",!1),C()(this,"bgColor","#000"),b()(this,"config",c,this),b()(this,"configService",h,this),b()(this,"coordinateSystemService",f,this),b()(this,"eventEmitter",d,this),C()(this,"viewport",void 0),C()(this,"markerContainer",void 0),C()(this,"cameraChangedCallback",void 0),C()(this,"$mapContainer",void 0),C()(this,"handleCameraChanging",void 0),C()(this,"handleCameraTimer",void 0),C()(this,"handleCameraChanged",(function(t){e.emit("mapchange");e.handleCameraChanging=!0,e.handleCameraTimer&&clearTimeout(e.handleCameraTimer),e.handleCameraTimer=setTimeout((function(){e.handleCameraChanging=!1}),2e3);t.type&&t.originalEvent&&("wheel"===t.originalEvent.type&&e.viewport.scaleZoom(.01*Math.sign(t.originalEvent.wheelDelta)*-1),Math.abs(t.originalEvent.movementX)>Math.abs(t.originalEvent.movementY)?t.originalEvent.movementX>0?e.viewport.rotateY(.02):t.originalEvent.movementX<0&&e.viewport.rotateY(-.02):t.originalEvent.movementY>0?e.viewport.rotateX(.02):t.originalEvent.movementY<0&&e.viewport.rotateX(-.02));var n=e.config.offsetCoordinate,r=void 0===n||n;e.viewport.syncWithMapCamera({viewportHeight:e.map.transform.height,viewportWidth:e.map.transform.width}),e.viewport.getZoom()>12&&r?e.coordinateSystemService.setCoordinateSystem(I.CoordinateSystem.LNGLAT_OFFSET):e.coordinateSystemService.setCoordinateSystem(I.CoordinateSystem.LNGLAT),e.cameraChangedCallback(e.viewport)}))}var e;return O()(t,[{key:"setBgColor",value:function(t){this.bgColor=t}},{key:"addMarkerContainer",value:function(){var t=this.map.getCanvasContainer();this.markerContainer=k.DOM.create("div","l7-marker-container",t),this.markerContainer.setAttribute("tabindex","-1")}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(t,e){-1!==I.MapServiceEvent.indexOf(t)?this.eventEmitter.on(t,e):this.map.on(V[t]||t,e)}},{key:"off",value:function(t,e){this.map.off(V[t]||t,e),this.eventEmitter.off(t,e)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){var t=this.map.transform;return[t.width,t.height]}},{key:"getType",value:function(){return"default"}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"setZoom",value:function(t){return this.map.setZoom(t)}},{key:"getCenter",value:function(){return this.map.getCenter()}},{key:"setCenter",value:function(t){this.map.setCenter(t)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return this.map.getBearing()}},{key:"getBounds",value:function(){return this.map.getBounds().toArray()}},{key:"getMinZoom",value:function(){return this.map.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.map.getMaxZoom()}},{key:"setRotation",value:function(t){this.map.setBearing(t)}},{key:"zoomIn",value:function(t,e){this.map.zoomIn(t,e)}},{key:"zoomOut",value:function(t,e){this.map.zoomOut(t,e)}},{key:"setPitch",value:function(t){return this.map.setPitch(t)}},{key:"panTo",value:function(t){this.map.panTo(t)}},{key:"panBy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.panTo([t,e])}},{key:"fitBounds",value:function(t,e){this.map.fitBounds(t,e)}},{key:"setMaxZoom",value:function(t){this.map.setMaxZoom(t)}},{key:"setMinZoom",value:function(t){this.map.setMinZoom(t)}},{key:"setMapStatus",value:function(t){!0===t.doubleClickZoom&&this.map.doubleClickZoom.enable(),!1===t.doubleClickZoom&&this.map.doubleClickZoom.disable(),!1===t.dragEnable&&this.map.dragPan.disable(),!0===t.dragEnable&&this.map.dragPan.enable(),!1===t.rotateEnable&&this.map.dragRotate.disable(),!0===t.dragEnable&&this.map.dragRotate.enable(),!1===t.keyboardEnable&&this.map.keyboard.disable(),!0===t.keyboardEnable&&this.map.keyboard.enable(),!1===t.zoomEnable&&this.map.scrollZoom.disable(),!0===t.zoomEnable&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(t,e){this.map.flyTo({zoom:t,center:e})}},{key:"setMapStyle",value:function(t){this.map.setStyle(this.getMapStyle(t))}},{key:"pixelToLngLat",value:function(t){return this.map.unproject(t)}},{key:"lngLatToPixel",value:function(t){return this.map.project(t)}},{key:"containerToLngLat",value:function(t){return this.map.unproject(t)}},{key:"lngLatToContainer",value:function(t){return this.map.project(t)}},{key:"lngLatToMercator",value:function(t,e){throw new Error("not implement")}},{key:"getModelMatrix",value:function(t,e,n){throw new Error("not implement")}},{key:"init",value:(e=m()(M.a.mark((function t(){var e,n,r,i,o,a,s,u;return M.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this.config,n=e.id,r=void 0===n?"map":n,e.attributionControl,i=e.style,o=void 0===i?"light":i,a=e.rotation,s=void 0===a?0:a,e.mapInstance,u=g()(e,B),this.viewport=new R.default,this.$mapContainer=this.creatAmapContainer(r),this.map=new j.EarthMap(z({container:this.$mapContainer,style:this.getMapStyle(o),bearing:s},u)),this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged({});case 7:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){var t,e;null===(t=this.$mapContainer)||void 0===t||null===(e=t.parentNode)||void 0===e||e.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this.eventEmitter).emit.apply(e,[t].concat(r))}},{key:"once",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this.eventEmitter).once.apply(e,[t].concat(r))}},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"exportMap",value:function(t){var e=this.map.getCanvas();return"jpg"===t?null==e?void 0:e.toDataURL("image/jpeg"):null==e?void 0:e.toDataURL("image/png")}},{key:"onCameraChanged",value:function(t){this.cameraChangedCallback=t}},{key:"rotateY",value:function(t){var e=t||{},n=e.force,r=void 0!==n&&n,i=e.reg,o=void 0===i?.01:i;this.handleCameraChanging&&!r||this.viewport&&(this.viewport.rotateY(o),this.viewport.syncWithMapCamera({viewportHeight:this.map.transform.height,viewportWidth:this.map.transform.width}),this.cameraChangedCallback(this.viewport))}},{key:"creatAmapContainer",value:function(t){var e=t;return"string"==typeof t&&(e=document.getElementById(t)),e}},{key:"getMapStyle",value:function(t){return"string"!=typeof t?t:N.MapTheme[t]?N.MapTheme[t]:t}}]),t}(),c=T()(l.prototype,"config",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=T()(l.prototype,"configService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=T()(l.prototype,"coordinateSystemService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=T()(l.prototype,"eventEmitter",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=l))||u)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return c}));var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(4),u=n.n(s),l=n(10),c=function(){function t(){i()(this,t),u()(this,"xzReg",.6*-Math.PI),u()(this,"yReg",.2*Math.PI),u()(this,"earthCameraRadius",200),u()(this,"earthCameraZoom",1),u()(this,"cameraPosition",l.vec3.create()),u()(this,"viewport",void 0),u()(this,"projectionMatrix",l.mat4.create()),u()(this,"modelMatrix",l.mat4.create()),u()(this,"viewMatrix",l.mat4.create()),u()(this,"viewProjectionMatrix",l.mat4.create()),u()(this,"ViewProjectionMatrixUncentered",l.mat4.create()),u()(this,"viewUncenteredMatrix",l.mat4.create())}return a()(t,[{key:"syncWithMapCamera",value:function(t){var e=t.viewportHeight,n=void 0===e?1:e,r=t.viewportWidth,i=(void 0===r?1:r)/n;l.mat4.perspective(this.projectionMatrix,20,i,.1,1e4);var o=this.earthCameraRadius*Math.cos(this.xzReg),a=this.earthCameraRadius*Math.sin(this.xzReg),s=this.earthCameraRadius*Math.sin(this.yReg);this.cameraPosition=l.vec3.fromValues(o,s,a),l.vec3.normalize(this.cameraPosition,this.cameraPosition),l.vec3.multiply(this.cameraPosition,this.cameraPosition,l.vec3.fromValues(this.earthCameraRadius,this.earthCameraRadius,this.earthCameraRadius)),l.vec3.scale(this.cameraPosition,this.cameraPosition,this.earthCameraZoom);var u=l.vec3.create();l.vec3.cross(u,this.cameraPosition,l.vec3.fromValues(0,1,0));var c=l.vec3.fromValues(0,1,0);l.vec3.cross(c,u,this.cameraPosition);var h=l.vec3.fromValues(0,0,0);l.mat4.lookAt(this.viewMatrix,this.cameraPosition,h,c),this.viewUncenteredMatrix=l.mat4.clone(this.viewMatrix),l.mat4.multiply(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),l.mat4.multiply(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"rotateY",value:function(t){this.xzReg+=t*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"rotateX",value:function(t){this.yReg+=t*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"scaleZoom",value:function(t){this.earthCameraZoom+=t,this.earthCameraZoom=Math.max(this.earthCameraZoom,.6)}},{key:"getZoom",value:function(){return 4}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[0,0]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return this.modelMatrix}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(t,e){return this.viewport.projectFlat(t,e)}}]),t}()},,function(t,e,n){t.exports=n},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,a,s,u=1,l={},c=!1,h=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){p(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},r=function(t){o.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(i=h.documentElement,r=function(t){var e=h.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(p,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var i={callback:t,args:e};return l[u]=i,r(u),u++},f.clearImmediate=d}function d(t){delete l[t]}function p(t){if(c)setTimeout(p,0,t);else{var e=l[t];if(e){c=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{d(t),c=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(309),n(447))},function(t,e,n){"use strict";function r(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function i(t,e){for(var n in e)t[n]=e[n];return t}n.r(e);var o={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,a=e.data;a.routerView=!0;for(var s=o.$createElement,u=n.name,l=o.$route,c=o._routerViewCache||(o._routerViewCache={}),h=0,f=!1;o&&o._routerRoot!==o;){var d=o.$vnode&&o.$vnode.data;d&&(d.routerView&&h++,d.keepAlive&&o._inactive&&(f=!0)),o=o.$parent}if(a.routerViewDepth=h,f)return s(c[u],a,r);var p=l.matched[h];if(!p)return c[u]=null,s();var g=c[u]=p.components[u];a.registerRouteInstance=function(t,e){var n=p.instances[u];(e&&n!==t||!e&&n===t)&&(p.instances[u]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){p.instances[u]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==p.instances[u]&&(p.instances[u]=t.componentInstance)};var v=a.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(l,p.props&&p.props[u]);if(v){v=a.props=i({},v);var m=a.attrs=a.attrs||{};for(var y in v)g.props&&y in g.props||(m[y]=v[y],delete v[y])}return s(g,a,r)}};var a=/[!'()*]/g,s=function(t){return"%"+t.charCodeAt(0).toString(16)},u=/%2C/g,l=function(t){return encodeURIComponent(t).replace(a,s).replace(u,",")},c=decodeURIComponent;function h(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=c(n.shift()),i=n.length>0?c(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function f(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return l(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(l(e)):r.push(l(e)+"="+l(t)))})),r.join("&")}return l(e)+"="+l(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var d=/\/?$/;function p(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=g(o)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:y(e,i),matched:t?m(t):[]};return n&&(a.redirectedFrom=y(n,i)),Object.freeze(a)}function g(t){if(Array.isArray(t))return t.map(g);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=g(t[n]);return e}return t}var v=p(null,{path:"/"});function m(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function y(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||f)(r)+i}function b(t,e){return e===v?t===e:!!e&&(t.path&&e.path?t.path.replace(d,"")===e.path.replace(d,"")&&t.hash===e.hash&&_(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&_(t.query,e.query)&&_(t.params,e.params)))}function _(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((function(n){var r=t[n],i=e[n];return"object"==typeof r&&"object"==typeof i?_(r,i):String(r)===String(i)}))}var x,w={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),a=o.location,s=o.route,u=o.href,l={},c=n.options.linkActiveClass,h=n.options.linkExactActiveClass,f=null==c?"router-link-active":c,g=null==h?"router-link-exact-active":h,v=null==this.activeClass?f:this.activeClass,m=null==this.exactActiveClass?g:this.exactActiveClass,y=a.path?p(null,a,null,n):s;l[m]=b(r,y),l[v]=this.exact?l[m]:function(t,e){return 0===t.path.replace(d,"/").indexOf(e.path.replace(d,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,y);var _=function(t){O(t)&&(e.replace?n.replace(a):n.push(a))},x={click:O};Array.isArray(this.event)?this.event.forEach((function(t){x[t]=_})):x[this.event]=_;var w={class:l};if("a"===this.tag)w.on=x,w.attrs={href:u};else{var S=function t(e){var n;if(e)for(var r=0;r<e.length;r++){if("a"===(n=e[r]).tag)return n;if(n.children&&(n=t(n.children)))return n}}(this.$slots.default);if(S)S.isStatic=!1,(S.data=i({},S.data)).on=x,(S.data.attrs=i({},S.data.attrs)).href=u;else w.on=x}return t(this.tag,w,this.$slots.default)}};function O(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}var S="undefined"!=typeof window;function C(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),a=0;a<o.length;a++){var s=o[a];".."===s?i.pop():"."!==s&&i.push(s)}return""!==i[0]&&i.unshift(""),i.join("/")}function E(t){return t.replace(/\/\//g,"/")}var T=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},A=U,M=L,I=function(t,e){return D(L(t,e))},j=D,k=V,P=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function L(t,e){for(var n,r=[],i=0,o=0,a="",s=e&&e.delimiter||"/";null!=(n=P.exec(t));){var u=n[0],l=n[1],c=n.index;if(a+=t.slice(o,c),o=c+u.length,l)a+=l[1];else{var h=t[o],f=n[2],d=n[3],p=n[4],g=n[5],v=n[6],m=n[7];a&&(r.push(a),a="");var y=null!=f&&null!=h&&h!==f,b="+"===v||"*"===v,_="?"===v||"*"===v,x=n[2]||s,w=p||g;r.push({name:d||i++,prefix:f||"",delimiter:x,optional:_,repeat:b,partial:y,asterisk:!!m,pattern:w?B(w):m?".*":"[^"+N(x)+"]+?"})}}return o<t.length&&(a+=t.substr(o)),a&&r.push(a),r}function R(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function D(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"==typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,r){for(var i="",o=n||{},a=(r||{}).pretty?R:encodeURIComponent,s=0;s<t.length;s++){var u=t[s];if("string"!=typeof u){var l,c=o[u.name];if(null==c){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(T(c)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(c)+"`");if(0===c.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<c.length;h++){if(l=a(c[h]),!e[s].test(l))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?u.prefix:u.delimiter)+l}}else{if(l=u.asterisk?encodeURI(c).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):a(c),!e[s].test(l))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+l+'"');i+=u.prefix+l}}else i+=u}return i}}function N(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function B(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function F(t,e){return t.keys=e,t}function z(t){return t.sensitive?"":"i"}function V(t,e,n){T(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,o="",a=0;a<t.length;a++){var s=t[a];if("string"==typeof s)o+=N(s);else{var u=N(s.prefix),l="(?:"+s.pattern+")";e.push(s),s.repeat&&(l+="(?:"+u+l+")*"),o+=l=s.optional?s.partial?u+"("+l+")?":"(?:"+u+"("+l+"))?":u+"("+l+")"}}var c=N(n.delimiter||"/"),h=o.slice(-c.length)===c;return r||(o=(h?o.slice(0,-c.length):o)+"(?:"+c+"(?=$))?"),o+=i?"$":r&&h?"":"(?="+c+"|$)",F(new RegExp("^"+o,z(n)),e)}function U(t,e,n){return T(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return F(t,e)}(t,e):T(t)?function(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(U(t[i],e,n).source);return F(new RegExp("(?:"+r.join("|")+")",z(n)),e)}(t,e,n):function(t,e,n){return V(L(t,n),e,n)}(t,e,n)}A.parse=M,A.compile=I,A.tokensToFunction=j,A.tokensToRegExp=k;var G=Object.create(null);function H(t,e,n){e=e||{};try{var r=G[t]||(G[t]=A.compile(t));return e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(t){return""}finally{delete e[0]}}function W(t,e,n,r){var i=e||[],o=n||Object.create(null),a=r||Object.create(null);t.forEach((function(t){!function t(e,n,r,i,o,a){var s=i.path,u=i.name;0;var l=i.pathToRegexpOptions||{},c=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return E(e.path+"/"+t)}(s,o,l.strict);"boolean"==typeof i.caseSensitive&&(l.sensitive=i.caseSensitive);var h={path:c,regex:Y(c,l),components:i.components||{default:i.component},instances:{},name:u,parent:o,matchAs:a,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};i.children&&i.children.forEach((function(i){var o=a?E(a+"/"+i.path):void 0;t(e,n,r,i,h,o)}));if(void 0!==i.alias){(Array.isArray(i.alias)?i.alias:[i.alias]).forEach((function(a){var s={path:a,children:i.children};t(e,n,r,s,o,h.path||"/")}))}n[h.path]||(e.push(h.path),n[h.path]=h);u&&(r[u]||(r[u]=h))}(i,o,a,t)}));for(var s=0,u=i.length;s<u;s++)"*"===i[s]&&(i.push(i.splice(s,1)[0]),u--,s--);return{pathList:i,pathMap:o,nameMap:a}}function Y(t,e){return A(t,[],e)}function X(t,e,n,r){var o="string"==typeof t?{path:t}:t;if(o._normalized)return o;if(o.name)return i({},t);if(!o.path&&o.params&&e){(o=i({},o))._normalized=!0;var a=i(i({},e.params),o.params);if(e.name)o.name=e.name,o.params=a;else if(e.matched.length){var s=e.matched[e.matched.length-1].path;o.path=H(s,a,e.path)}else 0;return o}var u=function(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(o.path||""),l=e&&e.path||"/",c=u.path?C(u.path,l,n||o.append):l,f=function(t,e,n){void 0===e&&(e={});var r,i=n||h;try{r=i(t||"")}catch(t){r={}}for(var o in e)r[o]=e[o];return r}(u.query,o.query,r&&r.options.parseQuery),d=o.hash||u.hash;return d&&"#"!==d.charAt(0)&&(d="#"+d),{_normalized:!0,path:c,query:f,hash:d}}function $(t,e){var n=W(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(t,n,a){var s=X(t,n,!1,e),l=s.name;if(l){var c=o[l];if(!c)return u(null,s);var h=c.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!=typeof s.params&&(s.params={}),n&&"object"==typeof n.params)for(var f in n.params)!(f in s.params)&&h.indexOf(f)>-1&&(s.params[f]=n.params[f]);if(c)return s.path=H(c.path,s.params),u(c,s,a)}else if(s.path){s.params={};for(var d=0;d<r.length;d++){var p=r[d],g=i[p];if(q(g.regex,s.path,s.params))return u(g,s,a)}}return u(null,s)}function s(t,n){var r=t.redirect,i="function"==typeof r?r(p(t,n,null,e)):r;if("string"==typeof i&&(i={path:i}),!i||"object"!=typeof i)return u(null,n);var s=i,l=s.name,c=s.path,h=n.query,f=n.hash,d=n.params;if(h=s.hasOwnProperty("query")?s.query:h,f=s.hasOwnProperty("hash")?s.hash:f,d=s.hasOwnProperty("params")?s.params:d,l){o[l];return a({_normalized:!0,name:l,query:h,hash:f,params:d},void 0,n)}if(c){var g=function(t,e){return C(t,e.parent?e.parent.path:"/",!0)}(c,t);return a({_normalized:!0,path:H(g,d),query:h,hash:f},void 0,n)}return u(null,n)}function u(t,n,r){return t&&t.redirect?s(t,r||n):t&&t.matchAs?function(t,e,n){var r=a({_normalized:!0,path:H(n,e.params)});if(r){var i=r.matched,o=i[i.length-1];return e.params=r.params,u(o,e)}return u(null,e)}(0,n,t.matchAs):p(t,n,r,e)}return{match:a,addRoutes:function(t){W(t,r,i,o)}}}function q(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var a=t.keys[i-1],s="string"==typeof r[i]?decodeURIComponent(r[i]):r[i];a&&(n[a.name||"pathMatch"]=s)}return!0}var Z=Object.create(null);function K(){window.history.replaceState({key:lt()},"",window.location.href.replace(window.location.origin,"")),window.addEventListener("popstate",(function(t){var e;J(),t.state&&t.state.key&&(e=t.state.key,st=e)}))}function Q(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick((function(){var o=function(){var t=lt();if(t)return Z[t]}(),a=i.call(t,e,n,r?o:null);a&&("function"==typeof a.then?a.then((function(t){rt(t,o)})).catch((function(t){0})):rt(a,o))}))}}function J(){var t=lt();t&&(Z[t]={x:window.pageXOffset,y:window.pageYOffset})}function tt(t){return nt(t.x)||nt(t.y)}function et(t){return{x:nt(t.x)?t.x:window.pageXOffset,y:nt(t.y)?t.y:window.pageYOffset}}function nt(t){return"number"==typeof t}function rt(t,e){var n,r="object"==typeof t;if(r&&"string"==typeof t.selector){var i=document.querySelector(t.selector);if(i){var o=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}(i,o={x:nt((n=o).x)?n.x:0,y:nt(n.y)?n.y:0})}else tt(t)&&(e=et(t))}else r&&tt(t)&&(e=et(t));e&&window.scrollTo(e.x,e.y)}var it,ot=S&&((-1===(it=window.navigator.userAgent).indexOf("Android 2.")&&-1===it.indexOf("Android 4.0")||-1===it.indexOf("Mobile Safari")||-1!==it.indexOf("Chrome")||-1!==it.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history),at=S&&window.performance&&window.performance.now?window.performance:Date,st=ut();function ut(){return at.now().toFixed(3)}function lt(){return st}function ct(t,e){J();var n=window.history;try{e?n.replaceState({key:st},"",t):(st=ut(),n.pushState({key:st},"",t))}catch(n){window.location[e?"replace":"assign"](t)}}function ht(t){ct(t,!0)}function ft(t,e,n){var r=function(i){i>=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}function dt(t){return function(e,n,i){var o=!1,a=0,s=null;pt(t,(function(t,e,n,u){if("function"==typeof t&&void 0===t.cid){o=!0,a++;var l,c=mt((function(e){var r;((r=e).__esModule||vt&&"Module"===r[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:x.extend(e),n.components[u]=e,--a<=0&&i()})),h=mt((function(t){var e="Failed to resolve async component "+u+": "+t;s||(s=r(t)?t:new Error(e),i(s))}));try{l=t(c,h)}catch(t){h(t)}if(l)if("function"==typeof l.then)l.then(c,h);else{var f=l.component;f&&"function"==typeof f.then&&f.then(c,h)}}})),o||i()}}function pt(t,e){return gt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function gt(t){return Array.prototype.concat.apply([],t)}var vt="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function mt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var yt=function(t,e){this.router=t,this.base=function(t){if(!t)if(S){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function bt(t,e,n,r){var i=pt(t,(function(t,r,i,o){var a=function(t,e){"function"!=typeof t&&(t=x.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,i,o)})):n(a,r,i,o)}));return gt(r?i.reverse():i)}function _t(t,e){if(e)return function(){return t.apply(e,arguments)}}yt.prototype.listen=function(t){this.cb=t},yt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},yt.prototype.onError=function(t){this.errorCbs.push(t)},yt.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,(function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach((function(t){t(i)})))}),(function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach((function(e){e(t)})))}))},yt.prototype.confirmTransition=function(t,e,n){var i=this,o=this.current,a=function(t){r(t)&&(i.errorCbs.length?i.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)};if(b(t,o)&&t.matched.length===o.matched.length)return this.ensureURL(),a();var s=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),u=s.updated,l=s.deactivated,c=s.activated,h=[].concat(function(t){return bt(t,"beforeRouteLeave",_t,!0)}(l),this.router.beforeHooks,function(t){return bt(t,"beforeRouteUpdate",_t)}(u),c.map((function(t){return t.beforeEnter})),dt(c));this.pending=t;var f=function(e,n){if(i.pending!==t)return a();try{e(t,o,(function(t){!1===t||r(t)?(i.ensureURL(!0),a(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(a(),"object"==typeof t&&t.replace?i.replace(t):i.push(t)):n(t)}))}catch(t){a(t)}};ft(h,f,(function(){var n=[];ft(function(t,e,n){return bt(t,"beforeRouteEnter",(function(t,r,i,o){return function(t,e,n,r,i){return function(o,a,s){return t(o,a,(function(t){s(t),"function"==typeof t&&r.push((function(){!function t(e,n,r,i){n[r]&&!n[r]._isBeingDestroyed?e(n[r]):i()&&setTimeout((function(){t(e,n,r,i)}),16)}(t,e.instances,n,i)}))}))}}(t,i,o,e,n)}))}(c,n,(function(){return i.current===t})).concat(i.router.resolveHooks),f,(function(){if(i.pending!==t)return a();i.pending=null,e(t),i.router.app&&i.router.app.$nextTick((function(){n.forEach((function(t){t()}))}))}))}))},yt.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach((function(n){n&&n(t,e)}))};var xt=function(t){function e(e,n){var r=this;t.call(this,e,n);var i=e.options.scrollBehavior,o=ot&&i;o&&K();var a=wt(this.base);window.addEventListener("popstate",(function(t){var n=r.current,i=wt(r.base);r.current===v&&i===a||r.transitionTo(i,(function(t){o&&Q(e,t,n,!0)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){ct(E(r.base+t.fullPath)),Q(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){ht(E(r.base+t.fullPath)),Q(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(wt(this.base)!==this.current.fullPath){var e=E(this.base+this.current.fullPath);t?ct(e):ht(e)}},e.prototype.getCurrentLocation=function(){return wt(this.base)},e}(yt);function wt(t){var e=decodeURI(window.location.pathname);return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Ot=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=wt(t);if(!/^\/#/.test(e))return window.location.replace(E(t+"/#"+e)),!0}(this.base)||St()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this,e=this.router.options.scrollBehavior,n=ot&&e;n&&K(),window.addEventListener(ot?"popstate":"hashchange",(function(){var e=t.current;St()&&t.transitionTo(Ct(),(function(r){n&&Q(t.router,r,e,!0),ot||At(r.fullPath)}))}))},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Tt(t.fullPath),Q(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){At(t.fullPath),Q(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Ct()!==e&&(t?Tt(e):At(e))},e.prototype.getCurrentLocation=function(){return Ct()},e}(yt);function St(){var t=Ct();return"/"===t.charAt(0)||(At("/"+t),!1)}function Ct(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";var n=(t=t.slice(e+1)).indexOf("?");if(n<0){var r=t.indexOf("#");t=r>-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function Et(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Tt(t){ot?ct(Et(t)):window.location.hash=t}function At(t){ot?ht(Et(t)):window.location.replace(Et(t))}var Mt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){e.index=n,e.updateRoute(r)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(yt),It=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=$(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!ot&&!1!==t.fallback,this.fallback&&(e="hash"),S||(e="abstract"),this.mode=e,e){case"history":this.history=new xt(this,t.base);break;case"hash":this.history=new Ot(this,t.base,this.fallback);break;case"abstract":this.history=new Mt(this,t.base);break;default:0}},jt={currentRoute:{configurable:!0}};function kt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}It.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},jt.currentRoute.get=function(){return this.history&&this.history.current},It.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)})),!this.app){this.app=t;var n=this.history;if(n instanceof xt)n.transitionTo(n.getCurrentLocation());else if(n instanceof Ot){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},It.prototype.beforeEach=function(t){return kt(this.beforeHooks,t)},It.prototype.beforeResolve=function(t){return kt(this.resolveHooks,t)},It.prototype.afterEach=function(t){return kt(this.afterHooks,t)},It.prototype.onReady=function(t,e){this.history.onReady(t,e)},It.prototype.onError=function(t){this.history.onError(t)},It.prototype.push=function(t,e,n){this.history.push(t,e,n)},It.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},It.prototype.go=function(t){this.history.go(t)},It.prototype.back=function(){this.go(-1)},It.prototype.forward=function(){this.go(1)},It.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},It.prototype.resolve=function(t,e,n){var r=X(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?E(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},It.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(It.prototype,jt),It.install=function t(e){if(!t.installed||x!==e){t.installed=!0,x=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",o),e.component("RouterLink",w);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},It.version="3.0.6",S&&window.Vue&&window.Vue.use(It),e.default=It},function(t,e,n){"use strict";n.r(e),n.d(e,"Store",(function(){return l})),n.d(e,"install",(function(){return m})),n.d(e,"mapState",(function(){return y})),n.d(e,"mapMutations",(function(){return b})),n.d(e,"mapGetters",(function(){return _})),n.d(e,"mapActions",(function(){return x})),n.d(e,"createNamespacedHelpers",(function(){return w}));var r="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}var o=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},a={namespaced:{configurable:!0}};a.namespaced.get=function(){return!!this._rawModule.namespaced},o.prototype.addChild=function(t,e){this._children[t]=e},o.prototype.removeChild=function(t){delete this._children[t]},o.prototype.getChild=function(t){return this._children[t]},o.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},o.prototype.forEachChild=function(t){i(this._children,t)},o.prototype.forEachGetter=function(t){this._rawModule.getters&&i(this._rawModule.getters,t)},o.prototype.forEachAction=function(t){this._rawModule.actions&&i(this._rawModule.actions,t)},o.prototype.forEachMutation=function(t){this._rawModule.mutations&&i(this._rawModule.mutations,t)},Object.defineProperties(o.prototype,a);var s=function(t){this.register([],t,!1)};s.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},s.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")}),"")},s.prototype.update=function(t){!function t(e,n,r){0;if(n.update(r),r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;t(e.concat(i),n.getChild(i),r.modules[i])}}([],this.root,t)},s.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var a=new o(e,n);0===t.length?this.root=a:this.get(t.slice(0,-1)).addChild(t[t.length-1],a);e.modules&&i(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},s.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var u;var l=function(t){var e=this;void 0===t&&(t={}),!u&&"undefined"!=typeof window&&window.Vue&&m(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new s(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u;var o=this,a=this.dispatch,l=this.commit;this.dispatch=function(t,e){return a.call(o,t,e)},this.commit=function(t,e,n){return l.call(o,t,e,n)},this.strict=i;var c=this._modules.root.state;p(this,c,[],this._modules.root),d(this,c),n.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:u.config.devtools)&&function(t){r&&(t._devtoolHook=r,r.emit("vuex:init",t),r.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){r.emit("vuex:mutation",t,e)})))}(this)},c={state:{configurable:!0}};function h(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function f(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;p(t,n,[],t._modules.root,!0),d(t,n,e)}function d(t,e,n){var r=t._vm;t.getters={};var o=t._wrappedGetters,a={};i(o,(function(e,n){a[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=u.config.silent;u.config.silent=!0,t._vm=new u({data:{$$state:e},computed:a}),u.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),u.nextTick((function(){return r.$destroy()})))}function p(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!o&&!i){var s=g(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit((function(){u.set(s,l,r.state)}))}var c=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=v(n,r,i),a=o.payload,s=o.options,u=o.type;return s&&s.root||(u=e+u),t.dispatch(u,a)},commit:r?t.commit:function(n,r,i){var o=v(n,r,i),a=o.payload,s=o.options,u=o.type;s&&s.root||(u=e+u),t.commit(u,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),n}(t,e)}},state:{get:function(){return g(t.state,n)}}}),i}(t,a,n);r.forEachMutation((function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){n.call(t,r.state,e)}))}(t,a+n,e,c)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push((function(e,i){var o,a=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,i);return(o=a)&&"function"==typeof o.then||(a=Promise.resolve(a)),t._devtoolHook?a.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):a}))}(t,r,i,c)})),r.forEachGetter((function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,a+n,e,c)})),r.forEachChild((function(r,o){p(t,e,n.concat(o),r,i)}))}function g(t,e){return e.length?e.reduce((function(t,e){return t[e]}),t):t}function v(t,e,n){var r;return null!==(r=t)&&"object"==typeof r&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function m(t){u&&t===u||
/**
* vuex v3.1.0
* (c) 2019 Evan You
* @license MIT
*/
function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(u=t)}c.state.get=function(){return this._vm._data.$$state},c.state.set=function(t){0},l.prototype.commit=function(t,e,n){var r=this,i=v(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),u=this._mutations[o];u&&(this._withCommit((function(){u.forEach((function(t){t(a)}))})),this._subscribers.forEach((function(t){return t(s,r.state)})))},l.prototype.dispatch=function(t,e){var n=this,r=v(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(t){0}return(s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o)).then((function(t){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(t){0}return t}))}},l.prototype.subscribe=function(t){return h(t,this._subscribers)},l.prototype.subscribeAction=function(t){return h("function"==typeof t?{before:t}:t,this._actionSubscribers)},l.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},l.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},l.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),p(this,this.state,t,this._modules.get(t),n.preserveState),d(this,this.state)},l.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=g(e.state,t.slice(0,-1));u.delete(n,t[t.length-1])})),f(this)},l.prototype.hotUpdate=function(t){this._modules.update(t),f(this,!0)},l.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(l.prototype,c);var y=S((function(t,e){var n={};return O(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=C(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),b=S((function(t,e){var n={};return O(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=C(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),_=S((function(t,e){var n={};return O(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||C(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),x=S((function(t,e){var n={};return O(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=C(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),w=function(t){return{mapState:y.bind(null,t),mapGetters:_.bind(null,t),mapMutations:b.bind(null,t),mapActions:x.bind(null,t)}};function O(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function S(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function C(t,e,n){return t._modulesNamespaceMap[n]}var E={Store:l,install:m,version:"3.1.0",mapState:y,mapMutations:b,mapGetters:_,mapActions:x,createNamespacedHelpers:w};e.default=E},function(t,e,n){t.exports=n(1883)},function(t,e,n){"use strict";var r=n(240),i=n(951),o=n(1884),a=n(957);function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var u=s(n(818));u.Axios=o,u.create=function(t){return s(a(u.defaults,t))},u.Cancel=n(958),u.CancelToken=n(1898),u.isCancel=n(956),u.all=function(t){return Promise.all(t)},u.spread=n(1899),u.isAxiosError=n(1900),t.exports=u,t.exports.default=u},function(t,e,n){"use strict";var r=n(240),i=n(952),o=n(1885),a=n(1886),s=n(957),u=n(1896),l=u.validators;function c(t){this.defaults=t,this.interceptors={request:new o,response:new o}}c.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&u.assertOptions(e,{silentJSONParsing:l.transitional(l.boolean,"1.0.0"),forcedJSONParsing:l.transitional(l.boolean,"1.0.0"),clarifyTimeoutError:l.transitional(l.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!r){var c=[a,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(o),i=Promise.resolve(t);c.length;)i=i.then(c.shift(),c.shift());return i}for(var h=t;n.length;){var f=n.shift(),d=n.shift();try{h=f(h)}catch(t){d(t);break}}try{i=a(h)}catch(t){return Promise.reject(t)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},c.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){c.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=c},function(t,e,n){"use strict";var r=n(240);function i(){this.handlers=[]}i.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,n){"use strict";var r=n(240),i=n(1887),o=n(956),a=n(818);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=i.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(240),i=n(818);t.exports=function(t,e,n){var o=this||i;return r.forEach(n,(function(n){t=n.call(o,t,e)})),t}},function(t,e,n){"use strict";var r=n(240);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(955);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";var r=n(240);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(1892),i=n(1893);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(240),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(240);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(1897),i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var o={},a=r.version.split(".");function s(t,e){for(var n=e?e.split("."):a,r=t.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}i.transitional=function(t,e,n){var i=e&&s(e);function a(t,e){return"[Axios v"+r.version+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,s){if(!1===t)throw new Error(a(r," has been removed in "+e));return i&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,s)}},t.exports={isOlderVersion:s,assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),i=r.length;i-- >0;){var o=r[i],a=e[o];if(a){var s=t[o],u=void 0===s||a(s,o,t);if(!0!==u)throw new TypeError("option "+o+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},function(t){t.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},function(t,e,n){"use strict";var r=n(958);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=45)}([function(t,e){t.exports=n(1902)},function(t,e){t.exports=n(349)},function(t,e){t.exports=n(310)},function(t,e){t.exports=n(409)},function(t,e){t.exports=n(820)},function(t,e){t.exports=n(216)},function(t,e){t.exports=n(612)},function(t,e){t.exports=n(613)},function(t,e){t.exports=n(822)},function(t,e){t.exports=n(962)},function(t,e){t.exports=n(963)},function(t,e){t.exports=n(961)},function(t,e){t.exports=n(819)},function(t,e){t.exports=n(1908)},function(t,e){t.exports=n(823)},function(t,e){t.exports=n(960)},function(t,e){t.exports=n(615)},function(t,e){t.exports=n(965)},function(t,e){t.exports=n(825)},function(t,e){t.exports=n(614)},function(t,e){t.exports=n(959)},function(t,e){t.exports=n(1910)},function(t,e){t.exports=n(1911)},function(t,e){t.exports=n(826)},function(t,e){t.exports=n(966)},function(t,e){t.exports=n(824)},function(t,e){t.exports=n(1912)},function(t,e){t.exports=n(827)},function(t,e){t.exports=n(1913)},function(t,e){t.exports=n(967)},function(t,e){t.exports=n(821)},function(t,e){t.exports=n(1914)},function(t,e){t.exports=n(1915)},function(t,e){t.exports=n(1916)},function(t,e){t.exports=n(828)},function(t,e){t.exports=n(964)},function(t,e){t.exports=n(1917)},function(t,e){t.exports=n(1918)},function(t,e){t.exports=n(1919)},function(t,e){t.exports=n(1924)},function(t,e){t.exports=n(1925)},function(t,e){t.exports=n(1958)},function(t,e){t.exports=n(1959)},function(t,e){t.exports=n(977)},function(t,e){t.exports=n(1960)},function(t,e,n){t.exports=n(46)},function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"el-pager",on:{click:t.onPagerClick}},[t.pageCount>0?n("li",{staticClass:"number",class:{active:1===t.currentPage,disabled:t.disabled}},[t._v("1")]):t._e(),t.showPrevMore?n("li",{staticClass:"el-icon more btn-quickprev",class:[t.quickprevIconClass,{disabled:t.disabled}],on:{mouseenter:function(e){t.onMouseenter("left")},mouseleave:function(e){t.quickprevIconClass="el-icon-more"}}}):t._e(),t._l(t.pagers,(function(e){return n("li",{key:e,staticClass:"number",class:{active:t.currentPage===e,disabled:t.disabled}},[t._v(t._s(e))])})),t.showNextMore?n("li",{staticClass:"el-icon more btn-quicknext",class:[t.quicknextIconClass,{disabled:t.disabled}],on:{mouseenter:function(e){t.onMouseenter("right")},mouseleave:function(e){t.quicknextIconClass="el-icon-more"}}}):t._e(),t.pageCount>1?n("li",{staticClass:"number",class:{active:t.currentPage===t.pageCount,disabled:t.disabled}},[t._v(t._s(t.pageCount))]):t._e()],2)};function i(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}r._withStripped=!0;var o=i({name:"ElPager",props:{currentPage:Number,pageCount:Number,pagerCount:Number,disabled:Boolean},watch:{showPrevMore:function(t){t||(this.quickprevIconClass="el-icon-more")},showNextMore:function(t){t||(this.quicknextIconClass="el-icon-more")}},methods:{onPagerClick:function(t){var e=t.target;if("UL"!==e.tagName&&!this.disabled){var n=Number(t.target.textContent),r=this.pageCount,i=this.currentPage,o=this.pagerCount-2;-1!==e.className.indexOf("more")&&(-1!==e.className.indexOf("quickprev")?n=i-o:-1!==e.className.indexOf("quicknext")&&(n=i+o)),isNaN(n)||(n<1&&(n=1),n>r&&(n=r)),n!==i&&this.$emit("change",n)}},onMouseenter:function(t){this.disabled||("left"===t?this.quickprevIconClass="el-icon-d-arrow-left":this.quicknextIconClass="el-icon-d-arrow-right")}},computed:{pagers:function(){var t=this.pagerCount,e=(t-1)/2,n=Number(this.currentPage),r=Number(this.pageCount),i=!1,o=!1;r>t&&(n>t-e&&(i=!0),n<r-e&&(o=!0));var a=[];if(i&&!o)for(var s=r-(t-2);s<r;s++)a.push(s);else if(!i&&o)for(var u=2;u<t;u++)a.push(u);else if(i&&o)for(var l=Math.floor(t/2)-1,c=n-l;c<=n+l;c++)a.push(c);else for(var h=2;h<r;h++)a.push(h);return this.showPrevMore=i,this.showNextMore=o,a}},data:function(){return{current:null,showPrevMore:!1,showNextMore:!1,quicknextIconClass:"el-icon-more",quickprevIconClass:"el-icon-more"}}},r,[],!1,null,null,null);o.options.__file="packages/pagination/src/pager.vue";var a=o.exports,s=n(36),u=n.n(s),l=n(37),c=n.n(l),h=n(8),f=n.n(h),d=n(4),p=n.n(d),g=n(2),v={name:"ElPagination",props:{pageSize:{type:Number,default:10},small:Boolean,total:Number,pageCount:Number,pagerCount:{type:Number,validator:function(t){return(0|t)===t&&t>4&&t<22&&t%2==1},default:7},currentPage:{type:Number,default:1},layout:{default:"prev, pager, next, jumper, ->, total"},pageSizes:{type:Array,default:function(){return[10,20,30,40,50,100]}},popperClass:String,prevText:String,nextText:String,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean},data:function(){return{internalCurrentPage:1,internalPageSize:0,lastEmittedPage:-1,userChangePageSize:!1}},render:function(t){var e=this.layout;if(!e)return null;if(this.hideOnSinglePage&&(!this.internalPageCount||1===this.internalPageCount))return null;var n=t("div",{class:["el-pagination",{"is-background":this.background,"el-pagination--small":this.small}]}),r={prev:t("prev"),jumper:t("jumper"),pager:t("pager",{attrs:{currentPage:this.internalCurrentPage,pageCount:this.internalPageCount,pagerCount:this.pagerCount,disabled:this.disabled},on:{change:this.handleCurrentChange}}),next:t("next"),sizes:t("sizes",{attrs:{pageSizes:this.pageSizes}}),slot:t("slot",[this.$slots.default?this.$slots.default:""]),total:t("total")},i=e.split(",").map((function(t){return t.trim()})),o=t("div",{class:"el-pagination__rightwrapper"}),a=!1;return n.children=n.children||[],o.children=o.children||[],i.forEach((function(t){"->"!==t?a?o.children.push(r[t]):n.children.push(r[t]):a=!0})),a&&n.children.unshift(o),n},components:{Prev:{render:function(t){return t("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage<=1},class:"btn-prev",on:{click:this.$parent.prev}},[this.$parent.prevText?t("span",[this.$parent.prevText]):t("i",{class:"el-icon el-icon-arrow-left"})])}},Next:{render:function(t){return t("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage===this.$parent.internalPageCount||0===this.$parent.internalPageCount},class:"btn-next",on:{click:this.$parent.next}},[this.$parent.nextText?t("span",[this.$parent.nextText]):t("i",{class:"el-icon el-icon-arrow-right"})])}},Sizes:{mixins:[p.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(t,e){Object(g.valueEquals)(t,e)||Array.isArray(t)&&(this.$parent.internalPageSize=t.indexOf(this.$parent.pageSize)>-1?this.$parent.pageSize:this.pageSizes[0])}}},render:function(t){var e=this;return t("span",{class:"el-pagination__sizes"},[t("el-select",{attrs:{value:this.$parent.internalPageSize,popperClass:this.$parent.popperClass||"",size:"mini",disabled:this.$parent.disabled},on:{input:this.handleChange}},[this.pageSizes.map((function(n){return t("el-option",{attrs:{value:n,label:n+e.t("el.pagination.pagesize")}})}))])])},components:{ElSelect:u.a,ElOption:c.a},methods:{handleChange:function(t){t!==this.$parent.internalPageSize&&(this.$parent.internalPageSize=t=parseInt(t,10),this.$parent.userChangePageSize=!0,this.$parent.$emit("update:pageSize",t),this.$parent.$emit("size-change",t))}}},Jumper:{mixins:[p.a],components:{ElInput:f.a},data:function(){return{userInput:null}},watch:{"$parent.internalCurrentPage":function(){this.userInput=null}},methods:{handleKeyup:function(t){var e=t.keyCode,n=t.target;13===e&&this.handleChange(n.value)},handleInput:function(t){this.userInput=t},handleChange:function(t){this.$parent.internalCurrentPage=this.$parent.getValidCurrentPage(t),this.$parent.emitChange(),this.userInput=null}},render:function(t){return t("span",{class:"el-pagination__jump"},[this.t("el.pagination.goto"),t("el-input",{class:"el-pagination__editor is-in-pagination",attrs:{min:1,max:this.$parent.internalPageCount,value:null!==this.userInput?this.userInput:this.$parent.internalCurrentPage,type:"number",disabled:this.$parent.disabled},nativeOn:{keyup:this.handleKeyup},on:{input:this.handleInput,change:this.handleChange}}),this.t("el.pagination.pageClassifier")])}},Total:{mixins:[p.a],render:function(t){return"number"==typeof this.$parent.total?t("span",{class:"el-pagination__total"},[this.t("el.pagination.total",{total:this.$parent.total})]):""}},Pager:a},methods:{handleCurrentChange:function(t){this.internalCurrentPage=this.getValidCurrentPage(t),this.userChangePageSize=!0,this.emitChange()},prev:function(){if(!this.disabled){var t=this.internalCurrentPage-1;this.internalCurrentPage=this.getValidCurrentPage(t),this.$emit("prev-click",this.internalCurrentPage),this.emitChange()}},next:function(){if(!this.disabled){var t=this.internalCurrentPage+1;this.internalCurrentPage=this.getValidCurrentPage(t),this.$emit("next-click",this.internalCurrentPage),this.emitChange()}},getValidCurrentPage:function(t){t=parseInt(t,10);var e=void 0;return"number"==typeof this.internalPageCount?t<1?e=1:t>this.internalPageCount&&(e=this.internalPageCount):(isNaN(t)||t<1)&&(e=1),(void 0===e&&isNaN(t)||0===e)&&(e=1),void 0===e?t:e},emitChange:function(){var t=this;this.$nextTick((function(){(t.internalCurrentPage!==t.lastEmittedPage||t.userChangePageSize)&&(t.$emit("current-change",t.internalCurrentPage),t.lastEmittedPage=t.internalCurrentPage,t.userChangePageSize=!1)}))}},computed:{internalPageCount:function(){return"number"==typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):"number"==typeof this.pageCount?Math.max(1,this.pageCount):null}},watch:{currentPage:{immediate:!0,handler:function(t){this.internalCurrentPage=this.getValidCurrentPage(t)}},pageSize:{immediate:!0,handler:function(t){this.internalPageSize=isNaN(t)?10:t}},internalCurrentPage:{immediate:!0,handler:function(t){this.$emit("update:currentPage",t),this.lastEmittedPage=-1}},internalPageCount:function(t){var e=this.internalCurrentPage;t>0&&0===e?this.internalCurrentPage=1:e>t&&(this.internalCurrentPage=0===t?1:t,this.userChangePageSize&&this.emitChange()),this.userChangePageSize=!1}},install:function(t){t.component(v.name,v)}},m=v,y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":t.afterEnter,"after-leave":t.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[n("div",{key:t.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":t.fullscreen,"el-dialog--center":t.center},t.customClass],style:t.style,attrs:{role:"dialog","aria-modal":"true","aria-label":t.title||"dialog"}},[n("div",{staticClass:"el-dialog__header"},[t._t("title",[n("span",{staticClass:"el-dialog__title"},[t._v(t._s(t.title))])]),t.showClose?n("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:t.handleClose}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):t._e()],2),t.rendered?n("div",{staticClass:"el-dialog__body"},[t._t("default")],2):t._e(),t.$slots.footer?n("div",{staticClass:"el-dialog__footer"},[t._t("footer")],2):t._e()])])])};y._withStripped=!0;var b=n(11),_=n.n(b),x=n(9),w=n.n(x),O=n(3),S=n.n(O),C=i({name:"ElDialog",mixins:[_.a,S.a,w.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(t){var e=this;t?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick((function(){e.$refs.dialog.scrollTop=0})),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick((function(){e.key++})))}},computed:{style:function(){var t={};return this.fullscreen||(t.marginTop=this.top,this.width&&(t.width=this.width)),t}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(t){!1!==t&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},y,[],!1,null,null,null);C.options.__file="packages/dialog/src/component.vue";var E=C.exports;E.install=function(t){t.component(E.name,E)};var T=E,A=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.close,expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox",role:"combobox","aria-expanded":t.suggestionVisible,"aria-owns":t.id}},[n("el-input",t._b({ref:"input",on:{input:t.handleInput,change:t.handleChange,focus:t.handleFocus,blur:t.handleBlur,clear:t.handleClear},nativeOn:{keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.preventDefault(),t.highlight(t.highlightedIndex-1)},function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.preventDefault(),t.highlight(t.highlightedIndex+1)},function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleKeyEnter(e)},function(e){return!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t.close(e)}]}},"el-input",[t.$props,t.$attrs],!1),[t.$slots.prepend?n("template",{slot:"prepend"},[t._t("prepend")],2):t._e(),t.$slots.append?n("template",{slot:"append"},[t._t("append")],2):t._e(),t.$slots.prefix?n("template",{slot:"prefix"},[t._t("prefix")],2):t._e(),t.$slots.suffix?n("template",{slot:"suffix"},[t._t("suffix")],2):t._e()],2),n("el-autocomplete-suggestions",{ref:"suggestions",class:[t.popperClass?t.popperClass:""],attrs:{"visible-arrow":"","popper-options":t.popperOptions,"append-to-body":t.popperAppendToBody,placement:t.placement,id:t.id}},t._l(t.suggestions,(function(e,r){return n("li",{key:r,class:{highlighted:t.highlightedIndex===r},attrs:{id:t.id+"-item-"+r,role:"option","aria-selected":t.highlightedIndex===r},on:{click:function(n){t.select(e)}}},[t._t("default",[t._v("\n "+t._s(e[t.valueKey])+"\n ")],{item:e})],2)})),0)],1)};A._withStripped=!0;var M=n(16),I=n.n(M),j=n(10),k=n.n(j),P=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":t.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{"is-loading":!t.parent.hideLoading&&t.parent.loading},style:{width:t.dropdownWidth},attrs:{role:"region"}},[n("el-scrollbar",{attrs:{tag:"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[!t.parent.hideLoading&&t.parent.loading?n("li",[n("i",{staticClass:"el-icon-loading"})]):t._t("default")],2)],1)])};P._withStripped=!0;var L=n(6),R=n.n(L),D=n(18),N=n.n(D),B=i({components:{ElScrollbar:N.a},mixins:[R.a,S.a],componentName:"ElAutocompleteSuggestions",data:function(){return{parent:this.$parent,dropdownWidth:""}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(t){this.dispatch("ElAutocomplete","item-click",t)}},updated:function(){var t=this;this.$nextTick((function(e){t.popperJS&&t.updatePopper()}))},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input||this.$parent.$refs.input.$refs.textarea,this.referenceList=this.$el.querySelector(".el-autocomplete-suggestion__list"),this.referenceList.setAttribute("role","listbox"),this.referenceList.setAttribute("id",this.id)},created:function(){var t=this;this.$on("visible",(function(e,n){t.dropdownWidth=n+"px",t.showPopper=e}))}},P,[],!1,null,null,null);B.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var F=B.exports,z=n(23),V=n.n(z),U=i({name:"ElAutocomplete",mixins:[S.a,V()("input"),w.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:f.a,ElAutocompleteSuggestions:F},directives:{Clickoutside:k.a},props:{valueKey:{type:String,default:"value"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var t=this.suggestions;return(Array.isArray(t)&&t.length>0||this.loading)&&this.activated},id:function(){return"el-autocomplete-"+Object(g.generateId)()}},watch:{suggestionVisible:function(t){var e=this.getInput();e&&this.broadcast("ElAutocompleteSuggestions","visible",[t,e.offsetWidth])}},methods:{getMigratingConfig:function(){return{props:{"custom-item":"custom-item is removed, use scoped slot instead.",props:"props is removed, use value-key instead."}}},getData:function(t){var e=this;this.suggestionDisabled||(this.loading=!0,this.fetchSuggestions(t,(function(t){e.loading=!1,e.suggestionDisabled||(Array.isArray(t)?(e.suggestions=t,e.highlightedIndex=e.highlightFirstItem?0:-1):console.error("[Element Error][Autocomplete]autocomplete suggestions must be an array"))})))},handleInput:function(t){if(this.$emit("input",t),this.suggestionDisabled=!1,!this.triggerOnFocus&&!t)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(t)},handleChange:function(t){this.$emit("change",t)},handleFocus:function(t){this.activated=!0,this.$emit("focus",t),this.triggerOnFocus&&this.debouncedGetData(this.value)},handleBlur:function(t){this.$emit("blur",t)},handleClear:function(){this.activated=!1,this.$emit("clear")},close:function(t){this.activated=!1},handleKeyEnter:function(t){var e=this;this.suggestionVisible&&this.highlightedIndex>=0&&this.highlightedIndex<this.suggestions.length?(t.preventDefault(),this.select(this.suggestions[this.highlightedIndex])):this.selectWhenUnmatched&&(this.$emit("select",{value:this.value}),this.$nextTick((function(t){e.suggestions=[],e.highlightedIndex=-1})))},select:function(t){var e=this;this.$emit("input",t[this.valueKey]),this.$emit("select",t),this.$nextTick((function(t){e.suggestions=[],e.highlightedIndex=-1}))},highlight:function(t){if(this.suggestionVisible&&!this.loading)if(t<0)this.highlightedIndex=-1;else{t>=this.suggestions.length&&(t=this.suggestions.length-1);var e=this.$refs.suggestions.$el.querySelector(".el-autocomplete-suggestion__wrap"),n=e.querySelectorAll(".el-autocomplete-suggestion__list li")[t],r=e.scrollTop,i=n.offsetTop;i+n.scrollHeight>r+e.clientHeight&&(e.scrollTop+=n.scrollHeight),i<r&&(e.scrollTop-=n.scrollHeight),this.highlightedIndex=t,this.getInput().setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)}},getInput:function(){return this.$refs.input.getInput()}},mounted:function(){var t=this;this.debouncedGetData=I()(this.debounce,this.getData),this.$on("item-click",(function(e){t.select(e)}));var e=this.getInput();e.setAttribute("role","textbox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-controls","id"),e.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)},beforeDestroy:function(){this.$refs.suggestions.$destroy()}},A,[],!1,null,null,null);U.options.__file="packages/autocomplete/src/autocomplete.vue";var G=U.exports;G.install=function(t){t.component(G.name,G)};var H=G,W=n(13),Y=n.n(W),X=n(28),$=n.n(X),q=i({name:"ElDropdown",componentName:"ElDropdown",mixins:[S.a,w.a],directives:{Clickoutside:k.a},components:{ElButton:Y.a,ElButtonGroup:$.a},provide:function(){return{dropdown:this}},props:{trigger:{type:String,default:"hover"},type:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},placement:{type:String,default:"bottom-end"},visibleArrow:{default:!0},showTimeout:{type:Number,default:250},hideTimeout:{type:Number,default:150},tabindex:{type:Number,default:0},disabled:{type:Boolean,default:!1}},data:function(){return{timeout:null,visible:!1,triggerElm:null,menuItems:null,menuItemsArray:null,dropdownElm:null,focusing:!1,listId:"dropdown-menu-"+Object(g.generateId)()}},computed:{dropdownSize:function(){return this.size||(this.$ELEMENT||{}).size}},mounted:function(){this.$on("menu-item-click",this.handleMenuItemClick)},watch:{visible:function(t){this.broadcast("ElDropdownMenu","visible",t),this.$emit("visible-change",t)},focusing:function(t){var e=this.$el.querySelector(".el-dropdown-selfdefine");e&&(t?e.className+=" focusing":e.className=e.className.replace("focusing",""))}},methods:{getMigratingConfig:function(){return{props:{"menu-align":"menu-align is renamed to placement."}}},show:function(){var t=this;this.disabled||(clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.visible=!0}),"click"===this.trigger?0:this.showTimeout))},hide:function(){var t=this;this.disabled||(this.removeTabindex(),this.tabindex>=0&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.visible=!1}),"click"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(t){var e=t.keyCode;[38,40].indexOf(e)>-1?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),t.preventDefault(),t.stopPropagation()):13===e?this.handleClick():[9,27].indexOf(e)>-1&&this.hide()},handleItemKeyDown:function(t){var e=t.keyCode,n=t.target,r=this.menuItemsArray.indexOf(n),i=this.menuItemsArray.length-1,o=void 0;[38,40].indexOf(e)>-1?(o=38===e?0!==r?r-1:0:r<i?r+1:i,this.removeTabindex(),this.resetTabindex(this.menuItems[o]),this.menuItems[o].focus(),t.preventDefault(),t.stopPropagation()):13===e?(this.triggerElmFocus(),n.click(),this.hideOnClick&&(this.visible=!1)):[9,27].indexOf(e)>-1&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(t){this.removeTabindex(),t.setAttribute("tabindex","0")},removeTabindex:function(){this.triggerElm.setAttribute("tabindex","-1"),this.menuItemsArray.forEach((function(t){t.setAttribute("tabindex","-1")}))},initAria:function(){this.dropdownElm.setAttribute("id",this.listId),this.triggerElm.setAttribute("aria-haspopup","list"),this.triggerElm.setAttribute("aria-controls",this.listId),this.splitButton||(this.triggerElm.setAttribute("role","button"),this.triggerElm.setAttribute("tabindex",this.tabindex),this.triggerElm.setAttribute("class",(this.triggerElm.getAttribute("class")||"")+" el-dropdown-selfdefine"))},initEvent:function(){var t=this,e=this.trigger,n=this.show,r=this.hide,i=this.handleClick,o=this.splitButton,a=this.handleTriggerKeyDown,s=this.handleItemKeyDown;this.triggerElm=o?this.$refs.trigger.$el:this.$slots.default[0].elm;var u=this.dropdownElm;this.triggerElm.addEventListener("keydown",a),u.addEventListener("keydown",s,!0),o||(this.triggerElm.addEventListener("focus",(function(){t.focusing=!0})),this.triggerElm.addEventListener("blur",(function(){t.focusing=!1})),this.triggerElm.addEventListener("click",(function(){t.focusing=!1}))),"hover"===e?(this.triggerElm.addEventListener("mouseenter",n),this.triggerElm.addEventListener("mouseleave",r),u.addEventListener("mouseenter",n),u.addEventListener("mouseleave",r)):"click"===e&&this.triggerElm.addEventListener("click",i)},handleMenuItemClick:function(t,e){this.hideOnClick&&(this.visible=!1),this.$emit("command",t,e)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll("[tabindex='-1']"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(t){var e=this,n=this.hide,r=this.splitButton,i=this.type,o=this.dropdownSize,a=this.disabled,s=null;if(r)s=t("el-button-group",[t("el-button",{attrs:{type:i,size:o,disabled:a},nativeOn:{click:function(t){e.$emit("click",t),n()}}},[this.$slots.default]),t("el-button",{ref:"trigger",attrs:{type:i,size:o,disabled:a},class:"el-dropdown__caret-button"},[t("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]);else{var u=(s=this.$slots.default)[0].data||{},l=u.attrs,c=void 0===l?{}:l;a&&!c.disabled&&(c.disabled=!0,u.attrs=c)}var h=a?null:this.$slots.dropdown;return t("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}],attrs:{"aria-disabled":a}},[s,h])}},void 0,void 0,!1,null,null,null);q.options.__file="packages/dropdown/src/dropdown.vue";var Z=q.exports;Z.install=function(t){t.component(Z.name,Z)};var K=Z,Q=function(){var t=this.$createElement,e=this._self._c||t;return e("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":this.doDestroy}},[e("ul",{directives:[{name:"show",rawName:"v-show",value:this.showPopper,expression:"showPopper"}],staticClass:"el-dropdown-menu el-popper",class:[this.size&&"el-dropdown-menu--"+this.size]},[this._t("default")],2)])};Q._withStripped=!0;var J=i({name:"ElDropdownMenu",componentName:"ElDropdownMenu",mixins:[R.a],props:{visibleArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:0}},data:function(){return{size:this.dropdown.dropdownSize}},inject:["dropdown"],created:function(){var t=this;this.$on("updatePopper",(function(){t.showPopper&&t.updatePopper()})),this.$on("visible",(function(e){t.showPopper=e}))},mounted:function(){this.dropdown.popperElm=this.popperElm=this.$el,this.referenceElm=this.dropdown.$el,this.dropdown.initDomOperation()},watch:{"dropdown.placement":{immediate:!0,handler:function(t){this.currentPlacement=t}}}},Q,[],!1,null,null,null);J.options.__file="packages/dropdown/src/dropdown-menu.vue";var tt=J.exports;tt.install=function(t){t.component(tt.name,tt)};var et=tt,nt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":t.disabled,"el-dropdown-menu__item--divided":t.divided},attrs:{"aria-disabled":t.disabled,tabindex:t.disabled?null:-1},on:{click:t.handleClick}},[t.icon?n("i",{class:t.icon}):t._e(),t._t("default")],2)};nt._withStripped=!0;var rt=i({name:"ElDropdownItem",mixins:[S.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(t){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},nt,[],!1,null,null,null);rt.options.__file="packages/dropdown/src/dropdown-item.vue";var it=rt.exports;it.install=function(t){t.component(it.name,it)};var ot=it,at=at||{};at.Utils=at.Utils||{},at.Utils.focusFirstDescendant=function(t){for(var e=0;e<t.childNodes.length;e++){var n=t.childNodes[e];if(at.Utils.attemptFocus(n)||at.Utils.focusFirstDescendant(n))return!0}return!1},at.Utils.focusLastDescendant=function(t){for(var e=t.childNodes.length-1;e>=0;e--){var n=t.childNodes[e];if(at.Utils.attemptFocus(n)||at.Utils.focusLastDescendant(n))return!0}return!1},at.Utils.attemptFocus=function(t){if(!at.Utils.isFocusable(t))return!1;at.Utils.IgnoreUtilFocusChanges=!0;try{t.focus()}catch(t){}return at.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===t},at.Utils.isFocusable=function(t){if(t.tabIndex>0||0===t.tabIndex&&null!==t.getAttribute("tabIndex"))return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!==t.rel;case"INPUT":return"hidden"!==t.type&&"file"!==t.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},at.Utils.triggerEvent=function(t,e){var n=void 0;n=/^mouse|click/.test(e)?"MouseEvents":/^key/.test(e)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return r.initEvent.apply(r,[e].concat(o)),t.dispatchEvent?t.dispatchEvent(r):t.fireEvent("on"+e,r),t},at.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27};var st=at.Utils,ut=function(t,e){this.domNode=e,this.parent=t,this.subMenuItems=[],this.subIndex=0,this.init()};ut.prototype.init=function(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()},ut.prototype.gotoSubIndex=function(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t},ut.prototype.addListeners=function(){var t=this,e=st.keys,n=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(function(r){r.addEventListener("keydown",(function(r){var i=!1;switch(r.keyCode){case e.down:t.gotoSubIndex(t.subIndex+1),i=!0;break;case e.up:t.gotoSubIndex(t.subIndex-1),i=!0;break;case e.tab:st.triggerEvent(n,"mouseleave");break;case e.enter:case e.space:i=!0,r.currentTarget.click()}return i&&(r.preventDefault(),r.stopPropagation()),!1}))}))};var lt=ut,ct=function(t){this.domNode=t,this.submenu=null,this.init()};ct.prototype.init=function(){this.domNode.setAttribute("tabindex","0");var t=this.domNode.querySelector(".el-menu");t&&(this.submenu=new lt(this,t)),this.addListeners()},ct.prototype.addListeners=function(){var t=this,e=st.keys;this.domNode.addEventListener("keydown",(function(n){var r=!1;switch(n.keyCode){case e.down:st.triggerEvent(n.currentTarget,"mouseenter"),t.submenu&&t.submenu.gotoSubIndex(0),r=!0;break;case e.up:st.triggerEvent(n.currentTarget,"mouseenter"),t.submenu&&t.submenu.gotoSubIndex(t.submenu.subMenuItems.length-1),r=!0;break;case e.tab:st.triggerEvent(n.currentTarget,"mouseleave");break;case e.enter:case e.space:r=!0,n.currentTarget.click()}r&&n.preventDefault()}))};var ht=ct,ft=function(t){this.domNode=t,this.init()};ft.prototype.init=function(){var t=this.domNode.childNodes;[].filter.call(t,(function(t){return 1===t.nodeType})).forEach((function(t){new ht(t)}))};var dt=ft,pt=n(1),gt=i({name:"ElMenu",render:function(t){var e=t("ul",{attrs:{role:"menubar"},key:+this.collapse,style:{backgroundColor:this.backgroundColor||""},class:{"el-menu--horizontal":"horizontal"===this.mode,"el-menu--collapse":this.collapse,"el-menu":!0}},[this.$slots.default]);return this.collapseTransition?t("el-menu-collapse-transition",[e]):e},componentName:"ElMenu",mixins:[S.a,w.a],provide:function(){return{rootMenu:this}},components:{"el-menu-collapse-transition":{functional:!0,render:function(t,e){return t("transition",{props:{mode:"out-in"},on:{beforeEnter:function(t){t.style.opacity=.2},enter:function(t){Object(pt.addClass)(t,"el-opacity-transition"),t.style.opacity=1},afterEnter:function(t){Object(pt.removeClass)(t,"el-opacity-transition"),t.style.opacity=""},beforeLeave:function(t){t.dataset||(t.dataset={}),Object(pt.hasClass)(t,"el-menu--collapse")?(Object(pt.removeClass)(t,"el-menu--collapse"),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth,Object(pt.addClass)(t,"el-menu--collapse")):(Object(pt.addClass)(t,"el-menu--collapse"),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth,Object(pt.removeClass)(t,"el-menu--collapse")),t.style.width=t.scrollWidth+"px",t.style.overflow="hidden"},leave:function(t){Object(pt.addClass)(t,"horizontal-collapse-transition"),t.style.width=t.dataset.scrollWidth+"px"}}},e.children)}}},props:{mode:{type:String,default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:Array,uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0}},data:function(){return{activeIndex:this.defaultActive,openedMenus:this.defaultOpeneds&&!this.collapse?this.defaultOpeneds.slice(0):[],items:{},submenus:{}}},computed:{hoverBackground:function(){return this.backgroundColor?this.mixColor(this.backgroundColor,.2):""},isMenuPopup:function(){return"horizontal"===this.mode||"vertical"===this.mode&&this.collapse}},watch:{defaultActive:function(t){this.items[t]||(this.activeIndex=null),this.updateActiveIndex(t)},defaultOpeneds:function(t){this.collapse||(this.openedMenus=t)},collapse:function(t){t&&(this.openedMenus=[]),this.broadcast("ElSubmenu","toggle-collapse",t)}},methods:{updateActiveIndex:function(t){var e=this.items[t]||this.items[this.activeIndex]||this.items[this.defaultActive];e?(this.activeIndex=e.index,this.initOpenedMenu()):this.activeIndex=null},getMigratingConfig:function(){return{props:{theme:"theme is removed."}}},getColorChannels:function(t){if(t=t.replace("#",""),/^[0-9a-fA-F]{3}$/.test(t)){t=t.split("");for(var e=2;e>=0;e--)t.splice(e,0,t[e]);t=t.join("")}return/^[0-9a-fA-F]{6}$/.test(t)?{red:parseInt(t.slice(0,2),16),green:parseInt(t.slice(2,4),16),blue:parseInt(t.slice(4,6),16)}:{red:255,green:255,blue:255}},mixColor:function(t,e){var n=this.getColorChannels(t),r=n.red,i=n.green,o=n.blue;return e>0?(r*=1-e,i*=1-e,o*=1-e):(r+=(255-r)*e,i+=(255-i)*e,o+=(255-o)*e),"rgb("+Math.round(r)+", "+Math.round(i)+", "+Math.round(o)+")"},addItem:function(t){this.$set(this.items,t.index,t)},removeItem:function(t){delete this.items[t.index]},addSubmenu:function(t){this.$set(this.submenus,t.index,t)},removeSubmenu:function(t){delete this.submenus[t.index]},openMenu:function(t,e){var n=this.openedMenus;-1===n.indexOf(t)&&(this.uniqueOpened&&(this.openedMenus=n.filter((function(t){return-1!==e.indexOf(t)}))),this.openedMenus.push(t))},closeMenu:function(t){var e=this.openedMenus.indexOf(t);-1!==e&&this.openedMenus.splice(e,1)},handleSubmenuClick:function(t){var e=t.index,n=t.indexPath;-1!==this.openedMenus.indexOf(e)?(this.closeMenu(e),this.$emit("close",e,n)):(this.openMenu(e,n),this.$emit("open",e,n))},handleItemClick:function(t){var e=this,n=t.index,r=t.indexPath,i=this.activeIndex,o=null!==t.index;o&&(this.activeIndex=t.index),this.$emit("select",n,r,t),("horizontal"===this.mode||this.collapse)&&(this.openedMenus=[]),this.router&&o&&this.routeToItem(t,(function(t){if(e.activeIndex=i,t){if("NavigationDuplicated"===t.name)return;console.error(t)}}))},initOpenedMenu:function(){var t=this,e=this.activeIndex,n=this.items[e];n&&"horizontal"!==this.mode&&!this.collapse&&n.indexPath.forEach((function(e){var n=t.submenus[e];n&&t.openMenu(e,n.indexPath)}))},routeToItem:function(t,e){var n=t.route||t.index;try{this.$router.push(n,(function(){}),e)}catch(t){console.error(t)}},open:function(t){var e=this,n=this.submenus[t.toString()].indexPath;n.forEach((function(t){return e.openMenu(t,n)}))},close:function(t){this.closeMenu(t)}},mounted:function(){this.initOpenedMenu(),this.$on("item-click",this.handleItemClick),this.$on("submenu-click",this.handleSubmenuClick),"horizontal"===this.mode&&new dt(this.$el),this.$watch("items",this.updateActiveIndex)}},void 0,void 0,!1,null,null,null);gt.options.__file="packages/menu/src/menu.vue";var vt=gt.exports;vt.install=function(t){t.component(vt.name,vt)};var mt=vt,yt=n(21),bt=n.n(yt),_t={inject:["rootMenu"],computed:{indexPath:function(){for(var t=[this.index],e=this.$parent;"ElMenu"!==e.$options.componentName;)e.index&&t.unshift(e.index),e=e.$parent;return t},parentMenu:function(){for(var t=this.$parent;t&&-1===["ElMenu","ElSubmenu"].indexOf(t.$options.componentName);)t=t.$parent;return t},paddingStyle:function(){if("vertical"!==this.rootMenu.mode)return{};var t=20,e=this.$parent;if(this.rootMenu.collapse)t=20;else for(;e&&"ElMenu"!==e.$options.componentName;)"ElSubmenu"===e.$options.componentName&&(t+=20),e=e.$parent;return{paddingLeft:t+"px"}}}},xt={props:{transformOrigin:{type:[Boolean,String],default:!1},offset:R.a.props.offset,boundariesPadding:R.a.props.boundariesPadding,popperOptions:R.a.props.popperOptions},data:R.a.data,methods:R.a.methods,beforeDestroy:R.a.beforeDestroy,deactivated:R.a.deactivated},wt=i({name:"ElSubmenu",componentName:"ElSubmenu",mixins:[_t,S.a,xt],components:{ElCollapseTransition:bt.a},props:{index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0}},data:function(){return{popperJS:null,timeout:null,items:{},submenus:{},mouseInChild:!1}},watch:{opened:function(t){var e=this;this.isMenuPopup&&this.$nextTick((function(t){e.updatePopper()}))}},computed:{appendToBody:function(){return void 0===this.popperAppendToBody?this.isFirstLevel:this.popperAppendToBody},menuTransitionName:function(){return this.rootMenu.collapse?"el-zoom-in-left":"el-zoom-in-top"},opened:function(){return this.rootMenu.openedMenus.indexOf(this.index)>-1},active:function(){var t=!1,e=this.submenus,n=this.items;return Object.keys(n).forEach((function(e){n[e].active&&(t=!0)})),Object.keys(e).forEach((function(n){e[n].active&&(t=!0)})),t},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},isMenuPopup:function(){return this.rootMenu.isMenuPopup},titleStyle:function(){return"horizontal"!==this.mode?{color:this.textColor}:{borderBottomColor:this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent",color:this.active?this.activeTextColor:this.textColor}},isFirstLevel:function(){for(var t=!0,e=this.$parent;e&&e!==this.rootMenu;){if(["ElSubmenu","ElMenuItemGroup"].indexOf(e.$options.componentName)>-1){t=!1;break}e=e.$parent}return t}},methods:{handleCollapseToggle:function(t){t?this.initPopper():this.doDestroy()},addItem:function(t){this.$set(this.items,t.index,t)},removeItem:function(t){delete this.items[t.index]},addSubmenu:function(t){this.$set(this.submenus,t.index,t)},removeSubmenu:function(t){delete this.submenus[t.index]},handleClick:function(){var t=this.rootMenu,e=this.disabled;"hover"===t.menuTrigger&&"horizontal"===t.mode||t.collapse&&"vertical"===t.mode||e||this.dispatch("ElMenu","submenu-click",this)},handleMouseenter:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.showTimeout;if("ActiveXObject"in window||"focus"!==t.type||t.relatedTarget){var r=this.rootMenu,i=this.disabled;"click"===r.menuTrigger&&"horizontal"===r.mode||!r.collapse&&"vertical"===r.mode||i||(this.dispatch("ElSubmenu","mouse-enter-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.rootMenu.openMenu(e.index,e.indexPath)}),n),this.appendToBody&&this.$parent.$el.dispatchEvent(new MouseEvent("mouseenter")))}},handleMouseleave:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.rootMenu;"click"===n.menuTrigger&&"horizontal"===n.mode||!n.collapse&&"vertical"===n.mode||(this.dispatch("ElSubmenu","mouse-leave-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){!t.mouseInChild&&t.rootMenu.closeMenu(t.index)}),this.hideTimeout),this.appendToBody&&e&&"ElSubmenu"===this.$parent.$options.name&&this.$parent.handleMouseleave(!0))},handleTitleMouseenter:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var t=this.$refs["submenu-title"];t&&(t.style.backgroundColor=this.rootMenu.hoverBackground)}},handleTitleMouseleave:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var t=this.$refs["submenu-title"];t&&(t.style.backgroundColor=this.rootMenu.backgroundColor||"")}},updatePlacement:function(){this.currentPlacement="horizontal"===this.mode&&this.isFirstLevel?"bottom-start":"right-start"},initPopper:function(){this.referenceElm=this.$el,this.popperElm=this.$refs.menu,this.updatePlacement()}},created:function(){var t=this;this.$on("toggle-collapse",this.handleCollapseToggle),this.$on("mouse-enter-child",(function(){t.mouseInChild=!0,clearTimeout(t.timeout)})),this.$on("mouse-leave-child",(function(){t.mouseInChild=!1,clearTimeout(t.timeout)}))},mounted:function(){this.parentMenu.addSubmenu(this),this.rootMenu.addSubmenu(this),this.initPopper()},beforeDestroy:function(){this.parentMenu.removeSubmenu(this),this.rootMenu.removeSubmenu(this)},render:function(t){var e=this,n=this.active,r=this.opened,i=this.paddingStyle,o=this.titleStyle,a=this.backgroundColor,s=this.rootMenu,u=this.currentPlacement,l=this.menuTransitionName,c=this.mode,h=this.disabled,f=this.popperClass,d=this.$slots,p=this.isFirstLevel,g=t("transition",{attrs:{name:l}},[t("div",{ref:"menu",directives:[{name:"show",value:r}],class:["el-menu--"+c,f],on:{mouseenter:function(t){return e.handleMouseenter(t,100)},mouseleave:function(){return e.handleMouseleave(!0)},focus:function(t){return e.handleMouseenter(t,100)}}},[t("ul",{attrs:{role:"menu"},class:["el-menu el-menu--popup","el-menu--popup-"+u],style:{backgroundColor:s.backgroundColor||""}},[d.default])])]),v=t("el-collapse-transition",[t("ul",{attrs:{role:"menu"},class:"el-menu el-menu--inline",directives:[{name:"show",value:r}],style:{backgroundColor:s.backgroundColor||""}},[d.default])]),m="horizontal"===s.mode&&p||"vertical"===s.mode&&!s.collapse?"el-icon-arrow-down":"el-icon-arrow-right";return t("li",{class:{"el-submenu":!0,"is-active":n,"is-opened":r,"is-disabled":h},attrs:{role:"menuitem","aria-haspopup":"true","aria-expanded":r},on:{mouseenter:this.handleMouseenter,mouseleave:function(){return e.handleMouseleave(!1)},focus:this.handleMouseenter}},[t("div",{class:"el-submenu__title",ref:"submenu-title",on:{click:this.handleClick,mouseenter:this.handleTitleMouseenter,mouseleave:this.handleTitleMouseleave},style:[i,o,{backgroundColor:a}]},[d.title,t("i",{class:["el-submenu__icon-arrow",m]})]),this.isMenuPopup?g:v])}},void 0,void 0,!1,null,null,null);wt.options.__file="packages/menu/src/submenu.vue";var Ot=wt.exports;Ot.install=function(t){t.component(Ot.name,Ot)};var St=Ot,Ct=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"el-menu-item",class:{"is-active":t.active,"is-disabled":t.disabled},style:[t.paddingStyle,t.itemStyle,{backgroundColor:t.backgroundColor}],attrs:{role:"menuitem",tabindex:"-1"},on:{click:t.handleClick,mouseenter:t.onMouseEnter,focus:t.onMouseEnter,blur:t.onMouseLeave,mouseleave:t.onMouseLeave}},["ElMenu"===t.parentMenu.$options.componentName&&t.rootMenu.collapse&&t.$slots.title?n("el-tooltip",{attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._t("title")],2),n("div",{staticStyle:{position:"absolute",left:"0",top:"0",height:"100%",width:"100%",display:"inline-block","box-sizing":"border-box",padding:"0 20px"}},[t._t("default")],2)]):[t._t("default"),t._t("title")]],2)};Ct._withStripped=!0;var Et=n(26),Tt=n.n(Et),At=i({name:"ElMenuItem",componentName:"ElMenuItem",mixins:[_t,S.a],components:{ElTooltip:Tt.a},props:{index:{default:null,validator:function(t){return"string"==typeof t||null===t}},route:[String,Object],disabled:Boolean},computed:{active:function(){return this.index===this.rootMenu.activeIndex},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},itemStyle:function(){var t={color:this.active?this.activeTextColor:this.textColor};return"horizontal"!==this.mode||this.isNested||(t.borderBottomColor=this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent"),t},isNested:function(){return this.parentMenu!==this.rootMenu}},methods:{onMouseEnter:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.hoverBackground)},onMouseLeave:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.backgroundColor)},handleClick:function(){this.disabled||(this.dispatch("ElMenu","item-click",this),this.$emit("click",this))}},mounted:function(){this.parentMenu.addItem(this),this.rootMenu.addItem(this)},beforeDestroy:function(){this.parentMenu.removeItem(this),this.rootMenu.removeItem(this)}},Ct,[],!1,null,null,null);At.options.__file="packages/menu/src/menu-item.vue";var Mt=At.exports;Mt.install=function(t){t.component(Mt.name,Mt)};var It=Mt,jt=function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"el-menu-item-group"},[e("div",{staticClass:"el-menu-item-group__title",style:{paddingLeft:this.levelPadding+"px"}},[this.$slots.title?this._t("title"):[this._v(this._s(this.title))]],2),e("ul",[this._t("default")],2)])};jt._withStripped=!0;var kt=i({name:"ElMenuItemGroup",componentName:"ElMenuItemGroup",inject:["rootMenu"],props:{title:{type:String}},data:function(){return{paddingLeft:20}},computed:{levelPadding:function(){var t=20,e=this.$parent;if(this.rootMenu.collapse)return 20;for(;e&&"ElMenu"!==e.$options.componentName;)"ElSubmenu"===e.$options.componentName&&(t+=20),e=e.$parent;return t}}},jt,[],!1,null,null,null);kt.options.__file="packages/menu/src/menu-item-group.vue";var Pt=kt.exports;Pt.install=function(t){t.component(Pt.name,Pt)};var Lt=Pt,Rt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["textarea"===t.type?"el-textarea":"el-input",t.inputSize?"el-input--"+t.inputSize:"",{"is-disabled":t.inputDisabled,"is-exceed":t.inputExceed,"el-input-group":t.$slots.prepend||t.$slots.append,"el-input-group--append":t.$slots.append,"el-input-group--prepend":t.$slots.prepend,"el-input--prefix":t.$slots.prefix||t.prefixIcon,"el-input--suffix":t.$slots.suffix||t.suffixIcon||t.clearable||t.showPassword}],on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},["textarea"!==t.type?[t.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[t._t("prepend")],2):t._e(),"textarea"!==t.type?n("input",t._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:t.tabindex,type:t.showPassword?t.passwordVisible?"text":"password":t.type,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"input",t.$attrs,!1)):t._e(),t.$slots.prefix||t.prefixIcon?n("span",{staticClass:"el-input__prefix"},[t._t("prefix"),t.prefixIcon?n("i",{staticClass:"el-input__icon",class:t.prefixIcon}):t._e()],2):t._e(),t.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[t.showClear&&t.showPwdVisible&&t.isWordLimitVisible?t._e():[t._t("suffix"),t.suffixIcon?n("i",{staticClass:"el-input__icon",class:t.suffixIcon}):t._e()],t.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(t){t.preventDefault()},click:t.clear}}):t._e(),t.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:t.handlePasswordVisible}}):t._e(),t.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[t._v("\n "+t._s(t.textLength)+"/"+t._s(t.upperLimit)+"\n ")])]):t._e()],2),t.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",t.validateIcon]}):t._e()]):t._e(),t.$slots.append?n("div",{staticClass:"el-input-group__append"},[t._t("append")],2):t._e()]:n("textarea",t._b({ref:"textarea",staticClass:"el-textarea__inner",style:t.textareaStyle,attrs:{tabindex:t.tabindex,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"textarea",t.$attrs,!1)),t.isWordLimitVisible&&"textarea"===t.type?n("span",{staticClass:"el-input__count"},[t._v(t._s(t.textLength)+"/"+t._s(t.upperLimit))]):t._e()],2)};Rt._withStripped=!0;var Dt=void 0,Nt="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",Bt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Ft(t){var e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=parseFloat(e.getPropertyValue("padding-bottom"))+parseFloat(e.getPropertyValue("padding-top")),i=parseFloat(e.getPropertyValue("border-bottom-width"))+parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:Bt.map((function(t){return t+":"+e.getPropertyValue(t)})).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function zt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Dt||(Dt=document.createElement("textarea"),document.body.appendChild(Dt));var r=Ft(t),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;Dt.setAttribute("style",s+";"+Nt),Dt.value=t.value||t.placeholder||"";var u=Dt.scrollHeight,l={};"border-box"===a?u+=o:"content-box"===a&&(u-=i),Dt.value="";var c=Dt.scrollHeight-i;if(null!==e){var h=c*e;"border-box"===a&&(h=h+i+o),u=Math.max(h,u),l.minHeight=h+"px"}if(null!==n){var f=c*n;"border-box"===a&&(f=f+i+o),u=Math.min(f,u)}return l.height=u+"px",Dt.parentNode&&Dt.parentNode.removeChild(Dt),Dt=null,l}var Vt=n(7),Ut=n.n(Vt),Gt=n(19),Ht=i({name:"ElInput",componentName:"ElInput",mixins:[S.a,w.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return Ut()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(t){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[t])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var t=this;this.$nextTick((function(){t.setNativeInputValue(),t.resizeTextarea(),t.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(t){this.focused=!1,this.$emit("blur",t),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var t=this.autosize;if("textarea"===this.type)if(t){var e=t.minRows,n=t.maxRows;this.textareaCalcStyle=zt(this.$refs.textarea,e,n)}else this.textareaCalcStyle={minHeight:zt(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var t=this.getInput();t&&t.value!==this.nativeInputValue&&(t.value=this.nativeInputValue)},handleFocus:function(t){this.focused=!0,this.$emit("focus",t)},handleCompositionStart:function(t){this.$emit("compositionstart",t),this.isComposing=!0},handleCompositionUpdate:function(t){this.$emit("compositionupdate",t);var e=t.target.value,n=e[e.length-1]||"";this.isComposing=!Object(Gt.isKorean)(n)},handleCompositionEnd:function(t){this.$emit("compositionend",t),this.isComposing&&(this.isComposing=!1,this.handleInput(t))},handleInput:function(t){this.isComposing||t.target.value!==this.nativeInputValue&&(this.$emit("input",t.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(t){this.$emit("change",t.target.value)},calcIconOffset:function(t){var e=[].slice.call(this.$el.querySelectorAll(".el-input__"+t)||[]);if(e.length){for(var n=null,r=0;r<e.length;r++)if(e[r].parentNode===this.$el){n=e[r];break}if(n){var i={suffix:"append",prefix:"prepend"}[t];this.$slots[i]?n.style.transform="translateX("+("suffix"===t?"-":"")+this.$el.querySelector(".el-input-group__"+i).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var t=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){t.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},Rt,[],!1,null,null,null);Ht.options.__file="packages/input/src/input.vue";var Wt=Ht.exports;Wt.install=function(t){t.component(Wt.name,Wt)};var Yt=Wt,Xt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["el-input-number",t.inputNumberSize?"el-input-number--"+t.inputNumberSize:"",{"is-disabled":t.inputNumberDisabled},{"is-without-controls":!t.controls},{"is-controls-right":t.controlsAtRight}],on:{dragstart:function(t){t.preventDefault()}}},[t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":t.minDisabled},attrs:{role:"button"},on:{keydown:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.decrease(e)}}},[n("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-down":"minus")})]):t._e(),t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":t.maxDisabled},attrs:{role:"button"},on:{keydown:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.increase(e)}}},[n("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-up":"plus")})]):t._e(),n("el-input",{ref:"input",attrs:{value:t.displayValue,placeholder:t.placeholder,disabled:t.inputNumberDisabled,size:t.inputNumberSize,max:t.max,min:t.min,name:t.name,label:t.label},on:{blur:t.handleBlur,focus:t.handleFocus,input:t.handleInput,change:t.handleInputChange},nativeOn:{keydown:[function(e){return!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.increase(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.decrease(e))}]}})],1)};Xt._withStripped=!0;var $t={bind:function(t,e,n){var r=null,i=void 0,o=function(){return n.context[e.expression].apply()},a=function(){Date.now()-i<100&&o(),clearInterval(r),r=null};Object(pt.on)(t,"mousedown",(function(t){0===t.button&&(i=Date.now(),Object(pt.once)(document,"mouseup",a),clearInterval(r),r=setInterval(o,100))}))}},qt=i({name:"ElInputNumber",mixins:[V()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:$t},components:{ElInput:f.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(t){return t>=0&&t===parseInt(t,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(t){var e=void 0===t?t:Number(t);if(void 0!==e){if(isNaN(e))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);e=Math.round(e/this.step)*r*this.step/r}void 0!==this.precision&&(e=this.toPrecision(e,this.precision))}e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),this.currentValue=e,this.userInput=null,this.$emit("input",e)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var t=this.value,e=this.step,n=this.getPrecision,r=this.precision,i=n(e);return void 0!==r?(i>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(t),i)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var t=this.currentValue;if("number"==typeof t){if(this.stepStrictly){var e=this.getPrecision(this.step),n=Math.pow(10,e);t=Math.round(t/this.step)*n*this.step/n}void 0!==this.precision&&(t=t.toFixed(this.precision))}return t}},methods:{toPrecision:function(t,e){return void 0===e&&(e=this.numPrecision),parseFloat(Math.round(t*Math.pow(10,e))/Math.pow(10,e))},getPrecision:function(t){if(void 0===t)return 0;var e=t.toString(),n=e.indexOf("."),r=0;return-1!==n&&(r=e.length-n-1),r},_increase:function(t,e){if("number"!=typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t+n*e)/n)},_decrease:function(t,e){if("number"!=typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t-n*e)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var t=this.value||0,e=this._increase(t,this.step);this.setCurrentValue(e)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var t=this.value||0,e=this._decrease(t,this.step);this.setCurrentValue(e)}},handleBlur:function(t){this.$emit("blur",t)},handleFocus:function(t){this.$emit("focus",t)},setCurrentValue:function(t){var e=this.currentValue;"number"==typeof t&&void 0!==this.precision&&(t=this.toPrecision(t,this.precision)),t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),e!==t&&(this.userInput=null,this.$emit("input",t),this.$emit("change",t,e),this.currentValue=t)},handleInput:function(t){this.userInput=t},handleInputChange:function(t){var e=""===t?void 0:Number(t);isNaN(e)&&""!==t||this.setCurrentValue(e),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var t=this.$refs.input.$refs.input;t.setAttribute("role","spinbutton"),t.setAttribute("aria-valuemax",this.max),t.setAttribute("aria-valuemin",this.min),t.setAttribute("aria-valuenow",this.currentValue),t.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){this.$refs&&this.$refs.input&&this.$refs.input.$refs.input.setAttribute("aria-valuenow",this.currentValue)}},Xt,[],!1,null,null,null);qt.options.__file="packages/input-number/src/input-number.vue";var Zt=qt.exports;Zt.install=function(t){t.component(Zt.name,Zt)};var Kt=Zt,Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-radio",class:[t.border&&t.radioSize?"el-radio--"+t.radioSize:"",{"is-disabled":t.isDisabled},{"is-focus":t.focus},{"is-bordered":t.border},{"is-checked":t.model===t.label}],attrs:{role:"radio","aria-checked":t.model===t.label,"aria-disabled":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"]))return null;e.stopPropagation(),e.preventDefault(),t.model=t.isDisabled?t.model:t.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":t.isDisabled,"is-checked":t.model===t.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:t.name,disabled:t.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:t.label,checked:t._q(t.model,t.label)},on:{focus:function(e){t.focus=!0},blur:function(e){t.focus=!1},change:[function(e){t.model=t.label},t.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(t){t.stopPropagation()}}},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])};Qt._withStripped=!0;var Jt=i({name:"ElRadio",mixins:[S.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){for(var t=this.$parent;t;){if("ElRadioGroup"===t.$options.componentName)return this._radioGroup=t,!0;t=t.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(t){this.isGroup?this.dispatch("ElRadioGroup","input",[t]):this.$emit("input",t),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||t},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var t=this;this.$nextTick((function(){t.$emit("change",t.model),t.isGroup&&t.dispatch("ElRadioGroup","handleChange",t.model)}))}}},Qt,[],!1,null,null,null);Jt.options.__file="packages/radio/src/radio.vue";var te=Jt.exports;te.install=function(t){t.component(te.name,te)};var ee=te,ne=function(){var t=this.$createElement;return(this._self._c||t)(this._elTag,{tag:"component",staticClass:"el-radio-group",attrs:{role:"radiogroup"},on:{keydown:this.handleKeydown}},[this._t("default")],2)};ne._withStripped=!0;var re=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),ie=i({name:"ElRadioGroup",componentName:"ElRadioGroup",inject:{elFormItem:{default:""}},mixins:[S.a],props:{value:{},size:String,fill:String,textColor:String,disabled:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},_elTag:function(){var t=(this.$vnode.data||{}).tag;return t&&"component"!==t||(t="div"),t},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var t=this;this.$on("handleChange",(function(e){t.$emit("change",e)}))},mounted:function(){var t=this.$el.querySelectorAll("[type=radio]"),e=this.$el.querySelectorAll("[role=radio]")[0];![].some.call(t,(function(t){return t.checked}))&&e&&(e.tabIndex=0)},methods:{handleKeydown:function(t){var e=t.target,n="INPUT"===e.nodeName?"[type=radio]":"[role=radio]",r=this.$el.querySelectorAll(n),i=r.length,o=[].indexOf.call(r,e),a=this.$el.querySelectorAll("[role=radio]");switch(t.keyCode){case re.LEFT:case re.UP:t.stopPropagation(),t.preventDefault(),0===o?(a[i-1].click(),a[i-1].focus()):(a[o-1].click(),a[o-1].focus());break;case re.RIGHT:case re.DOWN:o===i-1?(t.stopPropagation(),t.preventDefault(),a[0].click(),a[0].focus()):(a[o+1].click(),a[o+1].focus())}}},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",[this.value])}}},ne,[],!1,null,null,null);ie.options.__file="packages/radio/src/radio-group.vue";var oe=ie.exports;oe.install=function(t){t.component(oe.name,oe)};var ae=oe,se=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-radio-button",class:[t.size?"el-radio-button--"+t.size:"",{"is-active":t.value===t.label},{"is-disabled":t.isDisabled},{"is-focus":t.focus}],attrs:{role:"radio","aria-checked":t.value===t.label,"aria-disabled":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"]))return null;e.stopPropagation(),e.preventDefault(),t.value=t.isDisabled?t.value:t.label}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"el-radio-button__orig-radio",attrs:{type:"radio",name:t.name,disabled:t.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:t.label,checked:t._q(t.value,t.label)},on:{change:[function(e){t.value=t.label},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}),n("span",{staticClass:"el-radio-button__inner",style:t.value===t.label?t.activeStyle:null,on:{keydown:function(t){t.stopPropagation()}}},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])};se._withStripped=!0;var ue=i({name:"ElRadioButton",mixins:[S.a],inject:{elForm:{default:""},elFormItem:{default:""}},props:{label:{},disabled:Boolean,name:String},data:function(){return{focus:!1}},computed:{value:{get:function(){return this._radioGroup.value},set:function(t){this._radioGroup.$emit("input",t)}},_radioGroup:function(){for(var t=this.$parent;t;){if("ElRadioGroup"===t.$options.componentName)return t;t=t.$parent}return!1},activeStyle:function(){return{backgroundColor:this._radioGroup.fill||"",borderColor:this._radioGroup.fill||"",boxShadow:this._radioGroup.fill?"-1px 0 0 0 "+this._radioGroup.fill:"",color:this._radioGroup.textColor||""}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._radioGroup.radioGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isDisabled:function(){return this.disabled||this._radioGroup.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this._radioGroup&&this.value!==this.label?-1:0}},methods:{handleChange:function(){var t=this;this.$nextTick((function(){t.dispatch("ElRadioGroup","handleChange",t.value)}))}}},se,[],!1,null,null,null);ue.options.__file="packages/radio/src/radio-button.vue";var le=ue.exports;le.install=function(t){t.component(le.name,le)};var ce=le,he=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-checkbox",class:[t.border&&t.checkboxSize?"el-checkbox--"+t.checkboxSize:"",{"is-disabled":t.isDisabled},{"is-bordered":t.border},{"is-checked":t.isChecked}],attrs:{id:t.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":t.isDisabled,"is-checked":t.isChecked,"is-indeterminate":t.indeterminate,"is-focus":t.focus},attrs:{tabindex:!!t.indeterminate&&0,role:!!t.indeterminate&&"checkbox","aria-checked":!!t.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),t.trueLabel||t.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",name:t.name,disabled:t.isDisabled,"true-value":t.trueLabel,"false-value":t.falseLabel},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,r=e.target,i=r.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.model=n.concat([null])):o>-1&&(t.model=n.slice(0,o).concat(n.slice(o+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",disabled:t.isDisabled,name:t.name},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.label,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}})]),t.$slots.default||t.label?n("span",{staticClass:"el-checkbox__label"},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2):t._e()])};he._withStripped=!0;var fe=i({name:"ElCheckbox",mixins:[S.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&t.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[t])):(this.$emit("input",t),this.selfModel=t)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){for(var t=this.$parent;t;){if("ElCheckboxGroup"===t.$options.componentName)return this._checkboxGroup=t,!0;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var t=this._checkboxGroup,e=t.max,n=t.min;return!(!e&&!n)&&this.model.length>=e&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||t}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,t),this.$nextTick((function(){e.isGroup&&e.dispatch("ElCheckboxGroup","change",[e._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",t)}}},he,[],!1,null,null,null);fe.options.__file="packages/checkbox/src/checkbox.vue";var de=fe.exports;de.install=function(t){t.component(de.name,de)};var pe=de,ge=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-checkbox-button",class:[t.size?"el-checkbox-button--"+t.size:"",{"is-disabled":t.isDisabled},{"is-checked":t.isChecked},{"is-focus":t.focus}],attrs:{role:"checkbox","aria-checked":t.isChecked,"aria-disabled":t.isDisabled}},[t.trueLabel||t.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:t.name,disabled:t.isDisabled,"true-value":t.trueLabel,"false-value":t.falseLabel},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,r=e.target,i=r.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.model=n.concat([null])):o>-1&&(t.model=n.slice(0,o).concat(n.slice(o+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:t.name,disabled:t.isDisabled},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.label,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}),t.$slots.default||t.label?n("span",{staticClass:"el-checkbox-button__inner",style:t.isChecked?t.activeStyle:null},[t._t("default",[t._v(t._s(t.label))])],2):t._e()])};ge._withStripped=!0;var ve=i({name:"ElCheckboxButton",mixins:[S.a],inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},props:{value:{},label:{},disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number]},computed:{model:{get:function(){return this._checkboxGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this._checkboxGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&t.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[t])):void 0!==this.value?this.$emit("input",t):this.selfModel=t}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},_checkboxGroup:function(){for(var t=this.$parent;t;){if("ElCheckboxGroup"===t.$options.componentName)return t;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},activeStyle:function(){return{backgroundColor:this._checkboxGroup.fill||"",borderColor:this._checkboxGroup.fill||"",color:this._checkboxGroup.textColor||"","box-shadow":"-1px 0 0 0 "+this._checkboxGroup.fill}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._checkboxGroup.checkboxGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isLimitDisabled:function(){var t=this._checkboxGroup,e=t.max,n=t.min;return!(!e&&!n)&&this.model.length>=e&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this._checkboxGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled}},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,t),this.$nextTick((function(){e._checkboxGroup&&e.dispatch("ElCheckboxGroup","change",[e._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()}},ge,[],!1,null,null,null);ve.options.__file="packages/checkbox/src/checkbox-button.vue";var me=ve.exports;me.install=function(t){t.component(me.name,me)};var ye=me,be=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[this._t("default")],2)};be._withStripped=!0;var _e=i({name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[S.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",[t])}}},be,[],!1,null,null,null);_e.options.__file="packages/checkbox/src/checkbox-group.vue";var xe=_e.exports;xe.install=function(t){t.component(xe.name,xe)};var we=xe,Oe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-switch",class:{"is-disabled":t.switchDisabled,"is-checked":t.checked},attrs:{role:"switch","aria-checked":t.checked,"aria-disabled":t.switchDisabled},on:{click:function(e){return e.preventDefault(),t.switchValue(e)}}},[n("input",{ref:"input",staticClass:"el-switch__input",attrs:{type:"checkbox",id:t.id,name:t.name,"true-value":t.activeValue,"false-value":t.inactiveValue,disabled:t.switchDisabled},on:{change:t.handleChange,keydown:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.switchValue(e)}}}),t.inactiveIconClass||t.inactiveText?n("span",{class:["el-switch__label","el-switch__label--left",t.checked?"":"is-active"]},[t.inactiveIconClass?n("i",{class:[t.inactiveIconClass]}):t._e(),!t.inactiveIconClass&&t.inactiveText?n("span",{attrs:{"aria-hidden":t.checked}},[t._v(t._s(t.inactiveText))]):t._e()]):t._e(),n("span",{ref:"core",staticClass:"el-switch__core",style:{width:t.coreWidth+"px"}}),t.activeIconClass||t.activeText?n("span",{class:["el-switch__label","el-switch__label--right",t.checked?"is-active":""]},[t.activeIconClass?n("i",{class:[t.activeIconClass]}):t._e(),!t.activeIconClass&&t.activeText?n("span",{attrs:{"aria-hidden":!t.checked}},[t._v(t._s(t.activeText))]):t._e()]):t._e()])};Oe._withStripped=!0;var Se=i({name:"ElSwitch",mixins:[V()("input"),w.a,S.a],inject:{elForm:{default:""}},props:{value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},activeIconClass:{type:String,default:""},inactiveIconClass:{type:String,default:""},activeText:String,inactiveText:String,activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String},data:function(){return{coreWidth:this.width}},created:function(){~[this.activeValue,this.inactiveValue].indexOf(this.value)||this.$emit("input",this.inactiveValue)},computed:{checked:function(){return this.value===this.activeValue},switchDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{checked:function(){this.$refs.input.checked=this.checked,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[this.value])}},methods:{handleChange:function(t){var e=this,n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n),this.$nextTick((function(){e.$refs.input.checked=e.checked}))},setBackgroundColor:function(){var t=this.checked?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=t,this.$refs.core.style.backgroundColor=t},switchValue:function(){!this.switchDisabled&&this.handleChange()},getMigratingConfig:function(){return{props:{"on-color":"on-color is renamed to active-color.","off-color":"off-color is renamed to inactive-color.","on-text":"on-text is renamed to active-text.","off-text":"off-text is renamed to inactive-text.","on-value":"on-value is renamed to active-value.","off-value":"off-value is renamed to inactive-value.","on-icon-class":"on-icon-class is renamed to active-icon-class.","off-icon-class":"off-icon-class is renamed to inactive-icon-class."}}}},mounted:function(){this.coreWidth=this.width||40,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.$refs.input.checked=this.checked}},Oe,[],!1,null,null,null);Se.options.__file="packages/switch/src/component.vue";var Ce=Se.exports;Ce.install=function(t){t.component(Ce.name,Ce)};var Ee=Ce,Te=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[t.selectSize?"el-select--"+t.selectSize:""],on:{click:function(e){return e.stopPropagation(),t.toggleMenu(e)}}},[t.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":t.inputWidth-32+"px",width:"100%"}},[t.collapseTags&&t.selected.length?n("span",[n("el-tag",{attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:t.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(e){t.deleteTag(e,t.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[t._v(t._s(t.selected[0].currentLabel))])]),t.selected.length>1?n("el-tag",{attrs:{closable:!1,size:t.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[t._v("+ "+t._s(t.selected.length-1))])]):t._e()],1):t._e(),t.collapseTags?t._e():n("transition-group",{on:{"after-leave":t.resetInputHeight}},t._l(t.selected,(function(e){return n("el-tag",{key:t.getValueKey(e),attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:e.hitState,type:"info","disable-transitions":""},on:{close:function(n){t.deleteTag(n,e)}}},[n("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.currentLabel))])])})),1),t.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[t.selectSize?"is-"+t.selectSize:""],style:{"flex-grow":"1",width:t.inputLength/(t.inputWidth-32)+"%","max-width":t.inputWidth-42+"px"},attrs:{type:"text",disabled:t.selectDisabled,autocomplete:t.autoComplete||t.autocomplete},domProps:{value:t.query},on:{focus:t.handleFocus,blur:function(e){t.softFocus=!1},keyup:t.managePlaceholder,keydown:[t.resetInputState,function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.preventDefault(),t.handleNavigate("next")},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.preventDefault(),t.handleNavigate("prev")},function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.selectOption(e))},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){return!("button"in e)&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.deletePrevTag(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition,input:[function(e){e.target.composing||(t.query=e.target.value)},t.debouncedQueryChange]}}):t._e()],1):t._e(),n("el-input",{ref:"reference",class:{"is-focus":t.visible},attrs:{type:"text",placeholder:t.currentPlaceholder,name:t.name,id:t.id,autocomplete:t.autoComplete||t.autocomplete,size:t.selectSize,disabled:t.selectDisabled,readonly:t.readonly,"validate-event":!1,tabindex:t.multiple&&t.filterable?"-1":null},on:{focus:t.handleFocus,blur:t.handleBlur,input:t.debouncedOnInputChange,compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition},nativeOn:{keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.stopPropagation(),e.preventDefault(),t.handleNavigate("next")},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.stopPropagation(),e.preventDefault(),t.handleNavigate("prev")},function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.selectOption(e))},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],mouseenter:function(e){t.inputHovering=!0},mouseleave:function(e){t.inputHovering=!1}},model:{value:t.selectedLabel,callback:function(e){t.selectedLabel=e},expression:"selectedLabel"}},[t.$slots.prefix?n("template",{slot:"prefix"},[t._t("prefix")],2):t._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!t.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+t.iconClass]}),t.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:t.handleClearClick}}):t._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":t.handleMenuEnter,"after-leave":t.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:t.visible&&!1!==t.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":t.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:t.options.length>0&&!t.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!t.allowCreate&&t.query&&0===t.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[t.showNewOption?n("el-option",{attrs:{value:t.query,created:""}}):t._e(),t._t("default")],2),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&0===t.options.length)?[t.$slots.empty?t._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[t._v("\n "+t._s(t.emptyText)+"\n ")])]:t._e()],2)],1)],1)};Te._withStripped=!0;var Ae=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":this.$parent.multiple},this.popperClass],style:{minWidth:this.minWidth}},[this._t("default")],2)};Ae._withStripped=!0;var Me=i({name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[R.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var t=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){t.$parent.visible&&t.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},Ae,[],!1,null,null,null);Me.options.__file="packages/select/src/select-dropdown.vue";var Ie=Me.exports,je=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:t.itemSelected,"is-disabled":t.disabled||t.groupDisabled||t.limitReached,hover:t.hover},on:{mouseenter:t.hoverItem,click:function(e){return e.stopPropagation(),t.selectOptionClick(e)}}},[t._t("default",[n("span",[t._v(t._s(t.currentLabel))])])],2)};je._withStripped=!0;var ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pe=i({mixins:[S.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(t,e){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===(void 0===t?"undefined":ke(t))&&"object"===(void 0===e?"undefined":ke(e))&&t[i]===e[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(t,e){if(this.isObject){var n=this.select.valueKey;return Object(g.getValueByPath)(t,n)===Object(g.getValueByPath)(e,n)}return t===e},contains:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if(this.isObject){var n=this.select.valueKey;return t&&t.some((function(t){return Object(g.getValueByPath)(t,n)===Object(g.getValueByPath)(e,n)}))}return t&&t.indexOf(e)>-1},handleGroupDisabled:function(t){this.groupDisabled=t},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(t){this.visible=new RegExp(Object(g.escapeRegexpString)(t),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var t=this.select,e=t.selected,n=t.multiple?e:[e],r=this.select.cachedOptions.indexOf(this),i=n.indexOf(this);r>-1&&i<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},je,[],!1,null,null,null);Pe.options.__file="packages/select/src/option.vue";var Le=Pe.exports,Re=n(29),De=n.n(Re),Ne=n(14),Be=n(27),Fe=n.n(Be),ze=i({mixins:[S.a,p.a,V()("reference"),{data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(t){return t.visible})).every((function(t){return t.disabled}))}},watch:{hoverIndex:function(t){var e=this;"number"==typeof t&&t>-1&&(this.hoverOption=this.options[t]||{}),this.options.forEach((function(t){t.hover=e.hoverOption===t}))}},methods:{navigateOptions:function(t){var e=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===t?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===t&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(t),this.$nextTick((function(){return e.scrollToOption(e.hoverOption)}))}}else this.visible=!0}}}],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(g.isIE)()&&!Object(g.isEdge)()&&!this.visible},showClose:function(){var t=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value;return this.clearable&&!this.selectDisabled&&this.inputHovering&&t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var t=this,e=this.options.filter((function(t){return!t.created})).some((function(e){return e.currentLabel===t.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!e},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return void 0!==this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:f.a,ElSelectMenu:Ie,ElOption:Le,ElTag:De.a,ElScrollbar:N.a},directives:{Clickoutside:k.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var t=this;this.$nextTick((function(){t.resetInputHeight()}))},propPlaceholder:function(t){this.cachedPlaceHolder=this.currentPlaceholder=t},value:function(t,e){this.multiple&&(this.resetInputHeight(),t&&t.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(g.valueEquals)(t,e)||this.dispatch("ElFormItem","el.form.change",t)},visible:function(t){var e=this;t?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){e.$refs.input&&""===e.$refs.input.value&&0===e.selected.length&&(e.currentPlaceholder=e.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",t)},options:function(){var t=this;if(!this.$isServer){this.$nextTick((function(){t.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var e=this.$el.querySelectorAll("input");-1===[].indexOf.call(e,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleNavigate:function(t){this.isOnComposition||this.navigateOptions(t)},handleComposition:function(t){var e=this,n=t.target.value;if("compositionend"===t.type)this.isOnComposition=!1,this.$nextTick((function(t){return e.handleQueryChange(n)}));else{var r=n[n.length-1]||"";this.isOnComposition=!Object(Gt.isKorean)(r)}},handleQueryChange:function(t){var e=this;this.previousQuery===t||this.isOnComposition||(null!==this.previousQuery||"function"!=typeof this.filterMethod&&"function"!=typeof this.remoteMethod?(this.previousQuery=t,this.$nextTick((function(){e.visible&&e.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var t=15*e.$refs.input.value.length+20;e.inputLength=e.collapseTags?Math.min(50,t):t,e.managePlaceholder(),e.resetInputHeight()})),this.remote&&"function"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(t)):"function"==typeof this.filterMethod?(this.filterMethod(t),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",t),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=t)},scrollToOption:function(t){var e=Array.isArray(t)&&t[0]?t[0].$el:t.$el;if(this.$refs.popper&&e){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");Fe()(n,e)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var t=this;this.$nextTick((function(){return t.scrollToOption(t.selected)}))},emitChange:function(t){Object(g.valueEquals)(this.value,t)||this.$emit("change",t)},getOption:function(t){for(var e=void 0,n="[object object]"===Object.prototype.toString.call(t).toLowerCase(),r="[object null]"===Object.prototype.toString.call(t).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(t).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o];if(n?Object(g.getValueByPath)(a.value,this.valueKey)===Object(g.getValueByPath)(t,this.valueKey):a.value===t){e=a;break}}if(e)return e;var s={value:t,currentLabel:n||r||i?"":String(t)};return this.multiple&&(s.hitState=!1),s},setSelected:function(){var t=this;if(!this.multiple){var e=this.getOption(this.value);return e.created?(this.createdLabel=e.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=e.currentLabel,this.selected=e,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(e){n.push(t.getOption(e))})),this.selected=n,this.$nextTick((function(){t.resetInputHeight()}))},handleFocus:function(t){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.filterable&&!this.visible&&(this.menuVisibleOnFocus=!0),this.visible=!0),this.$emit("focus",t))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(t){var e=this;setTimeout((function(){e.isSilentBlur?e.isSilentBlur=!1:e.$emit("blur",t)}),50),this.softFocus=!1},handleClearClick:function(t){this.deleteSelected(t)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(t){if(Array.isArray(this.selected)){var e=this.selected[this.selected.length-1];if(e)return!0===t||!1===t?(e.hitState=t,t):(e.hitState=!e.hitState,e.hitState)}},deletePrevTag:function(t){if(t.target.value.length<=0&&!this.toggleLastOptionHitState()){var e=this.value.slice();e.pop(),this.$emit("input",e),this.emitChange(e)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(t){8!==t.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var t=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(t.$refs.reference){var e=t.$refs.reference.$el.childNodes,n=[].filter.call(e,(function(t){return"INPUT"===t.tagName}))[0],r=t.$refs.tags,i=r?Math.round(r.getBoundingClientRect().height):0,o=t.initialInputHeight||40;n.style.height=0===t.selected.length?o+"px":Math.max(r?i+(i>o?6:0):0,o)+"px",t.visible&&!1!==t.emptyText&&t.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var t=this;setTimeout((function(){t.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map((function(e){return t.options.indexOf(e)}))):t.hoverIndex=-1:t.hoverIndex=t.options.indexOf(t.selected)}),300)},handleOptionSelect:function(t,e){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,t.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(t.value),this.$emit("input",r),this.emitChange(r),t.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",t.value),this.emitChange(t.value),this.visible=!1;this.isSilentBlur=e,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(t)}))},setSoftFocus:function(){this.softFocus=!0;var t=this.$refs.input||this.$refs.reference;t&&t.focus()},getValueIndex:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],n="[object object]"===Object.prototype.toString.call(e).toLowerCase();if(n){var r=this.valueKey,i=-1;return t.some((function(t,n){return Object(g.getValueByPath)(t,r)===Object(g.getValueByPath)(e,r)&&(i=n,!0)})),i}return t.indexOf(e)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(t){t.stopPropagation();var e=this.multiple?[]:"";this.$emit("input",e),this.emitChange(e),this.visible=!1,this.$emit("clear")},deleteTag:function(t,e){var n=this.selected.indexOf(e);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",e.value)}t.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(t){t>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(t,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var t=!1,e=this.options.length-1;e>=0;e--)if(this.options[e].created){t=!0,this.hoverIndex=e;break}if(!t)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(t){return"[object object]"!==Object.prototype.toString.call(t.value).toLowerCase()?t.value:Object(g.getValueByPath)(t.value,this.valueKey)}},created:function(){var t=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=I()(this.debounce,(function(){t.onInputChange()})),this.debouncedQueryChange=I()(this.debounce,(function(e){t.handleQueryChange(e.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var t=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(Ne.addResizeListener)(this.$el,this.handleResize);var e=this.$refs.reference;if(e&&e.$el){var n=e.$el.querySelector("input");this.initialInputHeight=n.getBoundingClientRect().height||{medium:36,small:32,mini:28}[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){e&&e.$el&&(t.inputWidth=e.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(Ne.removeResizeListener)(this.$el,this.handleResize)}},Te,[],!1,null,null,null);ze.options.__file="packages/select/src/select.vue";var Ve=ze.exports;Ve.install=function(t){t.component(Ve.name,Ve)};var Ue=Ve;Le.install=function(t){t.component(Le.name,Le)};var Ge=Le,He=function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{directives:[{name:"show",rawName:"v-show",value:this.visible,expression:"visible"}],staticClass:"el-select-group__wrap"},[e("li",{staticClass:"el-select-group__title"},[this._v(this._s(this.label))]),e("li",[e("ul",{staticClass:"el-select-group"},[this._t("default")],2)])])};He._withStripped=!0;var We=i({mixins:[S.a],name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},data:function(){return{visible:!0}},watch:{disabled:function(t){this.broadcast("ElOption","handleGroupDisabled",t)}},methods:{queryChange:function(){this.visible=this.$children&&Array.isArray(this.$children)&&this.$children.some((function(t){return!0===t.visible}))}},created:function(){this.$on("queryChange",this.queryChange)},mounted:function(){this.disabled&&this.broadcast("ElOption","handleGroupDisabled",this.disabled)}},He,[],!1,null,null,null);We.options.__file="packages/select/src/option-group.vue";var Ye=We.exports;Ye.install=function(t){t.component(Ye.name,Ye)};var Xe=Ye,$e=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"el-button",class:[t.type?"el-button--"+t.type:"",t.buttonSize?"el-button--"+t.buttonSize:"",{"is-disabled":t.buttonDisabled,"is-loading":t.loading,"is-plain":t.plain,"is-round":t.round,"is-circle":t.circle}],attrs:{disabled:t.buttonDisabled||t.loading,autofocus:t.autofocus,type:t.nativeType},on:{click:t.handleClick}},[t.loading?n("i",{staticClass:"el-icon-loading"}):t._e(),t.icon&&!t.loading?n("i",{class:t.icon}):t._e(),t.$slots.default?n("span",[t._t("default")],2):t._e()])};$e._withStripped=!0;var qe=i({name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(t){this.$emit("click",t)}}},$e,[],!1,null,null,null);qe.options.__file="packages/button/src/button.vue";var Ze=qe.exports;Ze.install=function(t){t.component(Ze.name,Ze)};var Ke=Ze,Qe=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-button-group"},[this._t("default")],2)};Qe._withStripped=!0;var Je=i({name:"ElButtonGroup"},Qe,[],!1,null,null,null);Je.options.__file="packages/button/src/button-group.vue";var tn=Je.exports;tn.install=function(t){t.component(tn.name,tn)};var en=tn,nn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-table",class:[{"el-table--fit":t.fit,"el-table--striped":t.stripe,"el-table--border":t.border||t.isGroup,"el-table--hidden":t.isHidden,"el-table--group":t.isGroup,"el-table--fluid-height":t.maxHeight,"el-table--scrollable-x":t.layout.scrollX,"el-table--scrollable-y":t.layout.scrollY,"el-table--enable-row-hover":!t.store.states.isComplex,"el-table--enable-row-transition":0!==(t.store.states.data||[]).length&&(t.store.states.data||[]).length<100},t.tableSize?"el-table--"+t.tableSize:""],on:{mouseleave:function(e){t.handleMouseLeave(e)}}},[n("div",{ref:"hiddenColumns",staticClass:"hidden-columns"},[t._t("default")],2),t.showHeader?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:t.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"headerWrapper",staticClass:"el-table__header-wrapper"},[n("table-header",{ref:"tableHeader",style:{width:t.layout.bodyWidth?t.layout.bodyWidth+"px":""},attrs:{store:t.store,border:t.border,"default-sort":t.defaultSort}})],1):t._e(),n("div",{ref:"bodyWrapper",staticClass:"el-table__body-wrapper",class:[t.layout.scrollX?"is-scrolling-"+t.scrollPosition:"is-scrolling-none"],style:[t.bodyHeight]},[n("table-body",{style:{width:t.bodyWidth},attrs:{context:t.context,store:t.store,stripe:t.stripe,"row-class-name":t.rowClassName,"row-style":t.rowStyle,highlight:t.highlightCurrentRow}}),t.data&&0!==t.data.length?t._e():n("div",{ref:"emptyBlock",staticClass:"el-table__empty-block",style:t.emptyBlockStyle},[n("span",{staticClass:"el-table__empty-text"},[t._t("empty",[t._v(t._s(t.emptyText||t.t("el.table.emptyText")))])],2)]),t.$slots.append?n("div",{ref:"appendWrapper",staticClass:"el-table__append-wrapper"},[t._t("append")],2):t._e()],1),t.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:t.data&&t.data.length>0,expression:"data && data.length > 0"},{name:"mousewheel",rawName:"v-mousewheel",value:t.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"footerWrapper",staticClass:"el-table__footer-wrapper"},[n("table-footer",{style:{width:t.layout.bodyWidth?t.layout.bodyWidth+"px":""},attrs:{store:t.store,border:t.border,"sum-text":t.sumText||t.t("el.table.sumText"),"summary-method":t.summaryMethod,"default-sort":t.defaultSort}})],1):t._e(),t.fixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:t.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"fixedWrapper",staticClass:"el-table__fixed",style:[{width:t.layout.fixedWidth?t.layout.fixedWidth+"px":""},t.fixedHeight]},[t.showHeader?n("div",{ref:"fixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"fixedTableHeader",style:{width:t.bodyWidth},attrs:{fixed:"left",border:t.border,store:t.store}})],1):t._e(),n("div",{ref:"fixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:t.layout.headerHeight+"px"},t.fixedBodyHeight]},[n("table-body",{style:{width:t.layout.fixedWidth?t.layout.fixedWidth+"px":""},attrs:{fixed:"left",store:t.store,stripe:t.stripe,highlight:t.highlightCurrentRow,"row-class-name":t.rowClassName,"row-style":t.rowStyle}}),t.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:t.layout.appendHeight+"px"}}):t._e()],1),t.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:t.data&&t.data.length>0,expression:"data && data.length > 0"}],ref:"fixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:t.bodyWidth},attrs:{fixed:"left",border:t.border,"sum-text":t.sumText||t.t("el.table.sumText"),"summary-method":t.summaryMethod,store:t.store}})],1):t._e()]):t._e(),t.rightFixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:t.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"rightFixedWrapper",staticClass:"el-table__fixed-right",style:[{width:t.layout.rightFixedWidth?t.layout.rightFixedWidth+"px":"",right:t.layout.scrollY?(t.border?t.layout.gutterWidth:t.layout.gutterWidth||0)+"px":""},t.fixedHeight]},[t.showHeader?n("div",{ref:"rightFixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"rightFixedTableHeader",style:{width:t.bodyWidth},attrs:{fixed:"right",border:t.border,store:t.store}})],1):t._e(),n("div",{ref:"rightFixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:t.layout.headerHeight+"px"},t.fixedBodyHeight]},[n("table-body",{style:{width:t.layout.rightFixedWidth?t.layout.rightFixedWidth+"px":""},attrs:{fixed:"right",store:t.store,stripe:t.stripe,"row-class-name":t.rowClassName,"row-style":t.rowStyle,highlight:t.highlightCurrentRow}}),t.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:t.layout.appendHeight+"px"}}):t._e()],1),t.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:t.data&&t.data.length>0,expression:"data && data.length > 0"}],ref:"rightFixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:t.bodyWidth},attrs:{fixed:"right",border:t.border,"sum-text":t.sumText||t.t("el.table.sumText"),"summary-method":t.summaryMethod,store:t.store}})],1):t._e()]):t._e(),t.rightFixedColumns.length>0?n("div",{ref:"rightFixedPatch",staticClass:"el-table__fixed-right-patch",style:{width:t.layout.scrollY?t.layout.gutterWidth+"px":"0",height:t.layout.headerHeight+"px"}}):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.resizeProxyVisible,expression:"resizeProxyVisible"}],ref:"resizeProxy",staticClass:"el-table__column-resize-proxy"})])};nn._withStripped=!0;var rn=n(17),on=n.n(rn),an=n(35),sn=n(38),un=n.n(sn),ln="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,cn={bind:function(t,e){var n,r;n=t,r=e.value,n&&n.addEventListener&&n.addEventListener(ln?"DOMMouseScroll":"mousewheel",(function(t){var e=un()(t);r&&r.apply(this,[t,e])}))}},hn=n(5),fn=n.n(hn),dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn=function(t){for(var e=t.target;e&&"HTML"!==e.tagName.toUpperCase();){if("TD"===e.tagName.toUpperCase())return e;e=e.parentNode}return null},gn=function(t){return null!==t&&"object"===(void 0===t?"undefined":dn(t))},vn=function(t,e,n,r,i){if(!e&&!r&&(!i||Array.isArray(i)&&!i.length))return t;n="string"==typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var o=r?null:function(n,r){return i?(Array.isArray(i)||(i=[i]),i.map((function(e){return"string"==typeof e?Object(g.getValueByPath)(n,e):e(n,r,t)}))):("$key"!==e&&gn(n)&&"$value"in n&&(n=n.$value),[gn(n)?Object(g.getValueByPath)(n,e):n])};return t.map((function(t,e){return{value:t,index:e,key:o?o(t,e):null}})).sort((function(t,e){var i=function(t,e){if(r)return r(t.value,e.value);for(var n=0,i=t.key.length;n<i;n++){if(t.key[n]<e.key[n])return-1;if(t.key[n]>e.key[n])return 1}return 0}(t,e);return i||(i=t.index-e.index),i*n})).map((function(t){return t.value}))},mn=function(t,e){var n=null;return t.columns.forEach((function(t){t.id===e&&(n=t)})),n},yn=function(t,e){var n=(e.className||"").match(/el-table_[^\s]+/gm);return n?mn(t,n[0]):null},bn=function(t,e){if(!t)throw new Error("row is required when get row identity");if("string"==typeof e){if(e.indexOf(".")<0)return t[e];for(var n=e.split("."),r=t,i=0;i<n.length;i++)r=r[n[i]];return r}if("function"==typeof e)return e.call(null,t)},_n=function(t,e){var n={};return(t||[]).forEach((function(t,r){n[bn(t,e)]={row:t,index:r}})),n};function xn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function wn(t){return void 0!==t&&(t=parseInt(t,10),isNaN(t)&&(t=null)),t}function On(t){return"number"==typeof t?t:"string"==typeof t?/^\d+(?:px)?$/.test(t)?parseInt(t,10):t:null}function Sn(t,e,n){var r=!1,i=t.indexOf(e),o=-1!==i,a=function(){t.push(e),r=!0},s=function(){t.splice(i,1),r=!0};return"boolean"==typeof n?n&&!o?a():!n&&o&&s():o?s():a(),r}var Cn={data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var t=this.states,e=t.data,n=void 0===e?[]:e,r=t.rowKey,i=t.defaultExpandAll,o=t.expandRows;if(i)this.states.expandRows=n.slice();else if(r){var a=_n(o,r);this.states.expandRows=n.reduce((function(t,e){var n=bn(e,r);return a[n]&&t.push(e),t}),[])}else this.states.expandRows=[]},toggleRowExpansion:function(t,e){Sn(this.states.expandRows,t,e)&&(this.table.$emit("expand-change",t,this.states.expandRows.slice()),this.scheduleLayout())},setExpandRowKeys:function(t){this.assertRowKey();var e=this.states,n=e.data,r=e.rowKey,i=_n(n,r);this.states.expandRows=t.reduce((function(t,e){var n=i[e];return n&&t.push(n.row),t}),[])},isRowExpanded:function(t){var e=this.states,n=e.expandRows,r=void 0===n?[]:n,i=e.rowKey;return i?!!_n(r,i)[bn(t,i)]:-1!==r.indexOf(t)}}},En={data:function(){return{states:{_currentRowKey:null,currentRow:null}}},methods:{setCurrentRowKey:function(t){this.assertRowKey(),this.states._currentRowKey=t,this.setCurrentRowByKey(t)},restoreCurrentRowKey:function(){this.states._currentRowKey=null},setCurrentRowByKey:function(t){var e=this.states,n=e.data,r=void 0===n?[]:n,i=e.rowKey,o=null;i&&(o=Object(g.arrayFind)(r,(function(e){return bn(e,i)===t}))),e.currentRow=o},updateCurrentRow:function(t){var e=this.states,n=this.table,r=e.currentRow;if(t&&t!==r)return e.currentRow=t,void n.$emit("current-change",t,r);!t&&r&&(e.currentRow=null,n.$emit("current-change",null,r))},updateCurrentRowData:function(){var t=this.states,e=this.table,n=t.rowKey,r=t._currentRowKey,i=t.data||[],o=t.currentRow;if(-1===i.indexOf(o)&&o){if(n){var a=bn(o,n);this.setCurrentRowByKey(a)}else t.currentRow=null;null===t.currentRow&&e.$emit("current-change",null,o)}else r&&(this.setCurrentRowByKey(r),this.restoreCurrentRowKey())}}},Tn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},An={data:function(){return{states:{expandRowKeys:[],treeData:{},indent:16,lazy:!1,lazyTreeNodeMap:{},lazyColumnIdentifier:"hasChildren",childrenColumnName:"children"}}},computed:{normalizedData:function(){if(!this.states.rowKey)return{};var t=this.states.data||[];return this.normalize(t)},normalizedLazyNode:function(){var t=this.states,e=t.rowKey,n=t.lazyTreeNodeMap,r=t.lazyColumnIdentifier,i=Object.keys(n),o={};return i.length?(i.forEach((function(t){if(n[t].length){var i={children:[]};n[t].forEach((function(t){var n=bn(t,e);i.children.push(n),t[r]&&!o[n]&&(o[n]={children:[]})})),o[t]=i}})),o):o}},watch:{normalizedData:"updateTreeData",normalizedLazyNode:"updateTreeData"},methods:{normalize:function(t){var e=this.states,n=e.childrenColumnName,r=e.lazyColumnIdentifier,i=e.rowKey,o=e.lazy,a={};return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hasChildren",i=function(t){return!(Array.isArray(t)&&t.length)};function o(t,a,s){e(t,a,s),a.forEach((function(t){if(t[r])e(t,null,s+1);else{var a=t[n];i(a)||o(t,a,s+1)}}))}t.forEach((function(t){if(t[r])e(t,null,0);else{var a=t[n];i(a)||o(t,a,0)}}))}(t,(function(t,e,n){var r=bn(t,i);Array.isArray(e)?a[r]={children:e.map((function(t){return bn(t,i)})),level:n}:o&&(a[r]={children:[],lazy:!0,level:n})}),n,r),a},updateTreeData:function(){var t=this.normalizedData,e=this.normalizedLazyNode,n=Object.keys(t),r={};if(n.length){var i=this.states,o=i.treeData,a=i.defaultExpandAll,s=i.expandRowKeys,u=i.lazy,l=[],c=function(t,e){var n=a||s&&-1!==s.indexOf(e);return!!(t&&t.expanded||n)};n.forEach((function(e){var n=o[e],i=Tn({},t[e]);if(i.expanded=c(n,e),i.lazy){var a=n||{},s=a.loaded,u=void 0!==s&&s,h=a.loading,f=void 0!==h&&h;i.loaded=!!u,i.loading=!!f,l.push(e)}r[e]=i}));var h=Object.keys(e);u&&h.length&&l.length&&h.forEach((function(t){var n=o[t],i=e[t].children;if(-1!==l.indexOf(t)){if(0!==r[t].children.length)throw new Error("[ElTable]children must be an empty array.");r[t].children=i}else{var a=n||{},s=a.loaded,u=void 0!==s&&s,h=a.loading,f=void 0!==h&&h;r[t]={lazy:!0,loaded:!!u,loading:!!f,expanded:c(n,t),children:i,level:""}}}))}this.states.treeData=r,this.updateTableScrollY()},updateTreeExpandKeys:function(t){this.states.expandRowKeys=t,this.updateTreeData()},toggleTreeExpansion:function(t,e){this.assertRowKey();var n=this.states,r=n.rowKey,i=n.treeData,o=bn(t,r),a=o&&i[o];if(o&&a&&"expanded"in a){var s=a.expanded;e=void 0===e?!a.expanded:e,i[o].expanded=e,s!==e&&this.table.$emit("expand-change",t,e),this.updateTableScrollY()}},loadOrToggle:function(t){this.assertRowKey();var e=this.states,n=e.lazy,r=e.treeData,i=e.rowKey,o=bn(t,i),a=r[o];n&&a&&"loaded"in a&&!a.loaded?this.loadData(t,o,a):this.toggleTreeExpansion(t)},loadData:function(t,e,n){var r=this,i=this.table.load,o=this.states.treeData;i&&!o[e].loaded&&(o[e].loading=!0,i(t,n,(function(n){if(!Array.isArray(n))throw new Error("[ElTable] data must be an array");var i=r.states,o=i.lazyTreeNodeMap,a=i.treeData;a[e].loading=!1,a[e].loaded=!0,a[e].expanded=!0,n.length&&r.$set(o,e,n),r.table.$emit("expand-change",t,!0)})))}}},Mn=function t(e){var n=[];return e.forEach((function(e){e.children?n.push.apply(n,t(e.children)):n.push(e)})),n},In=fn.a.extend({data:function(){return{states:{rowKey:null,data:[],isComplex:!1,_columns:[],originColumns:[],columns:[],fixedColumns:[],rightFixedColumns:[],leafColumns:[],fixedLeafColumns:[],rightFixedLeafColumns:[],leafColumnsLength:0,fixedLeafColumnsLength:0,rightFixedLeafColumnsLength:0,isAllSelected:!1,selection:[],reserveSelection:!1,selectOnIndeterminate:!1,selectable:null,filters:{},filteredData:null,sortingColumn:null,sortProp:null,sortOrder:null,hoverRow:null}}},mixins:[Cn,En,An],methods:{assertRowKey:function(){if(!this.states.rowKey)throw new Error("[ElTable] prop row-key is required")},updateColumns:function(){var t=this.states,e=t._columns||[];t.fixedColumns=e.filter((function(t){return!0===t.fixed||"left"===t.fixed})),t.rightFixedColumns=e.filter((function(t){return"right"===t.fixed})),t.fixedColumns.length>0&&e[0]&&"selection"===e[0].type&&!e[0].fixed&&(e[0].fixed=!0,t.fixedColumns.unshift(e[0]));var n=e.filter((function(t){return!t.fixed}));t.originColumns=[].concat(t.fixedColumns).concat(n).concat(t.rightFixedColumns);var r=Mn(n),i=Mn(t.fixedColumns),o=Mn(t.rightFixedColumns);t.leafColumnsLength=r.length,t.fixedLeafColumnsLength=i.length,t.rightFixedLeafColumnsLength=o.length,t.columns=[].concat(i).concat(r).concat(o),t.isComplex=t.fixedColumns.length>0||t.rightFixedColumns.length>0},scheduleLayout:function(t){t&&this.updateColumns(),this.table.debouncedUpdateLayout()},isSelected:function(t){var e=this.states.selection;return(void 0===e?[]:e).indexOf(t)>-1},clearSelection:function(){var t=this.states;t.isAllSelected=!1,t.selection.length&&(t.selection=[],this.table.$emit("selection-change",[]))},cleanSelection:function(){var t=this.states,e=t.data,n=t.rowKey,r=t.selection,i=void 0;if(n){i=[];var o=_n(r,n),a=_n(e,n);for(var s in o)o.hasOwnProperty(s)&&!a[s]&&i.push(o[s].row)}else i=r.filter((function(t){return-1===e.indexOf(t)}));if(i.length){var u=r.filter((function(t){return-1===i.indexOf(t)}));t.selection=u,this.table.$emit("selection-change",u.slice())}},toggleRowSelection:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Sn(this.states.selection,t,e);if(r){var i=(this.states.selection||[]).slice();n&&this.table.$emit("select",i,t),this.table.$emit("selection-change",i)}},_toggleAllSelection:function(){var t=this.states,e=t.data,n=void 0===e?[]:e,r=t.selection,i=t.selectOnIndeterminate?!t.isAllSelected:!(t.isAllSelected||r.length);t.isAllSelected=i;var o=!1;n.forEach((function(e,n){t.selectable?t.selectable.call(null,e,n)&&Sn(r,e,i)&&(o=!0):Sn(r,e,i)&&(o=!0)})),o&&this.table.$emit("selection-change",r?r.slice():[]),this.table.$emit("select-all",r)},updateSelectionByRowKey:function(){var t=this.states,e=t.selection,n=t.rowKey,r=t.data,i=_n(e,n);r.forEach((function(t){var r=bn(t,n),o=i[r];o&&(e[o.index]=t)}))},updateAllSelected:function(){var t=this.states,e=t.selection,n=t.rowKey,r=t.selectable,i=t.data||[];if(0!==i.length){var o=void 0;n&&(o=_n(e,n));for(var a,s=!0,u=0,l=0,c=i.length;l<c;l++){var h=i[l],f=r&&r.call(null,h,l);if(a=h,o?o[bn(a,n)]:-1!==e.indexOf(a))u++;else if(!r||f){s=!1;break}}0===u&&(s=!1),t.isAllSelected=s}else t.isAllSelected=!1},updateFilters:function(t,e){Array.isArray(t)||(t=[t]);var n=this.states,r={};return t.forEach((function(t){n.filters[t.id]=e,r[t.columnKey||t.id]=e})),r},updateSort:function(t,e,n){this.states.sortingColumn&&this.states.sortingColumn!==t&&(this.states.sortingColumn.order=null),this.states.sortingColumn=t,this.states.sortProp=e,this.states.sortOrder=n},execFilter:function(){var t=this,e=this.states,n=e._data,r=e.filters,i=n;Object.keys(r).forEach((function(n){var r=e.filters[n];if(r&&0!==r.length){var o=mn(t.states,n);o&&o.filterMethod&&(i=i.filter((function(t){return r.some((function(e){return o.filterMethod.call(null,e,t,o)}))})))}})),e.filteredData=i},execSort:function(){var t=this.states;t.data=function(t,e){var n=e.sortingColumn;return n&&"string"!=typeof n.sortable?vn(t,e.sortProp,e.sortOrder,n.sortMethod,n.sortBy):t}(t.filteredData,t)},execQuery:function(t){t&&t.filter||this.execFilter(),this.execSort()},clearFilter:function(t){var e=this.states,n=this.table.$refs,r=n.tableHeader,i=n.fixedTableHeader,o=n.rightFixedTableHeader,a={};r&&(a=Ut()(a,r.filterPanels)),i&&(a=Ut()(a,i.filterPanels)),o&&(a=Ut()(a,o.filterPanels));var s=Object.keys(a);if(s.length)if("string"==typeof t&&(t=[t]),Array.isArray(t)){var u=t.map((function(t){return function(t,e){for(var n=null,r=0;r<t.columns.length;r++){var i=t.columns[r];if(i.columnKey===e){n=i;break}}return n}(e,t)}));s.forEach((function(t){u.find((function(e){return e.id===t}))&&(a[t].filteredValue=[])})),this.commit("filterChange",{column:u,values:[],silent:!0,multi:!0})}else s.forEach((function(t){a[t].filteredValue=[]})),e.filters={},this.commit("filterChange",{column:{},values:[],silent:!0})},clearSort:function(){this.states.sortingColumn&&(this.updateSort(null,null,null),this.commit("changeSortCondition",{silent:!0}))},setExpandRowKeysAdapter:function(t){this.setExpandRowKeys(t),this.updateTreeExpandKeys(t)},toggleRowExpansionAdapter:function(t,e){this.states.columns.some((function(t){return"expand"===t.type}))?this.toggleRowExpansion(t,e):this.toggleTreeExpansion(t,e)}}});In.prototype.mutations={setData:function(t,e){var n=t._data!==e;t._data=e,this.execQuery(),this.updateCurrentRowData(),this.updateExpandRows(),t.reserveSelection?(this.assertRowKey(),this.updateSelectionByRowKey()):n?this.clearSelection():this.cleanSelection(),this.updateAllSelected(),this.updateTableScrollY()},insertColumn:function(t,e,n,r){var i=t._columns;r&&((i=r.children)||(i=r.children=[])),void 0!==n?i.splice(n,0,e):i.push(e),"selection"===e.type&&(t.selectable=e.selectable,t.reserveSelection=e.reserveSelection),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},removeColumn:function(t,e,n){var r=t._columns;n&&((r=n.children)||(r=n.children=[])),r&&r.splice(r.indexOf(e),1),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},sort:function(t,e){var n=e.prop,r=e.order,i=e.init;if(n){var o=Object(g.arrayFind)(t.columns,(function(t){return t.property===n}));o&&(o.order=r,this.updateSort(o,n,r),this.commit("changeSortCondition",{init:i}))}},changeSortCondition:function(t,e){var n=t.sortingColumn,r=t.sortProp,i=t.sortOrder;null===i&&(t.sortingColumn=null,t.sortProp=null);this.execQuery({filter:!0}),e&&(e.silent||e.init)||this.table.$emit("sort-change",{column:n,prop:r,order:i}),this.updateTableScrollY(),this.syncFixedTableRowHeight()},filterChange:function(t,e){var n=e.column,r=e.values,i=e.silent,o=this.updateFilters(n,r);this.execQuery(),i||this.table.$emit("filter-change",o),this.updateTableScrollY(),this.syncFixedTableRowHeight()},toggleAllSelection:function(){this.toggleAllSelection()},rowSelectedChanged:function(t,e){this.toggleRowSelection(e),this.updateAllSelected()},setHoverRow:function(t,e){t.hoverRow=e},setCurrentRow:function(t,e){this.updateCurrentRow(e)}},In.prototype.commit=function(t){var e=this.mutations;if(!e[t])throw new Error("Action not found: "+t);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e[t].apply(this,[this.states].concat(r))},In.prototype.updateTableScrollY=function(){fn.a.nextTick(this.table.updateScrollY)},In.prototype.syncFixedTableRowHeight=function(){var t=this;fn.a.nextTick((function(){return t.table.layout.syncFixedTableRowHeight()}))};var jn=In;function kn(t){var e={};return Object.keys(t).forEach((function(n){var r=t[n],i=void 0;"string"==typeof r?i=function(){return this.store.states[r]}:"function"==typeof r?i=function(){return r.call(this,this.store.states)}:console.error("invalid value type"),i&&(e[n]=i)})),e}var Pn=n(30),Ln=n.n(Pn);var Rn=function(){function t(e){for(var n in function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.observers=[],this.table=null,this.store=null,this.columns=null,this.fit=!0,this.showHeader=!0,this.height=null,this.scrollX=!1,this.scrollY=!1,this.bodyWidth=null,this.fixedWidth=null,this.rightFixedWidth=null,this.tableHeight=null,this.headerHeight=44,this.appendHeight=0,this.footerHeight=44,this.viewportHeight=null,this.bodyHeight=null,this.fixedBodyHeight=null,this.gutterWidth=Ln()(),this.fixedColumnsBodyRowsHeight={},e)e.hasOwnProperty(n)&&(this[n]=e[n]);if(!this.table)throw new Error("table is required for Table Layout");if(!this.store)throw new Error("store is required for Table Layout")}return t.prototype.updateScrollY=function(){if(null===this.height)return!1;var t=this.table.bodyWrapper;if(this.table.$el&&t){var e=t.querySelector(".el-table__body"),n=this.scrollY,r=e.offsetHeight>this.bodyHeight;return this.scrollY=r,n!==r}return!1},t.prototype.setHeight=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"height";if(!fn.a.prototype.$isServer){var r=this.table.$el;if(t=On(t),this.height=t,!r&&(t||0===t))return fn.a.nextTick((function(){return e.setHeight(t,n)}));"number"==typeof t?(r.style[n]=t+"px",this.updateElsHeight()):"string"==typeof t&&(r.style[n]=t,this.updateElsHeight())}},t.prototype.setMaxHeight=function(t){this.setHeight(t,"max-height")},t.prototype.getFlattenColumns=function(){var t=[];return this.table.columns.forEach((function(e){e.isColumnGroup?t.push.apply(t,e.columns):t.push(e)})),t},t.prototype.updateElsHeight=function(){var t=this;if(!this.table.$ready)return fn.a.nextTick((function(){return t.updateElsHeight()}));var e=this.table.$refs,n=e.headerWrapper,r=e.appendWrapper,i=e.footerWrapper;if(this.appendHeight=r?r.offsetHeight:0,!this.showHeader||n){var o=n?n.querySelector(".el-table__header tr"):null,a=this.headerDisplayNone(o),s=this.headerHeight=this.showHeader?n.offsetHeight:0;if(this.showHeader&&!a&&n.offsetWidth>0&&(this.table.columns||[]).length>0&&s<2)return fn.a.nextTick((function(){return t.updateElsHeight()}));var u=this.tableHeight=this.table.$el.clientHeight,l=this.footerHeight=i?i.offsetHeight:0;null!==this.height&&(this.bodyHeight=u-s-l+(i?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;var c=!(this.store.states.data&&this.store.states.data.length);this.viewportHeight=this.scrollX?u-(c?0:this.gutterWidth):u,setTimeout((function(){t.syncFixedTableRowHeight()})),this.updateScrollY(),this.notifyObservers("scrollable")}},t.prototype.syncFixedTableRowHeight=function(){var t=this.store.states.fixedColumns,e=this.store.states.rightFixedColumns;if(t.length+e.length!==0){var n=this.table.$refs.bodyWrapper,r=n.getBoundingClientRect();if(!(void 0!==r.height&&r.height<=0)){var i=n.querySelectorAll(".el-table__row")||[],o=[].reduce.call(i,(function(t,e,n){var r=e.getBoundingClientRect().height||"auto";return t[n]=r,t}),{});this.fixedColumnsBodyRowsHeight=o}}},t.prototype.headerDisplayNone=function(t){if(!t)return!0;for(var e=t;"DIV"!==e.tagName;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},t.prototype.updateColumnsWidth=function(){if(!fn.a.prototype.$isServer){var t=this.fit,e=this.table.$el.clientWidth,n=0,r=this.getFlattenColumns(),i=r.filter((function(t){return"number"!=typeof t.width}));if(r.forEach((function(t){"number"==typeof t.width&&t.realWidth&&(t.realWidth=null)})),i.length>0&&t){r.forEach((function(t){n+=t.width||t.minWidth||80}));var o=this.scrollY?this.gutterWidth:0;if(n<=e-o){this.scrollX=!1;var a=e-o-n;if(1===i.length)i[0].realWidth=(i[0].minWidth||80)+a;else{var s=a/i.reduce((function(t,e){return t+(e.minWidth||80)}),0),u=0;i.forEach((function(t,e){if(0!==e){var n=Math.floor((t.minWidth||80)*s);u+=n,t.realWidth=(t.minWidth||80)+n}})),i[0].realWidth=(i[0].minWidth||80)+a-u}}else this.scrollX=!0,i.forEach((function(t){t.realWidth=t.minWidth}));this.bodyWidth=Math.max(n,e),this.table.resizeState.width=this.bodyWidth}else r.forEach((function(t){t.width||t.minWidth?t.realWidth=t.width||t.minWidth:t.realWidth=80,n+=t.realWidth})),this.scrollX=n>e,this.bodyWidth=n;var l=this.store.states.fixedColumns;if(l.length>0){var c=0;l.forEach((function(t){c+=t.realWidth||t.width})),this.fixedWidth=c}var h=this.store.states.rightFixedColumns;if(h.length>0){var f=0;h.forEach((function(t){f+=t.realWidth||t.width})),this.rightFixedWidth=f}this.notifyObservers("columns")}},t.prototype.addObserver=function(t){this.observers.push(t)},t.prototype.removeObserver=function(t){var e=this.observers.indexOf(t);-1!==e&&this.observers.splice(e,1)},t.prototype.notifyObservers=function(t){var e=this;this.observers.forEach((function(n){switch(t){case"columns":n.onColumnsChange(e);break;case"scrollable":n.onScrollableChange(e);break;default:throw new Error("Table Layout don't have event "+t+".")}}))},t}(),Dn={created:function(){this.tableLayout.addObserver(this)},destroyed:function(){this.tableLayout.removeObserver(this)},computed:{tableLayout:function(){var t=this.layout;if(!t&&this.table&&(t=this.table.layout),!t)throw new Error("Can not find table layout.");return t}},mounted:function(){this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout)},updated:function(){this.__updated__||(this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout),this.__updated__=!0)},methods:{onColumnsChange:function(t){var e=this.$el.querySelectorAll("colgroup > col");if(e.length){var n=t.getFlattenColumns(),r={};n.forEach((function(t){r[t.id]=t}));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=a.getAttribute("name"),u=r[s];u&&a.setAttribute("width",u.realWidth||u.width)}}},onScrollableChange:function(t){for(var e=this.$el.querySelectorAll("colgroup > col[name=gutter]"),n=0,r=e.length;n<r;n++){e[n].setAttribute("width",t.scrollY?t.gutterWidth:"0")}for(var i=this.$el.querySelectorAll("th.gutter"),o=0,a=i.length;o<a;o++){var s=i[o];s.style.width=t.scrollY?t.gutterWidth+"px":"0",s.style.display=t.scrollY?"":"none"}}}},Nn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Bn={name:"ElTableRow",props:["columns","row","index","isSelected","isExpanded","store","context","firstDefaultColumnIndex","treeRowData","treeIndent","columnsHidden","getSpan","getColspanRealWidth","getCellStyle","getCellClass","handleCellMouseLeave","handleCellMouseEnter","fixed"],render:function(){var t=this,e=arguments[0],n=this.columns,r=this.row,i=this.index,o=this.store,a=this.context,s=this.firstDefaultColumnIndex,u=this.treeRowData,l=this.treeIndent,c=this.columnsHidden,h=void 0===c?[]:c,f=this.isSelected,d=this.isExpanded;return e("tr",[n.map((function(c,p){if(h[p]&&t.fixed)return null;var g=t.getSpan(r,c,i,p),v=g.rowspan,m=g.colspan;if(!v||!m)return null;var y=Nn({},c);y.realWidth=t.getColspanRealWidth(n,m,p);var b={store:o,isSelected:f,isExpanded:d,_self:a,column:y,row:r,$index:i};return p===s&&u&&(b.treeNode={indent:u.level*l,level:u.level},"boolean"==typeof u.expanded&&(b.treeNode.expanded=u.expanded,"loading"in u&&(b.treeNode.loading=u.loading),"noLazyChildren"in u&&(b.treeNode.noLazyChildren=u.noLazyChildren))),e("td",{style:t.getCellStyle(i,p,r,c),class:t.getCellClass(i,p,r,c),attrs:{rowspan:v,colspan:m},on:{mouseenter:function(e){return t.handleCellMouseEnter(e,r)},mouseleave:t.handleCellMouseLeave}},[c.renderCell.call(t._renderProxy,t.$createElement,b,h[p])])}))])}},Fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Vn={name:"ElTableBody",mixins:[Dn],components:{ElCheckbox:on.a,ElTooltip:Tt.a,TableRow:Bn},props:{store:{required:!0},stripe:Boolean,context:{},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:String,highlight:Boolean},render:function(t){var e=this,n=this.data||[];return t("table",{class:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("colgroup",[this.columns.filter((function(t,n){return!(e.columnsHidden[n]&&e.fixed)})).map((function(e){return t("col",{attrs:{name:e.id},key:e.id})}))]),t("tbody",[n.reduce((function(t,n){var r=e.store.isSelected(n),i=e.store.states.expandRows.indexOf(n)>-1;return t.concat(e.wrappedRowRender({row:n,$index:t.length,isSelected:r,isExpanded:i}))}),[]),t("el-tooltip",{attrs:{effect:this.table.tooltipEffect,placement:"top",content:this.tooltipContent},ref:"tooltip"})])])},computed:zn({table:function(){return this.$parent}},kn({data:"data",columns:"columns",treeIndent:"indent",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(t){return t.columns.length},leftFixedCount:function(t){return t.fixedColumns.length},rightFixedCount:function(t){return t.rightFixedColumns.length},hasExpandColumn:function(t){return t.columns.some((function(t){return"expand"===t.type}))}}),{columnsHidden:function(){var t=this;return this.columns.map((function(e,n){return t.isColumnHidden(n)}))},firstDefaultColumnIndex:function(){return Object(g.arrayFindIndex)(this.columns,(function(t){return"default"===t.type}))}}),watch:{"store.states.hoverRow":function(t,e){var n=this;if(this.store.states.isComplex&&!this.$isServer){var r=window.requestAnimationFrame;r||(r=function(t){return setTimeout(t,16)}),r((function(){var r=n.$el.querySelectorAll(".el-table__row"),i=r[e],o=r[t];i&&Object(pt.removeClass)(i,"hover-row"),o&&Object(pt.addClass)(o,"hover-row")}))}}},data:function(){return{tooltipContent:""}},created:function(){this.activateTooltip=I()(50,(function(t){return t.handleShowPopper()}))},methods:{getKeyOfRow:function(t,e){var n=this.table.rowKey;return n?bn(t,n):e},isColumnHidden:function(t){return!0===this.fixed||"left"===this.fixed?t>=this.leftFixedLeafCount:"right"===this.fixed?t<this.columnsCount-this.rightFixedLeafCount:t<this.leftFixedLeafCount||t>=this.columnsCount-this.rightFixedLeafCount},getSpan:function(t,e,n,r){var i=1,o=1,a=this.table.spanMethod;if("function"==typeof a){var s=a({row:t,column:e,rowIndex:n,columnIndex:r});Array.isArray(s)?(i=s[0],o=s[1]):"object"===(void 0===s?"undefined":Fn(s))&&(i=s.rowspan,o=s.colspan)}return{rowspan:i,colspan:o}},getRowStyle:function(t,e){var n=this.table.rowStyle;return"function"==typeof n?n.call(null,{row:t,rowIndex:e}):n||null},getRowClass:function(t,e){var n=["el-table__row"];this.table.highlightCurrentRow&&t===this.store.states.currentRow&&n.push("current-row"),this.stripe&&e%2==1&&n.push("el-table__row--striped");var r=this.table.rowClassName;return"string"==typeof r?n.push(r):"function"==typeof r&&n.push(r.call(null,{row:t,rowIndex:e})),this.store.states.expandRows.indexOf(t)>-1&&n.push("expanded"),n},getCellStyle:function(t,e,n,r){var i=this.table.cellStyle;return"function"==typeof i?i.call(null,{rowIndex:t,columnIndex:e,row:n,column:r}):i},getCellClass:function(t,e,n,r){var i=[r.id,r.align,r.className];this.isColumnHidden(e)&&i.push("is-hidden");var o=this.table.cellClassName;return"string"==typeof o?i.push(o):"function"==typeof o&&i.push(o.call(null,{rowIndex:t,columnIndex:e,row:n,column:r})),i.push("el-table__cell"),i.join(" ")},getColspanRealWidth:function(t,e,n){return e<1?t[n].realWidth:t.map((function(t){return t.realWidth})).slice(n,n+e).reduce((function(t,e){return t+e}),-1)},handleCellMouseEnter:function(t,e){var n=this.table,r=pn(t);if(r){var i=yn(n,r),o=n.hoverState={cell:r,column:i,row:e};n.$emit("cell-mouse-enter",o.row,o.column,o.cell,t)}var a=t.target.querySelector(".cell");if(Object(pt.hasClass)(a,"el-tooltip")&&a.childNodes.length){var s=document.createRange();if(s.setStart(a,0),s.setEnd(a,a.childNodes.length),(s.getBoundingClientRect().width+((parseInt(Object(pt.getStyle)(a,"paddingLeft"),10)||0)+(parseInt(Object(pt.getStyle)(a,"paddingRight"),10)||0))>a.offsetWidth||a.scrollWidth>a.offsetWidth)&&this.$refs.tooltip){var u=this.$refs.tooltip;this.tooltipContent=r.innerText||r.textContent,u.referenceElm=r,u.$refs.popper&&(u.$refs.popper.style.display="none"),u.doDestroy(),u.setExpectedState(!0),this.activateTooltip(u)}}},handleCellMouseLeave:function(t){var e=this.$refs.tooltip;if(e&&(e.setExpectedState(!1),e.handleClosePopper()),pn(t)){var n=this.table.hoverState||{};this.table.$emit("cell-mouse-leave",n.row,n.column,n.cell,t)}},handleMouseEnter:I()(30,(function(t){this.store.commit("setHoverRow",t)})),handleMouseLeave:I()(30,(function(){this.store.commit("setHoverRow",null)})),handleContextMenu:function(t,e){this.handleEvent(t,e,"contextmenu")},handleDoubleClick:function(t,e){this.handleEvent(t,e,"dblclick")},handleClick:function(t,e){this.store.commit("setCurrentRow",e),this.handleEvent(t,e,"click")},handleEvent:function(t,e,n){var r=this.table,i=pn(t),o=void 0;i&&(o=yn(r,i))&&r.$emit("cell-"+n,e,o,i,t),r.$emit("row-"+n,e,o,t)},getRowHeight:function(t){if(!this.fixed)return null;var e=(this.tableLayout.fixedColumnsBodyRowsHeight||{})[t];return"number"==typeof e?e+"px":e},rowRender:function(t){var e=this,n=t.row,r=t.$index,i=t.treeRowData,o=t.isSelected,a=t.isExpanded,s=this.$createElement,u=this.treeIndent,l=this.columns,c=this.firstDefaultColumnIndex,h=this.getRowClass(n,r),f=!0;i&&(h.push("el-table__row--level-"+i.level),f=i.display);var d=f?null:{display:"none"},p=this.getRowHeight(r),g=p?{height:p}:null;return s(Bn,{style:[d,this.getRowStyle(n,r),g],class:h,key:this.getKeyOfRow(n,r),nativeOn:{dblclick:function(t){return e.handleDoubleClick(t,n)},click:function(t){return e.handleClick(t,n)},contextmenu:function(t){return e.handleContextMenu(t,n)},mouseenter:function(t){return e.handleMouseEnter(r)},mouseleave:this.handleMouseLeave},attrs:{columns:l,row:n,index:r,store:this.store,context:this.context||this.table.$vnode.context,firstDefaultColumnIndex:c,treeRowData:i,treeIndent:u,columnsHidden:this.columnsHidden,getSpan:this.getSpan,getColspanRealWidth:this.getColspanRealWidth,getCellStyle:this.getCellStyle,getCellClass:this.getCellClass,handleCellMouseEnter:this.handleCellMouseEnter,handleCellMouseLeave:this.handleCellMouseLeave,isSelected:o,isExpanded:a,fixed:this.fixed}})},wrappedRowRender:function(t){var e=this,n=t.row,r=t.$index,i=t.isSelected,o=t.isExpanded,a=this.$createElement,s=this.store,u=s.isRowExpanded,l=s.assertRowKey,c=s.states,h=c.treeData,f=c.lazyTreeNodeMap,d=c.childrenColumnName,p=c.rowKey;if(this.hasExpandColumn&&u(n)){var g=this.table.renderExpanded,v=this.rowRender({row:n,$index:r,isSelected:i,isExpanded:o});return g?[[v,a("tr",{key:"expanded-row__"+v.key},[a("td",{attrs:{colspan:this.columnsCount},class:"el-table__cell el-table__expanded-cell"},[g(this.$createElement,{row:n,$index:r,store:this.store})])])]]:(console.error("[Element Error]renderExpanded is required."),v)}if(Object.keys(h).length){l();var m=bn(n,p),y=h[m],b=null;y&&(b={expanded:y.expanded,level:y.level,display:!0},"boolean"==typeof y.lazy&&("boolean"==typeof y.loaded&&y.loaded&&(b.noLazyChildren=!(y.children&&y.children.length)),b.loading=y.loading));var _=[this.rowRender({row:n,$index:r,treeRowData:b,isSelected:i,isExpanded:o})];if(y){var x=0;y.display=!0,function t(n,a){n&&n.length&&a&&n.forEach((function(n){var s={display:a.display&&a.expanded,level:a.level+1},u=bn(n,p);if(null==u)throw new Error("for nested data item, row-key is required.");if((y=zn({},h[u]))&&(s.expanded=y.expanded,y.level=y.level||s.level,y.display=!(!y.expanded||!s.display),"boolean"==typeof y.lazy&&("boolean"==typeof y.loaded&&y.loaded&&(s.noLazyChildren=!(y.children&&y.children.length)),s.loading=y.loading)),x++,_.push(e.rowRender({row:n,$index:r+x,treeRowData:s,isSelected:i,isExpanded:o})),y){var l=f[u]||n[d];t(l,y)}}))}(f[m]||n[d],y)}return _}return this.rowRender({row:n,$index:r,isSelected:i,isExpanded:o})}}},Un=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"}},[t.multiple?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("div",{staticClass:"el-table-filter__content"},[n("el-scrollbar",{attrs:{"wrap-class":"el-table-filter__wrap"}},[n("el-checkbox-group",{staticClass:"el-table-filter__checkbox-group",model:{value:t.filteredValue,callback:function(e){t.filteredValue=e},expression:"filteredValue"}},t._l(t.filters,(function(e){return n("el-checkbox",{key:e.value,attrs:{label:e.value}},[t._v(t._s(e.text))])})),1)],1)],1),n("div",{staticClass:"el-table-filter__bottom"},[n("button",{class:{"is-disabled":0===t.filteredValue.length},attrs:{disabled:0===t.filteredValue.length},on:{click:t.handleConfirm}},[t._v(t._s(t.t("el.table.confirmFilter")))]),n("button",{on:{click:t.handleReset}},[t._v(t._s(t.t("el.table.resetFilter")))])])]):n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("ul",{staticClass:"el-table-filter__list"},[n("li",{staticClass:"el-table-filter__list-item",class:{"is-active":void 0===t.filterValue||null===t.filterValue},on:{click:function(e){t.handleSelect(null)}}},[t._v(t._s(t.t("el.table.clearFilter")))]),t._l(t.filters,(function(e){return n("li",{key:e.value,staticClass:"el-table-filter__list-item",class:{"is-active":t.isActive(e)},attrs:{label:e.value},on:{click:function(n){t.handleSelect(e.value)}}},[t._v(t._s(e.text))])}))],2)])])};Un._withStripped=!0;var Gn=[];!fn.a.prototype.$isServer&&document.addEventListener("click",(function(t){Gn.forEach((function(e){var n=t.target;e&&e.$el&&(n===e.$el||e.$el.contains(n)||e.handleOutsideClick&&e.handleOutsideClick(t))}))}));var Hn=function(t){t&&Gn.push(t)},Wn=function(t){-1!==Gn.indexOf(t)&&Gn.splice(t,1)},Yn=n(31),Xn=n.n(Yn),$n=i({name:"ElTableFilterPanel",mixins:[R.a,p.a],directives:{Clickoutside:k.a},components:{ElCheckbox:on.a,ElCheckboxGroup:Xn.a,ElScrollbar:N.a},props:{placement:{type:String,default:"bottom-end"}},methods:{isActive:function(t){return t.value===this.filterValue},handleOutsideClick:function(){var t=this;setTimeout((function(){t.showPopper=!1}),16)},handleConfirm:function(){this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleReset:function(){this.filteredValue=[],this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleSelect:function(t){this.filterValue=t,null!=t?this.confirmFilter(this.filteredValue):this.confirmFilter([]),this.handleOutsideClick()},confirmFilter:function(t){this.table.store.commit("filterChange",{column:this.column,values:t}),this.table.store.updateAllSelected()}},data:function(){return{table:null,cell:null,column:null}},computed:{filters:function(){return this.column&&this.column.filters},filterValue:{get:function(){return(this.column.filteredValue||[])[0]},set:function(t){this.filteredValue&&(null!=t?this.filteredValue.splice(0,1,t):this.filteredValue.splice(0,1))}},filteredValue:{get:function(){return this.column&&this.column.filteredValue||[]},set:function(t){this.column&&(this.column.filteredValue=t)}},multiple:function(){return!this.column||this.column.filterMultiple}},mounted:function(){var t=this;this.popperElm=this.$el,this.referenceElm=this.cell,this.table.bodyWrapper.addEventListener("scroll",(function(){t.updatePopper()})),this.$watch("showPopper",(function(e){t.column&&(t.column.filterOpened=e),e?Hn(t):Wn(t)}))},watch:{showPopper:function(t){!0===t&&parseInt(this.popperJS._popper.style.zIndex,10)<b.PopupManager.zIndex&&(this.popperJS._popper.style.zIndex=b.PopupManager.nextZIndex())}}},Un,[],!1,null,null,null);$n.options.__file="packages/table/src/filter-panel.vue";var qn=$n.exports,Zn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Kn=function(t){var e=1;t.forEach((function(t){t.level=1,function t(n,r){if(r&&(n.level=r.level+1,e<n.level&&(e=n.level)),n.children){var i=0;n.children.forEach((function(e){t(e,n),i+=e.colSpan})),n.colSpan=i}else n.colSpan=1}(t)}));for(var n=[],r=0;r<e;r++)n.push([]);return function t(e){var n=[];return e.forEach((function(e){e.children?(n.push(e),n.push.apply(n,t(e.children))):n.push(e)})),n}(t).forEach((function(t){t.children?t.rowSpan=1:t.rowSpan=e-t.level+1,n[t.level-1].push(t)})),n},Qn={name:"ElTableHeader",mixins:[Dn],render:function(t){var e=this,n=this.store.states.originColumns,r=Kn(n,this.columns),i=r.length>1;return i&&(this.$parent.isGroup=!0),t("table",{class:"el-table__header",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("colgroup",[this.columns.map((function(e){return t("col",{attrs:{name:e.id},key:e.id})})),this.hasGutter?t("col",{attrs:{name:"gutter"}}):""]),t("thead",{class:[{"is-group":i,"has-gutter":this.hasGutter}]},[this._l(r,(function(n,r){return t("tr",{style:e.getHeaderRowStyle(r),class:e.getHeaderRowClass(r)},[n.map((function(i,o){return t("th",{attrs:{colspan:i.colSpan,rowspan:i.rowSpan},on:{mousemove:function(t){return e.handleMouseMove(t,i)},mouseout:e.handleMouseOut,mousedown:function(t){return e.handleMouseDown(t,i)},click:function(t){return e.handleHeaderClick(t,i)},contextmenu:function(t){return e.handleHeaderContextMenu(t,i)}},style:e.getHeaderCellStyle(r,o,n,i),class:e.getHeaderCellClass(r,o,n,i),key:i.id},[t("div",{class:["cell",i.filteredValue&&i.filteredValue.length>0?"highlight":"",i.labelClassName]},[i.renderHeader?i.renderHeader.call(e._renderProxy,t,{column:i,$index:o,store:e.store,_self:e.$parent.$vnode.context}):i.label,i.sortable?t("span",{class:"caret-wrapper",on:{click:function(t){return e.handleSortClick(t,i)}}},[t("i",{class:"sort-caret ascending",on:{click:function(t){return e.handleSortClick(t,i,"ascending")}}}),t("i",{class:"sort-caret descending",on:{click:function(t){return e.handleSortClick(t,i,"descending")}}})]):"",i.filterable?t("span",{class:"el-table__column-filter-trigger",on:{click:function(t){return e.handleFilterClick(t,i)}}},[t("i",{class:["el-icon-arrow-down",i.filterOpened?"el-icon-arrow-up":""]})]):""])])})),e.hasGutter?t("th",{class:"el-table__cell gutter"}):""])}))])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},components:{ElCheckbox:on.a},computed:Zn({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},kn({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(t){return t.columns.length},leftFixedCount:function(t){return t.fixedColumns.length},rightFixedCount:function(t){return t.rightFixedColumns.length}})),created:function(){this.filterPanels={}},mounted:function(){var t=this;this.$nextTick((function(){var e=t.defaultSort,n=e.prop,r=e.order;t.store.commit("sort",{prop:n,order:r,init:!0})}))},beforeDestroy:function(){var t=this.filterPanels;for(var e in t)t.hasOwnProperty(e)&&t[e]&&t[e].$destroy(!0)},methods:{isCellHidden:function(t,e){for(var n=0,r=0;r<t;r++)n+=e[r].colSpan;var i=n+e[t].colSpan-1;return!0===this.fixed||"left"===this.fixed?i>=this.leftFixedLeafCount:"right"===this.fixed?n<this.columnsCount-this.rightFixedLeafCount:i<this.leftFixedLeafCount||n>=this.columnsCount-this.rightFixedLeafCount},getHeaderRowStyle:function(t){var e=this.table.headerRowStyle;return"function"==typeof e?e.call(null,{rowIndex:t}):e},getHeaderRowClass:function(t){var e=[],n=this.table.headerRowClassName;return"string"==typeof n?e.push(n):"function"==typeof n&&e.push(n.call(null,{rowIndex:t})),e.join(" ")},getHeaderCellStyle:function(t,e,n,r){var i=this.table.headerCellStyle;return"function"==typeof i?i.call(null,{rowIndex:t,columnIndex:e,row:n,column:r}):i},getHeaderCellClass:function(t,e,n,r){var i=[r.id,r.order,r.headerAlign,r.className,r.labelClassName];0===t&&this.isCellHidden(e,n)&&i.push("is-hidden"),r.children||i.push("is-leaf"),r.sortable&&i.push("is-sortable");var o=this.table.headerCellClassName;return"string"==typeof o?i.push(o):"function"==typeof o&&i.push(o.call(null,{rowIndex:t,columnIndex:e,row:n,column:r})),i.push("el-table__cell"),i.join(" ")},toggleAllSelection:function(){this.store.commit("toggleAllSelection")},handleFilterClick:function(t,e){t.stopPropagation();var n=t.target,r="TH"===n.tagName?n:n.parentNode;if(!Object(pt.hasClass)(r,"noclick")){r=r.querySelector(".el-table__column-filter-trigger")||r;var i=this.$parent,o=this.filterPanels[e.id];o&&e.filterOpened?o.showPopper=!1:(o||(o=new fn.a(qn),this.filterPanels[e.id]=o,e.filterPlacement&&(o.placement=e.filterPlacement),o.table=i,o.cell=r,o.column=e,!this.$isServer&&o.$mount(document.createElement("div"))),setTimeout((function(){o.showPopper=!0}),16))}},handleHeaderClick:function(t,e){!e.filters&&e.sortable?this.handleSortClick(t,e):e.filterable&&!e.sortable&&this.handleFilterClick(t,e),this.$parent.$emit("header-click",e,t)},handleHeaderContextMenu:function(t,e){this.$parent.$emit("header-contextmenu",e,t)},handleMouseDown:function(t,e){var n=this;if(!this.$isServer&&!(e.children&&e.children.length>0)&&this.draggingColumn&&this.border){this.dragging=!0,this.$parent.resizeProxyVisible=!0;var r=this.$parent,i=r.$el.getBoundingClientRect().left,o=this.$el.querySelector("th."+e.id),a=o.getBoundingClientRect(),s=a.left-i+30;Object(pt.addClass)(o,"noclick"),this.dragState={startMouseLeft:t.clientX,startLeft:a.right-i,startColumnLeft:a.left-i,tableLeft:i};var u=r.$refs.resizeProxy;u.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var l=function(t){var e=t.clientX-n.dragState.startMouseLeft,r=n.dragState.startLeft+e;u.style.left=Math.max(s,r)+"px"};document.addEventListener("mousemove",l),document.addEventListener("mouseup",(function i(){if(n.dragging){var a=n.dragState,s=a.startColumnLeft,c=a.startLeft,h=parseInt(u.style.left,10)-s;e.width=e.realWidth=h,r.$emit("header-dragend",e.width,c-s,e,t),n.store.scheduleLayout(),document.body.style.cursor="",n.dragging=!1,n.draggingColumn=null,n.dragState={},r.resizeProxyVisible=!1}document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",i),document.onselectstart=null,document.ondragstart=null,setTimeout((function(){Object(pt.removeClass)(o,"noclick")}),0)}))}},handleMouseMove:function(t,e){if(!(e.children&&e.children.length>0)){for(var n=t.target;n&&"TH"!==n.tagName;)n=n.parentNode;if(e&&e.resizable&&!this.dragging&&this.border){var r=n.getBoundingClientRect(),i=document.body.style;r.width>12&&r.right-t.pageX<8?(i.cursor="col-resize",Object(pt.hasClass)(n,"is-sortable")&&(n.style.cursor="col-resize"),this.draggingColumn=e):this.dragging||(i.cursor="",Object(pt.hasClass)(n,"is-sortable")&&(n.style.cursor="pointer"),this.draggingColumn=null)}}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},toggleOrder:function(t){var e=t.order,n=t.sortOrders;if(""===e)return n[0];var r=n.indexOf(e||null);return n[r>n.length-2?0:r+1]},handleSortClick:function(t,e,n){t.stopPropagation();for(var r=e.order===n?null:n||this.toggleOrder(e),i=t.target;i&&"TH"!==i.tagName;)i=i.parentNode;if(i&&"TH"===i.tagName&&Object(pt.hasClass)(i,"noclick"))Object(pt.removeClass)(i,"noclick");else if(e.sortable){var o=this.store.states,a=o.sortProp,s=void 0,u=o.sortingColumn;(u!==e||u===e&&null===u.order)&&(u&&(u.order=null),o.sortingColumn=e,a=e.property),s=e.order=r||null,o.sortProp=a,o.sortOrder=s,this.store.commit("changeSortCondition")}}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},Jn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},tr={name:"ElTableFooter",mixins:[Dn],render:function(t){var e=this,n=[];return this.summaryMethod?n=this.summaryMethod({columns:this.columns,data:this.store.states.data}):this.columns.forEach((function(t,r){if(0!==r){var i=e.store.states.data.map((function(e){return Number(e[t.property])})),o=[],a=!0;i.forEach((function(t){if(!isNaN(t)){a=!1;var e=(""+t).split(".")[1];o.push(e?e.length:0)}}));var s=Math.max.apply(null,o);n[r]=a?"":i.reduce((function(t,e){var n=Number(e);return isNaN(n)?t:parseFloat((t+e).toFixed(Math.min(s,20)))}),0)}else n[r]=e.sumText})),t("table",{class:"el-table__footer",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("colgroup",[this.columns.map((function(e){return t("col",{attrs:{name:e.id},key:e.id})})),this.hasGutter?t("col",{attrs:{name:"gutter"}}):""]),t("tbody",{class:[{"has-gutter":this.hasGutter}]},[t("tr",[this.columns.map((function(r,i){return t("td",{key:i,attrs:{colspan:r.colSpan,rowspan:r.rowSpan},class:[].concat(e.getRowClasses(r,i),["el-table__cell"])},[t("div",{class:["cell",r.labelClassName]},[n[i]])])})),this.hasGutter?t("th",{class:"el-table__cell gutter"}):""])])])},props:{fixed:String,store:{required:!0},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},computed:Jn({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},kn({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(t){return t.columns.length},leftFixedCount:function(t){return t.fixedColumns.length},rightFixedCount:function(t){return t.rightFixedColumns.length}})),methods:{isCellHidden:function(t,e,n){if(!0===this.fixed||"left"===this.fixed)return t>=this.leftFixedLeafCount;if("right"===this.fixed){for(var r=0,i=0;i<t;i++)r+=e[i].colSpan;return r<this.columnsCount-this.rightFixedLeafCount}return!(this.fixed||!n.fixed)||(t<this.leftFixedCount||t>=this.columnsCount-this.rightFixedCount)},getRowClasses:function(t,e){var n=[t.id,t.align,t.labelClassName];return t.className&&n.push(t.className),this.isCellHidden(e,this.columns,t)&&n.push("is-hidden"),t.children||n.push("is-leaf"),n}}},er=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nr=1,rr=i({name:"ElTable",mixins:[p.a,w.a],directives:{Mousewheel:cn},props:{data:{type:Array,default:function(){return[]}},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],context:{},showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:function(){return{hasChildren:"hasChildren",children:"children"}}},lazy:Boolean,load:Function},components:{TableHeader:Qn,TableFooter:tr,TableBody:Vn,ElCheckbox:on.a},methods:{getMigratingConfig:function(){return{events:{expand:"expand is renamed to expand-change"}}},setCurrentRow:function(t){this.store.commit("setCurrentRow",t)},toggleRowSelection:function(t,e){this.store.toggleRowSelection(t,e,!1),this.store.updateAllSelected()},toggleRowExpansion:function(t,e){this.store.toggleRowExpansionAdapter(t,e)},clearSelection:function(){this.store.clearSelection()},clearFilter:function(t){this.store.clearFilter(t)},clearSort:function(){this.store.clearSort()},handleMouseLeave:function(){this.store.commit("setHoverRow",null),this.hoverState&&(this.hoverState=null)},updateScrollY:function(){this.layout.updateScrollY()&&(this.layout.notifyObservers("scrollable"),this.layout.updateColumnsWidth())},handleFixedMousewheel:function(t,e){var n=this.bodyWrapper;if(Math.abs(e.spinY)>0){var r=n.scrollTop;e.pixelY<0&&0!==r&&t.preventDefault(),e.pixelY>0&&n.scrollHeight-n.clientHeight>r&&t.preventDefault(),n.scrollTop+=Math.ceil(e.pixelY/5)}else n.scrollLeft+=Math.ceil(e.pixelX/5)},handleHeaderFooterMousewheel:function(t,e){var n=e.pixelX,r=e.pixelY;Math.abs(n)>=Math.abs(r)&&(this.bodyWrapper.scrollLeft+=e.pixelX/5)},syncPostion:Object(an.throttle)(20,(function(){var t=this.bodyWrapper,e=t.scrollLeft,n=t.scrollTop,r=t.offsetWidth,i=t.scrollWidth,o=this.$refs,a=o.headerWrapper,s=o.footerWrapper,u=o.fixedBodyWrapper,l=o.rightFixedBodyWrapper;a&&(a.scrollLeft=e),s&&(s.scrollLeft=e),u&&(u.scrollTop=n),l&&(l.scrollTop=n);var c=i-r-1;this.scrollPosition=e>=c?"right":0===e?"left":"middle"})),bindEvents:function(){this.bodyWrapper.addEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(Ne.addResizeListener)(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(Ne.removeResizeListener)(this.$el,this.resizeListener)},resizeListener:function(){if(this.$ready){var t=!1,e=this.$el,n=this.resizeState,r=n.width,i=n.height,o=e.offsetWidth;r!==o&&(t=!0);var a=e.offsetHeight;(this.height||this.shouldUpdateHeight)&&i!==a&&(t=!0),t&&(this.resizeState.width=o,this.resizeState.height=a,this.doLayout())}},doLayout:function(){this.shouldUpdateHeight&&this.layout.updateElsHeight(),this.layout.updateColumnsWidth()},sort:function(t,e){this.store.commit("sort",{prop:t,order:e})},toggleAllSelection:function(){this.store.commit("toggleAllSelection")}},computed:er({tableSize:function(){return this.size||(this.$ELEMENT||{}).size},bodyWrapper:function(){return this.$refs.bodyWrapper},shouldUpdateHeight:function(){return this.height||this.maxHeight||this.fixedColumns.length>0||this.rightFixedColumns.length>0},bodyWidth:function(){var t=this.layout,e=t.bodyWidth,n=t.scrollY,r=t.gutterWidth;return e?e-(n?r:0)+"px":""},bodyHeight:function(){var t=this.layout,e=t.headerHeight,n=void 0===e?0:e,r=t.bodyHeight,i=t.footerHeight,o=void 0===i?0:i;if(this.height)return{height:r?r+"px":""};if(this.maxHeight){var a=On(this.maxHeight);if("number"==typeof a)return{"max-height":a-o-(this.showHeader?n:0)+"px"}}return{}},fixedBodyHeight:function(){if(this.height)return{height:this.layout.fixedBodyHeight?this.layout.fixedBodyHeight+"px":""};if(this.maxHeight){var t=On(this.maxHeight);if("number"==typeof t)return t=this.layout.scrollX?t-this.layout.gutterWidth:t,this.showHeader&&(t-=this.layout.headerHeight),{"max-height":(t-=this.layout.footerHeight)+"px"}}return{}},fixedHeight:function(){return this.maxHeight?this.showSummary?{bottom:0}:{bottom:this.layout.scrollX&&this.data.length?this.layout.gutterWidth+"px":""}:this.showSummary?{height:this.layout.tableHeight?this.layout.tableHeight+"px":""}:{height:this.layout.viewportHeight?this.layout.viewportHeight+"px":""}},emptyBlockStyle:function(){if(this.data&&this.data.length)return null;var t="100%";return this.layout.appendHeight&&(t="calc(100% - "+this.layout.appendHeight+"px)"),{width:this.bodyWidth,height:t}}},kn({selection:"selection",columns:"columns",tableData:"data",fixedColumns:"fixedColumns",rightFixedColumns:"rightFixedColumns"})),watch:{height:{immediate:!0,handler:function(t){this.layout.setHeight(t)}},maxHeight:{immediate:!0,handler:function(t){this.layout.setMaxHeight(t)}},currentRowKey:{immediate:!0,handler:function(t){this.rowKey&&this.store.setCurrentRowKey(t)}},data:{immediate:!0,handler:function(t){this.store.commit("setData",t)}},expandRowKeys:{immediate:!0,handler:function(t){t&&this.store.setExpandRowKeysAdapter(t)}}},created:function(){var t=this;this.tableId="el-table_"+nr++,this.debouncedUpdateLayout=Object(an.debounce)(50,(function(){return t.doLayout()}))},mounted:function(){var t=this;this.bindEvents(),this.store.updateColumns(),this.doLayout(),this.resizeState={width:this.$el.offsetWidth,height:this.$el.offsetHeight},this.store.states.columns.forEach((function(e){e.filteredValue&&e.filteredValue.length&&t.store.commit("filterChange",{column:e,values:e.filteredValue,silent:!0})})),this.$ready=!0},destroyed:function(){this.unbindEvents()},data:function(){var t=this.treeProps,e=t.hasChildren,n=void 0===e?"hasChildren":e,r=t.children,i=void 0===r?"children":r;return this.store=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("Table is required.");var n=new jn;return n.table=t,n.toggleAllSelection=I()(10,n._toggleAllSelection),Object.keys(e).forEach((function(t){n.states[t]=e[t]})),n}(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:n,childrenColumnName:i}),{layout:new Rn({store:this.store,table:this,fit:this.fit,showHeader:this.showHeader}),isHidden:!1,renderExpanded:null,resizeProxyVisible:!1,resizeState:{width:null,height:null},isGroup:!1,scrollPosition:"left"}}},nn,[],!1,null,null,null);rr.options.__file="packages/table/src/table.vue";var ir=rr.exports;ir.install=function(t){t.component(ir.name,ir)};var or=ir,ar={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:"",className:"el-table-column--selection"},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},sr={selection:{renderHeader:function(t,e){var n=e.store;return t("el-checkbox",{attrs:{disabled:n.states.data&&0===n.states.data.length,indeterminate:n.states.selection.length>0&&!this.isAllSelected,value:this.isAllSelected},on:{input:this.toggleAllSelection}})},renderCell:function(t,e){var n=e.row,r=e.column,i=e.isSelected,o=e.store,a=e.$index;return t("el-checkbox",{nativeOn:{click:function(t){return t.stopPropagation()}},attrs:{value:i,disabled:!!r.selectable&&!r.selectable.call(null,n,a)},on:{input:function(){o.commit("rowSelectedChanged",n)}}})},sortable:!1,resizable:!1},index:{renderHeader:function(t,e){return e.column.label||"#"},renderCell:function(t,e){var n=e.$index,r=n+1,i=e.column.index;return"number"==typeof i?r=n+i:"function"==typeof i&&(r=i(n)),t("div",[r])},sortable:!1},expand:{renderHeader:function(t,e){return e.column.label||""},renderCell:function(t,e){var n=e.row,r=e.store,i=["el-table__expand-icon"];e.isExpanded&&i.push("el-table__expand-icon--expanded");return t("div",{class:i,on:{click:function(t){t.stopPropagation(),r.toggleRowExpansion(n)}}},[t("i",{class:"el-icon el-icon-arrow-right"})])},sortable:!1,resizable:!1,className:"el-table__expand-column"}};function ur(t,e){var n=e.row,r=e.column,i=e.$index,o=r.property,a=o&&Object(g.getPropByPath)(n,o).v;return r&&r.formatter?r.formatter(n,r,a,i):a}var lr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},cr=1,hr={name:"ElTableColumn",props:{type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{},minWidth:{},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:function(){return["ascending","descending",null]},validator:function(t){return t.every((function(t){return["ascending","descending",null].indexOf(t)>-1}))}}},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){for(var t=this.$parent;t&&!t.tableId;)t=t.$parent;return t},columnOrTableParent:function(){for(var t=this.$parent;t&&!t.tableId&&!t.columnId;)t=t.$parent;return t},realWidth:function(){return wn(this.width)},realMinWidth:function(){return void 0!==(t=this.minWidth)&&(t=wn(t),isNaN(t)&&(t=80)),t;var t},realAlign:function(){return this.align?"is-"+this.align:null},realHeaderAlign:function(){return this.headerAlign?"is-"+this.headerAlign:this.realAlign}},methods:{getPropsData:function(){for(var t=this,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.reduce((function(e,n){return Array.isArray(n)&&n.forEach((function(n){e[n]=t[n]})),e}),{})},getColumnElIndex:function(t,e){return[].indexOf.call(t,e)},setColumnWidth:function(t){return this.realWidth&&(t.width=this.realWidth),this.realMinWidth&&(t.minWidth=this.realMinWidth),t.minWidth||(t.minWidth=80),t.realWidth=void 0===t.width?t.minWidth:t.width,t},setColumnForcedProps:function(t){var e=t.type,n=sr[e]||{};return Object.keys(n).forEach((function(e){var r=n[e];void 0!==r&&(t[e]="className"===e?t[e]+" "+r:r)})),t},setColumnRenders:function(t){var e=this;this.$createElement;this.renderHeader?console.warn("[Element Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==t.type&&(t.renderHeader=function(n,r){var i=e.$scopedSlots.header;return i?i(r):t.label});var n=t.renderCell;return"expand"===t.type?(t.renderCell=function(t,e){return t("div",{class:"cell"},[n(t,e)])},this.owner.renderExpanded=function(t,n){return e.$scopedSlots.default?e.$scopedSlots.default(n):e.$slots.default}):(n=n||ur,t.renderCell=function(r,i){var o=null;o=e.$scopedSlots.default?e.$scopedSlots.default(i):n(r,i);var a=function(t,e){var n=e.row,r=e.treeNode,i=e.store;if(!r)return null;var o=[];if(r.indent&&o.push(t("span",{class:"el-table__indent",style:{"padding-left":r.indent+"px"}})),"boolean"!=typeof r.expanded||r.noLazyChildren)o.push(t("span",{class:"el-table__placeholder"}));else{var a=["el-table__expand-icon",r.expanded?"el-table__expand-icon--expanded":""],s=["el-icon-arrow-right"];r.loading&&(s=["el-icon-loading"]),o.push(t("div",{class:a,on:{click:function(t){t.stopPropagation(),i.loadOrToggle(n)}}},[t("i",{class:s})]))}return o}(r,i),s={class:"cell",style:{}};return t.showOverflowTooltip&&(s.class+=" el-tooltip",s.style={width:(i.column.realWidth||i.column.width)-1+"px"}),r("div",s,[a,o])}),t},registerNormalWatchers:function(){var t=this,e={prop:"property",realAlign:"align",realHeaderAlign:"headerAlign",realWidth:"width"},n=["label","property","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"].reduce((function(t,e){return t[e]=e,t}),e);Object.keys(n).forEach((function(n){var r=e[n];t.$watch(n,(function(e){t.columnConfig[r]=e}))}))},registerComplexWatchers:function(){var t=this,e={realWidth:"width",realMinWidth:"minWidth"},n=["fixed"].reduce((function(t,e){return t[e]=e,t}),e);Object.keys(n).forEach((function(n){var r=e[n];t.$watch(n,(function(e){t.columnConfig[r]=e;var n="fixed"===r;t.owner.store.scheduleLayout(n)}))}))}},components:{ElCheckbox:on.a},beforeCreate:function(){this.row={},this.column={},this.$index=0,this.columnId=""},created:function(){var t=this.columnOrTableParent;this.isSubColumn=this.owner!==t,this.columnId=(t.tableId||t.columnId)+"_column_"+cr++;var e=this.type||"default",n=""===this.sortable||this.sortable,r=lr({},ar[e],{id:this.columnId,type:e,property:this.prop||this.property,align:this.realAlign,headerAlign:this.realHeaderAlign,showOverflowTooltip:this.showOverflowTooltip||this.showTooltipWhenOverflow,filterable:this.filters||this.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,filterOpened:!1,sortable:n,index:this.index}),i=this.getPropsData(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);i=function(t,e){var n={},r=void 0;for(r in t)n[r]=t[r];for(r in e)if(xn(e,r)){var i=e[r];void 0!==i&&(n[r]=i)}return n}(r,i),i=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}(this.setColumnRenders,this.setColumnWidth,this.setColumnForcedProps)(i),this.columnConfig=i,this.registerNormalWatchers(),this.registerComplexWatchers()},mounted:function(){var t=this.owner,e=this.columnOrTableParent,n=this.isSubColumn?e.$el.children:e.$refs.hiddenColumns.children,r=this.getColumnElIndex(n,this.$el);t.store.commit("insertColumn",this.columnConfig,r,this.isSubColumn?e.columnConfig:null)},destroyed:function(){if(this.$parent){var t=this.$parent;this.owner.store.commit("removeColumn",this.columnConfig,this.isSubColumn?t.columnConfig:null)}},render:function(t){return t("div",this.$slots.default)},install:function(t){t.component(hr.name,hr)}},fr=hr,dr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.ranged?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor el-range-editor el-input__inner",class:["el-date-editor--"+t.type,t.pickerSize?"el-range-editor--"+t.pickerSize:"",t.pickerDisabled?"is-disabled":"",t.pickerVisible?"is-active":""],on:{click:t.handleRangeClick,mouseenter:t.handleMouseEnter,mouseleave:function(e){t.showClose=!1},keydown:t.handleKeydown}},[n("i",{class:["el-input__icon","el-range__icon",t.triggerClass]}),n("input",t._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:t.startPlaceholder,disabled:t.pickerDisabled,readonly:!t.editable||t.readonly,name:t.name&&t.name[0]},domProps:{value:t.displayValue&&t.displayValue[0]},on:{input:t.handleStartInput,change:t.handleStartChange,focus:t.handleFocus}},"input",t.firstInputId,!1)),t._t("range-separator",[n("span",{staticClass:"el-range-separator"},[t._v(t._s(t.rangeSeparator))])]),n("input",t._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:t.endPlaceholder,disabled:t.pickerDisabled,readonly:!t.editable||t.readonly,name:t.name&&t.name[1]},domProps:{value:t.displayValue&&t.displayValue[1]},on:{input:t.handleEndInput,change:t.handleEndChange,focus:t.handleFocus}},"input",t.secondInputId,!1)),t.haveTrigger?n("i",{staticClass:"el-input__icon el-range__close-icon",class:[t.showClose?""+t.clearIcon:""],on:{click:t.handleClickIcon}}):t._e()],2):n("el-input",t._b({directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor",class:"el-date-editor--"+t.type,attrs:{readonly:!t.editable||t.readonly||"dates"===t.type||"week"===t.type,disabled:t.pickerDisabled,size:t.pickerSize,name:t.name,placeholder:t.placeholder,value:t.displayValue,validateEvent:!1},on:{focus:t.handleFocus,input:function(e){return t.userInput=e},change:t.handleChange},nativeOn:{keydown:function(e){return t.handleKeydown(e)},mouseenter:function(e){return t.handleMouseEnter(e)},mouseleave:function(e){t.showClose=!1}}},"el-input",t.firstInputId,!1),[n("i",{staticClass:"el-input__icon",class:t.triggerClass,attrs:{slot:"prefix"},on:{click:t.handleFocus},slot:"prefix"}),t.haveTrigger?n("i",{staticClass:"el-input__icon",class:[t.showClose?""+t.clearIcon:""],attrs:{slot:"suffix"},on:{click:t.handleClickIcon},slot:"suffix"}):t._e()])};dr._withStripped=!0;var pr=n(0),gr={props:{appendToBody:R.a.props.appendToBody,offset:R.a.props.offset,boundariesPadding:R.a.props.boundariesPadding,arrowOffset:R.a.props.arrowOffset},methods:R.a.methods,data:function(){return Ut()({visibleArrow:!0},R.a.data)},beforeDestroy:R.a.beforeDestroy},vr={date:"yyyy-MM-dd",month:"yyyy-MM",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",week:"yyyywWW",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",monthrange:"yyyy-MM",datetimerange:"yyyy-MM-dd HH:mm:ss",year:"yyyy"},mr=["date","datetime","time","time-select","week","month","year","daterange","monthrange","timerange","datetimerange","dates"],yr=function(t,e){return"timestamp"===e?t.getTime():Object(pr.formatDate)(t,e)},br=function(t,e){return"timestamp"===e?new Date(Number(t)):Object(pr.parseDate)(t,e)},_r=function(t,e){if(Array.isArray(t)&&2===t.length){var n=t[0],r=t[1];if(n&&r)return[yr(n,e),yr(r,e)]}return""},xr=function(t,e,n){if(Array.isArray(t)||(t=t.split(n)),2===t.length){var r=t[0],i=t[1];return[br(r,e),br(i,e)]}return[]},wr={default:{formatter:function(t){return t?""+t:""},parser:function(t){return void 0===t||""===t?null:t}},week:{formatter:function(t,e){var n=Object(pr.getWeekNumber)(t),r=t.getMonth(),i=new Date(t);1===n&&11===r&&(i.setHours(0,0,0,0),i.setDate(i.getDate()+3-(i.getDay()+6)%7));var o=Object(pr.formatDate)(i,e);return o=/WW/.test(o)?o.replace(/WW/,n<10?"0"+n:n):o.replace(/W/,n)},parser:function(t,e){return wr.date.parser(t,e)}},date:{formatter:yr,parser:br},datetime:{formatter:yr,parser:br},daterange:{formatter:_r,parser:xr},monthrange:{formatter:_r,parser:xr},datetimerange:{formatter:_r,parser:xr},timerange:{formatter:_r,parser:xr},time:{formatter:yr,parser:br},month:{formatter:yr,parser:br},year:{formatter:yr,parser:br},number:{formatter:function(t){return t?""+t:""},parser:function(t){var e=Number(t);return isNaN(t)?null:e}},dates:{formatter:function(t,e){return t.map((function(t){return yr(t,e)}))},parser:function(t,e){return("string"==typeof t?t.split(", "):t).map((function(t){return t instanceof Date?t:br(t,e)}))}}},Or={left:"bottom-start",center:"bottom",right:"bottom-end"},Sr=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"-";if(!t)return null;var i=(wr[n]||wr.default).parser,o=e||vr[n];return i(t,o,r)},Cr=function(t,e,n){return t?(0,(wr[n]||wr.default).formatter)(t,e||vr[n]):null},Er=function(t,e){var n=function(t,e){var n=t instanceof Date,r=e instanceof Date;return n&&r?t.getTime()===e.getTime():!n&&!r&&t===e},r=t instanceof Array,i=e instanceof Array;return r&&i?t.length===e.length&&t.every((function(t,r){return n(t,e[r])})):!r&&!i&&n(t,e)},Tr=function(t){return"string"==typeof t||t instanceof String},Ar=function(t){return null==t||Tr(t)||Array.isArray(t)&&2===t.length&&t.every(Tr)},Mr=i({mixins:[S.a,gr],inject:{elForm:{default:""},elFormItem:{default:""}},props:{size:String,format:String,valueFormat:String,readonly:Boolean,placeholder:String,startPlaceholder:String,endPlaceholder:String,prefixIcon:String,clearIcon:{type:String,default:"el-icon-circle-close"},name:{default:"",validator:Ar},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:Ar},popperClass:String,editable:{type:Boolean,default:!0},align:{type:String,default:"left"},value:{},defaultValue:{},defaultTime:{},rangeSeparator:{default:"-"},pickerOptions:{},unlinkPanels:Boolean,validateEvent:{type:Boolean,default:!0}},components:{ElInput:f.a},directives:{Clickoutside:k.a},data:function(){return{pickerVisible:!1,showClose:!1,userInput:null,valueOnOpen:null,unwatchPickerOptions:null}},watch:{pickerVisible:function(t){this.readonly||this.pickerDisabled||(t?(this.showPicker(),this.valueOnOpen=Array.isArray(this.value)?[].concat(this.value):this.value):(this.hidePicker(),this.emitChange(this.value),this.userInput=null,this.validateEvent&&this.dispatch("ElFormItem","el.form.blur"),this.$emit("blur",this),this.blur()))},parsedValue:{immediate:!0,handler:function(t){this.picker&&(this.picker.value=t)}},defaultValue:function(t){this.picker&&(this.picker.defaultValue=t)},value:function(t,e){Er(t,e)||this.pickerVisible||!this.validateEvent||this.dispatch("ElFormItem","el.form.change",t)}},computed:{ranged:function(){return this.type.indexOf("range")>-1},reference:function(){var t=this.$refs.reference;return t.$el||t},refInput:function(){return this.reference?[].slice.call(this.reference.querySelectorAll("input")):[]},valueIsEmpty:function(){var t=this.value;if(Array.isArray(t)){for(var e=0,n=t.length;e<n;e++)if(t[e])return!1}else if(t)return!1;return!0},triggerClass:function(){return this.prefixIcon||(-1!==this.type.indexOf("time")?"el-icon-time":"el-icon-date")},selectionMode:function(){return"week"===this.type?"week":"month"===this.type?"month":"year"===this.type?"year":"dates"===this.type?"dates":"day"},haveTrigger:function(){return void 0!==this.showTrigger?this.showTrigger:-1!==mr.indexOf(this.type)},displayValue:function(){var t=Cr(this.parsedValue,this.format,this.type,this.rangeSeparator);return Array.isArray(this.userInput)?[this.userInput[0]||t&&t[0]||"",this.userInput[1]||t&&t[1]||""]:null!==this.userInput?this.userInput:t?"dates"===this.type?t.join(", "):t:""},parsedValue:function(){return this.value?"time-select"===this.type||Object(pr.isDateObject)(this.value)||Array.isArray(this.value)&&this.value.every(pr.isDateObject)?this.value:this.valueFormat?Sr(this.value,this.valueFormat,this.type,this.rangeSeparator)||this.value:Array.isArray(this.value)?this.value.map((function(t){return new Date(t)})):new Date(this.value):this.value},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},pickerSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},pickerDisabled:function(){return this.disabled||(this.elForm||{}).disabled},firstInputId:function(){var t={},e=void 0;return(e=this.ranged?this.id&&this.id[0]:this.id)&&(t.id=e),t},secondInputId:function(){var t={},e=void 0;return this.ranged&&(e=this.id&&this.id[1]),e&&(t.id=e),t}},created:function(){this.popperOptions={boundariesPadding:0,gpuAcceleration:!1},this.placement=Or[this.align]||Or.left,this.$on("fieldReset",this.handleFieldReset)},methods:{focus:function(){this.ranged?this.handleFocus():this.$refs.reference.focus()},blur:function(){this.refInput.forEach((function(t){return t.blur()}))},parseValue:function(t){var e=Object(pr.isDateObject)(t)||Array.isArray(t)&&t.every(pr.isDateObject);return this.valueFormat&&!e&&Sr(t,this.valueFormat,this.type,this.rangeSeparator)||t},formatToValue:function(t){var e=Object(pr.isDateObject)(t)||Array.isArray(t)&&t.every(pr.isDateObject);return this.valueFormat&&e?Cr(t,this.valueFormat,this.type,this.rangeSeparator):t},parseString:function(t){var e=Array.isArray(t)?this.type:this.type.replace("range","");return Sr(t,this.format,e)},formatToString:function(t){var e=Array.isArray(t)?this.type:this.type.replace("range","");return Cr(t,this.format,e)},handleMouseEnter:function(){this.readonly||this.pickerDisabled||!this.valueIsEmpty&&this.clearable&&(this.showClose=!0)},handleChange:function(){if(this.userInput){var t=this.parseString(this.displayValue);t&&(this.picker.value=t,this.isValidValue(t)&&(this.emitInput(t),this.userInput=null))}""===this.userInput&&(this.emitInput(null),this.emitChange(null),this.userInput=null)},handleStartInput:function(t){this.userInput?this.userInput=[t.target.value,this.userInput[1]]:this.userInput=[t.target.value,null]},handleEndInput:function(t){this.userInput?this.userInput=[this.userInput[0],t.target.value]:this.userInput=[null,t.target.value]},handleStartChange:function(t){var e=this.parseString(this.userInput&&this.userInput[0]);if(e){this.userInput=[this.formatToString(e),this.displayValue[1]];var n=[e,this.picker.value&&this.picker.value[1]];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleEndChange:function(t){var e=this.parseString(this.userInput&&this.userInput[1]);if(e){this.userInput=[this.displayValue[0],this.formatToString(e)];var n=[this.picker.value&&this.picker.value[0],e];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleClickIcon:function(t){this.readonly||this.pickerDisabled||(this.showClose?(this.valueOnOpen=this.value,t.stopPropagation(),this.emitInput(null),this.emitChange(null),this.showClose=!1,this.picker&&"function"==typeof this.picker.handleClear&&this.picker.handleClear()):this.pickerVisible=!this.pickerVisible)},handleClose:function(){if(this.pickerVisible&&(this.pickerVisible=!1,"dates"===this.type)){var t=Sr(this.valueOnOpen,this.valueFormat,this.type,this.rangeSeparator)||this.valueOnOpen;this.emitInput(t)}},handleFieldReset:function(t){this.userInput=""===t?null:t},handleFocus:function(){var t=this.type;-1===mr.indexOf(t)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},handleKeydown:function(t){var e=this,n=t.keyCode;return 27===n?(this.pickerVisible=!1,void t.stopPropagation()):9!==n?13===n?((""===this.userInput||this.isValidValue(this.parseString(this.displayValue)))&&(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur()),void t.stopPropagation()):void(this.userInput?t.stopPropagation():this.picker&&this.picker.handleKeydown&&this.picker.handleKeydown(t)):void(this.ranged?setTimeout((function(){-1===e.refInput.indexOf(document.activeElement)&&(e.pickerVisible=!1,e.blur(),t.stopPropagation())}),0):(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur(),t.stopPropagation()))},handleRangeClick:function(){var t=this.type;-1===mr.indexOf(t)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},hidePicker:function(){this.picker&&(this.picker.resetView&&this.picker.resetView(),this.pickerVisible=this.picker.visible=!1,this.destroyPopper())},showPicker:function(){var t=this;this.$isServer||(this.picker||this.mountPicker(),this.pickerVisible=this.picker.visible=!0,this.updatePopper(),this.picker.value=this.parsedValue,this.picker.resetView&&this.picker.resetView(),this.$nextTick((function(){t.picker.adjustSpinners&&t.picker.adjustSpinners()})))},mountPicker:function(){var t=this;this.picker=new fn.a(this.panel).$mount(),this.picker.defaultValue=this.defaultValue,this.picker.defaultTime=this.defaultTime,this.picker.popperClass=this.popperClass,this.popperElm=this.picker.$el,this.picker.width=this.reference.getBoundingClientRect().width,this.picker.showTime="datetime"===this.type||"datetimerange"===this.type,this.picker.selectionMode=this.selectionMode,this.picker.unlinkPanels=this.unlinkPanels,this.picker.arrowControl=this.arrowControl||this.timeArrowControl||!1,this.$watch("format",(function(e){t.picker.format=e}));var e=function(){var e=t.pickerOptions;if(e&&e.selectableRange){var n=e.selectableRange,r=wr.datetimerange.parser,i=vr.timerange;n=Array.isArray(n)?n:[n],t.picker.selectableRange=n.map((function(e){return r(e,i,t.rangeSeparator)}))}for(var o in e)e.hasOwnProperty(o)&&"selectableRange"!==o&&(t.picker[o]=e[o]);t.format&&(t.picker.format=t.format)};e(),this.unwatchPickerOptions=this.$watch("pickerOptions",(function(){return e()}),{deep:!0}),this.$el.appendChild(this.picker.$el),this.picker.resetView&&this.picker.resetView(),this.picker.$on("dodestroy",this.doDestroy),this.picker.$on("pick",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.userInput=null,t.pickerVisible=t.picker.visible=n,t.emitInput(e),t.picker.resetView&&t.picker.resetView()})),this.picker.$on("select-range",(function(e,n,r){0!==t.refInput.length&&(r&&"min"!==r?"max"===r&&(t.refInput[1].setSelectionRange(e,n),t.refInput[1].focus()):(t.refInput[0].setSelectionRange(e,n),t.refInput[0].focus()))}))},unmountPicker:function(){this.picker&&(this.picker.$destroy(),this.picker.$off(),"function"==typeof this.unwatchPickerOptions&&this.unwatchPickerOptions(),this.picker.$el.parentNode.removeChild(this.picker.$el))},emitChange:function(t){Er(t,this.valueOnOpen)||(this.$emit("change",t),this.valueOnOpen=t,this.validateEvent&&this.dispatch("ElFormItem","el.form.change",t))},emitInput:function(t){var e=this.formatToValue(t);Er(this.value,e)||this.$emit("input",e)},isValidValue:function(t){return this.picker||this.mountPicker(),!this.picker.isValidValue||t&&this.picker.isValidValue(t)}}},dr,[],!1,null,null,null);Mr.options.__file="packages/date-picker/src/picker.vue";var Ir=Mr.exports,jr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-enter":t.handleEnter,"after-leave":t.handleLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-picker el-popper",class:[{"has-sidebar":t.$slots.sidebar||t.shortcuts,"has-time":t.showTime},t.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[t._t("sidebar"),t.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},t._l(t.shortcuts,(function(e,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){t.handleShortcutClick(e)}}},[t._v(t._s(e.text))])})),0):t._e(),n("div",{staticClass:"el-picker-panel__body"},[t.showTime?n("div",{staticClass:"el-date-picker__time-header"},[n("span",{staticClass:"el-date-picker__editor-wrap"},[n("el-input",{attrs:{placeholder:t.t("el.datepicker.selectDate"),value:t.visibleDate,size:"small"},on:{input:function(e){return t.userInputDate=e},change:t.handleVisibleDateChange}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleTimePickClose,expression:"handleTimePickClose"}],staticClass:"el-date-picker__editor-wrap"},[n("el-input",{ref:"input",attrs:{placeholder:t.t("el.datepicker.selectTime"),value:t.visibleTime,size:"small"},on:{focus:function(e){t.timePickerVisible=!0},input:function(e){return t.userInputTime=e},change:t.handleVisibleTimeChange}}),n("time-picker",{ref:"timepicker",attrs:{"time-arrow-control":t.arrowControl,visible:t.timePickerVisible},on:{pick:t.handleTimePick,mounted:t.proxyTimePickerDataProperties}})],1)]):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:"time"!==t.currentView,expression:"currentView !== 'time'"}],staticClass:"el-date-picker__header",class:{"el-date-picker__header--bordered":"year"===t.currentView||"month"===t.currentView}},[n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-d-arrow-left",attrs:{type:"button","aria-label":t.t("el.datepicker.prevYear")},on:{click:t.prevYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===t.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-arrow-left",attrs:{type:"button","aria-label":t.t("el.datepicker.prevMonth")},on:{click:t.prevMonth}}),n("span",{staticClass:"el-date-picker__header-label",attrs:{role:"button"},on:{click:t.showYearPicker}},[t._v(t._s(t.yearLabel))]),n("span",{directives:[{name:"show",rawName:"v-show",value:"date"===t.currentView,expression:"currentView === 'date'"}],staticClass:"el-date-picker__header-label",class:{active:"month"===t.currentView},attrs:{role:"button"},on:{click:t.showMonthPicker}},[t._v(t._s(t.t("el.datepicker.month"+(t.month+1))))]),n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-d-arrow-right",attrs:{type:"button","aria-label":t.t("el.datepicker.nextYear")},on:{click:t.nextYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===t.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-arrow-right",attrs:{type:"button","aria-label":t.t("el.datepicker.nextMonth")},on:{click:t.nextMonth}})]),n("div",{staticClass:"el-picker-panel__content"},[n("date-table",{directives:[{name:"show",rawName:"v-show",value:"date"===t.currentView,expression:"currentView === 'date'"}],attrs:{"selection-mode":t.selectionMode,"first-day-of-week":t.firstDayOfWeek,value:t.value,"default-value":t.defaultValue?new Date(t.defaultValue):null,date:t.date,"cell-class-name":t.cellClassName,"disabled-date":t.disabledDate},on:{pick:t.handleDatePick}}),n("year-table",{directives:[{name:"show",rawName:"v-show",value:"year"===t.currentView,expression:"currentView === 'year'"}],attrs:{value:t.value,"default-value":t.defaultValue?new Date(t.defaultValue):null,date:t.date,"disabled-date":t.disabledDate},on:{pick:t.handleYearPick}}),n("month-table",{directives:[{name:"show",rawName:"v-show",value:"month"===t.currentView,expression:"currentView === 'month'"}],attrs:{value:t.value,"default-value":t.defaultValue?new Date(t.defaultValue):null,date:t.date,"disabled-date":t.disabledDate},on:{pick:t.handleMonthPick}})],1)])],2),n("div",{directives:[{name:"show",rawName:"v-show",value:t.footerVisible&&"date"===t.currentView,expression:"footerVisible && currentView === 'date'"}],staticClass:"el-picker-panel__footer"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:"dates"!==t.selectionMode,expression:"selectionMode !== 'dates'"}],staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:t.changeToNow}},[t._v("\n "+t._s(t.t("el.datepicker.now"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini"},on:{click:t.confirm}},[t._v("\n "+t._s(t.t("el.datepicker.confirm"))+"\n ")])],1)])])};jr._withStripped=!0;var kr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-time-panel el-popper",class:t.popperClass},[n("div",{staticClass:"el-time-panel__content",class:{"has-seconds":t.showSeconds}},[n("time-spinner",{ref:"spinner",attrs:{"arrow-control":t.useArrow,"show-seconds":t.showSeconds,"am-pm-mode":t.amPmMode,date:t.date},on:{change:t.handleChange,"select-range":t.setSelectionRange}})],1),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:t.handleCancel}},[t._v(t._s(t.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn",class:{confirm:!t.disabled},attrs:{type:"button"},on:{click:function(e){t.handleConfirm()}}},[t._v(t._s(t.t("el.datepicker.confirm")))])])])])};kr._withStripped=!0;var Pr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-time-spinner",class:{"has-seconds":t.showSeconds}},[t.arrowControl?t._e():[n("el-scrollbar",{ref:"hours",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(e){t.emitSelectRange("hours")},mousemove:function(e){t.adjustCurrentSpinner("hours")}}},t._l(t.hoursList,(function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===t.hours,disabled:e},on:{click:function(n){t.handleClick("hours",{value:r,disabled:e})}}},[t._v(t._s(("0"+(t.amPmMode?r%12||12:r)).slice(-2))+t._s(t.amPm(r)))])})),0),n("el-scrollbar",{ref:"minutes",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(e){t.emitSelectRange("minutes")},mousemove:function(e){t.adjustCurrentSpinner("minutes")}}},t._l(t.minutesList,(function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===t.minutes,disabled:!e},on:{click:function(e){t.handleClick("minutes",{value:r,disabled:!1})}}},[t._v(t._s(("0"+r).slice(-2)))])})),0),n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:t.showSeconds,expression:"showSeconds"}],ref:"seconds",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(e){t.emitSelectRange("seconds")},mousemove:function(e){t.adjustCurrentSpinner("seconds")}}},t._l(60,(function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===t.seconds},on:{click:function(e){t.handleClick("seconds",{value:r,disabled:!1})}}},[t._v(t._s(("0"+r).slice(-2)))])})),0)],t.arrowControl?[n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(e){t.emitSelectRange("hours")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"hours",staticClass:"el-time-spinner__list"},t._l(t.arrowHourList,(function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:e===t.hours,disabled:t.hoursList[e]}},[t._v(t._s(void 0===e?"":("0"+(t.amPmMode?e%12||12:e)).slice(-2)+t.amPm(e)))])})),0)]),n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(e){t.emitSelectRange("minutes")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"minutes",staticClass:"el-time-spinner__list"},t._l(t.arrowMinuteList,(function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:e===t.minutes}},[t._v("\n "+t._s(void 0===e?"":("0"+e).slice(-2))+"\n ")])})),0)]),t.showSeconds?n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(e){t.emitSelectRange("seconds")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"seconds",staticClass:"el-time-spinner__list"},t._l(t.arrowSecondList,(function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:e===t.seconds}},[t._v("\n "+t._s(void 0===e?"":("0"+e).slice(-2))+"\n ")])})),0)]):t._e()]:t._e()],2)};Pr._withStripped=!0;var Lr=i({components:{ElScrollbar:N.a},directives:{repeatClick:$t},props:{date:{},defaultValue:{},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""}},computed:{hours:function(){return this.date.getHours()},minutes:function(){return this.date.getMinutes()},seconds:function(){return this.date.getSeconds()},hoursList:function(){return Object(pr.getRangeHours)(this.selectableRange)},minutesList:function(){return Object(pr.getRangeMinutes)(this.selectableRange,this.hours)},arrowHourList:function(){var t=this.hours;return[t>0?t-1:void 0,t,t<23?t+1:void 0]},arrowMinuteList:function(){var t=this.minutes;return[t>0?t-1:void 0,t,t<59?t+1:void 0]},arrowSecondList:function(){var t=this.seconds;return[t>0?t-1:void 0,t,t<59?t+1:void 0]}},data:function(){return{selectableRange:[],currentScrollbar:null}},mounted:function(){var t=this;this.$nextTick((function(){!t.arrowControl&&t.bindScrollEvent()}))},methods:{increase:function(){this.scrollDown(1)},decrease:function(){this.scrollDown(-1)},modifyDateField:function(t,e){switch(t){case"hours":this.$emit("change",Object(pr.modifyTime)(this.date,e,this.minutes,this.seconds));break;case"minutes":this.$emit("change",Object(pr.modifyTime)(this.date,this.hours,e,this.seconds));break;case"seconds":this.$emit("change",Object(pr.modifyTime)(this.date,this.hours,this.minutes,e))}},handleClick:function(t,e){var n=e.value;e.disabled||(this.modifyDateField(t,n),this.emitSelectRange(t),this.adjustSpinner(t,n))},emitSelectRange:function(t){"hours"===t?this.$emit("select-range",0,2):"minutes"===t?this.$emit("select-range",3,5):"seconds"===t&&this.$emit("select-range",6,8),this.currentScrollbar=t},bindScrollEvent:function(){var t=this,e=function(e){t.$refs[e].wrap.onscroll=function(n){t.handleScroll(e,n)}};e("hours"),e("minutes"),e("seconds")},handleScroll:function(t){var e=Math.min(Math.round((this.$refs[t].wrap.scrollTop-(.5*this.scrollBarHeight(t)-10)/this.typeItemHeight(t)+3)/this.typeItemHeight(t)),"hours"===t?23:59);this.modifyDateField(t,e)},adjustSpinners:function(){this.adjustSpinner("hours",this.hours),this.adjustSpinner("minutes",this.minutes),this.adjustSpinner("seconds",this.seconds)},adjustCurrentSpinner:function(t){this.adjustSpinner(t,this[t])},adjustSpinner:function(t,e){if(!this.arrowControl){var n=this.$refs[t].wrap;n&&(n.scrollTop=Math.max(0,e*this.typeItemHeight(t)))}},scrollDown:function(t){var e=this;this.currentScrollbar||this.emitSelectRange("hours");var n=this.currentScrollbar,r=this.hoursList,i=this[n];if("hours"===this.currentScrollbar){var o=Math.abs(t);t=t>0?1:-1;for(var a=r.length;a--&&o;)r[i=(i+t+r.length)%r.length]||o--;if(r[i])return}else i=(i+t+60)%60;this.modifyDateField(n,i),this.adjustSpinner(n,i),this.$nextTick((function(){return e.emitSelectRange(e.currentScrollbar)}))},amPm:function(t){if(!("a"===this.amPmMode.toLowerCase()))return"";var e=t<12?" am":" pm";return"A"===this.amPmMode&&(e=e.toUpperCase()),e},typeItemHeight:function(t){return this.$refs[t].$el.querySelector("li").offsetHeight},scrollBarHeight:function(t){return this.$refs[t].$el.offsetHeight}}},Pr,[],!1,null,null,null);Lr.options.__file="packages/date-picker/src/basic/time-spinner.vue";var Rr=Lr.exports,Dr=i({mixins:[p.a],components:{TimeSpinner:Rr},props:{visible:Boolean,timeArrowControl:Boolean},watch:{visible:function(t){var e=this;t?(this.oldValue=this.value,this.$nextTick((function(){return e.$refs.spinner.emitSelectRange("hours")}))):this.needInitAdjust=!0},value:function(t){var e=this,n=void 0;t instanceof Date?n=Object(pr.limitTimeRange)(t,this.selectableRange,this.format):t||(n=this.defaultValue?new Date(this.defaultValue):new Date),this.date=n,this.visible&&this.needInitAdjust&&(this.$nextTick((function(t){return e.adjustSpinners()})),this.needInitAdjust=!1)},selectableRange:function(t){this.$refs.spinner.selectableRange=t},defaultValue:function(t){Object(pr.isDate)(this.value)||(this.date=t?new Date(t):new Date)}},data:function(){return{popperClass:"",format:"HH:mm:ss",value:"",defaultValue:null,date:new Date,oldValue:new Date,selectableRange:[],selectionRange:[0,2],disabled:!1,arrowControl:!1,needInitAdjust:!0}},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},useArrow:function(){return this.arrowControl||this.timeArrowControl||!1},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},methods:{handleCancel:function(){this.$emit("pick",this.oldValue,!1)},handleChange:function(t){this.visible&&(this.date=Object(pr.clearMilliseconds)(t),this.isValidValue(this.date)&&this.$emit("pick",this.date,!0))},setSelectionRange:function(t,e){this.$emit("select-range",t,e),this.selectionRange=[t,e]},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments[1];if(!e){var n=Object(pr.clearMilliseconds)(Object(pr.limitTimeRange)(this.date,this.selectableRange,this.format));this.$emit("pick",n,t,e)}},handleKeydown:function(t){var e=t.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===e||39===e){var r=n[e];return this.changeSelectionRange(r),void t.preventDefault()}if(38===e||40===e){var i=n[e];return this.$refs.spinner.scrollDown(i),void t.preventDefault()}},isValidValue:function(t){return Object(pr.timeWithinRange)(t,this.selectableRange,this.format)},adjustSpinners:function(){return this.$refs.spinner.adjustSpinners()},changeSelectionRange:function(t){var e=[0,3].concat(this.showSeconds?[6]:[]),n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),r=(e.indexOf(this.selectionRange[0])+t+e.length)%e.length;this.$refs.spinner.emitSelectRange(n[r])}},mounted:function(){var t=this;this.$nextTick((function(){return t.handleConfirm(!0,!0)})),this.$emit("mounted")}},kr,[],!1,null,null,null);Dr.options.__file="packages/date-picker/src/panel/time.vue";var Nr=Dr.exports,Br=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"el-year-table",on:{click:t.handleYearTableClick}},[n("tbody",[n("tr",[n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+0)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+1)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+1))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+2)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+2))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+3)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+3))])])]),n("tr",[n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+4)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+4))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+5)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+5))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+6)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+6))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+7)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+7))])])]),n("tr",[n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+8)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+8))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+9)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+9))])]),n("td"),n("td")])])])};Br._withStripped=!0;var Fr=i({props:{disabledDate:{},value:{},defaultValue:{validator:function(t){return null===t||t instanceof Date&&Object(pr.isDate)(t)}},date:{}},computed:{startYear:function(){return 10*Math.floor(this.date.getFullYear()/10)}},methods:{getCellStyle:function(t){var e={},n=new Date;return e.disabled="function"==typeof this.disabledDate&&function(t){var e=Object(pr.getDayCountOfYear)(t),n=new Date(t,0,1);return Object(pr.range)(e).map((function(t){return Object(pr.nextDate)(n,t)}))}(t).every(this.disabledDate),e.current=Object(g.arrayFindIndex)(Object(g.coerceTruthyValueToArray)(this.value),(function(e){return e.getFullYear()===t}))>=0,e.today=n.getFullYear()===t,e.default=this.defaultValue&&this.defaultValue.getFullYear()===t,e},handleYearTableClick:function(t){var e=t.target;if("A"===e.tagName){if(Object(pt.hasClass)(e.parentNode,"disabled"))return;var n=e.textContent||e.innerText;this.$emit("pick",Number(n))}}}},Br,[],!1,null,null,null);Fr.options.__file="packages/date-picker/src/basic/year-table.vue";var zr=Fr.exports,Vr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"el-month-table",on:{click:t.handleMonthTableClick,mousemove:t.handleMouseMove}},[n("tbody",t._l(t.rows,(function(e,r){return n("tr",{key:r},t._l(e,(function(e,r){return n("td",{key:r,class:t.getCellStyle(e)},[n("div",[n("a",{staticClass:"cell"},[t._v(t._s(t.t("el.datepicker.months."+t.months[e.text])))])])])})),0)})),0)])};Vr._withStripped=!0;var Ur=function(t){return new Date(t.getFullYear(),t.getMonth())},Gr=function(t){return"number"==typeof t||"string"==typeof t?Ur(new Date(t)).getTime():t instanceof Date?Ur(t).getTime():NaN},Hr=i({props:{disabledDate:{},value:{},selectionMode:{default:"month"},minDate:{},maxDate:{},defaultValue:{validator:function(t){return null===t||Object(pr.isDate)(t)||Array.isArray(t)&&t.every(pr.isDate)}},date:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},mixins:[p.a],watch:{"rangeState.endDate":function(t){this.markRange(this.minDate,t)},minDate:function(t,e){Gr(t)!==Gr(e)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(t,e){Gr(t)!==Gr(e)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{months:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],tableRows:[[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(t,e){var n=new Date(e);return this.date.getFullYear()===n.getFullYear()&&Number(t.text)===n.getMonth()},getCellStyle:function(t){var e=this,n={},r=this.date.getFullYear(),i=new Date,o=t.text,a=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return n.disabled="function"==typeof this.disabledDate&&function(t,e){var n=Object(pr.getDayCountOfMonth)(t,e),r=new Date(t,e,1);return Object(pr.range)(n).map((function(t){return Object(pr.nextDate)(r,t)}))}(r,o).every(this.disabledDate),n.current=Object(g.arrayFindIndex)(Object(g.coerceTruthyValueToArray)(this.value),(function(t){return t.getFullYear()===r&&t.getMonth()===o}))>=0,n.today=i.getFullYear()===r&&i.getMonth()===o,n.default=a.some((function(n){return e.cellMatchesDate(t,n)})),t.inRange&&(n["in-range"]=!0,t.start&&(n["start-date"]=!0),t.end&&(n["end-date"]=!0)),n},getMonthOfCell:function(t){var e=this.date.getFullYear();return new Date(e,t,1)},markRange:function(t,e){t=Gr(t),e=Gr(e)||t;var n=[Math.min(t,e),Math.max(t,e)];t=n[0],e=n[1];for(var r=this.rows,i=0,o=r.length;i<o;i++)for(var a=r[i],s=0,u=a.length;s<u;s++){var l=a[s],c=4*i+s,h=new Date(this.date.getFullYear(),c).getTime();l.inRange=t&&h>=t&&h<=e,l.start=t&&h===t,l.end=e&&h===e}},handleMouseMove:function(t){if(this.rangeState.selecting){var e=t.target;if("A"===e.tagName&&(e=e.parentNode.parentNode),"DIV"===e.tagName&&(e=e.parentNode),"TD"===e.tagName){var n=e.parentNode.rowIndex,r=e.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*n+r)}}))}}},handleMonthTableClick:function(t){var e=t.target;if("A"===e.tagName&&(e=e.parentNode.parentNode),"DIV"===e.tagName&&(e=e.parentNode),"TD"===e.tagName&&!Object(pt.hasClass)(e,"disabled")){var n=e.cellIndex,r=4*e.parentNode.rowIndex+n,i=this.getMonthOfCell(r);"range"===this.selectionMode?this.rangeState.selecting?(i>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:i}):this.$emit("pick",{minDate:i,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:i,maxDate:null}),this.rangeState.selecting=!0):this.$emit("pick",r)}}},computed:{rows:function(){for(var t=this,e=this.tableRows,n=this.disabledDate,r=[],i=Gr(new Date),o=0;o<3;o++)for(var a=e[o],s=function(e){var s=a[e];s||(s={row:o,column:e,type:"normal",inRange:!1,start:!1,end:!1}),s.type="normal";var u=4*o+e,l=new Date(t.date.getFullYear(),u).getTime();s.inRange=l>=Gr(t.minDate)&&l<=Gr(t.maxDate),s.start=t.minDate&&l===Gr(t.minDate),s.end=t.maxDate&&l===Gr(t.maxDate),l===i&&(s.type="today"),s.text=u;var c=new Date(l);s.disabled="function"==typeof n&&n(c),s.selected=Object(g.arrayFind)(r,(function(t){return t.getTime()===c.getTime()})),t.$set(a,e,s)},u=0;u<4;u++)s(u);return e}}},Vr,[],!1,null,null,null);Hr.options.__file="packages/date-picker/src/basic/month-table.vue";var Wr=Hr.exports,Yr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"el-date-table",class:{"is-week-mode":"week"===t.selectionMode},attrs:{cellspacing:"0",cellpadding:"0"},on:{click:t.handleClick,mousemove:t.handleMouseMove}},[n("tbody",[n("tr",[t.showWeekNumber?n("th",[t._v(t._s(t.t("el.datepicker.week")))]):t._e(),t._l(t.WEEKS,(function(e,r){return n("th",{key:r},[t._v(t._s(t.t("el.datepicker.weeks."+e)))])}))],2),t._l(t.rows,(function(e,r){return n("tr",{key:r,staticClass:"el-date-table__row",class:{current:t.isWeekActive(e[1])}},t._l(e,(function(e,r){return n("td",{key:r,class:t.getCellClasses(e)},[n("div",[n("span",[t._v("\n "+t._s(e.text)+"\n ")])])])})),0)}))],2)])};Yr._withStripped=!0;var Xr=["sun","mon","tue","wed","thu","fri","sat"],$r=function(t){return"number"==typeof t||"string"==typeof t?Object(pr.clearTime)(new Date(t)).getTime():t instanceof Date?Object(pr.clearTime)(t).getTime():NaN},qr=i({mixins:[p.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(t){return t>=1&&t<=7}},value:{},defaultValue:{validator:function(t){return null===t||Object(pr.isDate)(t)||Array.isArray(t)&&t.every(pr.isDate)}},date:{},selectionMode:{default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},cellClassName:{},minDate:{},maxDate:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},computed:{offsetDay:function(){var t=this.firstDayOfWeek;return t>3?7-t:-t},WEEKS:function(){var t=this.firstDayOfWeek;return Xr.concat(Xr).slice(t,t+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return Object(pr.getStartDateOfMonth)(this.year,this.month)},rows:function(){var t=this,e=new Date(this.year,this.month,1),n=Object(pr.getFirstDayOfMonth)(e),r=Object(pr.getDayCountOfMonth)(e.getFullYear(),e.getMonth()),i=Object(pr.getDayCountOfMonth)(e.getFullYear(),0===e.getMonth()?11:e.getMonth()-1);n=0===n?7:n;for(var o=this.offsetDay,a=this.tableRows,s=1,u=this.startDate,l=this.disabledDate,c=this.cellClassName,h="dates"===this.selectionMode?Object(g.coerceTruthyValueToArray)(this.value):[],f=$r(new Date),d=0;d<6;d++){var p=a[d];this.showWeekNumber&&(p[0]||(p[0]={type:"week",text:Object(pr.getWeekNumber)(Object(pr.nextDate)(u,7*d+1))}));for(var v=function(e){var a=p[t.showWeekNumber?e+1:e];a||(a={row:d,column:e,type:"normal",inRange:!1,start:!1,end:!1}),a.type="normal";var v=7*d+e,m=Object(pr.nextDate)(u,v-o).getTime();if(a.inRange=m>=$r(t.minDate)&&m<=$r(t.maxDate),a.start=t.minDate&&m===$r(t.minDate),a.end=t.maxDate&&m===$r(t.maxDate),m===f&&(a.type="today"),d>=0&&d<=1){var y=n+o<0?7+n+o:n+o;e+7*d>=y?a.text=s++:(a.text=i-(y-e%7)+1+7*d,a.type="prev-month")}else s<=r?a.text=s++:(a.text=s++-r,a.type="next-month");var b=new Date(m);a.disabled="function"==typeof l&&l(b),a.selected=Object(g.arrayFind)(h,(function(t){return t.getTime()===b.getTime()})),a.customClass="function"==typeof c&&c(b),t.$set(p,t.showWeekNumber?e+1:e,a)},m=0;m<7;m++)v(m);if("week"===this.selectionMode){var y=this.showWeekNumber?1:0,b=this.showWeekNumber?7:6,_=this.isWeekActive(p[y+1]);p[y].inRange=_,p[y].start=_,p[b].inRange=_,p[b].end=_}}return a}},watch:{"rangeState.endDate":function(t){this.markRange(this.minDate,t)},minDate:function(t,e){$r(t)!==$r(e)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(t,e){$r(t)!==$r(e)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{tableRows:[[],[],[],[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(t,e){var n=new Date(e);return this.year===n.getFullYear()&&this.month===n.getMonth()&&Number(t.text)===n.getDate()},getCellClasses:function(t){var e=this,n=this.selectionMode,r=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],i=[];return"normal"!==t.type&&"today"!==t.type||t.disabled?i.push(t.type):(i.push("available"),"today"===t.type&&i.push("today")),"normal"===t.type&&r.some((function(n){return e.cellMatchesDate(t,n)}))&&i.push("default"),"day"!==n||"normal"!==t.type&&"today"!==t.type||!this.cellMatchesDate(t,this.value)||i.push("current"),!t.inRange||"normal"!==t.type&&"today"!==t.type&&"week"!==this.selectionMode||(i.push("in-range"),t.start&&i.push("start-date"),t.end&&i.push("end-date")),t.disabled&&i.push("disabled"),t.selected&&i.push("selected"),t.customClass&&i.push(t.customClass),i.join(" ")},getDateOfCell:function(t,e){var n=7*t+(e-(this.showWeekNumber?1:0))-this.offsetDay;return Object(pr.nextDate)(this.startDate,n)},isWeekActive:function(t){if("week"!==this.selectionMode)return!1;var e=new Date(this.year,this.month,1),n=e.getFullYear(),r=e.getMonth();if("prev-month"===t.type&&(e.setMonth(0===r?11:r-1),e.setFullYear(0===r?n-1:n)),"next-month"===t.type&&(e.setMonth(11===r?0:r+1),e.setFullYear(11===r?n+1:n)),e.setDate(parseInt(t.text,10)),Object(pr.isDate)(this.value)){var i=(this.value.getDay()-this.firstDayOfWeek+7)%7-1;return Object(pr.prevDate)(this.value,i).getTime()===e.getTime()}return!1},markRange:function(t,e){t=$r(t),e=$r(e)||t;var n=[Math.min(t,e),Math.max(t,e)];t=n[0],e=n[1];for(var r=this.startDate,i=this.rows,o=0,a=i.length;o<a;o++)for(var s=i[o],u=0,l=s.length;u<l;u++)if(!this.showWeekNumber||0!==u){var c=s[u],h=7*o+u+(this.showWeekNumber?-1:0),f=Object(pr.nextDate)(r,h-this.offsetDay).getTime();c.inRange=t&&f>=t&&f<=e,c.start=t&&f===t,c.end=e&&f===e}},handleMouseMove:function(t){if(this.rangeState.selecting){var e=t.target;if("SPAN"===e.tagName&&(e=e.parentNode.parentNode),"DIV"===e.tagName&&(e=e.parentNode),"TD"===e.tagName){var n=e.parentNode.rowIndex-1,r=e.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(n,r)}}))}}},handleClick:function(t){var e=t.target;if("SPAN"===e.tagName&&(e=e.parentNode.parentNode),"DIV"===e.tagName&&(e=e.parentNode),"TD"===e.tagName){var n=e.parentNode.rowIndex-1,r="week"===this.selectionMode?1:e.cellIndex,i=this.rows[n][r];if(!i.disabled&&"week"!==i.type){var o,a,s,u=this.getDateOfCell(n,r);if("range"===this.selectionMode)this.rangeState.selecting?(u>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:u}):this.$emit("pick",{minDate:u,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:u,maxDate:null}),this.rangeState.selecting=!0);else if("day"===this.selectionMode)this.$emit("pick",u);else if("week"===this.selectionMode){var l=Object(pr.getWeekNumber)(u),c=u.getFullYear()+"w"+l;this.$emit("pick",{year:u.getFullYear(),week:l,value:c,date:u})}else if("dates"===this.selectionMode){var h=this.value||[],f=i.selected?(o=h,(s="function"==typeof(a=function(t){return t.getTime()===u.getTime()})?Object(g.arrayFindIndex)(o,a):o.indexOf(a))>=0?[].concat(o.slice(0,s),o.slice(s+1)):o):[].concat(h,[u]);this.$emit("pick",f)}}}}}},Yr,[],!1,null,null,null);qr.options.__file="packages/date-picker/src/basic/date-table.vue";var Zr=qr.exports,Kr=i({mixins:[p.a],directives:{Clickoutside:k.a},watch:{showTime:function(t){var e=this;t&&this.$nextTick((function(t){var n=e.$refs.input.$el;n&&(e.pickerWidth=n.getBoundingClientRect().width+10)}))},value:function(t){"dates"===this.selectionMode&&this.value||(Object(pr.isDate)(t)?this.date=new Date(t):this.date=this.getDefaultValue())},defaultValue:function(t){Object(pr.isDate)(this.value)||(this.date=t?new Date(t):new Date)},timePickerVisible:function(t){var e=this;t&&this.$nextTick((function(){return e.$refs.timepicker.adjustSpinners()}))},selectionMode:function(t){"month"===t?"year"===this.currentView&&"month"===this.currentView||(this.currentView="month"):"dates"===t&&(this.currentView="date")}},methods:{proxyTimePickerDataProperties:function(){var t,e=this,n=function(t){e.$refs.timepicker.value=t},r=function(t){e.$refs.timepicker.date=t},i=function(t){e.$refs.timepicker.selectableRange=t};this.$watch("value",n),this.$watch("date",r),this.$watch("selectableRange",i),t=this.timeFormat,e.$refs.timepicker.format=t,n(this.value),r(this.date),i(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(t){for(var e=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(t)if(Array.isArray(t)){var o=t.map((function(t){return e.showTime?Object(pr.clearMilliseconds)(t):Object(pr.clearTime)(t)}));this.$emit.apply(this,["pick",o].concat(r))}else this.$emit.apply(this,["pick",this.showTime?Object(pr.clearMilliseconds)(t):Object(pr.clearTime)(t)].concat(r));else this.$emit.apply(this,["pick",t].concat(r));this.userInputDate=null,this.userInputTime=null},showMonthPicker:function(){this.currentView="month"},showYearPicker:function(){this.currentView="year"},prevMonth:function(){this.date=Object(pr.prevMonth)(this.date)},nextMonth:function(){this.date=Object(pr.nextMonth)(this.date)},prevYear:function(){"year"===this.currentView?this.date=Object(pr.prevYear)(this.date,10):this.date=Object(pr.prevYear)(this.date)},nextYear:function(){"year"===this.currentView?this.date=Object(pr.nextYear)(this.date,10):this.date=Object(pr.nextYear)(this.date)},handleShortcutClick:function(t){t.onClick&&t.onClick(this)},handleTimePick:function(t,e,n){if(Object(pr.isDate)(t)){var r=this.value?Object(pr.modifyTime)(this.value,t.getHours(),t.getMinutes(),t.getSeconds()):Object(pr.modifyWithTimeString)(this.getDefaultValue(),this.defaultTime);this.date=r,this.emit(this.date,!0)}else this.emit(t,!0);n||(this.timePickerVisible=e)},handleTimePickClose:function(){this.timePickerVisible=!1},handleMonthPick:function(t){"month"===this.selectionMode?(this.date=Object(pr.modifyDate)(this.date,this.year,t,1),this.emit(this.date)):(this.date=Object(pr.changeYearMonthAndClampDate)(this.date,this.year,t),this.currentView="date")},handleDatePick:function(t){if("day"===this.selectionMode){var e=this.value?Object(pr.modifyDate)(this.value,t.getFullYear(),t.getMonth(),t.getDate()):Object(pr.modifyWithTimeString)(t,this.defaultTime);this.checkDateWithinRange(e)||(e=Object(pr.modifyDate)(this.selectableRange[0][0],t.getFullYear(),t.getMonth(),t.getDate())),this.date=e,this.emit(this.date,this.showTime)}else"week"===this.selectionMode?this.emit(t.date):"dates"===this.selectionMode&&this.emit(t,!0)},handleYearPick:function(t){"year"===this.selectionMode?(this.date=Object(pr.modifyDate)(this.date,t,0,1),this.emit(this.date)):(this.date=Object(pr.changeYearMonthAndClampDate)(this.date,t,this.month),this.currentView="month")},changeToNow:function(){this.disabledDate&&this.disabledDate(new Date)||!this.checkDateWithinRange(new Date)||(this.date=new Date,this.emit(this.date))},confirm:function(){if("dates"===this.selectionMode)this.emit(this.value);else{var t=this.value?this.value:Object(pr.modifyWithTimeString)(this.getDefaultValue(),this.defaultTime);this.date=new Date(t),this.emit(t)}},resetView:function(){"month"===this.selectionMode?this.currentView="month":"year"===this.selectionMode?this.currentView="year":this.currentView="date"},handleEnter:function(){document.body.addEventListener("keydown",this.handleKeydown)},handleLeave:function(){this.$emit("dodestroy"),document.body.removeEventListener("keydown",this.handleKeydown)},handleKeydown:function(t){var e=t.keyCode;this.visible&&!this.timePickerVisible&&(-1!==[38,40,37,39].indexOf(e)&&(this.handleKeyControl(e),t.stopPropagation(),t.preventDefault()),13===e&&null===this.userInputDate&&null===this.userInputTime&&this.emit(this.date,!1))},handleKeyControl:function(t){for(var e={year:{38:-4,40:4,37:-1,39:1,offset:function(t,e){return t.setFullYear(t.getFullYear()+e)}},month:{38:-4,40:4,37:-1,39:1,offset:function(t,e){return t.setMonth(t.getMonth()+e)}},week:{38:-1,40:1,37:-1,39:1,offset:function(t,e){return t.setDate(t.getDate()+7*e)}},day:{38:-7,40:7,37:-1,39:1,offset:function(t,e){return t.setDate(t.getDate()+e)}}},n=this.selectionMode,r=this.date.getTime(),i=new Date(this.date.getTime());Math.abs(r-i.getTime())<=31536e6;){var o=e[n];if(o.offset(i,o[t]),"function"!=typeof this.disabledDate||!this.disabledDate(i)){this.date=i,this.$emit("pick",i,!0);break}}},handleVisibleTimeChange:function(t){var e=Object(pr.parseDate)(t,this.timeFormat);e&&this.checkDateWithinRange(e)&&(this.date=Object(pr.modifyDate)(e,this.year,this.month,this.monthDate),this.userInputTime=null,this.$refs.timepicker.value=this.date,this.timePickerVisible=!1,this.emit(this.date,!0))},handleVisibleDateChange:function(t){var e=Object(pr.parseDate)(t,this.dateFormat);if(e){if("function"==typeof this.disabledDate&&this.disabledDate(e))return;this.date=Object(pr.modifyTime)(e,this.date.getHours(),this.date.getMinutes(),this.date.getSeconds()),this.userInputDate=null,this.resetView(),this.emit(this.date,!0)}},isValidValue:function(t){return t&&!isNaN(t)&&("function"!=typeof this.disabledDate||!this.disabledDate(t))&&this.checkDateWithinRange(t)},getDefaultValue:function(){return this.defaultValue?new Date(this.defaultValue):new Date},checkDateWithinRange:function(t){return!(this.selectableRange.length>0)||Object(pr.timeWithinRange)(t,this.selectableRange,this.format||"HH:mm:ss")}},components:{TimePicker:Nr,YearTable:zr,MonthTable:Wr,DateTable:Zr,ElInput:f.a,ElButton:Y.a},data:function(){return{popperClass:"",date:new Date,value:"",defaultValue:null,defaultTime:null,showTime:!1,selectionMode:"day",shortcuts:"",visible:!1,currentView:"date",disabledDate:"",cellClassName:"",selectableRange:[],firstDayOfWeek:7,showWeekNumber:!1,timePickerVisible:!1,format:"",arrowControl:!1,userInputDate:null,userInputTime:null}},computed:{year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},week:function(){return Object(pr.getWeekNumber)(this.date)},monthDate:function(){return this.date.getDate()},footerVisible:function(){return this.showTime||"dates"===this.selectionMode},visibleTime:function(){return null!==this.userInputTime?this.userInputTime:Object(pr.formatDate)(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:Object(pr.formatDate)(this.value||this.defaultValue,this.dateFormat)},yearLabel:function(){var t=this.t("el.datepicker.year");if("year"===this.currentView){var e=10*Math.floor(this.year/10);return t?e+" "+t+" - "+(e+9)+" "+t:e+" - "+(e+9)}return this.year+" "+t},timeFormat:function(){return this.format?Object(pr.extractTimeFormat)(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(pr.extractDateFormat)(this.format):"yyyy-MM-dd"}}},jr,[],!1,null,null,null);Kr.options.__file="packages/date-picker/src/panel/date.vue";var Qr=Kr.exports,Jr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":t.$slots.sidebar||t.shortcuts,"has-time":t.showTime},t.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[t._t("sidebar"),t.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},t._l(t.shortcuts,(function(e,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){t.handleShortcutClick(e)}}},[t._v(t._s(e.text))])})),0):t._e(),n("div",{staticClass:"el-picker-panel__body"},[t.showTime?n("div",{staticClass:"el-date-range-picker__time-header"},[n("span",{staticClass:"el-date-range-picker__editors-wrap"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{ref:"minInput",staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:t.rangeState.selecting,placeholder:t.t("el.datepicker.startDate"),value:t.minVisibleDate},on:{input:function(e){return t.handleDateInput(e,"min")},change:function(e){return t.handleDateChange(e,"min")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleMinTimeClose,expression:"handleMinTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:t.rangeState.selecting,placeholder:t.t("el.datepicker.startTime"),value:t.minVisibleTime},on:{focus:function(e){t.minTimePickerVisible=!0},input:function(e){return t.handleTimeInput(e,"min")},change:function(e){return t.handleTimeChange(e,"min")}}}),n("time-picker",{ref:"minTimePicker",attrs:{"time-arrow-control":t.arrowControl,visible:t.minTimePickerVisible},on:{pick:t.handleMinTimePick,mounted:function(e){t.$refs.minTimePicker.format=t.timeFormat}}})],1)]),n("span",{staticClass:"el-icon-arrow-right"}),n("span",{staticClass:"el-date-range-picker__editors-wrap is-right"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:t.rangeState.selecting,placeholder:t.t("el.datepicker.endDate"),value:t.maxVisibleDate,readonly:!t.minDate},on:{input:function(e){return t.handleDateInput(e,"max")},change:function(e){return t.handleDateChange(e,"max")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleMaxTimeClose,expression:"handleMaxTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:t.rangeState.selecting,placeholder:t.t("el.datepicker.endTime"),value:t.maxVisibleTime,readonly:!t.minDate},on:{focus:function(e){t.minDate&&(t.maxTimePickerVisible=!0)},input:function(e){return t.handleTimeInput(e,"max")},change:function(e){return t.handleTimeChange(e,"max")}}}),n("time-picker",{ref:"maxTimePicker",attrs:{"time-arrow-control":t.arrowControl,visible:t.maxTimePickerVisible},on:{pick:t.handleMaxTimePick,mounted:function(e){t.$refs.maxTimePicker.format=t.timeFormat}}})],1)])]):t._e(),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:t.leftPrevYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",attrs:{type:"button"},on:{click:t.leftPrevMonth}}),t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!t.enableYearArrow},attrs:{type:"button",disabled:!t.enableYearArrow},on:{click:t.leftNextYear}}):t._e(),t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",class:{"is-disabled":!t.enableMonthArrow},attrs:{type:"button",disabled:!t.enableMonthArrow},on:{click:t.leftNextMonth}}):t._e(),n("div",[t._v(t._s(t.leftLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:t.leftDate,"default-value":t.defaultValue,"min-date":t.minDate,"max-date":t.maxDate,"range-state":t.rangeState,"disabled-date":t.disabledDate,"cell-class-name":t.cellClassName,"first-day-of-week":t.firstDayOfWeek},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!t.enableYearArrow},attrs:{type:"button",disabled:!t.enableYearArrow},on:{click:t.rightPrevYear}}):t._e(),t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",class:{"is-disabled":!t.enableMonthArrow},attrs:{type:"button",disabled:!t.enableMonthArrow},on:{click:t.rightPrevMonth}}):t._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:t.rightNextYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",attrs:{type:"button"},on:{click:t.rightNextMonth}}),n("div",[t._v(t._s(t.rightLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:t.rightDate,"default-value":t.defaultValue,"min-date":t.minDate,"max-date":t.maxDate,"range-state":t.rangeState,"disabled-date":t.disabledDate,"cell-class-name":t.cellClassName,"first-day-of-week":t.firstDayOfWeek},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1)])],2),t.showTime?n("div",{staticClass:"el-picker-panel__footer"},[n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:t.handleClear}},[t._v("\n "+t._s(t.t("el.datepicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini",disabled:t.btnDisabled},on:{click:function(e){t.handleConfirm(!1)}}},[t._v("\n "+t._s(t.t("el.datepicker.confirm"))+"\n ")])],1):t._e()])])};Jr._withStripped=!0;var ti=function(t){return Array.isArray(t)?[new Date(t[0]),new Date(t[1])]:t?[new Date(t),Object(pr.nextDate)(new Date(t),1)]:[new Date,Object(pr.nextDate)(new Date,1)]},ei=i({mixins:[p.a],directives:{Clickoutside:k.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.leftDate.getMonth()+1))},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.rightDate.getMonth()+1))},leftYear:function(){return this.leftDate.getFullYear()},leftMonth:function(){return this.leftDate.getMonth()},leftMonthDate:function(){return this.leftDate.getDate()},rightYear:function(){return this.rightDate.getFullYear()},rightMonth:function(){return this.rightDate.getMonth()},rightMonthDate:function(){return this.rightDate.getDate()},minVisibleDate:function(){return null!==this.dateUserInput.min?this.dateUserInput.min:this.minDate?Object(pr.formatDate)(this.minDate,this.dateFormat):""},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?Object(pr.formatDate)(this.maxDate||this.minDate,this.dateFormat):""},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?Object(pr.formatDate)(this.minDate,this.timeFormat):""},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?Object(pr.formatDate)(this.maxDate||this.minDate,this.timeFormat):""},timeFormat:function(){return this.format?Object(pr.extractTimeFormat)(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(pr.extractDateFormat)(this.format):"yyyy-MM-dd"},enableMonthArrow:function(){var t=(this.leftMonth+1)%12,e=this.leftMonth+1>=12?1:0;return this.unlinkPanels&&new Date(this.leftYear+e,t)<new Date(this.rightYear,this.rightMonth)},enableYearArrow:function(){return this.unlinkPanels&&12*this.rightYear+this.rightMonth-(12*this.leftYear+this.leftMonth+1)>=12}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(pr.nextMonth)(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},showTime:!1,shortcuts:"",visible:"",disabledDate:"",cellClassName:"",firstDayOfWeek:7,minTimePickerVisible:!1,maxTimePickerVisible:!1,format:"",arrowControl:!1,unlinkPanels:!1,dateUserInput:{min:null,max:null},timeUserInput:{min:null,max:null}}},watch:{minDate:function(t){var e=this;this.dateUserInput.min=null,this.timeUserInput.min=null,this.$nextTick((function(){if(e.$refs.maxTimePicker&&e.maxDate&&e.maxDate<e.minDate){e.$refs.maxTimePicker.selectableRange=[[Object(pr.parseDate)(Object(pr.formatDate)(e.minDate,"HH:mm:ss"),"HH:mm:ss"),Object(pr.parseDate)("23:59:59","HH:mm:ss")]]}})),t&&this.$refs.minTimePicker&&(this.$refs.minTimePicker.date=t,this.$refs.minTimePicker.value=t)},maxDate:function(t){this.dateUserInput.max=null,this.timeUserInput.max=null,t&&this.$refs.maxTimePicker&&(this.$refs.maxTimePicker.date=t,this.$refs.maxTimePicker.value=t)},minTimePickerVisible:function(t){var e=this;t&&this.$nextTick((function(){e.$refs.minTimePicker.date=e.minDate,e.$refs.minTimePicker.value=e.minDate,e.$refs.minTimePicker.adjustSpinners()}))},maxTimePickerVisible:function(t){var e=this;t&&this.$nextTick((function(){e.$refs.maxTimePicker.date=e.maxDate,e.$refs.maxTimePicker.value=e.maxDate,e.$refs.maxTimePicker.adjustSpinners()}))},value:function(t){if(t){if(Array.isArray(t))if(this.minDate=Object(pr.isDate)(t[0])?new Date(t[0]):null,this.maxDate=Object(pr.isDate)(t[1])?new Date(t[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var e=this.minDate.getFullYear(),n=this.minDate.getMonth(),r=this.maxDate.getFullYear(),i=this.maxDate.getMonth();this.rightDate=e===r&&n===i?Object(pr.nextMonth)(this.maxDate):this.maxDate}else this.rightDate=Object(pr.nextMonth)(this.leftDate);else this.leftDate=ti(this.defaultValue)[0],this.rightDate=Object(pr.nextMonth)(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(t){if(!Array.isArray(this.value)){var e=ti(t),n=e[0],r=e[1];this.leftDate=n,this.rightDate=t&&t[1]&&this.unlinkPanels?r:Object(pr.nextMonth)(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=ti(this.defaultValue)[0],this.rightDate=Object(pr.nextMonth)(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(t){this.minDate=t.minDate,this.maxDate=t.maxDate,this.rangeState=t.rangeState},handleDateInput:function(t,e){if(this.dateUserInput[e]=t,t.length===this.dateFormat.length){var n=Object(pr.parseDate)(t,this.dateFormat);if(n){if("function"==typeof this.disabledDate&&this.disabledDate(new Date(n)))return;"min"===e?(this.minDate=Object(pr.modifyDate)(this.minDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.leftDate=new Date(n),this.unlinkPanels||(this.rightDate=Object(pr.nextMonth)(this.leftDate))):(this.maxDate=Object(pr.modifyDate)(this.maxDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.rightDate=new Date(n),this.unlinkPanels||(this.leftDate=Object(pr.prevMonth)(n)))}}},handleDateChange:function(t,e){var n=Object(pr.parseDate)(t,this.dateFormat);n&&("min"===e?(this.minDate=Object(pr.modifyDate)(this.minDate,n.getFullYear(),n.getMonth(),n.getDate()),this.minDate>this.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(pr.modifyDate)(this.maxDate,n.getFullYear(),n.getMonth(),n.getDate()),this.maxDate<this.minDate&&(this.minDate=this.maxDate)))},handleTimeInput:function(t,e){var n=this;if(this.timeUserInput[e]=t,t.length===this.timeFormat.length){var r=Object(pr.parseDate)(t,this.timeFormat);r&&("min"===e?(this.minDate=Object(pr.modifyTime)(this.minDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick((function(t){return n.$refs.minTimePicker.adjustSpinners()}))):(this.maxDate=Object(pr.modifyTime)(this.maxDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick((function(t){return n.$refs.maxTimePicker.adjustSpinners()}))))}},handleTimeChange:function(t,e){var n=Object(pr.parseDate)(t,this.timeFormat);n&&("min"===e?(this.minDate=Object(pr.modifyTime)(this.minDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.minDate>this.maxDate&&(this.maxDate=this.minDate),this.$refs.minTimePicker.value=this.minDate,this.minTimePickerVisible=!1):(this.maxDate=Object(pr.modifyTime)(this.maxDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.maxDate<this.minDate&&(this.minDate=this.maxDate),this.$refs.maxTimePicker.value=this.minDate,this.maxTimePickerVisible=!1))},handleRangePick:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(pr.modifyWithTimeString)(t.minDate,r[0]),o=Object(pr.modifyWithTimeString)(t.maxDate,r[1]);this.maxDate===o&&this.minDate===i||(this.onPick&&this.onPick(t),this.maxDate=o,this.minDate=i,setTimeout((function(){e.maxDate=o,e.minDate=i}),10),n&&!this.showTime&&this.handleConfirm())},handleShortcutClick:function(t){t.onClick&&t.onClick(this)},handleMinTimePick:function(t,e,n){this.minDate=this.minDate||new Date,t&&(this.minDate=Object(pr.modifyTime)(this.minDate,t.getHours(),t.getMinutes(),t.getSeconds())),n||(this.minTimePickerVisible=e),(!this.maxDate||this.maxDate&&this.maxDate.getTime()<this.minDate.getTime())&&(this.maxDate=new Date(this.minDate))},handleMinTimeClose:function(){this.minTimePickerVisible=!1},handleMaxTimePick:function(t,e,n){this.maxDate&&t&&(this.maxDate=Object(pr.modifyTime)(this.maxDate,t.getHours(),t.getMinutes(),t.getSeconds())),n||(this.maxTimePickerVisible=e),this.maxDate&&this.minDate&&this.minDate.getTime()>this.maxDate.getTime()&&(this.minDate=new Date(this.maxDate))},handleMaxTimeClose:function(){this.maxTimePickerVisible=!1},leftPrevYear:function(){this.leftDate=Object(pr.prevYear)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(pr.nextMonth)(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(pr.prevMonth)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(pr.nextMonth)(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(pr.nextYear)(this.rightDate):(this.leftDate=Object(pr.nextYear)(this.leftDate),this.rightDate=Object(pr.nextMonth)(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(pr.nextMonth)(this.rightDate):(this.leftDate=Object(pr.nextMonth)(this.leftDate),this.rightDate=Object(pr.nextMonth)(this.leftDate))},leftNextYear:function(){this.leftDate=Object(pr.nextYear)(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(pr.nextMonth)(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(pr.prevYear)(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(pr.prevMonth)(this.rightDate)},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],t)},isValidValue:function(t){return Array.isArray(t)&&t&&t[0]&&t[1]&&Object(pr.isDate)(t[0])&&Object(pr.isDate)(t[1])&&t[0].getTime()<=t[1].getTime()&&("function"!=typeof this.disabledDate||!this.disabledDate(t[0])&&!this.disabledDate(t[1]))},resetView:function(){this.minDate&&null==this.maxDate&&(this.rangeState.selecting=!1),this.minDate=this.value&&Object(pr.isDate)(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(pr.isDate)(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:Nr,DateTable:Zr,ElInput:f.a,ElButton:Y.a}},Jr,[],!1,null,null,null);ei.options.__file="packages/date-picker/src/panel/date-range.vue";var ni=ei.exports,ri=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":t.$slots.sidebar||t.shortcuts},t.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[t._t("sidebar"),t.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},t._l(t.shortcuts,(function(e,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){t.handleShortcutClick(e)}}},[t._v(t._s(e.text))])})),0):t._e(),n("div",{staticClass:"el-picker-panel__body"},[n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:t.leftPrevYear}}),t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!t.enableYearArrow},attrs:{type:"button",disabled:!t.enableYearArrow},on:{click:t.leftNextYear}}):t._e(),n("div",[t._v(t._s(t.leftLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:t.leftDate,"default-value":t.defaultValue,"min-date":t.minDate,"max-date":t.maxDate,"range-state":t.rangeState,"disabled-date":t.disabledDate},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!t.enableYearArrow},attrs:{type:"button",disabled:!t.enableYearArrow},on:{click:t.rightPrevYear}}):t._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:t.rightNextYear}}),n("div",[t._v(t._s(t.rightLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:t.rightDate,"default-value":t.defaultValue,"min-date":t.minDate,"max-date":t.maxDate,"range-state":t.rangeState,"disabled-date":t.disabledDate},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1)])],2)])])};ri._withStripped=!0;var ii=function(t){return Array.isArray(t)?[new Date(t[0]),new Date(t[1])]:t?[new Date(t),Object(pr.nextMonth)(new Date(t))]:[new Date,Object(pr.nextMonth)(new Date)]},oi=i({mixins:[p.a],directives:{Clickoutside:k.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")},leftYear:function(){return this.leftDate.getFullYear()},rightYear:function(){return this.rightDate.getFullYear()===this.leftDate.getFullYear()?this.leftDate.getFullYear()+1:this.rightDate.getFullYear()},enableYearArrow:function(){return this.unlinkPanels&&this.rightYear>this.leftYear+1}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(pr.nextYear)(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},shortcuts:"",visible:"",disabledDate:"",format:"",arrowControl:!1,unlinkPanels:!1}},watch:{value:function(t){if(t){if(Array.isArray(t))if(this.minDate=Object(pr.isDate)(t[0])?new Date(t[0]):null,this.maxDate=Object(pr.isDate)(t[1])?new Date(t[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var e=this.minDate.getFullYear(),n=this.maxDate.getFullYear();this.rightDate=e===n?Object(pr.nextYear)(this.maxDate):this.maxDate}else this.rightDate=Object(pr.nextYear)(this.leftDate);else this.leftDate=ii(this.defaultValue)[0],this.rightDate=Object(pr.nextYear)(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(t){if(!Array.isArray(this.value)){var e=ii(t),n=e[0],r=e[1];this.leftDate=n,this.rightDate=t&&t[1]&&n.getFullYear()!==r.getFullYear()&&this.unlinkPanels?r:Object(pr.nextYear)(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=ii(this.defaultValue)[0],this.rightDate=Object(pr.nextYear)(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(t){this.minDate=t.minDate,this.maxDate=t.maxDate,this.rangeState=t.rangeState},handleRangePick:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(pr.modifyWithTimeString)(t.minDate,r[0]),o=Object(pr.modifyWithTimeString)(t.maxDate,r[1]);this.maxDate===o&&this.minDate===i||(this.onPick&&this.onPick(t),this.maxDate=o,this.minDate=i,setTimeout((function(){e.maxDate=o,e.minDate=i}),10),n&&this.handleConfirm())},handleShortcutClick:function(t){t.onClick&&t.onClick(this)},leftPrevYear:function(){this.leftDate=Object(pr.prevYear)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(pr.prevYear)(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Object(pr.nextYear)(this.leftDate)),this.rightDate=Object(pr.nextYear)(this.rightDate)},leftNextYear:function(){this.leftDate=Object(pr.nextYear)(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(pr.prevYear)(this.rightDate)},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],t)},isValidValue:function(t){return Array.isArray(t)&&t&&t[0]&&t[1]&&Object(pr.isDate)(t[0])&&Object(pr.isDate)(t[1])&&t[0].getTime()<=t[1].getTime()&&("function"!=typeof this.disabledDate||!this.disabledDate(t[0])&&!this.disabledDate(t[1]))},resetView:function(){this.minDate=this.value&&Object(pr.isDate)(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(pr.isDate)(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:Wr,ElInput:f.a,ElButton:Y.a}},ri,[],!1,null,null,null);oi.options.__file="packages/date-picker/src/panel/month-range.vue";var ai=oi.exports,si=function(t){return"daterange"===t||"datetimerange"===t?ni:"monthrange"===t?ai:Qr},ui={mixins:[Ir],name:"ElDatePicker",props:{type:{type:String,default:"date"},timeArrowControl:Boolean},watch:{type:function(t){this.picker?(this.unmountPicker(),this.panel=si(t),this.mountPicker()):this.panel=si(t)}},created:function(){this.panel=si(this.type)},install:function(t){t.component(ui.name,ui)}},li=ui,ci=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":t.handleMenuEnter,"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],ref:"popper",staticClass:"el-picker-panel time-select el-popper",class:t.popperClass,style:{width:t.width+"px"}},[n("el-scrollbar",{attrs:{noresize:"","wrap-class":"el-picker-panel__content"}},t._l(t.items,(function(e){return n("div",{key:e.value,staticClass:"time-select-item",class:{selected:t.value===e.value,disabled:e.disabled,default:e.value===t.defaultValue},attrs:{disabled:e.disabled},on:{click:function(n){t.handleClick(e)}}},[t._v(t._s(e.value))])})),0)],1)])};ci._withStripped=!0;var hi=function(t){var e=(t||"").split(":");return e.length>=2?{hours:parseInt(e[0],10),minutes:parseInt(e[1],10)}:null},fi=function(t,e){var n=hi(t),r=hi(e),i=n.minutes+60*n.hours,o=r.minutes+60*r.hours;return i===o?0:i>o?1:-1},di=function(t,e){var n=hi(t),r=hi(e),i={hours:n.hours,minutes:n.minutes};return i.minutes+=r.minutes,i.hours+=r.hours,i.hours+=Math.floor(i.minutes/60),i.minutes=i.minutes%60,function(t){return(t.hours<10?"0"+t.hours:t.hours)+":"+(t.minutes<10?"0"+t.minutes:t.minutes)}(i)},pi=i({components:{ElScrollbar:N.a},watch:{value:function(t){var e=this;t&&this.$nextTick((function(){return e.scrollToOption()}))}},methods:{handleClick:function(t){t.disabled||this.$emit("pick",t.value)},handleClear:function(){this.$emit("pick",null)},scrollToOption:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".selected",e=this.$refs.popper.querySelector(".el-picker-panel__content");Fe()(e,e.querySelector(t))},handleMenuEnter:function(){var t=this,e=-1!==this.items.map((function(t){return t.value})).indexOf(this.value),n=-1!==this.items.map((function(t){return t.value})).indexOf(this.defaultValue),r=(e?".selected":n&&".default")||".time-select-item:not(.disabled)";this.$nextTick((function(){return t.scrollToOption(r)}))},scrollDown:function(t){for(var e=this.items,n=e.length,r=e.length,i=e.map((function(t){return t.value})).indexOf(this.value);r--;)if(!e[i=(i+t+n)%n].disabled)return void this.$emit("pick",e[i].value,!0)},isValidValue:function(t){return-1!==this.items.filter((function(t){return!t.disabled})).map((function(t){return t.value})).indexOf(t)},handleKeydown:function(t){var e=t.keyCode;if(38===e||40===e){var n={40:1,38:-1}[e.toString()];return this.scrollDown(n),void t.stopPropagation()}}},data:function(){return{popperClass:"",start:"09:00",end:"18:00",step:"00:30",value:"",defaultValue:"",visible:!1,minTime:"",maxTime:"",width:0}},computed:{items:function(){var t=this.start,e=this.end,n=this.step,r=[];if(t&&e&&n)for(var i=t;fi(i,e)<=0;)r.push({value:i,disabled:fi(i,this.minTime||"-1:-1")<=0||fi(i,this.maxTime||"100:100")>=0}),i=di(i,n);return r}}},ci,[],!1,null,null,null);pi.options.__file="packages/date-picker/src/panel/time-select.vue";var gi=pi.exports,vi={mixins:[Ir],name:"ElTimeSelect",componentName:"ElTimeSelect",props:{type:{type:String,default:"time-select"}},beforeCreate:function(){this.panel=gi},install:function(t){t.component(vi.name,vi)}},mi=vi,yi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-time-range-picker el-picker-panel el-popper",class:t.popperClass},[n("div",{staticClass:"el-time-range-picker__content"},[n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[t._v(t._s(t.t("el.datepicker.startTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":t.showSeconds,"is-arrow":t.arrowControl}},[n("time-spinner",{ref:"minSpinner",attrs:{"show-seconds":t.showSeconds,"am-pm-mode":t.amPmMode,"arrow-control":t.arrowControl,date:t.minDate},on:{change:t.handleMinChange,"select-range":t.setMinSelectionRange}})],1)]),n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[t._v(t._s(t.t("el.datepicker.endTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":t.showSeconds,"is-arrow":t.arrowControl}},[n("time-spinner",{ref:"maxSpinner",attrs:{"show-seconds":t.showSeconds,"am-pm-mode":t.amPmMode,"arrow-control":t.arrowControl,date:t.maxDate},on:{change:t.handleMaxChange,"select-range":t.setMaxSelectionRange}})],1)])]),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:function(e){t.handleCancel()}}},[t._v(t._s(t.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn confirm",attrs:{type:"button",disabled:t.btnDisabled},on:{click:function(e){t.handleConfirm()}}},[t._v(t._s(t.t("el.datepicker.confirm")))])])])])};yi._withStripped=!0;var bi=Object(pr.parseDate)("00:00:00","HH:mm:ss"),_i=Object(pr.parseDate)("23:59:59","HH:mm:ss"),xi=function(t){return Object(pr.modifyDate)(_i,t.getFullYear(),t.getMonth(),t.getDate())},wi=function(t,e){return new Date(Math.min(t.getTime()+e,xi(t).getTime()))},Oi=i({mixins:[p.a],components:{TimeSpinner:Rr},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},offset:function(){return this.showSeconds?11:8},spinner:function(){return this.selectionRange[0]<this.offset?this.$refs.minSpinner:this.$refs.maxSpinner},btnDisabled:function(){return this.minDate.getTime()>this.maxDate.getTime()},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},data:function(){return{popperClass:"",minDate:new Date,maxDate:new Date,value:[],oldValue:[new Date,new Date],defaultValue:null,format:"HH:mm:ss",visible:!1,selectionRange:[0,2],arrowControl:!1}},watch:{value:function(t){Array.isArray(t)?(this.minDate=new Date(t[0]),this.maxDate=new Date(t[1])):Array.isArray(this.defaultValue)?(this.minDate=new Date(this.defaultValue[0]),this.maxDate=new Date(this.defaultValue[1])):this.defaultValue?(this.minDate=new Date(this.defaultValue),this.maxDate=wi(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=wi(new Date,36e5))},visible:function(t){var e=this;t&&(this.oldValue=this.value,this.$nextTick((function(){return e.$refs.minSpinner.emitSelectRange("hours")})))}},methods:{handleClear:function(){this.$emit("pick",null)},handleCancel:function(){this.$emit("pick",this.oldValue)},handleMinChange:function(t){this.minDate=Object(pr.clearMilliseconds)(t),this.handleChange()},handleMaxChange:function(t){this.maxDate=Object(pr.clearMilliseconds)(t),this.handleChange()},handleChange:function(){var t;this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[(t=this.minDate,Object(pr.modifyDate)(bi,t.getFullYear(),t.getMonth(),t.getDate())),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,xi(this.maxDate)]],this.$emit("pick",[this.minDate,this.maxDate],!0))},setMinSelectionRange:function(t,e){this.$emit("select-range",t,e,"min"),this.selectionRange=[t,e]},setMaxSelectionRange:function(t,e){this.$emit("select-range",t,e,"max"),this.selectionRange=[t+this.offset,e+this.offset]},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$refs.minSpinner.selectableRange,n=this.$refs.maxSpinner.selectableRange;this.minDate=Object(pr.limitTimeRange)(this.minDate,e,this.format),this.maxDate=Object(pr.limitTimeRange)(this.maxDate,n,this.format),this.$emit("pick",[this.minDate,this.maxDate],t)},adjustSpinners:function(){this.$refs.minSpinner.adjustSpinners(),this.$refs.maxSpinner.adjustSpinners()},changeSelectionRange:function(t){var e=this.showSeconds?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),r=(e.indexOf(this.selectionRange[0])+t+e.length)%e.length,i=e.length/2;r<i?this.$refs.minSpinner.emitSelectRange(n[r]):this.$refs.maxSpinner.emitSelectRange(n[r-i])},isValidValue:function(t){return Array.isArray(t)&&Object(pr.timeWithinRange)(this.minDate,this.$refs.minSpinner.selectableRange)&&Object(pr.timeWithinRange)(this.maxDate,this.$refs.maxSpinner.selectableRange)},handleKeydown:function(t){var e=t.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===e||39===e){var r=n[e];return this.changeSelectionRange(r),void t.preventDefault()}if(38===e||40===e){var i=n[e];return this.spinner.scrollDown(i),void t.preventDefault()}}}},yi,[],!1,null,null,null);Oi.options.__file="packages/date-picker/src/panel/time-range.vue";var Si=Oi.exports,Ci={mixins:[Ir],name:"ElTimePicker",props:{isRange:Boolean,arrowControl:Boolean},data:function(){return{type:""}},watch:{isRange:function(t){this.picker?(this.unmountPicker(),this.type=t?"timerange":"time",this.panel=t?Si:Nr,this.mountPicker()):(this.type=t?"timerange":"time",this.panel=t?Si:Nr)}},created:function(){this.type=this.isRange?"timerange":"time",this.panel=this.isRange?Si:Nr},install:function(t){t.component(Ci.name,Ci)}},Ei=Ci,Ti=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[n("transition",{attrs:{name:t.transition},on:{"after-enter":t.handleAfterEnter,"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&t.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[t.popperClass,t.content&&"el-popover--plain"],style:{width:t.width+"px"},attrs:{role:"tooltip",id:t.tooltipId,"aria-hidden":t.disabled||!t.showPopper?"true":"false"}},[t.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:t._s(t.title)}}):t._e(),t._t("default",[t._v(t._s(t.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[t._t("reference")],2)],1)};Ti._withStripped=!0;var Ai=i({name:"ElPopover",mixins:[R.a],props:{trigger:{type:String,default:"click",validator:function(t){return["click","focus","hover","manual"].indexOf(t)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(g.generateId)()}},watch:{showPopper:function(t){this.disabled||(t?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var t=this,e=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),e&&(Object(pt.addClass)(e,"el-popover__reference"),e.setAttribute("aria-describedby",this.tooltipId),e.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(pt.on)(e,"focusin",(function(){t.handleFocus();var n=e.__vue__;n&&"function"==typeof n.focus&&n.focus()})),Object(pt.on)(n,"focusin",this.handleFocus),Object(pt.on)(e,"focusout",this.handleBlur),Object(pt.on)(n,"focusout",this.handleBlur)),Object(pt.on)(e,"keydown",this.handleKeydown),Object(pt.on)(e,"click",this.handleClick)),"click"===this.trigger?(Object(pt.on)(e,"click",this.doToggle),Object(pt.on)(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(pt.on)(e,"mouseenter",this.handleMouseEnter),Object(pt.on)(n,"mouseenter",this.handleMouseEnter),Object(pt.on)(e,"mouseleave",this.handleMouseLeave),Object(pt.on)(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),e.querySelector("input, textarea")?(Object(pt.on)(e,"focusin",this.doShow),Object(pt.on)(e,"focusout",this.doClose)):(Object(pt.on)(e,"mousedown",this.doShow),Object(pt.on)(e,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(pt.addClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(pt.removeClass)(this.referenceElm,"focusing")},handleBlur:function(){Object(pt.removeClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var t=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){t.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(t){27===t.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var t=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){t.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(t){var e=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&e&&!this.$el.contains(t.target)&&!e.contains(t.target)&&n&&!n.contains(t.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var t=this.reference;Object(pt.off)(t,"click",this.doToggle),Object(pt.off)(t,"mouseup",this.doClose),Object(pt.off)(t,"mousedown",this.doShow),Object(pt.off)(t,"focusin",this.doShow),Object(pt.off)(t,"focusout",this.doClose),Object(pt.off)(t,"mousedown",this.doShow),Object(pt.off)(t,"mouseup",this.doClose),Object(pt.off)(t,"mouseleave",this.handleMouseLeave),Object(pt.off)(t,"mouseenter",this.handleMouseEnter),Object(pt.off)(document,"click",this.handleDocumentClick)}},Ti,[],!1,null,null,null);Ai.options.__file="packages/popover/src/main.vue";var Mi=Ai.exports,Ii=function(t,e,n){var r=e.expression?e.value:e.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=t:i.$refs.reference=t)},ji={bind:function(t,e,n){Ii(t,e,n)},inserted:function(t,e,n){Ii(t,e,n)}};fn.a.directive("popover",ji),Mi.install=function(t){t.directive("popover",ji),t.component(Mi.name,Mi)},Mi.directive=ji;var ki=Mi,Pi={name:"ElTooltip",mixins:[R.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(g.generateId)(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var t=this;this.$isServer||(this.popperVM=new fn.a({data:{node:""},render:function(t){return this.node}}).$mount(),this.debounceClose=I()(200,(function(){return t.handleClosePopper()})))},render:function(t){var e=this;this.popperVM&&(this.popperVM.node=t("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[t("div",{on:{mouseleave:function(){e.setExpectedState(!1),e.debounceClose()},mouseenter:function(){e.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var t=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(pt.on)(this.referenceElm,"mouseenter",this.show),Object(pt.on)(this.referenceElm,"mouseleave",this.hide),Object(pt.on)(this.referenceElm,"focus",(function(){if(t.$slots.default&&t.$slots.default.length){var e=t.$slots.default[0].componentInstance;e&&e.focus?e.focus():t.handleFocus()}else t.handleFocus()})),Object(pt.on)(this.referenceElm,"blur",this.handleBlur),Object(pt.on)(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){t.value&&t.updatePopper()}))},watch:{focusing:function(t){t?Object(pt.addClass)(this.referenceElm,"focusing"):Object(pt.removeClass)(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(t){return t?"el-tooltip "+t.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var t=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){t.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(t){!1===t&&clearTimeout(this.timeoutPending),this.expectedState=t},getFirstElement:function(){var t=this.$slots.default;if(!Array.isArray(t))return null;for(var e=null,n=0;n<t.length;n++)t[n]&&t[n].tag&&(e=t[n]);return e}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var t=this.referenceElm;1===t.nodeType&&(Object(pt.off)(t,"mouseenter",this.show),Object(pt.off)(t,"mouseleave",this.hide),Object(pt.off)(t,"focus",this.handleFocus),Object(pt.off)(t,"blur",this.handleBlur),Object(pt.off)(t,"click",this.removeFocusing))},install:function(t){t.component(Pi.name,Pi)}},Li=Pi,Ri=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"msgbox-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-message-box__wrapper",attrs:{tabindex:"-1",role:"dialog","aria-modal":"true","aria-label":t.title||"dialog"},on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[n("div",{staticClass:"el-message-box",class:[t.customClass,t.center&&"el-message-box--center"]},[null!==t.title?n("div",{staticClass:"el-message-box__header"},[n("div",{staticClass:"el-message-box__title"},[t.icon&&t.center?n("div",{class:["el-message-box__status",t.icon]}):t._e(),n("span",[t._v(t._s(t.title))])]),t.showClose?n("button",{staticClass:"el-message-box__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:function(e){t.handleAction(t.distinguishCancelAndClose?"close":"cancel")},keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.handleAction(t.distinguishCancelAndClose?"close":"cancel")}}},[n("i",{staticClass:"el-message-box__close el-icon-close"})]):t._e()]):t._e(),n("div",{staticClass:"el-message-box__content"},[n("div",{staticClass:"el-message-box__container"},[t.icon&&!t.center&&""!==t.message?n("div",{class:["el-message-box__status",t.icon]}):t._e(),""!==t.message?n("div",{staticClass:"el-message-box__message"},[t._t("default",[t.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:t._s(t.message)}}):n("p",[t._v(t._s(t.message))])])],2):t._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showInput,expression:"showInput"}],staticClass:"el-message-box__input"},[n("el-input",{ref:"input",attrs:{type:t.inputType,placeholder:t.inputPlaceholder},nativeOn:{keydown:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputEnter(e)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}),n("div",{staticClass:"el-message-box__errormsg",style:{visibility:t.editorErrorMessage?"visible":"hidden"}},[t._v(t._s(t.editorErrorMessage))])],1)]),n("div",{staticClass:"el-message-box__btns"},[t.showCancelButton?n("el-button",{class:[t.cancelButtonClasses],attrs:{loading:t.cancelButtonLoading,round:t.roundButton,size:"small"},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.handleAction("cancel")}},nativeOn:{click:function(e){t.handleAction("cancel")}}},[t._v("\n "+t._s(t.cancelButtonText||t.t("el.messagebox.cancel"))+"\n ")]):t._e(),n("el-button",{directives:[{name:"show",rawName:"v-show",value:t.showConfirmButton,expression:"showConfirmButton"}],ref:"confirm",class:[t.confirmButtonClasses],attrs:{loading:t.confirmButtonLoading,round:t.roundButton,size:"small"},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.handleAction("confirm")}},nativeOn:{click:function(e){t.handleAction("confirm")}}},[t._v("\n "+t._s(t.confirmButtonText||t.t("el.messagebox.confirm"))+"\n ")])],1)])])])};Ri._withStripped=!0;var Di=n(12),Ni=n.n(Di),Bi=n(39),Fi=n.n(Bi),zi=void 0,Vi={success:"success",info:"info",warning:"warning",error:"error"},Ui=i({mixins:[_.a,p.a],props:{modal:{default:!0},lockScroll:{default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{default:!0},closeOnPressEscape:{default:!0},closeOnHashChange:{default:!0},center:{default:!1,type:Boolean},roundButton:{default:!1,type:Boolean}},components:{ElInput:f.a,ElButton:Y.a},computed:{icon:function(){var t=this.type;return this.iconClass||(t&&Vi[t]?"el-icon-"+Vi[t]:"")},confirmButtonClasses:function(){return"el-button--primary "+this.confirmButtonClass},cancelButtonClasses:function(){return""+this.cancelButtonClass}},methods:{getSafeClose:function(){var t=this,e=this.uid;return function(){t.$nextTick((function(){e===t.uid&&t.doClose()}))}},doClose:function(){var t=this;this.visible&&(this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),zi.closeDialog(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose(),setTimeout((function(){t.action&&t.callback(t.action,t)})))},handleWrapperClick:function(){this.closeOnClickModal&&this.handleAction(this.distinguishCancelAndClose?"close":"cancel")},handleInputEnter:function(){if("textarea"!==this.inputType)return this.handleAction("confirm")},handleAction:function(t){("prompt"!==this.$type||"confirm"!==t||this.validate())&&(this.action=t,"function"==typeof this.beforeClose?(this.close=this.getSafeClose(),this.beforeClose(t,this,this.close)):this.doClose())},validate:function(){if("prompt"===this.$type){var t=this.inputPattern;if(t&&!t.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||Object(Di.t)("el.messagebox.error"),Object(pt.addClass)(this.getInputElement(),"invalid"),!1;var e=this.inputValidator;if("function"==typeof e){var n=e(this.inputValue);if(!1===n)return this.editorErrorMessage=this.inputErrorMessage||Object(Di.t)("el.messagebox.error"),Object(pt.addClass)(this.getInputElement(),"invalid"),!1;if("string"==typeof n)return this.editorErrorMessage=n,Object(pt.addClass)(this.getInputElement(),"invalid"),!1}}return this.editorErrorMessage="",Object(pt.removeClass)(this.getInputElement(),"invalid"),!0},getFirstFocus:function(){var t=this.$el.querySelector(".el-message-box__btns .el-button"),e=this.$el.querySelector(".el-message-box__btns .el-message-box__title");return t||e},getInputElement:function(){var t=this.$refs.input.$refs;return t.input||t.textarea},handleClose:function(){this.handleAction("close")}},watch:{inputValue:{immediate:!0,handler:function(t){var e=this;this.$nextTick((function(n){"prompt"===e.$type&&null!==t&&e.validate()}))}},visible:function(t){var e=this;t&&(this.uid++,"alert"!==this.$type&&"confirm"!==this.$type||this.$nextTick((function(){e.$refs.confirm.$el.focus()})),this.focusAfterClosed=document.activeElement,zi=new Fi.a(this.$el,this.focusAfterClosed,this.getFirstFocus())),"prompt"===this.$type&&(t?setTimeout((function(){e.$refs.input&&e.$refs.input.$el&&e.getInputElement().focus()}),500):(this.editorErrorMessage="",Object(pt.removeClass)(this.getInputElement(),"invalid")))}},mounted:function(){var t=this;this.$nextTick((function(){t.closeOnHashChange&&window.addEventListener("hashchange",t.close)}))},beforeDestroy:function(){this.closeOnHashChange&&window.removeEventListener("hashchange",this.close),setTimeout((function(){zi.closeDialog()}))},data:function(){return{uid:1,title:void 0,message:"",type:"",iconClass:"",customClass:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,action:"",confirmButtonText:"",cancelButtonText:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",editorErrorMessage:null,callback:null,dangerouslyUseHTMLString:!1,focusAfterClosed:null,isOnComposition:!1,distinguishCancelAndClose:!1}}},Ri,[],!1,null,null,null);Ui.options.__file="packages/message-box/src/main.vue";var Gi=Ui.exports,Hi=n(22),Wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yi={title:null,message:"",type:"",iconClass:"",showInput:!1,showClose:!0,modalFade:!0,lockScroll:!0,closeOnClickModal:!0,closeOnPressEscape:!0,closeOnHashChange:!0,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:"",cancelButtonText:"",confirmButtonClass:"",cancelButtonClass:"",customClass:"",beforeClose:null,dangerouslyUseHTMLString:!1,center:!1,roundButton:!1,distinguishCancelAndClose:!1},Xi=fn.a.extend(Gi),$i=void 0,qi=void 0,Zi=[],Ki=function(t){if($i){var e=$i.callback;"function"==typeof e&&(qi.showInput?e(qi.inputValue,t):e(t)),$i.resolve&&("confirm"===t?qi.showInput?$i.resolve({value:qi.inputValue,action:t}):$i.resolve(t):!$i.reject||"cancel"!==t&&"close"!==t||$i.reject(t))}},Qi=function t(){if(qi||((qi=new Xi({el:document.createElement("div")})).callback=Ki),qi.action="",(!qi.visible||qi.closeTimer)&&Zi.length>0){var e=($i=Zi.shift()).options;for(var n in e)e.hasOwnProperty(n)&&(qi[n]=e[n]);void 0===e.callback&&(qi.callback=Ki);var r=qi.callback;qi.callback=function(e,n){r(e,n),t()},Object(Hi.isVNode)(qi.message)?(qi.$slots.default=[qi.message],qi.message=null):delete qi.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach((function(t){void 0===qi[t]&&(qi[t]=!0)})),document.body.appendChild(qi.$el),fn.a.nextTick((function(){qi.visible=!0}))}},Ji=function t(e,n){if(!fn.a.prototype.$isServer){if("string"==typeof e||Object(Hi.isVNode)(e)?(e={message:e},"string"==typeof arguments[1]&&(e.title=arguments[1])):e.callback&&!n&&(n=e.callback),"undefined"!=typeof Promise)return new Promise((function(r,i){Zi.push({options:Ut()({},Yi,t.defaults,e),callback:n,resolve:r,reject:i}),Qi()}));Zi.push({options:Ut()({},Yi,t.defaults,e),callback:n}),Qi()}};Ji.setDefaults=function(t){Ji.defaults=t},Ji.alert=function(t,e,n){return"object"===(void 0===e?"undefined":Wi(e))?(n=e,e=""):void 0===e&&(e=""),Ji(Ut()({title:e,message:t,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},Ji.confirm=function(t,e,n){return"object"===(void 0===e?"undefined":Wi(e))?(n=e,e=""):void 0===e&&(e=""),Ji(Ut()({title:e,message:t,$type:"confirm",showCancelButton:!0},n))},Ji.prompt=function(t,e,n){return"object"===(void 0===e?"undefined":Wi(e))?(n=e,e=""):void 0===e&&(e=""),Ji(Ut()({title:e,message:t,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},Ji.close=function(){qi.doClose(),qi.visible=!1,Zi=[],$i=null};var to=Ji,eo=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[this._t("default")],2)};eo._withStripped=!0;var no=i({name:"ElBreadcrumb",props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide:function(){return{elBreadcrumb:this}},mounted:function(){var t=this.$el.querySelectorAll(".el-breadcrumb__item");t.length&&t[t.length-1].setAttribute("aria-current","page")}},eo,[],!1,null,null,null);no.options.__file="packages/breadcrumb/src/breadcrumb.vue";var ro=no.exports;ro.install=function(t){t.component(ro.name,ro)};var io=ro,oo=function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"el-breadcrumb__item"},[e("span",{ref:"link",class:["el-breadcrumb__inner",this.to?"is-link":""],attrs:{role:"link"}},[this._t("default")],2),this.separatorClass?e("i",{staticClass:"el-breadcrumb__separator",class:this.separatorClass}):e("span",{staticClass:"el-breadcrumb__separator",attrs:{role:"presentation"}},[this._v(this._s(this.separator))])])};oo._withStripped=!0;var ao=i({name:"ElBreadcrumbItem",props:{to:{},replace:Boolean},data:function(){return{separator:"",separatorClass:""}},inject:["elBreadcrumb"],mounted:function(){var t=this;this.separator=this.elBreadcrumb.separator,this.separatorClass=this.elBreadcrumb.separatorClass;var e=this.$refs.link;e.setAttribute("role","link"),e.addEventListener("click",(function(e){var n=t.to,r=t.$router;n&&r&&(t.replace?r.replace(n):r.push(n))}))}},oo,[],!1,null,null,null);ao.options.__file="packages/breadcrumb/src/breadcrumb-item.vue";var so=ao.exports;so.install=function(t){t.component(so.name,so)};var uo=so,lo=function(){var t=this.$createElement;return(this._self._c||t)("form",{staticClass:"el-form",class:[this.labelPosition?"el-form--label-"+this.labelPosition:"",{"el-form--inline":this.inline}]},[this._t("default")],2)};lo._withStripped=!0;var co=i({name:"ElForm",componentName:"ElForm",provide:function(){return{elForm:this}},props:{model:Object,rules:Object,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},watch:{rules:function(){this.fields.forEach((function(t){t.removeValidateEvents(),t.addValidateEvents()})),this.validateOnRuleChange&&this.validate((function(){}))}},computed:{autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var t=Math.max.apply(Math,this.potentialLabelWidthArr);return t?t+"px":""}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},created:function(){var t=this;this.$on("el.form.addField",(function(e){e&&t.fields.push(e)})),this.$on("el.form.removeField",(function(e){e.prop&&t.fields.splice(t.fields.indexOf(e),1)}))},methods:{resetFields:function(){this.model?this.fields.forEach((function(t){t.resetField()})):console.warn("[Element Warn][Form]model is required for resetFields to work.")},clearValidate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=t.length?"string"==typeof t?this.fields.filter((function(e){return t===e.prop})):this.fields.filter((function(e){return t.indexOf(e.prop)>-1})):this.fields;e.forEach((function(t){t.clearValidate()}))},validate:function(t){var e=this;if(this.model){var n=void 0;"function"!=typeof t&&window.Promise&&(n=new window.Promise((function(e,n){t=function(t,r){t?e(t):n(r)}})));var r=!0,i=0;0===this.fields.length&&t&&t(!0);var o={};return this.fields.forEach((function(n){n.validate("",(function(n,a){n&&(r=!1),o=Ut()({},o,a),"function"==typeof t&&++i===e.fields.length&&t(r,o)}))})),n||void 0}console.warn("[Element Warn][Form]model is required for validate to work!")},validateField:function(t,e){t=[].concat(t);var n=this.fields.filter((function(e){return-1!==t.indexOf(e.prop)}));n.length?n.forEach((function(t){t.validate("",e)})):console.warn("[Element Warn]please pass correct props!")},getLabelWidthIndex:function(t){var e=this.potentialLabelWidthArr.indexOf(t);if(-1===e)throw new Error("[ElementForm]unpected width ",t);return e},registerLabelWidth:function(t,e){if(t&&e){var n=this.getLabelWidthIndex(e);this.potentialLabelWidthArr.splice(n,1,t)}else t&&this.potentialLabelWidthArr.push(t)},deregisterLabelWidth:function(t){var e=this.getLabelWidthIndex(t);this.potentialLabelWidthArr.splice(e,1)}}},lo,[],!1,null,null,null);co.options.__file="packages/form/src/form.vue";var ho=co.exports;ho.install=function(t){t.component(ho.name,ho)};var fo=ho,po=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-form-item",class:[{"el-form-item--feedback":t.elForm&&t.elForm.statusIcon,"is-error":"error"===t.validateState,"is-validating":"validating"===t.validateState,"is-success":"success"===t.validateState,"is-required":t.isRequired||t.required,"is-no-asterisk":t.elForm&&t.elForm.hideRequiredAsterisk},t.sizeClass?"el-form-item--"+t.sizeClass:""]},[n("label-wrap",{attrs:{"is-auto-width":t.labelStyle&&"auto"===t.labelStyle.width,"update-all":"auto"===t.form.labelWidth}},[t.label||t.$slots.label?n("label",{staticClass:"el-form-item__label",style:t.labelStyle,attrs:{for:t.labelFor}},[t._t("label",[t._v(t._s(t.label+t.form.labelSuffix))])],2):t._e()]),n("div",{staticClass:"el-form-item__content",style:t.contentStyle},[t._t("default"),n("transition",{attrs:{name:"el-zoom-in-top"}},["error"===t.validateState&&t.showMessage&&t.form.showMessage?t._t("error",[n("div",{staticClass:"el-form-item__error",class:{"el-form-item__error--inline":"boolean"==typeof t.inlineMessage?t.inlineMessage:t.elForm&&t.elForm.inlineMessage||!1}},[t._v("\n "+t._s(t.validateMessage)+"\n ")])],{error:t.validateMessage}):t._e()],2)],2)],1)};po._withStripped=!0;var go=n(40),vo=n.n(go),mo=i({props:{isAutoWidth:Boolean,updateAll:Boolean},inject:["elForm","elFormItem"],render:function(){var t=arguments[0],e=this.$slots.default;if(!e)return null;if(this.isAutoWidth){var n=this.elForm.autoLabelWidth,r={};if(n&&"auto"!==n){var i=parseInt(n,10)-this.computedWidth;i&&(r.marginLeft=i+"px")}return t("div",{class:"el-form-item__label-wrap",style:r},[e])}return e[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var t=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(t))}return 0},updateLabelWidth:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&("update"===t?this.computedWidth=this.getLabelWidth():"remove"===t&&this.elForm.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(t,e){this.updateAll&&(this.elForm.registerLabelWidth(t,e),this.elFormItem.updateComputedLabelWidth(t))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth("update")},updated:function(){this.updateLabelWidth("update")},beforeDestroy:function(){this.updateLabelWidth("remove")}},void 0,void 0,!1,null,null,null);mo.options.__file="packages/form/src/label-wrap.vue";var yo=mo.exports,bo=i({name:"ElFormItem",componentName:"ElFormItem",mixins:[S.a],provide:function(){return{elFormItem:this}},inject:["elForm"],props:{label:String,labelWidth:String,prop:String,required:{type:Boolean,default:void 0},rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:String},components:{LabelWrap:yo},watch:{error:{immediate:!0,handler:function(t){this.validateMessage=t,this.validateState=t?"error":""}},validateStatus:function(t){this.validateState=t}},computed:{labelFor:function(){return this.for||this.prop},labelStyle:function(){var t={};if("top"===this.form.labelPosition)return t;var e=this.labelWidth||this.form.labelWidth;return e&&(t.width=e),t},contentStyle:function(){var t={},e=this.label;if("top"===this.form.labelPosition||this.form.inline)return t;if(!e&&!this.labelWidth&&this.isNested)return t;var n=this.labelWidth||this.form.labelWidth;return"auto"===n?"auto"===this.labelWidth?t.marginLeft=this.computedLabelWidth:"auto"===this.form.labelWidth&&(t.marginLeft=this.elForm.autoLabelWidth):t.marginLeft=n,t},form:function(){for(var t=this.$parent,e=t.$options.componentName;"ElForm"!==e;)"ElFormItem"===e&&(this.isNested=!0),e=(t=t.$parent).$options.componentName;return t},fieldValue:function(){var t=this.form.model;if(t&&this.prop){var e=this.prop;return-1!==e.indexOf(":")&&(e=e.replace(/:/,".")),Object(g.getPropByPath)(t,e,!0).v}},isRequired:function(){var t=this.getRules(),e=!1;return t&&t.length&&t.every((function(t){return!t.required||(e=!0,!1)})),e},_formSize:function(){return this.elForm.size},elFormItemSize:function(){return this.size||this._formSize},sizeClass:function(){return this.elFormItemSize||(this.$ELEMENT||{}).size}},data:function(){return{validateState:"",validateMessage:"",validateDisabled:!1,validator:{},isNested:!1,computedLabelWidth:""}},methods:{validate:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.noop;this.validateDisabled=!1;var r=this.getFilteredRule(t);if((!r||0===r.length)&&void 0===this.required)return n(),!0;this.validateState="validating";var i={};r&&r.length>0&&r.forEach((function(t){delete t.trigger})),i[this.prop]=r;var o=new vo.a(i),a={};a[this.prop]=this.fieldValue,o.validate(a,{firstFields:!0},(function(t,r){e.validateState=t?"error":"success",e.validateMessage=t?t[0].message:"",n(e.validateMessage,r),e.elForm&&e.elForm.$emit("validate",e.prop,!t,e.validateMessage||null)}))},clearValidate:function(){this.validateState="",this.validateMessage="",this.validateDisabled=!1},resetField:function(){var t=this;this.validateState="",this.validateMessage="";var e=this.form.model,n=this.fieldValue,r=this.prop;-1!==r.indexOf(":")&&(r=r.replace(/:/,"."));var i=Object(g.getPropByPath)(e,r,!0);this.validateDisabled=!0,Array.isArray(n)?i.o[i.k]=[].concat(this.initialValue):i.o[i.k]=this.initialValue,this.$nextTick((function(){t.validateDisabled=!1})),this.broadcast("ElTimeSelect","fieldReset",this.initialValue)},getRules:function(){var t=this.form.rules,e=this.rules,n=void 0!==this.required?{required:!!this.required}:[],r=Object(g.getPropByPath)(t,this.prop||"");return t=t?r.o[this.prop||""]||r.v:[],[].concat(e||t||[]).concat(n)},getFilteredRule:function(t){return this.getRules().filter((function(e){return!e.trigger||""===t||(Array.isArray(e.trigger)?e.trigger.indexOf(t)>-1:e.trigger===t)})).map((function(t){return Ut()({},t)}))},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){this.validateDisabled?this.validateDisabled=!1:this.validate("change")},updateComputedLabelWidth:function(t){this.computedLabelWidth=t?t+"px":""},addValidateEvents:function(){(this.getRules().length||void 0!==this.required)&&(this.$on("el.form.blur",this.onFieldBlur),this.$on("el.form.change",this.onFieldChange))},removeValidateEvents:function(){this.$off()}},mounted:function(){if(this.prop){this.dispatch("ElForm","el.form.addField",[this]);var t=this.fieldValue;Array.isArray(t)&&(t=[].concat(t)),Object.defineProperty(this,"initialValue",{value:t}),this.addValidateEvents()}},beforeDestroy:function(){this.dispatch("ElForm","el.form.removeField",[this])}},po,[],!1,null,null,null);bo.options.__file="packages/form/src/form-item.vue";var _o=bo.exports;_o.install=function(t){t.component(_o.name,_o)};var xo=_o,wo=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-tabs__active-bar",class:"is-"+this.rootTabs.tabPosition,style:this.barStyle})};wo._withStripped=!0;var Oo=i({name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){var t=this,e={},n=0,r=0,i=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height",o="width"===i?"x":"y",a=function(t){return t.toLowerCase().replace(/( |^)[a-z]/g,(function(t){return t.toUpperCase()}))};this.tabs.every((function(e,o){var s=Object(g.arrayFind)(t.$parent.$refs.tabs||[],(function(t){return t.id.replace("tab-","")===e.paneName}));if(!s)return!1;if(e.active){r=s["client"+a(i)];var u=window.getComputedStyle(s);return"width"===i&&t.tabs.length>1&&(r-=parseFloat(u.paddingLeft)+parseFloat(u.paddingRight)),"width"===i&&(n+=parseFloat(u.paddingLeft)),!1}return n+=s["client"+a(i)],!0}));var s="translate"+a(o)+"("+n+"px)";return e[i]=r+"px",e.transform=s,e.msTransform=s,e.webkitTransform=s,e}}}},wo,[],!1,null,null,null);Oo.options.__file="packages/tabs/src/tab-bar.vue";var So=Oo.exports;function Co(){}var Eo=function(t){return t.toLowerCase().replace(/( |^)[a-z]/g,(function(t){return t.toUpperCase()}))},To=i({name:"TabNav",components:{TabBar:So},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:Co},onTabRemove:{type:Function,default:Co},type:String,stretch:Boolean},data:function(){return{scrollable:!1,navOffset:0,isFocus:!1,focusable:!0}},computed:{navStyle:function(){return{transform:"translate"+(-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"X":"Y")+"(-"+this.navOffset+"px)"}},sizeName:function(){return-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height"}},methods:{scrollPrev:function(){var t=this.$refs.navScroll["offset"+Eo(this.sizeName)],e=this.navOffset;if(e){var n=e>t?e-t:0;this.navOffset=n}},scrollNext:function(){var t=this.$refs.nav["offset"+Eo(this.sizeName)],e=this.$refs.navScroll["offset"+Eo(this.sizeName)],n=this.navOffset;if(!(t-n<=e)){var r=t-n>2*e?n+e:t-e;this.navOffset=r}},scrollToActiveTab:function(){if(this.scrollable){var t=this.$refs.nav,e=this.$el.querySelector(".is-active");if(e){var n=this.$refs.navScroll,r=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition),i=e.getBoundingClientRect(),o=n.getBoundingClientRect(),a=r?t.offsetWidth-o.width:t.offsetHeight-o.height,s=this.navOffset,u=s;r?(i.left<o.left&&(u=s-(o.left-i.left)),i.right>o.right&&(u=s+i.right-o.right)):(i.top<o.top&&(u=s-(o.top-i.top)),i.bottom>o.bottom&&(u=s+(i.bottom-o.bottom))),u=Math.max(u,0),this.navOffset=Math.min(u,a)}}},update:function(){if(this.$refs.nav){var t=this.sizeName,e=this.$refs.nav["offset"+Eo(t)],n=this.$refs.navScroll["offset"+Eo(t)],r=this.navOffset;if(n<e){var i=this.navOffset;this.scrollable=this.scrollable||{},this.scrollable.prev=i,this.scrollable.next=i+n<e,e-i<n&&(this.navOffset=e-n)}else this.scrollable=!1,r>0&&(this.navOffset=0)}},changeTab:function(t){var e=t.keyCode,n=void 0,r=void 0,i=void 0;-1!==[37,38,39,40].indexOf(e)&&(i=t.currentTarget.querySelectorAll("[role=tab]"),r=Array.prototype.indexOf.call(i,t.target),i[n=37===e||38===e?0===r?i.length-1:r-1:r<i.length-1?r+1:0].focus(),i[n].click(),this.setFocus())},setFocus:function(){this.focusable&&(this.isFocus=!0)},removeFocus:function(){this.isFocus=!1},visibilityChangeHandler:function(){var t=this,e=document.visibilityState;"hidden"===e?this.focusable=!1:"visible"===e&&setTimeout((function(){t.focusable=!0}),50)},windowBlurHandler:function(){this.focusable=!1},windowFocusHandler:function(){var t=this;setTimeout((function(){t.focusable=!0}),50)}},updated:function(){this.update()},render:function(t){var e=this,n=this.type,r=this.panes,i=this.editable,o=this.stretch,a=this.onTabClick,s=this.onTabRemove,u=this.navStyle,l=this.scrollable,c=this.scrollNext,h=this.scrollPrev,f=this.changeTab,d=this.setFocus,p=this.removeFocus,g=l?[t("span",{class:["el-tabs__nav-prev",l.prev?"":"is-disabled"],on:{click:h}},[t("i",{class:"el-icon-arrow-left"})]),t("span",{class:["el-tabs__nav-next",l.next?"":"is-disabled"],on:{click:c}},[t("i",{class:"el-icon-arrow-right"})])]:null,v=this._l(r,(function(n,r){var o,u=n.name||n.index||r,l=n.isClosable||i;n.index=""+r;var c=l?t("span",{class:"el-icon-close",on:{click:function(t){s(n,t)}}}):null,h=n.$slots.label||n.label,f=n.active?0:-1;return t("div",{class:(o={"el-tabs__item":!0},o["is-"+e.rootTabs.tabPosition]=!0,o["is-active"]=n.active,o["is-disabled"]=n.disabled,o["is-closable"]=l,o["is-focus"]=e.isFocus,o),attrs:{id:"tab-"+u,"aria-controls":"pane-"+u,role:"tab","aria-selected":n.active,tabindex:f},key:"tab-"+u,ref:"tabs",refInFor:!0,on:{focus:function(){d()},blur:function(){p()},click:function(t){p(),a(n,u,t)},keydown:function(t){!l||46!==t.keyCode&&8!==t.keyCode||s(n,t)}}},[h,c])}));return t("div",{class:["el-tabs__nav-wrap",l?"is-scrollable":"","is-"+this.rootTabs.tabPosition]},[g,t("div",{class:["el-tabs__nav-scroll"],ref:"navScroll"},[t("div",{class:["el-tabs__nav","is-"+this.rootTabs.tabPosition,o&&-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"is-stretch":""],ref:"nav",style:u,attrs:{role:"tablist"},on:{keydown:f}},[n?null:t("tab-bar",{attrs:{tabs:r}}),v])])])},mounted:function(){var t=this;Object(Ne.addResizeListener)(this.$el,this.update),document.addEventListener("visibilitychange",this.visibilityChangeHandler),window.addEventListener("blur",this.windowBlurHandler),window.addEventListener("focus",this.windowFocusHandler),setTimeout((function(){t.scrollToActiveTab()}),0)},beforeDestroy:function(){this.$el&&this.update&&Object(Ne.removeResizeListener)(this.$el,this.update),document.removeEventListener("visibilitychange",this.visibilityChangeHandler),window.removeEventListener("blur",this.windowBlurHandler),window.removeEventListener("focus",this.windowFocusHandler)}},void 0,void 0,!1,null,null,null);To.options.__file="packages/tabs/src/tab-nav.vue";var Ao=i({name:"ElTabs",components:{TabNav:To.exports},props:{type:String,activeName:String,closable:Boolean,addable:Boolean,value:{},editable:Boolean,tabPosition:{type:String,default:"top"},beforeLeave:Function,stretch:Boolean},provide:function(){return{rootTabs:this}},data:function(){return{currentName:this.value||this.activeName,panes:[]}},watch:{activeName:function(t){this.setCurrentName(t)},value:function(t){this.setCurrentName(t)},currentName:function(t){var e=this;this.$refs.nav&&this.$nextTick((function(){e.$refs.nav.$nextTick((function(t){e.$refs.nav.scrollToActiveTab()}))}))}},methods:{calcPaneInstances:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.$slots.default){var n=this.$slots.default.filter((function(t){return t.tag&&t.componentOptions&&"ElTabPane"===t.componentOptions.Ctor.options.name})),r=n.map((function(t){return t.componentInstance})),i=!(r.length===this.panes.length&&r.every((function(e,n){return e===t.panes[n]})));(e||i)&&(this.panes=r)}else 0!==this.panes.length&&(this.panes=[])},handleTabClick:function(t,e,n){t.disabled||(this.setCurrentName(e),this.$emit("tab-click",t,n))},handleTabRemove:function(t,e){t.disabled||(e.stopPropagation(),this.$emit("edit",t.name,"remove"),this.$emit("tab-remove",t.name))},handleTabAdd:function(){this.$emit("edit",null,"add"),this.$emit("tab-add")},setCurrentName:function(t){var e=this,n=function(){e.currentName=t,e.$emit("input",t)};if(this.currentName!==t&&this.beforeLeave){var r=this.beforeLeave(t,this.currentName);r&&r.then?r.then((function(){n(),e.$refs.nav&&e.$refs.nav.removeFocus()}),(function(){})):!1!==r&&n()}else n()}},render:function(t){var e,n=this.type,r=this.handleTabClick,i=this.handleTabRemove,o=this.handleTabAdd,a=this.currentName,s=this.panes,u=this.editable,l=this.addable,c=this.tabPosition,h=this.stretch,f=u||l?t("span",{class:"el-tabs__new-tab",on:{click:o,keydown:function(t){13===t.keyCode&&o()}},attrs:{tabindex:"0"}},[t("i",{class:"el-icon-plus"})]):null,d=t("div",{class:["el-tabs__header","is-"+c]},[f,t("tab-nav",{props:{currentName:a,onTabClick:r,onTabRemove:i,editable:u,type:n,panes:s,stretch:h},ref:"nav"})]),p=t("div",{class:"el-tabs__content"},[this.$slots.default]);return t("div",{class:(e={"el-tabs":!0,"el-tabs--card":"card"===n},e["el-tabs--"+c]=!0,e["el-tabs--border-card"]="border-card"===n,e)},["bottom"!==c?[d,p]:[p,d]])},created:function(){this.currentName||this.setCurrentName("0"),this.$on("tab-nav-update",this.calcPaneInstances.bind(null,!0))},mounted:function(){this.calcPaneInstances()},updated:function(){this.calcPaneInstances()}},void 0,void 0,!1,null,null,null);Ao.options.__file="packages/tabs/src/tabs.vue";var Mo=Ao.exports;Mo.install=function(t){t.component(Mo.name,Mo)};var Io=Mo,jo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return!t.lazy||t.loaded||t.active?n("div",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"el-tab-pane",attrs:{role:"tabpanel","aria-hidden":!t.active,id:"pane-"+t.paneName,"aria-labelledby":"tab-"+t.paneName}},[t._t("default")],2):t._e()};jo._withStripped=!0;var ko=i({name:"ElTabPane",componentName:"ElTabPane",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean},data:function(){return{index:null,loaded:!1}},computed:{isClosable:function(){return this.closable||this.$parent.closable},active:function(){var t=this.$parent.currentName===(this.name||this.index);return t&&(this.loaded=!0),t},paneName:function(){return this.name||this.index}},updated:function(){this.$parent.$emit("tab-nav-update")}},jo,[],!1,null,null,null);ko.options.__file="packages/tabs/src/tab-pane.vue";var Po=ko.exports;Po.install=function(t){t.component(Po.name,Po)};var Lo=Po,Ro=i({name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(t){return-1!==["dark","light","plain"].indexOf(t)}}},methods:{handleClose:function(t){t.stopPropagation(),this.$emit("close",t)},handleClick:function(t){this.$emit("click",t)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(t){var e=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=t("span",{class:["el-tag",e?"el-tag--"+e:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&t("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?o:t("transition",{attrs:{name:"el-zoom-in-center"}},[o])}},void 0,void 0,!1,null,null,null);Ro.options.__file="packages/tag/src/tag.vue";var Do=Ro.exports;Do.install=function(t){t.component(Do.name,Do)};var No=Do,Bo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-tree",class:{"el-tree--highlight-current":t.highlightCurrent,"is-dragging":!!t.dragState.draggingNode,"is-drop-not-allow":!t.dragState.allowDrop,"is-drop-inner":"inner"===t.dragState.dropType},attrs:{role:"tree"}},[t._l(t.root.childNodes,(function(e){return n("el-tree-node",{key:t.getNodeKey(e),attrs:{node:e,props:t.props,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent},on:{"node-expand":t.handleNodeExpand}})})),t.isEmpty?n("div",{staticClass:"el-tree__empty-block"},[n("span",{staticClass:"el-tree__empty-text"},[t._v(t._s(t.emptyText))])]):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.dragState.showDropIndicator,expression:"dragState.showDropIndicator"}],ref:"dropIndicator",staticClass:"el-tree__drop-indicator"})],2)};Bo._withStripped=!0;var Fo="$treeNodeId",zo=function(t,e){e&&!e[Fo]&&Object.defineProperty(e,Fo,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},Vo=function(t,e){return t?e[t]:e[Fo]},Uo=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var Go=function(t){for(var e=!0,n=!0,r=!0,i=0,o=t.length;i<o;i++){var a=t[i];(!0!==a.checked||a.indeterminate)&&(e=!1,a.disabled||(r=!1)),(!1!==a.checked||a.indeterminate)&&(n=!1)}return{all:e,none:n,allWithoutDisable:r,half:!e&&!n}},Ho=function t(e){if(0!==e.childNodes.length){var n=Go(e.childNodes),r=n.all,i=n.none,o=n.half;r?(e.checked=!0,e.indeterminate=!1):o?(e.checked=!1,e.indeterminate=!0):i&&(e.checked=!1,e.indeterminate=!1);var a=e.parent;a&&0!==a.level&&(e.store.checkStrictly||t(a))}},Wo=function(t,e){var n=t.store.props,r=t.data||{},i=n[e];if("function"==typeof i)return i(r,t);if("string"==typeof i)return r[i];if(void 0===i){var o=r[e];return void 0===o?"":o}},Yo=0,Xo=function(){function t(e){for(var n in function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.id=Yo++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,e)e.hasOwnProperty(n)&&(this[n]=e[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1);var r=this.store;if(!r)throw new Error("[Node]store is required!");r.registerNode(this);var i=r.props;if(i&&void 0!==i.isLeaf){var o=Wo(this,"isLeaf");"boolean"==typeof o&&(this.isLeafByUser=o)}if(!0!==r.lazy&&this.data?(this.setData(this.data),r.defaultExpandAll&&(this.expanded=!0)):this.level>0&&r.lazy&&r.defaultExpandAll&&this.expand(),Array.isArray(this.data)||zo(this,this.data),this.data){var a=r.defaultExpandedKeys,s=r.key;s&&a&&-1!==a.indexOf(this.key)&&this.expand(null,r.autoExpandParent),s&&void 0!==r.currentNodeKey&&this.key===r.currentNodeKey&&(r.currentNode=this,r.currentNode.isCurrent=!0),r.lazy&&r._initDefaultCheckedNode(this),this.updateLeafState()}}return t.prototype.setData=function(t){Array.isArray(t)||zo(this,t),this.data=t,this.childNodes=[];for(var e=void 0,n=0,r=(e=0===this.level&&this.data instanceof Array?this.data:Wo(this,"children")||[]).length;n<r;n++)this.insertChild({data:e[n]})},t.prototype.contains=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function n(r){for(var i=r.childNodes||[],o=!1,a=0,s=i.length;a<s;a++){var u=i[a];if(u===t||e&&n(u)){o=!0;break}}return o};return n(this)},t.prototype.remove=function(){var t=this.parent;t&&t.removeChild(this)},t.prototype.insertChild=function(e,n,r){if(!e)throw new Error("insertChild error: child is required.");if(!(e instanceof t)){if(!r){var i=this.getChildren(!0)||[];-1===i.indexOf(e.data)&&(void 0===n||n<0?i.push(e.data):i.splice(n,0,e.data))}Ut()(e,{parent:this,store:this.store}),e=new t(e)}e.level=this.level+1,void 0===n||n<0?this.childNodes.push(e):this.childNodes.splice(n,0,e),this.updateLeafState()},t.prototype.insertBefore=function(t,e){var n=void 0;e&&(n=this.childNodes.indexOf(e)),this.insertChild(t,n)},t.prototype.insertAfter=function(t,e){var n=void 0;e&&-1!==(n=this.childNodes.indexOf(e))&&(n+=1),this.insertChild(t,n)},t.prototype.removeChild=function(t){var e=this.getChildren()||[],n=e.indexOf(t.data);n>-1&&e.splice(n,1);var r=this.childNodes.indexOf(t);r>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()},t.prototype.removeChildByData=function(t){for(var e=null,n=0;n<this.childNodes.length;n++)if(this.childNodes[n].data===t){e=this.childNodes[n];break}e&&this.removeChild(e)},t.prototype.expand=function(t,e){var n=this,r=function(){if(e)for(var r=n.parent;r.level>0;)r.expanded=!0,r=r.parent;n.expanded=!0,t&&t()};this.shouldLoadData()?this.loadData((function(t){t instanceof Array&&(n.checked?n.setChecked(!0,!0):n.store.checkStrictly||Ho(n),r())})):r()},t.prototype.doCreateChildren=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach((function(t){e.insertChild(Ut()({data:t},n),void 0,!0)}))},t.prototype.collapse=function(){this.expanded=!1},t.prototype.shouldLoadData=function(){return!0===this.store.lazy&&this.store.load&&!this.loaded},t.prototype.updateLeafState=function(){if(!0!==this.store.lazy||!0===this.loaded||void 0===this.isLeafByUser){var t=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!t||0===t.length:this.isLeaf=!1}else this.isLeaf=this.isLeafByUser},t.prototype.setChecked=function(t,e,n,r){var i=this;if(this.indeterminate="half"===t,this.checked=!0===t,!this.store.checkStrictly){if(!this.shouldLoadData()||this.store.checkDescendants){var o=Go(this.childNodes),a=o.all,s=o.allWithoutDisable;this.isLeaf||a||!s||(this.checked=!1,t=!1);var u=function(){if(e){for(var n=i.childNodes,o=0,a=n.length;o<a;o++){var s=n[o];r=r||!1!==t;var u=s.disabled?s.checked:r;s.setChecked(u,e,!0,r)}var l=Go(n),c=l.half,h=l.all;h||(i.checked=h,i.indeterminate=c)}};if(this.shouldLoadData())return void this.loadData((function(){u(),Ho(i)}),{checked:!1!==t});u()}var l=this.parent;l&&0!==l.level&&(n||Ho(l))}},t.prototype.getChildren=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0===this.level)return this.data;var e=this.data;if(!e)return null;var n=this.store.props,r="children";return n&&(r=n.children||"children"),void 0===e[r]&&(e[r]=null),t&&!e[r]&&(e[r]=[]),e[r]},t.prototype.updateChildren=function(){var t=this,e=this.getChildren()||[],n=this.childNodes.map((function(t){return t.data})),r={},i=[];e.forEach((function(t,e){var o=t[Fo];!!o&&Object(g.arrayFindIndex)(n,(function(t){return t[Fo]===o}))>=0?r[o]={index:e,data:t}:i.push({index:e,data:t})})),this.store.lazy||n.forEach((function(e){r[e[Fo]]||t.removeChildByData(e)})),i.forEach((function(e){var n=e.index,r=e.data;t.insertChild({data:r},n)})),this.updateLeafState()},t.prototype.loadData=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(n).length)t&&t.call(this);else{this.loading=!0;var r=function(r){e.loaded=!0,e.loading=!1,e.childNodes=[],e.doCreateChildren(r,n),e.updateLeafState(),t&&t.call(e,r)};this.store.load(this,r)}},Uo(t,[{key:"label",get:function(){return Wo(this,"label")}},{key:"key",get:function(){var t=this.store.key;return this.data?this.data[t]:null}},{key:"disabled",get:function(){return Wo(this,"disabled")}},{key:"nextSibling",get:function(){var t=this.parent;if(t){var e=t.childNodes.indexOf(this);if(e>-1)return t.childNodes[e+1]}return null}},{key:"previousSibling",get:function(){var t=this.parent;if(t){var e=t.childNodes.indexOf(this);if(e>-1)return e>0?t.childNodes[e-1]:null}return null}}]),t}(),$o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var qo=function(){function t(e){var n=this;for(var r in function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.currentNode=null,this.currentNodeKey=null,e)e.hasOwnProperty(r)&&(this[r]=e[r]);(this.nodesMap={},this.root=new Xo({data:this.data,store:this}),this.lazy&&this.load)?(0,this.load)(this.root,(function(t){n.root.doCreateChildren(t),n._initDefaultCheckedNodes()})):this._initDefaultCheckedNodes()}return t.prototype.filter=function(t){var e=this.filterNodeMethod,n=this.lazy;!function r(i){var o=i.root?i.root.childNodes:i.childNodes;if(o.forEach((function(n){n.visible=e.call(n,t,n.data,n),r(n)})),!i.visible&&o.length){var a;a=!o.some((function(t){return t.visible})),i.root?i.root.visible=!1===a:i.visible=!1===a}t&&(!i.visible||i.isLeaf||n||i.expand())}(this)},t.prototype.setData=function(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()},t.prototype.getNode=function(t){if(t instanceof Xo)return t;var e="object"!==(void 0===t?"undefined":$o(t))?t:Vo(this.key,t);return this.nodesMap[e]||null},t.prototype.insertBefore=function(t,e){var n=this.getNode(e);n.parent.insertBefore({data:t},n)},t.prototype.insertAfter=function(t,e){var n=this.getNode(e);n.parent.insertAfter({data:t},n)},t.prototype.remove=function(t){var e=this.getNode(t);e&&e.parent&&(e===this.currentNode&&(this.currentNode=null),e.parent.removeChild(e))},t.prototype.append=function(t,e){var n=e?this.getNode(e):this.root;n&&n.insertChild({data:t})},t.prototype._initDefaultCheckedNodes=function(){var t=this,e=this.defaultCheckedKeys||[],n=this.nodesMap;e.forEach((function(e){var r=n[e];r&&r.setChecked(!0,!t.checkStrictly)}))},t.prototype._initDefaultCheckedNode=function(t){-1!==(this.defaultCheckedKeys||[]).indexOf(t.key)&&t.setChecked(!0,!this.checkStrictly)},t.prototype.setDefaultCheckedKey=function(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())},t.prototype.registerNode=function(t){this.key&&t&&t.data&&(void 0!==t.key&&(this.nodesMap[t.key]=t))},t.prototype.deregisterNode=function(t){var e=this;this.key&&t&&t.data&&(t.childNodes.forEach((function(t){e.deregisterNode(t)})),delete this.nodesMap[t.key])},t.prototype.getCheckedNodes=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],r=function r(i){(i.root?i.root.childNodes:i.childNodes).forEach((function(i){(i.checked||e&&i.indeterminate)&&(!t||t&&i.isLeaf)&&n.push(i.data),r(i)}))};return r(this),n},t.prototype.getCheckedKeys=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getCheckedNodes(e).map((function(e){return(e||{})[t.key]}))},t.prototype.getHalfCheckedNodes=function(){var t=[];return function e(n){(n.root?n.root.childNodes:n.childNodes).forEach((function(n){n.indeterminate&&t.push(n.data),e(n)}))}(this),t},t.prototype.getHalfCheckedKeys=function(){var t=this;return this.getHalfCheckedNodes().map((function(e){return(e||{})[t.key]}))},t.prototype._getAllNodes=function(){var t=[],e=this.nodesMap;for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t},t.prototype.updateChildren=function(t,e){var n=this.nodesMap[t];if(n){for(var r=n.childNodes,i=r.length-1;i>=0;i--){var o=r[i];this.remove(o.data)}for(var a=0,s=e.length;a<s;a++){var u=e[a];this.append(u,n.data)}}},t.prototype._setCheckedKeys=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],r=this._getAllNodes().sort((function(t,e){return e.level-t.level})),i=Object.create(null),o=Object.keys(n);r.forEach((function(t){return t.setChecked(!1,!1)}));for(var a=0,s=r.length;a<s;a++){var u=r[a],l=u.data[t].toString(),c=o.indexOf(l)>-1;if(c){for(var h=u.parent;h&&h.level>0;)i[h.data[t]]=!0,h=h.parent;u.isLeaf||this.checkStrictly?u.setChecked(!0,!1):(u.setChecked(!0,!0),e&&function(){u.setChecked(!1,!1);!function t(e){e.childNodes.forEach((function(e){e.isLeaf||e.setChecked(!1,!1),t(e)}))}(u)}())}else u.checked&&!i[l]&&u.setChecked(!1,!1)}},t.prototype.setCheckedNodes=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,r={};t.forEach((function(t){r[(t||{})[n]]=!0})),this._setCheckedKeys(n,e,r)},t.prototype.setCheckedKeys=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=t;var n=this.key,r={};t.forEach((function(t){r[t]=!0})),this._setCheckedKeys(n,e,r)},t.prototype.setDefaultExpandedKeys=function(t){var e=this;t=t||[],this.defaultExpandedKeys=t,t.forEach((function(t){var n=e.getNode(t);n&&n.expand(null,e.autoExpandParent)}))},t.prototype.setChecked=function(t,e,n){var r=this.getNode(t);r&&r.setChecked(!!e,n)},t.prototype.getCurrentNode=function(){return this.currentNode},t.prototype.setCurrentNode=function(t){var e=this.currentNode;e&&(e.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0},t.prototype.setUserCurrentNode=function(t){var e=t[this.key],n=this.nodesMap[e];this.setCurrentNode(n)},t.prototype.setCurrentNodeKey=function(t){if(null==t)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);var e=this.getNode(t);e&&this.setCurrentNode(e)},t}(),Zo=function(){var t=this,e=this,n=e.$createElement,r=e._self._c||n;return r("div",{directives:[{name:"show",rawName:"v-show",value:e.node.visible,expression:"node.visible"}],ref:"node",staticClass:"el-tree-node",class:{"is-expanded":e.expanded,"is-current":e.node.isCurrent,"is-hidden":!e.node.visible,"is-focusable":!e.node.disabled,"is-checked":!e.node.disabled&&e.node.checked},attrs:{role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.draggable},on:{click:function(t){return t.stopPropagation(),e.handleClick(t)},contextmenu:function(e){return t.handleContextMenu(e)},dragstart:function(t){return t.stopPropagation(),e.handleDragStart(t)},dragover:function(t){return t.stopPropagation(),e.handleDragOver(t)},dragend:function(t){return t.stopPropagation(),e.handleDragEnd(t)},drop:function(t){return t.stopPropagation(),e.handleDrop(t)}}},[r("div",{staticClass:"el-tree-node__content",style:{"padding-left":(e.node.level-1)*e.tree.indent+"px"}},[r("span",{class:[{"is-leaf":e.node.isLeaf,expanded:!e.node.isLeaf&&e.expanded},"el-tree-node__expand-icon",e.tree.iconClass?e.tree.iconClass:"el-icon-caret-right"],on:{click:function(t){return t.stopPropagation(),e.handleExpandIconClick(t)}}}),e.showCheckbox?r("el-checkbox",{attrs:{indeterminate:e.node.indeterminate,disabled:!!e.node.disabled},on:{change:e.handleCheckChange},nativeOn:{click:function(t){t.stopPropagation()}},model:{value:e.node.checked,callback:function(t){e.$set(e.node,"checked",t)},expression:"node.checked"}}):e._e(),e.node.loading?r("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):e._e(),r("node-content",{attrs:{node:e.node}})],1),r("el-collapse-transition",[!e.renderAfterExpand||e.childNodeRendered?r("div",{directives:[{name:"show",rawName:"v-show",value:e.expanded,expression:"expanded"}],staticClass:"el-tree-node__children",attrs:{role:"group","aria-expanded":e.expanded}},e._l(e.node.childNodes,(function(t){return r("el-tree-node",{key:e.getNodeKey(t),attrs:{"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:t},on:{"node-expand":e.handleChildNodeExpand}})})),1):e._e()])],1)};Zo._withStripped=!0;var Ko=i({name:"ElTreeNode",componentName:"ElTreeNode",mixins:[S.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:bt.a,ElCheckbox:on.a,NodeContent:{props:{node:{required:!0}},render:function(t){var e=this.$parent,n=e.tree,r=this.node,i=r.data,o=r.store;return e.renderContent?e.renderContent.call(e._renderProxy,t,{_self:n.$vnode.context,node:r,data:i,store:o}):n.$scopedSlots.default?n.$scopedSlots.default({node:r,data:i}):t("span",{class:"el-tree-node__label"},[r.label])}}},data:function(){return{tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}},watch:{"node.indeterminate":function(t){this.handleSelectChange(this.node.checked,t)},"node.checked":function(t){this.handleSelectChange(t,this.node.indeterminate)},"node.expanded":function(t){var e=this;this.$nextTick((function(){return e.expanded=t})),t&&(this.childNodeRendered=!0)}},methods:{getNodeKey:function(t){return Vo(this.tree.nodeKey,t.data)},handleSelectChange:function(t,e){this.oldChecked!==t&&this.oldIndeterminate!==e&&this.tree.$emit("check-change",this.node.data,t,e),this.oldChecked=t,this.indeterminate=e},handleClick:function(){var t=this.tree.store;t.setCurrentNode(this.node),this.tree.$emit("current-change",t.currentNode?t.currentNode.data:null,t.currentNode),this.tree.currentNode=this,this.tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit("node-click",this.node.data,this.node,this)},handleContextMenu:function(t){this.tree._events["node-contextmenu"]&&this.tree._events["node-contextmenu"].length>0&&(t.stopPropagation(),t.preventDefault()),this.tree.$emit("node-contextmenu",t,this.node.data,this.node,this)},handleExpandIconClick:function(){this.node.isLeaf||(this.expanded?(this.tree.$emit("node-collapse",this.node.data,this.node,this),this.node.collapse()):(this.node.expand(),this.$emit("node-expand",this.node.data,this.node,this)))},handleCheckChange:function(t,e){var n=this;this.node.setChecked(e.target.checked,!this.tree.checkStrictly),this.$nextTick((function(){var t=n.tree.store;n.tree.$emit("check",n.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})}))},handleChildNodeExpand:function(t,e,n){this.broadcast("ElTreeNode","tree-node-expand",e),this.tree.$emit("node-expand",t,e,n)},handleDragStart:function(t){this.tree.draggable&&this.tree.$emit("tree-node-drag-start",t,this)},handleDragOver:function(t){this.tree.draggable&&(this.tree.$emit("tree-node-drag-over",t,this),t.preventDefault())},handleDrop:function(t){t.preventDefault()},handleDragEnd:function(t){this.tree.draggable&&this.tree.$emit("tree-node-drag-end",t,this)}},created:function(){var t=this,e=this.$parent;e.isTree?this.tree=e:this.tree=e.tree;var n=this.tree;n||console.warn("Can not find node's tree.");var r=(n.props||{}).children||"children";this.$watch("node.data."+r,(function(){t.node.updateChildren()})),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on("tree-node-expand",(function(e){t.node!==e&&t.node.collapse()}))}},Zo,[],!1,null,null,null);Ko.options.__file="packages/tree/src/tree-node.vue";var Qo=Ko.exports,Jo=i({name:"ElTree",mixins:[S.a],components:{ElTreeNode:Qo},data:function(){return{store:null,root:null,currentNode:null,treeItems:null,checkboxItems:[],dragState:{showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0}}},props:{data:{type:Array},emptyText:{type:String,default:function(){return Object(Di.t)("el.tree.emptyText")}},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{default:function(){return{children:"children",label:"label",disabled:"disabled"}}},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String},computed:{children:{set:function(t){this.data=t},get:function(){return this.data}},treeItemArray:function(){return Array.prototype.slice.call(this.treeItems)},isEmpty:function(){var t=this.root.childNodes;return!t||0===t.length||t.every((function(t){return!t.visible}))}},watch:{defaultCheckedKeys:function(t){this.store.setDefaultCheckedKey(t)},defaultExpandedKeys:function(t){this.store.defaultExpandedKeys=t,this.store.setDefaultExpandedKeys(t)},data:function(t){this.store.setData(t)},checkboxItems:function(t){Array.prototype.forEach.call(t,(function(t){t.setAttribute("tabindex",-1)}))},checkStrictly:function(t){this.store.checkStrictly=t}},methods:{filter:function(t){if(!this.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");this.store.filter(t)},getNodeKey:function(t){return Vo(this.nodeKey,t.data)},getNodePath:function(t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");var e=this.store.getNode(t);if(!e)return[];for(var n=[e.data],r=e.parent;r&&r!==this.root;)n.push(r.data),r=r.parent;return n.reverse()},getCheckedNodes:function(t,e){return this.store.getCheckedNodes(t,e)},getCheckedKeys:function(t){return this.store.getCheckedKeys(t)},getCurrentNode:function(){var t=this.store.getCurrentNode();return t?t.data:null},getCurrentKey:function(){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");var t=this.getCurrentNode();return t?t[this.nodeKey]:null},setCheckedNodes:function(t,e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");this.store.setCheckedNodes(t,e)},setCheckedKeys:function(t,e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");this.store.setCheckedKeys(t,e)},setChecked:function(t,e,n){this.store.setChecked(t,e,n)},getHalfCheckedNodes:function(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys:function(){return this.store.getHalfCheckedKeys()},setCurrentNode:function(t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");this.store.setUserCurrentNode(t)},setCurrentKey:function(t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");this.store.setCurrentNodeKey(t)},getNode:function(t){return this.store.getNode(t)},remove:function(t){this.store.remove(t)},append:function(t,e){this.store.append(t,e)},insertBefore:function(t,e){this.store.insertBefore(t,e)},insertAfter:function(t,e){this.store.insertAfter(t,e)},handleNodeExpand:function(t,e,n){this.broadcast("ElTreeNode","tree-node-expand",e),this.$emit("node-expand",t,e,n)},updateKeyChildren:function(t,e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateChildren(t,e)},initTabIndex:function(){this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]");var t=this.$el.querySelectorAll(".is-checked[role=treeitem]");t.length?t[0].setAttribute("tabindex",0):this.treeItems[0]&&this.treeItems[0].setAttribute("tabindex",0)},handleKeydown:function(t){var e=t.target;if(-1!==e.className.indexOf("el-tree-node")){var n=t.keyCode;this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]");var r=this.treeItemArray.indexOf(e),i=void 0;[38,40].indexOf(n)>-1&&(t.preventDefault(),i=38===n?0!==r?r-1:0:r<this.treeItemArray.length-1?r+1:0,this.treeItemArray[i].focus()),[37,39].indexOf(n)>-1&&(t.preventDefault(),e.click());var o=e.querySelector('[type="checkbox"]');[13,32].indexOf(n)>-1&&o&&(t.preventDefault(),o.click())}}},created:function(){var t=this;this.isTree=!0,this.store=new qo({key:this.nodeKey,data:this.data,lazy:this.lazy,props:this.props,load:this.load,currentNodeKey:this.currentNodeKey,checkStrictly:this.checkStrictly,checkDescendants:this.checkDescendants,defaultCheckedKeys:this.defaultCheckedKeys,defaultExpandedKeys:this.defaultExpandedKeys,autoExpandParent:this.autoExpandParent,defaultExpandAll:this.defaultExpandAll,filterNodeMethod:this.filterNodeMethod}),this.root=this.store.root;var e=this.dragState;this.$on("tree-node-drag-start",(function(n,r){if("function"==typeof t.allowDrag&&!t.allowDrag(r.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(t){}e.draggingNode=r,t.$emit("node-drag-start",r.node,n)})),this.$on("tree-node-drag-over",(function(n,r){var i=function(t,e){for(var n=t;n&&"BODY"!==n.tagName;){if(n.__vue__&&n.__vue__.$options.name===e)return n.__vue__;n=n.parentNode}return null}(n.target,"ElTreeNode"),o=e.dropNode;o&&o!==i&&Object(pt.removeClass)(o.$el,"is-drop-inner");var a=e.draggingNode;if(a&&i){var s=!0,u=!0,l=!0,c=!0;"function"==typeof t.allowDrop&&(s=t.allowDrop(a.node,i.node,"prev"),c=u=t.allowDrop(a.node,i.node,"inner"),l=t.allowDrop(a.node,i.node,"next")),n.dataTransfer.dropEffect=u?"move":"none",(s||u||l)&&o!==i&&(o&&t.$emit("node-drag-leave",a.node,o.node,n),t.$emit("node-drag-enter",a.node,i.node,n)),(s||u||l)&&(e.dropNode=i),i.node.nextSibling===a.node&&(l=!1),i.node.previousSibling===a.node&&(s=!1),i.node.contains(a.node,!1)&&(u=!1),(a.node===i.node||a.node.contains(i.node))&&(s=!1,u=!1,l=!1);var h=i.$el.getBoundingClientRect(),f=t.$el.getBoundingClientRect(),d=void 0,p=s?u?.25:l?.45:1:-1,g=l?u?.75:s?.55:0:1,v=-9999,m=n.clientY-h.top;d=m<h.height*p?"before":m>h.height*g?"after":u?"inner":"none";var y=i.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),b=t.$refs.dropIndicator;"before"===d?v=y.top-f.top:"after"===d&&(v=y.bottom-f.top),b.style.top=v+"px",b.style.left=y.right-f.left+"px","inner"===d?Object(pt.addClass)(i.$el,"is-drop-inner"):Object(pt.removeClass)(i.$el,"is-drop-inner"),e.showDropIndicator="before"===d||"after"===d,e.allowDrop=e.showDropIndicator||c,e.dropType=d,t.$emit("node-drag-over",a.node,i.node,n)}})),this.$on("tree-node-drag-end",(function(n){var r=e.draggingNode,i=e.dropType,o=e.dropNode;if(n.preventDefault(),n.dataTransfer.dropEffect="move",r&&o){var a={data:r.node.data};"none"!==i&&r.node.remove(),"before"===i?o.node.parent.insertBefore(a,o.node):"after"===i?o.node.parent.insertAfter(a,o.node):"inner"===i&&o.node.insertChild(a),"none"!==i&&t.store.registerNode(a),Object(pt.removeClass)(o.$el,"is-drop-inner"),t.$emit("node-drag-end",r.node,o.node,i,n),"none"!==i&&t.$emit("node-drop",r.node,o.node,i,n)}r&&!o&&t.$emit("node-drag-end",r.node,null,i,n),e.showDropIndicator=!1,e.draggingNode=null,e.dropNode=null,e.allowDrop=!0}))},mounted:function(){this.initTabIndex(),this.$el.addEventListener("keydown",this.handleKeydown)},updated:function(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]")}},Bo,[],!1,null,null,null);Jo.options.__file="packages/tree/src/tree.vue";var ta=Jo.exports;ta.install=function(t){t.component(ta.name,ta)};var ea=ta,na=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-alert-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-alert",class:[t.typeClass,t.center?"is-center":"","is-"+t.effect],attrs:{role:"alert"}},[t.showIcon?n("i",{staticClass:"el-alert__icon",class:[t.iconClass,t.isBigIcon]}):t._e(),n("div",{staticClass:"el-alert__content"},[t.title||t.$slots.title?n("span",{staticClass:"el-alert__title",class:[t.isBoldTitle]},[t._t("title",[t._v(t._s(t.title))])],2):t._e(),t.$slots.default&&!t.description?n("p",{staticClass:"el-alert__description"},[t._t("default")],2):t._e(),t.description&&!t.$slots.default?n("p",{staticClass:"el-alert__description"},[t._v(t._s(t.description))]):t._e(),n("i",{directives:[{name:"show",rawName:"v-show",value:t.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":""!==t.closeText,"el-icon-close":""===t.closeText},on:{click:function(e){t.close()}}},[t._v(t._s(t.closeText))])])])])};na._withStripped=!0;var ra={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},ia=i({name:"ElAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(t){return-1!==["light","dark"].indexOf(t)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--"+this.type},iconClass:function(){return ra[this.type]||"el-icon-info"},isBigIcon:function(){return this.description||this.$slots.default?"is-big":""},isBoldTitle:function(){return this.description||this.$slots.default?"is-bold":""}}},na,[],!1,null,null,null);ia.options.__file="packages/alert/src/main.vue";var oa=ia.exports;oa.install=function(t){t.component(oa.name,oa)};var aa=oa,sa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-notification-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],class:["el-notification",t.customClass,t.horizontalClass],style:t.positionStyle,attrs:{role:"alert"},on:{mouseenter:function(e){t.clearTimer()},mouseleave:function(e){t.startTimer()},click:t.click}},[t.type||t.iconClass?n("i",{staticClass:"el-notification__icon",class:[t.typeClass,t.iconClass]}):t._e(),n("div",{staticClass:"el-notification__group",class:{"is-with-icon":t.typeClass||t.iconClass}},[n("h2",{staticClass:"el-notification__title",domProps:{textContent:t._s(t.title)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.message,expression:"message"}],staticClass:"el-notification__content"},[t._t("default",[t.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:t._s(t.message)}}):n("p",[t._v(t._s(t.message))])])],2),t.showClose?n("div",{staticClass:"el-notification__closeBtn el-icon-close",on:{click:function(e){return e.stopPropagation(),t.close(e)}}}):t._e()])])])};sa._withStripped=!0;var ua={success:"success",info:"info",warning:"warning",error:"error"},la=i({data:function(){return{visible:!1,title:"",message:"",duration:4500,type:"",showClose:!0,customClass:"",iconClass:"",onClose:null,onClick:null,closed:!1,verticalOffset:0,timer:null,dangerouslyUseHTMLString:!1,position:"top-right"}},computed:{typeClass:function(){return this.type&&ua[this.type]?"el-icon-"+ua[this.type]:""},horizontalClass:function(){return this.position.indexOf("right")>-1?"right":"left"},verticalProperty:function(){return/^top-/.test(this.position)?"top":"bottom"},positionStyle:function(){var t;return(t={})[this.verticalProperty]=this.verticalOffset+"px",t}},watch:{closed:function(t){t&&(this.visible=!1,this.$el.addEventListener("transitionend",this.destroyElement))}},methods:{destroyElement:function(){this.$el.removeEventListener("transitionend",this.destroyElement),this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},click:function(){"function"==typeof this.onClick&&this.onClick()},close:function(){this.closed=!0,"function"==typeof this.onClose&&this.onClose()},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var t=this;this.duration>0&&(this.timer=setTimeout((function(){t.closed||t.close()}),this.duration))},keydown:function(t){46===t.keyCode||8===t.keyCode?this.clearTimer():27===t.keyCode?this.closed||this.close():this.startTimer()}},mounted:function(){var t=this;this.duration>0&&(this.timer=setTimeout((function(){t.closed||t.close()}),this.duration)),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},sa,[],!1,null,null,null);la.options.__file="packages/notification/src/main.vue";var ca=la.exports,ha=fn.a.extend(ca),fa=void 0,da=[],pa=1,ga=function t(e){if(!fn.a.prototype.$isServer){var n=(e=Ut()({},e)).onClose,r="notification_"+pa++,i=e.position||"top-right";e.onClose=function(){t.close(r,n)},fa=new ha({data:e}),Object(Hi.isVNode)(e.message)&&(fa.$slots.default=[e.message],e.message="REPLACED_BY_VNODE"),fa.id=r,fa.$mount(),document.body.appendChild(fa.$el),fa.visible=!0,fa.dom=fa.$el,fa.dom.style.zIndex=b.PopupManager.nextZIndex();var o=e.offset||0;return da.filter((function(t){return t.position===i})).forEach((function(t){o+=t.$el.offsetHeight+16})),o+=16,fa.verticalOffset=o,da.push(fa),fa}};["success","warning","info","error"].forEach((function(t){ga[t]=function(e){return("string"==typeof e||Object(Hi.isVNode)(e))&&(e={message:e}),e.type=t,ga(e)}})),ga.close=function(t,e){var n=-1,r=da.length,i=da.filter((function(e,r){return e.id===t&&(n=r,!0)}))[0];if(i&&("function"==typeof e&&e(i),da.splice(n,1),!(r<=1)))for(var o=i.position,a=i.dom.offsetHeight,s=n;s<r-1;s++)da[s].position===o&&(da[s].dom.style[i.verticalProperty]=parseInt(da[s].dom.style[i.verticalProperty],10)-a-16+"px")},ga.closeAll=function(){for(var t=da.length-1;t>=0;t--)da[t].close()};var va=ga,ma=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-slider",class:{"is-vertical":t.vertical,"el-slider--with-input":t.showInput},attrs:{role:"slider","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":t.vertical?"vertical":"horizontal","aria-disabled":t.sliderDisabled}},[t.showInput&&!t.range?n("el-input-number",{ref:"input",staticClass:"el-slider__input",attrs:{step:t.step,disabled:t.sliderDisabled,controls:t.showInputControls,min:t.min,max:t.max,debounce:t.debounce,size:t.inputSize},on:{change:t.emitChange},model:{value:t.firstValue,callback:function(e){t.firstValue=e},expression:"firstValue"}}):t._e(),n("div",{ref:"slider",staticClass:"el-slider__runway",class:{"show-input":t.showInput,disabled:t.sliderDisabled},style:t.runwayStyle,on:{click:t.onSliderClick}},[n("div",{staticClass:"el-slider__bar",style:t.barStyle}),n("slider-button",{ref:"button1",attrs:{vertical:t.vertical,"tooltip-class":t.tooltipClass},model:{value:t.firstValue,callback:function(e){t.firstValue=e},expression:"firstValue"}}),t.range?n("slider-button",{ref:"button2",attrs:{vertical:t.vertical,"tooltip-class":t.tooltipClass},model:{value:t.secondValue,callback:function(e){t.secondValue=e},expression:"secondValue"}}):t._e(),t._l(t.stops,(function(e,r){return t.showStops?n("div",{key:r,staticClass:"el-slider__stop",style:t.getStopStyle(e)}):t._e()})),t.markList.length>0?[n("div",t._l(t.markList,(function(e,r){return n("div",{key:r,staticClass:"el-slider__stop el-slider__marks-stop",style:t.getStopStyle(e.position)})})),0),n("div",{staticClass:"el-slider__marks"},t._l(t.markList,(function(e,r){return n("slider-marker",{key:r,style:t.getStopStyle(e.position),attrs:{mark:e.mark}})})),1)]:t._e()],2)],1)};ma._withStripped=!0;var ya=n(41),ba=n.n(ya),_a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"button",staticClass:"el-slider__button-wrapper",class:{hover:t.hovering,dragging:t.dragging},style:t.wrapperStyle,attrs:{tabindex:"0"},on:{mouseenter:t.handleMouseEnter,mouseleave:t.handleMouseLeave,mousedown:t.onButtonDown,touchstart:t.onButtonDown,focus:t.handleMouseEnter,blur:t.handleMouseLeave,keydown:[function(e){return!("button"in e)&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onLeftKeyDown(e)},function(e){return!("button"in e)&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:t.onRightKeyDown(e)},function(e){return!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.onLeftKeyDown(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.onRightKeyDown(e))}]}},[n("el-tooltip",{ref:"tooltip",attrs:{placement:"top","popper-class":t.tooltipClass,disabled:!t.showTooltip}},[n("span",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.formatValue))]),n("div",{staticClass:"el-slider__button",class:{hover:t.hovering,dragging:t.dragging}})])],1)};_a._withStripped=!0;var xa=i({name:"ElSliderButton",components:{ElTooltip:Tt.a},props:{value:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:String},data:function(){return{hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.sliderDisabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},showTooltip:function(){return this.$parent.showTooltip},precision:function(){return this.$parent.precision},currentPosition:function(){return(this.value-this.min)/(this.max-this.min)*100+"%"},enableFormat:function(){return this.$parent.formatTooltip instanceof Function},formatValue:function(){return this.enableFormat&&this.$parent.formatTooltip(this.value)||this.value},wrapperStyle:function(){return this.vertical?{bottom:this.currentPosition}:{left:this.currentPosition}}},watch:{dragging:function(t){this.$parent.dragging=t}},methods:{displayTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!0)},hideTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!1)},handleMouseEnter:function(){this.hovering=!0,this.displayTooltip()},handleMouseLeave:function(){this.hovering=!1,this.hideTooltip()},onButtonDown:function(t){this.disabled||(t.preventDefault(),this.onDragStart(t),window.addEventListener("mousemove",this.onDragging),window.addEventListener("touchmove",this.onDragging),window.addEventListener("mouseup",this.onDragEnd),window.addEventListener("touchend",this.onDragEnd),window.addEventListener("contextmenu",this.onDragEnd))},onLeftKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onRightKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onDragStart:function(t){this.dragging=!0,this.isClick=!0,"touchstart"===t.type&&(t.clientY=t.touches[0].clientY,t.clientX=t.touches[0].clientX),this.vertical?this.startY=t.clientY:this.startX=t.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(t){if(this.dragging){this.isClick=!1,this.displayTooltip(),this.$parent.resetSize();var e=0;"touchmove"===t.type&&(t.clientY=t.touches[0].clientY,t.clientX=t.touches[0].clientX),this.vertical?(this.currentY=t.clientY,e=(this.startY-this.currentY)/this.$parent.sliderSize*100):(this.currentX=t.clientX,e=(this.currentX-this.startX)/this.$parent.sliderSize*100),this.newPosition=this.startPosition+e,this.setPosition(this.newPosition)}},onDragEnd:function(){var t=this;this.dragging&&(setTimeout((function(){t.dragging=!1,t.hideTooltip(),t.isClick||(t.setPosition(t.newPosition),t.$parent.emitChange())}),0),window.removeEventListener("mousemove",this.onDragging),window.removeEventListener("touchmove",this.onDragging),window.removeEventListener("mouseup",this.onDragEnd),window.removeEventListener("touchend",this.onDragEnd),window.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(t){var e=this;if(null!==t&&!isNaN(t)){t<0?t=0:t>100&&(t=100);var n=100/((this.max-this.min)/this.step),r=Math.round(t/n)*n*(this.max-this.min)*.01+this.min;r=parseFloat(r.toFixed(this.precision)),this.$emit("input",r),this.$nextTick((function(){e.displayTooltip(),e.$refs.tooltip&&e.$refs.tooltip.updatePopper()})),this.dragging||this.value===this.oldValue||(this.oldValue=this.value)}}}},_a,[],!1,null,null,null);xa.options.__file="packages/slider/src/button.vue";var wa=xa.exports,Oa={name:"ElMarker",props:{mark:{type:[String,Object]}},render:function(){var t=arguments[0],e="string"==typeof this.mark?this.mark:this.mark.label;return t("div",{class:"el-slider__marks-text",style:this.mark.style||{}},[e])}},Sa=i({name:"ElSlider",mixins:[S.a],inject:{elForm:{default:""}},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},value:{type:[Number,Array],default:0},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},inputSize:{type:String,default:"small"},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:Function,disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String},debounce:{type:Number,default:300},label:{type:String},tooltipClass:String,marks:Object},components:{ElInputNumber:ba.a,SliderButton:wa,SliderMarker:Oa},data:function(){return{firstValue:null,secondValue:null,oldValue:null,dragging:!1,sliderSize:1}},watch:{value:function(t,e){this.dragging||Array.isArray(t)&&Array.isArray(e)&&t.every((function(t,n){return t===e[n]}))||this.setValues()},dragging:function(t){t||this.setValues()},firstValue:function(t){this.range?this.$emit("input",[this.minValue,this.maxValue]):this.$emit("input",t)},secondValue:function(){this.range&&this.$emit("input",[this.minValue,this.maxValue])},min:function(){this.setValues()},max:function(){this.setValues()}},methods:{valueChanged:function(){var t=this;return this.range?![this.minValue,this.maxValue].every((function(e,n){return e===t.oldValue[n]})):this.value!==this.oldValue},setValues:function(){if(this.min>this.max)console.error("[Element Error][Slider]min should not be greater than max.");else{var t=this.value;this.range&&Array.isArray(t)?t[1]<this.min?this.$emit("input",[this.min,this.min]):t[0]>this.max?this.$emit("input",[this.max,this.max]):t[0]<this.min?this.$emit("input",[this.min,t[1]]):t[1]>this.max?this.$emit("input",[t[0],this.max]):(this.firstValue=t[0],this.secondValue=t[1],this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",[this.minValue,this.maxValue]),this.oldValue=t.slice())):this.range||"number"!=typeof t||isNaN(t)||(t<this.min?this.$emit("input",this.min):t>this.max?this.$emit("input",this.max):(this.firstValue=t,this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",t),this.oldValue=t)))}},setPosition:function(t){var e=this.min+t*(this.max-this.min)/100;if(this.range){var n=void 0;n=Math.abs(this.minValue-e)<Math.abs(this.maxValue-e)?this.firstValue<this.secondValue?"button1":"button2":this.firstValue>this.secondValue?"button1":"button2",this.$refs[n].setPosition(t)}else this.$refs.button1.setPosition(t)},onSliderClick:function(t){if(!this.sliderDisabled&&!this.dragging){if(this.resetSize(),this.vertical){var e=this.$refs.slider.getBoundingClientRect().bottom;this.setPosition((e-t.clientY)/this.sliderSize*100)}else{var n=this.$refs.slider.getBoundingClientRect().left;this.setPosition((t.clientX-n)/this.sliderSize*100)}this.emitChange()}},resetSize:function(){this.$refs.slider&&(this.sliderSize=this.$refs.slider["client"+(this.vertical?"Height":"Width")])},emitChange:function(){var t=this;this.$nextTick((function(){t.$emit("change",t.range?[t.minValue,t.maxValue]:t.value)}))},getStopStyle:function(t){return this.vertical?{bottom:t+"%"}:{left:t+"%"}}},computed:{stops:function(){var t=this;if(!this.showStops||this.min>this.max)return[];if(0===this.step)return[];for(var e=(this.max-this.min)/this.step,n=100*this.step/(this.max-this.min),r=[],i=1;i<e;i++)r.push(i*n);return this.range?r.filter((function(e){return e<100*(t.minValue-t.min)/(t.max-t.min)||e>100*(t.maxValue-t.min)/(t.max-t.min)})):r.filter((function(e){return e>100*(t.firstValue-t.min)/(t.max-t.min)}))},markList:function(){var t=this;return this.marks?Object.keys(this.marks).map(parseFloat).sort((function(t,e){return t-e})).filter((function(e){return e<=t.max&&e>=t.min})).map((function(e){return{point:e,position:100*(e-t.min)/(t.max-t.min),mark:t.marks[e]}})):[]},minValue:function(){return Math.min(this.firstValue,this.secondValue)},maxValue:function(){return Math.max(this.firstValue,this.secondValue)},barSize:function(){return this.range?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.firstValue-this.min)/(this.max-this.min)+"%"},barStart:function(){return this.range?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision:function(){var t=[this.min,this.max,this.step].map((function(t){var e=(""+t).split(".")[1];return e?e.length:0}));return Math.max.apply(null,t)},runwayStyle:function(){return this.vertical?{height:this.height}:{}},barStyle:function(){return this.vertical?{height:this.barSize,bottom:this.barStart}:{width:this.barSize,left:this.barStart}},sliderDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},mounted:function(){var t=void 0;this.range?(Array.isArray(this.value)?(this.firstValue=Math.max(this.min,this.value[0]),this.secondValue=Math.min(this.max,this.value[1])):(this.firstValue=this.min,this.secondValue=this.max),this.oldValue=[this.firstValue,this.secondValue],t=this.firstValue+"-"+this.secondValue):("number"!=typeof this.value||isNaN(this.value)?this.firstValue=this.min:this.firstValue=Math.min(this.max,Math.max(this.min,this.value)),this.oldValue=this.firstValue,t=this.firstValue),this.$el.setAttribute("aria-valuetext",t),this.$el.setAttribute("aria-label",this.label?this.label:"slider between "+this.min+" and "+this.max),this.resetSize(),window.addEventListener("resize",this.resetSize)},beforeDestroy:function(){window.removeEventListener("resize",this.resetSize)}},ma,[],!1,null,null,null);Sa.options.__file="packages/slider/src/main.vue";var Ca=Sa.exports;Ca.install=function(t){t.component(Ca.name,Ca)};var Ea=Ca,Ta=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[t.customClass,{"is-fullscreen":t.fullscreen}],style:{backgroundColor:t.background||""}},[n("div",{staticClass:"el-loading-spinner"},[t.spinner?n("i",{class:t.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),t.text?n("p",{staticClass:"el-loading-text"},[t._v(t._s(t.text))]):t._e()])])])};Ta._withStripped=!0;var Aa=i({data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(t){this.text=t}}},Ta,[],!1,null,null,null);Aa.options.__file="packages/loading/src/loading.vue";var Ma=Aa.exports,Ia=n(32),ja=n.n(Ia),ka=fn.a.extend(Ma),Pa={install:function(t){if(!t.prototype.$isServer){var e=function(e,r){r.value?t.nextTick((function(){r.modifiers.fullscreen?(e.originalPosition=Object(pt.getStyle)(document.body,"position"),e.originalOverflow=Object(pt.getStyle)(document.body,"overflow"),e.maskStyle.zIndex=b.PopupManager.nextZIndex(),Object(pt.addClass)(e.mask,"is-fullscreen"),n(document.body,e,r)):(Object(pt.removeClass)(e.mask,"is-fullscreen"),r.modifiers.body?(e.originalPosition=Object(pt.getStyle)(document.body,"position"),["top","left"].forEach((function(t){var n="top"===t?"scrollTop":"scrollLeft";e.maskStyle[t]=e.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]-parseInt(Object(pt.getStyle)(document.body,"margin-"+t),10)+"px"})),["height","width"].forEach((function(t){e.maskStyle[t]=e.getBoundingClientRect()[t]+"px"})),n(document.body,e,r)):(e.originalPosition=Object(pt.getStyle)(e,"position"),n(e,e,r)))})):(ja()(e.instance,(function(t){if(e.instance.hiding){e.domVisible=!1;var n=r.modifiers.fullscreen||r.modifiers.body?document.body:e;Object(pt.removeClass)(n,"el-loading-parent--relative"),Object(pt.removeClass)(n,"el-loading-parent--hidden"),e.instance.hiding=!1}}),300,!0),e.instance.visible=!1,e.instance.hiding=!0)},n=function(e,n,r){n.domVisible||"none"===Object(pt.getStyle)(n,"display")||"hidden"===Object(pt.getStyle)(n,"visibility")?n.domVisible&&!0===n.instance.hiding&&(n.instance.visible=!0,n.instance.hiding=!1):(Object.keys(n.maskStyle).forEach((function(t){n.mask.style[t]=n.maskStyle[t]})),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(pt.addClass)(e,"el-loading-parent--relative"),r.modifiers.fullscreen&&r.modifiers.lock&&Object(pt.addClass)(e,"el-loading-parent--hidden"),n.domVisible=!0,e.appendChild(n.mask),t.nextTick((function(){n.instance.hiding?n.instance.$emit("after-leave"):n.instance.visible=!0})),n.domInserted=!0)};t.directive("loading",{bind:function(t,n,r){var i=t.getAttribute("element-loading-text"),o=t.getAttribute("element-loading-spinner"),a=t.getAttribute("element-loading-background"),s=t.getAttribute("element-loading-custom-class"),u=r.context,l=new ka({el:document.createElement("div"),data:{text:u&&u[i]||i,spinner:u&&u[o]||o,background:u&&u[a]||a,customClass:u&&u[s]||s,fullscreen:!!n.modifiers.fullscreen}});t.instance=l,t.mask=l.$el,t.maskStyle={},n.value&&e(t,n)},update:function(t,n){t.instance.setText(t.getAttribute("element-loading-text")),n.oldValue!==n.value&&e(t,n)},unbind:function(t,n){t.domInserted&&(t.mask&&t.mask.parentNode&&t.mask.parentNode.removeChild(t.mask),e(t,{value:!1,modifiers:n.modifiers})),t.instance&&t.instance.$destroy()}})}}},La=Pa,Ra=fn.a.extend(Ma),Da={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},Na=void 0;Ra.prototype.originalPosition="",Ra.prototype.originalOverflow="",Ra.prototype.close=function(){var t=this;this.fullscreen&&(Na=void 0),ja()(this,(function(e){var n=t.fullscreen||t.body?document.body:t.target;Object(pt.removeClass)(n,"el-loading-parent--relative"),Object(pt.removeClass)(n,"el-loading-parent--hidden"),t.$el&&t.$el.parentNode&&t.$el.parentNode.removeChild(t.$el),t.$destroy()}),300),this.visible=!1};var Ba=function(t,e,n){var r={};t.fullscreen?(n.originalPosition=Object(pt.getStyle)(document.body,"position"),n.originalOverflow=Object(pt.getStyle)(document.body,"overflow"),r.zIndex=b.PopupManager.nextZIndex()):t.body?(n.originalPosition=Object(pt.getStyle)(document.body,"position"),["top","left"].forEach((function(e){var n="top"===e?"scrollTop":"scrollLeft";r[e]=t.target.getBoundingClientRect()[e]+document.body[n]+document.documentElement[n]+"px"})),["height","width"].forEach((function(e){r[e]=t.target.getBoundingClientRect()[e]+"px"}))):n.originalPosition=Object(pt.getStyle)(e,"position"),Object.keys(r).forEach((function(t){n.$el.style[t]=r[t]}))},Fa=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!fn.a.prototype.$isServer){if("string"==typeof(t=Ut()({},Da,t)).target&&(t.target=document.querySelector(t.target)),t.target=t.target||document.body,t.target!==document.body?t.fullscreen=!1:t.body=!0,t.fullscreen&&Na)return Na;var e=t.body?document.body:t.target,n=new Ra({el:document.createElement("div"),data:t});return Ba(t,e,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(pt.addClass)(e,"el-loading-parent--relative"),t.fullscreen&&t.lock&&Object(pt.addClass)(e,"el-loading-parent--hidden"),e.appendChild(n.$el),fn.a.nextTick((function(){n.visible=!0})),t.fullscreen&&(Na=n),n}},za={install:function(t){t.use(La),t.prototype.$loading=Fa},directive:La,service:Fa},Va=function(){var t=this.$createElement;return(this._self._c||t)("i",{class:"el-icon-"+this.name})};Va._withStripped=!0;var Ua=i({name:"ElIcon",props:{name:String}},Va,[],!1,null,null,null);Ua.options.__file="packages/icon/src/icon.vue";var Ga=Ua.exports;Ga.install=function(t){t.component(Ga.name,Ga)};var Ha=Ga,Wa={name:"ElRow",componentName:"ElRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:String},computed:{style:function(){var t={};return this.gutter&&(t.marginLeft="-"+this.gutter/2+"px",t.marginRight=t.marginLeft),t}},render:function(t){return t(this.tag,{class:["el-row","start"!==this.justify?"is-justify-"+this.justify:"",this.align?"is-align-"+this.align:"",{"el-row--flex":"flex"===this.type}],style:this.style},this.$slots.default)},install:function(t){t.component(Wa.name,Wa)}},Ya=Wa,Xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$a={name:"ElCol",props:{span:{type:Number,default:24},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter:function(){for(var t=this.$parent;t&&"ElRow"!==t.$options.componentName;)t=t.$parent;return t?t.gutter:0}},render:function(t){var e=this,n=[],r={};return this.gutter&&(r.paddingLeft=this.gutter/2+"px",r.paddingRight=r.paddingLeft),["span","offset","pull","push"].forEach((function(t){(e[t]||0===e[t])&&n.push("span"!==t?"el-col-"+t+"-"+e[t]:"el-col-"+e[t])})),["xs","sm","md","lg","xl"].forEach((function(t){if("number"==typeof e[t])n.push("el-col-"+t+"-"+e[t]);else if("object"===Xa(e[t])){var r=e[t];Object.keys(r).forEach((function(e){n.push("span"!==e?"el-col-"+t+"-"+e+"-"+r[e]:"el-col-"+t+"-"+r[e])}))}})),t(this.tag,{class:["el-col",n],style:r},this.$slots.default)},install:function(t){t.component($a.name,$a)}},qa=$a,Za=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition-group",{class:["el-upload-list","el-upload-list--"+t.listType,{"is-disabled":t.disabled}],attrs:{tag:"ul",name:"el-list"}},t._l(t.files,(function(e){return n("li",{key:e.uid,class:["el-upload-list__item","is-"+e.status,t.focusing?"focusing":""],attrs:{tabindex:"0"},on:{keydown:function(n){if(!("button"in n)&&t._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"]))return null;!t.disabled&&t.$emit("remove",e)},focus:function(e){t.focusing=!0},blur:function(e){t.focusing=!1},click:function(e){t.focusing=!1}}},[t._t("default",["uploading"!==e.status&&["picture-card","picture"].indexOf(t.listType)>-1?n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:e.url,alt:""}}):t._e(),n("a",{staticClass:"el-upload-list__item-name",on:{click:function(n){t.handleClick(e)}}},[n("i",{staticClass:"el-icon-document"}),t._v(t._s(e.name)+"\n ")]),n("label",{staticClass:"el-upload-list__item-status-label"},[n("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":"text"===t.listType,"el-icon-check":["picture-card","picture"].indexOf(t.listType)>-1}})]),t.disabled?t._e():n("i",{staticClass:"el-icon-close",on:{click:function(n){t.$emit("remove",e)}}}),t.disabled?t._e():n("i",{staticClass:"el-icon-close-tip"},[t._v(t._s(t.t("el.upload.deleteTip")))]),"uploading"===e.status?n("el-progress",{attrs:{type:"picture-card"===t.listType?"circle":"line","stroke-width":"picture-card"===t.listType?6:2,percentage:t.parsePercentage(e.percentage)}}):t._e(),"picture-card"===t.listType?n("span",{staticClass:"el-upload-list__item-actions"},[t.handlePreview&&"picture-card"===t.listType?n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(n){t.handlePreview(e)}}},[n("i",{staticClass:"el-icon-zoom-in"})]):t._e(),t.disabled?t._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(n){t.$emit("remove",e)}}},[n("i",{staticClass:"el-icon-delete"})])]):t._e()],{file:e})],2)})),0)};Za._withStripped=!0;var Ka=n(33),Qa=n.n(Ka),Ja=i({name:"ElUploadList",mixins:[p.a],data:function(){return{focusing:!1}},components:{ElProgress:Qa.a},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(t){return parseInt(t,10)},handleClick:function(t){this.handlePreview&&this.handlePreview(t)}}},Za,[],!1,null,null,null);Ja.options.__file="packages/upload/src/upload-list.vue";var ts=Ja.exports,es=n(24),ns=n.n(es);var rs=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"el-upload-dragger",class:{"is-dragover":t.dragover},on:{drop:function(e){return e.preventDefault(),t.onDrop(e)},dragover:function(e){return e.preventDefault(),t.onDragover(e)},dragleave:function(e){e.preventDefault(),t.dragover=!1}}},[t._t("default")],2)};rs._withStripped=!0;var is=i({name:"ElUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(t){if(!this.disabled&&this.uploader){var e=this.uploader.accept;this.dragover=!1,e?this.$emit("file",[].slice.call(t.dataTransfer.files).filter((function(t){var n=t.type,r=t.name,i=r.indexOf(".")>-1?"."+r.split(".").pop():"",o=n.replace(/\/.*$/,"");return e.split(",").map((function(t){return t.trim()})).filter((function(t){return t})).some((function(t){return/\..+$/.test(t)?i===t:/\/\*$/.test(t)?o===t.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(t)&&n===t}))}))):this.$emit("file",t.dataTransfer.files)}}}},rs,[],!1,null,null,null);is.options.__file="packages/upload/src/upload-dragger.vue";var os=i({inject:["uploader"],components:{UploadDragger:is.exports},props:{type:String,action:{type:String,required:!0},name:{type:String,default:"file"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:function(t){if("undefined"!=typeof XMLHttpRequest){var e=new XMLHttpRequest,n=t.action;e.upload&&(e.upload.onprogress=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),t.onProgress(e)});var r=new FormData;t.data&&Object.keys(t.data).forEach((function(e){r.append(e,t.data[e])})),r.append(t.filename,t.file,t.file.name),e.onerror=function(e){t.onError(e)},e.onload=function(){if(e.status<200||e.status>=300)return t.onError(function(t,e,n){var r=void 0;r=n.response?""+(n.response.error||n.response):n.responseText?""+n.responseText:"fail to post "+t+" "+n.status;var i=new Error(r);return i.status=n.status,i.method="post",i.url=t,i}(n,0,e));t.onSuccess(function(t){var e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch(t){return e}}(e))},e.open("post",n,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var i=t.headers||{};for(var o in i)i.hasOwnProperty(o)&&null!==i[o]&&e.setRequestHeader(o,i[o]);return e.send(r),e}}},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},methods:{isImage:function(t){return-1!==t.indexOf("image")},handleChange:function(t){var e=t.target.files;e&&this.uploadFiles(e)},uploadFiles:function(t){var e=this;if(this.limit&&this.fileList.length+t.length>this.limit)this.onExceed&&this.onExceed(t,this.fileList);else{var n=Array.prototype.slice.call(t);this.multiple||(n=n.slice(0,1)),0!==n.length&&n.forEach((function(t){e.onStart(t),e.autoUpload&&e.upload(t)}))}},upload:function(t){var e=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(t);var n=this.beforeUpload(t);n&&n.then?n.then((function(n){var r=Object.prototype.toString.call(n);if("[object File]"===r||"[object Blob]"===r){for(var i in"[object Blob]"===r&&(n=new File([n],t.name,{type:t.type})),t)t.hasOwnProperty(i)&&(n[i]=t[i]);e.post(n)}else e.post(t)}),(function(){e.onRemove(null,t)})):!1!==n?this.post(t):this.onRemove(null,t)},abort:function(t){var e=this.reqs;if(t){var n=t;t.uid&&(n=t.uid),e[n]&&e[n].abort()}else Object.keys(e).forEach((function(t){e[t]&&e[t].abort(),delete e[t]}))},post:function(t){var e=this,n=t.uid,r={headers:this.headers,withCredentials:this.withCredentials,file:t,data:this.data,filename:this.name,action:this.action,onProgress:function(n){e.onProgress(n,t)},onSuccess:function(r){e.onSuccess(r,t),delete e.reqs[n]},onError:function(r){e.onError(r,t),delete e.reqs[n]}},i=this.httpRequest(r);this.reqs[n]=i,i&&i.then&&i.then(r.onSuccess,r.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(t){t.target===t.currentTarget&&(13!==t.keyCode&&32!==t.keyCode||this.handleClick())}},render:function(t){var e=this.handleClick,n=this.drag,r=this.name,i=this.handleChange,o=this.multiple,a=this.accept,s=this.listType,u=this.uploadFiles,l=this.disabled,c={class:{"el-upload":!0},on:{click:e,keydown:this.handleKeydown}};return c.class["el-upload--"+s]=!0,t("div",ns()([c,{attrs:{tabindex:"0"}}]),[n?t("upload-dragger",{attrs:{disabled:l},on:{file:u}},[this.$slots.default]):this.$slots.default,t("input",{class:"el-upload__input",attrs:{type:"file",name:r,multiple:o,accept:a},ref:"input",on:{change:i}})])}},void 0,void 0,!1,null,null,null);os.options.__file="packages/upload/src/upload.vue";var as=os.exports;function ss(){}var us=i({name:"ElUpload",mixins:[w.a],components:{ElProgress:Qa.a,UploadList:ts,Upload:as},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:ss},onChange:{type:Function,default:ss},onPreview:{type:Function},onSuccess:{type:Function,default:ss},onProgress:{type:Function,default:ss},onError:{type:Function,default:ss},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:ss}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(t){"picture-card"!==t&&"picture"!==t||(this.uploadFiles=this.uploadFiles.map((function(t){if(!t.url&&t.raw)try{t.url=URL.createObjectURL(t.raw)}catch(t){console.error("[Element Error][Upload]",t)}return t})))},fileList:{immediate:!0,handler:function(t){var e=this;this.uploadFiles=t.map((function(t){return t.uid=t.uid||Date.now()+e.tempIndex++,t.status=t.status||"success",t}))}}},methods:{handleStart:function(t){t.uid=Date.now()+this.tempIndex++;var e={status:"ready",name:t.name,size:t.size,percentage:0,uid:t.uid,raw:t};if("picture-card"===this.listType||"picture"===this.listType)try{e.url=URL.createObjectURL(t)}catch(t){return void console.error("[Element Error][Upload]",t)}this.uploadFiles.push(e),this.onChange(e,this.uploadFiles)},handleProgress:function(t,e){var n=this.getFile(e);this.onProgress(t,n,this.uploadFiles),n.status="uploading",n.percentage=t.percent||0},handleSuccess:function(t,e){var n=this.getFile(e);n&&(n.status="success",n.response=t,this.onSuccess(t,n,this.uploadFiles),this.onChange(n,this.uploadFiles))},handleError:function(t,e){var n=this.getFile(e),r=this.uploadFiles;n.status="fail",r.splice(r.indexOf(n),1),this.onError(t,n,this.uploadFiles),this.onChange(n,this.uploadFiles)},handleRemove:function(t,e){var n=this;e&&(t=this.getFile(e));var r=function(){n.abort(t);var e=n.uploadFiles;e.splice(e.indexOf(t),1),n.onRemove(t,e)};if(this.beforeRemove){if("function"==typeof this.beforeRemove){var i=this.beforeRemove(t,this.uploadFiles);i&&i.then?i.then((function(){r()}),ss):!1!==i&&r()}}else r()},getFile:function(t){var e=this.uploadFiles,n=void 0;return e.every((function(e){return!(n=t.uid===e.uid?e:null)})),n},abort:function(t){this.$refs["upload-inner"].abort(t)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var t=this;this.uploadFiles.filter((function(t){return"ready"===t.status})).forEach((function(e){t.$refs["upload-inner"].upload(e.raw)}))},getMigratingConfig:function(){return{props:{"default-file-list":"default-file-list is renamed to file-list.","show-upload-list":"show-upload-list is renamed to show-file-list.","thumbnail-mode":"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan"}}}},beforeDestroy:function(){this.uploadFiles.forEach((function(t){t.url&&0===t.url.indexOf("blob:")&&URL.revokeObjectURL(t.url)}))},render:function(t){var e=this,n=void 0;this.showFileList&&(n=t(ts,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(t){if(e.$scopedSlots.file)return e.$scopedSlots.file({file:t.file})}]));var r=t("upload",{props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,"with-credentials":this.withCredentials,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"},[this.$slots.trigger||this.$slots.default]);return t("div",["picture-card"===this.listType?n:"",this.$slots.trigger?[r,this.$slots.default]:r,this.$slots.tip,"picture-card"!==this.listType?n:""])}},void 0,void 0,!1,null,null,null);us.options.__file="packages/upload/src/index.vue";var ls=us.exports;ls.install=function(t){t.component(ls.name,ls)};var cs=ls,hs=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-progress",class:["el-progress--"+t.type,t.status?"is-"+t.status:"",{"el-progress--without-text":!t.showText,"el-progress--text-inside":t.textInside}],attrs:{role:"progressbar","aria-valuenow":t.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===t.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:t.strokeWidth+"px"}},[n("div",{staticClass:"el-progress-bar__inner",style:t.barStyle},[t.showText&&t.textInside?n("div",{staticClass:"el-progress-bar__innerText"},[t._v(t._s(t.content))]):t._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:t.width+"px",width:t.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:t.trailPathStyle,attrs:{d:t.trackPath,stroke:"#e5e9f2","stroke-width":t.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:t.circlePathStyle,attrs:{d:t.trackPath,stroke:t.stroke,fill:"none","stroke-linecap":t.strokeLinecap,"stroke-width":t.percentage?t.relativeStrokeWidth:0}})])]),t.showText&&!t.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:t.progressTextSize+"px"}},[t.status?n("i",{class:t.iconClass}):[t._v(t._s(t.content))]],2):t._e()])};hs._withStripped=!0;var fs=i({name:"ElProgress",props:{type:{type:String,default:"line",validator:function(t){return["line","circle","dashboard"].indexOf(t)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(t){return t>=0&&t<=100}},status:{type:String,validator:function(t){return["success","exception","warning"].indexOf(t)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var t={};return t.width=this.percentage+"%",t.backgroundColor=this.getCurrentColor(this.percentage),t},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var t=this.radius,e="dashboard"===this.type;return"\n M 50 50\n m 0 "+(e?"":"-")+t+"\n a "+t+" "+t+" 0 1 1 0 "+(e?"-":"")+2*t+"\n a "+t+" "+t+" 0 1 1 0 "+(e?"":"-")+2*t+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){return-1*this.perimeter*(1-this.rate)/2+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var t=void 0;if(this.color)t=this.getCurrentColor(this.percentage);else switch(this.status){case"success":t="#13ce66";break;case"exception":t="#ff4949";break;case"warning":t="#e6a23c";break;default:t="#20a0ff"}return t},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"==typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(t){return"function"==typeof this.color?this.color(t):"string"==typeof this.color?this.color:this.getLevelColor(t)},getLevelColor:function(t){for(var e=this.getColorArray().sort((function(t,e){return t.percentage-e.percentage})),n=0;n<e.length;n++)if(e[n].percentage>t)return e[n].color;return e[e.length-1].color},getColorArray:function(){var t=this.color,e=100/t.length;return t.map((function(t,n){return"string"==typeof t?{color:t,percentage:(n+1)*e}:t}))}}},hs,[],!1,null,null,null);fs.options.__file="packages/progress/src/progress.vue";var ds=fs.exports;ds.install=function(t){t.component(ds.name,ds)};var ps=ds,gs=function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"el-spinner"},[e("svg",{staticClass:"el-spinner-inner",style:{width:this.radius/2+"px",height:this.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[e("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:this.strokeColor,"stroke-width":this.strokeWidth}})])])};gs._withStripped=!0;var vs=i({name:"ElSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},gs,[],!1,null,null,null);vs.options.__file="packages/spinner/src/spinner.vue";var ms=vs.exports;ms.install=function(t){t.component(ms.name,ms)};var ys=ms,bs=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],class:["el-message",t.type&&!t.iconClass?"el-message--"+t.type:"",t.center?"is-center":"",t.showClose?"is-closable":"",t.customClass],style:t.positionStyle,attrs:{role:"alert"},on:{mouseenter:t.clearTimer,mouseleave:t.startTimer}},[t.iconClass?n("i",{class:t.iconClass}):n("i",{class:t.typeClass}),t._t("default",[t.dangerouslyUseHTMLString?n("p",{staticClass:"el-message__content",domProps:{innerHTML:t._s(t.message)}}):n("p",{staticClass:"el-message__content"},[t._v(t._s(t.message))])]),t.showClose?n("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:t.close}}):t._e()],2)])};bs._withStripped=!0;var _s={success:"success",info:"info",warning:"warning",error:"error"},xs=i({data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+_s[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(t){t&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"==typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var t=this;this.duration>0&&(this.timer=setTimeout((function(){t.closed||t.close()}),this.duration))},keydown:function(t){27===t.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},bs,[],!1,null,null,null);xs.options.__file="packages/message/src/main.vue";var ws=xs.exports,Os=n(15),Ss=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Cs=fn.a.extend(ws),Es=void 0,Ts=[],As=1,Ms=function t(e){if(!fn.a.prototype.$isServer){"string"==typeof(e=e||{})&&(e={message:e});var n=e.onClose,r="message_"+As++;e.onClose=function(){t.close(r,n)},(Es=new Cs({data:e})).id=r,Object(Hi.isVNode)(Es.message)&&(Es.$slots.default=[Es.message],Es.message=null),Es.$mount(),document.body.appendChild(Es.$el);var i=e.offset||20;return Ts.forEach((function(t){i+=t.$el.offsetHeight+16})),Es.verticalOffset=i,Es.visible=!0,Es.$el.style.zIndex=b.PopupManager.nextZIndex(),Ts.push(Es),Es}};["success","warning","info","error"].forEach((function(t){Ms[t]=function(e){return Object(Os.isObject)(e)&&!Object(Hi.isVNode)(e)?Ms(Ss({},e,{type:t})):Ms({type:t,message:e})}})),Ms.close=function(t,e){for(var n=Ts.length,r=-1,i=void 0,o=0;o<n;o++)if(t===Ts[o].id){i=Ts[o].$el.offsetHeight,r=o,"function"==typeof e&&e(Ts[o]),Ts.splice(o,1);break}if(!(n<=1||-1===r||r>Ts.length-1))for(var a=r;a<n-1;a++){var s=Ts[a].$el;s.style.top=parseInt(s.style.top,10)-i-16+"px"}},Ms.closeAll=function(){for(var t=Ts.length-1;t>=0;t--)Ts[t].close()};var Is=Ms,js=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-badge"},[t._t("default"),n("transition",{attrs:{name:"el-zoom-in-center"}},[n("sup",{directives:[{name:"show",rawName:"v-show",value:!t.hidden&&(t.content||0===t.content||t.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"el-badge__content",class:[t.type?"el-badge__content--"+t.type:null,{"is-fixed":t.$slots.default,"is-dot":t.isDot}],domProps:{textContent:t._s(t.content)}})])],2)};js._withStripped=!0;var ks=i({name:"ElBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(t){return["primary","success","warning","info","danger"].indexOf(t)>-1}}},computed:{content:function(){if(!this.isDot){var t=this.value,e=this.max;return"number"==typeof t&&"number"==typeof e&&e<t?e+"+":t}}}},js,[],!1,null,null,null);ks.options.__file="packages/badge/src/main.vue";var Ps=ks.exports;Ps.install=function(t){t.component(Ps.name,Ps)};var Ls=Ps,Rs=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-card",class:t.shadow?"is-"+t.shadow+"-shadow":"is-always-shadow"},[t.$slots.header||t.header?n("div",{staticClass:"el-card__header"},[t._t("header",[t._v(t._s(t.header))])],2):t._e(),n("div",{staticClass:"el-card__body",style:t.bodyStyle},[t._t("default")],2)])};Rs._withStripped=!0;var Ds=i({name:"ElCard",props:{header:{},bodyStyle:{},shadow:{type:String}}},Rs,[],!1,null,null,null);Ds.options.__file="packages/card/src/main.vue";var Ns=Ds.exports;Ns.install=function(t){t.component(Ns.name,Ns)};var Bs=Ns,Fs=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-rate",attrs:{role:"slider","aria-valuenow":t.currentValue,"aria-valuetext":t.text,"aria-valuemin":"0","aria-valuemax":t.max,tabindex:"0"},on:{keydown:t.handleKey}},[t._l(t.max,(function(e,r){return n("span",{key:r,staticClass:"el-rate__item",style:{cursor:t.rateDisabled?"auto":"pointer"},on:{mousemove:function(n){t.setCurrentValue(e,n)},mouseleave:t.resetCurrentValue,click:function(n){t.selectValue(e)}}},[n("i",{staticClass:"el-rate__icon",class:[t.classes[e-1],{hover:t.hoverIndex===e}],style:t.getIconStyle(e)},[t.showDecimalIcon(e)?n("i",{staticClass:"el-rate__decimal",class:t.decimalIconClass,style:t.decimalStyle}):t._e()])])})),t.showText||t.showScore?n("span",{staticClass:"el-rate__text",style:{color:t.textColor}},[t._v(t._s(t.text))]):t._e()],2)};Fs._withStripped=!0;var zs=i({name:"ElRate",mixins:[w.a],inject:{elForm:{default:""}},data:function(){return{pointerAtLeftHalf:!0,currentValue:this.value,hoverIndex:-1}},props:{value:{type:Number,default:0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:[Array,Object],default:function(){return["#F7BA2A","#F7BA2A","#F7BA2A"]}},voidColor:{type:String,default:"#C6D1DE"},disabledVoidColor:{type:String,default:"#EFF2F7"},iconClasses:{type:[Array,Object],default:function(){return["el-icon-star-on","el-icon-star-on","el-icon-star-on"]}},voidIconClass:{type:String,default:"el-icon-star-off"},disabledVoidIconClass:{type:String,default:"el-icon-star-on"},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},textColor:{type:String,default:"#1f2d3d"},texts:{type:Array,default:function(){return["极差","失望","一般","满意","惊喜"]}},scoreTemplate:{type:String,default:"{value}"}},computed:{text:function(){var t="";return this.showScore?t=this.scoreTemplate.replace(/\{\s*value\s*\}/,this.rateDisabled?this.value:this.currentValue):this.showText&&(t=this.texts[Math.ceil(this.currentValue)-1]),t},decimalStyle:function(){var t="";return this.rateDisabled?t=this.valueDecimal+"%":this.allowHalf&&(t="50%"),{color:this.activeColor,width:t}},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)},classMap:function(){var t;return Array.isArray(this.iconClasses)?((t={})[this.lowThreshold]=this.iconClasses[0],t[this.highThreshold]={value:this.iconClasses[1],excluded:!0},t[this.max]=this.iconClasses[2],t):this.iconClasses},decimalIconClass:function(){return this.getValueFromMap(this.value,this.classMap)},voidClass:function(){return this.rateDisabled?this.disabledVoidIconClass:this.voidIconClass},activeClass:function(){return this.getValueFromMap(this.currentValue,this.classMap)},colorMap:function(){var t;return Array.isArray(this.colors)?((t={})[this.lowThreshold]=this.colors[0],t[this.highThreshold]={value:this.colors[1],excluded:!0},t[this.max]=this.colors[2],t):this.colors},activeColor:function(){return this.getValueFromMap(this.currentValue,this.colorMap)},classes:function(){var t=[],e=0,n=this.currentValue;for(this.allowHalf&&this.currentValue!==Math.floor(this.currentValue)&&n--;e<n;e++)t.push(this.activeClass);for(;e<this.max;e++)t.push(this.voidClass);return t},rateDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(t){this.currentValue=t,this.pointerAtLeftHalf=this.value!==Math.floor(this.value)}},methods:{getMigratingConfig:function(){return{props:{"text-template":"text-template is renamed to score-template."}}},getValueFromMap:function(t,e){var n=Object.keys(e).filter((function(n){var r=e[n];return!!Object(Os.isObject)(r)&&r.excluded?t<n:t<=n})).sort((function(t,e){return t-e})),r=e[n[0]];return Object(Os.isObject)(r)?r.value:r||""},showDecimalIcon:function(t){var e=this.rateDisabled&&this.valueDecimal>0&&t-1<this.value&&t>this.value,n=this.allowHalf&&this.pointerAtLeftHalf&&t-.5<=this.currentValue&&t>this.currentValue;return e||n},getIconStyle:function(t){var e=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:t<=this.currentValue?this.activeColor:e}},selectValue:function(t){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)):(this.$emit("input",t),this.$emit("change",t)))},handleKey:function(t){if(!this.rateDisabled){var e=this.currentValue,n=t.keyCode;38===n||39===n?(this.allowHalf?e+=.5:e+=1,t.stopPropagation(),t.preventDefault()):37!==n&&40!==n||(this.allowHalf?e-=.5:e-=1,t.stopPropagation(),t.preventDefault()),e=(e=e<0?0:e)>this.max?this.max:e,this.$emit("input",e),this.$emit("change",e)}},setCurrentValue:function(t,e){if(!this.rateDisabled){if(this.allowHalf){var n=e.target;Object(pt.hasClass)(n,"el-rate__item")&&(n=n.querySelector(".el-rate__icon")),Object(pt.hasClass)(n,"el-rate__decimal")&&(n=n.parentNode),this.pointerAtLeftHalf=2*e.offsetX<=n.clientWidth,this.currentValue=this.pointerAtLeftHalf?t-.5:t}else this.currentValue=t;this.hoverIndex=t}},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit("input",0)}},Fs,[],!1,null,null,null);zs.options.__file="packages/rate/src/main.vue";var Vs=zs.exports;Vs.install=function(t){t.component(Vs.name,Vs)};var Us=Vs,Gs=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-steps",class:[!this.simple&&"el-steps--"+this.direction,this.simple&&"el-steps--simple"]},[this._t("default")],2)};Gs._withStripped=!0;var Hs=i({name:"ElSteps",mixins:[w.a],props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"}},data:function(){return{steps:[],stepOffset:0}},methods:{getMigratingConfig:function(){return{props:{center:"center is removed."}}}},watch:{active:function(t,e){this.$emit("change",t,e)},steps:function(t){t.forEach((function(t,e){t.index=e}))}}},Gs,[],!1,null,null,null);Hs.options.__file="packages/steps/src/steps.vue";var Ws=Hs.exports;Ws.install=function(t){t.component(Ws.name,Ws)};var Ys=Ws,Xs=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-step",class:[!t.isSimple&&"is-"+t.$parent.direction,t.isSimple&&"is-simple",t.isLast&&!t.space&&!t.isCenter&&"is-flex",t.isCenter&&!t.isVertical&&!t.isSimple&&"is-center"],style:t.style},[n("div",{staticClass:"el-step__head",class:"is-"+t.currentStatus},[n("div",{staticClass:"el-step__line",style:t.isLast?"":{marginRight:t.$parent.stepOffset+"px"}},[n("i",{staticClass:"el-step__line-inner",style:t.lineStyle})]),n("div",{staticClass:"el-step__icon",class:"is-"+(t.icon?"icon":"text")},["success"!==t.currentStatus&&"error"!==t.currentStatus?t._t("icon",[t.icon?n("i",{staticClass:"el-step__icon-inner",class:[t.icon]}):t._e(),t.icon||t.isSimple?t._e():n("div",{staticClass:"el-step__icon-inner"},[t._v(t._s(t.index+1))])]):n("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+("success"===t.currentStatus?"check":"close")]})],2)]),n("div",{staticClass:"el-step__main"},[n("div",{ref:"title",staticClass:"el-step__title",class:["is-"+t.currentStatus]},[t._t("title",[t._v(t._s(t.title))])],2),t.isSimple?n("div",{staticClass:"el-step__arrow"}):n("div",{staticClass:"el-step__description",class:["is-"+t.currentStatus]},[t._t("description",[t._v(t._s(t.description))])],2)])])};Xs._withStripped=!0;var $s=i({name:"ElStep",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:""}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var t=this.$parent.steps,e=t.indexOf(this);e>=0&&t.splice(e,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var t=this.$parent.steps[this.index-1];return t?t.currentStatus:"wait"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return"vertical"===this.$parent.direction},isSimple:function(){return this.$parent.simple},isLast:function(){var t=this.$parent;return t.steps[t.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var t=this.isSimple,e=this.$parent.space;return t?"":e},style:function(){var t={},e=this.$parent.steps.length,n="number"==typeof this.space?this.space+"px":this.space?this.space:100/(e-(this.isCenter?0:1))+"%";return t.flexBasis=n,this.isVertical||(this.isLast?t.maxWidth=100/this.stepsCount+"%":t.marginRight=-this.$parent.stepOffset+"px"),t}},methods:{updateStatus:function(t){var e=this.$parent.$children[this.index-1];t>this.index?this.internalStatus=this.$parent.finishStatus:t===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",e&&e.calcProgress(this.internalStatus)},calcProgress:function(t){var e=100,n={};n.transitionDelay=150*this.index+"ms",t===this.$parent.processStatus?(this.currentStatus,e=0):"wait"===t&&(e=0,n.transitionDelay=-150*this.index+"ms"),n.borderWidth=e&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?n.height=e+"%":n.width=e+"%",this.lineStyle=n}},mounted:function(){var t=this,e=this.$watch("index",(function(n){t.$watch("$parent.active",t.updateStatus,{immediate:!0}),t.$watch("$parent.processStatus",(function(){var e=t.$parent.active;t.updateStatus(e)}),{immediate:!0}),e()}))}},Xs,[],!1,null,null,null);$s.options.__file="packages/steps/src/step.vue";var qs=$s.exports;qs.install=function(t){t.component(qs.name,qs)};var Zs=qs,Ks=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.carouselClasses,on:{mouseenter:function(e){return e.stopPropagation(),t.handleMouseEnter(e)},mouseleave:function(e){return e.stopPropagation(),t.handleMouseLeave(e)}}},[n("div",{staticClass:"el-carousel__container",style:{height:t.height}},[t.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-left"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===t.arrow||t.hover)&&(t.loop||t.activeIndex>0),expression:"(arrow === 'always' || hover) && (loop || activeIndex > 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{type:"button"},on:{mouseenter:function(e){t.handleButtonEnter("left")},mouseleave:t.handleButtonLeave,click:function(e){e.stopPropagation(),t.throttledArrowClick(t.activeIndex-1)}}},[n("i",{staticClass:"el-icon-arrow-left"})])]):t._e(),t.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-right"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===t.arrow||t.hover)&&(t.loop||t.activeIndex<t.items.length-1),expression:"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"}],staticClass:"el-carousel__arrow el-carousel__arrow--right",attrs:{type:"button"},on:{mouseenter:function(e){t.handleButtonEnter("right")},mouseleave:t.handleButtonLeave,click:function(e){e.stopPropagation(),t.throttledArrowClick(t.activeIndex+1)}}},[n("i",{staticClass:"el-icon-arrow-right"})])]):t._e(),t._t("default")],2),"none"!==t.indicatorPosition?n("ul",{class:t.indicatorsClasses},t._l(t.items,(function(e,r){return n("li",{key:r,class:["el-carousel__indicator","el-carousel__indicator--"+t.direction,{"is-active":r===t.activeIndex}],on:{mouseenter:function(e){t.throttledIndicatorHover(r)},click:function(e){e.stopPropagation(),t.handleIndicatorClick(r)}}},[n("button",{staticClass:"el-carousel__button"},[t.hasLabel?n("span",[t._v(t._s(e.label))]):t._e()])])})),0):t._e()])};Ks._withStripped=!0;var Qs=n(25),Js=n.n(Qs),tu=i({name:"ElCarousel",props:{initialIndex:{type:Number,default:0},height:String,trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:String,indicator:{type:Boolean,default:!0},arrow:{type:String,default:"hover"},type:String,loop:{type:Boolean,default:!0},direction:{type:String,default:"horizontal",validator:function(t){return-1!==["horizontal","vertical"].indexOf(t)}}},data:function(){return{items:[],activeIndex:-1,containerWidth:0,timer:null,hover:!1}},computed:{arrowDisplay:function(){return"never"!==this.arrow&&"vertical"!==this.direction},hasLabel:function(){return this.items.some((function(t){return t.label.toString().length>0}))},carouselClasses:function(){var t=["el-carousel","el-carousel--"+this.direction];return"card"===this.type&&t.push("el-carousel--card"),t},indicatorsClasses:function(){var t=["el-carousel__indicators","el-carousel__indicators--"+this.direction];return this.hasLabel&&t.push("el-carousel__indicators--labels"),"outside"!==this.indicatorPosition&&"card"!==this.type||t.push("el-carousel__indicators--outside"),t}},watch:{items:function(t){t.length>0&&this.setActiveItem(this.initialIndex)},activeIndex:function(t,e){this.resetItemPosition(e),e>-1&&this.$emit("change",t,e)},autoplay:function(t){t?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)},interval:function(){this.pauseTimer(),this.startTimer()}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(t,e){var n=this.items.length;return e===n-1&&t.inStage&&this.items[0].active||t.inStage&&this.items[e+1]&&this.items[e+1].active?"left":!!(0===e&&t.inStage&&this.items[n-1].active||t.inStage&&this.items[e-1]&&this.items[e-1].active)&&"right"},handleButtonEnter:function(t){var e=this;"vertical"!==this.direction&&this.items.forEach((function(n,r){t===e.itemInStage(n,r)&&(n.hover=!0)}))},handleButtonLeave:function(){"vertical"!==this.direction&&this.items.forEach((function(t){t.hover=!1}))},updateItems:function(){this.items=this.$children.filter((function(t){return"ElCarouselItem"===t.$options.name}))},resetItemPosition:function(t){var e=this;this.items.forEach((function(n,r){n.translateItem(r,e.activeIndex,t)}))},playSlides:function(){this.activeIndex<this.items.length-1?this.activeIndex++:this.loop&&(this.activeIndex=0)},pauseTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},startTimer:function(){this.interval<=0||!this.autoplay||this.timer||(this.timer=setInterval(this.playSlides,this.interval))},resetTimer:function(){this.pauseTimer(),this.startTimer()},setActiveItem:function(t){if("string"==typeof t){var e=this.items.filter((function(e){return e.name===t}));e.length>0&&(t=this.items.indexOf(e[0]))}if(t=Number(t),isNaN(t)||t!==Math.floor(t))console.warn("[Element Warn][Carousel]index must be an integer.");else{var n=this.items.length,r=this.activeIndex;this.activeIndex=t<0?this.loop?n-1:0:t>=n?this.loop?0:n-1:t,r===this.activeIndex&&this.resetItemPosition(r),this.resetTimer()}},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(t){this.activeIndex=t},handleIndicatorHover:function(t){"hover"===this.trigger&&t!==this.activeIndex&&(this.activeIndex=t)}},created:function(){var t=this;this.throttledArrowClick=Js()(300,!0,(function(e){t.setActiveItem(e)})),this.throttledIndicatorHover=Js()(300,(function(e){t.handleIndicatorHover(e)}))},mounted:function(){var t=this;this.updateItems(),this.$nextTick((function(){Object(Ne.addResizeListener)(t.$el,t.resetItemPosition),t.initialIndex<t.items.length&&t.initialIndex>=0&&(t.activeIndex=t.initialIndex),t.startTimer()}))},beforeDestroy:function(){this.$el&&Object(Ne.removeResizeListener)(this.$el,this.resetItemPosition),this.pauseTimer()}},Ks,[],!1,null,null,null);tu.options.__file="packages/carousel/src/main.vue";var eu=tu.exports;eu.install=function(t){t.component(eu.name,eu)};var nu=eu,ru={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function iu(t){var e=t.move,n=t.size,r=t.bar,i={},o="translate"+r.axis+"("+e+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}var ou={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return ru[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(t){var e=this.size,n=this.move,r=this.bar;return t("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[t("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:iu({size:e,move:n,bar:r})})])},methods:{clickThumbHandler:function(t){t.ctrlKey||2===t.button||(this.startDrag(t),this[this.bar.axis]=t.currentTarget[this.bar.offset]-(t[this.bar.client]-t.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(t){var e=100*(Math.abs(t.target.getBoundingClientRect()[this.bar.direction]-t[this.bar.client])-this.$refs.thumb[this.bar.offset]/2)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=e*this.wrap[this.bar.scrollSize]/100},startDrag:function(t){t.stopImmediatePropagation(),this.cursorDown=!0,Object(pt.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(pt.on)(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(t){if(!1!==this.cursorDown){var e=this[this.bar.axis];if(e){var n=100*(-1*(this.$el.getBoundingClientRect()[this.bar.direction]-t[this.bar.client])-(this.$refs.thumb[this.bar.offset]-e))/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=n*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(t){this.cursorDown=!1,this[this.bar.axis]=0,Object(pt.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(pt.off)(document,"mouseup",this.mouseUpDocumentHandler)}},au={name:"ElScrollbar",components:{Bar:ou},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(t){var e=Ln()(),n=this.wrapStyle;if(e){var r="-"+e+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(g.toObject)(this.wrapStyle)).marginRight=n.marginBottom=r:"string"==typeof this.wrapStyle?n+=i:n=i}var o=t(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),a=t("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",e?"":"el-scrollbar__wrap--hidden-default"]},[[o]]),s=void 0;return s=this.native?[t("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[o]])]:[a,t(ou,{attrs:{move:this.moveX,size:this.sizeWidth}}),t(ou,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],t("div",{class:"el-scrollbar"},s)},methods:{handleScroll:function(){var t=this.wrap;this.moveY=100*t.scrollTop/t.clientHeight,this.moveX=100*t.scrollLeft/t.clientWidth},update:function(){var t,e,n=this.wrap;n&&(t=100*n.clientHeight/n.scrollHeight,e=100*n.clientWidth/n.scrollWidth,this.sizeHeight=t<100?t+"%":"",this.sizeWidth=e<100?e+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(Ne.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(Ne.removeResizeListener)(this.$refs.resize,this.update)},install:function(t){t.component(au.name,au)}},su=au,uu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":t.active,"el-carousel__item--card":"card"===t.$parent.type,"is-in-stage":t.inStage,"is-hover":t.hover,"is-animating":t.animating},style:t.itemStyle,on:{click:t.handleItemClick}},["card"===t.$parent.type?n("div",{directives:[{name:"show",rawName:"v-show",value:!t.active,expression:"!active"}],staticClass:"el-carousel__mask"}):t._e(),t._t("default")],2)};uu._withStripped=!0;var lu=i({name:"ElCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(t,e,n){return 0===e&&t===n-1?-1:e===n-1&&0===t?n:t<e-1&&e-t>=n/2?n+1:t>e+1&&t-e>=n/2?-2:t},calcCardTranslate:function(t,e){var n=this.$parent.$el.offsetWidth;return this.inStage?n*(1.17*(t-e)+1)/4:t<e?-1.83*n/4:3.83*n/4},calcTranslate:function(t,e,n){return this.$parent.$el[n?"offsetHeight":"offsetWidth"]*(t-e)},translateItem:function(t,e,n){var r=this.$parent.type,i=this.parentDirection,o=this.$parent.items.length;if("card"!==r&&void 0!==n&&(this.animating=t===e||t===n),t!==e&&o>2&&this.$parent.loop&&(t=this.processIndex(t,e,o)),"card"===r)"vertical"===i&&console.warn("[Element Warn][Carousel]vertical direction is not supported in card mode"),this.inStage=Math.round(Math.abs(t-e))<=1,this.active=t===e,this.translate=this.calcCardTranslate(t,e),this.scale=this.active?1:.83;else{this.active=t===e;var a="vertical"===i;this.translate=this.calcTranslate(t,e,a),this.scale=1}this.ready=!0},handleItemClick:function(){var t=this.$parent;if(t&&"card"===t.type){var e=t.items.indexOf(this);t.setActiveItem(e)}}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var t={transform:("vertical"===this.parentDirection?"translateY":"translateX")+"("+this.translate+"px) scale("+this.scale+")"};return Object(g.autoprefixer)(t)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},uu,[],!1,null,null,null);lu.options.__file="packages/carousel/src/item.vue";var cu=lu.exports;cu.install=function(t){t.component(cu.name,cu)};var hu=cu,fu=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[this._t("default")],2)};fu._withStripped=!0;var du=i({name:"ElCollapse",componentName:"ElCollapse",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(t){this.activeNames=[].concat(t)}},methods:{setActiveNames:function(t){t=[].concat(t);var e=this.accordion?t[0]:t;this.activeNames=t,this.$emit("input",e),this.$emit("change",e)},handleItemClick:function(t){if(this.accordion)this.setActiveNames(!this.activeNames[0]&&0!==this.activeNames[0]||this.activeNames[0]!==t.name?t.name:"");else{var e=this.activeNames.slice(0),n=e.indexOf(t.name);n>-1?e.splice(n,1):e.push(t.name),this.setActiveNames(e)}}},created:function(){this.$on("item-click",this.handleItemClick)}},fu,[],!1,null,null,null);du.options.__file="packages/collapse/src/collapse.vue";var pu=du.exports;pu.install=function(t){t.component(pu.name,pu)};var gu=pu,vu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-collapse-item",class:{"is-active":t.isActive,"is-disabled":t.disabled}},[n("div",{attrs:{role:"tab","aria-expanded":t.isActive,"aria-controls":"el-collapse-content-"+t.id,"aria-describedby":"el-collapse-content-"+t.id}},[n("div",{staticClass:"el-collapse-item__header",class:{focusing:t.focusing,"is-active":t.isActive},attrs:{role:"button",id:"el-collapse-head-"+t.id,tabindex:t.disabled?void 0:0},on:{click:t.handleHeaderClick,keyup:function(e){return!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.stopPropagation(),t.handleEnterClick(e))},focus:t.handleFocus,blur:function(e){t.focusing=!1}}},[t._t("title",[t._v(t._s(t.title))]),n("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":t.isActive}})],2)]),n("el-collapse-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{role:"tabpanel","aria-hidden":!t.isActive,"aria-labelledby":"el-collapse-head-"+t.id,id:"el-collapse-content-"+t.id}},[n("div",{staticClass:"el-collapse-item__content"},[t._t("default")],2)])])],1)};vu._withStripped=!0;var mu=i({name:"ElCollapseItem",componentName:"ElCollapseItem",mixins:[S.a],components:{ElCollapseTransition:bt.a},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(g.generateId)()}},inject:["collapse"],props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},computed:{isActive:function(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus:function(){var t=this;setTimeout((function(){t.isClick?t.isClick=!1:t.focusing=!0}),50)},handleHeaderClick:function(){this.disabled||(this.dispatch("ElCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch("ElCollapse","item-click",this)}}},vu,[],!1,null,null,null);mu.options.__file="packages/collapse/src/collapse-item.vue";var yu=mu.exports;yu.install=function(t){t.component(yu.name,yu)};var bu=yu,_u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return t.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",t.realSize&&"el-cascader--"+t.realSize,{"is-disabled":t.isDisabled}],on:{mouseenter:function(e){t.inputHover=!0},mouseleave:function(e){t.inputHover=!1},click:function(){return t.toggleDropDownVisible(!t.readonly||void 0)},keydown:t.handleKeyDown}},[n("el-input",{ref:"input",class:{"is-focus":t.dropDownVisible},attrs:{size:t.realSize,placeholder:t.placeholder,readonly:t.readonly,disabled:t.isDisabled,"validate-event":!1},on:{focus:t.handleFocus,blur:t.handleBlur,input:t.handleInput},model:{value:t.multiple?t.presentText:t.inputValue,callback:function(e){t.multiple?t.presentText:t.inputValue=e},expression:"multiple ? presentText : inputValue"}},[n("template",{slot:"suffix"},[t.clearBtnVisible?n("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(e){return e.stopPropagation(),t.handleClear(e)}}}):n("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",t.dropDownVisible&&"is-reverse"],on:{click:function(e){e.stopPropagation(),t.toggleDropDownVisible()}}})])],2),t.multiple?n("div",{staticClass:"el-cascader__tags"},[t._l(t.presentTags,(function(e){return n("el-tag",{key:e.key,attrs:{type:"info",size:t.tagSize,hit:e.hitState,closable:e.closable,"disable-transitions":""},on:{close:function(n){t.deleteTag(e)}}},[n("span",[t._v(t._s(e.text))])])})),t.filterable&&!t.isDisabled?n("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:t.presentTags.length?"":t.placeholder},domProps:{value:t.inputValue},on:{input:[function(e){e.target.composing||(t.inputValue=e.target.value.trim())},function(e){return t.handleInput(t.inputValue,e)}],click:function(e){e.stopPropagation(),t.toggleDropDownVisible(!0)},keydown:function(e){return!("button"in e)&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.handleDelete(e)},blur:function(e){t.$forceUpdate()}}}):t._e()],2):t._e(),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":t.handleDropdownLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.dropDownVisible,expression:"dropDownVisible"}],ref:"popper",class:["el-popper","el-cascader__dropdown",t.popperClass]},[n("el-cascader-panel",{directives:[{name:"show",rawName:"v-show",value:!t.filtering,expression:"!filtering"}],ref:"panel",attrs:{options:t.options,props:t.config,border:!1,"render-label":t.$scopedSlots.default},on:{"expand-change":t.handleExpandChange,close:function(e){t.toggleDropDownVisible(!1)}},model:{value:t.checkedValue,callback:function(e){t.checkedValue=e},expression:"checkedValue"}}),t.filterable?n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:t.filtering,expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{tag:"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{keydown:function(e){return t.handleSuggestionKeyDown(e)}}},[t.suggestions.length?t._l(t.suggestions,(function(e,r){return n("li",{key:e.uid,class:["el-cascader__suggestion-item",e.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(e){t.handleSuggestionClick(r)}}},[n("span",[t._v(t._s(e.text))]),e.checked?n("i",{staticClass:"el-icon-check"}):t._e()])})):t._t("empty",[n("li",{staticClass:"el-cascader__empty-text"},[t._v(t._s(t.t("el.cascader.noMatch")))])])],2):t._e()],1)])],1)};_u._withStripped=!0;var xu=n(42),wu=n.n(xu),Ou=n(34),Su=n.n(Ou),Cu=Su.a.keys,Eu={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},Tu={props:{placement:{type:String,default:"bottom-start"},appendToBody:R.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:R.a.props.arrowOffset,offset:R.a.props.offset,boundariesPadding:R.a.props.boundariesPadding,popperOptions:R.a.props.popperOptions},methods:R.a.methods,data:R.a.data,beforeDestroy:R.a.beforeDestroy},Au={medium:36,small:32,mini:28},Mu=i({name:"ElCascader",directives:{Clickoutside:k.a},mixins:[Tu,S.a,p.a,w.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:f.a,ElTag:De.a,ElScrollbar:N.a,ElCascaderPanel:wu.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(Di.t)("el.cascader.placeholder")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var t=(this.elFormItem||{}).elFormItemSize;return this.size||t||(this.$ELEMENT||{}).size},tagSize:function(){return["small","mini"].indexOf(this.realSize)>-1?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var t=this.props||{},e=this.$attrs;return Object.keys(Eu).forEach((function(n){var r=Eu[n],i=r.newProp,o=r.type,a=e[n]||e[Object(g.kebabCase)(n)];Object(Gt.isDef)(n)&&!Object(Gt.isDef)(t[i])&&(o===Boolean&&""===a&&(a=!0),t[i]=a)})),t},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!(!this.clearable||this.isDisabled||this.filtering||!this.inputHover)&&(this.multiple?!!this.checkedNodes.filter((function(t){return!t.isDisabled})).length:!!this.presentText)},panel:function(){return this.$refs.panel}},watch:{disabled:function(){this.computePresentContent()},value:function(t){Object(g.isEqual)(t,this.checkedValue)||(this.checkedValue=t,this.computePresentContent())},checkedValue:function(t){var e=this.value,n=this.dropDownVisible,r=this.config,i=r.checkStrictly,o=r.multiple;Object(g.isEqual)(t,e)&&!Object(Os.isUndefined)(e)||(this.computePresentContent(),o||i||!n||this.toggleDropDownVisible(!1),this.$emit("input",t),this.$emit("change",t),this.dispatch("ElFormItem","el.form.change",[t]))},options:{handler:function(){this.$nextTick(this.computePresentContent)},deep:!0},presentText:function(t){this.inputValue=t},presentTags:function(t,e){this.multiple&&(t.length||e.length)&&this.$nextTick(this.updateStyle)},filtering:function(t){this.$nextTick(this.updatePopper)}},mounted:function(){var t=this,e=this.$refs.input;e&&e.$el&&(this.inputInitialHeight=e.$el.offsetHeight||Au[this.realSize]||40),this.isEmptyValue(this.value)||this.computePresentContent(),this.filterHandler=I()(this.debounce,(function(){var e=t.inputValue;if(e){var n=t.beforeFilter(e);n&&n.then?n.then(t.getSuggestions):!1!==n?t.getSuggestions():t.filtering=!1}else t.filtering=!1})),Object(Ne.addResizeListener)(this.$el,this.updateStyle)},beforeDestroy:function(){Object(Ne.removeResizeListener)(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{"expand-trigger":"expand-trigger is removed, use `props.expandTrigger` instead.","change-on-select":"change-on-select is removed, use `props.checkStrictly` instead.","hover-threshold":"hover-threshold is removed, use `props.hoverThreshold` instead"},events:{"active-item-change":"active-item-change is renamed to expand-change"}}},toggleDropDownVisible:function(t){var e=this;if(!this.isDisabled){var n=this.dropDownVisible,r=this.$refs.input;(t=Object(Gt.isDef)(t)?t:!n)!==n&&(this.dropDownVisible=t,t&&this.$nextTick((function(){e.updatePopper(),e.panel.scrollIntoView()})),r.$refs.input.setAttribute("aria-expanded",t),this.$emit("visible-change",t))}},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText,this.doDestroy()},handleKeyDown:function(t){switch(t.keyCode){case Cu.enter:this.toggleDropDownVisible();break;case Cu.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),t.preventDefault();break;case Cu.esc:case Cu.tab:this.toggleDropDownVisible(!1)}},handleFocus:function(t){this.$emit("focus",t)},handleBlur:function(t){this.$emit("blur",t)},handleInput:function(t,e){!this.dropDownVisible&&this.toggleDropDownVisible(!0),e&&e.isComposing||(t?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText="",this.panel.clearCheckedNodes()},handleExpandChange:function(t){this.$nextTick(this.updatePopper.bind(this)),this.$emit("expand-change",t),this.$emit("active-item-change",t)},focusFirstNode:function(){var t=this;this.$nextTick((function(){var e=t.filtering,n=t.$refs,r=n.popper,i=n.suggestionPanel,o=null;e&&i?o=i.$el.querySelector(".el-cascader__suggestion-item"):o=r.querySelector(".el-cascader-menu").querySelector('.el-cascader-node[tabindex="-1"]');o&&(o.focus(),!e&&o.click())}))},computePresentContent:function(){var t=this;this.$nextTick((function(){t.config.multiple?(t.computePresentTags(),t.presentText=t.presentTags.length?" ":null):t.computePresentText()}))},isEmptyValue:function(t){var e=this.multiple,n=this.panel.config.emitPath;return!(!e&&!n)&&Object(g.isEmpty)(t)},computePresentText:function(){var t=this.checkedValue,e=this.config;if(!this.isEmptyValue(t)){var n=this.panel.getNodeByValue(t);if(n&&(e.checkStrictly||n.isLeaf))return void(this.presentText=n.getText(this.showAllLevels,this.separator))}this.presentText=null},computePresentTags:function(){var t=this.isDisabled,e=this.leafOnly,n=this.showAllLevels,r=this.separator,i=this.collapseTags,o=this.getCheckedNodes(e),a=[],s=function(e){return{node:e,key:e.uid,text:e.getText(n,r),hitState:!1,closable:!t&&!e.isDisabled}};if(o.length){var u=o[0],l=o.slice(1),c=l.length;a.push(s(u)),c&&(i?a.push({key:-1,text:"+ "+c,closable:!1}):l.forEach((function(t){return a.push(s(t))})))}this.checkedNodes=o,this.presentTags=a},getSuggestions:function(){var t=this,e=this.filterMethod;Object(Os.isFunction)(e)||(e=function(t,e){return t.text.includes(e)});var n=this.panel.getFlattedNodes(this.leafOnly).filter((function(n){return!n.isDisabled&&(n.text=n.getText(t.showAllLevels,t.separator)||"",e(n,t.inputValue))}));this.multiple?this.presentTags.forEach((function(t){t.hitState=!1})):n.forEach((function(e){e.checked=Object(g.isEqual)(t.checkedValue,e.getValueByOption())})),this.filtering=!0,this.suggestions=n,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(t){var e=t.keyCode,n=t.target;switch(e){case Cu.enter:n.click();break;case Cu.up:var r=n.previousElementSibling;r&&r.focus();break;case Cu.down:var i=n.nextElementSibling;i&&i.focus();break;case Cu.esc:case Cu.tab:this.toggleDropDownVisible(!1)}},handleDelete:function(){var t=this.inputValue,e=this.pressDeleteCount,n=this.presentTags,r=n[n.length-1];this.pressDeleteCount=t?0:e+1,r&&this.pressDeleteCount&&(r.hitState?this.deleteTag(r):r.hitState=!0)},handleSuggestionClick:function(t){var e=this.multiple,n=this.suggestions[t];if(e){var r=n.checked;n.doCheck(!r),this.panel.calculateMultiCheckedValue()}else this.checkedValue=n.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(t){var e=this.checkedValue,n=t.node.getValueByOption(),r=e.find((function(t){return Object(g.isEqual)(t,n)}));this.checkedValue=e.filter((function(t){return!Object(g.isEqual)(t,n)})),this.$emit("remove-tag",r)},updateStyle:function(){var t=this.$el,e=this.inputInitialHeight;if(!this.$isServer&&t){var n=this.$refs.suggestionPanel,r=t.querySelector(".el-input__inner");if(r){var i=t.querySelector(".el-cascader__tags"),o=null;if(n&&(o=n.$el))o.querySelector(".el-cascader__suggestion-list").style.minWidth=r.offsetWidth+"px";if(i){var a=Math.round(i.getBoundingClientRect().height),s=Math.max(a+6,e)+"px";r.style.height=s,this.dropDownVisible&&this.updatePopper()}}}},getCheckedNodes:function(t){return this.panel.getCheckedNodes(t)}}},_u,[],!1,null,null,null);Mu.options.__file="packages/cascader/src/cascader.vue";var Iu=Mu.exports;Iu.install=function(t){t.component(Iu.name,Iu)};var ju=Iu,ku=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.hide,expression:"hide"}],class:["el-color-picker",t.colorDisabled?"is-disabled":"",t.colorSize?"el-color-picker--"+t.colorSize:""]},[t.colorDisabled?n("div",{staticClass:"el-color-picker__mask"}):t._e(),n("div",{staticClass:"el-color-picker__trigger",on:{click:t.handleTrigger}},[n("span",{staticClass:"el-color-picker__color",class:{"is-alpha":t.showAlpha}},[n("span",{staticClass:"el-color-picker__color-inner",style:{backgroundColor:t.displayedColor}}),t.value||t.showPanelColor?t._e():n("span",{staticClass:"el-color-picker__empty el-icon-close"})]),n("span",{directives:[{name:"show",rawName:"v-show",value:t.value||t.showPanelColor,expression:"value || showPanelColor"}],staticClass:"el-color-picker__icon el-icon-arrow-down"})]),n("picker-dropdown",{ref:"dropdown",class:["el-color-picker__panel",t.popperClass||""],attrs:{color:t.color,"show-alpha":t.showAlpha,predefine:t.predefine},on:{pick:t.confirmValue,clear:t.clearValue},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}})],1)};ku._withStripped=!0;var Pu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var Lu=function(t,e,n){return[t,e*n/((t=(2-e)*n)<1?t:2-t)||0,t/2]},Ru=function(t,e){var n;"string"==typeof(n=t)&&-1!==n.indexOf(".")&&1===parseFloat(n)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!==t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)},Du={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Nu={A:10,B:11,C:12,D:13,E:14,F:15},Bu=function(t){return 2===t.length?16*(Nu[t[0].toUpperCase()]||+t[0])+(Nu[t[1].toUpperCase()]||+t[1]):Nu[t[1].toUpperCase()]||+t[1]},Fu=function(t,e,n){t=Ru(t,255),e=Ru(e,255),n=Ru(n,255);var r,i=Math.max(t,e,n),o=Math.min(t,e,n),a=void 0,s=i,u=i-o;if(r=0===i?0:u/i,i===o)a=0;else{switch(i){case t:a=(e-n)/u+(e<n?6:0);break;case e:a=(n-t)/u+2;break;case n:a=(t-e)/u+4}a/=6}return{h:360*a,s:100*r,v:100*s}},zu=function(t,e,n){t=6*Ru(t,360),e=Ru(e,100),n=Ru(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),u=r%6,l=[n,a,o,o,s,n][u],c=[s,n,n,a,o,o][u],h=[o,o,s,n,n,a][u];return{r:Math.round(255*l),g:Math.round(255*c),b:Math.round(255*h)}},Vu=function(){function t(e){for(var n in function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",e=e||{})e.hasOwnProperty(n)&&(this[n]=e[n]);this.doOnChange()}return t.prototype.set=function(t,e){if(1!==arguments.length||"object"!==(void 0===t?"undefined":Pu(t)))this["_"+t]=e,this.doOnChange();else for(var n in t)t.hasOwnProperty(n)&&this.set(n,t[n])},t.prototype.get=function(t){return this["_"+t]},t.prototype.toRgb=function(){return zu(this._hue,this._saturation,this._value)},t.prototype.fromString=function(t){var e=this;if(!t)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();var n=function(t,n,r){e._hue=Math.max(0,Math.min(360,t)),e._saturation=Math.max(0,Math.min(100,n)),e._value=Math.max(0,Math.min(100,r)),e.doOnChange()};if(-1!==t.indexOf("hsl")){var r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((function(t){return""!==t})).map((function(t,e){return e>2?parseFloat(t):parseInt(t,10)}));if(4===r.length?this._alpha=Math.floor(100*parseFloat(r[3])):3===r.length&&(this._alpha=100),r.length>=3){var i=function(t,e,n){n/=100;var r=e/=100,i=Math.max(n,.01);return e*=(n*=2)<=1?n:2-n,r*=i<=1?i:2-i,{h:t,s:100*(0===n?2*r/(i+r):2*e/(n+e)),v:100*((n+e)/2)}}(r[0],r[1],r[2]);n(i.h,i.s,i.v)}}else if(-1!==t.indexOf("hsv")){var o=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((function(t){return""!==t})).map((function(t,e){return e>2?parseFloat(t):parseInt(t,10)}));4===o.length?this._alpha=Math.floor(100*parseFloat(o[3])):3===o.length&&(this._alpha=100),o.length>=3&&n(o[0],o[1],o[2])}else if(-1!==t.indexOf("rgb")){var a=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((function(t){return""!==t})).map((function(t,e){return e>2?parseFloat(t):parseInt(t,10)}));if(4===a.length?this._alpha=Math.floor(100*parseFloat(a[3])):3===a.length&&(this._alpha=100),a.length>=3){var s=Fu(a[0],a[1],a[2]);n(s.h,s.s,s.v)}}else if(-1!==t.indexOf("#")){var u=t.replace("#","").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}|[0-9a-fA-F]{8}$/.test(u))return;var l=void 0,c=void 0,h=void 0;3===u.length?(l=Bu(u[0]+u[0]),c=Bu(u[1]+u[1]),h=Bu(u[2]+u[2])):6!==u.length&&8!==u.length||(l=Bu(u.substring(0,2)),c=Bu(u.substring(2,4)),h=Bu(u.substring(4,6))),8===u.length?this._alpha=Math.floor(Bu(u.substring(6))/255*100):3!==u.length&&6!==u.length||(this._alpha=100);var f=Fu(l,c,h);n(f.h,f.s,f.v)}},t.prototype.compare=function(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1},t.prototype.doOnChange=function(){var t=this._hue,e=this._saturation,n=this._value,r=this._alpha,i=this.format;if(this.enableAlpha)switch(i){case"hsl":var o=Lu(t,e/100,n/100);this.value="hsla("+t+", "+Math.round(100*o[1])+"%, "+Math.round(100*o[2])+"%, "+r/100+")";break;case"hsv":this.value="hsva("+t+", "+Math.round(e)+"%, "+Math.round(n)+"%, "+r/100+")";break;default:var a=zu(t,e,n),s=a.r,u=a.g,l=a.b;this.value="rgba("+s+", "+u+", "+l+", "+r/100+")"}else switch(i){case"hsl":var c=Lu(t,e/100,n/100);this.value="hsl("+t+", "+Math.round(100*c[1])+"%, "+Math.round(100*c[2])+"%)";break;case"hsv":this.value="hsv("+t+", "+Math.round(e)+"%, "+Math.round(n)+"%)";break;case"rgb":var h=zu(t,e,n),f=h.r,d=h.g,p=h.b;this.value="rgb("+f+", "+d+", "+p+")";break;default:this.value=function(t){var e=t.r,n=t.g,r=t.b,i=function(t){t=Math.min(Math.round(t),255);var e=Math.floor(t/16),n=t%16;return""+(Du[e]||e)+(Du[n]||n)};return isNaN(e)||isNaN(n)||isNaN(r)?"":"#"+i(e)+i(n)+i(r)}(zu(t,e,n))}},t}(),Uu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":t.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-color-dropdown"},[n("div",{staticClass:"el-color-dropdown__main-wrapper"},[n("hue-slider",{ref:"hue",staticStyle:{float:"right"},attrs:{color:t.color,vertical:""}}),n("sv-panel",{ref:"sl",attrs:{color:t.color}})],1),t.showAlpha?n("alpha-slider",{ref:"alpha",attrs:{color:t.color}}):t._e(),t.predefine?n("predefine",{attrs:{color:t.color,colors:t.predefine}}):t._e(),n("div",{staticClass:"el-color-dropdown__btns"},[n("span",{staticClass:"el-color-dropdown__value"},[n("el-input",{attrs:{"validate-event":!1,size:"mini"},on:{blur:t.handleConfirm},nativeOn:{keyup:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleConfirm(e)}},model:{value:t.customInput,callback:function(e){t.customInput=e},expression:"customInput"}})],1),n("el-button",{staticClass:"el-color-dropdown__link-btn",attrs:{size:"mini",type:"text"},on:{click:function(e){t.$emit("clear")}}},[t._v("\n "+t._s(t.t("el.colorpicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-color-dropdown__btn",attrs:{plain:"",size:"mini"},on:{click:t.confirmValue}},[t._v("\n "+t._s(t.t("el.colorpicker.confirm"))+"\n ")])],1)],1)])};Uu._withStripped=!0;var Gu=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-color-svpanel",style:{backgroundColor:this.background}},[e("div",{staticClass:"el-color-svpanel__white"}),e("div",{staticClass:"el-color-svpanel__black"}),e("div",{staticClass:"el-color-svpanel__cursor",style:{top:this.cursorTop+"px",left:this.cursorLeft+"px"}},[e("div")])])};Gu._withStripped=!0;var Hu=!1,Wu=function(t,e){if(!fn.a.prototype.$isServer){var n=function(t){e.drag&&e.drag(t)},r=function t(r){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t),document.onselectstart=null,document.ondragstart=null,Hu=!1,e.end&&e.end(r)};t.addEventListener("mousedown",(function(t){Hu||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),Hu=!0,e.start&&e.start(t))}))}},Yu=i({name:"el-sl-panel",props:{color:{required:!0}},computed:{colorValue:function(){return{hue:this.color.get("hue"),value:this.color.get("value")}}},watch:{colorValue:function(){this.update()}},methods:{update:function(){var t=this.color.get("saturation"),e=this.color.get("value"),n=this.$el,r=n.clientWidth,i=n.clientHeight;this.cursorLeft=t*r/100,this.cursorTop=(100-e)*i/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(t){var e=this.$el.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top;n=Math.max(0,n),n=Math.min(n,e.width),r=Math.max(0,r),r=Math.min(r,e.height),this.cursorLeft=n,this.cursorTop=r,this.color.set({saturation:n/e.width*100,value:100-r/e.height*100})}},mounted:function(){var t=this;Wu(this.$el,{drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}}),this.update()},data:function(){return{cursorTop:0,cursorLeft:0,background:"hsl(0, 100%, 50%)"}}},Gu,[],!1,null,null,null);Yu.options.__file="packages/color-picker/src/components/sv-panel.vue";var Xu=Yu.exports,$u=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-color-hue-slider",class:{"is-vertical":this.vertical}},[e("div",{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{click:this.handleClick}}),e("div",{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:{left:this.thumbLeft+"px",top:this.thumbTop+"px"}})])};$u._withStripped=!0;var qu=i({name:"el-color-hue-slider",props:{color:{required:!0},vertical:Boolean},data:function(){return{thumbLeft:0,thumbTop:0}},computed:{hueValue:function(){return this.color.get("hue")}},watch:{hueValue:function(){this.update()}},methods:{handleClick:function(t){var e=this.$refs.thumb;t.target!==e&&this.handleDrag(t)},handleDrag:function(t){var e=this.$el.getBoundingClientRect(),n=this.$refs.thumb,r=void 0;if(this.vertical){var i=t.clientY-e.top;i=Math.min(i,e.height-n.offsetHeight/2),i=Math.max(n.offsetHeight/2,i),r=Math.round((i-n.offsetHeight/2)/(e.height-n.offsetHeight)*360)}else{var o=t.clientX-e.left;o=Math.min(o,e.width-n.offsetWidth/2),o=Math.max(n.offsetWidth/2,o),r=Math.round((o-n.offsetWidth/2)/(e.width-n.offsetWidth)*360)}this.color.set("hue",r)},getThumbLeft:function(){if(this.vertical)return 0;var t=this.$el,e=this.color.get("hue");if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetWidth-n.offsetWidth/2)/360)},getThumbTop:function(){if(!this.vertical)return 0;var t=this.$el,e=this.color.get("hue");if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetHeight-n.offsetHeight/2)/360)},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop()}},mounted:function(){var t=this,e=this.$refs,n=e.bar,r=e.thumb,i={drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}};Wu(n,i),Wu(r,i),this.update()}},$u,[],!1,null,null,null);qu.options.__file="packages/color-picker/src/components/hue-slider.vue";var Zu=qu.exports,Ku=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-color-alpha-slider",class:{"is-vertical":this.vertical}},[e("div",{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:{background:this.background},on:{click:this.handleClick}}),e("div",{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:{left:this.thumbLeft+"px",top:this.thumbTop+"px"}})])};Ku._withStripped=!0;var Qu=i({name:"el-color-alpha-slider",props:{color:{required:!0},vertical:Boolean},watch:{"color._alpha":function(){this.update()},"color.value":function(){this.update()}},methods:{handleClick:function(t){var e=this.$refs.thumb;t.target!==e&&this.handleDrag(t)},handleDrag:function(t){var e=this.$el.getBoundingClientRect(),n=this.$refs.thumb;if(this.vertical){var r=t.clientY-e.top;r=Math.max(n.offsetHeight/2,r),r=Math.min(r,e.height-n.offsetHeight/2),this.color.set("alpha",Math.round((r-n.offsetHeight/2)/(e.height-n.offsetHeight)*100))}else{var i=t.clientX-e.left;i=Math.max(n.offsetWidth/2,i),i=Math.min(i,e.width-n.offsetWidth/2),this.color.set("alpha",Math.round((i-n.offsetWidth/2)/(e.width-n.offsetWidth)*100))}},getThumbLeft:function(){if(this.vertical)return 0;var t=this.$el,e=this.color._alpha;if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetWidth-n.offsetWidth/2)/100)},getThumbTop:function(){if(!this.vertical)return 0;var t=this.$el,e=this.color._alpha;if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetHeight-n.offsetHeight/2)/100)},getBackground:function(){if(this.color&&this.color.value){var t=this.color.toRgb(),e=t.r,n=t.g,r=t.b;return"linear-gradient(to right, rgba("+e+", "+n+", "+r+", 0) 0%, rgba("+e+", "+n+", "+r+", 1) 100%)"}return null},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop(),this.background=this.getBackground()}},data:function(){return{thumbLeft:0,thumbTop:0,background:null}},mounted:function(){var t=this,e=this.$refs,n=e.bar,r=e.thumb,i={drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}};Wu(n,i),Wu(r,i),this.update()}},Ku,[],!1,null,null,null);Qu.options.__file="packages/color-picker/src/components/alpha-slider.vue";var Ju=Qu.exports,tl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-color-predefine"},[n("div",{staticClass:"el-color-predefine__colors"},t._l(t.rgbaColors,(function(e,r){return n("div",{key:t.colors[r],staticClass:"el-color-predefine__color-selector",class:{selected:e.selected,"is-alpha":e._alpha<100},on:{click:function(e){t.handleSelect(r)}}},[n("div",{style:{"background-color":e.value}})])})),0)])};tl._withStripped=!0;var el=i({props:{colors:{type:Array,required:!0},color:{required:!0}},data:function(){return{rgbaColors:this.parseColors(this.colors,this.color)}},methods:{handleSelect:function(t){this.color.fromString(this.colors[t])},parseColors:function(t,e){return t.map((function(t){var n=new Vu;return n.enableAlpha=!0,n.format="rgba",n.fromString(t),n.selected=n.value===e.value,n}))}},watch:{"$parent.currentColor":function(t){var e=new Vu;e.fromString(t),this.rgbaColors.forEach((function(t){t.selected=e.compare(t)}))},colors:function(t){this.rgbaColors=this.parseColors(t,this.color)},color:function(t){this.rgbaColors=this.parseColors(this.colors,t)}}},tl,[],!1,null,null,null);el.options.__file="packages/color-picker/src/components/predefine.vue";var nl=el.exports,rl=i({name:"el-color-picker-dropdown",mixins:[R.a,p.a],components:{SvPanel:Xu,HueSlider:Zu,AlphaSlider:Ju,ElInput:f.a,ElButton:Y.a,Predefine:nl},props:{color:{required:!0},showAlpha:Boolean,predefine:Array},data:function(){return{customInput:""}},computed:{currentColor:function(){var t=this.$parent;return t.value||t.showPanelColor?t.color.value:""}},methods:{confirmValue:function(){this.$emit("pick")},handleConfirm:function(){this.color.fromString(this.customInput)}},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$el},watch:{showPopper:function(t){var e=this;!0===t&&this.$nextTick((function(){var t=e.$refs,n=t.sl,r=t.hue,i=t.alpha;n&&n.update(),r&&r.update(),i&&i.update()}))},currentColor:{immediate:!0,handler:function(t){this.customInput=t}}}},Uu,[],!1,null,null,null);rl.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var il=rl.exports,ol=i({name:"ElColorPicker",mixins:[S.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:k.a},computed:{displayedColor:function(){return this.value||this.showPanelColor?this.displayedRgb(this.color,this.showAlpha):"transparent"},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},colorSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},colorDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(t){t?t&&t!==this.color.value&&this.color.fromString(t):this.showPanelColor=!1},color:{deep:!0,handler:function(){this.showPanelColor=!0}},displayedColor:function(t){if(this.showPicker){var e=new Vu({enableAlpha:this.showAlpha,format:this.colorFormat});e.fromString(this.value),t!==this.displayedRgb(e,this.showAlpha)&&this.$emit("active-change",t)}}},methods:{handleTrigger:function(){this.colorDisabled||(this.showPicker=!this.showPicker)},confirmValue:function(){var t=this.color.value;this.$emit("input",t),this.$emit("change",t),this.dispatch("ElFormItem","el.form.change",t),this.showPicker=!1},clearValue:function(){this.$emit("input",null),this.$emit("change",null),null!==this.value&&this.dispatch("ElFormItem","el.form.change",null),this.showPanelColor=!1,this.showPicker=!1,this.resetColor()},hide:function(){this.showPicker=!1,this.resetColor()},resetColor:function(){var t=this;this.$nextTick((function(e){t.value?t.color.fromString(t.value):t.showPanelColor=!1}))},displayedRgb:function(t,e){if(!(t instanceof Vu))throw Error("color should be instance of Color Class");var n=t.toRgb(),r=n.r,i=n.g,o=n.b;return e?"rgba("+r+", "+i+", "+o+", "+t.get("alpha")/100+")":"rgb("+r+", "+i+", "+o+")"}},mounted:function(){var t=this.value;t&&this.color.fromString(t),this.popperElm=this.$refs.dropdown.$el},data:function(){return{color:new Vu({enableAlpha:this.showAlpha,format:this.colorFormat}),showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:il}},ku,[],!1,null,null,null);ol.options.__file="packages/color-picker/src/main.vue";var al=ol.exports;al.install=function(t){t.component(al.name,al)};var sl=al,ul=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-transfer"},[n("transfer-panel",t._b({ref:"leftPanel",attrs:{data:t.sourceData,title:t.titles[0]||t.t("el.transfer.titles.0"),"default-checked":t.leftDefaultChecked,placeholder:t.filterPlaceholder||t.t("el.transfer.filterPlaceholder")},on:{"checked-change":t.onSourceCheckedChange}},"transfer-panel",t.$props,!1),[t._t("left-footer")],2),n("div",{staticClass:"el-transfer__buttons"},[n("el-button",{class:["el-transfer__button",t.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===t.rightChecked.length},nativeOn:{click:function(e){return t.addToLeft(e)}}},[n("i",{staticClass:"el-icon-arrow-left"}),void 0!==t.buttonTexts[0]?n("span",[t._v(t._s(t.buttonTexts[0]))]):t._e()]),n("el-button",{class:["el-transfer__button",t.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===t.leftChecked.length},nativeOn:{click:function(e){return t.addToRight(e)}}},[void 0!==t.buttonTexts[1]?n("span",[t._v(t._s(t.buttonTexts[1]))]):t._e(),n("i",{staticClass:"el-icon-arrow-right"})])],1),n("transfer-panel",t._b({ref:"rightPanel",attrs:{data:t.targetData,title:t.titles[1]||t.t("el.transfer.titles.1"),"default-checked":t.rightDefaultChecked,placeholder:t.filterPlaceholder||t.t("el.transfer.filterPlaceholder")},on:{"checked-change":t.onTargetCheckedChange}},"transfer-panel",t.$props,!1),[t._t("right-footer")],2)],1)};ul._withStripped=!0;var ll=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-transfer-panel"},[n("p",{staticClass:"el-transfer-panel__header"},[n("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleAllCheckedChange},model:{value:t.allChecked,callback:function(e){t.allChecked=e},expression:"allChecked"}},[t._v("\n "+t._s(t.title)+"\n "),n("span",[t._v(t._s(t.checkedSummary))])])],1),n("div",{class:["el-transfer-panel__body",t.hasFooter?"is-with-footer":""]},[t.filterable?n("el-input",{staticClass:"el-transfer-panel__filter",attrs:{size:"small",placeholder:t.placeholder},nativeOn:{mouseenter:function(e){t.inputHover=!0},mouseleave:function(e){t.inputHover=!1}},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}},[n("i",{class:["el-input__icon","el-icon-"+t.inputIcon],attrs:{slot:"prefix"},on:{click:t.clearQuery},slot:"prefix"})]):t._e(),n("el-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!t.hasNoMatch&&t.data.length>0,expression:"!hasNoMatch && data.length > 0"}],staticClass:"el-transfer-panel__list",class:{"is-filterable":t.filterable},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},t._l(t.filteredData,(function(e){return n("el-checkbox",{key:e[t.keyProp],staticClass:"el-transfer-panel__item",attrs:{label:e[t.keyProp],disabled:e[t.disabledProp]}},[n("option-content",{attrs:{option:e}})],1)})),1),n("p",{directives:[{name:"show",rawName:"v-show",value:t.hasNoMatch,expression:"hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[t._v(t._s(t.t("el.transfer.noMatch")))]),n("p",{directives:[{name:"show",rawName:"v-show",value:0===t.data.length&&!t.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[t._v(t._s(t.t("el.transfer.noData")))])],1),t.hasFooter?n("p",{staticClass:"el-transfer-panel__footer"},[t._t("default")],2):t._e()])};ll._withStripped=!0;var cl=i({mixins:[p.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:Xn.a,ElCheckbox:on.a,ElInput:f.a,OptionContent:{props:{option:Object},render:function(t){var e=function t(e){return"ElTransferPanel"===e.$options.componentName?e:e.$parent?t(e.$parent):e}(this),n=e.$parent||e;return e.renderContent?e.renderContent(t,this.option):n.$scopedSlots.default?n.$scopedSlots.default({option:this.option}):t("span",[this.option[e.labelProp]||this.option[e.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(t,e){if(this.updateAllChecked(),this.checkChangeByUser){var n=t.concat(e).filter((function(n){return-1===t.indexOf(n)||-1===e.indexOf(n)}));this.$emit("checked-change",t,n)}else this.$emit("checked-change",t),this.checkChangeByUser=!0},data:function(){var t=this,e=[],n=this.filteredData.map((function(e){return e[t.keyProp]}));this.checked.forEach((function(t){n.indexOf(t)>-1&&e.push(t)})),this.checkChangeByUser=!1,this.checked=e},checkableData:function(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler:function(t,e){var n=this;if(!e||t.length!==e.length||!t.every((function(t){return e.indexOf(t)>-1}))){var r=[],i=this.checkableData.map((function(t){return t[n.keyProp]}));t.forEach((function(t){i.indexOf(t)>-1&&r.push(t)})),this.checkChangeByUser=!1,this.checked=r}}}},computed:{filteredData:function(){var t=this;return this.data.filter((function(e){return"function"==typeof t.filterMethod?t.filterMethod(t.query,e):(e[t.labelProp]||e[t.keyProp].toString()).toLowerCase().indexOf(t.query.toLowerCase())>-1}))},checkableData:function(){var t=this;return this.filteredData.filter((function(e){return!e[t.disabledProp]}))},checkedSummary:function(){var t=this.checked.length,e=this.data.length,n=this.format,r=n.noChecked,i=n.hasChecked;return r&&i?t>0?i.replace(/\${checked}/g,t).replace(/\${total}/g,e):r.replace(/\${total}/g,e):t+"/"+e},isIndeterminate:function(){var t=this.checked.length;return t>0&&t<this.checkableData.length},hasNoMatch:function(){return this.query.length>0&&0===this.filteredData.length},inputIcon:function(){return this.query.length>0&&this.inputHover?"circle-close":"search"},labelProp:function(){return this.props.label||"label"},keyProp:function(){return this.props.key||"key"},disabledProp:function(){return this.props.disabled||"disabled"},hasFooter:function(){return!!this.$slots.default}},methods:{updateAllChecked:function(){var t=this,e=this.checkableData.map((function(e){return e[t.keyProp]}));this.allChecked=e.length>0&&e.every((function(e){return t.checked.indexOf(e)>-1}))},handleAllCheckedChange:function(t){var e=this;this.checked=t?this.checkableData.map((function(t){return t[e.keyProp]})):[]},clearQuery:function(){"circle-close"===this.inputIcon&&(this.query="")}}},ll,[],!1,null,null,null);cl.options.__file="packages/transfer/src/transfer-panel.vue";var hl=cl.exports,fl=i({name:"ElTransfer",mixins:[S.a,p.a,w.a],components:{TransferPanel:hl,ElButton:Y.a},props:{data:{type:Array,default:function(){return[]}},titles:{type:Array,default:function(){return[]}},buttonTexts:{type:Array,default:function(){return[]}},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:function(){return[]}},rightDefaultChecked:{type:Array,default:function(){return[]}},renderContent:Function,value:{type:Array,default:function(){return[]}},format:{type:Object,default:function(){return{}}},filterable:Boolean,props:{type:Object,default:function(){return{label:"label",key:"key",disabled:"disabled"}}},targetOrder:{type:String,default:"original"}},data:function(){return{leftChecked:[],rightChecked:[]}},computed:{dataObj:function(){var t=this.props.key;return this.data.reduce((function(e,n){return(e[n[t]]=n)&&e}),{})},sourceData:function(){var t=this;return this.data.filter((function(e){return-1===t.value.indexOf(e[t.props.key])}))},targetData:function(){var t=this;return"original"===this.targetOrder?this.data.filter((function(e){return t.value.indexOf(e[t.props.key])>-1})):this.value.reduce((function(e,n){var r=t.dataObj[n];return r&&e.push(r),e}),[])},hasButtonTexts:function(){return 2===this.buttonTexts.length}},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",t)}},methods:{getMigratingConfig:function(){return{props:{"footer-format":"footer-format is renamed to format."}}},onSourceCheckedChange:function(t,e){this.leftChecked=t,void 0!==e&&this.$emit("left-check-change",t,e)},onTargetCheckedChange:function(t,e){this.rightChecked=t,void 0!==e&&this.$emit("right-check-change",t,e)},addToLeft:function(){var t=this.value.slice();this.rightChecked.forEach((function(e){var n=t.indexOf(e);n>-1&&t.splice(n,1)})),this.$emit("input",t),this.$emit("change",t,"left",this.rightChecked)},addToRight:function(){var t=this,e=this.value.slice(),n=[],r=this.props.key;this.data.forEach((function(e){var i=e[r];t.leftChecked.indexOf(i)>-1&&-1===t.value.indexOf(i)&&n.push(i)})),e="unshift"===this.targetOrder?n.concat(e):e.concat(n),this.$emit("input",e),this.$emit("change",e,"right",this.leftChecked)},clearQuery:function(t){"left"===t?this.$refs.leftPanel.query="":"right"===t&&(this.$refs.rightPanel.query="")}}},ul,[],!1,null,null,null);fl.options.__file="packages/transfer/src/main.vue";var dl=fl.exports;dl.install=function(t){t.component(dl.name,dl)};var pl=dl,gl=function(){var t=this.$createElement;return(this._self._c||t)("section",{staticClass:"el-container",class:{"is-vertical":this.isVertical}},[this._t("default")],2)};gl._withStripped=!0;var vl=i({name:"ElContainer",componentName:"ElContainer",props:{direction:String},computed:{isVertical:function(){return"vertical"===this.direction||"horizontal"!==this.direction&&(!(!this.$slots||!this.$slots.default)&&this.$slots.default.some((function(t){var e=t.componentOptions&&t.componentOptions.tag;return"el-header"===e||"el-footer"===e})))}}},gl,[],!1,null,null,null);vl.options.__file="packages/container/src/main.vue";var ml=vl.exports;ml.install=function(t){t.component(ml.name,ml)};var yl=ml,bl=function(){var t=this.$createElement;return(this._self._c||t)("header",{staticClass:"el-header",style:{height:this.height}},[this._t("default")],2)};bl._withStripped=!0;var _l=i({name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},bl,[],!1,null,null,null);_l.options.__file="packages/header/src/main.vue";var xl=_l.exports;xl.install=function(t){t.component(xl.name,xl)};var wl=xl,Ol=function(){var t=this.$createElement;return(this._self._c||t)("aside",{staticClass:"el-aside",style:{width:this.width}},[this._t("default")],2)};Ol._withStripped=!0;var Sl=i({name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},Ol,[],!1,null,null,null);Sl.options.__file="packages/aside/src/main.vue";var Cl=Sl.exports;Cl.install=function(t){t.component(Cl.name,Cl)};var El=Cl,Tl=function(){var t=this.$createElement;return(this._self._c||t)("main",{staticClass:"el-main"},[this._t("default")],2)};Tl._withStripped=!0;var Al=i({name:"ElMain",componentName:"ElMain"},Tl,[],!1,null,null,null);Al.options.__file="packages/main/src/main.vue";var Ml=Al.exports;Ml.install=function(t){t.component(Ml.name,Ml)};var Il=Ml,jl=function(){var t=this.$createElement;return(this._self._c||t)("footer",{staticClass:"el-footer",style:{height:this.height}},[this._t("default")],2)};jl._withStripped=!0;var kl=i({name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},jl,[],!1,null,null,null);kl.options.__file="packages/footer/src/main.vue";var Pl=kl.exports;Pl.install=function(t){t.component(Pl.name,Pl)};var Ll=Pl,Rl=i({name:"ElTimeline",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var t=arguments[0],e=this.reverse,n={"el-timeline":!0,"is-reverse":e},r=this.$slots.default||[];return e&&(r=r.reverse()),t("ul",{class:n},[r])}},void 0,void 0,!1,null,null,null);Rl.options.__file="packages/timeline/src/main.vue";var Dl=Rl.exports;Dl.install=function(t){t.component(Dl.name,Dl)};var Nl=Dl,Bl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"el-timeline-item"},[n("div",{staticClass:"el-timeline-item__tail"}),t.$slots.dot?t._e():n("div",{staticClass:"el-timeline-item__node",class:["el-timeline-item__node--"+(t.size||""),"el-timeline-item__node--"+(t.type||"")],style:{backgroundColor:t.color}},[t.icon?n("i",{staticClass:"el-timeline-item__icon",class:t.icon}):t._e()]),t.$slots.dot?n("div",{staticClass:"el-timeline-item__dot"},[t._t("dot")],2):t._e(),n("div",{staticClass:"el-timeline-item__wrapper"},[t.hideTimestamp||"top"!==t.placement?t._e():n("div",{staticClass:"el-timeline-item__timestamp is-top"},[t._v("\n "+t._s(t.timestamp)+"\n ")]),n("div",{staticClass:"el-timeline-item__content"},[t._t("default")],2),t.hideTimestamp||"bottom"!==t.placement?t._e():n("div",{staticClass:"el-timeline-item__timestamp is-bottom"},[t._v("\n "+t._s(t.timestamp)+"\n ")])])])};Bl._withStripped=!0;var Fl=i({name:"ElTimelineItem",inject:["timeline"],props:{timestamp:String,hideTimestamp:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},type:String,color:String,size:{type:String,default:"normal"},icon:String}},Bl,[],!1,null,null,null);Fl.options.__file="packages/timeline/src/item.vue";var zl=Fl.exports;zl.install=function(t){t.component(zl.name,zl)};var Vl=zl,Ul=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",t._b({class:["el-link",t.type?"el-link--"+t.type:"",t.disabled&&"is-disabled",t.underline&&!t.disabled&&"is-underline"],attrs:{href:t.disabled?null:t.href},on:{click:t.handleClick}},"a",t.$attrs,!1),[t.icon?n("i",{class:t.icon}):t._e(),t.$slots.default?n("span",{staticClass:"el-link--inner"},[t._t("default")],2):t._e(),t.$slots.icon?[t.$slots.icon?t._t("icon"):t._e()]:t._e()],2)};Ul._withStripped=!0;var Gl=i({name:"ElLink",props:{type:{type:String,default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:String,icon:String},methods:{handleClick:function(t){this.disabled||this.href||this.$emit("click",t)}}},Ul,[],!1,null,null,null);Gl.options.__file="packages/link/src/main.vue";var Hl=Gl.exports;Hl.install=function(t){t.component(Hl.name,Hl)};var Wl=Hl,Yl=function(t,e){var n=e._c;return n("div",e._g(e._b({class:[e.data.staticClass,"el-divider","el-divider--"+e.props.direction]},"div",e.data.attrs,!1),e.listeners),[e.slots().default&&"vertical"!==e.props.direction?n("div",{class:["el-divider__text","is-"+e.props.contentPosition]},[e._t("default")],2):e._e()])};Yl._withStripped=!0;var Xl=i({name:"ElDivider",props:{direction:{type:String,default:"horizontal",validator:function(t){return-1!==["horizontal","vertical"].indexOf(t)}},contentPosition:{type:String,default:"center",validator:function(t){return-1!==["left","center","right"].indexOf(t)}}}},Yl,[],!0,null,null,null);Xl.options.__file="packages/divider/src/main.vue";var $l=Xl.exports;$l.install=function(t){t.component($l.name,$l)};var ql=$l,Zl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-image"},[t.loading?t._t("placeholder",[n("div",{staticClass:"el-image__placeholder"})]):t.error?t._t("error",[n("div",{staticClass:"el-image__error"},[t._v(t._s(t.t("el.image.error")))])]):n("img",t._g(t._b({staticClass:"el-image__inner",class:{"el-image__inner--center":t.alignCenter,"el-image__preview":t.preview},style:t.imageStyle,attrs:{src:t.src},on:{click:t.clickHandler}},"img",t.$attrs,!1),t.$listeners)),t.preview?[t.showViewer?n("image-viewer",{attrs:{"z-index":t.zIndex,"initial-index":t.imageIndex,"on-close":t.closeViewer,"url-list":t.previewSrcList}}):t._e()]:t._e()],2)};Zl._withStripped=!0;var Kl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"viewer-fade"}},[n("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":t.viewerZIndex},attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-image-viewer__mask",on:{click:function(e){return e.target!==e.currentTarget?null:t.handleMaskClick(e)}}}),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:t.hide}},[n("i",{staticClass:"el-icon-close"})]),t.isSingle?t._e():[n("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!t.infinite&&t.isFirst},on:{click:t.prev}},[n("i",{staticClass:"el-icon-arrow-left"})]),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!t.infinite&&t.isLast},on:{click:t.next}},[n("i",{staticClass:"el-icon-arrow-right"})])],n("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[n("div",{staticClass:"el-image-viewer__actions__inner"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:function(e){t.handleActions("zoomOut")}}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:function(e){t.handleActions("zoomIn")}}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{class:t.mode.icon,on:{click:t.toggleMode}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-refresh-left",on:{click:function(e){t.handleActions("anticlocelise")}}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:function(e){t.handleActions("clocelise")}}})])]),n("div",{staticClass:"el-image-viewer__canvas"},t._l(t.urlList,(function(e,r){return r===t.index?n("img",{key:e,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:t.imgStyle,attrs:{src:t.currentImg},on:{load:t.handleImgLoad,error:t.handleImgError,mousedown:t.handleMouseDown}}):t._e()})),0)],2)])};Kl._withStripped=!0;var Ql=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jl={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},tc=Object(g.isFirefox)()?"DOMMouseScroll":"mousewheel",ec=i({name:"elImageViewer",props:{urlList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0},appendToBody:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0}},data:function(){return{index:this.initialIndex,isShow:!1,infinite:!0,loading:!1,mode:Jl.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},currentImg:function(){return this.urlList[this.index]},imgStyle:function(){var t=this.transform,e=t.scale,n=t.deg,r=t.offsetX,i=t.offsetY,o={transform:"scale("+e+") rotate("+n+"deg)",transition:t.enableTransition?"transform .3s":"","margin-left":r+"px","margin-top":i+"px"};return this.mode===Jl.CONTAIN&&(o.maxWidth=o.maxHeight="100%"),o},viewerZIndex:function(){var t=b.PopupManager.nextZIndex();return this.zIndex>t?this.zIndex:t}},watch:{index:{handler:function(t){this.reset(),this.onSwitch(t)}},currentImg:function(t){var e=this;this.$nextTick((function(t){e.$refs.img[0].complete||(e.loading=!0)}))}},methods:{hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var t=this;this._keyDownHandler=function(e){switch(e.stopPropagation(),e.keyCode){case 27:t.hide();break;case 32:t.toggleMode();break;case 37:t.prev();break;case 38:t.handleActions("zoomIn");break;case 39:t.next();break;case 40:t.handleActions("zoomOut")}},this._mouseWheelHandler=Object(g.rafThrottle)((function(e){(e.wheelDelta?e.wheelDelta:-e.detail)>0?t.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):t.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})})),Object(pt.on)(document,"keydown",this._keyDownHandler),Object(pt.on)(document,tc,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(pt.off)(document,"keydown",this._keyDownHandler),Object(pt.off)(document,tc,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(t){this.loading=!1},handleImgError:function(t){this.loading=!1,t.target.alt="加载失败"},handleMouseDown:function(t){var e=this;if(!this.loading&&0===t.button){var n=this.transform,r=n.offsetX,i=n.offsetY,o=t.pageX,a=t.pageY;this._dragHandler=Object(g.rafThrottle)((function(t){e.transform.offsetX=r+t.pageX-o,e.transform.offsetY=i+t.pageY-a})),Object(pt.on)(document,"mousemove",this._dragHandler),Object(pt.on)(document,"mouseup",(function(t){Object(pt.off)(document,"mousemove",e._dragHandler)})),t.preventDefault()}},handleMaskClick:function(){this.maskClosable&&this.hide()},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){if(!this.loading){var t=Object.keys(Jl),e=(Object.values(Jl).indexOf(this.mode)+1)%t.length;this.mode=Jl[t[e]],this.reset()}},prev:function(){if(!this.isFirst||this.infinite){var t=this.urlList.length;this.index=(this.index-1+t)%t}},next:function(){if(!this.isLast||this.infinite){var t=this.urlList.length;this.index=(this.index+1)%t}},handleActions:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var n=Ql({zoomRate:.2,rotateDeg:90,enableTransition:!0},e),r=n.zoomRate,i=n.rotateDeg,o=n.enableTransition,a=this.transform;switch(t){case"zoomOut":a.scale>.2&&(a.scale=parseFloat((a.scale-r).toFixed(3)));break;case"zoomIn":a.scale=parseFloat((a.scale+r).toFixed(3));break;case"clocelise":a.deg+=i;break;case"anticlocelise":a.deg-=i}a.enableTransition=o}}},mounted:function(){this.deviceSupportInstall(),this.appendToBody&&document.body.appendChild(this.$el),this.$refs["el-image-viewer__wrapper"].focus()},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},Kl,[],!1,null,null,null);ec.options.__file="packages/image/src/image-viewer.vue";var nc=ec.exports,rc=function(){return void 0!==document.documentElement.style.objectFit},ic="none",oc="contain",ac="cover",sc="fill",uc="scale-down",lc="",cc=i({name:"ElImage",mixins:[p.a],inheritAttrs:!1,components:{ImageViewer:nc},props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3}},data:function(){return{loading:!0,error:!1,show:!this.lazy,imageWidth:0,imageHeight:0,showViewer:!1}},computed:{imageStyle:function(){var t=this.fit;return!this.$isServer&&t?rc()?{"object-fit":t}:this.getImageStyle(t):{}},alignCenter:function(){return!this.$isServer&&!rc()&&this.fit!==sc},preview:function(){var t=this.previewSrcList;return Array.isArray(t)&&t.length>0},imageIndex:function(){var t=0,e=this.previewSrcList.indexOf(this.src);return e>=0&&(t=e),t}},watch:{src:function(t){this.show&&this.loadImage()},show:function(t){t&&this.loadImage()}},mounted:function(){this.lazy?this.addLazyLoadListener():this.loadImage()},beforeDestroy:function(){this.lazy&&this.removeLazyLoadListener()},methods:{loadImage:function(){var t=this;if(!this.$isServer){this.loading=!0,this.error=!1;var e=new Image;e.onload=function(n){return t.handleLoad(n,e)},e.onerror=this.handleError.bind(this),Object.keys(this.$attrs).forEach((function(n){var r=t.$attrs[n];e.setAttribute(n,r)})),e.src=this.src}},handleLoad:function(t,e){this.imageWidth=e.width,this.imageHeight=e.height,this.loading=!1,this.error=!1},handleError:function(t){this.loading=!1,this.error=!0,this.$emit("error",t)},handleLazyLoad:function(){Object(pt.isInContainer)(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener:function(){if(!this.$isServer){var t=this.scrollContainer,e=null;(e=Object(Os.isHtmlElement)(t)?t:Object(Os.isString)(t)?document.querySelector(t):Object(pt.getScrollContainer)(this.$el))&&(this._scrollContainer=e,this._lazyLoadHandler=Js()(200,this.handleLazyLoad),Object(pt.on)(e,"scroll",this._lazyLoadHandler),this.handleLazyLoad())}},removeLazyLoadListener:function(){var t=this._scrollContainer,e=this._lazyLoadHandler;!this.$isServer&&t&&e&&(Object(pt.off)(t,"scroll",e),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle:function(t){var e=this.imageWidth,n=this.imageHeight,r=this.$el,i=r.clientWidth,o=r.clientHeight;if(!(e&&n&&i&&o))return{};var a=e/n,s=i/o;t===uc&&(t=e<i&&n<o?ic:oc);switch(t){case ic:return{width:"auto",height:"auto"};case oc:return a<s?{width:"auto"}:{height:"auto"};case ac:return a<s?{height:"auto"}:{width:"auto"};default:return{}}},clickHandler:function(){this.preview&&(lc=document.body.style.overflow,document.body.style.overflow="hidden",this.showViewer=!0)},closeViewer:function(){document.body.style.overflow=lc,this.showViewer=!1}}},Zl,[],!1,null,null,null);cc.options.__file="packages/image/src/main.vue";var hc=cc.exports;hc.install=function(t){t.component(hc.name,hc)};var fc=hc,dc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-calendar"},[n("div",{staticClass:"el-calendar__header"},[n("div",{staticClass:"el-calendar__title"},[t._v("\n "+t._s(t.i18nDate)+"\n ")]),0===t.validatedRange.length?n("div",{staticClass:"el-calendar__button-group"},[n("el-button-group",[n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(e){t.selectDate("prev-month")}}},[t._v("\n "+t._s(t.t("el.datepicker.prevMonth"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(e){t.selectDate("today")}}},[t._v("\n "+t._s(t.t("el.datepicker.today"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(e){t.selectDate("next-month")}}},[t._v("\n "+t._s(t.t("el.datepicker.nextMonth"))+"\n ")])],1)],1):t._e()]),0===t.validatedRange.length?n("div",{key:"no-range",staticClass:"el-calendar__body"},[n("date-table",{attrs:{date:t.date,"selected-day":t.realSelectedDay,"first-day-of-week":t.realFirstDayOfWeek},on:{pick:t.pickDay}})],1):n("div",{key:"has-range",staticClass:"el-calendar__body"},t._l(t.validatedRange,(function(e,r){return n("date-table",{key:r,attrs:{date:e[0],"selected-day":t.realSelectedDay,range:e,"hide-header":0!==r,"first-day-of-week":t.realFirstDayOfWeek},on:{pick:t.pickDay}})})),1)])};dc._withStripped=!0;var pc=n(20),gc=n.n(pc),vc=i({props:{selectedDay:String,range:{type:Array,validator:function(t){if(!t||!t.length)return!0;var e=t[0],n=t[1];return Object(pr.validateRangeInOneMonth)(e,n)}},date:Date,hideHeader:Boolean,firstDayOfWeek:Number},inject:["elCalendar"],methods:{toNestedArr:function(t){return Object(pr.range)(t.length/7).map((function(e,n){var r=7*n;return t.slice(r,r+7)}))},getFormateDate:function(t,e){if(!t||-1===["prev","current","next"].indexOf(e))throw new Error("invalid day or type");var n=this.curMonthDatePrefix;return"prev"===e?n=this.prevMonthDatePrefix:"next"===e&&(n=this.nextMonthDatePrefix),n+"-"+(t=("00"+t).slice(-2))},getCellClass:function(t){var e=t.text,n=t.type,r=[n];if("current"===n){var i=this.getFormateDate(e,n);i===this.selectedDay&&r.push("is-selected"),i===this.formatedToday&&r.push("is-today")}return r},pickDay:function(t){var e=t.text,n=t.type,r=this.getFormateDate(e,n);this.$emit("pick",r)},cellRenderProxy:function(t){var e=t.text,n=t.type,r=this.$createElement,i=this.elCalendar.$scopedSlots.dateCell;if(!i)return r("span",[e]);var o=this.getFormateDate(e,n);return i({date:new Date(o),data:{isSelected:this.selectedDay===o,type:n+"-month",day:o}})}},computed:{WEEK_DAYS:function(){return Object(pr.getI18nSettings)().dayNames},prevMonthDatePrefix:function(){var t=new Date(this.date.getTime());return t.setDate(0),gc.a.format(t,"yyyy-MM")},curMonthDatePrefix:function(){return gc.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var t=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return gc.a.format(t,"yyyy-MM")},formatedToday:function(){return this.elCalendar.formatedToday},isInRange:function(){return this.range&&this.range.length},rows:function(){var t=[];if(this.isInRange){var e=this.range,n=e[0],r=e[1],i=Object(pr.range)(r.getDate()-n.getDate()+1).map((function(t,e){return{text:n.getDate()+e,type:"current"}})),o=i.length%7;o=0===o?0:7-o;var a=Object(pr.range)(o).map((function(t,e){return{text:e+1,type:"next"}}));t=i.concat(a)}else{var s=this.date,u=Object(pr.getFirstDayOfMonth)(s),l=(7+(u=0===u?7:u)-("number"==typeof this.firstDayOfWeek?this.firstDayOfWeek:1))%7,c=Object(pr.getPrevMonthLastDays)(s,l).map((function(t){return{text:t,type:"prev"}})),h=Object(pr.getMonthDays)(s).map((function(t){return{text:t,type:"current"}}));t=[].concat(c,h);var f=Object(pr.range)(42-t.length).map((function(t,e){return{text:e+1,type:"next"}}));t=t.concat(f)}return this.toNestedArr(t)},weekDays:function(){var t=this.firstDayOfWeek,e=this.WEEK_DAYS;return"number"!=typeof t||0===t?e.slice():e.slice(t).concat(e.slice(0,t))}},render:function(){var t=this,e=arguments[0],n=this.hideHeader?null:e("thead",[this.weekDays.map((function(t){return e("th",{key:t},[t])}))]);return e("table",{class:{"el-calendar-table":!0,"is-range":this.isInRange},attrs:{cellspacing:"0",cellpadding:"0"}},[n,e("tbody",[this.rows.map((function(n,r){return e("tr",{class:{"el-calendar-table__row":!0,"el-calendar-table__row--hide-border":0===r&&t.hideHeader},key:r},[n.map((function(n,r){return e("td",{key:r,class:t.getCellClass(n),on:{click:t.pickDay.bind(t,n)}},[e("div",{class:"el-calendar-day"},[t.cellRenderProxy(n)])])}))])}))])])}},void 0,void 0,!1,null,null,null);vc.options.__file="packages/calendar/src/date-table.vue";var mc=vc.exports,yc=["prev-month","today","next-month"],bc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],_c=i({name:"ElCalendar",mixins:[p.a],components:{DateTable:mc,ElButton:Y.a,ElButtonGroup:$.a},props:{value:[Date,String,Number],range:{type:Array,validator:function(t){return!Array.isArray(t)||2===t.length&&t.every((function(t){return"string"==typeof t||"number"==typeof t||t instanceof Date}))}},firstDayOfWeek:{type:Number,default:1}},provide:function(){return{elCalendar:this}},methods:{pickDay:function(t){this.realSelectedDay=t},selectDate:function(t){if(-1===yc.indexOf(t))throw new Error("invalid type "+t);var e="";(e="prev-month"===t?this.prevMonthDatePrefix+"-01":"next-month"===t?this.nextMonthDatePrefix+"-01":this.formatedToday)!==this.formatedDate&&this.pickDay(e)},toDate:function(t){if(!t)throw new Error("invalid val");return t instanceof Date?t:new Date(t)},rangeValidator:function(t,e){var n=this.realFirstDayOfWeek,r=e?n:0===n?6:n-1,i=(e?"start":"end")+" of range should be "+bc[r]+".";return t.getDay()===r||(console.warn("[ElementCalendar]",i,"Invalid range will be ignored."),!1)}},computed:{prevMonthDatePrefix:function(){var t=new Date(this.date.getTime());return t.setDate(0),gc.a.format(t,"yyyy-MM")},curMonthDatePrefix:function(){return gc.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var t=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return gc.a.format(t,"yyyy-MM")},formatedDate:function(){return gc.a.format(this.date,"yyyy-MM-dd")},i18nDate:function(){var t=this.date.getFullYear(),e=this.date.getMonth()+1;return t+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+e)},formatedToday:function(){return gc.a.format(this.now,"yyyy-MM-dd")},realSelectedDay:{get:function(){return this.value?this.formatedDate:this.selectedDay},set:function(t){this.selectedDay=t;var e=new Date(t);this.$emit("input",e)}},date:function(){if(this.value)return this.toDate(this.value);if(this.realSelectedDay){var t=this.selectedDay.split("-");return new Date(t[0],t[1]-1,t[2])}return this.validatedRange.length?this.validatedRange[0][0]:this.now},validatedRange:function(){var t=this,e=this.range;if(!e)return[];if(2===(e=e.reduce((function(e,n,r){var i=t.toDate(n);return t.rangeValidator(i,0===r)&&(e=e.concat(i)),e}),[])).length){var n=e,r=n[0],i=n[1];if(r>i)return console.warn("[ElementCalendar]end time should be greater than start time"),[];if(Object(pr.validateRangeInOneMonth)(r,i))return[[r,i]];var o=[],a=new Date(r.getFullYear(),r.getMonth()+1,1),s=this.toDate(a.getTime()-864e5);if(!Object(pr.validateRangeInOneMonth)(a,i))return console.warn("[ElementCalendar]start time and end time interval must not exceed two months"),[];o.push([r,s]);var u=this.realFirstDayOfWeek,l=a.getDay(),c=0;return l!==u&&(c=0===u?7-l:(c=u-l)>0?c:7+c),(a=this.toDate(a.getTime()+864e5*c)).getDate()<i.getDate()&&o.push([a,i]),o}return[]},realFirstDayOfWeek:function(){return this.firstDayOfWeek<1||this.firstDayOfWeek>6?0:Math.floor(this.firstDayOfWeek)}},data:function(){return{selectedDay:"",now:new Date}}},dc,[],!1,null,null,null);_c.options.__file="packages/calendar/src/main.vue";var xc=_c.exports;xc.install=function(t){t.component(xc.name,xc)};var wc=xc,Oc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-fade-in"}},[t.visible?n("div",{staticClass:"el-backtop",style:{right:t.styleRight,bottom:t.styleBottom},on:{click:function(e){return e.stopPropagation(),t.handleClick(e)}}},[t._t("default",[n("el-icon",{attrs:{name:"caret-top"}})])],2):t._e()])};Oc._withStripped=!0;var Sc=function(t){return Math.pow(t,3)},Cc=i({name:"ElBacktop",props:{visibilityHeight:{type:Number,default:200},target:[String],right:{type:Number,default:40},bottom:{type:Number,default:40}},data:function(){return{el:null,container:null,visible:!1}},computed:{styleBottom:function(){return this.bottom+"px"},styleRight:function(){return this.right+"px"}},mounted:function(){this.init(),this.throttledScrollHandler=Js()(300,this.onScroll),this.container.addEventListener("scroll",this.throttledScrollHandler)},methods:{init:function(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target is not existed: "+this.target);this.container=this.el}},onScroll:function(){var t=this.el.scrollTop;this.visible=t>=this.visibilityHeight},handleClick:function(t){this.scrollToTop(),this.$emit("click",t)},scrollToTop:function(){var t=this.el,e=Date.now(),n=t.scrollTop,r=window.requestAnimationFrame||function(t){return setTimeout(t,16)};r((function i(){var o,a=(Date.now()-e)/500;a<1?(t.scrollTop=n*(1-((o=a)<.5?Sc(2*o)/2:1-Sc(2*(1-o))/2)),r(i)):t.scrollTop=0}))}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},Oc,[],!1,null,null,null);Cc.options.__file="packages/backtop/src/main.vue";var Ec=Cc.exports;Ec.install=function(t){t.component(Ec.name,Ec)};var Tc=Ec,Ac=function(t,e){return t===window||t===document?document.documentElement[e]:t[e]},Mc=function(t){return Ac(t,"offsetHeight")},Ic="ElInfiniteScroll",jc={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},kc=function(t,e){return Object(Os.isHtmlElement)(t)?(n=jc,Object.keys(n||{}).map((function(t){return[t,n[t]]}))).reduce((function(n,r){var i=r[0],o=r[1],a=o.type,s=o.default,u=t.getAttribute("infinite-scroll-"+i);switch(u=Object(Os.isUndefined)(e[u])?u:e[u],a){case Number:u=Number(u),u=Number.isNaN(u)?s:u;break;case Boolean:u=Object(Os.isDefined)(u)?"false"!==u&&Boolean(u):s;break;default:u=a(u)}return n[i]=u,n}),{}):{};var n},Pc=function(t){return t.getBoundingClientRect().top},Lc=function(t){var e=this[Ic],n=e.el,r=e.vm,i=e.container,o=e.observer,a=kc(n,r),s=a.distance;if(!a.disabled){var u=i.getBoundingClientRect();if(u.width||u.height){var l=!1;if(i===n){var c=i.scrollTop+function(t){return Ac(t,"clientHeight")}(i);l=i.scrollHeight-c<=s}else{l=Mc(n)+Pc(n)-Pc(i)-Mc(i)+Number.parseFloat(function(t,e){if(t===window&&(t=document.documentElement),1!==t.nodeType)return[];var n=window.getComputedStyle(t,null);return e?n[e]:n}(i,"borderBottomWidth"))<=s}l&&Object(Os.isFunction)(t)?t.call(r):o&&(o.disconnect(),this[Ic].observer=null)}}},Rc={name:"InfiniteScroll",inserted:function(t,e,n){var r=e.value,i=n.context,o=Object(pt.getScrollContainer)(t,!0),a=kc(t,i),s=a.delay,u=a.immediate,l=I()(s,Lc.bind(t,r));(t[Ic]={el:t,vm:i,container:o,onScroll:l},o)&&(o.addEventListener("scroll",l),u&&((t[Ic].observer=new MutationObserver(l)).observe(o,{childList:!0,subtree:!0}),l()))},unbind:function(t){var e=t[Ic],n=e.container,r=e.onScroll;n&&n.removeEventListener("scroll",r)},install:function(t){t.directive(Rc.name,Rc)}},Dc=Rc,Nc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-page-header"},[n("div",{staticClass:"el-page-header__left",on:{click:function(e){t.$emit("back")}}},[n("i",{staticClass:"el-icon-back"}),n("div",{staticClass:"el-page-header__title"},[t._t("title",[t._v(t._s(t.title))])],2)]),n("div",{staticClass:"el-page-header__content"},[t._t("content",[t._v(t._s(t.content))])],2)])};Nc._withStripped=!0;var Bc=i({name:"ElPageHeader",props:{title:{type:String,default:function(){return Object(Di.t)("el.pageHeader.title")}},content:String}},Nc,[],!1,null,null,null);Bc.options.__file="packages/page-header/src/main.vue";var Fc=Bc.exports;Fc.install=function(t){t.component(Fc.name,Fc)};var zc=Fc,Vc=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:["el-cascader-panel",this.border&&"is-bordered"],on:{keydown:this.handleKeyDown}},this._l(this.menus,(function(t,n){return e("cascader-menu",{key:n,ref:"menu",refInFor:!0,attrs:{index:n,nodes:t}})})),1)};Vc._withStripped=!0;var Uc=n(43),Gc=n.n(Uc),Hc=function(t){return t.stopPropagation()},Wc=i({inject:["panel"],components:{ElCheckbox:on.a,ElRadio:Gc.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var t=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(e){return t.isInPath(e)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var t=this,e=this.panel,n=this.node,r=this.isDisabled,i=this.config,o=i.multiple;!i.checkStrictly&&r||n.loading||(i.lazy&&!n.loaded?e.lazyLoad(n,(function(){var e=t.isLeaf;if(e||t.handleExpand(),o){var r=!!e&&n.checked;t.handleMultiCheckChange(r)}})):e.handleExpand(n))},handleCheckChange:function(){var t=this.panel,e=this.value,n=this.node;t.handleCheckChange(e),t.handleExpand(n)},handleMultiCheckChange:function(t){this.node.doCheck(t),this.panel.calculateMultiCheckedValue()},isInPath:function(t){var e=this.node;return(t[e.level-1]||{}).uid===e.uid},renderPrefix:function(t){var e=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly;return r.multiple?this.renderCheckbox(t):i?this.renderRadio(t):e&&n?this.renderCheckIcon(t):null},renderPostfix:function(t){var e=this.node,n=this.isLeaf;return e.loading?this.renderLoadingIcon(t):n?null:this.renderExpandIcon(t)},renderCheckbox:function(t){var e=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=Hc),t("el-checkbox",ns()([{attrs:{value:e.checked,indeterminate:e.indeterminate,disabled:r}},i]))},renderRadio:function(t){var e=this.checkedValue,n=this.value,r=this.isDisabled;return Object(g.isEqual)(n,e)&&(n=e),t("el-radio",{attrs:{value:e,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:Hc}},[t("span")])},renderCheckIcon:function(t){return t("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(t){return t("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(t){return t("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(t){var e=this.panel,n=this.node,r=e.renderLabelFn;return t("span",{class:"el-cascader-node__label"},[(r?r({node:n,data:n.data}):null)||n.label])}},render:function(t){var e=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,u=this.nodeId,l=s.expandTrigger,c=s.checkStrictly,h=s.multiple,f=!c&&a,d={on:{}};return"click"===l?d.on.click=this.handleExpand:(d.on.mouseenter=function(t){e.handleExpand(),e.$emit("expand",t)},d.on.focus=function(t){e.handleExpand(),e.$emit("expand",t)}),!o||a||c||h||(d.on.click=this.handleCheckChange),t("li",ns()([{attrs:{role:"menuitem",id:u,"aria-expanded":n,tabindex:f?null:-1},class:{"el-cascader-node":!0,"is-selectable":c,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":f}},d]),[this.renderPrefix(t),this.renderContent(t),this.renderPostfix(t)])}},void 0,void 0,!1,null,null,null);Wc.options.__file="packages/cascader-panel/src/cascader-node.vue";var Yc=Wc.exports,Xc=i({name:"ElCascaderMenu",mixins:[p.a],inject:["panel"],components:{ElScrollbar:N.a,CascaderNode:Yc},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(g.generateId)()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(t){this.activeNode=t.target},handleMouseMove:function(t){var e=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(e&&r)if(e.contains(t.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect().left,o=t.clientX-i,a=this.$el,s=a.offsetWidth,u=a.offsetHeight,l=e.offsetTop,c=l+e.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+l+" L"+s+" 0 V"+l+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+c+" L"+s+" "+u+" V"+c+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var t=this.$refs.hoverZone;t&&(t.innerHTML="")},renderEmptyText:function(t){return t("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(t){var e=this.menuId,n=this.panel.isHoverMenu,r={on:{}};n&&(r.on.expand=this.handleExpand);var i=this.nodes.map((function(n,i){var o=n.hasChildren;return t("cascader-node",ns()([{key:n.uid,attrs:{node:n,"node-id":e+"-"+i,"aria-haspopup":o,"aria-owns":o?e:null}},r]))}));return[].concat(i,[n?t("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(t){var e=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),t("el-scrollbar",ns()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":e}},class:"el-cascader-menu"},r]),[e?this.renderEmptyText(t):this.renderNodeList(t)])}},void 0,void 0,!1,null,null,null);Xc.options.__file="packages/cascader-panel/src/cascader-menu.vue";var $c=Xc.exports,qc=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var Zc=0,Kc=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=e,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=Zc++,this.initState(),this.initChildren()}return t.prototype.initState=function(){var t=this.config,e=t.value,n=t.label;this.value=this.data[e],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(t){return t.value})),this.pathLabels=this.pathNodes.map((function(t){return t.label})),this.loading=!1,this.loaded=!1},t.prototype.initChildren=function(){var e=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map((function(r){return new t(r,n,e)}))},t.prototype.calculatePathNodes=function(){for(var t=[this],e=this.parent;e;)t.unshift(e),e=e.parent;return t},t.prototype.getPath=function(){return this.path},t.prototype.getValue=function(){return this.value},t.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},t.prototype.getText=function(t,e){return t?this.pathLabels.join(e):this.label},t.prototype.isSameNode=function(t){var e=this.getValueByOption();return this.config.multiple&&Array.isArray(t)?t.some((function(t){return Object(g.isEqual)(t,e)})):Object(g.isEqual)(t,e)},t.prototype.broadcast=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i="onParent"+Object(g.capitalize)(t);this.children.forEach((function(e){e&&(e.broadcast.apply(e,[t].concat(n)),e[i]&&e[i].apply(e,n))}))},t.prototype.emit=function(t){var e=this.parent,n="onChild"+Object(g.capitalize)(t);if(e){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e[n]&&e[n].apply(e,i),e.emit.apply(e,[t].concat(i))}},t.prototype.onParentCheck=function(t){this.isDisabled||this.setCheckState(t)},t.prototype.onChildCheck=function(){var t=this.children.filter((function(t){return!t.isDisabled})),e=!!t.length&&t.every((function(t){return t.checked}));this.setCheckState(e)},t.prototype.setCheckState=function(t){var e=this.children.length,n=this.children.reduce((function(t,e){return t+(e.checked?1:e.indeterminate?.5:0)}),0);this.checked=t,this.indeterminate=n!==e&&n>0},t.prototype.syncCheckState=function(t){var e=this.getValueByOption(),n=this.isSameNode(t,e);this.doCheck(n)},t.prototype.doCheck=function(t){this.checked!==t&&(this.config.checkStrictly?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check")))},qc(t,[{key:"isDisabled",get:function(){var t=this.data,e=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return t[r]||!i&&e&&e.isDisabled}},{key:"isLeaf",get:function(){var t=this.data,e=this.loaded,n=this.hasChildren,r=this.children,i=this.config,o=i.lazy,a=i.leaf;if(o){var s=Object(Gt.isDef)(t[a])?t[a]:!!e&&!r.length;return this.hasChildren=!s,s}return!n}}]),t}();var Qc=function t(e,n){return e.reduce((function(e,r){return r.isLeaf?e.push(r):(!n&&e.push(r),e=e.concat(t(r.children,n))),e}),[])},Jc=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=n,this.initNodes(e)}return t.prototype.initNodes=function(t){var e=this;t=Object(g.coerceTruthyValueToArray)(t),this.nodes=t.map((function(t){return new Kc(t,e.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},t.prototype.appendNode=function(t,e){var n=new Kc(t,this.config,e);(e?e.children:this.nodes).push(n)},t.prototype.appendNodes=function(t,e){var n=this;(t=Object(g.coerceTruthyValueToArray)(t)).forEach((function(t){return n.appendNode(t,e)}))},t.prototype.getNodes=function(){return this.nodes},t.prototype.getFlattedNodes=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t?this.leafNodes:this.flattedNodes;return e?n:Qc(this.nodes,t)},t.prototype.getNodeByValue=function(t){var e=this.getFlattedNodes(!1,!this.config.lazy).filter((function(e){return Object(g.valueEquals)(e.path,t)||e.value===t}));return e&&e.length?e[0]:null},t}(),th=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},eh=Su.a.keys,nh={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:g.noop,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},rh=function(t){return!t.getAttribute("aria-owns")},ih=function(t,e){var n=t.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]');return r[Array.prototype.indexOf.call(r,t)+e]||null}return null},oh=function(t,e){if(t){var n=t.id.split("-");return Number(n[n.length-2])}},ah=function(t){t&&(t.focus(),!rh(t)&&t.click())},sh=i({name:"ElCascaderPanel",components:{CascaderMenu:$c},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return Ut()(th({},nh),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{options:{handler:function(){this.initStore()},immediate:!0,deep:!0},value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},checkedValue:function(t){Object(g.isEqual)(t,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",t),this.$emit("change",t))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var t=this.config,e=this.options;t.lazy&&Object(g.isEmpty)(e)?this.lazyLoad():(this.store=new Jc(e,t),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var t=this.value,e=this.checkedValue;Object(g.isEqual)(t,e)||(this.activePath=[],this.checkedValue=t,this.syncMenuState())},syncMenuState:function(){var t=this.multiple,e=this.checkStrictly;this.syncActivePath(),t&&this.syncMultiCheckState(),e&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var t=this;this.getFlattedNodes(this.leafOnly).forEach((function(e){e.syncCheckState(t.checkedValue)}))},isEmptyValue:function(t){var e=this.multiple,n=this.config.emitPath;return!(!e&&!n)&&Object(g.isEmpty)(t)},syncActivePath:function(){var t=this,e=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(g.isEmpty)(r))if(this.isEmptyValue(i))this.activePath=[],this.menus=[e.getNodes()];else{var o=n?i[0]:i,a=((this.getNodeByValue(o)||{}).pathNodes||[]).slice(0,-1);this.expandNodes(a)}else{var s=r.map((function(e){return t.getNodeByValue(e.getValue())}));this.expandNodes(s)}},expandNodes:function(t){var e=this;t.forEach((function(t){return e.handleExpand(t,!0)}))},calculateCheckedNodePaths:function(){var t=this,e=this.checkedValue,n=this.multiple?Object(g.coerceTruthyValueToArray)(e):[e];this.checkedNodePaths=n.map((function(e){var n=t.getNodeByValue(e);return n?n.pathNodes:[]}))},handleKeyDown:function(t){var e=t.target;switch(t.keyCode){case eh.up:var n=ih(e,-1);ah(n);break;case eh.down:var r=ih(e,1);ah(r);break;case eh.left:var i=this.$refs.menu[oh(e)-1];if(i){var o=i.$el.querySelector('.el-cascader-node[aria-expanded="true"]');ah(o)}break;case eh.right:var a=this.$refs.menu[oh(e)+1];if(a){var s=a.$el.querySelector('.el-cascader-node[tabindex="-1"]');ah(s)}break;case eh.enter:!function(t){if(t){var e=t.querySelector("input");e?e.click():rh(t)&&t.click()}}(e);break;case eh.esc:case eh.tab:this.$emit("close");break;default:return}},handleExpand:function(t,e){var n=this.activePath,r=t.level,i=n.slice(0,r-1),o=this.menus.slice(0,r);if(t.isLeaf||(i.push(t),o.push(t.children)),this.activePath=i,this.menus=o,!e){var a=i.map((function(t){return t.getValue()})),s=n.map((function(t){return t.getValue()}));Object(g.valueEquals)(a,s)||(this.$emit("active-item-change",a),this.$emit("expand-change",a))}},handleCheckChange:function(t){this.checkedValue=t},lazyLoad:function(t,e){var n=this,r=this.config;t||(t=t||{root:!0,level:0},this.store=new Jc([],r),this.menus=[this.store.getNodes()]),t.loading=!0;r.lazyLoad(t,(function(r){var i=t.root?null:t;if(r&&r.length&&n.store.appendNodes(r,i),t.loading=!1,t.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter((function(t){return t[a]===o})).length>0){var u=n.store.getNodeByValue(o);u.data[s]||n.lazyLoad(u,(function(){n.handleExpand(u)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}e&&e(r)}))},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(t){return t.getValueByOption()}))},scrollIntoView:function(){this.$isServer||(this.$refs.menu||[]).forEach((function(t){var e=t.$el;if(e){var n=e.querySelector(".el-scrollbar__wrap"),r=e.querySelector(".el-cascader-node.is-active")||e.querySelector(".el-cascader-node.in-active-path");Fe()(n,r)}}))},getNodeByValue:function(t){return this.store.getNodeByValue(t)},getFlattedNodes:function(t){var e=!this.config.lazy;return this.store.getFlattedNodes(t,e)},getCheckedNodes:function(t){var e=this.checkedValue;return this.multiple?this.getFlattedNodes(t).filter((function(t){return t.checked})):this.isEmptyValue(e)?[]:[this.getNodeByValue(e)]},clearCheckedNodes:function(){var t=this.config,e=this.leafOnly,n=t.multiple,r=t.emitPath;n?(this.getCheckedNodes(e).filter((function(t){return!t.isDisabled})).forEach((function(t){return t.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},Vc,[],!1,null,null,null);sh.options.__file="packages/cascader-panel/src/cascader-panel.vue";var uh=sh.exports;uh.install=function(t){t.component(uh.name,uh)};var lh=uh,ch=i({name:"ElAvatar",props:{size:{type:[Number,String],validator:function(t){return"string"==typeof t?["large","medium","small"].includes(t):"number"==typeof t}},shape:{type:String,default:"circle",validator:function(t){return["circle","square"].includes(t)}},icon:String,src:String,alt:String,srcSet:String,error:Function,fit:{type:String,default:"cover"}},data:function(){return{isImageExist:!0}},computed:{avatarClass:function(){var t=this.size,e=this.icon,n=this.shape,r=["el-avatar"];return t&&"string"==typeof t&&r.push("el-avatar--"+t),e&&r.push("el-avatar--icon"),n&&r.push("el-avatar--"+n),r.join(" ")}},methods:{handleError:function(){var t=this.error;!1!==(t?t():void 0)&&(this.isImageExist=!1)},renderAvatar:function(){var t=this.$createElement,e=this.icon,n=this.src,r=this.alt,i=this.isImageExist,o=this.srcSet,a=this.fit;return i&&n?t("img",{attrs:{src:n,alt:r,srcSet:o},on:{error:this.handleError},style:{"object-fit":a}}):e?t("i",{class:e}):this.$slots.default}},render:function(){var t=arguments[0],e=this.avatarClass,n=this.size,r="number"==typeof n?{height:n+"px",width:n+"px",lineHeight:n+"px"}:{};return t("span",{class:e,style:r},[this.renderAvatar()])}},void 0,void 0,!1,null,null,null);ch.options.__file="packages/avatar/src/main.vue";var hh=ch.exports;hh.install=function(t){t.component(hh.name,hh)};var fh=hh,dh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-drawer-fade"},on:{"after-enter":t.afterEnter,"after-leave":t.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-drawer__wrapper",attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-drawer__container",class:t.visible&&"el-drawer__open",attrs:{role:"document",tabindex:"-1"},on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[n("div",{ref:"drawer",staticClass:"el-drawer",class:[t.direction,t.customClass],style:t.isHorizontal?"width: "+t.drawerSize:"height: "+t.drawerSize,attrs:{"aria-modal":"true","aria-labelledby":"el-drawer__title","aria-label":t.title,role:"dialog",tabindex:"-1"}},[t.withHeader?n("header",{staticClass:"el-drawer__header",attrs:{id:"el-drawer__title"}},[t._t("title",[n("span",{attrs:{role:"heading",title:t.title}},[t._v(t._s(t.title))])]),t.showClose?n("button",{staticClass:"el-drawer__close-btn",attrs:{"aria-label":"close "+(t.title||"drawer"),type:"button"},on:{click:t.closeDrawer}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):t._e()],2):t._e(),t.rendered?n("section",{staticClass:"el-drawer__body"},[t._t("default")],2):t._e()])])])])};dh._withStripped=!0;var ph=i({name:"ElDrawer",mixins:[_.a,S.a],props:{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},customClass:{type:String,default:""},closeOnPressEscape:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},direction:{type:String,default:"rtl",validator:function(t){return-1!==["ltr","rtl","ttb","btt"].indexOf(t)}},modalAppendToBody:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},size:{type:[Number,String],default:"30%"},title:{type:String,default:""},visible:{type:Boolean},wrapperClosable:{type:Boolean,default:!0},withHeader:{type:Boolean,default:!0}},computed:{isHorizontal:function(){return"rtl"===this.direction||"ltr"===this.direction},drawerSize:function(){return"number"==typeof this.size?this.size+"px":this.size}},data:function(){return{closed:!1,prevActiveElement:null}},watch:{visible:function(t){var e=this;t?(this.closed=!1,this.$emit("open"),this.appendToBody&&document.body.appendChild(this.$el),this.prevActiveElement=document.activeElement):(this.closed||(this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1)),this.$nextTick((function(){e.prevActiveElement&&e.prevActiveElement.focus()})))}},methods:{afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")},hide:function(t){!1!==t&&(this.$emit("update:visible",!1),this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1),this.closed=!0)},handleWrapperClick:function(){this.wrapperClosable&&this.closeDrawer()},closeDrawer:function(){"function"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},handleClose:function(){this.closeDrawer()}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},dh,[],!1,null,null,null);ph.options.__file="packages/drawer/src/main.vue";var gh=ph.exports;gh.install=function(t){t.component(gh.name,gh)};var vh=gh,mh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-popover",t._b({attrs:{trigger:"click"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},"el-popover",t.$attrs,!1),[n("div",{staticClass:"el-popconfirm"},[n("p",{staticClass:"el-popconfirm__main"},[t.hideIcon?t._e():n("i",{staticClass:"el-popconfirm__icon",class:t.icon,style:{color:t.iconColor}}),t._v("\n "+t._s(t.title)+"\n ")]),n("div",{staticClass:"el-popconfirm__action"},[n("el-button",{attrs:{size:"mini",type:t.cancelButtonType},on:{click:t.cancel}},[t._v("\n "+t._s(t.displayCancelButtonText)+"\n ")]),n("el-button",{attrs:{size:"mini",type:t.confirmButtonType},on:{click:t.confirm}},[t._v("\n "+t._s(t.displayConfirmButtonText)+"\n ")])],1)]),t._t("reference",null,{slot:"reference"})],2)};mh._withStripped=!0;var yh=n(44),bh=i({name:"ElPopconfirm",props:{title:{type:String},confirmButtonText:{type:String},cancelButtonText:{type:String},confirmButtonType:{type:String,default:"primary"},cancelButtonType:{type:String,default:"text"},icon:{type:String,default:"el-icon-question"},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1}},components:{ElPopover:n.n(yh).a,ElButton:Y.a},data:function(){return{visible:!1}},computed:{displayConfirmButtonText:function(){return this.confirmButtonText||Object(Di.t)("el.popconfirm.confirmButtonText")},displayCancelButtonText:function(){return this.cancelButtonText||Object(Di.t)("el.popconfirm.cancelButtonText")}},methods:{confirm:function(){this.visible=!1,this.$emit("confirm")},cancel:function(){this.visible=!1,this.$emit("cancel")}}},mh,[],!1,null,null,null);bh.options.__file="packages/popconfirm/src/main.vue";var _h=bh.exports;_h.install=function(t){t.component(_h.name,_h)};var xh=_h,wh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.uiLoading?[n("div",t._b({class:["el-skeleton",t.animated?"is-animated":""]},"div",t.$attrs,!1),[t._l(t.count,(function(e){return[t.loading?t._t("template",t._l(t.rows,(function(r){return n("el-skeleton-item",{key:e+"-"+r,class:{"el-skeleton__paragraph":1!==r,"is-first":1===r,"is-last":r===t.rows&&t.rows>1},attrs:{variant:"p"}})}))):t._e()]}))],2)]:[t._t("default",null,null,t.$attrs)]],2)};wh._withStripped=!0;var Oh=i({name:"ElSkeleton",props:{animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:4},loading:{type:Boolean,default:!0},throttle:{type:Number,default:0}},watch:{loading:{handler:function(t){var e=this;this.throttle<=0?this.uiLoading=t:t?(clearTimeout(this.timeoutHandle),this.timeoutHandle=setTimeout((function(){e.uiLoading=e.loading}),this.throttle)):this.uiLoading=t},immediate:!0}},data:function(){return{uiLoading:this.throttle<=0&&this.loading}}},wh,[],!1,null,null,null);Oh.options.__file="packages/skeleton/src/index.vue";var Sh=Oh.exports;Sh.install=function(t){t.component(Sh.name,Sh)};var Ch=Sh,Eh=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:["el-skeleton__item","el-skeleton__"+this.variant]},["image"===this.variant?e("img-placeholder"):this._e()],1)};Eh._withStripped=!0;var Th=function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M64 896V128h896v768H64z m64-128l192-192 116.352 116.352L640 448l256 307.2V192H128v576z m224-480a96 96 0 1 1-0.064 192.064A96 96 0 0 1 352 288z"}})])};Th._withStripped=!0;var Ah=i({name:"ImgPlaceholder"},Th,[],!1,null,null,null);Ah.options.__file="packages/skeleton/src/img-placeholder.vue";var Mh,Ih=Ah.exports,jh=i({name:"ElSkeletonItem",props:{variant:{type:String,default:"text"}},components:(Mh={},Mh[Ih.name]=Ih,Mh)},Eh,[],!1,null,null,null);jh.options.__file="packages/skeleton/src/item.vue";var kh=jh.exports;kh.install=function(t){t.component(kh.name,kh)};var Ph=kh,Lh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-empty"},[n("div",{staticClass:"el-empty__image",style:t.imageStyle},[t.image?n("img",{attrs:{src:t.image,ondragstart:"return false"}}):t._t("image",[n("img-empty")])],2),n("div",{staticClass:"el-empty__description"},[t.$slots.description?t._t("description"):n("p",[t._v(t._s(t.emptyDescription))])],2),t.$slots.default?n("div",{staticClass:"el-empty__bottom"},[t._t("default")],2):t._e()])};Lh._withStripped=!0;var Rh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("defs",[n("linearGradient",{attrs:{id:"linearGradient-1-"+t.id,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#EEEFF3",offset:"100%"}})],1),n("linearGradient",{attrs:{id:"linearGradient-2-"+t.id,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#E9EBEF",offset:"100%"}})],1),n("rect",{attrs:{id:"path-3-"+t.id,x:"0",y:"0",width:"17",height:"36"}})],1),n("g",{attrs:{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{id:"B-type",transform:"translate(-1268.000000, -535.000000)"}},[n("g",{attrs:{id:"Group-2",transform:"translate(1268.000000, 535.000000)"}},[n("path",{attrs:{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:"#F7F8FC"}}),n("polygon",{attrs:{id:"Rectangle-Copy-14",fill:"#E5E7E9",transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"}}),n("g",{attrs:{id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"}},[n("polygon",{attrs:{id:"Rectangle-Copy-10",fill:"#E5E7E9",transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"}}),n("polygon",{attrs:{id:"Rectangle-Copy-11",fill:"#EDEEF2",points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"}}),n("rect",{attrs:{id:"Rectangle-Copy-12",fill:"url(#linearGradient-1-"+t.id+")",transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"}}),n("polygon",{attrs:{id:"Rectangle-Copy-13",fill:"#F8F9FB",transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"}})]),n("rect",{attrs:{id:"Rectangle-Copy-15",fill:"url(#linearGradient-2-"+t.id+")",x:"13",y:"45",width:"40",height:"36"}}),n("g",{attrs:{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"}},[n("mask",{attrs:{id:"mask-4-"+t.id,fill:"white"}},[n("use",{attrs:{"xlink:href":"#path-3-"+t.id}})]),n("use",{attrs:{id:"Mask",fill:"#E0E3E9",transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":"#path-3-"+t.id}}),n("polygon",{attrs:{id:"Rectangle-Copy",fill:"#D5D7DE",mask:"url(#mask-4-"+t.id+")",transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 -1.70530257e-13 16"}})]),n("polygon",{attrs:{id:"Rectangle-Copy-18",fill:"#F8F9FB",transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"}})])])])])};Rh._withStripped=!0;var Dh=0,Nh=i({name:"ImgEmpty",data:function(){return{id:++Dh}}},Rh,[],!1,null,null,null);Nh.options.__file="packages/empty/src/img-empty.vue";var Bh,Fh=Nh.exports,zh=i({name:"ElEmpty",components:(Bh={},Bh[Fh.name]=Fh,Bh),props:{image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},computed:{emptyDescription:function(){return this.description||Object(Di.t)("el.empty.description")},imageStyle:function(){return{width:this.imageSize?this.imageSize+"px":""}}}},Lh,[],!1,null,null,null);zh.options.__file="packages/empty/src/index.vue";var Vh=zh.exports;Vh.install=function(t){t.component(Vh.name,Vh)};var Uh,Gh=Vh,Hh=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Wh={name:"ElDescriptionsRow",props:{row:{type:Array}},inject:["elDescriptions"],render:function(t){var e=this.elDescriptions,n=(this.row||[]).map((function(t){return Hh({},t,{label:t.slots.label||t.props.label},["labelClassName","contentClassName","labelStyle","contentStyle"].reduce((function(n,r){return n[r]=t.props[r]||e[r],n}),{}))}));return"vertical"===e.direction?t("tbody",[t("tr",{class:"el-descriptions-row"},[n.map((function(n){var r;return t("th",{class:(r={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"has-colon":!e.border&&e.colon,"is-bordered-label":e.border},r[n.labelClassName]=!0,r),style:n.labelStyle,attrs:{colSpan:n.props.span}},[n.label])}))]),t("tr",{class:"el-descriptions-row"},[n.map((function(e){return t("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",e.contentClassName],style:e.contentStyle,attrs:{colSpan:e.props.span}},[e.slots.default])}))])]):e.border?t("tbody",[t("tr",{class:"el-descriptions-row"},[n.map((function(n){var r;return[t("th",{class:(r={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"is-bordered-label":e.border},r[n.labelClassName]=!0,r),style:n.labelStyle,attrs:{colSpan:"1"}},[n.label]),t("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",n.contentClassName],style:n.contentStyle,attrs:{colSpan:2*n.props.span-1}},[n.slots.default])]}))])]):t("tbody",[t("tr",{class:"el-descriptions-row"},[n.map((function(n){var r;return t("td",{class:"el-descriptions-item el-descriptions-item__cell",attrs:{colSpan:n.props.span}},[t("div",{class:"el-descriptions-item__container"},[t("span",{class:(r={"el-descriptions-item__label":!0,"has-colon":e.colon},r[n.labelClassName]=!0,r),style:n.labelStyle},[n.label]),t("span",{class:["el-descriptions-item__content",n.contentClassName],style:n.contentStyle},[n.slots.default])])])}))])])}},Yh=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Xh={name:"ElDescriptions",components:(Uh={},Uh[Wh.name]=Wh,Uh),props:{border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,default:"horizontal"},size:{type:String},title:{type:String,default:""},extra:{type:String,default:""},labelStyle:{type:Object},contentStyle:{type:Object},labelClassName:{type:String,default:""},contentClassName:{type:String,default:""},colon:{type:Boolean,default:!0}},computed:{descriptionsSize:function(){return this.size||(this.$ELEMENT||{}).size}},provide:function(){return{elDescriptions:this}},methods:{getOptionProps:function(t){if(t.componentOptions){var e=t.componentOptions,n=e.propsData,r=void 0===n?{}:n,i=e.Ctor,o=((void 0===i?{}:i).options||{}).props||{},a={};for(var s in o){var u=o[s].default;void 0!==u&&(a[s]=Object(Os.isFunction)(u)?u.call(t):u)}return Yh({},a,r)}return{}},getSlots:function(t){var e=this,n=t.componentOptions||{},r=t.children||n.children||[],i={};return r.forEach((function(t){if(!e.isEmptyElement(t)){var n=t.data&&t.data.slot||"default";i[n]=i[n]||[],"template"===t.tag?i[n].push(t.children):i[n].push(t)}})),Yh({},i)},isEmptyElement:function(t){return!(t.tag||t.text&&""!==t.text.trim())},filledNode:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.props||(t.props={}),e>n&&(t.props.span=n),r&&(t.props.span=n),t},getRows:function(){var t=this,e=(this.$slots.default||[]).filter((function(t){return t.tag&&t.componentOptions&&"ElDescriptionsItem"===t.componentOptions.Ctor.options.name})),n=e.map((function(e){return{props:t.getOptionProps(e),slots:t.getSlots(e),vnode:e}})),r=[],i=[],o=this.column;return n.forEach((function(n,a){var s=n.props.span||1;if(a===e.length-1)return i.push(t.filledNode(n,s,o,!0)),void r.push(i);s<o?(o-=s,i.push(n)):(i.push(t.filledNode(n,s,o)),r.push(i),o=t.column,i=[])})),r}},render:function(){var t=arguments[0],e=this.title,n=this.extra,r=this.border,i=this.descriptionsSize,o=this.$slots,a=this.getRows();return t("div",{class:"el-descriptions"},[e||n||o.title||o.extra?t("div",{class:"el-descriptions__header"},[t("div",{class:"el-descriptions__title"},[o.title?o.title:e]),t("div",{class:"el-descriptions__extra"},[o.extra?o.extra:n])]):null,t("div",{class:"el-descriptions__body"},[t("table",{class:["el-descriptions__table",{"is-bordered":r},i?"el-descriptions--"+i:""]},[a.map((function(e){return t(Wh,{attrs:{row:e}})}))])])])},install:function(t){t.component(Xh.name,Xh)}},$h=Xh,qh={name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},contentClassName:{type:String,default:""},contentStyle:{type:Object},labelClassName:{type:String,default:""},labelStyle:{type:Object}},render:function(){return null},install:function(t){t.component(qh.name,qh)}},Zh=qh,Kh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-result"},[n("div",{staticClass:"el-result__icon"},[t._t("icon",[n(t.iconElement,{tag:"component",class:t.iconElement})])],2),t.title||t.$slots.title?n("div",{staticClass:"el-result__title"},[t._t("title",[n("p",[t._v(t._s(t.title))])])],2):t._e(),t.subTitle||t.$slots.subTitle?n("div",{staticClass:"el-result__subtitle"},[t._t("subTitle",[n("p",[t._v(t._s(t.subTitle))])])],2):t._e(),t.$slots.extra?n("div",{staticClass:"el-result__extra"},[t._t("extra")],2):t._e()])};Kh._withStripped=!0;var Qh=function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M34.5548098,16.4485711 C33.9612228,15.8504763 32.9988282,15.8504763 32.4052412,16.4485711 L32.4052412,16.4485711 L21.413757,27.5805811 L21.413757,27.5805811 L21.4034642,27.590855 C21.0097542,27.9781674 20.3766105,27.9729811 19.9892981,27.5792711 L19.9892981,27.5792711 L15.5947588,23.1121428 C15.0011718,22.514048 14.0387772,22.514048 13.4451902,23.1121428 C12.8516033,23.7102376 12.8516033,24.6799409 13.4451902,25.2780357 L13.4451902,25.2780357 L19.6260786,31.5514289 C20.2196656,32.1495237 21.1820602,32.1495237 21.7756472,31.5514289 L21.7756472,31.5514289 L34.5548098,18.614464 C35.1483967,18.0163692 35.1483967,17.0466659 34.5548098,16.4485711 Z"}})])};Qh._withStripped=!0;var Jh=i({name:"IconSuccess"},Qh,[],!1,null,null,null);Jh.options.__file="packages/result/src/icon-success.vue";var tf=Jh.exports,ef=function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.57818,15.42182 C32.0157534,14.8593933 31.1038797,14.8593933 30.541453,15.42182 L30.541453,15.42182 L24.0006789,21.9625941 L17.458547,15.42182 C16.8961203,14.8593933 15.9842466,14.8593933 15.42182,15.42182 C14.8593933,15.9842466 14.8593933,16.8961203 15.42182,17.458547 L15.42182,17.458547 L21.9639519,23.9993211 L15.42182,30.541453 C14.8593933,31.1038797 14.8593933,32.0157534 15.42182,32.57818 C15.9842466,33.1406067 16.8961203,33.1406067 17.458547,32.57818 L17.458547,32.57818 L24.0006789,26.0360481 L30.541453,32.57818 C31.1038797,33.1406067 32.0157534,33.1406067 32.57818,32.57818 C33.1406067,32.0157534 33.1406067,31.1038797 32.57818,30.541453 L32.57818,30.541453 L26.0374059,23.9993211 L32.57818,17.458547 C33.1406067,16.8961203 33.1406067,15.9842466 32.57818,15.42182 Z"}})])};ef._withStripped=!0;var nf=i({name:"IconError"},ef,[],!1,null,null,null);nf.options.__file="packages/result/src/icon-error.vue";var rf=nf.exports,of=function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,31 C22.8954305,31 22,31.8954305 22,33 C22,34.1045695 22.8954305,35 24,35 C25.1045695,35 26,34.1045695 26,33 C26,31.8954305 25.1045695,31 24,31 Z M24,14 C23.1715729,14 22.5,14.6715729 22.5,15.5 L22.5,15.5 L22.5,27.5 C22.5,28.3284271 23.1715729,29 24,29 C24.8284271,29 25.5,28.3284271 25.5,27.5 L25.5,27.5 L25.5,15.5 C25.5,14.6715729 24.8284271,14 24,14 Z"}})])};of._withStripped=!0;var af=i({name:"IconWarning"},of,[],!1,null,null,null);af.options.__file="packages/result/src/icon-warning.vue";var sf=af.exports,uf=function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,19 L21,19 C20.1715729,19 19.5,19.6715729 19.5,20.5 C19.5,21.3284271 20.1715729,22 21,22 L21,22 L22.5,22 L22.5,31 L21,31 C20.1715729,31 19.5,31.6715729 19.5,32.5 C19.5,33.3284271 20.1715729,34 21,34 L21,34 L27,34 C27.8284271,34 28.5,33.3284271 28.5,32.5 C28.5,31.6715729 27.8284271,31 27,31 L27,31 L25.5,31 L25.5,20.5 C25.5,19.6715729 24.8284271,19 24,19 L24,19 Z M24,13 C22.8954305,13 22,13.8954305 22,15 C22,16.1045695 22.8954305,17 24,17 C25.1045695,17 26,16.1045695 26,15 C26,13.8954305 25.1045695,13 24,13 Z"}})])};uf._withStripped=!0;var lf=i({name:"IconInfo"},uf,[],!1,null,null,null);lf.options.__file="packages/result/src/icon-info.vue";var cf,hf=lf.exports,ff={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},df=i({name:"ElResult",components:(cf={},cf[tf.name]=tf,cf[rf.name]=rf,cf[sf.name]=sf,cf[hf.name]=hf,cf),props:{title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,default:"info"}},computed:{iconElement:function(){var t=this.icon;return t&&ff[t]?ff[t]:"icon-info"}}},Kh,[],!1,null,null,null);df.options.__file="packages/result/src/index.vue";var pf=df.exports;pf.install=function(t){t.component(pf.name,pf)};var gf=pf,vf=[m,T,H,K,et,ot,mt,St,It,Lt,Yt,Kt,ee,ae,ce,pe,ye,we,Ee,Ue,Ge,Xe,Ke,en,or,fr,li,mi,Ei,ki,Li,io,uo,fo,xo,Io,Lo,No,ea,aa,Ea,Ha,Ya,qa,cs,ps,ys,Ls,Bs,Us,Ys,Zs,nu,su,hu,gu,bu,ju,sl,pl,yl,wl,El,Il,Ll,Nl,Vl,Wl,ql,fc,wc,Tc,zc,lh,fh,vh,xh,Ch,Ph,Gh,$h,Zh,gf,bt.a],mf=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ni.a.use(e.locale),Ni.a.i18n(e.i18n),vf.forEach((function(e){t.component(e.name,e)})),t.use(Dc),t.use(za.directive),t.prototype.$ELEMENT={size:e.size||"",zIndex:e.zIndex||2e3},t.prototype.$loading=za.service,t.prototype.$msgbox=to,t.prototype.$alert=to.alert,t.prototype.$confirm=to.confirm,t.prototype.$prompt=to.prompt,t.prototype.$notify=va,t.prototype.$message=Is};"undefined"!=typeof window&&window.Vue&&mf(window.Vue);e.default={version:"2.15.7",locale:Ni.a.use,i18n:Ni.a.i18n,install:mf,CollapseTransition:bt.a,Loading:za,Pagination:m,Dialog:T,Autocomplete:H,Dropdown:K,DropdownMenu:et,DropdownItem:ot,Menu:mt,Submenu:St,MenuItem:It,MenuItemGroup:Lt,Input:Yt,InputNumber:Kt,Radio:ee,RadioGroup:ae,RadioButton:ce,Checkbox:pe,CheckboxButton:ye,CheckboxGroup:we,Switch:Ee,Select:Ue,Option:Ge,OptionGroup:Xe,Button:Ke,ButtonGroup:en,Table:or,TableColumn:fr,DatePicker:li,TimeSelect:mi,TimePicker:Ei,Popover:ki,Tooltip:Li,MessageBox:to,Breadcrumb:io,BreadcrumbItem:uo,Form:fo,FormItem:xo,Tabs:Io,TabPane:Lo,Tag:No,Tree:ea,Alert:aa,Notification:va,Slider:Ea,Icon:Ha,Row:Ya,Col:qa,Upload:cs,Progress:ps,Spinner:ys,Message:Is,Badge:Ls,Card:Bs,Rate:Us,Steps:Ys,Step:Zs,Carousel:nu,Scrollbar:su,CarouselItem:hu,Collapse:gu,CollapseItem:bu,Cascader:ju,ColorPicker:sl,Transfer:pl,Container:yl,Header:wl,Aside:El,Main:Il,Footer:Ll,Timeline:Nl,TimelineItem:Vl,Link:Wl,Divider:ql,Image:fc,Calendar:wc,Backtop:Tc,InfiniteScroll:Dc,PageHeader:zc,CascaderPanel:lh,Avatar:fh,Drawer:vh,Popconfirm:xh,Skeleton:Ch,SkeletonItem:Ph,Empty:Gh,Descriptions:$h,DescriptionsItem:Zh,Result:gf}}]).default},function(t,e,n){"use strict";e.__esModule=!0,e.validateRangeInOneMonth=e.extractTimeFormat=e.extractDateFormat=e.nextYear=e.prevYear=e.nextMonth=e.prevMonth=e.changeYearMonthAndClampDate=e.timeWithinRange=e.limitTimeRange=e.clearMilliseconds=e.clearTime=e.modifyWithTimeString=e.modifyTime=e.modifyDate=e.range=e.getRangeMinutes=e.getMonthDays=e.getPrevMonthLastDays=e.getRangeHours=e.getWeekNumber=e.getStartDateOfMonth=e.nextDate=e.prevDate=e.getFirstDayOfMonth=e.getDayCountOfYear=e.getDayCountOfMonth=e.parseDate=e.formatDate=e.isDateObject=e.isDate=e.toDate=e.getI18nSettings=void 0;var r,i=n(959),o=(r=i)&&r.__esModule?r:{default:r},a=n(819);var s=["sun","mon","tue","wed","thu","fri","sat"],u=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],l=e.getI18nSettings=function(){return{dayNamesShort:s.map((function(t){return(0,a.t)("el.datepicker.weeks."+t)})),dayNames:s.map((function(t){return(0,a.t)("el.datepicker.weeks."+t)})),monthNamesShort:u.map((function(t){return(0,a.t)("el.datepicker.months."+t)})),monthNames:u.map((function(t,e){return(0,a.t)("el.datepicker.month"+(e+1))})),amPm:["am","pm"]}},c=e.toDate=function(t){return h(t)?new Date(t):null},h=e.isDate=function(t){return null!=t&&(!isNaN(new Date(t).getTime())&&!Array.isArray(t))},f=(e.isDateObject=function(t){return t instanceof Date},e.formatDate=function(t,e){return(t=c(t))?o.default.format(t,e||"yyyy-MM-dd",l()):""},e.parseDate=function(t,e){return o.default.parse(t,e||"yyyy-MM-dd",l())}),d=e.getDayCountOfMonth=function(t,e){return 3===e||5===e||8===e||10===e?30:1===e?t%4==0&&t%100!=0||t%400==0?29:28:31},p=(e.getDayCountOfYear=function(t){return t%400==0||t%100!=0&&t%4==0?366:365},e.getFirstDayOfMonth=function(t){var e=new Date(t.getTime());return e.setDate(1),e.getDay()},e.prevDate=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-e)});e.nextDate=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+e)},e.getStartDateOfMonth=function(t,e){var n=new Date(t,e,1),r=n.getDay();return p(n,0===r?7:r)},e.getWeekNumber=function(t){if(!h(t))return null;var e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var n=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},e.getRangeHours=function(t){var e=[],n=[];if((t||[]).forEach((function(t){var e=t.map((function(t){return t.getHours()}));n=n.concat(function(t,e){for(var n=[],r=t;r<=e;r++)n.push(r);return n}(e[0],e[1]))})),n.length)for(var r=0;r<24;r++)e[r]=-1===n.indexOf(r);else for(var i=0;i<24;i++)e[i]=!1;return e},e.getPrevMonthLastDays=function(t,e){if(e<=0)return[];var n=new Date(t.getTime());n.setDate(0);var r=n.getDate();return v(e).map((function(t,n){return r-(e-n-1)}))},e.getMonthDays=function(t){var e=new Date(t.getFullYear(),t.getMonth()+1,0).getDate();return v(e).map((function(t,e){return e+1}))};function g(t,e,n,r){for(var i=e;i<n;i++)t[i]=r}e.getRangeMinutes=function(t,e){var n=new Array(60);return t.length>0?t.forEach((function(t){var r=t[0],i=t[1],o=r.getHours(),a=r.getMinutes(),s=i.getHours(),u=i.getMinutes();o===e&&s!==e?g(n,a,60,!0):o===e&&s===e?g(n,a,u+1,!0):o!==e&&s===e?g(n,0,u+1,!0):o<e&&s>e&&g(n,0,60,!0)})):g(n,0,60,!0),n};var v=e.range=function(t){return Array.apply(null,{length:t}).map((function(t,e){return e}))},m=e.modifyDate=function(t,e,n,r){return new Date(e,n,r,t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())},y=e.modifyTime=function(t,e,n,r){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,n,r,t.getMilliseconds())},b=(e.modifyWithTimeString=function(t,e){return null!=t&&e?(e=f(e,"HH:mm:ss"),y(t,e.getHours(),e.getMinutes(),e.getSeconds())):t},e.clearTime=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},e.clearMilliseconds=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),0)},e.limitTimeRange=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"HH:mm:ss";if(0===e.length)return t;var r=function(t){return o.default.parse(o.default.format(t,n),n)},i=r(t),a=e.map((function(t){return t.map(r)}));if(a.some((function(t){return i>=t[0]&&i<=t[1]})))return t;var s=a[0][0],u=a[0][0];a.forEach((function(t){s=new Date(Math.min(t[0],s)),u=new Date(Math.max(t[1],s))}));var l=i<s?s:u;return m(l,t.getFullYear(),t.getMonth(),t.getDate())}),_=(e.timeWithinRange=function(t,e,n){return b(t,e,n).getTime()===t.getTime()},e.changeYearMonthAndClampDate=function(t,e,n){var r=Math.min(t.getDate(),d(e,n));return m(t,e,n,r)});e.prevMonth=function(t){var e=t.getFullYear(),n=t.getMonth();return 0===n?_(t,e-1,11):_(t,e,n-1)},e.nextMonth=function(t){var e=t.getFullYear(),n=t.getMonth();return 11===n?_(t,e+1,0):_(t,e,n+1)},e.prevYear=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t.getFullYear(),r=t.getMonth();return _(t,n-e,r)},e.nextYear=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t.getFullYear(),r=t.getMonth();return _(t,n+e,r)},e.extractDateFormat=function(t){return t.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},e.extractTimeFormat=function(t){return t.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},e.validateRangeInOneMonth=function(t,e){return t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()}},function(t,e,n){"use strict";e.__esModule=!0,e.default={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},empty:{description:"暂无数据"}}}},function(t,e,n){"use strict";var r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===i}(t)}(t)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(t,e){var n;return e&&!0===e.clone&&r(t)?s((n=t,Array.isArray(n)?[]:{}),t,e):t}function a(t,e,n){var i=t.slice();return e.forEach((function(e,a){void 0===i[a]?i[a]=o(e,n):r(e)?i[a]=s(t[a],e,n):-1===t.indexOf(e)&&i.push(o(e,n))})),i}function s(t,e,n){var i=Array.isArray(e);return i===Array.isArray(t)?i?((n||{arrayMerge:a}).arrayMerge||a)(t,e,n):function(t,e,n){var i={};return r(t)&&Object.keys(t).forEach((function(e){i[e]=o(t[e],n)})),Object.keys(e).forEach((function(a){r(e[a])&&t[a]?i[a]=s(t[a],e[a],n):i[a]=o(e[a],n)})),i}(t,e,n):o(e,n)}s.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,n){return s(t,n,e)}))};var u=s;t.exports=u},function(t,e,n){"use strict";e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function(t){return function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];return 1===n.length&&"object"===r(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),t.replace(o,(function(e,r,o,a){var s=void 0;return"{"===t[a-1]&&"}"===t[a+e.length]?o:null==(s=(0,i.hasOwn)(n,o)?n[o]:null)?"":s}))}};var i=n(310),o=/(%|)\{([0-9a-zA-Z_]+)\}/g},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(216),o=(r=i)&&r.__esModule?r:{default:r},a=n(349);var s=!1,u=!1,l=void 0,c=function(){if(!o.default.prototype.$isServer){var t=f.modalDom;return t?s=!0:(s=!1,t=document.createElement("div"),f.modalDom=t,t.addEventListener("touchmove",(function(t){t.preventDefault(),t.stopPropagation()})),t.addEventListener("click",(function(){f.doOnModalClick&&f.doOnModalClick()}))),t}},h={},f={modalFade:!0,getInstance:function(t){return h[t]},register:function(t,e){t&&e&&(h[t]=e)},deregister:function(t){t&&(h[t]=null,delete h[t])},nextZIndex:function(){return f.zIndex++},modalStack:[],doOnModalClick:function(){var t=f.modalStack[f.modalStack.length-1];if(t){var e=f.getInstance(t.id);e&&e.closeOnClickModal&&e.close()}},openModal:function(t,e,n,r,i){if(!o.default.prototype.$isServer&&t&&void 0!==e){this.modalFade=i;for(var u=this.modalStack,l=0,h=u.length;l<h;l++){if(u[l].id===t)return}var f=c();if((0,a.addClass)(f,"v-modal"),this.modalFade&&!s&&(0,a.addClass)(f,"v-modal-enter"),r)r.trim().split(/\s+/).forEach((function(t){return(0,a.addClass)(f,t)}));setTimeout((function(){(0,a.removeClass)(f,"v-modal-enter")}),200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(f):document.body.appendChild(f),e&&(f.style.zIndex=e),f.tabIndex=0,f.style.display="",this.modalStack.push({id:t,zIndex:e,modalClass:r})}},closeModal:function(t){var e=this.modalStack,n=c();if(e.length>0){var r=e[e.length-1];if(r.id===t){if(r.modalClass)r.modalClass.trim().split(/\s+/).forEach((function(t){return(0,a.removeClass)(n,t)}));e.pop(),e.length>0&&(n.style.zIndex=e[e.length-1].zIndex)}else for(var i=e.length-1;i>=0;i--)if(e[i].id===t){e.splice(i,1);break}}0===e.length&&(this.modalFade&&(0,a.addClass)(n,"v-modal-leave"),setTimeout((function(){0===e.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",f.modalDom=void 0),(0,a.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(f,"zIndex",{configurable:!0,get:function(){return u||(l=l||(o.default.prototype.$ELEMENT||{}).zIndex||2e3,u=!0),l},set:function(t){l=t}});o.default.prototype.$isServer||window.addEventListener("keydown",(function(t){if(27===t.keyCode){var e=function(){if(!o.default.prototype.$isServer&&f.modalStack.length>0){var t=f.modalStack[f.modalStack.length-1];if(!t)return;return f.getInstance(t.id)}}();e&&e.closeOnPressEscape&&(e.handleClose?e.handleClose():e.handleAction?e.handleAction("cancel"):e.close())}})),e.default=f},function(t,e,n){"use strict";var r,i;"function"==typeof Symbol&&Symbol.iterator;void 0===(i="function"==typeof(r=function(){var t=window,e={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function n(t,n,r){this._reference=t.jquery?t[0]:t,this.state={};var i=null==n,o=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=i||o?this.parse(o?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},e,r),this._options.modifiers=this._options.modifiers.map(function(t){if(-1===this._options.modifiersIgnored.indexOf(t))return"applyStyle"===t&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[t]||t}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),c(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function r(e){var n=e.style.display,r=e.style.visibility;e.style.display="block",e.style.visibility="hidden",e.offsetWidth;var i=t.getComputedStyle(e),o=parseFloat(i.marginTop)+parseFloat(i.marginBottom),a=parseFloat(i.marginLeft)+parseFloat(i.marginRight),s={width:e.offsetWidth+a,height:e.offsetHeight+o};return e.style.display=n,e.style.visibility=r,s}function i(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function o(t){var e=Object.assign({},t);return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function a(t,e){var n,r=0;for(n in t){if(t[n]===e)return r;r++}return null}function s(e,n){return t.getComputedStyle(e,null)[n]}function u(e){var n=e.offsetParent;return n!==t.document.body&&n?n:t.document.documentElement}function l(e){var n=e.parentNode;return n?n===t.document?t.document.body.scrollTop||t.document.body.scrollLeft?t.document.body:t.document.documentElement:-1!==["scroll","auto"].indexOf(s(n,"overflow"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-x"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-y"))?n:l(e.parentNode):e}function c(t,e){Object.keys(e).forEach((function(n){var r,i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&""!==(r=e[n])&&!isNaN(parseFloat(r))&&isFinite(r)&&(i="px"),t.style[n]=e[n]+i}))}function h(t){var e={width:t.offsetWidth,height:t.offsetHeight,left:t.offsetLeft,top:t.offsetTop};return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function f(t){var e=t.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE")&&"HTML"===t.tagName?-t.scrollTop:e.top;return{left:e.left,top:n,right:e.right,bottom:e.bottom,width:e.right-e.left,height:e.bottom-n}}function d(e){for(var n=["","ms","webkit","moz","o"],r=0;r<n.length;r++){var i=n[r]?n[r]+e.charAt(0).toUpperCase()+e.slice(1):e;if(void 0!==t.document.body.style[i])return i}return null}return n.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[d("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},n.prototype.update=function(){var t={instance:this,styles:{}};t.placement=this._options.placement,t._originalPlacement=this._options.placement,t.offsets=this._getOffsets(this._popper,this._reference,t.placement),t.boundaries=this._getBoundaries(t,this._options.boundariesPadding,this._options.boundariesElement),t=this.runModifiers(t,this._options.modifiers),"function"==typeof this.state.updateCallback&&this.state.updateCallback(t)},n.prototype.onCreate=function(t){return t(this),this},n.prototype.onUpdate=function(t){return this.state.updateCallback=t,this},n.prototype.parse=function(e){var n={tagName:"div",classNames:["popper"],attributes:[],parent:t.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};e=Object.assign({},n,e);var r=t.document,i=r.createElement(e.tagName);if(s(i,e.classNames),u(i,e.attributes),"node"===e.contentType?i.appendChild(e.content.jquery?e.content[0]:e.content):"html"===e.contentType?i.innerHTML=e.content:i.textContent=e.content,e.arrowTagName){var o=r.createElement(e.arrowTagName);s(o,e.arrowClassNames),u(o,e.arrowAttributes),i.appendChild(o)}var a=e.parent.jquery?e.parent[0]:e.parent;if("string"==typeof a){if((a=r.querySelectorAll(e.parent)).length>1&&console.warn("WARNING: the given `parent` query("+e.parent+") matched more than one element, the first one will be used"),0===a.length)throw"ERROR: the given `parent` doesn't exists!";a=a[0]}return a.length>1&&a instanceof Element==0&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),a=a[0]),a.appendChild(i),i;function s(t,e){e.forEach((function(e){t.classList.add(e)}))}function u(t,e){e.forEach((function(e){t.setAttribute(e.split(":")[0],e.split(":")[1]||"")}))}},n.prototype._getPosition=function(e,n){return u(n),this._options.forceAbsolute?"absolute":function e(n){return n!==t.document.body&&("fixed"===s(n,"position")||(n.parentNode?e(n.parentNode):n))}(n)?"fixed":"absolute"},n.prototype._getOffsets=function(t,e,n){n=n.split("-")[0];var i={};i.position=this.state.position;var o="fixed"===i.position,a=function(t,e,n){var r=f(t),i=f(e);if(n){var o=l(e);i.top+=o.scrollTop,i.bottom+=o.scrollTop,i.left+=o.scrollLeft,i.right+=o.scrollLeft}return{top:r.top-i.top,left:r.left-i.left,bottom:r.top-i.top+r.height,right:r.left-i.left+r.width,width:r.width,height:r.height}}(e,u(t),o),s=r(t);return-1!==["right","left"].indexOf(n)?(i.top=a.top+a.height/2-s.height/2,i.left="left"===n?a.left-s.width:a.right):(i.left=a.left+a.width/2-s.width/2,i.top="top"===n?a.top-s.height:a.bottom),i.width=s.width,i.height=s.height,{popper:i,reference:a}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),t.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var e=l(this._reference);e!==t.document.body&&e!==t.document.documentElement||(e=t),e.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=e}},n.prototype._removeEventListeners=function(){t.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(e,n,r){var i,o,a={};if("window"===r){var s=t.document.body,c=t.document.documentElement;i=Math.max(s.scrollHeight,s.offsetHeight,c.clientHeight,c.scrollHeight,c.offsetHeight),a={top:0,right:Math.max(s.scrollWidth,s.offsetWidth,c.clientWidth,c.scrollWidth,c.offsetWidth),bottom:i,left:0}}else if("viewport"===r){var f=u(this._popper),d=l(this._popper),p=h(f),g="fixed"===e.offsets.popper.position?0:(o=d)==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):o.scrollTop,v="fixed"===e.offsets.popper.position?0:function(t){return t==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):t.scrollLeft}(d);a={top:0-(p.top-g),right:t.document.documentElement.clientWidth-(p.left-v),bottom:t.document.documentElement.clientHeight-(p.top-g),left:0-(p.left-v)}}else a=u(this._popper)===r?{top:0,left:0,right:r.clientWidth,bottom:r.clientHeight}:h(r);return a.left+=n,a.right-=n,a.top=a.top+n,a.bottom=a.bottom-n,a},n.prototype.runModifiers=function(t,e,n){var r=e.slice();return void 0!==n&&(r=this._options.modifiers.slice(0,a(this._options.modifiers,n))),r.forEach(function(e){var n;(n=e)&&"[object Function]"==={}.toString.call(n)&&(t=e.call(this,t))}.bind(this)),t},n.prototype.isModifierRequired=function(t,e){var n=a(this._options.modifiers,t);return!!this._options.modifiers.slice(0,n).filter((function(t){return t===e})).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(t){var e,n={position:t.offsets.popper.position},r=Math.round(t.offsets.popper.left),i=Math.round(t.offsets.popper.top);return this._options.gpuAcceleration&&(e=d("transform"))?(n[e]="translate3d("+r+"px, "+i+"px, 0)",n.top=0,n.left=0):(n.left=r,n.top=i),Object.assign(n,t.styles),c(this._popper,n),this._popper.setAttribute("x-placement",t.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&t.offsets.arrow&&c(t.arrowElement,t.offsets.arrow),t},n.prototype.modifiers.shift=function(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets.reference,a=o(t.offsets.popper),s={y:{start:{top:i.top},end:{top:i.top+i.height-a.height}},x:{start:{left:i.left},end:{left:i.left+i.width-a.width}}},u=-1!==["bottom","top"].indexOf(n)?"x":"y";t.offsets.popper=Object.assign(a,s[u][r])}return t},n.prototype.modifiers.preventOverflow=function(t){var e=this._options.preventOverflowOrder,n=o(t.offsets.popper),r={left:function(){var e=n.left;return n.left<t.boundaries.left&&(e=Math.max(n.left,t.boundaries.left)),{left:e}},right:function(){var e=n.left;return n.right>t.boundaries.right&&(e=Math.min(n.left,t.boundaries.right-n.width)),{left:e}},top:function(){var e=n.top;return n.top<t.boundaries.top&&(e=Math.max(n.top,t.boundaries.top)),{top:e}},bottom:function(){var e=n.top;return n.bottom>t.boundaries.bottom&&(e=Math.min(n.top,t.boundaries.bottom-n.height)),{top:e}}};return e.forEach((function(e){t.offsets.popper=Object.assign(n,r[e]())})),t},n.prototype.modifiers.keepTogether=function(t){var e=o(t.offsets.popper),n=t.offsets.reference,r=Math.floor;return e.right<r(n.left)&&(t.offsets.popper.left=r(n.left)-e.width),e.left>r(n.right)&&(t.offsets.popper.left=r(n.right)),e.bottom<r(n.top)&&(t.offsets.popper.top=r(n.top)-e.height),e.top>r(n.bottom)&&(t.offsets.popper.top=r(n.bottom)),t},n.prototype.modifiers.flip=function(t){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),t;if(t.flipped&&t.placement===t._originalPlacement)return t;var e=t.placement.split("-")[0],n=i(e),r=t.placement.split("-")[1]||"",a=[];return(a="flip"===this._options.flipBehavior?[e,n]:this._options.flipBehavior).forEach(function(s,u){if(e===s&&a.length!==u+1){e=t.placement.split("-")[0],n=i(e);var l=o(t.offsets.popper),c=-1!==["right","bottom"].indexOf(e);(c&&Math.floor(t.offsets.reference[e])>Math.floor(l[n])||!c&&Math.floor(t.offsets.reference[e])<Math.floor(l[n]))&&(t.flipped=!0,t.placement=a[u+1],r&&(t.placement+="-"+r),t.offsets.popper=this._getOffsets(this._popper,this._reference,t.placement).popper,t=this.runModifiers(t,this._options.modifiers,this._flip))}}.bind(this)),t},n.prototype.modifiers.offset=function(t){var e=this._options.offset,n=t.offsets.popper;return-1!==t.placement.indexOf("left")?n.top-=e:-1!==t.placement.indexOf("right")?n.top+=e:-1!==t.placement.indexOf("top")?n.left-=e:-1!==t.placement.indexOf("bottom")&&(n.left+=e),t},n.prototype.modifiers.arrow=function(t){var e=this._options.arrowElement,n=this._options.arrowOffset;if("string"==typeof e&&(e=this._popper.querySelector(e)),!e)return t;if(!this._popper.contains(e))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),t;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),t;var i={},a=t.placement.split("-")[0],s=o(t.offsets.popper),u=t.offsets.reference,l=-1!==["left","right"].indexOf(a),c=l?"height":"width",h=l?"top":"left",f=l?"left":"top",d=l?"bottom":"right",p=r(e)[c];u[d]-p<s[h]&&(t.offsets.popper[h]-=s[h]-(u[d]-p)),u[h]+p>s[d]&&(t.offsets.popper[h]+=u[h]+p-s[d]);var g=u[h]+(n||u[c]/2-p/2)-s[h];return g=Math.max(Math.min(s[c]-p-8,g),8),i[h]=g,i[f]="",t.offsets.arrow=i,t.arrowElement=e,t},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r){r=Object(r);for(var i=Object.keys(r),o=0,a=i.length;o<a;o++){var s=i[o],u=Object.getOwnPropertyDescriptor(r,s);void 0!==u&&u.enumerable&&(e[s]=r[s])}}}return e}}),n})?r.call(e,n,e,t):r)||(t.exports=i)},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=86)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},86:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"el-button",class:[t.type?"el-button--"+t.type:"",t.buttonSize?"el-button--"+t.buttonSize:"",{"is-disabled":t.buttonDisabled,"is-loading":t.loading,"is-plain":t.plain,"is-round":t.round,"is-circle":t.circle}],attrs:{disabled:t.buttonDisabled||t.loading,autofocus:t.autofocus,type:t.nativeType},on:{click:t.handleClick}},[t.loading?n("i",{staticClass:"el-icon-loading"}):t._e(),t.icon&&!t.loading?n("i",{class:t.icon}):t._e(),t.$slots.default?n("span",[t._t("default")],2):t._e()])};r._withStripped=!0;var i={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(t){this.$emit("click",t)}}},o=n(0),a=Object(o.a)(i,r,[],!1,null,null,null);a.options.__file="packages/button/src/button.vue";var s=a.exports;s.install=function(t){t.component(s.name,s)};e.default=s}})},function(t,e,n){"use strict";n.r(e),function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,u=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,i=0;function a(){n&&(n=!1,t()),r&&u()}function s(){o(a)}function u(){var t=Date.now();if(n){if(t-i<2)return;r=!0}else n=!0,r=!1,setTimeout(s,e);i=t}return u}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;a.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},c=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},h=m(0,0,0,0);function f(t){return parseFloat(t)||0}function d(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+f(t["border-"+n+"-width"])}),0)}function p(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return h;var r=c(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=t["padding-"+i];e[i]=f(o)}return e}(r),o=i.left+i.right,a=i.top+i.bottom,s=f(r.width),u=f(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=d(r,"left","right")+o),Math.round(u+a)!==n&&(u-=d(r,"top","bottom")+a)),!function(t){return t===c(t).document.documentElement}(t)){var l=Math.round(s+o)-e,p=Math.round(u+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(p)&&(u-=p)}return m(i.left,i.top,s,u)}var g="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof c(t).SVGGraphicsElement}:function(t){return t instanceof c(t).SVGElement&&"function"==typeof t.getBBox};function v(t){return r?g(t)?function(t){var e=t.getBBox();return m(0,0,e.width,e.height)}(t):p(t):h}function m(t,e,n,r){return{x:t,y:e,width:n,height:r}}var y=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=m(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=v(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),b=function(t,e){var n,r,i,o,a,s,u,c=(r=(n=e).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(s.prototype),l(u,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),u);l(this,{target:t,contentRect:c})},_=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof c(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new y(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof c(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new b(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),x="undefined"!=typeof WeakMap?new WeakMap:new n,w=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new _(e,n,this);x.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){w.prototype[t]=function(){var e;return(e=x.get(this))[t].apply(e,arguments)}}));var O=void 0!==i.ResizeObserver?i.ResizeObserver:w;e.default=O}.call(this,n(309))},function(t,e,n){"use strict";e.__esModule=!0;var r=n(349);var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.beforeEnter=function(t){(0,r.addClass)(t,"collapse-transition"),t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height="0",t.style.paddingTop=0,t.style.paddingBottom=0},t.prototype.enter=function(t){t.dataset.oldOverflow=t.style.overflow,0!==t.scrollHeight?(t.style.height=t.scrollHeight+"px",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom):(t.style.height="",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom),t.style.overflow="hidden"},t.prototype.afterEnter=function(t){(0,r.removeClass)(t,"collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow},t.prototype.beforeLeave=function(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.height=t.scrollHeight+"px",t.style.overflow="hidden"},t.prototype.leave=function(t){0!==t.scrollHeight&&((0,r.addClass)(t,"collapse-transition"),t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0)},t.prototype.afterLeave=function(t){(0,r.removeClass)(t,"collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},t}();e.default={name:"ElCollapseTransition",functional:!0,render:function(t,e){var n=e.children;return t("transition",{on:new i},n)}}},function(t,e,n){"use strict";e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.isVNode=function(t){return null!==t&&"object"===(void 0===t?"undefined":r(t))&&(0,i.hasOwn)(t,"componentOptions")};var i=n(310)},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=140)}({140:function(t,e,n){"use strict";n.r(e);var r=n(5),i=n.n(r),o=n(18),a=n.n(o),s=n(2),u=n(3),l=n(7),c=n.n(l),h={name:"ElTooltip",mixins:[i.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(u.generateId)(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var t=this;this.$isServer||(this.popperVM=new c.a({data:{node:""},render:function(t){return this.node}}).$mount(),this.debounceClose=a()(200,(function(){return t.handleClosePopper()})))},render:function(t){var e=this;this.popperVM&&(this.popperVM.node=t("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[t("div",{on:{mouseleave:function(){e.setExpectedState(!1),e.debounceClose()},mouseenter:function(){e.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var t=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(s.on)(this.referenceElm,"mouseenter",this.show),Object(s.on)(this.referenceElm,"mouseleave",this.hide),Object(s.on)(this.referenceElm,"focus",(function(){if(t.$slots.default&&t.$slots.default.length){var e=t.$slots.default[0].componentInstance;e&&e.focus?e.focus():t.handleFocus()}else t.handleFocus()})),Object(s.on)(this.referenceElm,"blur",this.handleBlur),Object(s.on)(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){t.value&&t.updatePopper()}))},watch:{focusing:function(t){t?Object(s.addClass)(this.referenceElm,"focusing"):Object(s.removeClass)(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(t){return t?"el-tooltip "+t.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var t=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){t.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(t){!1===t&&clearTimeout(this.timeoutPending),this.expectedState=t},getFirstElement:function(){var t=this.$slots.default;if(!Array.isArray(t))return null;for(var e=null,n=0;n<t.length;n++)t[n]&&t[n].tag&&(e=t[n]);return e}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var t=this.referenceElm;1===t.nodeType&&(Object(s.off)(t,"mouseenter",this.show),Object(s.off)(t,"mouseleave",this.hide),Object(s.off)(t,"focus",this.handleFocus),Object(s.off)(t,"blur",this.handleBlur),Object(s.off)(t,"click",this.removeFocusing))},install:function(t){t.component(h.name,h)}};e.default=h},18:function(t,e){t.exports=n(615)},2:function(t,e){t.exports=n(349)},3:function(t,e){t.exports=n(310)},5:function(t,e){t.exports=n(612)},7:function(t,e){t.exports=n(216)}})},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=87)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},87:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-button-group"},[this._t("default")],2)};r._withStripped=!0;var i={name:"ElButtonGroup"},o=n(0),a=Object(o.a)(i,r,[],!1,null,null,null);a.options.__file="packages/button/src/button-group.vue";var s=a.exports;s.install=function(t){t.component(s.name,s)};e.default=s}})},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=126)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},126:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[this._t("default")],2)};r._withStripped=!0;var i=n(4),o={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[n.n(i).a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",[t])}}},a=n(0),s=Object(a.a)(o,r,[],!1,null,null,null);s.options.__file="packages/checkbox/src/checkbox-group.vue";var u=s.exports;u.install=function(t){t.component(u.name,u)};e.default=u},4:function(t,e){t.exports=n(409)}})},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t||!e)throw new Error("instance & callback is required");var i=!1,o=function(){i||(i=!0,e&&e.apply(null,arguments))};r?t.$once("after-leave",o):t.$on("after-leave",o),setTimeout((function(){o()}),n+100)}},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=90)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},90:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-progress",class:["el-progress--"+t.type,t.status?"is-"+t.status:"",{"el-progress--without-text":!t.showText,"el-progress--text-inside":t.textInside}],attrs:{role:"progressbar","aria-valuenow":t.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===t.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:t.strokeWidth+"px"}},[n("div",{staticClass:"el-progress-bar__inner",style:t.barStyle},[t.showText&&t.textInside?n("div",{staticClass:"el-progress-bar__innerText"},[t._v(t._s(t.content))]):t._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:t.width+"px",width:t.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:t.trailPathStyle,attrs:{d:t.trackPath,stroke:"#e5e9f2","stroke-width":t.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:t.circlePathStyle,attrs:{d:t.trackPath,stroke:t.stroke,fill:"none","stroke-linecap":t.strokeLinecap,"stroke-width":t.percentage?t.relativeStrokeWidth:0}})])]),t.showText&&!t.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:t.progressTextSize+"px"}},[t.status?n("i",{class:t.iconClass}):[t._v(t._s(t.content))]],2):t._e()])};r._withStripped=!0;var i={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(t){return["line","circle","dashboard"].indexOf(t)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(t){return t>=0&&t<=100}},status:{type:String,validator:function(t){return["success","exception","warning"].indexOf(t)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var t={};return t.width=this.percentage+"%",t.backgroundColor=this.getCurrentColor(this.percentage),t},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var t=this.radius,e="dashboard"===this.type;return"\n M 50 50\n m 0 "+(e?"":"-")+t+"\n a "+t+" "+t+" 0 1 1 0 "+(e?"-":"")+2*t+"\n a "+t+" "+t+" 0 1 1 0 "+(e?"":"-")+2*t+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){return-1*this.perimeter*(1-this.rate)/2+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var t=void 0;if(this.color)t=this.getCurrentColor(this.percentage);else switch(this.status){case"success":t="#13ce66";break;case"exception":t="#ff4949";break;case"warning":t="#e6a23c";break;default:t="#20a0ff"}return t},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"==typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(t){return"function"==typeof this.color?this.color(t):"string"==typeof this.color?this.color:this.getLevelColor(t)},getLevelColor:function(t){for(var e=this.getColorArray().sort((function(t,e){return t.percentage-e.percentage})),n=0;n<e.length;n++)if(e[n].percentage>t)return e[n].color;return e[e.length-1].color},getColorArray:function(){var t=this.color,e=100/t.length;return t.map((function(t,n){return"string"==typeof t?{color:t,percentage:(n+1)*e}:t}))}}},o=n(0),a=Object(o.a)(i,r,[],!1,null,null,null);a.options.__file="packages/progress/src/progress.vue";var s=a.exports;s.install=function(t){t.component(s.name,s)};e.default=s}})},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=61)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},10:function(t,e){t.exports=n(822)},12:function(t,e){t.exports=n(963)},15:function(t,e){t.exports=n(825)},16:function(t,e){t.exports=n(823)},18:function(t,e){t.exports=n(615)},21:function(t,e){t.exports=n(614)},22:function(t,e){t.exports=n(826)},3:function(t,e){t.exports=n(310)},31:function(t,e){t.exports=n(827)},33:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:t.itemSelected,"is-disabled":t.disabled||t.groupDisabled||t.limitReached,hover:t.hover},on:{mouseenter:t.hoverItem,click:function(e){return e.stopPropagation(),t.selectOptionClick(e)}}},[t._t("default",[n("span",[t._v(t._s(t.currentLabel))])])],2)};r._withStripped=!0;var i=n(4),o=n.n(i),a=n(3),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u={mixins:[o.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(t,e){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===(void 0===t?"undefined":s(t))&&"object"===(void 0===e?"undefined":s(e))&&t[i]===e[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(t,e){if(this.isObject){var n=this.select.valueKey;return Object(a.getValueByPath)(t,n)===Object(a.getValueByPath)(e,n)}return t===e},contains:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if(this.isObject){var n=this.select.valueKey;return t&&t.some((function(t){return Object(a.getValueByPath)(t,n)===Object(a.getValueByPath)(e,n)}))}return t&&t.indexOf(e)>-1},handleGroupDisabled:function(t){this.groupDisabled=t},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(t){this.visible=new RegExp(Object(a.escapeRegexpString)(t),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var t=this.select,e=t.selected,n=t.multiple?e:[e],r=this.select.cachedOptions.indexOf(this),i=n.indexOf(this);r>-1&&i<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},l=n(0),c=Object(l.a)(u,r,[],!1,null,null,null);c.options.__file="packages/select/src/option.vue";e.a=c.exports},37:function(t,e){t.exports=n(967)},4:function(t,e){t.exports=n(409)},5:function(t,e){t.exports=n(612)},6:function(t,e){t.exports=n(820)},61:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[t.selectSize?"el-select--"+t.selectSize:""],on:{click:function(e){return e.stopPropagation(),t.toggleMenu(e)}}},[t.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":t.inputWidth-32+"px",width:"100%"}},[t.collapseTags&&t.selected.length?n("span",[n("el-tag",{attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:t.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(e){t.deleteTag(e,t.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[t._v(t._s(t.selected[0].currentLabel))])]),t.selected.length>1?n("el-tag",{attrs:{closable:!1,size:t.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[t._v("+ "+t._s(t.selected.length-1))])]):t._e()],1):t._e(),t.collapseTags?t._e():n("transition-group",{on:{"after-leave":t.resetInputHeight}},t._l(t.selected,(function(e){return n("el-tag",{key:t.getValueKey(e),attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:e.hitState,type:"info","disable-transitions":""},on:{close:function(n){t.deleteTag(n,e)}}},[n("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.currentLabel))])])})),1),t.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[t.selectSize?"is-"+t.selectSize:""],style:{"flex-grow":"1",width:t.inputLength/(t.inputWidth-32)+"%","max-width":t.inputWidth-42+"px"},attrs:{type:"text",disabled:t.selectDisabled,autocomplete:t.autoComplete||t.autocomplete},domProps:{value:t.query},on:{focus:t.handleFocus,blur:function(e){t.softFocus=!1},keyup:t.managePlaceholder,keydown:[t.resetInputState,function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.preventDefault(),t.handleNavigate("next")},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.preventDefault(),t.handleNavigate("prev")},function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.selectOption(e))},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){return!("button"in e)&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.deletePrevTag(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition,input:[function(e){e.target.composing||(t.query=e.target.value)},t.debouncedQueryChange]}}):t._e()],1):t._e(),n("el-input",{ref:"reference",class:{"is-focus":t.visible},attrs:{type:"text",placeholder:t.currentPlaceholder,name:t.name,id:t.id,autocomplete:t.autoComplete||t.autocomplete,size:t.selectSize,disabled:t.selectDisabled,readonly:t.readonly,"validate-event":!1,tabindex:t.multiple&&t.filterable?"-1":null},on:{focus:t.handleFocus,blur:t.handleBlur,input:t.debouncedOnInputChange,compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition},nativeOn:{keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.stopPropagation(),e.preventDefault(),t.handleNavigate("next")},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.stopPropagation(),e.preventDefault(),t.handleNavigate("prev")},function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.selectOption(e))},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],mouseenter:function(e){t.inputHovering=!0},mouseleave:function(e){t.inputHovering=!1}},model:{value:t.selectedLabel,callback:function(e){t.selectedLabel=e},expression:"selectedLabel"}},[t.$slots.prefix?n("template",{slot:"prefix"},[t._t("prefix")],2):t._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!t.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+t.iconClass]}),t.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:t.handleClearClick}}):t._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":t.handleMenuEnter,"after-leave":t.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:t.visible&&!1!==t.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":t.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:t.options.length>0&&!t.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!t.allowCreate&&t.query&&0===t.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[t.showNewOption?n("el-option",{attrs:{value:t.query,created:""}}):t._e(),t._t("default")],2),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&0===t.options.length)?[t.$slots.empty?t._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[t._v("\n "+t._s(t.emptyText)+"\n ")])]:t._e()],2)],1)],1)};r._withStripped=!0;var i=n(4),o=n.n(i),a=n(22),s=n.n(a),u=n(6),l=n.n(u),c=n(10),h=n.n(c),f=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":this.$parent.multiple},this.popperClass],style:{minWidth:this.minWidth}},[this._t("default")],2)};f._withStripped=!0;var d=n(5),p={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[n.n(d).a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var t=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){t.$parent.visible&&t.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},g=n(0),v=Object(g.a)(p,f,[],!1,null,null,null);v.options.__file="packages/select/src/select-dropdown.vue";var m=v.exports,y=n(33),b=n(37),_=n.n(b),x=n(15),w=n.n(x),O=n(18),S=n.n(O),C=n(12),E=n.n(C),T=n(16),A=n(31),M=n.n(A),I=n(3),j=n(21),k={mixins:[o.a,l.a,s()("reference"),{data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(t){return t.visible})).every((function(t){return t.disabled}))}},watch:{hoverIndex:function(t){var e=this;"number"==typeof t&&t>-1&&(this.hoverOption=this.options[t]||{}),this.options.forEach((function(t){t.hover=e.hoverOption===t}))}},methods:{navigateOptions:function(t){var e=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===t?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===t&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(t),this.$nextTick((function(){return e.scrollToOption(e.hoverOption)}))}}else this.visible=!0}}}],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(I.isIE)()&&!Object(I.isEdge)()&&!this.visible},showClose:function(){var t=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value;return this.clearable&&!this.selectDisabled&&this.inputHovering&&t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var t=this,e=this.options.filter((function(t){return!t.created})).some((function(e){return e.currentLabel===t.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!e},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return void 0!==this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:h.a,ElSelectMenu:m,ElOption:y.a,ElTag:_.a,ElScrollbar:w.a},directives:{Clickoutside:E.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var t=this;this.$nextTick((function(){t.resetInputHeight()}))},propPlaceholder:function(t){this.cachedPlaceHolder=this.currentPlaceholder=t},value:function(t,e){this.multiple&&(this.resetInputHeight(),t&&t.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(I.valueEquals)(t,e)||this.dispatch("ElFormItem","el.form.change",t)},visible:function(t){var e=this;t?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){e.$refs.input&&""===e.$refs.input.value&&0===e.selected.length&&(e.currentPlaceholder=e.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",t)},options:function(){var t=this;if(!this.$isServer){this.$nextTick((function(){t.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var e=this.$el.querySelectorAll("input");-1===[].indexOf.call(e,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleNavigate:function(t){this.isOnComposition||this.navigateOptions(t)},handleComposition:function(t){var e=this,n=t.target.value;if("compositionend"===t.type)this.isOnComposition=!1,this.$nextTick((function(t){return e.handleQueryChange(n)}));else{var r=n[n.length-1]||"";this.isOnComposition=!Object(j.isKorean)(r)}},handleQueryChange:function(t){var e=this;this.previousQuery===t||this.isOnComposition||(null!==this.previousQuery||"function"!=typeof this.filterMethod&&"function"!=typeof this.remoteMethod?(this.previousQuery=t,this.$nextTick((function(){e.visible&&e.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var t=15*e.$refs.input.value.length+20;e.inputLength=e.collapseTags?Math.min(50,t):t,e.managePlaceholder(),e.resetInputHeight()})),this.remote&&"function"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(t)):"function"==typeof this.filterMethod?(this.filterMethod(t),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",t),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=t)},scrollToOption:function(t){var e=Array.isArray(t)&&t[0]?t[0].$el:t.$el;if(this.$refs.popper&&e){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");M()(n,e)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var t=this;this.$nextTick((function(){return t.scrollToOption(t.selected)}))},emitChange:function(t){Object(I.valueEquals)(this.value,t)||this.$emit("change",t)},getOption:function(t){for(var e=void 0,n="[object object]"===Object.prototype.toString.call(t).toLowerCase(),r="[object null]"===Object.prototype.toString.call(t).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(t).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o];if(n?Object(I.getValueByPath)(a.value,this.valueKey)===Object(I.getValueByPath)(t,this.valueKey):a.value===t){e=a;break}}if(e)return e;var s={value:t,currentLabel:n||r||i?"":String(t)};return this.multiple&&(s.hitState=!1),s},setSelected:function(){var t=this;if(!this.multiple){var e=this.getOption(this.value);return e.created?(this.createdLabel=e.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=e.currentLabel,this.selected=e,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(e){n.push(t.getOption(e))})),this.selected=n,this.$nextTick((function(){t.resetInputHeight()}))},handleFocus:function(t){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.filterable&&!this.visible&&(this.menuVisibleOnFocus=!0),this.visible=!0),this.$emit("focus",t))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(t){var e=this;setTimeout((function(){e.isSilentBlur?e.isSilentBlur=!1:e.$emit("blur",t)}),50),this.softFocus=!1},handleClearClick:function(t){this.deleteSelected(t)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(t){if(Array.isArray(this.selected)){var e=this.selected[this.selected.length-1];if(e)return!0===t||!1===t?(e.hitState=t,t):(e.hitState=!e.hitState,e.hitState)}},deletePrevTag:function(t){if(t.target.value.length<=0&&!this.toggleLastOptionHitState()){var e=this.value.slice();e.pop(),this.$emit("input",e),this.emitChange(e)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(t){8!==t.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var t=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(t.$refs.reference){var e=t.$refs.reference.$el.childNodes,n=[].filter.call(e,(function(t){return"INPUT"===t.tagName}))[0],r=t.$refs.tags,i=r?Math.round(r.getBoundingClientRect().height):0,o=t.initialInputHeight||40;n.style.height=0===t.selected.length?o+"px":Math.max(r?i+(i>o?6:0):0,o)+"px",t.visible&&!1!==t.emptyText&&t.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var t=this;setTimeout((function(){t.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map((function(e){return t.options.indexOf(e)}))):t.hoverIndex=-1:t.hoverIndex=t.options.indexOf(t.selected)}),300)},handleOptionSelect:function(t,e){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,t.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(t.value),this.$emit("input",r),this.emitChange(r),t.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",t.value),this.emitChange(t.value),this.visible=!1;this.isSilentBlur=e,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(t)}))},setSoftFocus:function(){this.softFocus=!0;var t=this.$refs.input||this.$refs.reference;t&&t.focus()},getValueIndex:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],n="[object object]"===Object.prototype.toString.call(e).toLowerCase();if(n){var r=this.valueKey,i=-1;return t.some((function(t,n){return Object(I.getValueByPath)(t,r)===Object(I.getValueByPath)(e,r)&&(i=n,!0)})),i}return t.indexOf(e)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(t){t.stopPropagation();var e=this.multiple?[]:"";this.$emit("input",e),this.emitChange(e),this.visible=!1,this.$emit("clear")},deleteTag:function(t,e){var n=this.selected.indexOf(e);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",e.value)}t.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(t){t>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(t,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var t=!1,e=this.options.length-1;e>=0;e--)if(this.options[e].created){t=!0,this.hoverIndex=e;break}if(!t)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(t){return"[object object]"!==Object.prototype.toString.call(t.value).toLowerCase()?t.value:Object(I.getValueByPath)(t.value,this.valueKey)}},created:function(){var t=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=S()(this.debounce,(function(){t.onInputChange()})),this.debouncedQueryChange=S()(this.debounce,(function(e){t.handleQueryChange(e.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var t=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(T.addResizeListener)(this.$el,this.handleResize);var e=this.$refs.reference;if(e&&e.$el){var n=e.$el.querySelector("input");this.initialInputHeight=n.getBoundingClientRect().height||{medium:36,small:32,mini:28}[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){e&&e.$el&&(t.inputWidth=e.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(T.removeResizeListener)(this.$el,this.handleResize)}},P=Object(g.a)(k,r,[],!1,null,null,null);P.options.__file="packages/select/src/select.vue";var L=P.exports;L.install=function(t){t.component(L.name,L)};e.default=L}})},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=53)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},3:function(t,e){t.exports=n(310)},33:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:t.itemSelected,"is-disabled":t.disabled||t.groupDisabled||t.limitReached,hover:t.hover},on:{mouseenter:t.hoverItem,click:function(e){return e.stopPropagation(),t.selectOptionClick(e)}}},[t._t("default",[n("span",[t._v(t._s(t.currentLabel))])])],2)};r._withStripped=!0;var i=n(4),o=n.n(i),a=n(3),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u={mixins:[o.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(t,e){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===(void 0===t?"undefined":s(t))&&"object"===(void 0===e?"undefined":s(e))&&t[i]===e[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(t,e){if(this.isObject){var n=this.select.valueKey;return Object(a.getValueByPath)(t,n)===Object(a.getValueByPath)(e,n)}return t===e},contains:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if(this.isObject){var n=this.select.valueKey;return t&&t.some((function(t){return Object(a.getValueByPath)(t,n)===Object(a.getValueByPath)(e,n)}))}return t&&t.indexOf(e)>-1},handleGroupDisabled:function(t){this.groupDisabled=t},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(t){this.visible=new RegExp(Object(a.escapeRegexpString)(t),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var t=this.select,e=t.selected,n=t.multiple?e:[e],r=this.select.cachedOptions.indexOf(this),i=n.indexOf(this);r>-1&&i<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},l=n(0),c=Object(l.a)(u,r,[],!1,null,null,null);c.options.__file="packages/select/src/option.vue";e.a=c.exports},4:function(t,e){t.exports=n(409)},53:function(t,e,n){"use strict";n.r(e);var r=n(33);r.a.install=function(t){t.component(r.a.name,r.a)},e.default=r.a}})},function(t,e,n){t.exports=n(1920)},function(t,e,n){"use strict";var r=n(1921),i=n(1922);function o(t){var e=0,n=0,r=0,i=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=10*e,i=10*n,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||i)&&t.deltaMode&&(1==t.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!e&&(e=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:i}}o.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},t.exports=o},function(t,e){var n,r,i,o,a,s,u,l,c,h,f,d,p,g,v,m=!1;function y(){if(!m){m=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),y=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(d=/\b(iPhone|iP[ao]d)/.exec(t),p=/\b(iP[ao]d)/.exec(t),h=/Android/i.exec(t),g=/FBAN\/\w+;/i.exec(t),v=/Mobile/i.exec(t),f=!!/Win64/.exec(t),e){(n=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(t);s=b?parseFloat(b[1])+4:n,r=e[2]?parseFloat(e[2]):NaN,i=e[3]?parseFloat(e[3]):NaN,(o=e[4]?parseFloat(e[4]):NaN)?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),a=e&&e[1]?parseFloat(e[1]):NaN):a=NaN}else n=r=i=a=o=NaN;if(y){if(y[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);u=!_||parseFloat(_[1].replace("_","."))}else u=!1;l=!!y[2],c=!!y[3]}else u=l=c=!1}}var b={ie:function(){return y()||n},ieCompatibilityMode:function(){return y()||s>n},ie64:function(){return b.ie()&&f},firefox:function(){return y()||r},opera:function(){return y()||i},webkit:function(){return y()||o},safari:function(){return b.webkit()},chrome:function(){return y()||a},windows:function(){return y()||l},osx:function(){return y()||u},linux:function(){return y()||c},iphone:function(){return y()||d},mobile:function(){return y()||d||p||h||v},nativeApp:function(){return y()||g},android:function(){return y()||h},ipad:function(){return y()||p}};t.exports=b},function(t,e,n){"use strict";var r,i=n(1923);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/,t.exports=function(t,e){if(!i.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===t&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}},function(t,e,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=i},function(t,e,n){"use strict";e.__esModule=!0;var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(828),a=(r=o)&&r.__esModule?r:{default:r};var s,u=u||{};u.Dialog=function(t,e,n){var r=this;if(this.dialogNode=t,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"==typeof e?this.focusAfterClosed=document.getElementById(e):"object"===(void 0===e?"undefined":i(e))?this.focusAfterClosed=e:this.focusAfterClosed=null,"string"==typeof n?this.focusFirst=document.getElementById(n):"object"===(void 0===n?"undefined":i(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():a.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,s=function(t){r.trapFocus(t)},this.addListeners()},u.Dialog.prototype.addListeners=function(){document.addEventListener("focus",s,!0)},u.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",s,!0)},u.Dialog.prototype.closeDialog=function(){var t=this;this.removeListeners(),this.focusAfterClosed&&setTimeout((function(){t.focusAfterClosed.focus()}))},u.Dialog.prototype.trapFocus=function(t){a.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(t.target)?this.lastFocus=t.target:(a.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&a.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},e.default=u.Dialog},function(t,e,n){"use strict";n.r(e);var r=n(438),i=n.n(r),o=n(274),a=n.n(o),s=n(55),u=n(605),l=n(530);function c(t){this.rules=null,this._messages=l.messages,this.define(t)}c.prototype={messages:function(t){return t&&(this._messages=Object(s.deepMerge)(Object(l.newMessages)(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==(void 0===t?"undefined":a()(t))||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var e=void 0,n=void 0;for(e in t)t.hasOwnProperty(e)&&(n=t[e],this.rules[e]=Array.isArray(n)?n:[n])},validate:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],o=t,u=n,h=r;if("function"==typeof u&&(h=u,u={}),this.rules&&0!==Object.keys(this.rules).length){if(u.messages){var f=this.messages();f===l.messages&&(f=Object(l.newMessages)()),Object(s.deepMerge)(f,u.messages),u.messages=f}else u.messages=this.messages();var d=void 0,p=void 0,g={},v=u.keys||Object.keys(this.rules);v.forEach((function(n){d=e.rules[n],p=o[n],d.forEach((function(r){var a=r;"function"==typeof a.transform&&(o===t&&(o=i()({},o)),p=o[n]=a.transform(p)),(a="function"==typeof a?{validator:a}:i()({},a)).validator=e.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=e.getType(a),a.validator&&(g[n]=g[n]||[],g[n].push({rule:a,value:p,source:o,field:n}))}))}));var m={};Object(s.asyncMap)(g,u,(function(t,e){var n=t.rule,r=!("object"!==n.type&&"array"!==n.type||"object"!==a()(n.fields)&&"object"!==a()(n.defaultField));function o(t,e){return i()({},e,{fullField:n.fullField+"."+t})}function l(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],l=a;if(Array.isArray(l)||(l=[l]),l.length&&Object(s.warning)("async-validator:",l),l.length&&n.message&&(l=[].concat(n.message)),l=l.map(Object(s.complementError)(n)),u.first&&l.length)return m[n.field]=1,e(l);if(r){if(n.required&&!t.value)return l=n.message?[].concat(n.message).map(Object(s.complementError)(n)):u.error?[u.error(n,Object(s.format)(u.messages.required,n.field))]:[],e(l);var h={};if(n.defaultField)for(var f in t.value)t.value.hasOwnProperty(f)&&(h[f]=n.defaultField);for(var d in h=i()({},h,t.rule.fields))if(h.hasOwnProperty(d)){var p=Array.isArray(h[d])?h[d]:[h[d]];h[d]=p.map(o.bind(null,d))}var g=new c(h);g.messages(u.messages),t.rule.options&&(t.rule.options.messages=u.messages,t.rule.options.error=u.error),g.validate(t.value,t.rule.options||u,(function(t){e(t&&t.length?l.concat(t):t)}))}else e(l)}r=r&&(n.required||!n.required&&t.value),n.field=t.field;var h=n.validator(n,t.value,l,t.source,u);h&&h.then&&h.then((function(){return l()}),(function(t){return l(t)}))}),(function(t){y(t)}))}else h&&h();function y(t){var e,n=void 0,r=void 0,i=[],o={};for(n=0;n<t.length;n++)e=t[n],Array.isArray(e)?i=i.concat.apply(i,e):i.push(e);if(i.length)for(n=0;n<i.length;n++)o[r=i[n].field]=o[r]||[],o[r].push(i[n]);else i=null,o=null;h(i,o)}},getType:function(t){if(void 0===t.type&&t.pattern instanceof RegExp&&(t.type="pattern"),"function"!=typeof t.validator&&t.type&&!u.default.hasOwnProperty(t.type))throw new Error(Object(s.format)("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if("function"==typeof t.validator)return t.validator;var e=Object.keys(t),n=e.indexOf("message");return-1!==n&&e.splice(n,1),1===e.length&&"required"===e[0]?u.default.required:u.default[this.getType(t)]||!1}},c.register=function(t,e){if("function"!=typeof e)throw new Error("Cannot register a validator by type, validator is not a function");u.default[t]=e},c.messages=l.messages,e.default=c},function(t,e,n){t.exports={default:n(1927),__esModule:!0}},function(t,e,n){n(1928),t.exports=n(538).Object.assign},function(t,e,n){var r=n(829);r(r.S+r.F,"Object",{assign:n(1931)})},function(t,e,n){var r=n(1930);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(410),i=n(618),o=n(836),a=n(621),s=n(837),u=n(971),l=Object.assign;t.exports=!l||n(540)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=r}))?function(t,e){for(var n=s(t),l=arguments.length,c=1,h=o.f,f=a.f;l>c;)for(var d,p=u(arguments[c++]),g=h?i(p).concat(h(p)):i(p),v=g.length,m=0;v>m;)d=g[m++],r&&!f.call(p,d)||(n[d]=p[d]);return n}:l},function(t,e,n){var r=n(450),i=n(1933),o=n(1934);t.exports=function(t){return function(e,n,a){var s,u=r(e),l=i(u.length),c=o(a,l);if(t&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var r=n(832),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(832),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},function(t,e,n){t.exports={default:n(1936),__esModule:!0}},function(t,e,n){n(1937),n(1943),t.exports=n(840).f("iterator")},function(t,e,n){"use strict";var r=n(1938)(!0);n(973)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(832),i=n(831);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(975),i=n(617),o=n(839),a={};n(448)(a,n(451)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(449),i=n(616),o=n(618);t.exports=n(410)?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e,n){var r=n(373).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(411),i=n(837),o=n(833)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){n(1944);for(var r=n(373),i=n(448),o=n(838),a=n(451)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var l=s[u],c=r[l],h=c&&c.prototype;h&&!h[a]&&i(h,a,l),o[l]=o.Array}},function(t,e,n){"use strict";var r=n(1945),i=n(1946),o=n(838),a=n(450);t.exports=n(973)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(1948),__esModule:!0}},function(t,e,n){n(1949),n(1955),n(1956),n(1957),t.exports=n(538).Symbol},function(t,e,n){"use strict";var r=n(373),i=n(411),o=n(410),a=n(829),s=n(974),u=n(1950).KEY,l=n(540),c=n(834),h=n(839),f=n(620),d=n(451),p=n(840),g=n(841),v=n(1951),m=n(1952),y=n(616),b=n(539),_=n(837),x=n(450),w=n(830),O=n(617),S=n(975),C=n(1953),E=n(1954),T=n(836),A=n(449),M=n(618),I=E.f,j=A.f,k=C.f,P=r.Symbol,L=r.JSON,R=L&&L.stringify,D=d("_hidden"),N=d("toPrimitive"),B={}.propertyIsEnumerable,F=c("symbol-registry"),z=c("symbols"),V=c("op-symbols"),U=Object.prototype,G="function"==typeof P&&!!T.f,H=r.QObject,W=!H||!H.prototype||!H.prototype.findChild,Y=o&&l((function(){return 7!=S(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=I(U,e);r&&delete U[e],j(t,e,n),r&&t!==U&&j(U,e,r)}:j,X=function(t){var e=z[t]=S(P.prototype);return e._k=t,e},$=G&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},q=function(t,e,n){return t===U&&q(V,e,n),y(t),e=w(e,!0),y(n),i(z,e)?(n.enumerable?(i(t,D)&&t[D][e]&&(t[D][e]=!1),n=S(n,{enumerable:O(0,!1)})):(i(t,D)||j(t,D,O(1,{})),t[D][e]=!0),Y(t,e,n)):j(t,e,n)},Z=function(t,e){y(t);for(var n,r=v(e=x(e)),i=0,o=r.length;o>i;)q(t,n=r[i++],e[n]);return t},K=function(t){var e=B.call(this,t=w(t,!0));return!(this===U&&i(z,t)&&!i(V,t))&&(!(e||!i(this,t)||!i(z,t)||i(this,D)&&this[D][t])||e)},Q=function(t,e){if(t=x(t),e=w(e,!0),t!==U||!i(z,e)||i(V,e)){var n=I(t,e);return!n||!i(z,e)||i(t,D)&&t[D][e]||(n.enumerable=!0),n}},J=function(t){for(var e,n=k(x(t)),r=[],o=0;n.length>o;)i(z,e=n[o++])||e==D||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===U,r=k(n?V:x(t)),o=[],a=0;r.length>a;)!i(z,e=r[a++])||n&&!i(U,e)||o.push(z[e]);return o};G||(s((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===U&&e.call(V,n),i(this,D)&&i(this[D],t)&&(this[D][t]=!1),Y(this,t,O(1,n))};return o&&W&&Y(U,t,{configurable:!0,set:e}),X(t)}).prototype,"toString",(function(){return this._k})),E.f=Q,A.f=q,n(976).f=C.f=J,n(621).f=K,T.f=tt,o&&!n(619)&&s(U,"propertyIsEnumerable",K,!0),p.f=function(t){return X(d(t))}),a(a.G+a.W+a.F*!G,{Symbol:P});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)d(et[nt++]);for(var rt=M(d.store),it=0;rt.length>it;)g(rt[it++]);a(a.S+a.F*!G,"Symbol",{for:function(t){return i(F,t+="")?F[t]:F[t]=P(t)},keyFor:function(t){if(!$(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!G,"Object",{create:function(t,e){return void 0===e?S(t):Z(S(t),e)},defineProperty:q,defineProperties:Z,getOwnPropertyDescriptor:Q,getOwnPropertyNames:J,getOwnPropertySymbols:tt});var ot=l((function(){T.f(1)}));a(a.S+a.F*ot,"Object",{getOwnPropertySymbols:function(t){return T.f(_(t))}}),L&&a(a.S+a.F*(!G||l((function(){var t=P();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!$(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!$(e))return e}),r[1]=e,R.apply(L,r)}}),P.prototype[N]||n(448)(P.prototype,N,P.prototype.valueOf),h(P,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},function(t,e,n){var r=n(620)("meta"),i=n(539),o=n(411),a=n(449).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(540)((function(){return u(Object.preventExtensions({}))})),c=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},h=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";c(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;c(t)}return t[r].w},onFreeze:function(t){return l&&h.NEED&&u(t)&&!o(t,r)&&c(t),t}}},function(t,e,n){var r=n(618),i=n(836),o=n(621);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),u=o.f,l=0;s.length>l;)u.call(t,a=s[l++])&&e.push(a);return e}},function(t,e,n){var r=n(972);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(450),i=n(976).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(r(t))}},function(t,e,n){var r=n(621),i=n(617),o=n(450),a=n(830),s=n(411),u=n(968),l=Object.getOwnPropertyDescriptor;e.f=n(410)?l:function(t,e){if(t=o(t),e=a(e,!0),u)try{return l(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){n(841)("asyncIterator")},function(t,e,n){n(841)("observable")},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=104)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},10:function(t,e){t.exports=n(822)},104:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["el-input-number",t.inputNumberSize?"el-input-number--"+t.inputNumberSize:"",{"is-disabled":t.inputNumberDisabled},{"is-without-controls":!t.controls},{"is-controls-right":t.controlsAtRight}],on:{dragstart:function(t){t.preventDefault()}}},[t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":t.minDisabled},attrs:{role:"button"},on:{keydown:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.decrease(e)}}},[n("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-down":"minus")})]):t._e(),t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":t.maxDisabled},attrs:{role:"button"},on:{keydown:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.increase(e)}}},[n("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-up":"plus")})]):t._e(),n("el-input",{ref:"input",attrs:{value:t.displayValue,placeholder:t.placeholder,disabled:t.inputNumberDisabled,size:t.inputNumberSize,max:t.max,min:t.min,name:t.name,label:t.label},on:{blur:t.handleBlur,focus:t.handleFocus,input:t.handleInput,change:t.handleInputChange},nativeOn:{keydown:[function(e){return!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.increase(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.decrease(e))}]}})],1)};r._withStripped=!0;var i=n(10),o=n.n(i),a=n(22),s=n.n(a),u=n(30),l={name:"ElInputNumber",mixins:[s()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:u.a},components:{ElInput:o.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(t){return t>=0&&t===parseInt(t,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(t){var e=void 0===t?t:Number(t);if(void 0!==e){if(isNaN(e))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);e=Math.round(e/this.step)*r*this.step/r}void 0!==this.precision&&(e=this.toPrecision(e,this.precision))}e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),this.currentValue=e,this.userInput=null,this.$emit("input",e)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var t=this.value,e=this.step,n=this.getPrecision,r=this.precision,i=n(e);return void 0!==r?(i>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(t),i)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var t=this.currentValue;if("number"==typeof t){if(this.stepStrictly){var e=this.getPrecision(this.step),n=Math.pow(10,e);t=Math.round(t/this.step)*n*this.step/n}void 0!==this.precision&&(t=t.toFixed(this.precision))}return t}},methods:{toPrecision:function(t,e){return void 0===e&&(e=this.numPrecision),parseFloat(Math.round(t*Math.pow(10,e))/Math.pow(10,e))},getPrecision:function(t){if(void 0===t)return 0;var e=t.toString(),n=e.indexOf("."),r=0;return-1!==n&&(r=e.length-n-1),r},_increase:function(t,e){if("number"!=typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t+n*e)/n)},_decrease:function(t,e){if("number"!=typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t-n*e)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var t=this.value||0,e=this._increase(t,this.step);this.setCurrentValue(e)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var t=this.value||0,e=this._decrease(t,this.step);this.setCurrentValue(e)}},handleBlur:function(t){this.$emit("blur",t)},handleFocus:function(t){this.$emit("focus",t)},setCurrentValue:function(t){var e=this.currentValue;"number"==typeof t&&void 0!==this.precision&&(t=this.toPrecision(t,this.precision)),t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),e!==t&&(this.userInput=null,this.$emit("input",t),this.$emit("change",t,e),this.currentValue=t)},handleInput:function(t){this.userInput=t},handleInputChange:function(t){var e=""===t?void 0:Number(t);isNaN(e)&&""!==t||this.setCurrentValue(e),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var t=this.$refs.input.$refs.input;t.setAttribute("role","spinbutton"),t.setAttribute("aria-valuemax",this.max),t.setAttribute("aria-valuemin",this.min),t.setAttribute("aria-valuenow",this.currentValue),t.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){this.$refs&&this.$refs.input&&this.$refs.input.$refs.input.setAttribute("aria-valuenow",this.currentValue)}},c=n(0),h=Object(c.a)(l,r,[],!1,null,null,null);h.options.__file="packages/input-number/src/input-number.vue";var f=h.exports;f.install=function(t){t.component(f.name,f)};e.default=f},2:function(t,e){t.exports=n(349)},22:function(t,e){t.exports=n(826)},30:function(t,e,n){"use strict";var r=n(2);e.a={bind:function(t,e,n){var i=null,o=void 0,a=function(){return n.context[e.expression].apply()},s=function(){Date.now()-o<100&&a(),clearInterval(i),i=null};Object(r.on)(t,"mousedown",(function(t){0===t.button&&(o=Date.now(),Object(r.once)(document,"mouseup",s),clearInterval(i),i=setInterval(a,100))}))}}}})},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=59)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},15:function(t,e){t.exports=n(825)},19:function(t,e){t.exports=n(965)},21:function(t,e){t.exports=n(614)},26:function(t,e){t.exports=n(966)},3:function(t,e){t.exports=n(310)},31:function(t,e){t.exports=n(827)},40:function(t,e){t.exports=n(828)},51:function(t,e){t.exports=n(977)},59:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:["el-cascader-panel",this.border&&"is-bordered"],on:{keydown:this.handleKeyDown}},this._l(this.menus,(function(t,n){return e("cascader-menu",{key:n,ref:"menu",refInFor:!0,attrs:{index:n,nodes:t}})})),1)};r._withStripped=!0;var i=n(26),o=n.n(i),a=n(15),s=n.n(a),u=n(19),l=n.n(u),c=n(51),h=n.n(c),f=n(3),d=function(t){return t.stopPropagation()},p={inject:["panel"],components:{ElCheckbox:l.a,ElRadio:h.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var t=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(e){return t.isInPath(e)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var t=this,e=this.panel,n=this.node,r=this.isDisabled,i=this.config,o=i.multiple;!i.checkStrictly&&r||n.loading||(i.lazy&&!n.loaded?e.lazyLoad(n,(function(){var e=t.isLeaf;if(e||t.handleExpand(),o){var r=!!e&&n.checked;t.handleMultiCheckChange(r)}})):e.handleExpand(n))},handleCheckChange:function(){var t=this.panel,e=this.value,n=this.node;t.handleCheckChange(e),t.handleExpand(n)},handleMultiCheckChange:function(t){this.node.doCheck(t),this.panel.calculateMultiCheckedValue()},isInPath:function(t){var e=this.node;return(t[e.level-1]||{}).uid===e.uid},renderPrefix:function(t){var e=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly;return r.multiple?this.renderCheckbox(t):i?this.renderRadio(t):e&&n?this.renderCheckIcon(t):null},renderPostfix:function(t){var e=this.node,n=this.isLeaf;return e.loading?this.renderLoadingIcon(t):n?null:this.renderExpandIcon(t)},renderCheckbox:function(t){var e=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=d),t("el-checkbox",o()([{attrs:{value:e.checked,indeterminate:e.indeterminate,disabled:r}},i]))},renderRadio:function(t){var e=this.checkedValue,n=this.value,r=this.isDisabled;return Object(f.isEqual)(n,e)&&(n=e),t("el-radio",{attrs:{value:e,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:d}},[t("span")])},renderCheckIcon:function(t){return t("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(t){return t("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(t){return t("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(t){var e=this.panel,n=this.node,r=e.renderLabelFn;return t("span",{class:"el-cascader-node__label"},[(r?r({node:n,data:n.data}):null)||n.label])}},render:function(t){var e=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,a=this.isLeaf,s=this.isDisabled,u=this.config,l=this.nodeId,c=u.expandTrigger,h=u.checkStrictly,f=u.multiple,d=!h&&s,p={on:{}};return"click"===c?p.on.click=this.handleExpand:(p.on.mouseenter=function(t){e.handleExpand(),e.$emit("expand",t)},p.on.focus=function(t){e.handleExpand(),e.$emit("expand",t)}),!a||s||h||f||(p.on.click=this.handleCheckChange),t("li",o()([{attrs:{role:"menuitem",id:l,"aria-expanded":n,tabindex:d?null:-1},class:{"el-cascader-node":!0,"is-selectable":h,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":d}},p]),[this.renderPrefix(t),this.renderContent(t),this.renderPostfix(t)])}},g=n(0),v=Object(g.a)(p,void 0,void 0,!1,null,null,null);v.options.__file="packages/cascader-panel/src/cascader-node.vue";var m=v.exports,y=n(6),b={name:"ElCascaderMenu",mixins:[n.n(y).a],inject:["panel"],components:{ElScrollbar:s.a,CascaderNode:m},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(f.generateId)()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(t){this.activeNode=t.target},handleMouseMove:function(t){var e=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(e&&r)if(e.contains(t.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect().left,o=t.clientX-i,a=this.$el,s=a.offsetWidth,u=a.offsetHeight,l=e.offsetTop,c=l+e.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+l+" L"+s+" 0 V"+l+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+c+" L"+s+" "+u+" V"+c+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var t=this.$refs.hoverZone;t&&(t.innerHTML="")},renderEmptyText:function(t){return t("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(t){var e=this.menuId,n=this.panel.isHoverMenu,r={on:{}};n&&(r.on.expand=this.handleExpand);var i=this.nodes.map((function(n,i){var a=n.hasChildren;return t("cascader-node",o()([{key:n.uid,attrs:{node:n,"node-id":e+"-"+i,"aria-haspopup":a,"aria-owns":a?e:null}},r]))}));return[].concat(i,[n?t("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(t){var e=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),t("el-scrollbar",o()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":e}},class:"el-cascader-menu"},r]),[e?this.renderEmptyText(t):this.renderNodeList(t)])}},_=Object(g.a)(b,void 0,void 0,!1,null,null,null);_.options.__file="packages/cascader-panel/src/cascader-menu.vue";var x=_.exports,w=n(21),O=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var S=0,C=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=e,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=S++,this.initState(),this.initChildren()}return t.prototype.initState=function(){var t=this.config,e=t.value,n=t.label;this.value=this.data[e],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(t){return t.value})),this.pathLabels=this.pathNodes.map((function(t){return t.label})),this.loading=!1,this.loaded=!1},t.prototype.initChildren=function(){var e=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map((function(r){return new t(r,n,e)}))},t.prototype.calculatePathNodes=function(){for(var t=[this],e=this.parent;e;)t.unshift(e),e=e.parent;return t},t.prototype.getPath=function(){return this.path},t.prototype.getValue=function(){return this.value},t.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},t.prototype.getText=function(t,e){return t?this.pathLabels.join(e):this.label},t.prototype.isSameNode=function(t){var e=this.getValueByOption();return this.config.multiple&&Array.isArray(t)?t.some((function(t){return Object(f.isEqual)(t,e)})):Object(f.isEqual)(t,e)},t.prototype.broadcast=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i="onParent"+Object(f.capitalize)(t);this.children.forEach((function(e){e&&(e.broadcast.apply(e,[t].concat(n)),e[i]&&e[i].apply(e,n))}))},t.prototype.emit=function(t){var e=this.parent,n="onChild"+Object(f.capitalize)(t);if(e){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e[n]&&e[n].apply(e,i),e.emit.apply(e,[t].concat(i))}},t.prototype.onParentCheck=function(t){this.isDisabled||this.setCheckState(t)},t.prototype.onChildCheck=function(){var t=this.children.filter((function(t){return!t.isDisabled})),e=!!t.length&&t.every((function(t){return t.checked}));this.setCheckState(e)},t.prototype.setCheckState=function(t){var e=this.children.length,n=this.children.reduce((function(t,e){return t+(e.checked?1:e.indeterminate?.5:0)}),0);this.checked=t,this.indeterminate=n!==e&&n>0},t.prototype.syncCheckState=function(t){var e=this.getValueByOption(),n=this.isSameNode(t,e);this.doCheck(n)},t.prototype.doCheck=function(t){this.checked!==t&&(this.config.checkStrictly?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check")))},O(t,[{key:"isDisabled",get:function(){var t=this.data,e=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return t[r]||!i&&e&&e.isDisabled}},{key:"isLeaf",get:function(){var t=this.data,e=this.loaded,n=this.hasChildren,r=this.children,i=this.config,o=i.lazy,a=i.leaf;if(o){var s=Object(w.isDef)(t[a])?t[a]:!!e&&!r.length;return this.hasChildren=!s,s}return!n}}]),t}();var E=function t(e,n){return e.reduce((function(e,r){return r.isLeaf?e.push(r):(!n&&e.push(r),e=e.concat(t(r.children,n))),e}),[])},T=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=n,this.initNodes(e)}return t.prototype.initNodes=function(t){var e=this;t=Object(f.coerceTruthyValueToArray)(t),this.nodes=t.map((function(t){return new C(t,e.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},t.prototype.appendNode=function(t,e){var n=new C(t,this.config,e);(e?e.children:this.nodes).push(n)},t.prototype.appendNodes=function(t,e){var n=this;(t=Object(f.coerceTruthyValueToArray)(t)).forEach((function(t){return n.appendNode(t,e)}))},t.prototype.getNodes=function(){return this.nodes},t.prototype.getFlattedNodes=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t?this.leafNodes:this.flattedNodes;return e?n:E(this.nodes,t)},t.prototype.getNodeByValue=function(t){var e=this.getFlattedNodes(!1,!this.config.lazy).filter((function(e){return Object(f.valueEquals)(e.path,t)||e.value===t}));return e&&e.length?e[0]:null},t}(),A=n(9),M=n.n(A),I=n(40),j=n.n(I),k=n(31),P=n.n(k),L=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},R=j.a.keys,D={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:f.noop,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},N=function(t){return!t.getAttribute("aria-owns")},B=function(t,e){var n=t.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]');return r[Array.prototype.indexOf.call(r,t)+e]||null}return null},F=function(t,e){if(t){var n=t.id.split("-");return Number(n[n.length-2])}},z=function(t){t&&(t.focus(),!N(t)&&t.click())},V={name:"ElCascaderPanel",components:{CascaderMenu:x},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return M()(L({},D),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{options:{handler:function(){this.initStore()},immediate:!0,deep:!0},value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},checkedValue:function(t){Object(f.isEqual)(t,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",t),this.$emit("change",t))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var t=this.config,e=this.options;t.lazy&&Object(f.isEmpty)(e)?this.lazyLoad():(this.store=new T(e,t),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var t=this.value,e=this.checkedValue;Object(f.isEqual)(t,e)||(this.activePath=[],this.checkedValue=t,this.syncMenuState())},syncMenuState:function(){var t=this.multiple,e=this.checkStrictly;this.syncActivePath(),t&&this.syncMultiCheckState(),e&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var t=this;this.getFlattedNodes(this.leafOnly).forEach((function(e){e.syncCheckState(t.checkedValue)}))},isEmptyValue:function(t){var e=this.multiple,n=this.config.emitPath;return!(!e&&!n)&&Object(f.isEmpty)(t)},syncActivePath:function(){var t=this,e=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(f.isEmpty)(r))if(this.isEmptyValue(i))this.activePath=[],this.menus=[e.getNodes()];else{var o=n?i[0]:i,a=((this.getNodeByValue(o)||{}).pathNodes||[]).slice(0,-1);this.expandNodes(a)}else{var s=r.map((function(e){return t.getNodeByValue(e.getValue())}));this.expandNodes(s)}},expandNodes:function(t){var e=this;t.forEach((function(t){return e.handleExpand(t,!0)}))},calculateCheckedNodePaths:function(){var t=this,e=this.checkedValue,n=this.multiple?Object(f.coerceTruthyValueToArray)(e):[e];this.checkedNodePaths=n.map((function(e){var n=t.getNodeByValue(e);return n?n.pathNodes:[]}))},handleKeyDown:function(t){var e=t.target;switch(t.keyCode){case R.up:var n=B(e,-1);z(n);break;case R.down:var r=B(e,1);z(r);break;case R.left:var i=this.$refs.menu[F(e)-1];if(i){var o=i.$el.querySelector('.el-cascader-node[aria-expanded="true"]');z(o)}break;case R.right:var a=this.$refs.menu[F(e)+1];if(a){var s=a.$el.querySelector('.el-cascader-node[tabindex="-1"]');z(s)}break;case R.enter:!function(t){if(t){var e=t.querySelector("input");e?e.click():N(t)&&t.click()}}(e);break;case R.esc:case R.tab:this.$emit("close");break;default:return}},handleExpand:function(t,e){var n=this.activePath,r=t.level,i=n.slice(0,r-1),o=this.menus.slice(0,r);if(t.isLeaf||(i.push(t),o.push(t.children)),this.activePath=i,this.menus=o,!e){var a=i.map((function(t){return t.getValue()})),s=n.map((function(t){return t.getValue()}));Object(f.valueEquals)(a,s)||(this.$emit("active-item-change",a),this.$emit("expand-change",a))}},handleCheckChange:function(t){this.checkedValue=t},lazyLoad:function(t,e){var n=this,r=this.config;t||(t=t||{root:!0,level:0},this.store=new T([],r),this.menus=[this.store.getNodes()]),t.loading=!0;r.lazyLoad(t,(function(r){var i=t.root?null:t;if(r&&r.length&&n.store.appendNodes(r,i),t.loading=!1,t.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter((function(t){return t[a]===o})).length>0){var u=n.store.getNodeByValue(o);u.data[s]||n.lazyLoad(u,(function(){n.handleExpand(u)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}e&&e(r)}))},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(t){return t.getValueByOption()}))},scrollIntoView:function(){this.$isServer||(this.$refs.menu||[]).forEach((function(t){var e=t.$el;if(e){var n=e.querySelector(".el-scrollbar__wrap"),r=e.querySelector(".el-cascader-node.is-active")||e.querySelector(".el-cascader-node.in-active-path");P()(n,r)}}))},getNodeByValue:function(t){return this.store.getNodeByValue(t)},getFlattedNodes:function(t){var e=!this.config.lazy;return this.store.getFlattedNodes(t,e)},getCheckedNodes:function(t){var e=this.checkedValue;return this.multiple?this.getFlattedNodes(t).filter((function(t){return t.checked})):this.isEmptyValue(e)?[]:[this.getNodeByValue(e)]},clearCheckedNodes:function(){var t=this.config,e=this.leafOnly,n=t.multiple,r=t.emitPath;n?(this.getCheckedNodes(e).filter((function(t){return!t.isDisabled})).forEach((function(t){return t.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},U=Object(g.a)(V,r,[],!1,null,null,null);U.options.__file="packages/cascader-panel/src/cascader-panel.vue";var G=U.exports;G.install=function(t){t.component(G.name,G)};e.default=G},6:function(t,e){t.exports=n(820)},9:function(t,e){t.exports=n(613)}})},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=79)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},2:function(t,e){t.exports=n(349)},3:function(t,e){t.exports=n(310)},5:function(t,e){t.exports=n(612)},7:function(t,e){t.exports=n(216)},79:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[n("transition",{attrs:{name:t.transition},on:{"after-enter":t.handleAfterEnter,"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&t.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[t.popperClass,t.content&&"el-popover--plain"],style:{width:t.width+"px"},attrs:{role:"tooltip",id:t.tooltipId,"aria-hidden":t.disabled||!t.showPopper?"true":"false"}},[t.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:t._s(t.title)}}):t._e(),t._t("default",[t._v(t._s(t.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[t._t("reference")],2)],1)};r._withStripped=!0;var i=n(5),o=n.n(i),a=n(2),s=n(3),u={name:"ElPopover",mixins:[o.a],props:{trigger:{type:String,default:"click",validator:function(t){return["click","focus","hover","manual"].indexOf(t)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(s.generateId)()}},watch:{showPopper:function(t){this.disabled||(t?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var t=this,e=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),e&&(Object(a.addClass)(e,"el-popover__reference"),e.setAttribute("aria-describedby",this.tooltipId),e.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(a.on)(e,"focusin",(function(){t.handleFocus();var n=e.__vue__;n&&"function"==typeof n.focus&&n.focus()})),Object(a.on)(n,"focusin",this.handleFocus),Object(a.on)(e,"focusout",this.handleBlur),Object(a.on)(n,"focusout",this.handleBlur)),Object(a.on)(e,"keydown",this.handleKeydown),Object(a.on)(e,"click",this.handleClick)),"click"===this.trigger?(Object(a.on)(e,"click",this.doToggle),Object(a.on)(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(a.on)(e,"mouseenter",this.handleMouseEnter),Object(a.on)(n,"mouseenter",this.handleMouseEnter),Object(a.on)(e,"mouseleave",this.handleMouseLeave),Object(a.on)(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),e.querySelector("input, textarea")?(Object(a.on)(e,"focusin",this.doShow),Object(a.on)(e,"focusout",this.doClose)):(Object(a.on)(e,"mousedown",this.doShow),Object(a.on)(e,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(a.addClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(a.removeClass)(this.referenceElm,"focusing")},handleBlur:function(){Object(a.removeClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var t=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){t.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(t){27===t.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var t=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){t.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(t){var e=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&e&&!this.$el.contains(t.target)&&!e.contains(t.target)&&n&&!n.contains(t.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var t=this.reference;Object(a.off)(t,"click",this.doToggle),Object(a.off)(t,"mouseup",this.doClose),Object(a.off)(t,"mousedown",this.doShow),Object(a.off)(t,"focusin",this.doShow),Object(a.off)(t,"focusout",this.doClose),Object(a.off)(t,"mousedown",this.doShow),Object(a.off)(t,"mouseup",this.doClose),Object(a.off)(t,"mouseleave",this.handleMouseLeave),Object(a.off)(t,"mouseenter",this.handleMouseEnter),Object(a.off)(document,"click",this.handleDocumentClick)}},l=n(0),c=Object(l.a)(u,r,[],!1,null,null,null);c.options.__file="packages/popover/src/main.vue";var h=c.exports,f=function(t,e,n){var r=e.expression?e.value:e.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=t:i.$refs.reference=t)},d={bind:function(t,e,n){f(t,e,n)},inserted:function(t,e,n){f(t,e,n)}},p=n(7);n.n(p).a.directive("popover",d),h.install=function(t){t.directive("popover",d),t.component(h.name,h)},h.directive=d;e.default=h}})},function(t,e,n){"use strict";n.r(e);var r=n(48),i=n(978);n.d(e,"version",(function(){return i.version})),n.d(e,"dependencies",(function(){return i.dependencies})),n.d(e,"PRIORITY",(function(){return i.PRIORITY})),n.d(e,"init",(function(){return i.init})),n.d(e,"connect",(function(){return i.connect})),n.d(e,"disConnect",(function(){return i.disConnect})),n.d(e,"disconnect",(function(){return i.disconnect})),n.d(e,"dispose",(function(){return i.dispose})),n.d(e,"getInstanceByDom",(function(){return i.getInstanceByDom})),n.d(e,"getInstanceById",(function(){return i.getInstanceById})),n.d(e,"registerTheme",(function(){return i.registerTheme})),n.d(e,"registerPreprocessor",(function(){return i.registerPreprocessor})),n.d(e,"registerProcessor",(function(){return i.registerProcessor})),n.d(e,"registerPostInit",(function(){return i.registerPostInit})),n.d(e,"registerPostUpdate",(function(){return i.registerPostUpdate})),n.d(e,"registerUpdateLifecycle",(function(){return i.registerUpdateLifecycle})),n.d(e,"registerAction",(function(){return i.registerAction})),n.d(e,"registerCoordinateSystem",(function(){return i.registerCoordinateSystem})),n.d(e,"getCoordinateSystemDimensions",(function(){return i.getCoordinateSystemDimensions})),n.d(e,"registerLocale",(function(){return i.registerLocale})),n.d(e,"registerLayout",(function(){return i.registerLayout})),n.d(e,"registerVisual",(function(){return i.registerVisual})),n.d(e,"registerLoading",(function(){return i.registerLoading})),n.d(e,"setCanvasCreator",(function(){return i.setCanvasCreator})),n.d(e,"registerMap",(function(){return i.registerMap})),n.d(e,"getMap",(function(){return i.getMap})),n.d(e,"registerTransform",(function(){return i.registerTransform})),n.d(e,"dataTool",(function(){return i.dataTool})),n.d(e,"zrender",(function(){return i.zrender})),n.d(e,"matrix",(function(){return i.matrix})),n.d(e,"vector",(function(){return i.vector})),n.d(e,"zrUtil",(function(){return i.zrUtil})),n.d(e,"color",(function(){return i.color})),n.d(e,"throttle",(function(){return i.throttle})),n.d(e,"helper",(function(){return i.helper})),n.d(e,"use",(function(){return i.use})),n.d(e,"setPlatformAPI",(function(){return i.setPlatformAPI})),n.d(e,"parseGeoJSON",(function(){return i.parseGeoJSON})),n.d(e,"parseGeoJson",(function(){return i.parseGeoJson})),n.d(e,"number",(function(){return i.number})),n.d(e,"time",(function(){return i.time})),n.d(e,"graphic",(function(){return i.graphic})),n.d(e,"format",(function(){return i.format})),n.d(e,"util",(function(){return i.util})),n.d(e,"env",(function(){return i.env})),n.d(e,"List",(function(){return i.List})),n.d(e,"Model",(function(){return i.Model})),n.d(e,"Axis",(function(){return i.Axis})),n.d(e,"ComponentModel",(function(){return i.ComponentModel})),n.d(e,"ComponentView",(function(){return i.ComponentView})),n.d(e,"SeriesModel",(function(){return i.SeriesModel})),n.d(e,"ChartView",(function(){return i.ChartView})),n.d(e,"innerDrawElementOnCanvas",(function(){return i.innerDrawElementOnCanvas})),n.d(e,"extendComponentModel",(function(){return i.extendComponentModel})),n.d(e,"extendComponentView",(function(){return i.extendComponentView})),n.d(e,"extendSeriesModel",(function(){return i.extendSeriesModel})),n.d(e,"extendChartView",(function(){return i.extendChartView}));var o=n(2161),a=n(2162),s=n(2163),u=n(2164),l=n(2165),c=n(2166),h=n(2167),f=n(2168),d=n(2169),p=n(2170),g=n(2171),v=n(2172),m=n(2173),y=n(2174),b=n(2175),_=n(2176),x=n(2177),w=n(2178),O=n(2179),S=n(2180),C=n(2181),E=n(2182),T=n(2183),A=n(2184),M=n(2185),I=n(2186),j=n(890),k=n(2187),P=n(892),L=n(2188),R=n(2189),D=n(2190),N=n(2191),B=n(361),F=n(2192),z=n(2193),V=n(2194),U=n(2195),G=n(2196),H=n(2197),W=n(2198),Y=n(2199),X=n(899),$=n(900),q=n(2200),Z=n(901),K=n(903),Q=n(2201),J=n(2202),tt=n(2203),et=n(2204),nt=n(885);Object(r.use)([o.install]),Object(r.use)([a.install]),Object(r.use)([s.install,u.install,l.install,c.install,h.install,f.install,d.install,p.install,g.install,v.install,m.install,y.install,b.install,_.install,x.install,w.install,O.install,S.install,C.install,E.install,T.install,A.install]),Object(r.use)(M.install),Object(r.use)(I.install),Object(r.use)(j.install),Object(r.use)(k.install),Object(r.use)(P.install),Object(r.use)(L.install),Object(r.use)(R.install),Object(r.use)(D.install),Object(r.use)(N.install),Object(r.use)(B.install),Object(r.use)(F.install),Object(r.use)(z.install),Object(r.use)(V.install),Object(r.use)(U.install),Object(r.use)(G.install),Object(r.use)(H.install),Object(r.use)(W.install),Object(r.use)(Y.install),Object(r.use)(X.install),Object(r.use)($.install),Object(r.use)(q.install),Object(r.use)(Z.install),Object(r.use)(K.install),Object(r.use)(Q.install),Object(r.use)(J.install),Object(r.use)(tt.install),Object(r.use)(et.installUniversalTransition),Object(r.use)(nt.installLabelLayout)},function(t,e,n){"use strict";(function(t){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var r=n(1963),i=n(1964),o=n(1965);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=f(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=s(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(u.isBuffer(e)){var n=0|d(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?s(t,0):f(t,e);if("Buffer"===e.type&&o(e.data))return f(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(c(e),t=s(t,e<0?0:0|d(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e){var n=e.length<0?0:0|d(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(t).length;default:if(r)return z(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return M(this,e,n);case"utf8":case"utf-8":return E(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return A(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function v(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function m(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(t,o)===l(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var h=!0,f=0;f<u;f++)if(l(t,o+f)!==l(e,f)){h=!1;break}if(h)return o}return-1}function b(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function _(t,e,n,r){return U(z(e,t.length-n),t,n,r)}function x(t,e,n,r){return U(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function w(t,e,n,r){return x(t,e,n,r)}function O(t,e,n,r){return U(V(e),t,n,r)}function S(t,e,n,r){return U(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function C(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function E(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,u,l=t[i],c=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=n)switch(h){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return l(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return c(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?E(this,0,t):g.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),h=0;h<s;++h)if(l[h]!==c[h]){o=l[h],a=c[h];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return m(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return m(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":return x(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return O(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function A(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function M(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=F(t[o]);return i}function I(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function j(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function k(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function P(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function L(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function R(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,r,o){return o||R(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function N(t,e,n,r,o){return o||R(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||j(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||j(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||j(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||j(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||j(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||j(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||k(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||k(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);k(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);k(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return N(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return N(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},u.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=u.isBuffer(t)?t:z(new u(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function F(t){return t<16?"0"+t.toString(16):t.toString(16)}function z(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(309))},function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=l(t),a=r[0],s=r[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),c=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[c++]=255&e);1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(c(t,a,a+16383>s?s:a+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var i,o,a=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,h=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[n+d]=255&a,d+=p,a/=256,l-=8);t[n+d-p]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return Q})),n.d(e,"adaptors",(function(){return J}));var r=n(13);n.d(e,"G2",(function(){return r}));var i=n(298);n.d(e,"registerLocale",(function(){return i.registerLocale}));var o=n(1696),a=n(1697),s=n(667);n.d(e,"setGlobal",(function(){return s.setGlobal}));var u=n(26);n.d(e,"Plot",(function(){return u.Plot}));var l=n(1165);for(var c in l)["default","version","G2","registerLocale","setGlobal","Plot","Line","Area","Column","Bar","Pie","Rose","WordCloud","Scatter","Radar","DualAxes","TinyLine","TinyColumn","TinyArea","Histogram","Progress","RingProgress","Heatmap","Box","Violin","Venn","Stock","Funnel","FUNNEL_CONVERSATION_FIELD","Liquid","addWaterWave","Bullet","Sunburst","Gauge","Waterfall","RadialBar","BidirectionalBar","Treemap","Sankey","Chord","CirclePacking","P","getCanvasPattern","MultiView","Mix","Facet","flow","measureTextWidth","line","interval","area","point","polygon","schema","adaptors","Lab"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return l[t]}))}(c);var h=n(668);n.d(e,"Line",(function(){return h.Line}));var f=n(672);n.d(e,"Area",(function(){return f.Area}));var d=n(673);n.d(e,"Column",(function(){return d.Column}));var p=n(674);n.d(e,"Bar",(function(){return p.Bar}));var g=n(675);n.d(e,"Pie",(function(){return g.Pie}));var v=n(1183);n.d(e,"Rose",(function(){return v.Rose}));var m=n(1184);n.d(e,"WordCloud",(function(){return m.WordCloud}));var y=n(676);n.d(e,"Scatter",(function(){return y.Scatter}));var b=n(1186);n.d(e,"Radar",(function(){return b.Radar}));var _=n(1187);n.d(e,"DualAxes",(function(){return _.DualAxes}));var x=n(677);n.d(e,"TinyLine",(function(){return x.TinyLine}));var w=n(678);n.d(e,"TinyColumn",(function(){return w.TinyColumn}));var O=n(679);n.d(e,"TinyArea",(function(){return O.TinyArea}));var S=n(680);n.d(e,"Histogram",(function(){return S.Histogram}));var C=n(681);n.d(e,"Progress",(function(){return C.Progress}));var E=n(682);n.d(e,"RingProgress",(function(){return E.RingProgress}));var T=n(1188);n.d(e,"Heatmap",(function(){return T.Heatmap}));var A=n(1189);n.d(e,"Box",(function(){return A.Box}));var M=n(1190);n.d(e,"Violin",(function(){return M.Violin}));var I=n(1191);n.d(e,"Venn",(function(){return I.Venn}));var j=n(683);n.d(e,"Stock",(function(){return j.Stock}));var k=n(556);n.d(e,"Funnel",(function(){return k.Funnel})),n.d(e,"FUNNEL_CONVERSATION_FIELD",(function(){return k.FUNNEL_CONVERSATION_FIELD}));var P=n(846);n.d(e,"Liquid",(function(){return P.Liquid})),n.d(e,"addWaterWave",(function(){return P.addWaterWave}));var L=n(1192);n.d(e,"Bullet",(function(){return L.Bullet}));var R=n(1193);n.d(e,"Sunburst",(function(){return R.Sunburst}));var D=n(686);n.d(e,"Gauge",(function(){return D.Gauge}));var N=n(1200);n.d(e,"Waterfall",(function(){return N.Waterfall}));var B=n(1201);n.d(e,"RadialBar",(function(){return B.RadialBar}));var F=n(1202);n.d(e,"BidirectionalBar",(function(){return F.BidirectionalBar}));var z=n(1203);n.d(e,"Treemap",(function(){return z.Treemap}));var V=n(1204);n.d(e,"Sankey",(function(){return V.Sankey}));var U=n(1206);n.d(e,"Chord",(function(){return U.Chord}));var G=n(1207);n.d(e,"CirclePacking",(function(){return G.CirclePacking}));var H=n(1208);n.d(e,"P",(function(){return H.P}));var W=n(669);n.d(e,"getCanvasPattern",(function(){return W.getCanvasPattern}));var Y=n(456);n.d(e,"MultiView",(function(){return Y.Mix})),n.d(e,"Mix",(function(){return Y.Mix}));var X=n(1209);n.d(e,"Facet",(function(){return X.Facet}));var $=n(3);n.d(e,"flow",(function(){return $.flow})),n.d(e,"measureTextWidth",(function(){return $.measureTextWidth}));var q=n(34);n.d(e,"line",(function(){return q.line})),n.d(e,"interval",(function(){return q.interval})),n.d(e,"area",(function(){return q.area})),n.d(e,"point",(function(){return q.point})),n.d(e,"polygon",(function(){return q.polygon})),n.d(e,"schema",(function(){return q.schema}));var Z=n(8),K=n(1210);n.d(e,"Lab",(function(){return K.Lab}));var Q="2.4.22";Object(i.registerLocale)("en-US",o.EN_US_LOCALE),Object(i.registerLocale)("zh-CN",a.ZH_CN_LOCALE);var J={scale:Z.scale,legend:Z.legend,tooltip:Z.tooltip,annotation:Z.annotation,interaction:Z.interaction,theme:Z.theme,animation:Z.animation}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(39),o=n(331),a=Object(i.registerShapeFactory)("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0;return(Object(r.isArray)(t.y)?t.y:[n,t.y]).map((function(t){return{x:e,y:t}}))}});Object(i.registerShape)("area","area",{draw:function(t,e){var n=Object(o.getShapeAttrs)(t,!1,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color,fillOpacity:1}}}}),e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(39),o=n(77),a=n(188),s=n(494),u=Object(i.registerShapeFactory)("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return Object(s.splitPoints)(t)}});Object(i.registerShape)("edge","line",{draw:function(t,e){var n=Object(o.getStyle)(t,!0,!1,"lineWidth"),i=Object(a.getLinePath)(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(39),o=n(493),a=n(77),s=n(202),u=Object(i.registerShapeFactory)("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return Object(s.getRectPoints)(t)}});Object(i.registerShape)("interval","rect",{draw:function(t,e){var n,i=Object(a.getStyle)(t,!1,!0),u=e,l=null==t?void 0:t.background;if(l){u=e.addGroup({name:"interval-group"});var c=Object(a.getBackgroundRectStyle)(t),h=Object(s.getBackgroundRectPath)(t,this.parsePoints(t.points),this.coordinate);u.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},c),{path:h}),zIndex:-1,name:o.BACKGROUND_SHAPE})}n=i.radius&&this.coordinate.isRect?Object(s.getRectWithCornerRadius)(this.parsePoints(t.points),this.coordinate,i.radius):this.parsePath(Object(s.getIntervalRectPath)(t.points,i.lineCap,this.coordinate));var f=u.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},i),{path:n}),name:"interval"});return l?u:f},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}}),e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(272),o=n(39),a=n(494),s=n(366),u=Object(o.registerShapeFactory)("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return Object(a.splitPoints)(t)}});Object(r.each)(s.SHAPES,(function(t){Object(o.registerShape)("point","hollow-".concat(t),{draw:function(e,n){return Object(s.drawPoints)(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t]||t,style:{r:4.5,stroke:n,fill:null}}}})})),e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(39),a=n(77);var s=Object(o.registerShapeFactory)("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return Object(i.each)(t.x,(function(n,r){var i=t.y[r];e.push({x:n,y:i})})),e}});Object(o.registerShape)("polygon","polygon",{draw:function(t,e){if(!Object(i.isEmpty)(t.points)){var n=Object(a.getStyle)(t,!0,!0),o=this.parsePath(function(t){for(var e=t[0],n=1,r=[["M",e.x,e.y]];n<t.length;){var o=t[n];o.x===t[n-1].x&&o.y===t[n-1].y||(r.push(["L",o.x,o.y]),o.x===e.x&&o.y===e.y&&n<t.length-1&&(e=t[n+1],r.push(["Z"]),r.push(["M",e.x,e.y]),n++)),n++}return Object(i.isEqual)(Object(i.last)(r),e)||r.push(["L",e.x,e.y]),r.push(["Z"]),r}(t.points));return e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},n),{path:o}),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(39),i=Object(r.registerShapeFactory)("schema",{defaultShapeType:""});e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(39),a=n(208),s=n(77);var u=Object(o.registerShapeFactory)("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],r=function(t){if(!Object(i.isArray)(t))return[];var e=Object(i.max)(t);return Object(i.map)(t,(function(t){return t/e}))}(t._size);return Object(i.each)(t.y,(function(i,o){var a=r[o]*e,s=0===o,u=o===t.y.length-1;n.push({isMin:s,isMax:u,x:t.x-a,y:i}),n.unshift({isMin:s,isMax:u,x:t.x+a,y:i})})),n}});Object(o.registerShape)("violin","violin",{draw:function(t,e){var n=Object(s.getStyle)(t,!0,!0),i=this.parsePath(Object(a.getViolinPath)(t.points));return e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},n),{path:i}),name:"violin"})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:t.color}}}}),e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(39),i=n(331);Object(r.registerShape)("area","line",{draw:function(t,e){var n=Object(i.getShapeAttrs)(t,!0,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},function(t,e,n){"use strict";n.r(e);var r=n(39),i=n(331);Object(r.registerShape)("area","smooth",{draw:function(t,e){var n=this.coordinate,r=Object(i.getShapeAttrs)(t,!1,!0,this,Object(i.getConstraint)(n));return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color,fillOpacity:1}}}})},function(t,e,n){"use strict";n.r(e);var r=n(39),i=n(331);Object(r.registerShape)("area","smooth-line",{draw:function(t,e){var n=this.coordinate,r=Object(i.getShapeAttrs)(t,!0,!0,this,Object(i.getConstraint)(n));return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(78),o=n(39),a=n(77),s=n(404);Object(o.registerShape)("edge","arc",{draw:function(t,e){var n,o=Object(a.getStyle)(t,!0,!1,"lineWidth"),u=t.points,l=u.length>2?"weight":"normal";if(t.isInCircle){var c={x:0,y:1};return"normal"===l?n=function(t,e,n){var r=Object(s.getQPath)(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(u[0],u[1],c):(o.fill=o.stroke,n=function(t,e){var n=Object(s.getQPath)(t[1],e),r=Object(s.getQPath)(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}(u,c)),n=this.parsePath(n),e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},o),{path:n})})}if("normal"===l)return u=this.parsePoints(u),n=Object(i.getArcPath)((u[1].x+u[0].x)/2,u[0].y,Math.abs(u[1].x-u[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},o),{path:n})});var h=Object(s.getCPath)(u[1],u[3]),f=Object(s.getCPath)(u[2],u[0]);return n=[["M",u[0].x,u[0].y],["L",u[1].x,u[1].y],h,["L",u[3].x,u[3].y],["L",u[2].x,u[2].y],f,["Z"]],n=this.parsePath(n),o.fill=o.stroke,e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},o),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(39),o=n(77),a=n(404);Object(i.registerShape)("edge","smooth",{draw:function(t,e){var n=Object(o.getStyle)(t,!0,!1,"lineWidth"),i=t.points,s=this.parsePath(function(t,e){var n=Object(a.getCPath)(t,e),r=[["M",t.x,t.y]];return r.push(n),r}(i[0],i[1]));return e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},n),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(39),a=n(77);Object(o.registerShape)("edge","vhv",{draw:function(t,e){var n=Object(a.getStyle)(t,!0,!1,"lineWidth"),o=t.points,s=this.parsePath(function(t,e){var n=[];n.push({x:t.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push({x:e.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push(e);var r=[["M",t.x,t.y]];return Object(i.each)(n,(function(t){r.push(["L",t.x,t.y])})),r}(o[0],o[1]));return e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},n),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(39),o=n(77),a=n(202);Object(i.registerShape)("interval","funnel",{getPoints:function(t){return t.size=2*t.size,Object(a.getRectPoints)(t)},draw:function(t,e){var n=Object(o.getStyle)(t,!1,!0),i=this.parsePath(Object(a.getFunnelPath)(t.points,t.nextPoints,!1));return e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},n),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(39),o=n(493),a=n(77),s=n(202);Object(i.registerShape)("interval","hollow-rect",{draw:function(t,e){var n=Object(a.getStyle)(t,!0,!1),i=e,u=null==t?void 0:t.background;if(u){i=e.addGroup();var l=Object(a.getBackgroundRectStyle)(t),c=Object(s.getBackgroundRectPath)(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},l),{path:c}),zIndex:-1,name:o.BACKGROUND_SHAPE})}var h=this.parsePath(Object(s.getRectPath)(t.points)),f=i.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},n),{path:h}),name:"interval"});return u?i:f},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(39),a=n(77),s=n(202),u=n(86);Object(o.registerShape)("interval","line",{getPoints:function(t){return n=(e=t).x,r=e.y,o=e.y0,Object(i.isArray)(r)?r.map((function(t,e){return{x:Object(i.isArray)(n)?n[e]:n,y:t}})):[{x:n,y:o},{x:n,y:r}];var e,n,r,o},draw:function(t,e){var n=Object(a.getStyle)(t,!0,!1,"lineWidth"),i=Object(u.omit)(Object(r.__assign)({},n),["fill"]),o=this.parsePath(Object(s.getRectPath)(t.points,!1));return e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},i),{path:o}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:t.color}}}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(39),o=n(77),a=n(202);Object(i.registerShape)("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,Object(a.getRectPoints)(t)},draw:function(t,e){var n=Object(o.getStyle)(t,!1,!0),i=this.parsePath(Object(a.getFunnelPath)(t.points,t.nextPoints,!0));return e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},n),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(39),a=n(77);Object(o.registerShape)("interval","tick",{getPoints:function(t){return function(t){var e,n,o,a=t.x,s=t.y,u=t.y0,l=t.size;Object(i.isArray)(s)?(n=(e=Object(r.__read)(s,2))[0],o=e[1]):(n=u,o=s);var c=a+l/2,h=a-l/2;return[{x:a,y:n},{x:a,y:o},{x:h,y:n},{x:c,y:n},{x:h,y:o},{x:c,y:o}]}(t)},draw:function(t,e){var n,i=Object(a.getStyle)(t,!0,!1),o=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y]]);return e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},i),{path:o}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:t.color}}}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(39),a=n(208),s=n(77),u=n(741);function l(t,e){var n=Object(a.getPathPoints)(t.points,t.connectNulls,t.showSinglePoint),o=[];return Object(i.each)(n,(function(t){var n=function(t,e){var n=[];return Object(i.each)(t,(function(r,i){var o=t[i+1];if(n.push(r),o){var a=function(t,e,n){var r,i=t.x,o=t.y,a=e.x,s=e.y;switch(n){case"hv":r=[{x:a,y:o}];break;case"vh":r=[{x:i,y:s}];break;case"hvh":var u=(a+i)/2;r=[{x:u,y:o},{x:u,y:s}];break;case"vhv":var l=(o+s)/2;r=[{x:i,y:l},{x:a,y:l}]}return r}(r,o,e);n=n.concat(a)}})),n}(t,e);o=o.concat(function(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}(n))})),Object(r.__assign)(Object(r.__assign)({},Object(s.getStyle)(t,!0,!1,"lineWidth")),{path:o})}Object(i.each)(["hv","vh","hvh","vhv"],(function(t){Object(o.registerShape)("line",t,{draw:function(e,n){var r=l(e,t);return n.addShape({type:"path",attrs:r,name:"line"})},getMarker:function(e){return Object(u.getLineMarker)(e,t)}})}))},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(272),o=n(39),a=n(366);Object(r.each)(a.HOLLOW_SHAPES,(function(t){Object(o.registerShape)("point",t,{draw:function(e,n){return Object(a.drawPoints)(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t],style:{r:4.5,stroke:n,fill:null}}}})}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(39),o=n(77);Object(i.registerShape)("point","image",{draw:function(t,e){var n,i,a=Object(o.getStyle)(t,!1,!1,"r").r,s=this.parsePoints(t.points),u=s[0];if(t.isStack)u=s[1];else if(s.length>1){var l=e.addGroup();try{for(var c=Object(r.__values)(s),h=c.next();!h.done;h=c.next()){var f=h.value;l.addShape("image",{attrs:{x:f.x-a/2,y:f.y-a,width:a,height:a,img:t.shape[1]}})}}catch(t){n={error:t}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}return l}return e.addShape("image",{attrs:{x:u.x-a/2,y:u.y-a,width:a,height:a,img:t.shape[1]}})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(272),o=n(39),a=n(366);Object(r.each)(a.SHAPES,(function(t){Object(o.registerShape)("point",t,{draw:function(e,n){return Object(a.drawPoints)(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t]||t,style:{r:4.5,fill:n}}}})}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(39),a=n(77);function s(t){var e=Object(i.isArray)(t)?t:[t],n=e[0],r=e[e.length-1],o=e.length>1?e[1]:n;return{min:n,max:r,min1:o,max1:e.length>3?e[3]:r,median:e.length>2?e[2]:o}}function u(t,e,n){var r,o=n/2;if(Object(i.isArray)(e)){var a=s(e),u=a.min,l=a.max,c=a.median,h=a.min1,f=t-o,d=t+o;r=[[f,l],[d,l],[t,l],[t,p=a.max1],[f,h],[f,p],[d,p],[d,h],[t,h],[t,u],[f,u],[d,u],[f,c],[d,c]]}else{e=Object(i.isNil)(e)?.5:e;var p,g=s(t),v=(u=g.min,l=g.max,c=g.median,e-o),m=e+o;r=[[u,v],[u,m],[u,e],[h=g.min1,e],[h,v],[h,m],[p=g.max1,m],[p,v],[p,e],[l,e],[l,v],[l,m],[c,v],[c,m]]}return r.map((function(t){return{x:t[0],y:t[1]}}))}Object(o.registerShape)("schema","box",{getPoints:function(t){return u(t.x,t.y,t.size)},draw:function(t,e){var n,i=Object(a.getStyle)(t,!0,!1),o=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]);return e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},i),{path:o,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,n){var r=u(t,[e-6,e-3,e,e+3,e+6],n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(86),a=n(39),s=n(77);function u(t,e,n){var r,a,s=(r=e,a=(Object(i.isArray)(r)?r:[r]).sort((function(t,e){return e-t})),Object(o.padEnd)(a,4,a[a.length-1]));return[{x:t,y:s[0]},{x:t,y:s[1]},{x:t-n/2,y:s[2]},{x:t-n/2,y:s[1]},{x:t+n/2,y:s[1]},{x:t+n/2,y:s[2]},{x:t,y:s[2]},{x:t,y:s[3]}]}Object(a.registerShape)("schema","candle",{getPoints:function(t){return u(t.x,t.y,t.size)},draw:function(t,e){var n,i=Object(s.getStyle)(t,!0,!0),o=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]);return e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},i),{path:o,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r=u(t,[e+7.5,e+3,e-3,e-7.5],n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(39),a=n(77);function s(t,e){var n=Math.abs(t[0].x-t[2].x),r=Math.abs(t[0].y-t[2].y),o=Math.min(n,r);return e&&(o=Object(i.clamp)(e,0,Math.min(n,r))),o/=2,{x:(t[0].x+t[2].x)/2-o,y:(t[0].y+t[2].y)/2-o,width:2*o,height:2*o}}Object(o.registerShape)("polygon","square",{draw:function(t,e){if(!Object(i.isEmpty)(t.points)){var n=Object(a.getStyle)(t,!0,!0),o=this.parsePoints(t.points);return e.addShape("rect",{attrs:Object(r.__assign)(Object(r.__assign)({},n),s(o,t.size)),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(39),o=n(208),a=n(77);Object(i.registerShape)("violin","smooth",{draw:function(t,e){var n=Object(a.getStyle)(t,!0,!0),i=this.parsePath(Object(o.getSmoothViolinPath)(t.points));return e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{stroke:null,r:4,fill:t.color}}}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(39),o=n(208),a=n(77);Object(i.registerShape)("violin","hollow",{draw:function(t,e){var n=Object(a.getStyle)(t,!0,!1),i=this.parsePath(Object(o.getViolinPath)(t.points));return e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}}),Object(i.registerShape)("violin","hollow-smooth",{draw:function(t,e){var n=Object(a.getStyle)(t,!0,!1),i=this.parsePath(Object(o.getSmoothViolinPath)(t.points));return e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=void 0;var r,i=(r=n(1995))&&r.__esModule?r:{default:r},o=n(1996),a=n(1164);var s={};e.getSensor=function(t){var e=t.getAttribute(a.SizeSensorId);if(e&&s[e])return s[e];var n=(0,i.default)();t.setAttribute(a.SizeSensorId,n);var r=(0,o.createSensor)(t);return s[n]=r,r};e.removeSensor=function(t){var e=t.element.getAttribute(a.SizeSensorId);t.element.removeAttribute(a.SizeSensorId),t.destroy(),e&&s[e]&&delete s[e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=1;e.default=function(){return"".concat(r++)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r=n(1997),i=n(1998),o="undefined"!=typeof ResizeObserver?i.createSensor:r.createSensor;e.createSensor=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r,i=(r=n(1163))&&r.__esModule?r:{default:r},o=n(1164);e.createSensor=function(t){var e=void 0,n=[],r=(0,i.default)((function(){n.forEach((function(e){e(t)}))})),a=function(){e&&e.parentNode&&(e.contentDocument&&e.contentDocument.defaultView.removeEventListener("resize",r),e.parentNode.removeChild(e),e=void 0,n=[])};return{element:t,bind:function(i){e||(e=function(){"static"===getComputedStyle(t).position&&(t.style.position="relative");var e=document.createElement("object");return e.onload=function(){e.contentDocument.defaultView.addEventListener("resize",r),r()},e.style.display="block",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height="100%",e.style.width="100%",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.zIndex="-1",e.style.opacity="0",e.setAttribute("class",o.SensorClassName),e.setAttribute("tabindex",o.SensorTabIndex),e.type="text/html",t.appendChild(e),e.data="about:blank",e}()),-1===n.indexOf(i)&&n.push(i)},destroy:a,unbind:function(t){var r=n.indexOf(t);-1!==r&&n.splice(r,1),0===n.length&&e&&a()}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r,i=(r=n(1163))&&r.__esModule?r:{default:r};e.createSensor=function(t){var e=void 0,n=[],r=(0,i.default)((function(){n.forEach((function(e){e(t)}))})),o=function(){e.disconnect(),n=[],e=void 0};return{element:t,bind:function(i){var o;e||((o=new ResizeObserver(r)).observe(t),r(),e=o),-1===n.indexOf(i)&&n.push(i)},destroy:o,unbind:function(t){var r=n.indexOf(t);-1!==r&&n.splice(r,1),0===n.length&&e&&o()}}}},function(t,e,n){"use strict";n.r(e);var r=n(13),i=n(1703);Object(r.registerAction)("marker-active",i.MarkerActiveAction),Object(r.registerInteraction)("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(13);function o(t){return{fontSize:t.data.size,text:t.data.text,textAlign:"center",fontFamily:t.data.font,fontWeight:t.data.weight,fill:t.color||t.defaultStyle.stroke,textBaseline:"alphabetic"}}Object(i.registerShape)("point","word-cloud",{draw:function(t,e){var n=t.x,a=t.y,s=e.addShape("text",{attrs:Object(r.__assign)(Object(r.__assign)({},o(t)),{x:n,y:a})}),u=t.data.rotate;return"number"==typeof u&&i.Util.rotate(s,u*Math.PI/180),s}})},function(t,e,n){"use strict";n.r(e);n(1185)},function(t,e,n){"use strict";n.r(e);var r=n(13),i=n(1718);Object(r.registerAction)("radar-tooltip",i.RadarTooltipAction),Object(r.registerInteraction)("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(13);Object(i.registerShape)("polygon","circle",{draw:function(t,e){var n,i,o=t.x,a=t.y,s=this.parsePoints(t.points),u=Math.abs(s[2].x-s[1].x),l=Math.abs(s[1].y-s[0].y),c=Math.min(u,l)/2,h=Number(t.shape[1]),f=Number(t.shape[2]),d=c*Math.sqrt(f)*Math.sqrt(h),p=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("circle",{attrs:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({x:o,y:a,r:d},t.defaultStyle),t.style),{fill:p})})}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(13);Object(i.registerShape)("polygon","square",{draw:function(t,e){var n,i,o=t.x,a=t.y,s=this.parsePoints(t.points),u=Math.abs(s[2].x-s[1].x),l=Math.abs(s[1].y-s[0].y),c=Math.min(u,l),h=Number(t.shape[1]),f=Number(t.shape[2]),d=c*Math.sqrt(f)*Math.sqrt(h),p=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("rect",{attrs:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({x:o-d/2,y:a-d/2,width:d,height:d},t.defaultStyle),t.style),{fill:p})})}})},function(t,e,n){"use strict";var r=t.exports;t.exports.isNumber=function(t){return"number"==typeof t},t.exports.findMin=function(t){if(0===t.length)return 1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.min(e,t[n]);return e},t.exports.findMax=function(t){if(0===t.length)return-1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.max(e,t[n]);return e},t.exports.findMinMulti=function(t){for(var e=r.findMin(t[0]),n=1;n<t.length;n++)e=Math.min(e,r.findMin(t[n]));return e},t.exports.findMaxMulti=function(t){for(var e=r.findMax(t[0]),n=1;n<t.length;n++)e=Math.max(e,r.findMax(t[n]));return e},t.exports.inside=function(t,e,n){return t<=n&&n<=e}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(13),o=n(207),a=n(3),s=n(193);Object(i.registerShape)("schema","venn",{draw:function(t,e){var n=t.data,u=Object(o.parsePathString)(n[s.PATH_FIELD]),l=function(t){return Object(a.deepAssign)({},t.defaultStyle,{fill:t.color},t.style)}(t),c=e.addGroup({name:"venn-shape"});c.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},l),{path:u}),name:"venn-path"});var h=t.customInfo,f=h.offsetX,d=h.offsetY,p=i.Util.transform(null,[["t",f,d]]);return c.setMatrix(p),c},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{lineWidth:0,stroke:e,fill:e,r:4}}}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(13),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getLabelPoint=function(t,e,n){var r=t.data,i=r.x,o=r.y,a=t.customLabelInfo,s=a.offsetX,u=a.offsetY;return{content:t.content[n],x:i+s,y:o+u}},e}(i.GeometryLabel);Object(i.registerGeometryLabel)("venn",o)},function(t,e,n){"use strict";n.r(e);var r=n(13),i=n(1731),o=n(1732),a=n(925);Object(r.registerAction)("venn-element-active",i.VennElementActive),Object(r.registerAction)("venn-element-highlight",o.VennElementHighlight),Object(r.registerAction)("venn-element-selected",a.VennElementSelected),Object(r.registerAction)("venn-element-single-selected",a.VennElementSingleSelected),Object(r.registerInteraction)("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),Object(r.registerInteraction)("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),Object(r.registerInteraction)("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),Object(r.registerInteraction)("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),Object(r.registerInteraction)("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),Object(r.registerInteraction)("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]})},function(t,e,n){"use strict";n.r(e);n(848)},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(13);Object(i.registerShape)("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,i=n.indicator,o=n.defaultColor,a=i,s=a.pointer,u=a.pin,l=e.addGroup(),c=this.parsePoint({x:0,y:0});return s&&l.addShape("line",{name:"pointer",attrs:Object(r.__assign)({x1:c.x,y1:c.y,x2:t.x,y2:t.y,stroke:o},s.style)}),u&&l.addShape("circle",{name:"pin",attrs:Object(r.__assign)({x:c.x,y:c.y,stroke:o},u.style)}),l}})},function(t,e,n){"use strict";n.r(e);var r=n(13),i=n(1);Object(r.registerShape)("interval","meter-gauge",{draw:function(t,e){var n=t.customInfo.meter,o=void 0===n?{}:n,a=o.steps,s=void 0===a?50:a,u=o.stepRatio,l=void 0===u?.5:u;s=s<1?1:s,l=Object(i.clamp)(l,0,1);var c=this.coordinate,h=c.startAngle,f=c.endAngle,d=0;l>0&&l<1&&(d=(f-h)/s/(l/(1-l)+1-1/s));for(var p=d/(1-l)*l,g=e.addGroup(),v=this.coordinate.getCenter(),m=this.coordinate.getRadius(),y=r.Util.getAngle(t,this.coordinate),b=y.startAngle,_=y.endAngle,x=b;x<_;){var w=void 0,O=(x-h)%(p+d);w=O<p?x+(p-O):(x+=p+d-O)+p;var S=r.Util.getSectorPath(v.x,v.y,m,x,Math.min(w,_),m*this.coordinate.innerRadius);g.addShape("path",{name:"meter-gauge",attrs:{path:S,fill:t.color,stroke:t.color,lineWidth:.5}}),x=w+d}return g}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(13),o=n(1),a=n(3);Object(i.registerShape)("interval","waterfall",{draw:function(t,e){var n=t.customInfo,i=t.points,s=t.nextPoints,u=e.addGroup(),l=this.parsePath(function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var o=t[0];return e.push(["L",o.x,o.y]),e.push(["z"]),e}(i)),c=function(t){return Object(a.deepAssign)({},t.defaultStyle,t.style,{fill:t.color})}(t);u.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},c),{path:l})});var h=Object(o.get)(n,"leaderLine");if(h&&s){var f=[["M",i[2].x,i[2].y],["L",s[0].x,s[0].y]];i[2].y===s[1].y&&(f[1]=["L",s[1].x,s[1].y]),f=this.parsePath(f),u.addShape("path",{attrs:Object(r.__assign)({path:f},h.style||{})})}return u}})},function(t,e,n){"use strict";n.r(e);n(1185),n(848)},function(t,e,n){"use strict";n.r(e);n(2015)},function(t,e,n){"use strict";n.r(e);var r=n(13),i=n(1761);Object(r.registerAction)("sankey-node-drag",i.SankeyNodeDragAction),Object(r.registerInteraction)("sankey-node-draggable",{showEnable:[{trigger:"polygon:mouseenter",action:"cursor:pointer"},{trigger:"polygon:mouseleave",action:"cursor:default"}],start:[{trigger:"polygon:mousedown",action:"sankey-node-drag:start"}],processing:[{trigger:"plot:mousemove",action:"sankey-node-drag:translate"},{isEnable:function(t){return t.isDragging},trigger:"plot:mousemove",action:"cursor:move"}],end:[{trigger:"plot:mouseup",action:"sankey-node-drag:end"}]})},function(t,e,n){"use strict";n.r(e);n(848)},function(t,e,n){"use strict";n.r(e);n(2018)},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(13),a=n(3),s=n(931),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getAssociationItems=function(t,e){var n,r=this.context.event,o=e||{},u=o.linkField,l=o.dim,c=[];if(null===(n=r.data)||void 0===n?void 0:n.data){var h=r.data.data;Object(i.each)(t,(function(t){var e,n,r=u;if("x"===l?r=t.getXScale().field:"y"===l?r=null===(e=t.getYScales().find((function(t){return t.field===r})))||void 0===e?void 0:e.field:r||(r=null===(n=t.getGroupScales()[0])||void 0===n?void 0:n.field),r){var o=Object(i.map)(Object(a.getAllElements)(t),(function(e){var n=!1,o=!1,a=Object(i.isArray)(h)?Object(i.get)(h[0],r):Object(i.get)(h,r);return Object(s.getElementValue)(e,r)===a?n=!0:o=!0,{element:e,view:t,active:n,inactive:o}}));c.push.apply(c,o)}}))}return c},e.prototype.showTooltip=function(t){var e=Object(a.getSiblingViews)(this.context.view),n=this.getAssociationItems(e,t);Object(i.each)(n,(function(t){if(t.active){var e=t.element.shape.getCanvasBBox();t.view.showTooltip({x:e.minX+e.width/2,y:e.minY+e.height/2})}}))},e.prototype.hideTooltip=function(){var t=Object(a.getSiblingViews)(this.context.view);Object(i.each)(t,(function(t){t.hideTooltip()}))},e.prototype.active=function(t){var e=Object(a.getViews)(this.context.view),n=this.getAssociationItems(e,t);Object(i.each)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("active",!0)}))},e.prototype.selected=function(t){var e=Object(a.getViews)(this.context.view),n=this.getAssociationItems(e,t);Object(i.each)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("selected",!0)}))},e.prototype.highlight=function(t){var e=Object(a.getViews)(this.context.view),n=this.getAssociationItems(e,t);Object(i.each)(n,(function(t){var e=t.inactive,n=t.element;e&&n.setState("inactive",!0)}))},e.prototype.reset=function(){var t=Object(a.getViews)(this.context.view);Object(i.each)(t,(function(t){Object(s.clearHighlight)(t)}))},e}(o.Action);Object(o.registerAction)("association",u),Object(o.registerInteraction)("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Object(o.registerInteraction)("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Object(o.registerInteraction)("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Object(o.registerInteraction)("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]})},function(t,e,n){"use strict";n.r(e);var r=n(1211);n.d(e,"GaodeMap",(function(){return r.default}));var i=n(1276);n.d(e,"GaodeMapV2",(function(){return i.default}));var o=n(1312);n.d(e,"Earth",(function(){return o.default}));var a=n(1278);n.d(e,"Map",(function(){return a.default}));var s=n(1277);n.d(e,"Mapbox",(function(){return s.default}));var u=n(224);n.d(e,"Version",(function(){return u.Version}))},function(t,e){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(1212);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(687).default;function i(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new A(r||[]);return a(o,"_invoke",{value:S(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p={};function g(){}function v(){}function m(){}var y={};h(y,u,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(M([])));_&&_!==n&&o.call(_,u)&&(y=_);var x=m.prototype=g.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){var n;a(this,"_invoke",{value:function(i,a){function s(){return new e((function(n,s){!function n(i,a,s,u){var l=d(t[i],t,a);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==r(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,u)}))}u(l.arg)}(i,a,n,s)}))}return n=n?n.then(s,s):s()}})}function S(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function C(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=d(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,p;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function M(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=m,a(x,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:v,configurable:!0}),v.displayName=h(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,h(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},w(O.prototype),h(O.prototype,l,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new O(f(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(x),h(x,c,"Generator"),h(x,u,(function(){return this})),h(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=M,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:M(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.Container=void 0;var a=n(2030),s=n(241),u=n(350),l=n(175),c=n(1214),h=n(2031),f=n(2038),d=n(2040),p=n(412),g=n(550),v=n(2043),m=n(2044),y=function(){function t(t){this._appliedMiddleware=[];var e=t||{};if("object"!=typeof e)throw new Error(""+s.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);if(void 0===e.defaultScope)e.defaultScope=u.BindingScopeEnum.Transient;else if(e.defaultScope!==u.BindingScopeEnum.Singleton&&e.defaultScope!==u.BindingScopeEnum.Transient&&e.defaultScope!==u.BindingScopeEnum.Request)throw new Error(""+s.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);if(void 0===e.autoBindInjectable)e.autoBindInjectable=!1;else if("boolean"!=typeof e.autoBindInjectable)throw new Error(""+s.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE);if(void 0===e.skipBaseClassChecks)e.skipBaseClassChecks=!1;else if("boolean"!=typeof e.skipBaseClassChecks)throw new Error(""+s.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK);this.options={autoBindInjectable:e.autoBindInjectable,defaultScope:e.defaultScope,skipBaseClassChecks:e.skipBaseClassChecks},this.id=p.id(),this._bindingDictionary=new m.Lookup,this._snapshots=[],this._middleware=null,this.parent=null,this._metadataReader=new c.MetadataReader}return t.merge=function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var a=new t,s=o([e,n],r).map((function(t){return h.getBindingDictionary(t)})),u=h.getBindingDictionary(a);function l(t,e){t.traverse((function(t,n){n.forEach((function(t){e.add(t.serviceIdentifier,t.clone())}))}))}return s.forEach((function(t){l(t,u)})),a},t.prototype.load=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=this._getContainerModuleHelpersFactory(),r=0,i=t;r<i.length;r++){var o=i[r],a=n(o.id);o.registry(a.bindFunction,a.unbindFunction,a.isboundFunction,a.rebindFunction)}},t.prototype.loadAsync=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r(this,void 0,void 0,(function(){var e,n,r,o,a;return i(this,(function(i){switch(i.label){case 0:e=this._getContainerModuleHelpersFactory(),n=0,r=t,i.label=1;case 1:return n<r.length?(o=r[n],a=e(o.id),[4,o.registry(a.bindFunction,a.unbindFunction,a.isboundFunction,a.rebindFunction)]):[3,4];case 2:i.sent(),i.label=3;case 3:return n++,[3,1];case 4:return[2]}}))}))},t.prototype.unload=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=function(t){return function(e){return e.moduleId===t}};e.forEach((function(e){var n=r(e.id);t._bindingDictionary.removeByCondition(n)}))},t.prototype.bind=function(t){var e=this.options.defaultScope||u.BindingScopeEnum.Transient,n=new a.Binding(t,e);return this._bindingDictionary.add(t,n),new d.BindingToSyntax(n)},t.prototype.rebind=function(t){return this.unbind(t),this.bind(t)},t.prototype.unbind=function(t){try{this._bindingDictionary.remove(t)}catch(e){throw new Error(s.CANNOT_UNBIND+" "+g.getServiceIdentifierAsString(t))}},t.prototype.unbindAll=function(){this._bindingDictionary=new m.Lookup},t.prototype.isBound=function(t){var e=this._bindingDictionary.hasKey(t);return!e&&this.parent&&(e=this.parent.isBound(t)),e},t.prototype.isBoundNamed=function(t,e){return this.isBoundTagged(t,l.NAMED_TAG,e)},t.prototype.isBoundTagged=function(t,e,n){var r=!1;if(this._bindingDictionary.hasKey(t)){var i=this._bindingDictionary.get(t),o=h.createMockRequest(this,t,e,n);r=i.some((function(t){return t.constraint(o)}))}return!r&&this.parent&&(r=this.parent.isBoundTagged(t,e,n)),r},t.prototype.snapshot=function(){this._snapshots.push(v.ContainerSnapshot.of(this._bindingDictionary.clone(),this._middleware))},t.prototype.restore=function(){var t=this._snapshots.pop();if(void 0===t)throw new Error(s.NO_MORE_SNAPSHOTS_AVAILABLE);this._bindingDictionary=t.bindings,this._middleware=t.middleware},t.prototype.createChild=function(e){var n=new t(e||this.options);return n.parent=this,n},t.prototype.applyMiddleware=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._appliedMiddleware=this._appliedMiddleware.concat(t);var n=this._middleware?this._middleware:this._planAndResolve();this._middleware=t.reduce((function(t,e){return e(t)}),n)},t.prototype.applyCustomMetadataReader=function(t){this._metadataReader=t},t.prototype.get=function(t){return this._get(!1,!1,u.TargetTypeEnum.Variable,t)},t.prototype.getTagged=function(t,e,n){return this._get(!1,!1,u.TargetTypeEnum.Variable,t,e,n)},t.prototype.getNamed=function(t,e){return this.getTagged(t,l.NAMED_TAG,e)},t.prototype.getAll=function(t){return this._get(!0,!0,u.TargetTypeEnum.Variable,t)},t.prototype.getAllTagged=function(t,e,n){return this._get(!1,!0,u.TargetTypeEnum.Variable,t,e,n)},t.prototype.getAllNamed=function(t,e){return this.getAllTagged(t,l.NAMED_TAG,e)},t.prototype.resolve=function(t){var e=this.createChild();return e.bind(t).toSelf(),this._appliedMiddleware.forEach((function(t){e.applyMiddleware(t)})),e.get(t)},t.prototype._getContainerModuleHelpersFactory=function(){var t=this,e=function(t,e){t._binding.moduleId=e},n=function(n){return function(r){var i=t.rebind.bind(t)(r);return e(i,n),i}};return function(r){return{bindFunction:(i=r,function(n){var r=t.bind.bind(t)(n);return e(r,i),r}),isboundFunction:function(e){return t.isBound.bind(t)(e)},rebindFunction:n(r),unbindFunction:function(e){t.unbind.bind(t)(e)}};var i}},t.prototype._get=function(t,e,n,r,i,o){var a=null,u={avoidConstraints:t,contextInterceptor:function(t){return t},isMultiInject:e,key:i,serviceIdentifier:r,targetType:n,value:o};if(this._middleware){if(null==(a=this._middleware(u)))throw new Error(s.INVALID_MIDDLEWARE_RETURN)}else a=this._planAndResolve()(u);return a},t.prototype._planAndResolve=function(){var t=this;return function(e){var n=h.plan(t._metadataReader,t,e.isMultiInject,e.targetType,e.serviceIdentifier,e.key,e.value,e.avoidConstraints);return n=e.contextInterceptor(n),f.resolve(n)}},t}();e.Container=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Binding=void 0;var r=n(350),i=n(412),o=function(){function t(t,e){this.id=i.id(),this.activated=!1,this.serviceIdentifier=t,this.scope=e,this.type=r.BindingTypeEnum.Invalid,this.constraint=function(t){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.dynamicValue=null}return t.prototype.clone=function(){var e=new t(this.serviceIdentifier,this.scope);return e.activated=e.scope===r.BindingScopeEnum.Singleton&&this.activated,e.implementationType=this.implementationType,e.dynamicValue=this.dynamicValue,e.scope=this.scope,e.type=this.type,e.factory=this.factory,e.provider=this.provider,e.constraint=this.constraint,e.onActivation=this.onActivation,e.cache=this.cache,e},t}();e.Binding=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBindingDictionary=e.createMockRequest=e.plan=void 0;var r=n(2032),i=n(241),o=n(350),a=n(175),s=n(1215),u=n(550),l=n(2033),c=n(290),h=n(2034),f=n(2035),d=n(2037),p=n(1217);function g(t){return t._bindingDictionary}function v(t,e,n,o,a){var s=m(n.container,a.serviceIdentifier),l=[];return s.length===r.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof a.serviceIdentifier&&t.getConstructorMetadata(a.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(a.serviceIdentifier).toSelf(),s=m(n.container,a.serviceIdentifier)),l=e?s:s.filter((function(t){var e=new d.Request(t.serviceIdentifier,n,o,t,a);return t.constraint(e)})),function(t,e,n,o){switch(e.length){case r.BindingCount.NoBindingsAvailable:if(n.isOptional())return e;var a=u.getServiceIdentifierAsString(t),s=i.NOT_REGISTERED;throw s+=u.listMetadataForTarget(a,n),s+=u.listRegisteredBindingsForServiceIdentifier(o,a,m),new Error(s);case r.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return e;case r.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return e;a=u.getServiceIdentifierAsString(t),s=i.AMBIGUOUS_MATCH+" "+a;throw s+=u.listRegisteredBindingsForServiceIdentifier(o,a,m),new Error(s)}}(a.serviceIdentifier,l,a,n.container),l}function m(t,e){var n=[],r=g(t);return r.hasKey(e)?n=r.get(e):null!==t.parent&&(n=m(t.parent,e)),n}e.getBindingDictionary=g,e.plan=function(t,e,n,r,g,m,y,b){void 0===b&&(b=!1);var _=new l.Context(e),x=function(t,e,n,r,i,o){var s=t?a.MULTI_INJECT_TAG:a.INJECT_TAG,u=new c.Metadata(s,n),l=new p.Target(e,r,n,u);if(void 0!==i){var h=new c.Metadata(i,o);l.metadata.push(h)}return l}(n,r,g,"",m,y);try{return function t(e,n,r,a,s,u){var l,c;if(null===s){l=v(e,n,a,null,u),c=new d.Request(r,a,null,l,u);var p=new h.Plan(a,c);a.addPlan(p)}else l=v(e,n,a,s,u),c=s.addChildRequest(u.serviceIdentifier,l,u);l.forEach((function(n){var r=null;if(u.isArray())r=c.addChildRequest(n.serviceIdentifier,n,u);else{if(n.cache)return;r=c}if(n.type===o.BindingTypeEnum.Instance&&null!==n.implementationType){var s=f.getDependencies(e,n.implementationType);if(!a.container.options.skipBaseClassChecks){var l=f.getBaseClassDependencyCount(e,n.implementationType);if(s.length<l){var h=i.ARGUMENTS_LENGTH_MISMATCH(f.getFunctionName(n.implementationType));throw new Error(h)}}s.forEach((function(n){t(e,!1,n.serviceIdentifier,a,r,n)}))}}))}(t,b,g,_,null,x),_}catch(t){throw s.isStackOverflowExeption(t)&&_.plan&&u.circularDependencyToException(_.plan.rootRequest),t}},e.createMockRequest=function(t,e,n,r){var i=new p.Target(o.TargetTypeEnum.Variable,"",e,new c.Metadata(n,r)),a=new l.Context(t);return new d.Request(e,a,null,[],i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingCount=void 0;e.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Context=void 0;var r=n(412),i=function(){function t(t){this.id=r.id(),this.container=t}return t.prototype.addPlan=function(t){this.plan=t},t.prototype.setCurrentRequest=function(t){this.currentRequest=t},t}();e.Context=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Plan=void 0;var r=function(t,e){this.parentContext=t,this.rootRequest=e};e.Plan=r},function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.getFunctionName=e.getBaseClassDependencyCount=e.getDependencies=void 0;var i=n(1216),o=n(241),a=n(350),s=n(175),u=n(550);Object.defineProperty(e,"getFunctionName",{enumerable:!0,get:function(){return u.getFunctionName}});var l=n(1217);function c(t,e,n,i){var s=t.getConstructorMetadata(n),u=s.compilerGeneratedMetadata;if(void 0===u){var c=o.MISSING_INJECTABLE_ANNOTATION+" "+e+".";throw new Error(c)}var d=s.userGeneratedMetadata,p=Object.keys(d),g=0===n.length&&p.length>0,v=p.length>n.length,m=function(t,e,n,r,i){for(var o=[],a=0;a<i;a++){var s=h(a,t,e,n,r);null!==s&&o.push(s)}return o}(i,e,u,d,g||v?p.length:n.length),y=function t(e,n){for(var i=e.getPropertiesMetadata(n),o=[],s=Object.keys(i),u=0,c=s;u<c.length;u++){var h=c[u],d=i[h],p=f(i[h]),g=p.targetName||h,v=p.inject||p.multiInject,m=new l.Target(a.TargetTypeEnum.ClassProperty,g,v);m.metadata=d,o.push(m)}var y=Object.getPrototypeOf(n.prototype).constructor;if(y!==Object){var b=t(e,y);o=r(r([],o),b)}return o}(t,n);return r(r([],m),y)}function h(t,e,n,r,s){var u=s[t.toString()]||[],c=f(u),h=!0!==c.unmanaged,d=r[t],p=c.inject||c.multiInject;if((d=p||d)instanceof i.LazyServiceIdentifer&&(d=d.unwrap()),h){if(!e&&(d===Object||d===Function||void 0===d)){var g=o.MISSING_INJECT_ANNOTATION+" argument "+t+" in class "+n+".";throw new Error(g)}var v=new l.Target(a.TargetTypeEnum.ConstructorArgument,c.targetName,d);return v.metadata=u,v}return null}function f(t){var e={};return t.forEach((function(t){e[t.key.toString()]=t.value})),{inject:e[s.INJECT_TAG],multiInject:e[s.MULTI_INJECT_TAG],targetName:e[s.NAME_TAG],unmanaged:e[s.UNMANAGED_TAG]}}e.getDependencies=function(t,e){return c(t,u.getFunctionName(e),e,!1)},e.getBaseClassDependencyCount=function t(e,n){var r=Object.getPrototypeOf(n.prototype).constructor;if(r!==Object){var i=c(e,u.getFunctionName(r),r,!0),o=i.map((function(t){return t.metadata.filter((function(t){return t.key===s.UNMANAGED_TAG}))})),a=[].concat.apply([],o).length,l=i.length-a;return l>0?l:t(e,r)}return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QueryableString=void 0;var r=function(){function t(t){this.str=t}return t.prototype.startsWith=function(t){return 0===this.str.indexOf(t)},t.prototype.endsWith=function(t){var e,n=t.split("").reverse().join("");return e=this.str.split("").reverse().join(""),this.startsWith.call({str:e},n)},t.prototype.contains=function(t){return-1!==this.str.indexOf(t)},t.prototype.equals=function(t){return this.str===t},t.prototype.value=function(){return this.str},t}();e.QueryableString=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Request=void 0;var r=n(412),i=function(){function t(t,e,n,i,o){this.id=r.id(),this.serviceIdentifier=t,this.parentContext=e,this.parentRequest=n,this.target=o,this.childRequests=[],this.bindings=Array.isArray(i)?i:[i],this.requestScope=null===n?new Map:null}return t.prototype.addChildRequest=function(e,n,r){var i=new t(e,this.parentContext,this,n,r);return this.childRequests.push(i),i},t}();e.Request=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolve=void 0;var r=n(241),i=n(350),o=n(1215),a=n(550),s=n(2039),u=function(t,e,n){try{return n()}catch(n){throw o.isStackOverflowExeption(n)?new Error(r.CIRCULAR_DEPENDENCY_IN_FACTORY(t,e.toString())):n}},l=function(t){return function(e){e.parentContext.setCurrentRequest(e);var n=e.bindings,o=e.childRequests,c=e.target&&e.target.isArray(),h=!(e.parentRequest&&e.parentRequest.target&&e.target&&e.parentRequest.target.matchesArray(e.target.serviceIdentifier));if(c&&h)return o.map((function(e){return l(t)(e)}));var f=null;if(!e.target.isOptional()||0!==n.length){var d=n[0],p=d.scope===i.BindingScopeEnum.Singleton,g=d.scope===i.BindingScopeEnum.Request;if(p&&d.activated)return d.cache;if(g&&null!==t&&t.has(d.id))return t.get(d.id);if(d.type===i.BindingTypeEnum.ConstantValue)f=d.cache,d.activated=!0;else if(d.type===i.BindingTypeEnum.Function)f=d.cache,d.activated=!0;else if(d.type===i.BindingTypeEnum.Constructor)f=d.implementationType;else if(d.type===i.BindingTypeEnum.DynamicValue&&null!==d.dynamicValue)f=u("toDynamicValue",d.serviceIdentifier,(function(){return d.dynamicValue(e.parentContext)}));else if(d.type===i.BindingTypeEnum.Factory&&null!==d.factory)f=u("toFactory",d.serviceIdentifier,(function(){return d.factory(e.parentContext)}));else if(d.type===i.BindingTypeEnum.Provider&&null!==d.provider)f=u("toProvider",d.serviceIdentifier,(function(){return d.provider(e.parentContext)}));else{if(d.type!==i.BindingTypeEnum.Instance||null===d.implementationType){var v=a.getServiceIdentifierAsString(e.serviceIdentifier);throw new Error(r.INVALID_BINDING_TYPE+" "+v)}f=s.resolveInstance(d.implementationType,o,l(t))}return"function"==typeof d.onActivation&&(f=d.onActivation(e.parentContext,f)),p&&(d.cache=f,d.activated=!0),g&&null!==t&&!t.has(d.id)&&t.set(d.id,f),f}}};e.resolve=function(t){return l(t.plan.rootRequest.requestScope)(t.plan.rootRequest)}},function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.resolveInstance=void 0;var i=n(241),o=n(350),a=n(175);e.resolveInstance=function(t,e,n){var s,u,l=null;if(e.length>0){var c=e.filter((function(t){return null!==t.target&&t.target.type===o.TargetTypeEnum.ConstructorArgument})).map(n);u=c,l=function(t,e,n){var r=e.filter((function(t){return null!==t.target&&t.target.type===o.TargetTypeEnum.ClassProperty})),i=r.map(n);return r.forEach((function(e,n){var r;r=e.target.name.value();var o=i[n];t[r]=o})),t}(l=new((s=t).bind.apply(s,r([void 0],u))),e,n)}else l=new t;return function(t,e){if(Reflect.hasMetadata(a.POST_CONSTRUCT,t)){var n=Reflect.getMetadata(a.POST_CONSTRUCT,t);try{e[n.value]()}catch(e){throw new Error(i.POST_CONSTRUCT_ERROR(t.name,e.message))}}}(t,l),l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingToSyntax=void 0;var r=n(241),i=n(350),o=n(2041),a=n(1218),s=function(){function t(t){this._binding=t}return t.prototype.to=function(t){return this._binding.type=i.BindingTypeEnum.Instance,this._binding.implementationType=t,new o.BindingInWhenOnSyntax(this._binding)},t.prototype.toSelf=function(){if("function"!=typeof this._binding.serviceIdentifier)throw new Error(""+r.INVALID_TO_SELF_VALUE);var t=this._binding.serviceIdentifier;return this.to(t)},t.prototype.toConstantValue=function(t){return this._binding.type=i.BindingTypeEnum.ConstantValue,this._binding.cache=t,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=i.BindingScopeEnum.Singleton,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toDynamicValue=function(t){return this._binding.type=i.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=t,this._binding.implementationType=null,new o.BindingInWhenOnSyntax(this._binding)},t.prototype.toConstructor=function(t){return this._binding.type=i.BindingTypeEnum.Constructor,this._binding.implementationType=t,this._binding.scope=i.BindingScopeEnum.Singleton,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toFactory=function(t){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=t,this._binding.scope=i.BindingScopeEnum.Singleton,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toFunction=function(t){if("function"!=typeof t)throw new Error(r.INVALID_FUNCTION_BINDING);var e=this.toConstantValue(t);return this._binding.type=i.BindingTypeEnum.Function,this._binding.scope=i.BindingScopeEnum.Singleton,e},t.prototype.toAutoFactory=function(t){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=function(e){return function(){return e.container.get(t)}},this._binding.scope=i.BindingScopeEnum.Singleton,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toProvider=function(t){return this._binding.type=i.BindingTypeEnum.Provider,this._binding.provider=t,this._binding.scope=i.BindingScopeEnum.Singleton,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toService=function(t){this.toDynamicValue((function(e){return e.container.get(t)}))},t}();e.BindingToSyntax=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingInWhenOnSyntax=void 0;var r=n(2042),i=n(850),o=n(851),a=function(){function t(t){this._binding=t,this._bindingWhenSyntax=new o.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new i.BindingOnSyntax(this._binding),this._bindingInSyntax=new r.BindingInSyntax(t)}return t.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},t.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},t.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},t.prototype.when=function(t){return this._bindingWhenSyntax.when(t)},t.prototype.whenTargetNamed=function(t){return this._bindingWhenSyntax.whenTargetNamed(t)},t.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},t.prototype.whenTargetTagged=function(t,e){return this._bindingWhenSyntax.whenTargetTagged(t,e)},t.prototype.whenInjectedInto=function(t){return this._bindingWhenSyntax.whenInjectedInto(t)},t.prototype.whenParentNamed=function(t){return this._bindingWhenSyntax.whenParentNamed(t)},t.prototype.whenParentTagged=function(t,e){return this._bindingWhenSyntax.whenParentTagged(t,e)},t.prototype.whenAnyAncestorIs=function(t){return this._bindingWhenSyntax.whenAnyAncestorIs(t)},t.prototype.whenNoAncestorIs=function(t){return this._bindingWhenSyntax.whenNoAncestorIs(t)},t.prototype.whenAnyAncestorNamed=function(t){return this._bindingWhenSyntax.whenAnyAncestorNamed(t)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenAnyAncestorTagged(t,e)},t.prototype.whenNoAncestorNamed=function(t){return this._bindingWhenSyntax.whenNoAncestorNamed(t)},t.prototype.whenNoAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenNoAncestorTagged(t,e)},t.prototype.whenAnyAncestorMatches=function(t){return this._bindingWhenSyntax.whenAnyAncestorMatches(t)},t.prototype.whenNoAncestorMatches=function(t){return this._bindingWhenSyntax.whenNoAncestorMatches(t)},t.prototype.onActivation=function(t){return this._bindingOnSyntax.onActivation(t)},t}();e.BindingInWhenOnSyntax=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingInSyntax=void 0;var r=n(350),i=n(1218),o=function(){function t(t){this._binding=t}return t.prototype.inRequestScope=function(){return this._binding.scope=r.BindingScopeEnum.Request,new i.BindingWhenOnSyntax(this._binding)},t.prototype.inSingletonScope=function(){return this._binding.scope=r.BindingScopeEnum.Singleton,new i.BindingWhenOnSyntax(this._binding)},t.prototype.inTransientScope=function(){return this._binding.scope=r.BindingScopeEnum.Transient,new i.BindingWhenOnSyntax(this._binding)},t}();e.BindingInSyntax=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContainerSnapshot=void 0;var r=function(){function t(){}return t.of=function(e,n){var r=new t;return r.bindings=e,r.middleware=n,r},t}();e.ContainerSnapshot=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lookup=void 0;var r=n(241),i=function(){function t(){this._map=new Map}return t.prototype.getMap=function(){return this._map},t.prototype.add=function(t,e){if(null==t)throw new Error(r.NULL_ARGUMENT);if(null==e)throw new Error(r.NULL_ARGUMENT);var n=this._map.get(t);void 0!==n?(n.push(e),this._map.set(t,n)):this._map.set(t,[e])},t.prototype.get=function(t){if(null==t)throw new Error(r.NULL_ARGUMENT);var e=this._map.get(t);if(void 0!==e)return e;throw new Error(r.KEY_NOT_FOUND)},t.prototype.remove=function(t){if(null==t)throw new Error(r.NULL_ARGUMENT);if(!this._map.delete(t))throw new Error(r.KEY_NOT_FOUND)},t.prototype.removeByCondition=function(t){var e=this;this._map.forEach((function(n,r){var i=n.filter((function(e){return!t(e)}));i.length>0?e._map.set(r,i):e._map.delete(r)}))},t.prototype.hasKey=function(t){if(null==t)throw new Error(r.NULL_ARGUMENT);return this._map.has(t)},t.prototype.clone=function(){var e=new t;return this._map.forEach((function(t,n){t.forEach((function(t){return e.add(n,t.clone())}))})),e},t.prototype.traverse=function(t){this._map.forEach((function(e,n){t(n,e)}))},t}();e.Lookup=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncContainerModule=e.ContainerModule=void 0;var r=n(412),i=function(t){this.id=r.id(),this.registry=t};e.ContainerModule=i;var o=function(t){this.id=r.id(),this.registry=t};e.AsyncContainerModule=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.injectable=void 0;var r=n(241),i=n(175);e.injectable=function(){return function(t){if(Reflect.hasOwnMetadata(i.PARAM_TYPES,t))throw new Error(r.DUPLICATED_INJECTABLE_DECORATOR);var e=Reflect.getMetadata(i.DESIGN_PARAM_TYPES,t)||[];return Reflect.defineMetadata(i.PARAM_TYPES,e,t),t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tagged=void 0;var r=n(290),i=n(374);e.tagged=function(t,e){return function(n,o,a){var s=new r.Metadata(t,e);"number"==typeof a?i.tagParameter(n,o,a,s):i.tagProperty(n,o,s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.named=void 0;var r=n(175),i=n(290),o=n(374);e.named=function(t){return function(e,n,a){var s=new i.Metadata(r.NAMED_TAG,t);"number"==typeof a?o.tagParameter(e,n,a,s):o.tagProperty(e,n,s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.optional=void 0;var r=n(175),i=n(290),o=n(374);e.optional=function(){return function(t,e,n){var a=new i.Metadata(r.OPTIONAL_TAG,!0);"number"==typeof n?o.tagParameter(t,e,n,a):o.tagProperty(t,e,a)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unmanaged=void 0;var r=n(175),i=n(290),o=n(374);e.unmanaged=function(){return function(t,e,n){var a=new i.Metadata(r.UNMANAGED_TAG,!0);o.tagParameter(t,e,n,a)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.multiInject=void 0;var r=n(175),i=n(290),o=n(374);e.multiInject=function(t){return function(e,n,a){var s=new i.Metadata(r.MULTI_INJECT_TAG,t);"number"==typeof a?o.tagParameter(e,n,a,s):o.tagProperty(e,n,s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.targetName=void 0;var r=n(175),i=n(290),o=n(374);e.targetName=function(t){return function(e,n,a){var s=new i.Metadata(r.NAME_TAG,t);o.tagParameter(e,n,a,s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.postConstruct=void 0;var r=n(241),i=n(175),o=n(290);e.postConstruct=function(){return function(t,e,n){var a=new o.Metadata(i.POST_CONSTRUCT,e);if(Reflect.hasOwnMetadata(i.POST_CONSTRUCT,t.constructor))throw new Error(r.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(i.POST_CONSTRUCT,a,t.constructor)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.multiBindToService=void 0;e.multiBindToService=function(t){return function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.forEach((function(n){return t.bind(n).toService(e)}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Symbol.for("INJECTION");function i(t,e,n,i){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return i&&!Reflect.hasMetadata(r,this,e)&&Reflect.defineMetadata(r,n(),this,e),Reflect.hasMetadata(r,this,e)?Reflect.getMetadata(r,this,e):n()},set:function(t){Reflect.defineMetadata(r,t,this,e)}})}e.makePropertyInjectDecorator=function(t,e){return function(n){return function(r,o){i(r,o,(function(){return t.get(n)}),e)}}},e.makePropertyInjectNamedDecorator=function(t,e){return function(n,r){return function(o,a){i(o,a,(function(){return t.getNamed(n,r)}),e)}}},e.makePropertyInjectTaggedDecorator=function(t,e){return function(n,r,o){return function(a,s){i(a,s,(function(){return t.getTagged(n,r,o)}),e)}}},e.makePropertyMultiInjectDecorator=function(t,e){return function(n){return function(r,o){i(r,o,(function(){return t.getAll(n)}),e)}}}},function(t,e){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(2058),i=n(1237),o=n(2088),a=n(2090),s=n(375),u=n(1246),l=n(1245);t.exports=function t(e,n,c,h,f){e!==n&&o(n,(function(o,u){if(f||(f=new r),s(o))a(e,n,u,c,t,h,f);else{var d=h?h(l(e,u),o,u+"",e,n,f):void 0;void 0===d&&(d=o),i(e,u,d)}}),u)}},function(t,e,n){var r=n(625),i=n(2064),o=n(2065),a=n(2066),s=n(2067),u=n(2068);function l(t){var e=this.__data__=new r(t);this.size=e.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,t.exports=l},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(626),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(626);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(626);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(626);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(625);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(625),i=n(1234),o=n(1236);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(853),i=n(2072),o=n(375),a=n(2074),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,h=l.hasOwnProperty,f=RegExp("^"+c.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?f:s).test(a(t))}},function(t,e,n){var r=n(854),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r,i=n(2073),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(413)["__core-js_shared__"];t.exports=r},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(2077),i=n(625),o=n(1234);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(2078),i=n(2079),o=n(2080),a=n(2081),s=n(2082);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(629);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(629),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(629),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var r=n(629);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var r=n(630);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(630);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(630);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(630);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},function(t,e,n){var r=n(2089)();t.exports=r},function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}},function(t,e,n){var r=n(1237),i=n(2091),o=n(2092),a=n(2095),s=n(2096),u=n(1241),l=n(856),c=n(2100),h=n(1243),f=n(853),d=n(375),p=n(2102),g=n(1244),v=n(1245),m=n(2106);t.exports=function(t,e,n,y,b,_,x){var w=v(t,n),O=v(e,n),S=x.get(O);if(S)r(t,n,S);else{var C=_?_(w,O,n+"",t,e,x):void 0,E=void 0===C;if(E){var T=l(O),A=!T&&h(O),M=!T&&!A&&g(O);C=O,T||A||M?l(w)?C=w:c(w)?C=a(w):A?(E=!1,C=i(O,!0)):M?(E=!1,C=o(O,!0)):C=[]:p(O)||u(O)?(C=w,u(w)?C=m(w):d(w)&&!f(w)||(C=s(O))):E=!1}E&&(x.set(O,C),b(C,O,y,_,x),x.delete(O)),r(t,n,C)}}},function(t,e,n){(function(t){var r=n(413),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(631)(t))},function(t,e,n){var r=n(2093);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(2094);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e,n){var r=n(413).Uint8Array;t.exports=r},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){var r=n(2097),i=n(1239),o=n(1240);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},function(t,e,n){var r=n(375),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(551),i=n(453);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},function(t,e,n){var r=n(857),i=n(453);t.exports=function(t){return i(t)&&r(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(551),i=n(1239),o=n(453),a=Function.prototype,s=Object.prototype,u=a.toString,l=s.hasOwnProperty,c=u.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==c}},function(t,e,n){var r=n(551),i=n(1242),o=n(453),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var r=n(1235),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(this,n(631)(t))},function(t,e,n){var r=n(2107),i=n(1246);t.exports=function(t){return r(t,i(t))}},function(t,e,n){var r=n(2108),i=n(855);t.exports=function(t,e,n,o){var a=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var l=e[s],c=o?o(n[l],t[l],l,n,t):void 0;void 0===c&&(c=t[l]),a?i(n,l,c):r(n,l,c)}return n}},function(t,e,n){var r=n(855),i=n(627),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(2110),i=n(1241),o=n(856),a=n(1243),s=n(1247),u=n(1244),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),c=!n&&i(t),h=!n&&!c&&a(t),f=!n&&!c&&!h&&u(t),d=n||c||h||f,p=d?r(t.length,String):[],g=p.length;for(var v in t)!e&&!l.call(t,v)||d&&("length"==v||h&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||p.push(v);return p}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(375),i=n(1240),o=n(2112),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var r=n(2114),i=n(2121);t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r<o;){var u=n[r];u&&t(e,u,r,a)}return e}))}},function(t,e,n){var r=n(1248),i=n(2115),o=n(2117);t.exports=function(t,e){return o(i(t,e,r),t+"")}},function(t,e,n){var r=n(2116),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a<s;)u[a]=o[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=o[a];return l[e]=n(u),r(t,this,l)}}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(2118),i=n(2120)(r);t.exports=i},function(t,e,n){var r=n(2119),i=n(1238),o=n(1248),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(627),i=n(857),o=n(1247),a=n(375);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&o(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},function(t,e,n){var r=n(2123),i=n(2126),o=n(2131),a=n(2132),s=n(2133),u=n(1249);t.exports=function(t,e,n){var l=-1,c=i,h=t.length,f=!0,d=[],p=d;if(n)f=!1,c=o;else if(h>=200){var g=e?null:s(t);if(g)return u(g);f=!1,c=a,p=new r}else p=e?[]:d;t:for(;++l<h;){var v=t[l],m=e?e(v):v;if(v=n||0!==v?v:0,f&&m==m){for(var y=p.length;y--;)if(p[y]===m)continue t;e&&p.push(m),d.push(v)}else c(p,m,n)||(p!==d&&p.push(m),d.push(v))}return d}},function(t,e,n){var r=n(1236),i=n(2124),o=n(2125);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(2127);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},function(t,e,n){var r=n(2128),i=n(2129),o=n(2130);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},function(t,e){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(2134),i=n(2135),o=n(1249),a=r&&1/o(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=a},function(t,e,n){var r=n(628)(n(413),"Set");t.exports=r},function(t,e){t.exports=function(){}},function(t,e,n){var r=n(28);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(2138),i=n(1250),o=n(2140),a=n(632);t.exports=function(t){return function(e){e=a(e);var n=i(e)?o(e):void 0,s=n?n[0]:e.charAt(0),u=n?r(n,1).join(""):e.slice(1);return s[t]()+u}}},function(t,e,n){var r=n(2139);t.exports=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:r(t,e,n)}},function(t,e){t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}},function(t,e,n){var r=n(2141),i=n(1250),o=n(2142);t.exports=function(t){return i(t)?o(t):r(t)}},function(t,e){t.exports=function(t){return t.split("")}},function(t,e){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+i+")"+"?",l="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),c="(?:"+[o+r+"?",r,a,s,n].join("|")+")",h=RegExp(i+"(?="+i+")|"+c+l,"g");t.exports=function(t){return t.match(h)||[]}},function(t,e,n){var r=n(854),i=n(2144),o=n(856),a=n(1251),s=r?r.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e,n){var r=n(632),i=n(878);t.exports=function(t){return i(r(t).toLowerCase())}},function(t,e,n){var r=n(2147),i=n(2148),o=n(2151),a=RegExp("[']","g");t.exports=function(t){return function(e){return r(o(i(e).replace(a,"")),t,"")}}},function(t,e){t.exports=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}},function(t,e,n){var r=n(2149),i=n(632),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=i(t))&&t.replace(o,r).replace(a,"")}},function(t,e,n){var r=n(2150)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});t.exports=r},function(t,e){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},function(t,e,n){var r=n(2152),i=n(2153),o=n(632),a=n(2154);t.exports=function(t,e,n){return t=o(t),void 0===(e=n?void 0:e)?i(t)?a(t):r(t):t.match(e)||[]}},function(t,e){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(n)||[]}},function(t,e){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return n.test(t)}},function(t,e){var n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",r="["+n+"]",i="\\d+",o="[\\u2700-\\u27bf]",a="[a-z\\xdf-\\xf6\\xf8-\\xff]",s="[^\\ud800-\\udfff"+n+i+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",c="[A-Z\\xc0-\\xd6\\xd8-\\xde]",h="(?:"+a+"|"+s+")",f="(?:"+c+"|"+s+")",d="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",p="[\\ufe0e\\ufe0f]?"+d+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",u,l].join("|")+")[\\ufe0e\\ufe0f]?"+d+")*"),g="(?:"+[o,u,l].join("|")+")"+p,v=RegExp([c+"?"+a+"+(?:['](?:d|ll|m|re|s|t|ve))?(?="+[r,c,"$"].join("|")+")",f+"+(?:['](?:D|LL|M|RE|S|T|VE))?(?="+[r,c+h,"$"].join("|")+")",c+"?"+h+"+(?:['](?:d|ll|m|re|s|t|ve))?",c+"+(?:['](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i,g].join("|"),"g");t.exports=function(t){return t.match(v)||[]}},function(t,e){t.exports=function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}},function(t,e,n){var r=n(2157),i=n(375),o=n(1251),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||u.test(t)?l(t.slice(2),n?2:8):a.test(t)?NaN:+t}},function(t,e,n){var r=n(2158),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},function(t,e){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},function(t,e,n){"use strict";n.r(e),function(t,r,i){n.d(e,"Aggregation",(function(){return Jb})),n.d(e,"BACK_GROUND_GROUP_CONTAINER_Z_INDEX",(function(){return Qi})),n.d(e,"BRUSH_AUTO_SCROLL_INITIAL_CONFIG",(function(){return by})),n.d(e,"BaseBrushSelection",(function(){return yE})),n.d(e,"BaseCell",(function(){return zx})),n.d(e,"BaseDataSet",(function(){return CC})),n.d(e,"BaseEvent",(function(){return sE})),n.d(e,"BaseTooltip",(function(){return EE})),n.d(e,"CORNER_MAX_WIDTH_RATIO",(function(){return $o})),n.d(e,"CellBorderPosition",(function(){return Qb})),n.d(e,"CellTypes",(function(){return ny})),n.d(e,"ColBrushSelection",(function(){return _E})),n.d(e,"ColCell",(function(){return Nw})),n.d(e,"ColHeader",(function(){return HC})),n.d(e,"CopyMIMEType",(function(){return ix})),n.d(e,"CopyType",(function(){return zy})),n.d(e,"CornerCell",(function(){return Bw})),n.d(e,"CornerCellClick",(function(){return fE})),n.d(e,"CornerHeader",(function(){return WC})),n.d(e,"CornerNodeType",(function(){return t_})),n.d(e,"CustomTreePivotDataSet",(function(){return AC})),n.d(e,"DEBUG_HEADER_LAYOUT",(function(){return Wb})),n.d(e,"DEBUG_TRANSFORM_DATA",(function(){return Hb})),n.d(e,"DEBUG_VIEW_RENDER",(function(){return Yb})),n.d(e,"DEFAULT_DATA_CONFIG",(function(){return sa})),n.d(e,"DEFAULT_FONT_COLOR",(function(){return oa})),n.d(e,"DEFAULT_OPTIONS",(function(){return Iy})),n.d(e,"DEFAULT_PAGE_INDEX",(function(){return db})),n.d(e,"DEFAULT_STYLE",(function(){return My})),n.d(e,"DEFAULT_TREE_ROW_WIDTH",(function(){return Ay})),n.d(e,"DEFAULT_VALUE_RANGES",(function(){return ra})),n.d(e,"DataCell",(function(){return Hx})),n.d(e,"DataCellBrushSelection",(function(){return bE})),n.d(e,"DataCellClick",(function(){return uE})),n.d(e,"DataCellMultiSelection",(function(){return wE})),n.d(e,"DebuggerUtil",(function(){return Xb})),n.d(e,"ELLIPSIS_SYMBOL",(function(){return ta})),n.d(e,"EMPTY_PLACEHOLDER",(function(){return Bo})),n.d(e,"EXTRA_COLUMN_FIELD",(function(){return qi})),n.d(e,"EXTRA_FIELD",(function(){return $i})),n.d(e,"EventController",(function(){return pE})),n.d(e,"FONT_COLOR_BRIGHTNESS_THRESHOLD",(function(){return ia})),n.d(e,"FONT_FAMILY",(function(){return $y})),n.d(e,"FRONT_GROUND_GROUP_BRUSH_SELECTION_Z_INDEX",(function(){return ro})),n.d(e,"FRONT_GROUND_GROUP_COL_FROZEN_Z_INDEX",(function(){return eo})),n.d(e,"FRONT_GROUND_GROUP_COL_SCROLL_Z_INDEX",(function(){return to})),n.d(e,"FRONT_GROUND_GROUP_CONTAINER_Z_INDEX",(function(){return Ji})),n.d(e,"FRONT_GROUND_GROUP_RESIZE_AREA_Z_INDEX",(function(){return no})),n.d(e,"Frame",(function(){return YC})),n.d(e,"FrozenCellGroupMap",(function(){return ua})),n.d(e,"FrozenCellType",(function(){return Ko})),n.d(e,"FrozenGroup",(function(){return Qo})),n.d(e,"GEvent",(function(){return ft})),n.d(e,"GuiIcon",(function(){return n_})),n.d(e,"HORIZONTAL_RESIZE_AREA_KEY_PRE",(function(){return Po})),n.d(e,"HOVER_FOCUS_DURATION",(function(){return dy})),n.d(e,"HeaderCell",(function(){return Dw})),n.d(e,"Hierarchy",(function(){return _b})),n.d(e,"HoverEvent",(function(){return dE})),n.d(e,"ID_SEPARATOR",(function(){return No})),n.d(e,"IMAGE",(function(){return Xo})),n.d(e,"INTERACTION_STATE_INFO_KEY",(function(){return vy})),n.d(e,"INTERVAL_BAR_HEIGHT",(function(){return qy})),n.d(e,"InteractionBrushSelectionStage",(function(){return ly})),n.d(e,"InteractionEvent",(function(){return Ui})),n.d(e,"InteractionKeyboardKey",(function(){return cy})),n.d(e,"InteractionName",(function(){return ty})),n.d(e,"InteractionStateName",(function(){return ey})),n.d(e,"InterceptType",(function(){return fy})),n.d(e,"KEY_COL_REAL_WIDTH_INFO",(function(){return Ro})),n.d(e,"KEY_GROUP_BACK_GROUND",(function(){return uo})),n.d(e,"KEY_GROUP_COL_FROZEN",(function(){return Mo})),n.d(e,"KEY_GROUP_COL_FROZEN_TRAILING",(function(){return Io})),n.d(e,"KEY_GROUP_COL_HORIZONTAL_RESIZE_AREA",(function(){return To})),n.d(e,"KEY_GROUP_COL_RESIZE_AREA",(function(){return Co})),n.d(e,"KEY_GROUP_COL_SCROLL",(function(){return Ao})),n.d(e,"KEY_GROUP_CORNER_RESIZE_AREA",(function(){return So})),n.d(e,"KEY_GROUP_FORE_GROUND",(function(){return lo})),n.d(e,"KEY_GROUP_FROZEN_COL_RESIZE_AREA",(function(){return Eo})),n.d(e,"KEY_GROUP_FROZEN_ROW_RESIZE_AREA",(function(){return xo})),n.d(e,"KEY_GROUP_FROZEN_SPLIT_LINE",(function(){return wo})),n.d(e,"KEY_GROUP_GRID_GROUP",(function(){return jo})),n.d(e,"KEY_GROUP_MERGED_CELLS",(function(){return fo})),n.d(e,"KEY_GROUP_PANEL_FROZEN_BOTTOM",(function(){return bo})),n.d(e,"KEY_GROUP_PANEL_FROZEN_COL",(function(){return go})),n.d(e,"KEY_GROUP_PANEL_FROZEN_ROW",(function(){return po})),n.d(e,"KEY_GROUP_PANEL_FROZEN_TOP",(function(){return yo})),n.d(e,"KEY_GROUP_PANEL_FROZEN_TRAILING_COL",(function(){return mo})),n.d(e,"KEY_GROUP_PANEL_FROZEN_TRAILING_ROW",(function(){return vo})),n.d(e,"KEY_GROUP_PANEL_GROUND",(function(){return co})),n.d(e,"KEY_GROUP_PANEL_SCROLL",(function(){return ho})),n.d(e,"KEY_GROUP_ROW_INDEX_RESIZE_AREA",(function(){return Oo})),n.d(e,"KEY_GROUP_ROW_RESIZE_AREA",(function(){return _o})),n.d(e,"KEY_SERIES_NUMBER_NODE",(function(){return ko})),n.d(e,"LAYOUT_SAMPLE_COUNT",(function(){return qo})),n.d(e,"LayoutWidthTypes",(function(){return Ey})),n.d(e,"MIN_CELL_HEIGHT",(function(){return Ho})),n.d(e,"MIN_CELL_WIDTH",(function(){return Go})),n.d(e,"MIN_DEVICE_PIXEL_RATIO",(function(){return Ty})),n.d(e,"MIN_SCROLL_BAR_HEIGHT",(function(){return jy})),n.d(e,"MergedCell",(function(){return Wx})),n.d(e,"MergedCellClick",(function(){return lE})),n.d(e,"MergedCellConvertTempMergedCells",(function(){return iw})),n.d(e,"MiniChartTypes",(function(){return Yi})),n.d(e,"Node",(function(){return bb})),n.d(e,"OriginEventType",(function(){return Gi})),n.d(e,"PADDING_DOWN",(function(){return Vo})),n.d(e,"PADDING_LEFT",(function(){return Uo})),n.d(e,"PADDING_RIGHT",(function(){return zo})),n.d(e,"PADDING_TOP",(function(){return Fo})),n.d(e,"PALETTE_MAP",(function(){return Xy})),n.d(e,"PANEL_GROUP_FROZEN_GROUP_Z_INDEX",(function(){return ao})),n.d(e,"PANEL_GROUP_GROUP_CONTAINER_Z_INDEX",(function(){return io})),n.d(e,"PANEL_GROUP_HOVER_BOX_GROUP_Z_INDEX",(function(){return so})),n.d(e,"PANEL_GROUP_SCROLL_GROUP_Z_INDEX",(function(){return oo})),n.d(e,"PRECISION",(function(){return Wo})),n.d(e,"PivotDataSet",(function(){return EC})),n.d(e,"PivotSheet",(function(){return AE})),n.d(e,"RESIZE_END_GUIDE_LINE_ID",(function(){return Sy})),n.d(e,"RESIZE_MASK_ID",(function(){return Cy})),n.d(e,"RESIZE_START_GUIDE_LINE_ID",(function(){return Oy})),n.d(e,"REVERSE_FONT_COLOR",(function(){return aa})),n.d(e,"ROOT_BEGINNING_REGEX",(function(){return Yo})),n.d(e,"ROOT_ID",(function(){return Do})),n.d(e,"RangeSelection",(function(){return gE})),n.d(e,"ResizeAreaEffect",(function(){return xy})),n.d(e,"ResizeDirectionType",(function(){return _y})),n.d(e,"ResizeType",(function(){return wy})),n.d(e,"RootInteraction",(function(){return SE})),n.d(e,"RowBrushSelection",(function(){return xE})),n.d(e,"RowCell",(function(){return qw})),n.d(e,"RowColumnClick",(function(){return cE})),n.d(e,"RowColumnResize",(function(){return OE})),n.d(e,"RowHeader",(function(){return XC})),n.d(e,"RowTextClick",(function(){return hE})),n.d(e,"S2Event",(function(){return Hi})),n.d(e,"S2_PREFIX_CLS",(function(){return ea})),n.d(e,"SERIES_NUMBER_FIELD",(function(){return Ki})),n.d(e,"SHAPE_ATTRS_MAP",(function(){return gy})),n.d(e,"SHAPE_STYLE_MAP",(function(){return py})),n.d(e,"SQUARE_LINE_CAP",(function(){return Jo})),n.d(e,"ScrollDirection",(function(){return yy})),n.d(e,"ScrollbarPositionType",(function(){return my})),n.d(e,"SelectedCellMove",(function(){return mE})),n.d(e,"SeriesNumberHeader",(function(){return $C})),n.d(e,"SortMethodType",(function(){return hy})),n.d(e,"SpreadSheet",(function(){return TE})),n.d(e,"Store",(function(){return r_})),n.d(e,"TABLE_COL_HORIZONTAL_RESIZE_AREA_KEY",(function(){return Lo})),n.d(e,"TOOLTIP_CONTAINER_CLS",(function(){return ib})),n.d(e,"TOOLTIP_CONTAINER_HIDE_CLS",(function(){return ab})),n.d(e,"TOOLTIP_CONTAINER_SHOW_CLS",(function(){return ob})),n.d(e,"TOOLTIP_OPERATION_PREFIX_CLS",(function(){return sb})),n.d(e,"TOOLTIP_POSITION_OFFSET",(function(){return ub})),n.d(e,"TOOLTIP_PREFIX_CLS",(function(){return rb})),n.d(e,"TOTAL_VALUE",(function(){return Zi})),n.d(e,"TableColCell",(function(){return Qw})),n.d(e,"TableCornerCell",(function(){return Jw})),n.d(e,"TableDataCell",(function(){return tO})),n.d(e,"TableDataSet",(function(){return TC})),n.d(e,"TableSeriesCell",(function(){return eO})),n.d(e,"TableSheet",(function(){return IE})),n.d(e,"VALUE_FIELD",(function(){return Xi})),n.d(e,"VALUE_RANGES_KEY",(function(){return na})),n.d(e,"adjustColHeaderScrollingTextPosition",(function(){return H_})),n.d(e,"adjustColHeaderScrollingViewport",(function(){return G_})),n.d(e,"auto",(function(){return f_})),n.d(e,"buildTableHierarchy",(function(){return Gb})),n.d(e,"clearState",(function(){return cO})),n.d(e,"convertString",(function(){return lx})),n.d(e,"copyData",(function(){return Dx})),n.d(e,"copyToClipboard",(function(){return Ax})),n.d(e,"copyToClipboardByClipboard",(function(){return Tx})),n.d(e,"copyToClipboardByExecCommand",(function(){return Ex})),n.d(e,"customMerge",(function(){return pO})),n.d(e,"differenceTempMergedCells",(function(){return ow})),n.d(e,"download",(function(){return Mx})),n.d(e,"drawBar",(function(){return M_})),n.d(e,"drawBullet",(function(){return P_})),n.d(e,"drawInterval",(function(){return k_})),n.d(e,"drawLine",(function(){return A_})),n.d(e,"drawObjectText",(function(){return tx})),n.d(e,"extendLocale",(function(){return tb})),n.d(e,"generateId",(function(){return Ab})),n.d(e,"generatePalette",(function(){return Wy})),n.d(e,"generateStandardColors",(function(){return Hy})),n.d(e,"getActiveCellsInfo",(function(){return Jx})),n.d(e,"getActiveHoverRowColCells",(function(){return Bx})),n.d(e,"getAutoAdjustPosition",(function(){return eC})),n.d(e,"getBaseCellData",(function(){return Nx})),n.d(e,"getBorderPositionAndStyle",(function(){return U_})),n.d(e,"getBulletRangeColor",(function(){return I_})),n.d(e,"getCellMeta",(function(){return rO})),n.d(e,"getCellWidth",(function(){return ex})),n.d(e,"getCellsTooltipData",(function(){return bC})),n.d(e,"getClassNameWithPrefix",(function(){return SC})),n.d(e,"getContentArea",(function(){return R_})),n.d(e,"getContentAreaForMultiData",(function(){return J_})),n.d(e,"getCopyData",(function(){return xx})),n.d(e,"getDataCellId",(function(){return Gx})),n.d(e,"getDescription",(function(){return vC})),n.d(e,"getEllipsisText",(function(){return $_})),n.d(e,"getEllipsisTextInner",(function(){return Y_})),n.d(e,"getEmptyPlaceholder",(function(){return Q_})),n.d(e,"getFieldFormatter",(function(){return aC})),n.d(e,"getFieldList",(function(){return uC})),n.d(e,"getFriendlyVal",(function(){return oC})),n.d(e,"getHeadInfo",(function(){return lC})),n.d(e,"getIcon",(function(){return Kb})),n.d(e,"getInvisibleInfo",(function(){return Zx})),n.d(e,"getLang",(function(){return Qy})),n.d(e,"getListItem",(function(){return sC})),n.d(e,"getLocale",(function(){return eb})),n.d(e,"getMaxTextWidth",(function(){return N_})),n.d(e,"getMergedQuery",(function(){return rC})),n.d(e,"getNextEdge",(function(){return $x})),n.d(e,"getPalette",(function(){return mb})),n.d(e,"getPolygonPoints",(function(){return qx})),n.d(e,"getRangeIndex",(function(){return oO})),n.d(e,"getRectangleEdges",(function(){return Yx})),n.d(e,"getRowCellForSelectedCell",(function(){return aO})),n.d(e,"getSafetyDataConfig",(function(){return vO})),n.d(e,"getSafetyOptions",(function(){return mO})),n.d(e,"getScrollOffsetForCol",(function(){return fO})),n.d(e,"getScrollOffsetForRow",(function(){return dO})),n.d(e,"getSelectedCellIndexes",(function(){return dC})),n.d(e,"getSelectedCellsData",(function(){return pC})),n.d(e,"getSelectedCellsMeta",(function(){return vx})),n.d(e,"getSelectedData",(function(){return Sx})),n.d(e,"getSortByMeasureValues",(function(){return Pw})),n.d(e,"getSortTypeIcon",(function(){return Rw})),n.d(e,"getSummaries",(function(){return gC})),n.d(e,"getSummaryName",(function(){return hC})),n.d(e,"getTempMergedCell",(function(){return Qx})),n.d(e,"getTextAndFollowingIconPosition",(function(){return F_})),n.d(e,"getTextAreaRange",(function(){return V_})),n.d(e,"getTextPosition",(function(){return z_})),n.d(e,"getTheme",(function(){return yb})),n.d(e,"getTooltipData",(function(){return mC})),n.d(e,"getTooltipDefaultOptions",(function(){return nC})),n.d(e,"getTooltipDetailList",(function(){return cC})),n.d(e,"getTooltipOperatorHiddenColumnsMenu",(function(){return lb})),n.d(e,"getTooltipOperatorSortMenus",(function(){return hb})),n.d(e,"getTooltipOperatorTableSortMenus",(function(){return fb})),n.d(e,"getTooltipOperatorTrendMenu",(function(){return cb})),n.d(e,"getTooltipOptions",(function(){return xC})),n.d(e,"getTooltipOptionsByCellType",(function(){return _C})),n.d(e,"getTooltipVisibleOperator",(function(){return wC})),n.d(e,"getValidFrozenOptions",(function(){return p_})),n.d(e,"getVerticalPosition",(function(){return B_})),n.d(e,"getVisibleInfo",(function(){return Kx})),n.d(e,"handleDataItem",(function(){return Vx})),n.d(e,"handleSortAction",(function(){return Lw})),n.d(e,"i18n",(function(){return nb})),n.d(e,"includeCell",(function(){return Ux})),n.d(e,"isAscSort",(function(){return Ow})),n.d(e,"isDescSort",(function(){return Sw})),n.d(e,"isIPhoneX",(function(){return gb})),n.d(e,"isMobile",(function(){return pb})),n.d(e,"isMultiSelectionKey",(function(){return nO})),n.d(e,"isUpDataValue",(function(){return q_})),n.d(e,"isWindows",(function(){return vb})),n.d(e,"keyEqualTo",(function(){return rx})),n.d(e,"measureTextWidth",(function(){return W_})),n.d(e,"measureTextWidthRoughly",(function(){return X_})),n.d(e,"mergeCell",(function(){return tw})),n.d(e,"mergeCellInfo",(function(){return yC})),n.d(e,"mergeTempMergedCell",(function(){return rw})),n.d(e,"processCopyData",(function(){return gx})),n.d(e,"processSort",(function(){return jw})),n.d(e,"registerIcon",(function(){return Zb})),n.d(e,"removeUnmergedCellsInfo",(function(){return ew})),n.d(e,"renderCircle",(function(){return y_})),n.d(e,"renderIcon",(function(){return S_})),n.d(e,"renderLine",(function(){return __})),n.d(e,"renderMiniChart",(function(){return L_})),n.d(e,"renderPolygon",(function(){return v_})),n.d(e,"renderPolyline",(function(){return m_})),n.d(e,"renderRect",(function(){return g_})),n.d(e,"renderText",(function(){return b_})),n.d(e,"renderTreeIcon",(function(){return C_})),n.d(e,"safeJsonParse",(function(){return nx})),n.d(e,"scale",(function(){return T_})),n.d(e,"selectCells",(function(){return iO})),n.d(e,"setLang",(function(){return Jy})),n.d(e,"setState",(function(){return hO})),n.d(e,"setTooltipContainerStyle",(function(){return iC})),n.d(e,"sortAction",(function(){return Ew})),n.d(e,"sortByCustom",(function(){return Aw})),n.d(e,"sortByFunc",(function(){return Mw})),n.d(e,"sortByMethod",(function(){return Iw})),n.d(e,"splitTotal",(function(){return c_})),n.d(e,"transformRatioToPercent",(function(){return j_})),n.d(e,"unique",(function(){return Xx})),n.d(e,"unmergeCell",(function(){return nw})),n.d(e,"updateAllColHeaderCellState",(function(){return Fx})),n.d(e,"updateFillOpacity",(function(){return w_})),n.d(e,"updateMergedCells",(function(){return aw})),n.d(e,"updateRowColCells",(function(){return sO})),n.d(e,"updateShapeAttr",(function(){return x_})),n.d(e,"updateStrokeOpacity",(function(){return O_})),n.d(e,"verifyTheElementInTooltip",(function(){return OC}));var o=Object.freeze({__proto__:null,get Base(){return vi},get Circle(){return mi},get Ellipse(){return bi},get Image(){return xi},get Line(){return Oi},get Marker(){return Ci},get Path(){return Li},get Polygon(){return Di},get Polyline(){return Ni},get Rect(){return Bi},get Text(){return Fi}}),a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var u=function(){return(u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};var l=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},c={}.toString,h=function(t,e){return c.call(t)==="[object "+e+"]"},f=function(t){return h(t,"Function")},d=function(t){return null==t},p=function(t){return Array.isArray?Array.isArray(t):h(t,"Array")},g=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};function v(t,e){if(t)if(p(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if(g(t))for(var i in t)if(t.hasOwnProperty(i)&&!1===e(t[i],i))break}var m=function(t){return"object"==typeof t&&null!==t},y=function(t){if(p(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},b=function(t){if(p(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},_=function(t){return h(t,"String")},x=function(t){return h(t,"Number")};var w=function(t,e){return(t%e+e)%e},O=Math.PI/180,S=function(t){return O*t},C=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return v(t,(function(n,r){f(t)&&"prototype"===r||e.push(n)})),e},E=function(t){var e=function(t){return d(t)?"":t.toString()}(t);return e.charAt(0).toUpperCase()+e.substring(1)};function T(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function A(t,e,n,r){return e&&T(t,e),n&&T(t,n),r&&T(t,r),t}var M,I=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(_(t)||_(e))return!1;if(l(t)||l(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length&&(n=I(t[r],e[r]));r++);return n}if(m(t)||m(e)){var i=Object.keys(t),o=Object.keys(e);if(i.length!==o.length)return!1;for(n=!0,r=0;r<i.length&&(n=I(t[i[r]],e[i[r]]));r++);return n}return!1},j={},k=function(t){return j[t=t||"g"]?j[t]+=1:j[t]=1,t+j[t]},P=function(){};!function(t,e){if(!f(t))throw new TypeError("Expected a function");var n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,r);return a.set(o,s),s};n.cache=new Map}((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return M||(M=document.createElement("canvas").getContext("2d")),M.font=[o,a,i,n+"px",r].join(" "),M.measureText(_(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}([t],C(e)).join("")}));var L="\t\n\v\f\r    \u2028\u2029",R=new RegExp("([a-z])["+L+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+L+"]*,?["+L+"]*)+)","ig"),D=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+L+"]*,?["+L+"]*","ig"),N=function(t){if(!t)return null;if(p(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(R,(function(r,i,o){var a=[],s=i.toLowerCase();if(o.replace(D,(function(t,e){e&&a.push(+e)})),"m"===s&&a.length>2&&(n.push([i].concat(a.splice(0,2))),s="l",i="m"===i?"l":"L"),"o"===s&&1===a.length&&n.push([i,a[0]]),"r"===s)n.push([i].concat(a));else for(;a.length>=e[s]&&(n.push([i].concat(a.splice(0,e[s]))),e[s]););return t})),n},B=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},F=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),u=t+n*Math.cos(-i*a);o=[["M",s,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*a)]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},z=function(t){if(!(t=N(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,s=0,u=0;"M"===t[0][0]&&(a=i=+t[0][1],s=o=+t[0][2],u++,r[0]=["M",i,o]);for(var l=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),c=void 0,h=void 0,f=u,d=t.length;f<d;f++){if(r.push(c=[]),(e=(h=t[f])[0])!==e.toUpperCase())switch(c[0]=e.toUpperCase(),c[0]){case"A":c[1]=h[1],c[2]=h[2],c[3]=h[3],c[4]=h[4],c[5]=h[5],c[6]=+h[6]+i,c[7]=+h[7]+o;break;case"V":c[1]=+h[1]+o;break;case"H":c[1]=+h[1]+i;break;case"R":for(var p=2,g=(n=[i,o].concat(h.slice(1))).length;p<g;p++)n[p]=+n[p]+i,n[++p]=+n[p]+o;r.pop(),r=r.concat(B(n,l));break;case"O":r.pop(),(n=F(i,o,h[1],h[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(F(i,o,h[1],h[2],h[3])),c=["U"].concat(r[r.length-1].slice(-2));break;case"M":a=+h[1]+i,s=+h[2]+o;break;default:for(p=1,g=h.length;p<g;p++)c[p]=+h[p]+(p%2?i:o)}else if("R"===e)n=[i,o].concat(h.slice(1)),r.pop(),r=r.concat(B(n,l)),c=["R"].concat(h.slice(-2));else if("O"===e)r.pop(),(n=F(i,o,h[1],h[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(F(i,o,h[1],h[2],h[3])),c=["U"].concat(r[r.length-1].slice(-2));else for(var v=0,m=h.length;v<m;v++)c[v]=h[v];if("O"!==(e=e.toUpperCase()))switch(c[0]){case"Z":i=+a,o=+s;break;case"H":i=c[1];break;case"V":o=c[1];break;case"M":a=c[c.length-2],s=c[c.length-1];break;default:i=c[c.length-2],o=c[c.length-1]}}return r},V=function(t,e,n,r){return[t,e,n,r,n,r]},U=function(t,e,n,r,i,o){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]},G=function(t,e,n,r,i,o,a,s,u,l){n===r&&(n+=1);var c,h,f,d,p,g=120*Math.PI/180,v=Math.PI/180*(+i||0),m=[],y=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(l)h=l[0],f=l[1],d=l[2],p=l[3];else{t=(c=y(t,e,-v)).x,e=c.y,s=(c=y(s,u,-v)).x,u=c.y,t===s&&e===u&&(s+=1,u+=1);var b=(t-s)/2,_=(e-u)/2,x=b*b/(n*n)+_*_/(r*r);x>1&&(n*=x=Math.sqrt(x),r*=x);var w=n*n,O=r*r,S=(o===a?-1:1)*Math.sqrt(Math.abs((w*O-w*_*_-O*b*b)/(w*_*_+O*b*b)));d=S*n*_/r+(t+s)/2,p=S*-r*b/n+(e+u)/2,h=Math.asin(((e-p)/r).toFixed(9)),f=Math.asin(((u-p)/r).toFixed(9)),h=t<d?Math.PI-h:h,f=s<d?Math.PI-f:f,h<0&&(h=2*Math.PI+h),f<0&&(f=2*Math.PI+f),a&&h>f&&(h-=2*Math.PI),!a&&f>h&&(f-=2*Math.PI)}var C=f-h;if(Math.abs(C)>g){var E=f,T=s,A=u;f=h+g*(a&&f>h?1:-1),s=d+n*Math.cos(f),u=p+r*Math.sin(f),m=G(s,u,n,r,i,0,a,T,A,[f,E,d,p])}C=f-h;var M=Math.cos(h),I=Math.sin(h),j=Math.cos(f),k=Math.sin(f),P=Math.tan(C/4),L=4/3*n*P,R=4/3*r*P,D=[t,e],N=[t+L*I,e-R*M],B=[s+L*k,u-R*j],F=[s,u];if(N[0]=2*D[0]-N[0],N[1]=2*D[1]-N[1],l)return[N,B,F].concat(m);for(var z=[],V=0,U=(m=[N,B,F].concat(m).join().split(",")).length;V<U;V++)z[V]=V%2?y(m[V-1],m[V],v).y:y(m[V],m[V+1],v).x;return z},H=function(t,e){var n,r=z(t),i=e&&z(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],l="",c="",h=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(G.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(U(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(U(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(V(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(V(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(V(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(V(e.x,e.y,e.X,e.Y))}return t},f=function(t,e){if(t[e].length>7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},d=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var p=0;p<n;p++){r[p]&&(l=r[p][0]),"C"!==l&&(s[p]=l,p&&(c=s[p-1])),r[p]=h(r[p],o,c),"A"!==s[p]&&"C"===l&&(s[p]="C"),f(r,p),i&&(i[p]&&(l=i[p][0]),"C"!==l&&(u[p]=l,p&&(c=u[p-1])),i[p]=h(i[p],a,c),"A"!==u[p]&&"C"===l&&(u[p]="C"),f(i,p)),d(r,i,o,a,p),d(i,r,a,o,p);var g=r[p],v=i&&i[p],m=g.length,y=i&&v.length;o.x=g[m-2],o.y=g[m-1],o.bx=parseFloat(g[m-4])||o.x,o.by=parseFloat(g[m-3])||o.y,a.bx=i&&(parseFloat(v[y-4])||a.x),a.by=i&&(parseFloat(v[y-3])||a.y),a.x=i&&v[y-2],a.y=i&&v[y-1]}return i?[r,i]:r},W=/,?([a-z]),?/gi,Y=function(t){return t.join(",").replace(W,"$1")},X=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},$=function(t,e,n,r,i,o,a,s,u){null===u&&(u=1);for(var l=(u=u>1?1:u<0?0:u)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,d=0;d<12;d++){var p=l*c[d]+l,g=X(p,t,n,i,a),v=X(p,e,r,o,s),m=g*g+v*v;f+=h[d]*Math.sqrt(m)}return l*f},q=function(t,e,n,r,i,o,a,s){for(var u,l,c,h,f=[],d=[[],[]],p=0;p<2;++p)if(0===p?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,c=3*n-3*t):(l=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,c=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(h=-c/l)>0&&h<1&&f.push(h)}else{var g=l*l-4*c*u,v=Math.sqrt(g);if(!(g<0)){var m=(-l+v)/(2*u);m>0&&m<1&&f.push(m);var y=(-l-v)/(2*u);y>0&&y<1&&f.push(y)}}for(var b,_=f.length,x=_;_--;)b=1-(h=f[_]),d[0][_]=b*b*b*t+3*b*b*h*n+3*b*h*h*i+h*h*h*a,d[1][_]=b*b*b*e+3*b*b*h*r+3*b*h*h*o+h*h*h*s;return d[0][x]=t,d[1][x]=e,d[0][x+1]=a,d[1][x+1]=s,d[0].length=d[1].length=x+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},Z=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,s)||Math.min(e,r)>Math.max(o,s))){var u=(t-n)*(o-s)-(e-r)*(i-a);if(u){var l=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/u,c=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/u,h=+l.toFixed(2),f=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,a).toFixed(2)||h>+Math.max(i,a).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(o,s).toFixed(2)||f>+Math.max(o,s).toFixed(2)))return{x:l,y:c}}}},K=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},Q=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=Y,o},J=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:Q(t,e,n,r),vb:[t,e,n,r].join(" ")}},tt=function(t,e,n,r,i,o,a,s){p(t)||(t=[t,e,n,r,i,o,a,s]);var u=q.apply(null,t);return J(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},et=function(t,e,n,r,i,o,a,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),f=u*u,d=f*u,p=t+2*u*(n-t)+f*(i-2*n+t),g=e+2*u*(r-e)+f*(o-2*r+e),v=n+2*u*(i-n)+f*(a-2*i+n),m=r+2*u*(o-r)+f*(s-2*o+r);return{x:c*t+3*h*u*n+3*l*u*u*i+d*a,y:c*e+3*h*u*r+3*l*u*u*o+d*s,m:{x:p,y:g},n:{x:v,y:m},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*a,y:l*o+u*s},alpha:90-180*Math.atan2(p-v,g-m)/Math.PI}},nt=function(t,e,n){if(!function(t,e){return t=J(t),e=J(e),K(e,t.x,t.y)||K(e,t.x2,t.y)||K(e,t.x,t.y2)||K(e,t.x2,t.y2)||K(t,e.x,e.y)||K(t,e.x2,e.y)||K(t,e.x,e.y2)||K(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(tt(t),tt(e)))return n?0:[];for(var r=~~($.apply(0,t)/8),i=~~($.apply(0,e)/8),o=[],a=[],s={},u=n?0:[],l=0;l<r+1;l++){var c=et.apply(0,t.concat(l/r));o.push({x:c.x,y:c.y,t:l/r})}for(l=0;l<i+1;l++){c=et.apply(0,e.concat(l/i));a.push({x:c.x,y:c.y,t:l/i})}for(l=0;l<r;l++)for(var h=0;h<i;h++){var f=o[l],d=o[l+1],p=a[h],g=a[h+1],v=Math.abs(d.x-f.x)<.001?"y":"x",m=Math.abs(g.x-p.x)<.001?"y":"x",y=Z(f.x,f.y,d.x,d.y,p.x,p.y,g.x,g.y);if(y){if(s[y.x.toFixed(4)]===y.y.toFixed(4))continue;s[y.x.toFixed(4)]=y.y.toFixed(4);var b=f.t+Math.abs((y[v]-f[v])/(d[v]-f[v]))*(d.t-f.t),_=p.t+Math.abs((y[m]-p[m])/(g[m]-p[m]))*(g.t-p.t);b>=0&&b<=1&&_>=0&&_<=1&&(n?u+=1:u.push({x:y.x,y:y.y,t1:b,t2:_}))}}return u};function rt(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var o=[],a=0;a<e.length-1;a++)0===a&&n.push(e[0]),a===e.length-2&&r.push(e[a+1]),o[a]=[(1-i)*e[a][0]+i*e[a+1][0],(1-i)*e[a][1]+i*e[a+1][1]];t(o,i)}}(t,e),{left:n,right:r.reverse()}}var it=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,a=1/n,s=0;s<n-1;s++){var u=rt(o,a/(1-a*s));i.push(u.left),o=u.right}return i.push(o),i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},ot=function(t,e){if(t.length!==e.length)return!1;var n=!0;return v(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function at(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var st=function(t,e){var n=function(t,e){var n,r,i=t.length,o=e.length,a=0;if(0===i||0===o)return null;for(var s=[],u=0;u<=i;u++)s[u]=[],s[u][0]={min:u};for(var l=0;l<=o;l++)s[0][l]={min:l};for(u=1;u<=i;u++){n=t[u-1];for(l=1;l<=o;l++){r=e[l-1],a=ot(n,r)?0:1;var c=s[u-1][l].min+1,h=s[u][l-1].min+1,f=s[u-1][l-1].min+a;s[u][l]=at(c,h,f)}}return s}(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i].min!==r){for(var u=1;u<=r;u++){var l=n[u][u].min;s=u;for(var c=a;c<=i;c++)n[u][c].min<l&&(l=n[u][c].min,s=c);a=s,n[u][a].type&&o.push({index:u-1,type:n[u][a].type})}for(u=o.length-1;u>=0;u--)a=o[u].index,"add"===o[u].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var h=i-(r=t.length);if(r<i)for(u=0;u<h;u++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};function ut(t,e,n){for(var r,i=[].concat(t),o=1/(n+1),a=lt(e)[0],s=1;s<=n;s++)o*=s,0===(r=Math.floor(t.length*o))?i.unshift([a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]):i.splice(r,0,[a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]);return i}function lt(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}var ct=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=lt(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=ut(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=ut(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=ut(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t},ht=Object.freeze({__proto__:null,catmullRomToBezier:B,fillPath:function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(a=0;a<r;a++){var s=Math.floor(i*a);o[s]=(o[s]||0)+1}var u=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(it(t[i],t[i+1],r))}),[]);return u.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||u.push("Z"),u},fillPathByDiff:st,formatPath:ct,intersection:function(t,e){return function(t,e,n){var r,i,o,a,s,u,l,c,h,f;t=H(t),e=H(e);for(var d=n?0:[],p=0,g=t.length;p<g;p++){var v=t[p];if("M"===v[0])r=s=v[1],i=u=v[2];else{"C"===v[0]?(h=[r,i].concat(v.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,u,s,u],r=s,i=u);for(var m=0,y=e.length;m<y;m++){var b=e[m];if("M"===b[0])o=l=b[1],a=c=b[2];else{"C"===b[0]?(f=[o,a].concat(b.slice(1)),o=f[6],a=f[7]):(f=[o,a,o,a,l,c,l,c],o=l,a=c);var _=nt(h,f,n);if(n)d+=_;else{for(var x=0,w=_.length;x<w;x++)_[x].segment1=p,_[x].segment2=m,_[x].bez1=h,_[x].bez2=f;d=d.concat(_)}}}}}return d}(t,e)},parsePathArray:Y,parsePathString:N,pathToAbsolute:z,pathToCurve:H,rectPath:Q}),ft=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}(),dt=function(t,e){return(dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function pt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}dt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var gt=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events[t]||[],o=this._events["*"]||[],a=function(r){for(var i=r.length,o=0;o<i;o++)if(r[o]){var a=r[o],s=a.callback;a.once&&(r.splice(o,1),0===r.length&&delete e._events[t],i--,o--),s.apply(e,n)}};a(i),a(o)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();function vt(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var mt="undefined"!=typeof window&&void 0!==window.document;function yt(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r}function bt(t){return t.cfg.visible&&t.cfg.capture}var _t=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=A(r,e),n}return pt(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(gt),xt=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},wt=function(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"},Ot=function(e){this.version=e,this.type="node",this.name="node",this.os=t.platform},St=function(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"},Ct=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},Et=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},Tt=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,At=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],Mt=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function It(t){var e=function(t){return""!==t&&At.reduce((function(e,n){var r=n[0],i=n[1];if(e)return e;var o=i.exec(t);return!!o&&[r,o]}),!1)}(t);if(!e)return null;var n=e[0],r=e[1];if("searchbot"===n)return new Ct;var i=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);i?i.length<3&&(i=xt(xt([],i,!0),function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}(3-i.length),!0)):i=[];var o=i.join("."),a=function(t){for(var e=0,n=Mt.length;e<n;e++){var r=Mt[e],i=r[0];if(r[1].exec(t))return i}return null}(t),s=Tt.exec(t);return s&&s[1]?new St(n,o,a,s[1]):new wt(n,o,a)}var jt,kt="undefined"!=typeof Float32Array?Float32Array:Array;function Pt(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=n[0],d=n[1],p=n[2],g=n[3],v=n[4],m=n[5],y=n[6],b=n[7],_=n[8];return t[0]=f*r+d*a+p*l,t[1]=f*i+d*s+p*c,t[2]=f*o+d*u+p*h,t[3]=g*r+v*a+m*l,t[4]=g*i+v*s+m*c,t[5]=g*o+v*u+m*h,t[6]=y*r+b*a+_*l,t[7]=y*i+b*s+_*c,t[8]=y*o+b*u+_*h,t}function Lt(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function Rt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return function(t,e){t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1}(r,n),Pt(t,r,e)}function Dt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return function(t,e){var n=Math.sin(e),r=Math.cos(e);t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1}(r,n),Pt(t,r,e)}function Nt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return function(t,e){t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1}(r,n),Pt(t,r,e)}function Bt(t,e,n){return Pt(t,n,e)}function Ft(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],r=0,i=e.length;r<i;r++){var o=e[r];switch(o[0]){case"t":Rt(n,n,[o[1],o[2]]);break;case"s":Nt(n,n,[o[1],o[2]]);break;case"r":Dt(n,n,o[1]);break;case"m":Bt(n,n,o[1])}}return n}function zt(t,e){var n=[],r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=e[0],d=e[1],p=e[2],g=e[3],v=e[4],m=e[5],y=e[6],b=e[7],_=e[8];return n[0]=f*r+d*a+p*l,n[1]=f*i+d*s+p*c,n[2]=f*o+d*u+p*h,n[3]=g*r+v*a+m*l,n[4]=g*i+v*s+m*c,n[5]=g*o+v*u+m*h,n[6]=y*r+b*a+_*l,n[7]=y*i+b*s+_*c,n[8]=y*o+b*u+_*h,n}function Vt(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n}function Ut(t){var e=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],l=t[7],c=t[8],h=c*a-s*l,f=-c*o+s*u,d=l*o-a*u,p=n*h+r*f+i*d;return p?(p=1/p,e[0]=h*p,e[1]=(-c*r+i*l)*p,e[2]=(s*r-i*a)*p,e[3]=f*p,e[4]=(c*n-i*u)*p,e[5]=(-s*n+i*o)*p,e[6]=d*p,e[7]=(-l*n+r*u)*p,e[8]=(a*n-r*o)*p,e):null}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)}),jt=new kt(3),kt!=Float32Array&&(jt[0]=0,jt[1]=0,jt[2]=0),function(){var t=function(){var t=new kt(2);return kt!=Float32Array&&(t[0]=0,t[1]=0),t}()}();var Gt=Ft,Ht=["zIndex","capture","visible","type"],Wt=["repeat"];function Yt(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function Xt(t,e){var n={},r=e.attr();return v(t,(function(t,e){-1!==Wt.indexOf(e)||I(r[e],t)||(n[e]=t)})),n}function $t(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,o=Object.prototype.hasOwnProperty;return v(t,(function(t){n+r<t.startTime+t.delay+t.duration&&i>t.delay&&v(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var qt=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return A(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return pt(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],i=e[1];if(!r)return this.attrs;if(g(r)){for(var o in r)this.setAttr(o,r[o]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,i),this.afterAttrsChange(((t={})[r]=i,t)),this):this.attrs[r]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren();this.get("el");var n=e.indexOf(this);e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren();this.get("el");var n=e.indexOf(this);e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(vt(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr("matrix",this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr("matrix")},e.prototype.setMatrix=function(t){this.attr("matrix",t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?zt(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?zt(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?Vt(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=Ut(e);if(n)return Vt(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase()[E(t.type)];r&&(n=new r({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};v(e,(function(t,r){p(e[r])?n[r]=function(t){for(var e=[],n=0;n<t.length;n++)p(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[r]):n[r]=e[r]}));var r=new(0,this.constructor)({attrs:n});return v(Ht,(function(e){r.set(e,t.get(e))})),r},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var r=this.get("animations")||[];n.timer||n.initTimer();var i,o,a,s,u,l=t[0],c=t[1],h=t[2],d=void 0===h?"easeLinear":h,p=t[3],v=void 0===p?P:p,m=t[4],y=void 0===m?0:m;f(l)?(i=l,l={}):g(l)&&l.onFrame&&(i=l.onFrame,o=l.repeat),g(c)?(c=(u=c).duration,d=u.easing||"easeLinear",y=u.delay||0,o=u.repeat||o||!1,v=u.callback||P,a=u.pauseCallback||P,s=u.resumeCallback||P):(x(v)&&(y=v,v=null),f(d)?(v=d,d="easeLinear"):d=d||"easeLinear");var b=Xt(l,this),_={fromAttrs:Yt(b,this),toAttrs:b,duration:c,easing:d,repeat:o,callback:v,pauseCallback:a,resumeCallback:s,delay:y,startTime:n.getTime(),id:k(),onFrame:i,pathFormatted:!1};r.length>0?r=$t(r,_):n.addAnimator(this),r.push(_),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0),v(this.get("animations"),(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return v(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return v(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents(),"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var o=function(t){var o=i[t],s=o.get("name");if(s){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&n&&yt(o,n))return"break";p(s)?v(s,(function(t){r.emitDelegateEvent(o,t,e)})):a.emitDelegateEvent(o,s,e)}},a=this,s=0;s<i.length;s++){if("break"===o(s))break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+":"+n.type;(r[i]||r["*"])&&(n.name=i,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(i,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),r=Gt(n,[["t",t,e]]);return this.setMatrix(r),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),r=Gt(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=Gt(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,i=this.getMatrix(),o=Gt(i,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),i=Gt(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(_t),Zt={};var Kt,Qt,Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pt(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],a=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return a.length>0?(v(a,(function(t){var e=t.getBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=b(i),e=y(i),n=b(o),r=y(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],a=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return a.length>0?(v(a,(function(t){var e=t.getCanvasBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=b(i),e=y(i),n=b(o),r=y(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){v(this.getChildren(),(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];g(n)?r=n:r.type=n;var i=Zt[r.type];i||(i=E(r.type),Zt[r.type]=i);var o=this.getShapeBase(),a=new o[i](r);return this.add(a),a},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=t[0],i=t[1];if(f(r))n=new r(i||{parent:this});else{var o=r||{},a=this.getGroupBase();n=new a(o)}return this.add(n),n},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!bt(this))return null;var r,i=this.getChildren();if(this.isCanvas())r=this._findShape(i,t,e,n);else{var o=[t,e,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(r=this._findShape(i,o[0],o[1],n))}return r},e.prototype._findShape=function(t,e,n,r){for(var i=null,o=t.length-1;o>=0;o--){var a=t[o];if(bt(a)&&(a.isGroup()?i=a.getShape(e,n,r):a.isHit(e,n)&&(i=a)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),vt(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();v(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e._INDEX-n._INDEX:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[];return v(this.getChildren(),(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null;return v(this.getChildren(),(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(qt),te=0,ee=0,ne=0,re=0,ie=0,oe=0,ae="object"==typeof performance&&performance.now?performance:Date,se="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ue(){return ie||(se(le),ie=ae.now()+oe)}function le(){ie=0}function ce(){this._call=this._time=this._next=null}function he(t,e,n){var r=new ce;return r.restart(t,e,n),r}function fe(){ie=(re=ae.now())+oe,te=ee=0;try{!function(){ue(),++te;for(var t,e=Kt;e;)(t=ie-e._time)>=0&&e._call.call(null,t),e=e._next;--te}()}finally{te=0,function(){var t,e,n=Kt,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Kt=e);Qt=t,pe(r)}(),ie=0}}function de(){var t=ae.now(),e=t-re;e>1e3&&(oe-=e,re=t)}function pe(t){te||(ee&&(ee=clearTimeout(ee)),t-ie>24?(t<1/0&&(ee=setTimeout(fe,t-ae.now()-oe)),ne&&(ne=clearInterval(ne))):(ne||(re=ae.now(),ne=setInterval(de,1e3)),te=1,se(fe)))}function ge(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ve(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function me(){}ce.prototype=he.prototype={constructor:ce,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?ue():+n)+(null==e?0:+e),this._next||Qt===this||(Qt?Qt._next=this:Kt=this,Qt=this),this._call=t,this._time=n,pe()},stop:function(){this._call&&(this._call=null,this._time=1/0,pe())}};var ye="\\s*([+-]?\\d+)\\s*",be="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",_e="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xe=/^#([0-9a-f]{3,8})$/,we=new RegExp("^rgb\\("+[ye,ye,ye]+"\\)$"),Oe=new RegExp("^rgb\\("+[_e,_e,_e]+"\\)$"),Se=new RegExp("^rgba\\("+[ye,ye,ye,be]+"\\)$"),Ce=new RegExp("^rgba\\("+[_e,_e,_e,be]+"\\)$"),Ee=new RegExp("^hsl\\("+[be,_e,_e]+"\\)$"),Te=new RegExp("^hsla\\("+[be,_e,_e,be]+"\\)$"),Ae={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Me(){return this.rgb().formatHex()}function Ie(){return this.rgb().formatRgb()}function je(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=xe.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?ke(e):3===n?new De(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Pe(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Pe(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=we.exec(t))?new De(e[1],e[2],e[3],1):(e=Oe.exec(t))?new De(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Se.exec(t))?Pe(e[1],e[2],e[3],e[4]):(e=Ce.exec(t))?Pe(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ee.exec(t))?ze(e[1],e[2]/100,e[3]/100,1):(e=Te.exec(t))?ze(e[1],e[2]/100,e[3]/100,e[4]):Ae.hasOwnProperty(t)?ke(Ae[t]):"transparent"===t?new De(NaN,NaN,NaN,0):null}function ke(t){return new De(t>>16&255,t>>8&255,255&t,1)}function Pe(t,e,n,r){return r<=0&&(t=e=n=NaN),new De(t,e,n,r)}function Le(t){return t instanceof me||(t=je(t)),t?new De((t=t.rgb()).r,t.g,t.b,t.opacity):new De}function Re(t,e,n,r){return 1===arguments.length?Le(t):new De(t,e,n,null==r?1:r)}function De(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ne(){return"#"+Fe(this.r)+Fe(this.g)+Fe(this.b)}function Be(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Fe(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ze(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ue(t,e,n,r)}function Ve(t){if(t instanceof Ue)return new Ue(t.h,t.s,t.l,t.opacity);if(t instanceof me||(t=je(t)),!t)return new Ue;if(t instanceof Ue)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new Ue(a,s,u,t.opacity)}function Ue(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Ge(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function He(t){return function(){return t}}function We(t){return 1==(t=+t)?Ye:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):He(isNaN(e)?n:e)}}function Ye(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):He(isNaN(t)?e:t)}ge(me,je,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Me,formatHex:Me,formatHsl:function(){return Ve(this).formatHsl()},formatRgb:Ie,toString:Ie}),ge(De,Re,ve(me,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new De(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new De(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ne,formatHex:Ne,formatRgb:Be,toString:Be})),ge(Ue,(function(t,e,n,r){return 1===arguments.length?Ve(t):new Ue(t,e,n,null==r?1:r)}),ve(me,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Ue(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ue(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new De(Ge(t>=240?t-240:t+120,i,r),Ge(t,i,r),Ge(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Xe=function t(e){var n=We(e);function r(t,e){var r=n((t=Re(t)).r,(e=Re(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Ye(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function $e(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function qe(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ze(t,e){return(qe(e)?$e:Ke)(t,e)}function Ke(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=on(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function Qe(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Je(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function tn(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=on(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var en=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,nn=new RegExp(en.source,"g");function rn(t,e){var n,r,i,o=en.lastIndex=nn.lastIndex=0,a=-1,s=[],u=[];for(t+="",e+="";(n=en.exec(t))&&(r=nn.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Je(n,r)})),o=nn.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})}function on(t,e){var n,r=typeof e;return null==e||"boolean"===r?He(e):("number"===r?Je:"string"===r?(n=je(e))?(e=n,Xe):rn:e instanceof je?Xe:e instanceof Date?Qe:qe(e)?$e:Array.isArray(e)?Ke:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?tn:Je)(t,e)}function an(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function sn(t){return t*t*t}function un(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var ln=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),cn=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),hn=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),fn=Math.PI,dn=fn/2;function pn(t){return(1-Math.cos(fn*t))/2}function gn(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function vn(t){return((t*=2)<=1?gn(1-t):2-gn(t-1))/2}function mn(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var yn=7.5625;function bn(t){return(t=+t)<4/11?yn*t*t:t<8/11?yn*(t-=6/11)*t+3/4:t<10/11?yn*(t-=9/11)*t+15/16:yn*(t-=21/22)*t+63/64}var _n=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(1.70158),xn=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(1.70158),wn=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),On=2*Math.PI,Sn=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=On);function i(t){return e*gn(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*On)},i.period=function(n){return t(e,n)},i}(1,.3),Cn=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=On);function i(t){return 1-e*gn(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*On)},i.period=function(n){return t(e,n)},i}(1,.3),En=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=On);function i(t){return((t=2*t-1)<0?e*gn(-t)*Math.sin((r-t)/n):2-e*gn(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*On)},i.period=function(n){return t(e,n)},i}(1,.3),Tn=Object.freeze({__proto__:null,easeLinear:function(t){return+t},easeQuad:an,easeQuadIn:function(t){return t*t},easeQuadOut:function(t){return t*(2-t)},easeQuadInOut:an,easeCubic:un,easeCubicIn:sn,easeCubicOut:function(t){return--t*t*t+1},easeCubicInOut:un,easePoly:hn,easePolyIn:ln,easePolyOut:cn,easePolyInOut:hn,easeSin:pn,easeSinIn:function(t){return 1==+t?1:1-Math.cos(t*dn)},easeSinOut:function(t){return Math.sin(t*dn)},easeSinInOut:pn,easeExp:vn,easeExpIn:function(t){return gn(1-+t)},easeExpOut:function(t){return 1-gn(t)},easeExpInOut:vn,easeCircle:mn,easeCircleIn:function(t){return 1-Math.sqrt(1-t*t)},easeCircleOut:function(t){return Math.sqrt(1- --t*t)},easeCircleInOut:mn,easeBounce:bn,easeBounceIn:function(t){return 1-bn(1-t)},easeBounceOut:bn,easeBounceInOut:function(t){return((t*=2)<=1?1-bn(1-t):bn(t-1)+1)/2},easeBack:wn,easeBackIn:_n,easeBackOut:xn,easeBackInOut:wn,easeElastic:Cn,easeElasticIn:Sn,easeElasticOut:Cn,easeElasticInOut:En}),An={};var Mn=[1,0,0,0,1,0,0,0,1];function In(t,e,n){var r,i=e.startTime;if(n<i+e.delay||e._paused)return!1;var o,a=e.duration,s=e.easing,u=An[(o=s).toLowerCase()]||Tn[o];if(n=n-i-e.delay,e.repeat)r=u(r=n%a/a);else{if(!((r=n/a)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=u(r)}if(e.onFrame){var l=e.onFrame(r);t.attr(l)}else!function(t,e,n){var r={},i=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var a,s;for(var u in o)if(!I(i[u],o[u]))if("path"===u){var l=o[u],c=i[u];l.length>c.length?(l=N(o[u]),c=N(i[u]),c=st(c,l),c=ct(c,l),e.fromAttrs.path=c,e.toAttrs.path=l):e.pathFormatted||(l=N(o[u]),c=N(i[u]),c=ct(c,l),e.fromAttrs.path=c,e.toAttrs.path=l,e.pathFormatted=!0),r[u]=[];for(var h=0;h<l.length;h++){for(var d=l[h],p=c[h],g=[],v=0;v<d.length;v++)x(d[v])&&p&&x(p[v])?(a=on(p[v],d[v]),g.push(a(n))):g.push(d[v]);r[u].push(g)}}else if("matrix"===u){var m=Ze(i[u]||Mn,o[u]||Mn)(n);r[u]=m}else["fill","stroke","fillStyle","strokeStyle"].includes(u)&&(s=o[u],/^[r,R,L,l]{1}[\s]*\(/.test(s))?r[u]=o[u]:f(o[u])||(a=on(i[u],o[u]),r[u]=a(n));t.attr(r)}}(t,e,r);return!1}var jn=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,r=this;this.timer=he((function(i){if(r.current=i,r.animators.length>0){for(var o=r.animators.length-1;o>=0;o--)if((t=r.animators[o]).destroyed)r.removeAnimator(o);else{if(!t.isAnimatePaused())for(var a=(e=t.get("animations")).length-1;a>=0;a--)n=e[a],In(t,n,i)&&(e.splice(a,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(o)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),kn=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Pn(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function Ln(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),t.isCanvas()&&i)return;if(r&&yt(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var Rn,Dn=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");v(kn,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");v(kn,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,i,o){var a=new ft(t,e);return a.fromShape=i,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(r),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],o=!1;if(i)i.call(this,n,r,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(o||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,u=n.timeStamp-this.mousedownTimeStamp,l=a.clientX-t.clientX,c=a.clientY-t.clientY;u>120||l*l+c*c>40?s&&s.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,o){var a=this._getEventObj(t,e,n,r,i,o);if(r){a.shape=r,Pn(r,t,a);for(var s=r.getParent();s;)s.emitDelegation(t,a),a.propagationStopped||Ln(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{Pn(this.canvas,t,a)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),Nn=Rn?It(Rn):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new Et:"undefined"!=typeof navigator?It(navigator.userAgent):void 0!==t&&t.version?new Ot(t.version.slice(1)):null,Bn=Nn&&"firefox"===Nn.name,Fn=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return pt(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");_(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new Dn({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new jn(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");mt&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");mt&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(Bn&&!d(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!d(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(Jt),zn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pt(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},e}(Jt),Vn=function(t){function e(e){return t.call(this,e)||this}return pt(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,o=t.maxY;if(e){var a=Vt(e,[t.minX,t.minY]),s=Vt(e,[t.maxX,t.minY]),u=Vt(e,[t.minX,t.maxY]),l=Vt(e,[t.maxX,t.maxY]);n=Math.min(a[0],s[0],u[0],l[0]),i=Math.max(a[0],s[0],u[0],l[0]),r=Math.min(a[1],s[1],u[1],l[1]),o=Math.max(a[1],s[1],u[1],l[1])}var c=this.attrs;if(c.shadowColor){var h=c.shadowBlur,f=void 0===h?0:h,d=c.shadowOffsetX,p=void 0===d?0:d,g=c.shadowOffsetY,v=void 0===g?0:g,m=n-f+p,y=i+f+p,b=r-f+v,_=o+f+v;n=Math.min(n,m),i=Math.max(i,y),r=Math.min(r,b),o=Math.max(o,_)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:o,width:i-n,height:o-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],o=(i=this.invertFromMatrix(i))[0],a=i[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(r&&r.isHit(o,a))return!0}return!1},e}(qt),Un=new Map;function Gn(t,e){Un.set(t,e)}function Hn(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}function Wn(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}}function Yn(t){return Math.min.apply(null,t)}function Xn(t){return Math.max.apply(null,t)}function $n(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function qn(t,e){return Math.abs(t-e)<.001}function Zn(t,e){var n=Yn(t),r=Yn(e);return{x:n,y:r,width:Xn(t)-n,height:Xn(e)-r}}function Kn(t){return(t+2*Math.PI)%(2*Math.PI)}var Qn={box:function(t,e,n,r){return Zn([t,n],[e,r])},length:function(t,e,n,r){return $n(t,e,n,r)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,r,i,o){var a=(n-t)*(i-t)+(r-e)*(o-e);return a<0?$n(t,e,i,o):a>(n-t)*(n-t)+(r-e)*(r-e)?$n(n,r,i,o):this.pointToLine(t,e,n,r,i,o)},pointToLine:function(t,e,n,r,i,o){var a=[n-t,r-e];if(function(t,e){return t[0]===e[0]&&t[1]===e[1]}(a,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var s=[-a[1],a[0]];!function(t,e){var n=e[0],r=e[1],i=n*n+r*r;i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i}(s,s);var u=[i-t,o-e];return Math.abs(function(t,e){return t[0]*e[0]+t[1]*e[1]}(u,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function Jn(t,e,n,r,i,o){var a,s=1/0,u=[n,r],l=20;o&&o>200&&(l=o/10);for(var c=1/l,h=c/10,f=0;f<=l;f++){var d=f*c,p=[i.apply(null,t.concat([d])),i.apply(null,e.concat([d]))];(y=$n(u[0],u[1],p[0],p[1]))<s&&(a=d,s=y)}if(0===a)return{x:t[0],y:e[0]};if(1===a){var g=t.length;return{x:t[g-1],y:e[g-1]}}s=1/0;for(f=0;f<32&&!(h<1e-4);f++){var v=a-h,m=a+h,y=(p=[i.apply(null,t.concat([v])),i.apply(null,e.concat([v]))],$n(u[0],u[1],p[0],p[1]));if(v>=0&&y<s)a=v,s=y;else{var b=[i.apply(null,t.concat([m])),i.apply(null,e.concat([m]))],_=$n(u[0],u[1],b[0],b[1]);m<=1&&_<s?(a=m,s=_):h*=.5}}return{x:i.apply(null,t.concat([a])),y:i.apply(null,e.concat([a]))}}function tr(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function er(t,e,n){var r=t+n-2*e;if(qn(r,0))return[.5];var i=(t-e)/r;return i<=1&&i>=0?[i]:[]}function nr(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function rr(t,e,n,r,i,o,a){var s=tr(t,n,i,a),u=tr(e,r,o,a),l=Qn.pointAt(t,e,n,r,a),c=Qn.pointAt(n,r,i,o,a);return[[t,e,l.x,l.y,s,u],[s,u,c.x,c.y,i,o]]}var ir={box:function(t,e,n,r,i,o){var a=er(t,n,i)[0],s=er(e,r,o)[0],u=[t,i],l=[e,o];return void 0!==a&&u.push(tr(t,n,i,a)),void 0!==s&&l.push(tr(e,r,o,s)),Zn(u,l)},length:function(t,e,n,r,i,o){return function t(e,n,r,i,o,a,s){if(0===s)return($n(e,n,r,i)+$n(r,i,o,a)+$n(e,n,o,a))/2;var u=rr(e,n,r,i,o,a,.5),l=u[0],c=u[1];return l.push(s-1),c.push(s-1),t.apply(null,l)+t.apply(null,c)}(t,e,n,r,i,o,3)},nearestPoint:function(t,e,n,r,i,o,a,s){return Jn([t,n,i],[e,r,o],a,s,tr)},pointDistance:function(t,e,n,r,i,o,a,s){var u=this.nearestPoint(t,e,n,r,i,o,a,s);return $n(u.x,u.y,a,s)},interpolationAt:tr,pointAt:function(t,e,n,r,i,o,a){return{x:tr(t,n,i,a),y:tr(e,r,o,a)}},divide:function(t,e,n,r,i,o,a){return rr(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,i,o,a){var s=nr(t,n,i,a),u=nr(e,r,o,a);return Kn(Math.atan2(u,s))}};function or(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function ar(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function sr(t,e,n,r){var i,o,a,s=-3*t+9*e-9*n+3*r,u=6*t-12*e+6*n,l=3*e-3*t,c=[];if(qn(s,0))qn(u,0)||(i=-l/u)>=0&&i<=1&&c.push(i);else{var h=u*u-4*s*l;qn(h,0)?c.push(-u/(2*s)):h>0&&(o=(-u-(a=Math.sqrt(h)))/(2*s),(i=(-u+a)/(2*s))>=0&&i<=1&&c.push(i),o>=0&&o<=1&&c.push(o))}return c}function ur(t,e,n,r,i,o,a,s,u){var l=or(t,n,i,a,u),c=or(e,r,o,s,u),h=Qn.pointAt(t,e,n,r,u),f=Qn.pointAt(n,r,i,o,u),d=Qn.pointAt(i,o,a,s,u),p=Qn.pointAt(h.x,h.y,f.x,f.y,u),g=Qn.pointAt(f.x,f.y,d.x,d.y,u);return[[t,e,h.x,h.y,p.x,p.y,l,c],[l,c,g.x,g.y,d.x,d.y,a,s]]}function lr(t,e,n,r,i,o,a,s,u){if(0===u)return function(t,e){for(var n=0,r=t.length,i=0;i<r;i++){n+=$n(t[i],e[i],t[(i+1)%r],e[(i+1)%r])}return n/2}([t,n,i,a],[e,r,o,s]);var l=ur(t,e,n,r,i,o,a,s,.5),c=l[0],h=l[1];return c.push(u-1),h.push(u-1),lr.apply(null,c)+lr.apply(null,h)}var cr={extrema:sr,box:function(t,e,n,r,i,o,a,s){for(var u=[t,a],l=[e,s],c=sr(t,n,i,a),h=sr(e,r,o,s),f=0;f<c.length;f++)u.push(or(t,n,i,a,c[f]));for(f=0;f<h.length;f++)l.push(or(e,r,o,s,h[f]));return Zn(u,l)},length:function(t,e,n,r,i,o,a,s){return lr(t,e,n,r,i,o,a,s,3)},nearestPoint:function(t,e,n,r,i,o,a,s,u,l,c){return Jn([t,n,i,a],[e,r,o,s],u,l,or,c)},pointDistance:function(t,e,n,r,i,o,a,s,u,l,c){var h=this.nearestPoint(t,e,n,r,i,o,a,s,u,l,c);return $n(h.x,h.y,u,l)},interpolationAt:or,pointAt:function(t,e,n,r,i,o,a,s,u){return{x:or(t,n,i,a,u),y:or(e,r,o,s,u)}},divide:function(t,e,n,r,i,o,a,s,u){return ur(t,e,n,r,i,o,a,s,u)},tangentAngle:function(t,e,n,r,i,o,a,s,u){var l=ar(t,n,i,a,u),c=ar(e,r,o,s,u);return Kn(Math.atan2(c,l))}};function hr(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t}function fr(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}var dr=function(t,e,n,r,i,o,a){for(var s=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),u=1/0,l=-1/0,c=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var f=s+h;o<a?o<f&&f<a&&c.push(f):a<f&&f<o&&c.push(f)}for(h=0;h<c.length;h++){var d=hr(t,0,n,r,i,c[h]);d<u&&(u=d),d>l&&(l=d)}var p=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),g=1/0,v=-1/0,m=[o,a];for(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var y=p+h;o<a?o<y&&y<a&&m.push(y):a<y&&y<o&&m.push(y)}for(h=0;h<m.length;h++){var b=fr(0,e,n,r,i,m[h]);b<g&&(g=b),b>v&&(v=b)}return{x:u,y:g,width:l-u,height:v-g}};var pr=function(t){return function(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],i=t[n+1];e+=$n(r[0],r[1],i[0],i[1])}return e}(t)};function gr(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function vr(t,e){var n=t.get("startArrowShape"),r=t.get("endArrowShape");return n&&(e=gr(e,n.getCanvasBBox())),r&&(e=gr(e,r.getCanvasBBox())),e}var mr=null;function yr(){if(!mr){var t=document.createElement("canvas");t.width=1,t.height=1,mr=t.getContext("2d")}return mr}function br(t,e,n){var r=1;return _(t)&&(r=t.split("\n").length),r>1?e*r+function(t,e){return e?e-t:.14*t}(e,n)*(r-1):e}function _r(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim()}var xr=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,wr=/[^\s\,]+/gi;var Or="\t\n\v\f\r    \u2028\u2029",Sr=new RegExp("([a-z])["+Or+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Or+"]*,?["+Or+"]*)+)","ig"),Cr=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Or+"]*,?["+Or+"]*","ig");var Er=/[a-z]/;function Tr(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function Ar(t){var e=function(t){if(!t)return null;if(p(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(Sr,(function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(Cr,(function(t,e){e&&o.push(+e)})),"m"===a&&o.length>2&&(n.push([r].concat(o.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===o.length&&n.push([r,o[0]]),"r"===a)n.push([r].concat(o));else for(;o.length>=e[a]&&(n.push([r].concat(o.splice(0,e[a]))),e[a]););return""})),n}(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r<e.length;r++){var i=e[r][0];if(Er.test(i)||["V","H","T","S"].indexOf(i)>=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,u=0,l=0,c=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(u=a=+h[1],l=s=+h[2],c++,o[0]=["M",a,s]);r=c;for(var f=e.length;r<f;r++){var d=e[r],g=o[r-1],v=[],m=(i=d[0]).toUpperCase();if(i!==m)switch(v[0]=m,m){case"A":v[1]=d[1],v[2]=d[2],v[3]=d[3],v[4]=d[4],v[5]=d[5],v[6]=+d[6]+a,v[7]=+d[7]+s;break;case"V":v[1]=+d[1]+s;break;case"H":v[1]=+d[1]+a;break;case"M":u=+d[1]+a,l=+d[2]+s,v[1]=u,v[2]=l;break;default:for(var y=1,b=d.length;y<b;y++)v[y]=+d[y]+(y%2?a:s)}else v=e[r];switch(m){case"Z":a=+u,s=+l;break;case"H":v=["L",a=v[1],s];break;case"V":v=["L",a,s=v[1]];break;case"T":a=v[1],s=v[2];var _=Tr([g[1],g[2]],[g[3],g[4]]);v=["Q",_[0],_[1],a,s];break;case"S":a=v[v.length-2],s=v[v.length-1];var x=g.length,w=Tr([g[x-4],g[x-3]],[g[x-2],g[x-1]]);v=["C",w[0],w[1],v[1],v[2],a,s];break;case"M":u=v[v.length-2],l=v[v.length-1];break;default:a=v[v.length-2],s=v[v.length-1]}o.push(v)}return o}function Mr(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ir(t,e){return Mr(t)*Mr(e)?(t[0]*e[0]+t[1]*e[1])/(Mr(t)*Mr(e)):1}function jr(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ir(t,e))}function kr(t,e){return t[0]===e[0]&&t[1]===e[1]}function Pr(t,e){var n=e[1],r=e[2],i=w(S(e[3]),2*Math.PI),o=e[4],a=e[5],s=t[0],u=t[1],l=e[6],c=e[7],h=Math.cos(i)*(s-l)/2+Math.sin(i)*(u-c)/2,f=-1*Math.sin(i)*(s-l)/2+Math.cos(i)*(u-c)/2,d=h*h/(n*n)+f*f/(r*r);d>1&&(n*=Math.sqrt(d),r*=Math.sqrt(d));var p=n*n*(f*f)+r*r*(h*h),g=p?Math.sqrt((n*n*(r*r)-p)/p):1;o===a&&(g*=-1),isNaN(g)&&(g=0);var v=r?g*n*f/r:0,m=n?g*-r*h/n:0,y=(s+l)/2+Math.cos(i)*v-Math.sin(i)*m,b=(u+c)/2+Math.sin(i)*v+Math.cos(i)*m,_=[(h-v)/n,(f-m)/r],x=[(-1*h-v)/n,(-1*f-m)/r],O=jr([1,0],_),C=jr(_,x);return Ir(_,x)<=-1&&(C=Math.PI),Ir(_,x)>=1&&(C=0),0===a&&C>0&&(C-=2*Math.PI),1===a&&C<0&&(C+=2*Math.PI),{cx:y,cy:b,rx:kr(t,[l,c])?0:n,ry:kr(t,[l,c])?0:r,startAngle:O,endAngle:O+C,xRotation:i,arcFlag:o,sweepFlag:a}}function Lr(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function Rr(t){for(var e=[],n=null,r=null,i=null,o=0,a=(t=function(t){var e=t||[];return p(e)?e:_(e)?(v(e=e.match(xr),(function(t,n){if((t=t.match(wr))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}v(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}(t)).length,s=0;s<a;s++){var u=t[s];r=t[s+1];var l=u[0],c={command:l,prePoint:n,params:u,startTangent:null,endTangent:null};switch(l){case"M":i=[u[1],u[2]],o=s;break;case"A":var h=Pr(n,u);c.arcParams=h}if("Z"===l)n=i,r=t[o+1];else{var f=u.length;n=[u[f-2],u[f-1]]}r&&"Z"===r[0]&&(r=t[o],e[o]&&(e[o].prePoint=n)),c.currentPoint=n,e[o]&&kr(n,e[o].currentPoint)&&(e[o].prePoint=c.prePoint);var d=r?[r[r.length-2],r[r.length-1]]:null;c.nextPoint=d;var g=c.prePoint;if(["L","H","V"].includes(l))c.startTangent=[g[0]-n[0],g[1]-n[1]],c.endTangent=[n[0]-g[0],n[1]-g[1]];else if("Q"===l){var m=[u[1],u[2]];c.startTangent=[g[0]-m[0],g[1]-m[1]],c.endTangent=[n[0]-m[0],n[1]-m[1]]}else if("T"===l){m=Lr((x=e[s-1]).currentPoint,g);"Q"===x.command?(c.command="Q",c.startTangent=[g[0]-m[0],g[1]-m[1]],c.endTangent=[n[0]-m[0],n[1]-m[1]]):(c.command="TL",c.startTangent=[g[0]-n[0],g[1]-n[1]],c.endTangent=[n[0]-g[0],n[1]-g[1]])}else if("C"===l){var y=[u[1],u[2]],b=[u[3],u[4]];c.startTangent=[g[0]-y[0],g[1]-y[1]],c.endTangent=[n[0]-b[0],n[1]-b[1]],0===c.startTangent[0]&&0===c.startTangent[1]&&(c.startTangent=[y[0]-b[0],y[1]-b[1]]),0===c.endTangent[0]&&0===c.endTangent[1]&&(c.endTangent=[b[0]-y[0],b[1]-y[1]])}else if("S"===l){var x;y=Lr((x=e[s-1]).currentPoint,g),b=[u[1],u[2]];"C"===x.command?(c.command="C",c.startTangent=[g[0]-y[0],g[1]-y[1]],c.endTangent=[n[0]-b[0],n[1]-b[1]]):(c.command="SQ",c.startTangent=[g[0]-b[0],g[1]-b[1]],c.endTangent=[n[0]-b[0],n[1]-b[1]])}else if("A"===l){var w=.001,O=c.arcParams||{},S=O.cx,C=void 0===S?0:S,E=O.cy,T=void 0===E?0:E,A=O.rx,M=void 0===A?0:A,I=O.ry,j=void 0===I?0:I,k=O.sweepFlag,P=void 0===k?0:k,L=O.startAngle,R=void 0===L?0:L,D=O.endAngle,N=void 0===D?0:D;0===P&&(w*=-1);var B=M*Math.cos(R-w)+C,F=j*Math.sin(R-w)+T;c.startTangent=[B-i[0],F-i[1]];var z=M*Math.cos(R+N+w)+C,V=j*Math.sin(R+N-w)+T;c.endTangent=[g[0]-z,g[1]-V]}e.push(c)}return e}function Dr(t,e){var n,r,i,o=t.prePoint,a=t.currentPoint,s=t.nextPoint,u=Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2),l=Math.pow(a[0]-s[0],2)+Math.pow(a[1]-s[1],2),c=Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2),h=Math.acos((u+l-c)/(2*Math.sqrt(u)*Math.sqrt(l)));if(!h||0===Math.sin(h)||(n=h,r=0,void 0===i&&(i=1e-5),Math.abs(n-r)<i))return{xExtra:0,yExtra:0};var f=Math.abs(Math.atan2(s[1]-a[1],s[0]-a[0])),d=Math.abs(Math.atan2(s[0]-a[0],s[1]-a[1]));return f=f>Math.PI/2?Math.PI-f:f,d=d>Math.PI/2?Math.PI-d:d,{xExtra:Math.cos(h/2-f)*(e/2*(1/Math.sin(h/2)))-e/2||0,yExtra:Math.cos(d-h/2)*(e/2*(1/Math.sin(h/2)))-e/2||0}}function Nr(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function Br(t,e,n,r,i,o){return i>=t&&i<=t+n&&o>=e&&o<=e+r}function Fr(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function zr(t,e){return t[0]===e[0]&&t[1]===e[1]}Gn("rect",Hn),Gn("image",Hn),Gn("circle",Wn),Gn("marker",Wn),Gn("polyline",(function(t){for(var e=t.attr().points,n=[],r=[],i=0;i<e.length;i++){var o=e[i];n.push(o[0]),r.push(o[1])}var a=Zn(n,r),s=a.x,u=a.y,l={minX:s,minY:u,maxX:s+a.width,maxY:u+a.height};return{x:(l=vr(t,l)).minX,y:l.minY,width:l.maxX-l.minX,height:l.maxY-l.minY}})),Gn("polygon",(function(t){for(var e=t.attr().points,n=[],r=[],i=0;i<e.length;i++){var o=e[i];n.push(o[0]),r.push(o[1])}return Zn(n,r)})),Gn("text",(function(t){var e=t.attr(),n=e.x,r=e.y,i=e.text,o=e.fontSize,a=e.lineHeight,s=e.font;s||(s=_r(e));var u,l=function(t,e){var n=yr(),r=0;return d(t)||""===t||(n.save(),n.font=e,_(t)&&t.includes("\n")?v(t.split("\n"),(function(t){var e=n.measureText(t).width;r<e&&(r=e)})):r=n.measureText(t).width,n.restore()),r}(i,s);if(l){var c=e.textAlign,h=e.textBaseline,f=br(i,o,a),p={x:n,y:r-f};c&&("end"===c||"right"===c?p.x-=l:"center"===c&&(p.x-=l/2)),h&&("top"===h?p.y+=f:"middle"===h&&(p.y+=f/2)),u={x:p.x,y:p.y,width:l,height:f}}else u={x:n,y:r,width:0,height:0};return u})),Gn("path",(function(t){var e=t.attr(),n=e.path,r=e.stroke?e.lineWidth:0,i=function(t,e){for(var n=[],r=[],i=[],o=0;o<t.length;o++){var a=(g=t[o]).currentPoint,s=g.params,u=g.prePoint,l=void 0;switch(g.command){case"Q":l=ir.box(u[0],u[1],s[1],s[2],s[3],s[4]);break;case"C":l=cr.box(u[0],u[1],s[1],s[2],s[3],s[4],s[5],s[6]);break;case"A":var c=g.arcParams;l=dr(c.cx,c.cy,c.rx,c.ry,c.xRotation,c.startAngle,c.endAngle);break;default:n.push(a[0]),r.push(a[1])}l&&(g.box=l,n.push(l.x,l.x+l.width),r.push(l.y,l.y+l.height)),e&&("L"===g.command||"M"===g.command)&&g.prePoint&&g.nextPoint&&i.push(g)}n=n.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0})),r=r.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0}));var h=b(n),f=b(r),d=y(n),p=y(r);if(0===i.length)return{x:h,y:f,width:d-h,height:p-f};for(o=0;o<i.length;o++){var g;(a=(g=i[o]).currentPoint)[0]===h?h-=Dr(g,e).xExtra:a[0]===d&&(d+=Dr(g,e).xExtra),a[1]===f?f-=Dr(g,e).yExtra:a[1]===p&&(p+=Dr(g,e).yExtra)}return{x:h,y:f,width:d-h,height:p-f}}(t.get("segments")||Rr(n),r),o=i.x,a=i.y,s={minX:o,minY:a,maxX:o+i.width,maxY:a+i.height};return{x:(s=vr(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}})),Gn("line",(function(t){var e=t.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a={minX:Math.min(n,i),maxX:Math.max(n,i),minY:Math.min(r,o),maxY:Math.max(r,o)};return{x:(a=vr(t,a)).minX,y:a.minY,width:a.maxX-a.minX,height:a.maxY-a.minY}})),Gn("ellipse",(function(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;return{x:n-i,y:r-o,width:2*i,height:2*o}}));var Vr=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Ur=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Gr=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Hr=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function Wr(t,e){v(t.match(Hr),(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function Yr(t,e,n){var r=e.getBBox();if(isNaN(r.x)||isNaN(r.y)||isNaN(r.width)||isNaN(r.height))return n;if(_(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return function(t,e,n){var r,i,o=Vr.exec(n),a=parseFloat(o[1])%360*(Math.PI/180),s=o[2],u=e.getBBox();a>=0&&a<.5*Math.PI?(r={x:u.minX,y:u.minY},i={x:u.maxX,y:u.maxY}):.5*Math.PI<=a&&a<Math.PI?(r={x:u.maxX,y:u.minY},i={x:u.minX,y:u.maxY}):Math.PI<=a&&a<1.5*Math.PI?(r={x:u.maxX,y:u.maxY},i={x:u.minX,y:u.minY}):(r={x:u.minX,y:u.maxY},i={x:u.maxX,y:u.minY});var l=Math.tan(a),c=l*l,h=(i.x-r.x+l*(i.y-r.y))/(c+1)+r.x,f=l*(i.x-r.x+l*(i.y-r.y))/(c+1)+r.y,d=t.createLinearGradient(r.x,r.y,h,f);return Wr(s,d),d}(t,e,n);if("r"===n[0])return function(t,e,n){var r=Ur.exec(n),i=parseFloat(r[1]),o=parseFloat(r[2]),a=parseFloat(r[3]),s=r[4];if(0===a){var u=s.match(Hr);return u[u.length-1].split(":")[1]}var l=e.getBBox(),c=l.maxX-l.minX,h=l.maxY-l.minY,f=Math.sqrt(c*c+h*h)/2,d=t.createRadialGradient(l.minX+c*i,l.minY+h*o,0,l.minX+c/2,l.minY+h/2,a*f);return Wr(s,d),d}(t,e,n);if("p"===n[0])return function(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,i,o=Gr.exec(n),a=o[1],s=o[2];function u(){r=t.createPattern(i,a),e.set("pattern",r),e.set("patternSource",n)}switch(a){case"a":a="repeat";break;case"x":a="repeat-x";break;case"y":a="repeat-y";break;case"n":a="no-repeat";break;default:a="no-repeat"}return i=new Image,s.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=s,i.complete?u():(i.onload=u,i.src=i.src),r}(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0}function Xr(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function $r(t,e){return Xr(t)*Xr(e)?(t[0]*e[0]+t[1]*e[1])/(Xr(t)*Xr(e)):1}function qr(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos($r(t,e))}function Zr(t,e){var n=e[1],r=e[2],i=w(S(e[3]),2*Math.PI),o=e[4],a=e[5],s=t[0],u=t[1],l=e[6],c=e[7],h=Math.cos(i)*(s-l)/2+Math.sin(i)*(u-c)/2,f=-1*Math.sin(i)*(s-l)/2+Math.cos(i)*(u-c)/2,d=h*h/(n*n)+f*f/(r*r);d>1&&(n*=Math.sqrt(d),r*=Math.sqrt(d));var p=n*n*(f*f)+r*r*(h*h),g=p?Math.sqrt((n*n*(r*r)-p)/p):1;o===a&&(g*=-1),isNaN(g)&&(g=0);var v=r?g*n*f/r:0,m=n?g*-r*h/n:0,y=(s+l)/2+Math.cos(i)*v-Math.sin(i)*m,b=(u+c)/2+Math.sin(i)*v+Math.cos(i)*m,_=[(h-v)/n,(f-m)/r],x=[(-1*h-v)/n,(-1*f-m)/r],O=qr([1,0],_),C=qr(_,x);return $r(_,x)<=-1&&(C=Math.PI),$r(_,x)>=1&&(C=0),0===a&&C>0&&(C-=2*Math.PI),1===a&&C<0&&(C+=2*Math.PI),{cx:y,cy:b,rx:zr(t,[l,c])?0:n,ry:zr(t,[l,c])?0:r,startAngle:O,endAngle:O+C,xRotation:i,arcFlag:o,sweepFlag:a}}var Kr=Math.sin,Qr=Math.cos,Jr=Math.atan2,ti=Math.PI;function ei(t,e,n,r,i,o,a){var s=e.stroke,u=e.lineWidth,l=Jr(r-o,n-i),c=new Li({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Qr(ti/6)+","+10*Kr(ti/6)+" L0,0 L"+10*Qr(ti/6)+",-"+10*Kr(ti/6),stroke:s,lineWidth:u}});c.translate(i,o),c.rotateAtPoint(i,o,l),t.set(a?"startArrowShape":"endArrowShape",c)}function ni(t,e,n,r,i,o,a){var s=e.startArrow,l=e.endArrow,c=e.stroke,h=e.lineWidth,f=a?s:l,d=f.d,p=f.fill,g=f.stroke,v=f.lineWidth,m=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(f,["d","fill","stroke","lineWidth"]),y=Jr(r-o,n-i);d&&(i-=Qr(y)*d,o-=Kr(y)*d);var b=new Li({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:u(u({},m),{stroke:g||c,lineWidth:v||h,fill:p})});b.translate(i,o),b.rotateAtPoint(i,o,y),t.set(a?"startArrowShape":"endArrowShape",b)}function ri(t,e,n,r,i){var o=Jr(r-e,n-t);return{dx:Qr(o)*i,dy:Kr(o)*i}}function ii(t,e,n,r,i,o){"object"==typeof e.startArrow?ni(t,e,n,r,i,o,!0):e.startArrow?ei(t,e,n,r,i,o,!0):t.set("startArrowShape",null)}function oi(t,e,n,r,i,o){"object"==typeof e.endArrow?ni(t,e,n,r,i,o,!1):e.endArrow?ei(t,e,n,r,i,o,!1):t.set("startArrowShape",null)}var ai={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function si(t,e){var n=e.attr();for(var r in n){var i=n[r],o=ai[r]?ai[r]:r;"matrix"===o&&i?t.transform(i[0],i[1],i[3],i[4],i[6],i[7]):"lineDash"===o&&t.setLineDash?p(i)&&t.setLineDash(i):("strokeStyle"===o||"fillStyle"===o?i=Yr(t,e,i):"globalAlpha"===o&&(i*=t.globalAlpha),t[o]=i)}}function ui(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];i.cfg.visible?i.draw(t,n):i.skipDraw()}}function li(t,e,n){var r=t.get("refreshElements");v(r,(function(e){if(e!==t)for(var n=e.cfg.parent;n&&n!==t&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent})),r[0]===t?ci(e):function t(e,n){for(var r=0;r<e.length;r++){var i=e[r];if(i.cfg.visible)if(i.cfg.hasChanged)i.cfg.refresh=!0,i.isGroup()&&ci(i.cfg.children);else if(i.cfg.refresh)i.isGroup()&&t(i.cfg.children,n);else{var o=hi(i,n);i.cfg.refresh=o,o&&i.isGroup()&&t(i.cfg.children,n)}}}(e,n)}function ci(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.refresh=!0,r.isGroup()&&ci(r.get("children"))}}function hi(t,e){var n=t.cfg.cacheCanvasBBox;return t.cfg.isInView&&n&&Fr(n,e)}function fi(t,e,n,r){var i=n.path,o=n.startArrow,a=n.endArrow;if(i){var s=[0,0],u=[0,0],l={dx:0,dy:0};e.beginPath();for(var c=0;c<i.length;c++){var h=i[c],f=h[0];if(0===c&&o&&o.d)l=ri((d=t.getStartTangent())[0][0],d[0][1],d[1][0],d[1][1],o.d);else if(c===i.length-2&&"Z"===i[c+1][0]&&a&&a.d){if("Z"===i[c+1][0])l=ri((d=t.getEndTangent())[0][0],d[0][1],d[1][0],d[1][1],a.d)}else if(c===i.length-1&&a&&a.d){var d;if("Z"!==i[0])l=ri((d=t.getEndTangent())[0][0],d[0][1],d[1][0],d[1][1],a.d)}var p=l.dx,g=l.dy;switch(f){case"M":e.moveTo(h[1]-p,h[2]-g),u=[h[1],h[2]];break;case"L":e.lineTo(h[1]-p,h[2]-g);break;case"Q":e.quadraticCurveTo(h[1],h[2],h[3]-p,h[4]-g);break;case"C":e.bezierCurveTo(h[1],h[2],h[3],h[4],h[5]-p,h[6]-g);break;case"A":var v=void 0;r?(v=r[c])||(v=Zr(s,h),r[c]=v):v=Zr(s,h);var m=v.cx,y=v.cy,b=v.rx,_=v.ry,x=v.startAngle,w=v.endAngle,O=v.xRotation,S=v.sweepFlag;if(e.ellipse)e.ellipse(m,y,b,_,O,x,w,1-S);else{var C=b>_?b:_,E=b>_?1:b/_,T=b>_?_/b:1;e.translate(m,y),e.rotate(O),e.scale(E,T),e.arc(0,0,C,x,w,1-S),e.scale(1/E,1/T),e.rotate(-O),e.translate(-m,-y)}break;case"Z":e.closePath()}if("Z"===f)s=u;else{var A=h.length;s=[h[A-2],h[A-1]]}}}}function di(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))}function pi(t){var e,n,r;if(t.destroyed)e=t._cacheCanvasBBox;else{var i=t.get("cacheCanvasBBox"),o=i&&!(!i.width||!i.height),a=t.getCanvasBBox(),s=a&&!(!a.width||!a.height);o&&s?(r=a,e=(n=i)&&r?{minX:Math.min(n.minX,r.minX),minY:Math.min(n.minY,r.minY),maxX:Math.max(n.maxX,r.maxX),maxY:Math.max(n.maxY,r.maxY)}:n||r):o?e=i:s&&(e=a)}return e}var gi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.onCanvasChange=function(t){di(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),si(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];v(t,(function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(e.length){var i=b(e),o=y(e),a=b(n),s=y(n);r={minX:i,minY:a,x:i,y:a,maxX:o,maxY:s,width:o-i,height:s-a};var u=this.cfg.canvas;if(u){var l=u.getViewRange();this.set("isInView",Fr(r,l))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),si(t,this),this._applyClip(t,this.getClip()),ui(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(zn),vi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return u(u({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return gi},e.prototype.onCanvasChange=function(t){di(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=function(t){return Un.get(t)}(t)(this),r=e/2,i=n.x-r,o=n.y-r,a=n.x+n.width+r,s=n.y+n.height+r;return{x:i,minX:i,y:o,minY:o,width:n.width+e,height:n.height+e,maxX:a,maxY:s}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),si(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);if(!Fr(e,this.getCanvasBBox()))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),si(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=Fr(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&(d(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(d(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(Vn),mi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return u(u({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,s=o.y,u=o.r,l=i/2,c=Nr(a,s,t,e);return r&&n?c<=u+l:r?c<=u:!!n&&(c>=u-l&&c<=u+l)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(vi);function yi(t,e,n,r){return t/(n*n)+e/(r*r)}var bi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return u(u({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=i/2,s=o.x,u=o.y,l=o.rx,c=o.ry,h=(t-s)*(t-s),f=(e-u)*(e-u);return r&&n?yi(h,f,l+a,c+a)<=1:r?yi(h,f,l,c)<=1:!!n&&(yi(h,f,l-a,c-a)>=1&&yi(h,f,l+a,c+a)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,o,0,0,2*Math.PI,!1);else{var a=i>o?i:o,s=i>o?1:i/o,u=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,u),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(vi);function _i(t){return t instanceof HTMLElement&&_(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var xi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return u(u({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(_(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):_i(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.sx,s=e.sy,u=e.swidth,l=e.sheight,c=e.img;(c instanceof Image||_i(c))&&(d(a)||d(s)||d(u)||d(l)?t.drawImage(c,n,r,i,o):t.drawImage(c,a,s,u,l,n,r,i,o))},e}(vi);function wi(t,e,n,r,i,o,a){var s=Math.min(t,n),u=Math.max(t,n),l=Math.min(e,r),c=Math.max(e,r),h=i/2;return o>=s-h&&o<=u+h&&a>=l-h&&a<=c+h&&Qn.pointToLine(t,e,n,r,o,a)<=i/2}var Oi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return u(u({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.startArrow,a=t.endArrow;o&&ii(this,t,r,i,e,n),a&&oi(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr();return wi(o.x1,o.y1,o.x2,o.y2,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.startArrow,s=e.endArrow,u={dx:0,dy:0},l={dx:0,dy:0};a&&a.d&&(u=ri(n,r,i,o,e.startArrow.d)),s&&s.d&&(l=ri(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+u.dx,r+u.dy),t.lineTo(i-l.dx,o-l.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return Qn.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return Qn.pointAt(n,r,i,o,t)},e}(vi),Si={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},Ci=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return d(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,o=r.y,a=r.symbol||"circle",s=this._getR(r);if(f(a))n=Ar(n=(t=a)(i,o,s));else{if(!(t=e.Symbols[a]))return console.warn(a+" marker is not supported."),null;n=t(i,o,s)}return n},e.prototype.createPath=function(t){fi(this,t,{path:this._getPath()},this.get("paramsCache"))},e.Symbols=Si,e}(vi);function Ei(t,e,n){var r=yr();return t.createPath(r),r.isPointInPath(e,n)}function Ti(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function Ai(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function Mi(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],s=t[(o+1)%i];if(Ai(a,s,[e,n]))return!0;Ti(a[1]-n)>0!=Ti(s[1]-n)>0&&Ti(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}function Ii(t,e,n,r,i,o,a,s){var u=(Math.atan2(s-e,a-t)+2*Math.PI)%(2*Math.PI);if(u<r||u>i)return!1;var l={x:t+n*Math.cos(u),y:e+n*Math.sin(u)};return Nr(l.x,l.y,a,s)<=o/2}var ji=Ft;var ki=u({hasArc:function(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i=t[r][0];if("C"===i||"A"===i||"Q"===i){e=!0;break}}return e},extractPolygons:function(t){for(var e=t.length,n=[],r=[],i=[],o=0;o<e;o++){var a=t[o],s=a[0];"M"===s?(i.length&&(r.push(i),i=[]),i.push([a[1],a[2]])):"Z"===s?i.length&&(n.push(i),i=[]):i.push([a[1],a[2]])}return i.length>0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var o=!1,a=e/2,s=0;s<t.length;s++){var u=t[s],l=u.currentPoint,c=u.params,h=u.prePoint,f=u.box;if(!f||Br(f.x-a,f.y-a,f.width+e,f.height+e,n,r)){switch(u.command){case"L":case"Z":o=wi(h[0],h[1],l[0],l[1],e,n,r);break;case"Q":o=ir.pointDistance(h[0],h[1],c[1],c[2],c[3],c[4],n,r)<=e/2;break;case"C":o=cr.pointDistance(h[0],h[1],c[1],c[2],c[3],c[4],c[5],c[6],n,r,i)<=e/2;break;case"A":var d=u.arcParams,p=d.cx,g=d.cy,v=d.rx,m=d.ry,y=d.startAngle,b=d.endAngle,_=d.xRotation,x=[n,r,1],w=v>m?v:m;Lt(x,x,ji(null,[["t",-p,-g],["r",-_],["s",1/(v>m?1:v/m),1/(v>m?m/v:1)]])),o=Ii(0,0,w,y,b,e,x[0],x[1])}if(o)break}}return o}},ht);function Pi(t,e,n){for(var r=!1,i=0;i<t.length;i++){if(r=Mi(t[i],e,n))break}return r}var Li=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return u(u({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=Ar(t);var e=ki.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=Rr(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t,e=this.attr(),n=e.startArrow,r=e.endArrow;n&&ii(this,e,(t=this.getStartTangent())[0][0],t[0][1],t[1][0],t[1][1]);r&&oi(this,e,(t=this.getEndTangent())[0][0],t[0][1],t[1][0],t[1][1])},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.getSegments(),a=this.get("hasArc"),s=!1;if(n){var u=this.getTotalLength();s=ki.isPointInStroke(o,i,t,e,u)}if(!s&&r)if(a)s=Ei(this,t,e);else{var l=this.attr("path"),c=ki.extractPolygons(l);s=Pi(c.polygons,t,e)||Pi(c.polylines,t,e)}return s},e.prototype.createPath=function(t){fi(this,t,this.attr(),this.get("paramsCache"))},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return d(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,r=this.get("tCache");r||(this._calculateCurve(),this._setTcache(),r=this.get("tCache"));var i=this.get("curve");if(!r||0===r.length)return i?{x:i[0][1],y:i[0][2]}:null;v(r,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var o=i[n];if(d(o)||d(n))return null;var a=o.length,s=i[n+1];return cr.pointAt(o[a-2],o[a-1],s[1],s[2],s[3],s[4],s[5],s[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",ki.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,o=0,a=[],s=this.get("curve");s&&(v(s,(function(t,e){n=s[e+1],r=t.length,n&&(i+=cr.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",i),0!==i?(v(s,(function(u,l){n=s[l+1],r=u.length,n&&((t=[])[0]=o/i,e=cr.length(u[r-2],u[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e||0,t[1]=o/i,a.push(t))})),this.set("tCache",a)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([i[0]-o[0],i[1]-o[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(vi);function Ri(t,e,n,r,i){var o=t.length;if(o<2)return!1;for(var a=0;a<o-1;a++){if(wi(t[a][0],t[a][1],t[a+1][0],t[a+1][1],e,n,r))return!0}if(i){var s=t[0],u=t[o-1];if(wi(s[0],s[1],u[0],u[1],e,n,r))return!0}return!1}var Di=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr().points,a=!1;return n&&(a=Ri(o,i,t,e,!0)),!a&&r&&(a=Mi(o,t,e)),a},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n<e.length;n++){var r=e[n];0===n?t.moveTo(r[0],r[1]):t.lineTo(r[0],r[1])}t.closePath()}},e}(vi),Ni=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return u(u({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,r=e.startArrow,i=e.endArrow,o=n.length,a=n[0][0],s=n[0][1],u=n[o-1][0],l=n[o-1][1];r&&ii(this,t,n[1][0],n[1][1],a,s),i&&oi(this,t,n[o-2][0],n[o-2][1],u,l)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!(!n||!i)&&Ri(this.attr().points,i,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,i=e.endArrow,o=n.length;if(!(n.length<2)){var a,s=n[0][0],u=n[0][1],l=n[o-1][0],c=n[o-1][1];if(r&&r.d)s+=(a=ri(s,u,n[1][0],n[1][1],r.d)).dx,u+=a.dy;if(i&&i.d)l-=(a=ri(n[o-2][0],n[o-2][1],l,c,i.d)).dx,c-=a.dy;t.beginPath(),t.moveTo(s,u);for(var h=0;h<o-1;h++){var f=n[h];t.lineTo(f[0],f[1])}t.lineTo(l,c)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return d(e)?(this.set("totalLength",pr(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),v(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),Qn.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];v(t,(function(a,s){t[s+1]&&((n=[])[0]=i/e,r=Qn.length(a[0],a[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(vi);var Bi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return u(u({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,s=o.y,u=o.width,l=o.height,c=o.radius;if(c){var h=!1;return n&&(h=function(t,e,n,r,i,o,a,s){return wi(t+i,e,t+n-i,e,o,a,s)||wi(t+n,e+i,t+n,e+r-i,o,a,s)||wi(t+n-i,e+r,t+i,e+r,o,a,s)||wi(t,e+r-i,t,e+i,o,a,s)||Ii(t+n-i,e+i,i,1.5*Math.PI,2*Math.PI,o,a,s)||Ii(t+n-i,e+r-i,i,0,.5*Math.PI,o,a,s)||Ii(t+i,e+r-i,i,.5*Math.PI,Math.PI,o,a,s)||Ii(t+i,e+i,i,Math.PI,1.5*Math.PI,o,a,s)}(a,s,u,l,c,i,t,e)),!h&&r&&(h=Ei(this,t,e)),h}var f=i/2;return r&&n?Br(a-f,s-f,u+f,l+f,t,e):r?Br(a,s,u,l,t,e):n?function(t,e,n,r,i,o,a){var s=i/2;return Br(t-s,e-s,n,i,o,a)||Br(t+n-s,e-s,i,r,o,a)||Br(t+s,e+r-s,n,i,o,a)||Br(t-s,e+s,i,r,o,a)}(a,s,u,l,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(n,r,i,o);else{var s=function(t){var e=0,n=0,r=0,i=0;return p(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,[e,n,r,i]}(a),u=s[0],l=s[1],c=s[2],h=s[3];t.moveTo(n+u,r),t.lineTo(n+i-l,r),0!==l&&t.arc(n+i-l,r+l,l,-Math.PI/2,0),t.lineTo(n+i,r+o-c),0!==c&&t.arc(n+i-c,r+o-c,c,0,Math.PI/2),t.lineTo(n+h,r+o),0!==h&&t.arc(n+h,r+o-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+u),0!==u&&t.arc(n+u,r+u,u,Math.PI,1.5*Math.PI),t.closePath()}},e}(vi),Fi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return u(u({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=_r(t)},e.prototype._setText=function(t){var e=null;_(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,o=i.textBaseline,a=i.x,s=i.y,u=1*i.fontSize,l=this._getSpaceingY(),c=br(i.text,i.fontSize,i.lineHeight);v(e,(function(e,i){r=s+i*(l+u)-c+u,"middle"===o&&(r+=c-u-(c-u)/2),"top"===o&&(r+=c-u),d(e)||(n?t.fillText(e,a,r):t.strokeText(e,a,r))}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var a=n.text;d(a)||(e?t.fillText(a,r,i):t.strokeText(a,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&(d(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(d(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(vi);function zi(t,e,n){var r,i,o=t.getTotalMatrix();if(o){var a=(r=[e,n,1],(i=o)?Vt(Ut(i),r):r);return[a[0],a[1]]}return[e,n]}function Vi(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!bt(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var r=zi(t,e,n),i=r[0],o=r[1];if(t.isClipped(i,o))return!1}var a=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=a.minX&&e<=a.maxX&&n>=a.minY&&n<=a.maxY}var Ui,Gi,Hi,Wi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return gi},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(window?window.devicePixelRatio:1);return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*e,i.height=o*n,o>1&&r.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?function t(e,n,r){if(!Vi(e,n,r))return null;for(var i=null,o=e.getChildren(),a=o.length-1;a>=0;a--){var s=o[a];if(s.isGroup())i=t(s,n,r);else if(Vi(s,n,r)){var u=s,l=zi(s,n,r),c=l[0],h=l[1];u.isInShape(c,h)&&(i=s)}if(i)break}return i}(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();e.length&&e[0]===this?t=n:(t=function(t){if(!t.length)return null;var e=[],n=[],r=[],i=[];return v(t,(function(t){var o=pi(t);o&&(e.push(o.minX),n.push(o.minY),r.push(o.maxX),i.push(o.maxY))})),{minX:b(e),minY:b(n),maxX:y(r),maxY:y(i)}}(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=function(t,e){return t&&e&&Fr(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}(t,n)));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t,e=this.get("drawFrame");e&&(t=e,(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),si(t,this),ui(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),si(t,this),li(this,n,r),ui(t,n,r),t.restore()):e.length&&function t(e){for(var n=0;n<e.length;n++){var r=e[n];r.cfg.hasChanged=!1,r.isGroup()&&!r.destroyed&&t(r.cfg.children)}}(e),v(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t,e=this,n=this.get("drawFrame");n||(t=function(){e.get("localRefresh")?e._drawRegion():e._drawAll(),e.set("drawFrame",null)},n=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t),this.set("drawFrame",n))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(Fn);!function(t){t.DATA_CELL_CLICK_EVENT="interaction:data-cell-click",t.MERGED_CELLS_CLICK_EVENT="interaction:merged-cells-click",t.CORNER_TEXT_CLICK_EVENT="interaction:corner-cell-text-click",t.ROW_COLUMN_CLICK_EVENT="interaction:row-column-click",t.ROW_TEXT_CLICK_EVENT="interaction:row-text-click",t.HOVER_EVENT="interaction:hover",t.TREND_ICON_CLICK="interaction:trend-icon-click"}(Ui||(Ui={})),function(t){t.MOUSE_DOWN="mousedown",t.MOUSE_MOVE="mousemove",t.MOUSE_OUT="mouseout",t.MOUSE_LEAVE="mouseleave",t.MOUSE_UP="mouseup",t.KEY_DOWN="keydown",t.KEY_UP="keyup",t.CLICK="click",t.HOVER="hover",t.DOUBLE_CLICK="dblclick",t.CONTEXT_MENU="contextmenu"}(Gi||(Gi={})),function(t){t.ROW_CELL_HOVER="row-cell:hover",t.ROW_CELL_CLICK="row-cell:click",t.ROW_CELL_DOUBLE_CLICK="row-cell:double-click",t.ROW_CELL_CONTEXT_MENU="row-cell:context-menu",t.ROW_CELL_MOUSE_DOWN="row-cell:mouse-down",t.ROW_CELL_MOUSE_UP="row-cell:mouse-up",t.ROW_CELL_MOUSE_MOVE="row-cell:mouse-move",t.ROW_CELL_COLLAPSE_TREE_ROWS="row-cell:collapsed-tree-rows",t.ROW_CELL_SCROLL="row-cell:scroll",t.ROW_CELL_BRUSH_SELECTION="row-cell:brush-selection",t.COL_CELL_HOVER="col-cell:hover",t.COL_CELL_CLICK="col-cell:click",t.COL_CELL_DOUBLE_CLICK="col-cell:double-click",t.COL_CELL_CONTEXT_MENU="col-cell:context-menu",t.COL_CELL_MOUSE_DOWN="col-cell:mouse-down",t.COL_CELL_MOUSE_UP="col-cell:mouse-up",t.COL_CELL_MOUSE_MOVE="col-cell:mouse-move",t.COL_CELL_BRUSH_SELECTION="col-cell:brush-selection",t.DATA_CELL_HOVER="data-cell:hover",t.DATA_CELL_CLICK="data-cell:click",t.DATA_CELL_DOUBLE_CLICK="data-cell:double-click",t.DATA_CELL_CONTEXT_MENU="data-cell:context-menu",t.DATA_CELL_MOUSE_UP="data-cell:mouse-up",t.DATA_CELL_MOUSE_DOWN="data-cell:mouse-down",t.DATA_CELL_MOUSE_MOVE="data-cell:mouse-move",t.DATA_CELL_TREND_ICON_CLICK="data-cell:trend-icon-click",t.DATA_CELL_BRUSH_SELECTION="data-cell:brush-selection",t.DATA_CELL_SELECT_MOVE="data-cell:select-move",t.CORNER_CELL_HOVER="corner-cell:hover",t.CORNER_CELL_CLICK="corner-cell:click",t.CORNER_CELL_DOUBLE_CLICK="corner-cell:double-click",t.CORNER_CELL_CONTEXT_MENU="corner-cell:context-menu",t.CORNER_CELL_MOUSE_DOWN="corner-cell:mouse-down",t.CORNER_CELL_MOUSE_UP="corner-cell:mouse-up",t.CORNER_CELL_MOUSE_MOVE="corner-cell:mouse-move",t.MERGED_CELLS_HOVER="merged-cells:hover",t.MERGED_CELLS_CLICK="merged-cells:click",t.MERGED_CELLS_DOUBLE_CLICK="merged-cells:double-click",t.MERGED_CELLS_CONTEXT_MENU="merged-cell:context-menu",t.MERGED_CELLS_MOUSE_DOWN="merged-cells:mouse-down",t.MERGED_CELLS_MOUSE_UP="merged-cells:mouse-up",t.MERGED_CELLS_MOUSE_MOVE="merged-cells:mouse-move",t.RANGE_SORT="sort:range-sort",t.RANGE_SORTED="sort:range-sorted",t.RANGE_FILTER="filter:range-filter",t.RANGE_FILTERED="filter:range-filtered",t.LAYOUT_AFTER_HEADER_LAYOUT="layout:after-header-layout",t.LAYOUT_CELL_SCROLL="layout:cell-scroll",t.LAYOUT_PAGINATION="layout:pagination",t.LAYOUT_COLLAPSE_ROWS="layout:collapsed-rows",t.LAYOUT_AFTER_COLLAPSE_ROWS="layout:after-collapsed-rows",t.LAYOUT_TREE_ROWS_COLLAPSE_ALL="layout:toggle-collapse-all",t.LAYOUT_COLS_EXPANDED="layout:table-col-expanded",t.LAYOUT_COLS_HIDDEN="layout:table-col-hidden",t.LAYOUT_AFTER_RENDER="layout:after-render",t.LAYOUT_BEFORE_RENDER="layout:before-render",t.LAYOUT_DESTROY="layout:destroy",t.LAYOUT_RESIZE="layout:resize",t.LAYOUT_RESIZE_SERIES_WIDTH="layout:resize-series-width",t.LAYOUT_RESIZE_ROW_WIDTH="layout:resize-row-width",t.LAYOUT_RESIZE_ROW_HEIGHT="layout:resize-row-height",t.LAYOUT_RESIZE_COL_WIDTH="layout:resize-column-width",t.LAYOUT_RESIZE_COL_HEIGHT="layout:resize-column-height",t.LAYOUT_RESIZE_TREE_WIDTH="layout:resize-tree-width",t.LAYOUT_RESIZE_MOUSE_DOWN="layout:resize:mouse-down",t.LAYOUT_RESIZE_MOUSE_MOVE="layout:resize:mouse-move",t.LAYOUT_RESIZE_MOUSE_UP="layout:resize-mouse-up",t.GLOBAL_KEYBOARD_DOWN="global:keyboard-down",t.GLOBAL_KEYBOARD_UP="global:keyboard-up",t.GLOBAL_COPIED="global:copied",t.GLOBAL_MOUSE_UP="global:mouse-up",t.GLOBAL_MOUSE_MOVE="global:mouse-move",t.GLOBAL_ACTION_ICON_CLICK="global:action-icon-click",t.GLOBAL_ACTION_ICON_HOVER="global:action-icon-hover",t.GLOBAL_ACTION_ICON_HOVER_OFF="global:action-icon-hover-off",t.GLOBAL_CONTEXT_MENU="global:context-menu",t.GLOBAL_CLICK="global:click",t.GLOBAL_DOUBLE_CLICK="global:double-click",t.GLOBAL_SELECTED="global:selected",t.GLOBAL_HOVER="global:hover",t.GLOBAL_RESET="global:reset",t.GLOBAL_LINK_FIELD_JUMP="global:link-field-jump",t.GLOBAL_SCROLL="global:scroll"}(Hi||(Hi={}));var Yi,Xi="$$value$$",$i="$$extra$$",qi="$$extra_column$$",Zi="$$total$$",Ki="$$series_number$$",Qi=0,Ji=3,to=3,eo=4,no=5,ro=5,io=1,oo=1,ao=2,so=1,uo="backGroundGroup",lo="foreGroundGroup",co="panelGroup",ho="panelScrollGroup",fo="mergedCellsGroup",po="frozenRowGroup",go="frozenColGroup",vo="frozenTrailingRowGroup",mo="frozenTrailingColGroup",yo="frozenTopGroup",bo="frozenBottomGroup",_o="rowResizeAreaGroup",xo="rowFrozenResizeAreaGroup",wo="frozenSplitLine",Oo="rowIndexResizeAreaGroup",So="cornerResizeAreaGroup",Co="colResizeAreaGroup",Eo="colFrozenResizeAreaGroup",To="colHorizontalResizeAreaGroup",Ao="colScrollGroup",Mo="colFrozenGroup",Io="colFrozenTrailingGroup",jo="gridGroup",ko="series-number-node",Po="horizontal-resize-area-",Lo="table-col-horizontal-resize-area",Ro="col-real-width-info",Do="root",No="[&]",Bo="-",Fo=0,zo=1,Vo=2,Uo=3,Go=28,Ho=16,Wo=16,Yo=/^root\[&\]*/,Xo="image",$o=.5,qo=50;!function(t){t.Line="line",t.Bar="bar",t.Bullet="bullet"}(Yi||(Yi={}));var Zo,Ko,Qo,Jo="square",ta="...",ea="antv-s2",na="valueRanges",ra={},ia=220,oa="#000000",aa="#FFFFFF",sa={data:[],totalData:[],fields:{rows:[],columns:[],values:[],customTreeItems:[],valueInCols:!0},meta:[],sortParams:[],filterParams:[]};!function(t){t.ROW="row",t.COL="col",t.TRAILING_ROW="trailingRow",t.TRAILING_COL="trailingCol",t.SCROLL="scroll",t.TOP="top",t.BOTTOM="bottom"}(Ko||(Ko={})),function(t){t.FROZEN_COL="frozenCol",t.FROZEN_ROW="frozenRow",t.FROZEN_TRAILING_COL="frozenTrailingCol",t.FROZEN_TRAILING_ROW="frozenTrailingRow"}(Qo||(Qo={}));var ua=((Zo={})[Ko.ROW]="frozenRowGroup",Zo[Ko.COL]="frozenColGroup",Zo[Ko.TRAILING_COL]="frozenTrailingColGroup",Zo[Ko.TRAILING_ROW]="frozenTrailingRowGroup",Zo[Ko.SCROLL]="panelScrollGroup",Zo[Ko.TOP]="frozenTopGroup",Zo[Ko.BOTTOM]="frozenBottomGroup",Zo),la="object"==typeof r&&r&&r.Object===Object&&r,ca="object"==typeof self&&self&&self.Object===Object&&self,ha=la||ca||Function("return this")(),fa=ha.Symbol,da=Object.prototype,pa=da.hasOwnProperty,ga=da.toString,va=fa?fa.toStringTag:void 0;var ma=Object.prototype.toString;var ya=fa?fa.toStringTag:void 0;function ba(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ya&&ya in Object(t)?function(t){var e=pa.call(t,va),n=t[va];try{t[va]=void 0;var r=!0}catch(t){}var i=ga.call(t);return r&&(e?t[va]=n:delete t[va]),i}(t):function(t){return ma.call(t)}(t)}function _a(t){return null!=t&&"object"==typeof t}function xa(t){return"symbol"==typeof t||_a(t)&&"[object Symbol]"==ba(t)}function wa(t){return"number"==typeof t?t:xa(t)?NaN:+t}function Oa(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var Sa=Array.isArray,Ca=fa?fa.prototype:void 0,Ea=Ca?Ca.toString:void 0;function Ta(t){if("string"==typeof t)return t;if(Sa(t))return Oa(t,Ta)+"";if(xa(t))return Ea?Ea.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Aa(t,e){return function(n,r){var i;if(void 0===n&&void 0===r)return e;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Ta(n),r=Ta(r)):(n=wa(n),r=wa(r)),i=t(n,r)}return i}}var Ma=Aa((function(t,e){return t+e}),0),Ia=/\s/;function ja(t){for(var e=t.length;e--&&Ia.test(t.charAt(e)););return e}var ka=/^\s+/;function Pa(t){return t?t.slice(0,ja(t)+1).replace(ka,""):t}function La(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Ra=/^[-+]0x[0-9a-f]+$/i,Da=/^0b[01]+$/i,Na=/^0o[0-7]+$/i,Ba=parseInt;function Fa(t){if("number"==typeof t)return t;if(xa(t))return NaN;if(La(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=La(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Pa(t);var n=Da.test(t);return n||Na.test(t)?Ba(t.slice(2),n?2:8):Ra.test(t)?NaN:+t}function za(t){return t?(t=Fa(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function Va(t){var e=za(t),n=e%1;return e==e?n?e-n:e:0}function Ua(t){return t}function Ga(t){if(!La(t))return!1;var e=ba(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var Ha,Wa=ha["__core-js_shared__"],Ya=(Ha=/[^.]+$/.exec(Wa&&Wa.keys&&Wa.keys.IE_PROTO||""))?"Symbol(src)_1."+Ha:"";var Xa=Function.prototype.toString;function $a(t){if(null!=t){try{return Xa.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var qa=/^\[object .+?Constructor\]$/,Za=Function.prototype,Ka=Object.prototype,Qa=Za.toString,Ja=Ka.hasOwnProperty,ts=RegExp("^"+Qa.call(Ja).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function es(t){return!(!La(t)||function(t){return!!Ya&&Ya in t}(t))&&(Ga(t)?ts:qa).test($a(t))}function ns(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return es(n)?n:void 0}var rs=ns(ha,"WeakMap"),is=rs&&new rs,os=is?function(t,e){return is.set(t,e),t}:Ua,as=Object.create,ss=function(){function t(){}return function(e){if(!La(e))return{};if(as)return as(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function us(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=ss(t.prototype),r=t.apply(n,e);return La(r)?r:n}}function ls(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var cs=Math.max;function hs(t,e,n,r){for(var i=-1,o=t.length,a=n.length,s=-1,u=e.length,l=cs(o-a,0),c=Array(u+l),h=!r;++s<u;)c[s]=e[s];for(;++i<a;)(h||i<o)&&(c[n[i]]=t[i]);for(;l--;)c[s++]=t[i++];return c}var fs=Math.max;function ds(t,e,n,r){for(var i=-1,o=t.length,a=-1,s=n.length,u=-1,l=e.length,c=fs(o-s,0),h=Array(c+l),f=!r;++i<c;)h[i]=t[i];for(var d=i;++u<l;)h[d+u]=e[u];for(;++a<s;)(f||i<o)&&(h[d+n[a]]=t[i++]);return h}function ps(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}function gs(){}function vs(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function ms(){}vs.prototype=ss(gs.prototype),vs.prototype.constructor=vs;var ys=is?function(t){return is.get(t)}:ms,bs={},_s=Object.prototype.hasOwnProperty;function xs(t){for(var e=t.name+"",n=bs[e],r=_s.call(bs,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function ws(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Os(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function Ss(t){if(t instanceof vs)return t.clone();var e=new ws(t.__wrapped__,t.__chain__);return e.__actions__=Os(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}ws.prototype=ss(gs.prototype),ws.prototype.constructor=ws;var Cs=Object.prototype.hasOwnProperty;function Es(t){if(_a(t)&&!Sa(t)&&!(t instanceof vs)){if(t instanceof ws)return t;if(Cs.call(t,"__wrapped__"))return Ss(t)}return new ws(t)}function Ts(t){var e=xs(t),n=Es[e];if("function"!=typeof n||!(e in vs.prototype))return!1;if(t===n)return!0;var r=ys(n);return!!r&&t===r[0]}Es.prototype=gs.prototype,Es.prototype.constructor=Es;var As=Date.now;function Ms(t){var e=0,n=0;return function(){var r=As(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Is=Ms(os),js=/\{\n\/\* \[wrapped with (.+)\] \*/,ks=/,? & /;var Ps=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Ls(t){return function(){return t}}var Rs=function(){try{var t=ns(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ds=Ms(Rs?function(t,e){return Rs(t,"toString",{configurable:!0,enumerable:!1,value:Ls(e),writable:!0})}:Ua);function Ns(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Bs(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Fs(t){return t!=t}function zs(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Bs(t,Fs,n)}function Vs(t,e){return!!(null==t?0:t.length)&&zs(t,e,0)>-1}var Us=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function Gs(t,e,n){var r=e+"";return Ds(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Ps,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ns(Us,(function(n){var r="_."+n[0];e&n[1]&&!Vs(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(js);return e?e[1].split(ks):[]}(r),n)))}function Hs(t,e,n,r,i,o,a,s,u,l){var c=8&e;e|=c?32:64,4&(e&=~(c?64:32))||(e&=-4);var h=[t,e,i,c?o:void 0,c?a:void 0,c?void 0:o,c?void 0:a,s,u,l],f=n.apply(void 0,h);return Ts(t)&&Is(f,h),f.placeholder=r,Gs(f,t,e)}function Ws(t){return t.placeholder}var Ys=/^(?:0|[1-9]\d*)$/;function Xs(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ys.test(t))&&t>-1&&t%1==0&&t<e}var $s=Math.min;function qs(t,e){for(var n=t.length,r=$s(e.length,n),i=Os(t);r--;){var o=e[r];t[r]=Xs(o,n)?i[o]:void 0}return t}function Zs(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&"__lodash_placeholder__"!==a||(t[n]="__lodash_placeholder__",o[i++]=n)}return o}function Ks(t,e,n,r,i,o,a,s,u,l){var c=128&e,h=1&e,f=2&e,d=24&e,p=512&e,g=f?void 0:us(t);return function v(){for(var m=arguments.length,y=Array(m),b=m;b--;)y[b]=arguments[b];if(d)var _=Ws(v),x=ps(y,_);if(r&&(y=hs(y,r,i,d)),o&&(y=ds(y,o,a,d)),m-=x,d&&m<l){var w=Zs(y,_);return Hs(t,e,Ks,v.placeholder,n,y,w,s,u,l-m)}var O=h?n:this,S=f?O[t]:t;return m=y.length,s?y=qs(y,s):p&&m>1&&y.reverse(),c&&u<m&&(y.length=u),this&&this!==ha&&this instanceof v&&(S=g||us(S)),S.apply(O,y)}}var Qs=Math.min;var Js=Math.max;function tu(t,e,n,r,i,o,a,s){var u=2&e;if(!u&&"function"!=typeof t)throw new TypeError("Expected a function");var l=r?r.length:0;if(l||(e&=-97,r=i=void 0),a=void 0===a?a:Js(Va(a),0),s=void 0===s?s:Va(s),l-=i?i.length:0,64&e){var c=r,h=i;r=i=void 0}var f=u?void 0:ys(t),d=[t,e,n,r,i,c,h,o,a,s];if(f&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,a=128==r&&8==n||128==r&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!a)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var s=e[3];if(s){var u=t[3];t[3]=u?hs(u,s,e[4]):s,t[4]=u?Zs(t[3],"__lodash_placeholder__"):e[4]}(s=e[5])&&(u=t[5],t[5]=u?ds(u,s,e[6]):s,t[6]=u?Zs(t[5],"__lodash_placeholder__"):e[6]),(s=e[7])&&(t[7]=s),128&r&&(t[8]=null==t[8]?e[8]:Qs(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(d,f),t=d[0],e=d[1],n=d[2],r=d[3],i=d[4],!(s=d[9]=void 0===d[9]?u?0:t.length:Js(d[9]-l,0))&&24&e&&(e&=-25),e&&1!=e)p=8==e||16==e?function(t,e,n){var r=us(t);return function i(){for(var o=arguments.length,a=Array(o),s=o,u=Ws(i);s--;)a[s]=arguments[s];var l=o<3&&a[0]!==u&&a[o-1]!==u?[]:Zs(a,u);if((o-=l.length)<n)return Hs(t,e,Ks,i.placeholder,void 0,a,l,void 0,void 0,n-o);var c=this&&this!==ha&&this instanceof i?r:t;return ls(c,this,a)}}(t,e,s):32!=e&&33!=e||i.length?Ks.apply(void 0,d):function(t,e,n,r){var i=1&e,o=us(t);return function e(){for(var a=-1,s=arguments.length,u=-1,l=r.length,c=Array(l+s),h=this&&this!==ha&&this instanceof e?o:t;++u<l;)c[u]=r[u];for(;s--;)c[u++]=arguments[++a];return ls(h,i?n:this,c)}}(t,e,n,r);else var p=function(t,e,n){var r=1&e,i=us(t);return function e(){var o=this&&this!==ha&&this instanceof e?i:t;return o.apply(r?n:this,arguments)}}(t,e,n);return Gs((f?os:Is)(p,d),t,e)}function eu(t,e,n){return e=n?void 0:e,tu(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function nu(t,e,n){"__proto__"==e&&Rs?Rs(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ru(t,e){return t===e||t!=t&&e!=e}var iu=Object.prototype.hasOwnProperty;function ou(t,e,n){var r=t[e];iu.call(t,e)&&ru(r,n)&&(void 0!==n||e in t)||nu(t,e,n)}function au(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),i?nu(n,s,u):ou(n,s,u)}return n}var su=Math.max;function uu(t,e,n){return e=su(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=su(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),ls(t,this,s)}}function lu(t,e){return Ds(uu(t,e,Ua),t+"")}function cu(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function hu(t){return null!=t&&cu(t.length)&&!Ga(t)}function fu(t,e,n){if(!La(n))return!1;var r=typeof e;return!!("number"==r?hu(n)&&Xs(e,n.length):"string"==r&&e in n)&&ru(n[e],t)}function du(t){return lu((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&fu(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e}))}var pu=Object.prototype;function gu(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||pu)}function vu(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function mu(t){return _a(t)&&"[object Arguments]"==ba(t)}var yu=Object.prototype,bu=yu.hasOwnProperty,_u=yu.propertyIsEnumerable,xu=mu(function(){return arguments}())?mu:function(t){return _a(t)&&bu.call(t,"callee")&&!_u.call(t,"callee")};function wu(){return!1}var Ou="object"==typeof exports&&exports&&!exports.nodeType&&exports,Su=Ou&&"object"==typeof i&&i&&!i.nodeType&&i,Cu=Su&&Su.exports===Ou?ha.Buffer:void 0,Eu=(Cu?Cu.isBuffer:void 0)||wu,Tu={};function Au(t){return function(e){return t(e)}}Tu["[object Float32Array]"]=Tu["[object Float64Array]"]=Tu["[object Int8Array]"]=Tu["[object Int16Array]"]=Tu["[object Int32Array]"]=Tu["[object Uint8Array]"]=Tu["[object Uint8ClampedArray]"]=Tu["[object Uint16Array]"]=Tu["[object Uint32Array]"]=!0,Tu["[object Arguments]"]=Tu["[object Array]"]=Tu["[object ArrayBuffer]"]=Tu["[object Boolean]"]=Tu["[object DataView]"]=Tu["[object Date]"]=Tu["[object Error]"]=Tu["[object Function]"]=Tu["[object Map]"]=Tu["[object Number]"]=Tu["[object Object]"]=Tu["[object RegExp]"]=Tu["[object Set]"]=Tu["[object String]"]=Tu["[object WeakMap]"]=!1;var Mu="object"==typeof exports&&exports&&!exports.nodeType&&exports,Iu=Mu&&"object"==typeof i&&i&&!i.nodeType&&i,ju=Iu&&Iu.exports===Mu&&la.process,ku=function(){try{var t=Iu&&Iu.require&&Iu.require("util").types;return t||ju&&ju.binding&&ju.binding("util")}catch(t){}}(),Pu=ku&&ku.isTypedArray,Lu=Pu?Au(Pu):function(t){return _a(t)&&cu(t.length)&&!!Tu[ba(t)]},Ru=Object.prototype.hasOwnProperty;function Du(t,e){var n=Sa(t),r=!n&&xu(t),i=!n&&!r&&Eu(t),o=!n&&!r&&!i&&Lu(t),a=n||r||i||o,s=a?vu(t.length,String):[],u=s.length;for(var l in t)!e&&!Ru.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Xs(l,u))||s.push(l);return s}function Nu(t,e){return function(n){return t(e(n))}}var Bu=Nu(Object.keys,Object),Fu=Object.prototype.hasOwnProperty;function zu(t){if(!gu(t))return Bu(t);var e=[];for(var n in Object(t))Fu.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Vu(t){return hu(t)?Du(t):zu(t)}var Uu=Object.prototype.hasOwnProperty,Gu=du((function(t,e){if(gu(e)||hu(e))au(e,Vu(e),t);else for(var n in e)Uu.call(e,n)&&ou(t,n,e[n])}));var Hu=Object.prototype.hasOwnProperty;function Wu(t){if(!La(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=gu(t),n=[];for(var r in t)("constructor"!=r||!e&&Hu.call(t,r))&&n.push(r);return n}function Yu(t){return hu(t)?Du(t,!0):Wu(t)}var Xu=du((function(t,e){au(e,Yu(e),t)})),$u=du((function(t,e,n,r){au(e,Yu(e),t,r)})),qu=du((function(t,e,n,r){au(e,Vu(e),t,r)})),Zu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ku=/^\w*$/;function Qu(t,e){if(Sa(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!xa(t))||(Ku.test(t)||!Zu.test(t)||null!=e&&t in Object(e))}var Ju=ns(Object,"create");var tl=Object.prototype.hasOwnProperty;var el=Object.prototype.hasOwnProperty;function nl(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function rl(t,e){for(var n=t.length;n--;)if(ru(t[n][0],e))return n;return-1}nl.prototype.clear=function(){this.__data__=Ju?Ju(null):{},this.size=0},nl.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},nl.prototype.get=function(t){var e=this.__data__;if(Ju){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return tl.call(e,t)?e[t]:void 0},nl.prototype.has=function(t){var e=this.__data__;return Ju?void 0!==e[t]:el.call(e,t)},nl.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ju&&void 0===e?"__lodash_hash_undefined__":e,this};var il=Array.prototype.splice;function ol(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ol.prototype.clear=function(){this.__data__=[],this.size=0},ol.prototype.delete=function(t){var e=this.__data__,n=rl(e,t);return!(n<0)&&(n==e.length-1?e.pop():il.call(e,n,1),--this.size,!0)},ol.prototype.get=function(t){var e=this.__data__,n=rl(e,t);return n<0?void 0:e[n][1]},ol.prototype.has=function(t){return rl(this.__data__,t)>-1},ol.prototype.set=function(t,e){var n=this.__data__,r=rl(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var al=ns(ha,"Map");function sl(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function ul(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ul.prototype.clear=function(){this.size=0,this.__data__={hash:new nl,map:new(al||ol),string:new nl}},ul.prototype.delete=function(t){var e=sl(this,t).delete(t);return this.size-=e?1:0,e},ul.prototype.get=function(t){return sl(this,t).get(t)},ul.prototype.has=function(t){return sl(this,t).has(t)},ul.prototype.set=function(t,e){var n=sl(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function ll(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(ll.Cache||ul),n}ll.Cache=ul;var cl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hl=/\\(\\)?/g,fl=function(t){var e=ll(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(cl,(function(t,n,r,i){e.push(r?i.replace(hl,"$1"):n||t)})),e}));function dl(t){return null==t?"":Ta(t)}function pl(t,e){return Sa(t)?t:Qu(t,e)?[t]:fl(dl(t))}function gl(t){if("string"==typeof t||xa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function vl(t,e){for(var n=0,r=(e=pl(e,t)).length;null!=t&&n<r;)t=t[gl(e[n++])];return n&&n==r?t:void 0}function ml(t,e,n){var r=null==t?void 0:vl(t,e);return void 0===r?n:r}function yl(t,e){for(var n=-1,r=e.length,i=Array(r),o=null==t;++n<r;)i[n]=o?void 0:ml(t,e[n]);return i}function bl(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var _l=fa?fa.isConcatSpreadable:void 0;function xl(t){return Sa(t)||xu(t)||!!(_l&&t&&t[_l])}function wl(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=xl),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?wl(s,e-1,n,r,i):bl(i,s):r||(i[i.length]=s)}return i}function Ol(t){return(null==t?0:t.length)?wl(t,1):[]}function Sl(t){return Ds(uu(t,void 0,Ol),t+"")}var Cl=Sl(yl),El=Nu(Object.getPrototypeOf,Object),Tl=Function.prototype,Al=Object.prototype,Ml=Tl.toString,Il=Al.hasOwnProperty,jl=Ml.call(Object);function kl(t){if(!_a(t)||"[object Object]"!=ba(t))return!1;var e=El(t);if(null===e)return!0;var n=Il.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ml.call(n)==jl}function Pl(t){if(!_a(t))return!1;var e=ba(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!kl(t)}var Ll=lu((function(t,e){try{return ls(t,void 0,e)}catch(t){return Pl(t)?t:new Error(t)}}));function Rl(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=Va(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var Dl=lu((function(t,e,n){var r=1;if(n.length){var i=Zs(n,Ws(Dl));r|=32}return tu(t,r,e,n,i)}));Dl.placeholder={};var Nl=Dl,Bl=Sl((function(t,e){return Ns(e,(function(e){e=gl(e),nu(t,e,Nl(t[e],t))})),t})),Fl=lu((function(t,e,n){var r=3;if(n.length){var i=Zs(n,Ws(Fl));r|=32}return tu(e,r,t,n,i)}));Fl.placeholder={};var zl=Fl;function Vl(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}function Ul(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Vl(t,e,n)}var Gl=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Hl(t){return Gl.test(t)}var Wl="[\\ud800-\\udfff]",Yl="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Xl="\\ud83c[\\udffb-\\udfff]",$l="[^\\ud800-\\udfff]",ql="(?:\\ud83c[\\udde6-\\uddff]){2}",Zl="[\\ud800-\\udbff][\\udc00-\\udfff]",Kl="(?:"+Yl+"|"+Xl+")"+"?",Ql="[\\ufe0e\\ufe0f]?"+Kl+("(?:\\u200d(?:"+[$l,ql,Zl].join("|")+")[\\ufe0e\\ufe0f]?"+Kl+")*"),Jl="(?:"+[$l+Yl+"?",Yl,ql,Zl,Wl].join("|")+")",tc=RegExp(Xl+"(?="+Xl+")|"+Jl+Ql,"g");function ec(t){return Hl(t)?function(t){return t.match(tc)||[]}(t):function(t){return t.split("")}(t)}function nc(t){return function(e){var n=Hl(e=dl(e))?ec(e):void 0,r=n?n[0]:e.charAt(0),i=n?Ul(n,1).join(""):e.slice(1);return r[t]()+i}}var rc=nc("toUpperCase");function ic(t){return rc(dl(t).toLowerCase())}function oc(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function ac(t){return function(e){return null==t?void 0:t[e]}}var sc=ac({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),uc=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lc=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function cc(t){return(t=dl(t))&&t.replace(uc,sc).replace(lc,"")}var hc=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var fc=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var dc="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pc="["+dc+"]",gc="\\d+",vc="[\\u2700-\\u27bf]",mc="[a-z\\xdf-\\xf6\\xf8-\\xff]",yc="[^\\ud800-\\udfff"+dc+gc+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",bc="(?:\\ud83c[\\udde6-\\uddff]){2}",_c="[\\ud800-\\udbff][\\udc00-\\udfff]",xc="[A-Z\\xc0-\\xd6\\xd8-\\xde]",wc="(?:"+mc+"|"+yc+")",Oc="(?:"+xc+"|"+yc+")",Sc="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Cc="[\\ufe0e\\ufe0f]?"+Sc+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",bc,_c].join("|")+")[\\ufe0e\\ufe0f]?"+Sc+")*"),Ec="(?:"+[vc,bc,_c].join("|")+")"+Cc,Tc=RegExp([xc+"?"+mc+"+(?:['](?:d|ll|m|re|s|t|ve))?(?="+[pc,xc,"$"].join("|")+")",Oc+"+(?:['](?:D|LL|M|RE|S|T|VE))?(?="+[pc,xc+wc,"$"].join("|")+")",xc+"?"+wc+"+(?:['](?:d|ll|m|re|s|t|ve))?",xc+"+(?:['](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gc,Ec].join("|"),"g");function Ac(t,e,n){return t=dl(t),void 0===(e=n?void 0:e)?function(t){return fc.test(t)}(t)?function(t){return t.match(Tc)||[]}(t):function(t){return t.match(hc)||[]}(t):t.match(e)||[]}var Mc=RegExp("[']","g");function Ic(t){return function(e){return oc(Ac(cc(e).replace(Mc,"")),t,"")}}var jc=Ic((function(t,e,n){return e=e.toLowerCase(),t+(n?ic(e):e)}));var kc=ha.isFinite,Pc=Math.min;function Lc(t){var e=Math[t];return function(t,n){if(t=Fa(t),(n=null==n?0:Pc(Va(n),292))&&kc(t)){var r=(dl(t)+"e").split("e");return+((r=(dl(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Rc=Lc("ceil");function Dc(t){var e=Es(t);return e.__chain__=!0,e}var Nc=Math.ceil,Bc=Math.max;function Fc(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}function zc(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=Fa(n))==n?n:0),void 0!==e&&(e=(e=Fa(e))==e?e:0),Fc(Fa(t),e,n)}function Vc(t){var e=this.__data__=new ol(t);this.size=e.size}function Uc(t,e){return t&&au(e,Vu(e),t)}Vc.prototype.clear=function(){this.__data__=new ol,this.size=0},Vc.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Vc.prototype.get=function(t){return this.__data__.get(t)},Vc.prototype.has=function(t){return this.__data__.has(t)},Vc.prototype.set=function(t,e){var n=this.__data__;if(n instanceof ol){var r=n.__data__;if(!al||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new ul(r)}return n.set(t,e),this.size=n.size,this};var Gc="object"==typeof exports&&exports&&!exports.nodeType&&exports,Hc=Gc&&"object"==typeof i&&i&&!i.nodeType&&i,Wc=Hc&&Hc.exports===Gc?ha.Buffer:void 0,Yc=Wc?Wc.allocUnsafe:void 0;function Xc(t,e){if(e)return t.slice();var n=t.length,r=Yc?Yc(n):new t.constructor(n);return t.copy(r),r}function $c(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function qc(){return[]}var Zc=Object.prototype.propertyIsEnumerable,Kc=Object.getOwnPropertySymbols,Qc=Kc?function(t){return null==t?[]:(t=Object(t),$c(Kc(t),(function(e){return Zc.call(t,e)})))}:qc;var Jc=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)bl(e,Qc(t)),t=El(t);return e}:qc;function th(t,e,n){var r=e(t);return Sa(t)?r:bl(r,n(t))}function eh(t){return th(t,Vu,Qc)}function nh(t){return th(t,Yu,Jc)}var rh=ns(ha,"DataView"),ih=ns(ha,"Promise"),oh=ns(ha,"Set"),ah=$a(rh),sh=$a(al),uh=$a(ih),lh=$a(oh),ch=$a(rs),hh=ba;(rh&&"[object DataView]"!=hh(new rh(new ArrayBuffer(1)))||al&&"[object Map]"!=hh(new al)||ih&&"[object Promise]"!=hh(ih.resolve())||oh&&"[object Set]"!=hh(new oh)||rs&&"[object WeakMap]"!=hh(new rs))&&(hh=function(t){var e=ba(t),n="[object Object]"==e?t.constructor:void 0,r=n?$a(n):"";if(r)switch(r){case ah:return"[object DataView]";case sh:return"[object Map]";case uh:return"[object Promise]";case lh:return"[object Set]";case ch:return"[object WeakMap]"}return e});var fh=hh,dh=Object.prototype.hasOwnProperty;var ph=ha.Uint8Array;function gh(t){var e=new t.constructor(t.byteLength);return new ph(e).set(new ph(t)),e}var vh=/\w*$/;var mh=fa?fa.prototype:void 0,yh=mh?mh.valueOf:void 0;function bh(t,e){var n=e?gh(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function _h(t,e,n){var r,i=t.constructor;switch(e){case"[object ArrayBuffer]":return gh(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var n=e?gh(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return bh(t,n);case"[object Map]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,vh.exec(t));return e.lastIndex=t.lastIndex,e}(t);case"[object Set]":return new i;case"[object Symbol]":return r=t,yh?Object(yh.call(r)):{}}}function xh(t){return"function"!=typeof t.constructor||gu(t)?{}:ss(El(t))}var wh=ku&&ku.isMap,Oh=wh?Au(wh):function(t){return _a(t)&&"[object Map]"==fh(t)};var Sh=ku&&ku.isSet,Ch=Sh?Au(Sh):function(t){return _a(t)&&"[object Set]"==fh(t)},Eh={};function Th(t,e,n,r,i,o){var a,s=1&e,u=2&e,l=4&e;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!La(t))return t;var c=Sa(t);if(c){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&dh.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!s)return Os(t,a)}else{var h=fh(t),f="[object Function]"==h||"[object GeneratorFunction]"==h;if(Eu(t))return Xc(t,s);if("[object Object]"==h||"[object Arguments]"==h||f&&!i){if(a=u||f?{}:xh(t),!s)return u?function(t,e){return au(t,Jc(t),e)}(t,function(t,e){return t&&au(e,Yu(e),t)}(a,t)):function(t,e){return au(t,Qc(t),e)}(t,Uc(a,t))}else{if(!Eh[h])return i?t:{};a=_h(t,h,s)}}o||(o=new Vc);var d=o.get(t);if(d)return d;o.set(t,a),Ch(t)?t.forEach((function(r){a.add(Th(r,e,n,r,t,o))})):Oh(t)&&t.forEach((function(r,i){a.set(i,Th(r,e,n,i,t,o))}));var p=c?void 0:(l?u?nh:eh:u?Yu:Vu)(t);return Ns(p||t,(function(r,i){p&&(r=t[i=r]),ou(a,i,Th(r,e,n,i,t,o))})),a}Eh["[object Arguments]"]=Eh["[object Array]"]=Eh["[object ArrayBuffer]"]=Eh["[object DataView]"]=Eh["[object Boolean]"]=Eh["[object Date]"]=Eh["[object Float32Array]"]=Eh["[object Float64Array]"]=Eh["[object Int8Array]"]=Eh["[object Int16Array]"]=Eh["[object Int32Array]"]=Eh["[object Map]"]=Eh["[object Number]"]=Eh["[object Object]"]=Eh["[object RegExp]"]=Eh["[object Set]"]=Eh["[object String]"]=Eh["[object Symbol]"]=Eh["[object Uint8Array]"]=Eh["[object Uint8ClampedArray]"]=Eh["[object Uint16Array]"]=Eh["[object Uint32Array]"]=!0,Eh["[object Error]"]=Eh["[object Function]"]=Eh["[object WeakMap]"]=!1;function Ah(t){return Th(t,4)}function Mh(t){return Th(t,5)}function Ih(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}function jh(){var t=arguments.length;if(!t)return[];for(var e=Array(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return bl(Sa(n)?Os(n):[n],wl(e,1))}function kh(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new ul;++e<n;)this.add(t[e])}function Ph(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Lh(t,e){return t.has(e)}kh.prototype.add=kh.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},kh.prototype.has=function(t){return this.__data__.has(t)};function Rh(t,e,n,r,i,o){var a=1&n,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(t),c=o.get(e);if(l&&c)return l==e&&c==t;var h=-1,f=!0,d=2&n?new kh:void 0;for(o.set(t,e),o.set(e,t);++h<s;){var p=t[h],g=e[h];if(r)var v=a?r(g,p,h,e,t,o):r(p,g,h,t,e,o);if(void 0!==v){if(v)continue;f=!1;break}if(d){if(!Ph(e,(function(t,e){if(!Lh(d,e)&&(p===t||i(p,t,n,r,o)))return d.push(e)}))){f=!1;break}}else if(p!==g&&!i(p,g,n,r,o)){f=!1;break}}return o.delete(t),o.delete(e),f}function Dh(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Nh(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var Bh=fa?fa.prototype:void 0,Fh=Bh?Bh.valueOf:void 0;var zh=Object.prototype.hasOwnProperty;var Vh="[object Object]",Uh=Object.prototype.hasOwnProperty;function Gh(t,e,n,r,i,o){var a=Sa(t),s=Sa(e),u=a?"[object Array]":fh(t),l=s?"[object Array]":fh(e),c=(u="[object Arguments]"==u?Vh:u)==Vh,h=(l="[object Arguments]"==l?Vh:l)==Vh,f=u==l;if(f&&Eu(t)){if(!Eu(e))return!1;a=!0,c=!1}if(f&&!c)return o||(o=new Vc),a||Lu(t)?Rh(t,e,n,r,i,o):function(t,e,n,r,i,o,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new ph(t),new ph(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ru(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=Dh;case"[object Set]":var u=1&r;if(s||(s=Nh),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;r|=2,a.set(t,e);var c=Rh(s(t),s(e),r,i,o,a);return a.delete(t),c;case"[object Symbol]":if(Fh)return Fh.call(t)==Fh.call(e)}return!1}(t,e,u,n,r,i,o);if(!(1&n)){var d=c&&Uh.call(t,"__wrapped__"),p=h&&Uh.call(e,"__wrapped__");if(d||p){var g=d?t.value():t,v=p?e.value():e;return o||(o=new Vc),i(g,v,n,r,o)}}return!!f&&(o||(o=new Vc),function(t,e,n,r,i,o){var a=1&n,s=eh(t),u=s.length;if(u!=eh(e).length&&!a)return!1;for(var l=u;l--;){var c=s[l];if(!(a?c in e:zh.call(e,c)))return!1}var h=o.get(t),f=o.get(e);if(h&&f)return h==e&&f==t;var d=!0;o.set(t,e),o.set(e,t);for(var p=a;++l<u;){var g=t[c=s[l]],v=e[c];if(r)var m=a?r(v,g,c,e,t,o):r(g,v,c,t,e,o);if(!(void 0===m?g===v||i(g,v,n,r,o):m)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){var y=t.constructor,b=e.constructor;y==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(d=!1)}return o.delete(t),o.delete(e),d}(t,e,n,r,i,o))}function Hh(t,e,n,r,i){return t===e||(null==t||null==e||!_a(t)&&!_a(e)?t!=t&&e!=e:Gh(t,e,n,r,Hh,i))}function Wh(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=Object(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){var u=(s=n[i])[0],l=t[u],c=s[1];if(a&&s[2]){if(void 0===l&&!(u in t))return!1}else{var h=new Vc;if(r)var f=r(l,c,u,t,e,h);if(!(void 0===f?Hh(c,l,3,r,h):f))return!1}}return!0}function Yh(t){return t==t&&!La(t)}function Xh(t){for(var e=Vu(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Yh(i)]}return e}function $h(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}function qh(t){var e=Xh(t);return 1==e.length&&e[0][2]?$h(e[0][0],e[0][1]):function(n){return n===t||Wh(n,t,e)}}function Zh(t,e){return null!=t&&e in Object(t)}function Kh(t,e,n){for(var r=-1,i=(e=pl(e,t)).length,o=!1;++r<i;){var a=gl(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&cu(i)&&Xs(a,i)&&(Sa(t)||xu(t))}function Qh(t,e){return null!=t&&Kh(t,e,Zh)}function Jh(t,e){return Qu(t)&&Yh(e)?$h(gl(t),e):function(n){var r=ml(n,t);return void 0===r&&r===e?Qh(n,t):Hh(e,r,3)}}function tf(t){return function(e){return null==e?void 0:e[t]}}function ef(t){return Qu(t)?tf(gl(t)):function(t){return function(e){return vl(e,t)}}(t)}function nf(t){return"function"==typeof t?t:null==t?Ua:"object"==typeof t?Sa(t)?Jh(t[0],t[1]):qh(t):ef(t)}function rf(t){var e=null==t?0:t.length,n=nf;return t=e?Oa(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[n(t[0]),t[1]]})):[],lu((function(n){for(var r=-1;++r<e;){var i=t[r];if(ls(i[0],this,n))return ls(i[1],this,n)}}))}function of(t,e,n){var r=n.length;if(null==t)return!r;for(t=Object(t);r--;){var i=n[r],o=e[i],a=t[i];if(void 0===a&&!(i in t)||!o(a))return!1}return!0}function af(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function sf(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}var uf=sf();function lf(t,e){return t&&uf(t,e,Vu)}function cf(t,e){return function(n,r){if(null==n)return n;if(!hu(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Object(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}var hf=cf(lf);function ff(t,e,n,r){return hf(t,(function(t,i,o){e(r,t,n(t),o)})),r}function df(t,e){return function(n,r){var i=Sa(n)?af:ff,o=e?e():{};return i(n,t,nf(r),o)}}var pf=Object.prototype.hasOwnProperty,gf=df((function(t,e,n){pf.call(t,n)?++t[n]:nu(t,n,1)}));function vf(t,e,n){var r=tu(t,8,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e);return r.placeholder=vf.placeholder,r}vf.placeholder={};function mf(t,e,n){var r=tu(t,16,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e);return r.placeholder=mf.placeholder,r}mf.placeholder={};var yf=function(){return ha.Date.now()},bf=Math.max,_f=Math.min;function xf(t,e,n){var r,i,o,a,s,u,l=0,c=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var n=r,o=i;return r=i=void 0,l=e,a=t.apply(o,n)}function p(t){return l=t,s=setTimeout(v,e),c?d(t):a}function g(t){var n=t-u;return void 0===u||n>=e||n<0||h&&t-l>=o}function v(){var t=yf();if(g(t))return m(t);s=setTimeout(v,function(t){var n=e-(t-u);return h?_f(n,o-(t-l)):n}(t))}function m(t){return s=void 0,f&&r?d(t):(r=i=void 0,a)}function y(){var t=yf(),n=g(t);if(r=arguments,i=this,u=t,n){if(void 0===s)return p(u);if(h)return clearTimeout(s),s=setTimeout(v,e),d(u)}return void 0===s&&(s=setTimeout(v,e)),a}return e=Fa(e)||0,La(n)&&(c=!!n.leading,o=(h="maxWait"in n)?bf(Fa(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=u=i=s=void 0},y.flush=function(){return void 0===s?a:m(yf())},y}var wf=Object.prototype,Of=wf.hasOwnProperty,Sf=lu((function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&fu(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],a=Yu(o),s=-1,u=a.length;++s<u;){var l=a[s],c=t[l];(void 0===c||ru(c,wf[l])&&!Of.call(t,l))&&(t[l]=o[l])}return t}));function Cf(t,e,n){(void 0!==n&&!ru(t[e],n)||void 0===n&&!(e in t))&&nu(t,e,n)}function Ef(t){return _a(t)&&hu(t)}function Tf(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Af(t){return au(t,Yu(t))}function Mf(t,e,n,r,i){t!==e&&uf(e,(function(o,a){if(i||(i=new Vc),La(o))!function(t,e,n,r,i,o,a){var s=Tf(t,n),u=Tf(e,n),l=a.get(u);if(l)Cf(t,n,l);else{var c=o?o(s,u,n+"",t,e,a):void 0,h=void 0===c;if(h){var f=Sa(u),d=!f&&Eu(u),p=!f&&!d&&Lu(u);c=u,f||d||p?Sa(s)?c=s:Ef(s)?c=Os(s):d?(h=!1,c=Xc(u,!0)):p?(h=!1,c=bh(u,!0)):c=[]:kl(u)||xu(u)?(c=s,xu(s)?c=Af(s):La(s)&&!Ga(s)||(c=xh(u))):h=!1}h&&(a.set(u,c),i(c,u,r,o,a),a.delete(u)),Cf(t,n,c)}}(t,e,a,n,Mf,r,i);else{var s=r?r(Tf(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Cf(t,a,s)}}),Yu)}function If(t,e,n,r,i,o){return La(t)&&La(e)&&(o.set(e,t),Mf(t,e,void 0,If,o),o.delete(e)),t}var jf=du((function(t,e,n,r){Mf(t,e,n,r)})),kf=lu((function(t){return t.push(void 0,If),ls(jf,void 0,t)}));function Pf(t,e,n){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout((function(){t.apply(void 0,n)}),e)}var Lf=lu((function(t,e){return Pf(t,1,e)})),Rf=lu((function(t,e,n){return Pf(t,Fa(e)||0,n)}));function Df(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Nf(t,e,n,r){var i=-1,o=Vs,a=!0,s=t.length,u=[],l=e.length;if(!s)return u;n&&(e=Oa(e,Au(n))),r?(o=Df,a=!1):e.length>=200&&(o=Lh,a=!1,e=new kh(e));t:for(;++i<s;){var c=t[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,a&&h==h){for(var f=l;f--;)if(e[f]===h)continue t;u.push(c)}else o(e,h,r)||u.push(c)}return u}var Bf=lu((function(t,e){return Ef(t)?Nf(t,wl(e,1,Ef,!0)):[]}));function Ff(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var zf=lu((function(t,e){var n=Ff(e);return Ef(n)&&(n=void 0),Ef(t)?Nf(t,wl(e,1,Ef,!0),nf(n)):[]})),Vf=lu((function(t,e){var n=Ff(e);return Ef(n)&&(n=void 0),Ef(t)?Nf(t,wl(e,1,Ef,!0),void 0,n):[]})),Uf=Aa((function(t,e){return t/e}),1);function Gf(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?Vl(t,r?0:o,r?o+1:i):Vl(t,r?o+1:0,r?i:o)}function Hf(t){return"function"==typeof t?t:Ua}function Wf(t,e){return(Sa(t)?Ns:hf)(t,Hf(e))}function Yf(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}var Xf=sf(!0);function $f(t,e){return t&&Xf(t,e,Vu)}var qf=cf($f,!0);function Zf(t,e){return(Sa(t)?Yf:qf)(t,Hf(e))}function Kf(t,e,n){t=dl(t),e=Ta(e);var r=t.length,i=n=void 0===n?r:Fc(Va(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e}function Qf(t){return function(e){var n=fh(e);return"[object Map]"==n?Dh(e):"[object Set]"==n?function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}(e):function(t,e){return Oa(e,(function(e){return[e,t[e]]}))}(e,t(e))}}var Jf=Qf(Vu),td=Qf(Yu),ed=ac({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),nd=/[&<>"']/g,rd=RegExp(nd.source);function id(t){return(t=dl(t))&&rd.test(t)?t.replace(nd,ed):t}var od=/[\\^$.*+?()[\]{}|]/g,ad=RegExp(od.source);function sd(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function ud(t,e){var n=!0;return hf(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function ld(t,e,n){var r=Sa(t)?sd:ud;return n&&fu(t,e,n)&&(e=void 0),r(t,nf(e))}function cd(t){return t?Fc(Va(t),0,4294967295):0}function hd(t,e){var n=[];return hf(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function fd(t,e){return(Sa(t)?$c:hd)(t,nf(e))}function dd(t){return function(e,n,r){var i=Object(e);if(!hu(e)){var o=nf(n);e=Vu(e),n=function(t){return o(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:void 0}}var pd=Math.max;function gd(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Va(n);return i<0&&(i=pd(r+i,0)),Bs(t,nf(e),i)}var vd=dd(gd);function md(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}var yd=Math.max,bd=Math.min;function _d(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=Va(n),i=n<0?yd(r+i,0):bd(i,r-1)),Bs(t,nf(e),i,!0)}var xd=dd(_d);function wd(t){return t&&t.length?t[0]:void 0}function Od(t,e){var n=-1,r=hu(t)?Array(t.length):[];return hf(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}function Sd(t,e){return(Sa(t)?Oa:Od)(t,nf(e))}var Cd=Lc("floor");function Ed(t){return Sl((function(e){var n=e.length,r=n,i=ws.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if("function"!=typeof o)throw new TypeError("Expected a function");if(i&&!a&&"wrapper"==xs(o))var a=new ws([],!0)}for(r=a?r:n;++r<n;){var s=xs(o=e[r]),u="wrapper"==s?ys(o):void 0;a=u&&Ts(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?a[xs(u[0])].apply(a,u[3]):1==o.length&&Ts(o)?a[s]():a.thru(o)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&Sa(r))return a.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}var Td=Ed(),Ad=Ed(!0);function Md(t,e){return null==t?t:uf(t,Hf(e),Yu)}function Id(t,e){return $c(e,(function(e){return Ga(t[e])}))}var jd=Object.prototype.hasOwnProperty,kd=df((function(t,e,n){jd.call(t,n)?t[n].push(e):nu(t,n,[e])}));function Pd(t,e){return t>e}function Ld(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Fa(e),n=Fa(n)),t(e,n)}}var Rd=Ld(Pd),Dd=Ld((function(t,e){return t>=e})),Nd=Object.prototype.hasOwnProperty;function Bd(t,e){return null!=t&&Nd.call(t,e)}function Fd(t,e){return null!=t&&Kh(t,e,Bd)}var zd=Math.max,Vd=Math.min;function Ud(t,e,n){return e=za(e),void 0===n?(n=e,e=0):n=za(n),function(t,e,n){return t>=Vd(e,n)&&t<zd(e,n)}(t=Fa(t),e,n)}function Gd(t){return"string"==typeof t||!Sa(t)&&_a(t)&&"[object String]"==ba(t)}function Hd(t,e){return Oa(e,(function(e){return t[e]}))}function Wd(t){return null==t?[]:Hd(t,Vu(t))}var Yd=Math.max;function Xd(t,e,n,r){t=hu(t)?t:Wd(t),n=n&&!r?Va(n):0;var i=t.length;return n<0&&(n=Yd(i+n,0)),Gd(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&zs(t,e,n)>-1}var $d=Math.max;function qd(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Va(n);return i<0&&(i=$d(r+i,0)),zs(t,e,i)}var Zd=Math.min;function Kd(t,e,n){for(var r=n?Df:Vs,i=t[0].length,o=t.length,a=o,s=Array(o),u=1/0,l=[];a--;){var c=t[a];a&&e&&(c=Oa(c,Au(e))),u=Zd(c.length,u),s[a]=!n&&(e||i>=120&&c.length>=120)?new kh(a&&c):void 0}c=t[0];var h=-1,f=s[0];t:for(;++h<i&&l.length<u;){var d=c[h],p=e?e(d):d;if(d=n||0!==d?d:0,!(f?Lh(f,p):r(l,p,n))){for(a=o;--a;){var g=s[a];if(!(g?Lh(g,p):r(t[a],p,n)))continue t}f&&f.push(p),l.push(d)}}return l}function Qd(t){return Ef(t)?t:[]}var Jd=lu((function(t){var e=Oa(t,Qd);return e.length&&e[0]===t[0]?Kd(e):[]})),tp=lu((function(t){var e=Ff(t),n=Oa(t,Qd);return e===Ff(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?Kd(n,nf(e)):[]})),ep=lu((function(t){var e=Ff(t),n=Oa(t,Qd);return(e="function"==typeof e?e:void 0)&&n.pop(),n.length&&n[0]===t[0]?Kd(n,void 0,e):[]}));function np(t,e){return function(n,r){return function(t,e,n,r){return lf(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}var rp=Object.prototype.toString,ip=np((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=rp.call(e)),t[e]=n}),Ls(Ua)),op=Object.prototype,ap=op.hasOwnProperty,sp=op.toString,up=np((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=sp.call(e)),ap.call(t,e)?t[e].push(n):t[e]=[n]}),nf);function lp(t,e){return e.length<2?t:vl(t,Vl(e,0,-1))}function cp(t,e,n){var r=null==(t=lp(t,e=pl(e,t)))?t:t[gl(Ff(e))];return null==r?void 0:ls(r,t,n)}var hp=lu(cp),fp=lu((function(t,e,n){var r=-1,i="function"==typeof e,o=hu(t)?Array(t.length):[];return hf(t,(function(t){o[++r]=i?ls(e,t,n):cp(t,e,n)})),o}));var dp=ku&&ku.isArrayBuffer,pp=dp?Au(dp):function(t){return _a(t)&&"[object ArrayBuffer]"==ba(t)};function gp(t){return!0===t||!1===t||_a(t)&&"[object Boolean]"==ba(t)}var vp=ku&&ku.isDate,mp=vp?Au(vp):function(t){return _a(t)&&"[object Date]"==ba(t)};var yp=Object.prototype.hasOwnProperty;function bp(t){if(null==t)return!0;if(hu(t)&&(Sa(t)||"string"==typeof t||"function"==typeof t.splice||Eu(t)||Lu(t)||xu(t)))return!t.length;var e=fh(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(gu(t))return!zu(t).length;for(var n in t)if(yp.call(t,n))return!1;return!0}function _p(t,e){return Hh(t,e)}var xp=ha.isFinite;function wp(t){return"number"==typeof t&&t==Va(t)}function Op(t){return"number"==typeof t||_a(t)&&"[object Number]"==ba(t)}function Sp(t){return Op(t)&&t!=+t}var Cp=Wa?Ga:wu;function Ep(t){return null==t}var Tp=ku&&ku.isRegExp,Ap=Tp?Au(Tp):function(t){return _a(t)&&"[object RegExp]"==ba(t)};function Mp(t){return void 0===t}var Ip=Array.prototype.join;var jp=Ic((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),kp=df((function(t,e,n){nu(t,n,e)}));var Pp=Math.max,Lp=Math.min;var Rp=Ic((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Dp=nc("toLowerCase");function Np(t,e){return t<e}var Bp=Ld(Np),Fp=Ld((function(t,e){return t<=e}));function zp(t,e){var n={};return e=nf(e),lf(t,(function(t,r,i){nu(n,e(t,r,i),t)})),n}function Vp(t){return qh(Th(t,1))}function Up(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(void 0===s?a==a&&!xa(a):n(a,s)))var s=a,u=o}return u}function Gp(t){return t&&t.length?Up(t,Ua,Pd):void 0}function Hp(t,e){return t&&t.length?Up(t,nf(e),Pd):void 0}function Wp(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function Yp(t,e){var n=null==t?0:t.length;return n?Wp(t,e)/n:NaN}var Xp=du((function(t,e,n){Mf(t,e,n)})),$p=lu((function(t,e){return function(n){return cp(n,t,e)}})),qp=lu((function(t,e){return function(n){return cp(t,n,e)}}));function Zp(t){return t&&t.length?Up(t,Ua,Np):void 0}function Kp(t,e,n){var r=Vu(e),i=Id(e,r),o=!(La(n)&&"chain"in n&&!n.chain),a=Ga(t);return Ns(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=Os(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,bl([this.value()],arguments))})})),t}var Qp=Aa((function(t,e){return t*e}),1);function Jp(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}var tg=fa?fa.iterator:void 0;function eg(t){if(!t)return[];if(hu(t))return Gd(t)?ec(t):Os(t);if(tg&&t[tg])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[tg]());var e=fh(t);return("[object Map]"==e?Dh:"[object Set]"==e?Nh:Wd)(t)}function ng(t,e){var n=t.length;if(n)return Xs(e+=e<0?n:0,n)?t[e]:void 0}function rg(t,e){return null==(t=lp(t,e=pl(e,t)))||delete t[gl(Ff(e))]}function ig(t){return kl(t)?void 0:t}var og=Sl((function(t,e){var n={};if(null==t)return n;var r=!1;e=Oa(e,(function(e){return e=pl(e,t),r||(r=e.length>1),e})),au(t,nh(t),n),r&&(n=Th(n,7,ig));for(var i=e.length;i--;)rg(n,e[i]);return n}));function ag(t,e,n,r){if(!La(t))return t;for(var i=-1,o=(e=pl(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var u=gl(e[i]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(i!=a){var c=s[u];void 0===(l=r?r(c,u,s):void 0)&&(l=La(c)?c:Xs(e[i+1])?[]:{})}ou(s,u,l),s=s[u]}return t}function sg(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=vl(t,a);n(s,a)&&ag(o,pl(a,t),s)}return o}function ug(t,e){if(null==t)return{};var n=Oa(nh(t),(function(t){return[t]}));return e=nf(e),sg(t,n,(function(t,n){return e(t,n[0])}))}function lg(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=xa(t),a=void 0!==e,s=null===e,u=e==e,l=xa(e);if(!s&&!l&&!o&&t>e||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&t<e||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function cg(t,e,n){e=e.length?Oa(e,(function(t){return Sa(t)?function(e){return vl(e,1===t.length?t[0]:t)}:t})):[Ua];var r=-1;return e=Oa(e,Au(nf)),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(Od(t,(function(t,n,i){return{criteria:Oa(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;++r<a;){var u=lg(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function hg(t,e,n,r){return null==t?[]:(Sa(e)||(e=null==e?[]:[e]),Sa(n=r?void 0:n)||(n=null==n?[]:[n]),cg(t,e,n))}function fg(t){return Sl((function(e){return e=Oa(e,Au(nf)),lu((function(n){var r=this;return t(e,(function(t){return ls(t,r,n)}))}))}))}var dg=fg(Oa),pg=lu,gg=Math.min,vg=pg((function(t,e){var n=(e=1==e.length&&Sa(e[0])?Oa(e[0],Au(nf)):Oa(wl(e,1),Au(nf))).length;return lu((function(r){for(var i=-1,o=gg(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return ls(t,this,r)}))})),mg=fg(sd),yg=fg(Ph),bg=Math.floor;function _g(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=bg(e/2))&&(t+=t)}while(e);return n}var xg=tf("length"),wg="[\\ud800-\\udfff]",Og="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Sg="\\ud83c[\\udffb-\\udfff]",Cg="[^\\ud800-\\udfff]",Eg="(?:\\ud83c[\\udde6-\\uddff]){2}",Tg="[\\ud800-\\udbff][\\udc00-\\udfff]",Ag="(?:"+Og+"|"+Sg+")"+"?",Mg="[\\ufe0e\\ufe0f]?"+Ag+("(?:\\u200d(?:"+[Cg,Eg,Tg].join("|")+")[\\ufe0e\\ufe0f]?"+Ag+")*"),Ig="(?:"+[Cg+Og+"?",Og,Eg,Tg,wg].join("|")+")",jg=RegExp(Sg+"(?="+Sg+")|"+Ig+Mg,"g");function kg(t){return Hl(t)?function(t){for(var e=jg.lastIndex=0;jg.test(t);)++e;return e}(t):xg(t)}var Pg=Math.ceil;function Lg(t,e){var n=(e=void 0===e?" ":Ta(e)).length;if(n<2)return n?_g(e,t):e;var r=_g(e,Pg(t/kg(e)));return Hl(e)?Ul(ec(r),0,t).join(""):r.slice(0,t)}var Rg=Math.ceil,Dg=Math.floor;var Ng=/^\s+/,Bg=ha.parseInt;var Fg=lu((function(t,e){return tu(t,32,void 0,e,Zs(e,Ws(Fg)))}));Fg.placeholder={};var zg=Fg,Vg=lu((function(t,e){return tu(t,64,void 0,e,Zs(e,Ws(Vg)))}));Vg.placeholder={};var Ug=Vg,Gg=df((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Hg=Sl((function(t,e){return null==t?{}:function(t,e){return sg(t,e,(function(e,n){return Qh(t,n)}))}(t,e)}));function Wg(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}var Yg=Array.prototype.splice;function Xg(t,e,n,r){var i=r?Wg:zs,o=-1,a=e.length,s=t;for(t===e&&(e=Os(e)),n&&(s=Oa(t,Au(n)));++o<a;)for(var u=0,l=e[o],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==t&&Yg.call(s,u,1),Yg.call(t,u,1);return t}function $g(t,e){return t&&t.length&&e&&e.length?Xg(t,e):t}var qg=lu($g);var Zg=Array.prototype.splice;function Kg(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;Xs(i)?Zg.call(t,i,1):rg(t,i)}}return t}var Qg=Sl((function(t,e){var n=null==t?0:t.length,r=yl(t,e);return Kg(t,Oa(e,(function(t){return Xs(t,n)?+t:t})).sort(lg)),r})),Jg=Math.floor,tv=Math.random;function ev(t,e){return t+Jg(tv()*(e-t+1))}var nv=parseFloat,rv=Math.min,iv=Math.random;var ov=Math.ceil,av=Math.max;function sv(t){return function(e,n,r){return r&&"number"!=typeof r&&fu(e,n,r)&&(n=r=void 0),e=za(e),void 0===n?(n=e,e=0):n=za(n),function(t,e,n,r){for(var i=-1,o=av(ov((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a}(e,n,r=void 0===r?e<n?1:-1:za(r),t)}}var uv=sv(),lv=sv(!0),cv=Sl((function(t,e){return tu(t,256,void 0,void 0,void 0,e)}));function hv(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function fv(t,e,n){var r=Sa(t)?oc:hv,i=arguments.length<3;return r(t,nf(e),n,i,hf)}function dv(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function pv(t,e,n){return e=(n?fu(t,e,n):void 0===e)?1:Va(e),_g(dl(t),e)}var gv=Array.prototype.reverse;function vv(t){return null==t?t:gv.call(t)}var mv=Lc("round");function yv(t){var e=t.length;return e?t[ev(0,e-1)]:void 0}function bv(t){return yv(Wd(t))}function _v(t,e){var n=-1,r=t.length,i=r-1;for(e=void 0===e?r:e;++n<e;){var o=ev(n,i),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}function xv(t,e){return _v(Os(t),Fc(e,0,t.length))}function wv(t,e){var n=Wd(t);return _v(n,Fc(e,0,n.length))}function Ov(t,e,n){return null==t?t:ag(t,e,n)}function Sv(t){return _v(Os(t))}function Cv(t){return _v(Wd(t))}function Ev(t){if(null==t)return 0;if(hu(t))return Gd(t)?kg(t):t.length;var e=fh(t);return"[object Map]"==e||"[object Set]"==e?t.size:zu(t).length}var Tv=Ic((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));function Av(t,e){var n;return hf(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}var Mv=lu((function(t,e){if(null==t)return[];var n=e.length;return n>1&&fu(t,e[0],e[1])?e=[]:n>2&&fu(e[0],e[1],e[2])&&(e=[e[0]]),cg(t,wl(e,1),[])})),Iv=Math.floor,jv=Math.min;function kv(t,e,n,r){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=n(e))!=e,s=null===e,u=xa(e),l=void 0===e;i<o;){var c=Iv((i+o)/2),h=n(t[c]),f=void 0!==h,d=null===h,p=h==h,g=xa(h);if(a)var v=r||p;else v=l?p&&(r||f):s?p&&f&&(r||!d):u?p&&f&&!d&&(r||!g):!d&&!g&&(r?h<=e:h<e);v?i=c+1:o=c}return jv(o,4294967294)}function Pv(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!xa(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return kv(t,e,Ua,n)}function Lv(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!ru(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Rv(t,e,n){return n&&"number"!=typeof n&&fu(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=dl(t))&&("string"==typeof e||null!=e&&!Ap(e))&&!(e=Ta(e))&&Hl(t)?Ul(ec(t),0,n):t.split(e,n):[]}var Dv=Math.max;var Nv=Ic((function(t,e,n){return t+(n?" ":"")+rc(e)}));function Bv(){return!0}var Fv=Aa((function(t,e){return t-e}),0);var zv=Object.prototype,Vv=zv.hasOwnProperty;function Uv(t,e,n,r){return void 0===t||ru(t,zv[n])&&!Vv.call(r,n)?e:t}var Gv={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Hv(t){return"\\"+Gv[t]}var Wv=/<%=([\s\S]+?)%>/g,Yv={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Wv,variable:"",imports:{_:{escape:id}}},Xv=/\b__p \+= '';/g,$v=/\b(__p \+=) '' \+/g,qv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Zv=/[()=,{}\[\]\/\s]/,Kv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qv=/($^)/,Jv=/['\n\r\u2028\u2029\\]/g,tm=Object.prototype.hasOwnProperty;function em(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return La(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),xf(t,e,{leading:r,maxWait:e,trailing:i})}function nm(t,e){return e(t)}var rm=Math.min;function im(t,e){var n=t;return n instanceof vs&&(n=n.value()),oc(e,(function(t,e){return e.func.apply(e.thisArg,bl([t],e.args))}),n)}function om(){return im(this.__wrapped__,this.__actions__)}function am(t){return dl(t).toUpperCase()}function sm(t,e){for(var n=t.length;n--&&zs(e,t[n],0)>-1;);return n}function um(t,e){for(var n=-1,r=t.length;++n<r&&zs(e,t[n],0)>-1;);return n}function lm(t,e,n){if((t=dl(t))&&(n||void 0===e))return Pa(t);if(!t||!(e=Ta(e)))return t;var r=ec(t),i=ec(e);return Ul(r,um(r,i),sm(r,i)+1).join("")}var cm=/^\s+/;var hm=/\w*$/;var fm=ac({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),dm=/&(?:amp|lt|gt|quot|#39);/g,pm=RegExp(dm.source);var gm=oh&&1/Nh(new oh([,-0]))[1]==1/0?function(t){return new oh(t)}:ms;function vm(t,e,n){var r=-1,i=Vs,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=Df;else if(o>=200){var l=e?null:gm(t);if(l)return Nh(l);a=!1,i=Lh,u=new kh}else u=e?[]:s;t:for(;++r<o;){var c=t[r],h=e?e(c):c;if(c=n||0!==c?c:0,a&&h==h){for(var f=u.length;f--;)if(u[f]===h)continue t;e&&u.push(h),s.push(c)}else i(u,h,n)||(u!==s&&u.push(h),s.push(c))}return s}var mm=lu((function(t){return vm(wl(t,1,Ef,!0))})),ym=lu((function(t){var e=Ff(t);return Ef(e)&&(e=void 0),vm(wl(t,1,Ef,!0),nf(e))})),bm=lu((function(t){var e=Ff(t);return e="function"==typeof e?e:void 0,vm(wl(t,1,Ef,!0),void 0,e)}));function _m(t){return t&&t.length?vm(t):[]}var xm=0;function wm(t,e){return null==t||rg(t,e)}var Om=Math.max;function Sm(t){if(!t||!t.length)return[];var e=0;return t=$c(t,(function(t){if(Ef(t))return e=Om(t.length,e),!0})),vu(e,(function(e){return Oa(t,tf(e))}))}function Cm(t,e){if(!t||!t.length)return[];var n=Sm(t);return null==e?n:Oa(n,(function(t){return ls(e,void 0,t)}))}function Em(t,e,n,r){return ag(t,e,n(vl(t,e)),r)}var Tm=Ic((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}));var Am=lu((function(t,e){return Ef(t)?Nf(t,e):[]}));var Mm=Sl((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return yl(e,t)};return!(e>1||this.__actions__.length)&&r instanceof vs&&Xs(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:nm,args:[i],thisArg:void 0}),new ws(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)}));function Im(t,e,n){var r=t.length;if(r<2)return r?vm(t[0]):[];for(var i=-1,o=Array(r);++i<r;)for(var a=t[i],s=-1;++s<r;)s!=i&&(o[i]=Nf(o[i]||a,t[s],e,n));return vm(wl(o,1),e,n)}var jm=lu((function(t){return Im($c(t,Ef))})),km=lu((function(t){var e=Ff(t);return Ef(e)&&(e=void 0),Im($c(t,Ef),nf(e))})),Pm=lu((function(t){var e=Ff(t);return e="function"==typeof e?e:void 0,Im($c(t,Ef),void 0,e)})),Lm=lu(Sm);function Rm(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:void 0;n(a,t[r],s)}return a}var Dm=lu((function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Cm(t,n)})),Nm={chunk:function(t,e,n){e=(n?fu(t,e,n):void 0===e)?1:Bc(Va(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var i=0,o=0,a=Array(Nc(r/e));i<r;)a[o++]=Vl(t,i,i+=e);return a},compact:Ih,concat:jh,difference:Bf,differenceBy:zf,differenceWith:Vf,drop:function(t,e,n){var r=null==t?0:t.length;return r?Vl(t,(e=n||void 0===e?1:Va(e))<0?0:e,r):[]},dropRight:function(t,e,n){var r=null==t?0:t.length;return r?Vl(t,0,(e=r-(e=n||void 0===e?1:Va(e)))<0?0:e):[]},dropRightWhile:function(t,e){return t&&t.length?Gf(t,nf(e),!0,!0):[]},dropWhile:function(t,e){return t&&t.length?Gf(t,nf(e),!0):[]},fill:function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&fu(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=Va(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:Va(r))<0&&(r+=i),r=n>r?0:cd(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},findIndex:gd,findLastIndex:_d,first:wd,flatten:Ol,flattenDeep:function(t){return(null==t?0:t.length)?wl(t,1/0):[]},flattenDepth:function(t,e){return(null==t?0:t.length)?wl(t,e=void 0===e?1:Va(e)):[]},fromPairs:function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},head:wd,indexOf:qd,initial:function(t){return(null==t?0:t.length)?Vl(t,0,-1):[]},intersection:Jd,intersectionBy:tp,intersectionWith:ep,join:function(t,e){return null==t?"":Ip.call(t,e)},last:Ff,lastIndexOf:function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=Va(n))<0?Pp(r+i,0):Lp(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):Bs(t,Fs,i,!0)},nth:function(t,e){return t&&t.length?ng(t,Va(e)):void 0},pull:qg,pullAll:$g,pullAllBy:function(t,e,n){return t&&t.length&&e&&e.length?Xg(t,e,nf(n)):t},pullAllWith:function(t,e,n){return t&&t.length&&e&&e.length?Xg(t,e,void 0,n):t},pullAt:Qg,remove:function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=nf(e);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Kg(t,i),n},reverse:vv,slice:function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&fu(t,e,n)?(e=0,n=r):(e=null==e?0:Va(e),n=void 0===n?r:Va(n)),Vl(t,e,n)):[]},sortedIndex:function(t,e){return Pv(t,e)},sortedIndexBy:function(t,e,n){return kv(t,e,nf(n))},sortedIndexOf:function(t,e){var n=null==t?0:t.length;if(n){var r=Pv(t,e);if(r<n&&ru(t[r],e))return r}return-1},sortedLastIndex:function(t,e){return Pv(t,e,!0)},sortedLastIndexBy:function(t,e,n){return kv(t,e,nf(n),!0)},sortedLastIndexOf:function(t,e){if(null==t?0:t.length){var n=Pv(t,e,!0)-1;if(ru(t[n],e))return n}return-1},sortedUniq:function(t){return t&&t.length?Lv(t):[]},sortedUniqBy:function(t,e){return t&&t.length?Lv(t,nf(e)):[]},tail:function(t){var e=null==t?0:t.length;return e?Vl(t,1,e):[]},take:function(t,e,n){return t&&t.length?Vl(t,0,(e=n||void 0===e?1:Va(e))<0?0:e):[]},takeRight:function(t,e,n){var r=null==t?0:t.length;return r?Vl(t,(e=r-(e=n||void 0===e?1:Va(e)))<0?0:e,r):[]},takeRightWhile:function(t,e){return t&&t.length?Gf(t,nf(e),!1,!0):[]},takeWhile:function(t,e){return t&&t.length?Gf(t,nf(e)):[]},union:mm,unionBy:ym,unionWith:bm,uniq:_m,uniqBy:function(t,e){return t&&t.length?vm(t,nf(e)):[]},uniqWith:function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?vm(t,void 0,e):[]},unzip:Sm,unzipWith:Cm,without:Am,xor:jm,xorBy:km,xorWith:Pm,zip:Lm,zipObject:function(t,e){return Rm(t||[],e||[],ou)},zipObjectDeep:function(t,e){return Rm(t||[],e||[],ag)},zipWith:Dm},Bm={countBy:gf,each:Wf,eachRight:Zf,every:ld,filter:fd,find:vd,findLast:xd,flatMap:function(t,e){return wl(Sd(t,e),1)},flatMapDeep:function(t,e){return wl(Sd(t,e),1/0)},flatMapDepth:function(t,e,n){return n=void 0===n?1:Va(n),wl(Sd(t,e),n)},forEach:Wf,forEachRight:Zf,groupBy:kd,includes:Xd,invokeMap:fp,keyBy:kp,map:Sd,orderBy:hg,partition:Gg,reduce:fv,reduceRight:function(t,e,n){var r=Sa(t)?dv:hv,i=arguments.length<3;return r(t,nf(e),n,i,qf)},reject:function(t,e){return(Sa(t)?$c:hd)(t,Jp(nf(e)))},sample:function(t){return(Sa(t)?yv:bv)(t)},sampleSize:function(t,e,n){return e=(n?fu(t,e,n):void 0===e)?1:Va(e),(Sa(t)?xv:wv)(t,e)},shuffle:function(t){return(Sa(t)?Sv:Cv)(t)},size:Ev,some:function(t,e,n){var r=Sa(t)?Ph:Av;return n&&fu(t,e,n)&&(e=void 0),r(t,nf(e))},sortBy:Mv},Fm={now:yf},zm={after:function(t,e){if("function"!=typeof e)throw new TypeError("Expected a function");return t=Va(t),function(){if(--t<1)return e.apply(this,arguments)}},ary:eu,before:Rl,bind:Nl,bindKey:zl,curry:vf,curryRight:mf,debounce:xf,defer:Lf,delay:Rf,flip:function(t){return tu(t,512)},memoize:ll,negate:Jp,once:function(t){return Rl(2,t)},overArgs:vg,partial:zg,partialRight:Ug,rearg:cv,rest:function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return lu(t,e=void 0===e?e:Va(e))},spread:function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return e=null==e?0:Dv(Va(e),0),lu((function(n){var r=n[e],i=Ul(n,0,e);return r&&bl(i,r),ls(t,this,i)}))},throttle:em,unary:function(t){return eu(t,1)},wrap:function(t,e){return zg(Hf(e),t)}},Vm={castArray:function(){if(!arguments.length)return[];var t=arguments[0];return Sa(t)?t:[t]},clone:Ah,cloneDeep:Mh,cloneDeepWith:function(t,e){return Th(t,5,e="function"==typeof e?e:void 0)},cloneWith:function(t,e){return Th(t,4,e="function"==typeof e?e:void 0)},conformsTo:function(t,e){return null==e||of(t,e,Vu(e))},eq:ru,gt:Rd,gte:Dd,isArguments:xu,isArray:Sa,isArrayBuffer:pp,isArrayLike:hu,isArrayLikeObject:Ef,isBoolean:gp,isBuffer:Eu,isDate:mp,isElement:function(t){return _a(t)&&1===t.nodeType&&!kl(t)},isEmpty:bp,isEqual:_p,isEqualWith:function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?Hh(t,e,void 0,n):!!r},isError:Pl,isFinite:function(t){return"number"==typeof t&&xp(t)},isFunction:Ga,isInteger:wp,isLength:cu,isMap:Oh,isMatch:function(t,e){return t===e||Wh(t,e,Xh(e))},isMatchWith:function(t,e,n){return n="function"==typeof n?n:void 0,Wh(t,e,Xh(e),n)},isNaN:Sp,isNative:function(t){if(Cp(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return es(t)},isNil:Ep,isNull:function(t){return null===t},isNumber:Op,isObject:La,isObjectLike:_a,isPlainObject:kl,isRegExp:Ap,isSafeInteger:function(t){return wp(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Ch,isString:Gd,isSymbol:xa,isTypedArray:Lu,isUndefined:Mp,isWeakMap:function(t){return _a(t)&&"[object WeakMap]"==fh(t)},isWeakSet:function(t){return _a(t)&&"[object WeakSet]"==ba(t)},lt:Bp,lte:Fp,toArray:eg,toFinite:za,toInteger:Va,toLength:cd,toNumber:Fa,toPlainObject:Af,toSafeInteger:function(t){return t?Fc(Va(t),-9007199254740991,9007199254740991):0===t?t:0},toString:dl},Um={add:Ma,ceil:Rc,divide:Uf,floor:Cd,max:Gp,maxBy:Hp,mean:function(t){return Yp(t,Ua)},meanBy:function(t,e){return Yp(t,nf(e))},min:Zp,minBy:function(t,e){return t&&t.length?Up(t,nf(e),Np):void 0},multiply:Qp,round:mv,subtract:Fv,sum:function(t){return t&&t.length?Wp(t,Ua):0},sumBy:function(t,e){return t&&t.length?Wp(t,nf(e)):0}},Gm=zc,Hm=Ud,Wm=function(t,e,n){if(n&&"boolean"!=typeof n&&fu(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=za(t),void 0===e?(e=t,t=0):e=za(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=iv();return rv(t+i*(e-t+nv("1e-"+((i+"").length-1))),e)}return ev(t,e)},Ym={assign:Gu,assignIn:Xu,assignInWith:$u,assignWith:qu,at:Cl,create:function(t,e){var n=ss(t);return null==e?n:Uc(n,e)},defaults:Sf,defaultsDeep:kf,entries:Jf,entriesIn:td,extend:Xu,extendWith:$u,findKey:function(t,e){return md(t,nf(e),lf)},findLastKey:function(t,e){return md(t,nf(e),$f)},forIn:Md,forInRight:function(t,e){return null==t?t:Xf(t,Hf(e),Yu)},forOwn:function(t,e){return t&&lf(t,Hf(e))},forOwnRight:function(t,e){return t&&$f(t,Hf(e))},functions:function(t){return null==t?[]:Id(t,Vu(t))},functionsIn:function(t){return null==t?[]:Id(t,Yu(t))},get:ml,has:Fd,hasIn:Qh,invert:ip,invertBy:up,invoke:hp,keys:Vu,keysIn:Yu,mapKeys:zp,mapValues:function(t,e){var n={};return e=nf(e),lf(t,(function(t,r,i){nu(n,r,e(t,r,i))})),n},merge:Xp,mergeWith:jf,omit:og,omitBy:function(t,e){return ug(t,Jp(nf(e)))},pick:Hg,pickBy:ug,result:function(t,e,n){var r=-1,i=(e=pl(e,t)).length;for(i||(i=1,t=void 0);++r<i;){var o=null==t?void 0:t[gl(e[r])];void 0===o&&(r=i,o=n),t=Ga(o)?o.call(t):o}return t},set:Ov,setWith:function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:ag(t,e,n,r)},toPairs:Jf,toPairsIn:td,transform:function(t,e,n){var r=Sa(t),i=r||Eu(t)||Lu(t);if(e=nf(e),null==n){var o=t&&t.constructor;n=i?r?new o:[]:La(t)&&Ga(o)?ss(El(t)):{}}return(i?Ns:lf)(t,(function(t,r,i){return e(n,t,r,i)})),n},unset:wm,update:function(t,e,n){return null==t?t:Em(t,e,Hf(n))},updateWith:function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:Em(t,e,Hf(n),r)},values:Wd,valuesIn:function(t){return null==t?[]:Hd(t,Yu(t))}},Xm={at:Mm,chain:Dc,commit:function(){return new ws(this.value(),this.__chain__)},lodash:Es,next:function(){void 0===this.__values__&&(this.__values__=eg(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},plant:function(t){for(var e,n=this;n instanceof gs;){var r=Ss(n);r.__index__=0,r.__values__=void 0,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},reverse:function(){var t=this.__wrapped__;if(t instanceof vs){var e=t;return this.__actions__.length&&(e=new vs(this)),(e=e.reverse()).__actions__.push({func:nm,args:[vv],thisArg:void 0}),new ws(e,this.__chain__)}return this.thru(vv)},tap:function(t,e){return e(t),t},thru:nm,toIterator:function(){return this},toJSON:om,value:om,valueOf:om,wrapperChain:function(){return Dc(this)}},$m={camelCase:jc,capitalize:ic,deburr:cc,endsWith:Kf,escape:id,escapeRegExp:function(t){return(t=dl(t))&&ad.test(t)?t.replace(od,"\\$&"):t},kebabCase:jp,lowerCase:Rp,lowerFirst:Dp,pad:function(t,e,n){t=dl(t);var r=(e=Va(e))?kg(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Lg(Dg(i),n)+t+Lg(Rg(i),n)},padEnd:function(t,e,n){t=dl(t);var r=(e=Va(e))?kg(t):0;return e&&r<e?t+Lg(e-r,n):t},padStart:function(t,e,n){t=dl(t);var r=(e=Va(e))?kg(t):0;return e&&r<e?Lg(e-r,n)+t:t},parseInt:function(t,e,n){return n||null==e?e=0:e&&(e=+e),Bg(dl(t).replace(Ng,""),e||0)},repeat:pv,replace:function(){var t=arguments,e=dl(t[0]);return t.length<3?e:e.replace(t[1],t[2])},snakeCase:Tv,split:Rv,startCase:Nv,startsWith:function(t,e,n){return t=dl(t),n=null==n?0:Fc(Va(n),0,t.length),e=Ta(e),t.slice(n,n+e.length)==e},template:function(t,e,n){var r=Yv.imports._.templateSettings||Yv;n&&fu(t,e,n)&&(e=void 0),t=dl(t),e=$u({},e,r,Uv);var i,o,a=$u({},e.imports,r.imports,Uv),s=Vu(a),u=Hd(a,s),l=0,c=e.interpolate||Qv,h="__p += '",f=RegExp((e.escape||Qv).source+"|"+c.source+"|"+(c===Wv?Kv:Qv).source+"|"+(e.evaluate||Qv).source+"|$","g"),d=tm.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(f,(function(e,n,r,a,s,u){return r||(r=a),h+=t.slice(l,u).replace(Jv,Hv),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e})),h+="';\n";var p=tm.call(e,"variable")&&e.variable;if(p){if(Zv.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(Xv,""):h).replace($v,"$1").replace(qv,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Ll((function(){return Function(s,d+"return "+h).apply(void 0,u)}));if(g.source=h,Pl(g))throw g;return g},templateSettings:Yv,toLower:function(t){return dl(t).toLowerCase()},toUpper:am,trim:lm,trimEnd:function(t,e,n){if((t=dl(t))&&(n||void 0===e))return t.slice(0,ja(t)+1);if(!t||!(e=Ta(e)))return t;var r=ec(t);return Ul(r,0,sm(r,ec(e))+1).join("")},trimStart:function(t,e,n){if((t=dl(t))&&(n||void 0===e))return t.replace(cm,"");if(!t||!(e=Ta(e)))return t;var r=ec(t);return Ul(r,um(r,ec(e))).join("")},truncate:function(t,e){var n=30,r="...";if(La(e)){var i="separator"in e?e.separator:i;n="length"in e?Va(e.length):n,r="omission"in e?Ta(e.omission):r}var o=(t=dl(t)).length;if(Hl(t)){var a=ec(t);o=a.length}if(n>=o)return t;var s=n-kg(r);if(s<1)return r;var u=a?Ul(a,0,s).join(""):t.slice(0,s);if(void 0===i)return u+r;if(a&&(s+=u.length-s),Ap(i)){if(t.slice(s).search(i)){var l,c=u;for(i.global||(i=RegExp(i.source,dl(hm.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var h=l.index;u=u.slice(0,void 0===h?s:h)}}else if(t.indexOf(Ta(i),s)!=s){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+r},unescape:function(t){return(t=dl(t))&&pm.test(t)?t.replace(dm,fm):t},upperCase:Tm,upperFirst:rc,words:Ac},qm={attempt:Ll,bindAll:Bl,cond:rf,conforms:function(t){return function(t){var e=Vu(t);return function(n){return of(n,t,e)}}(Th(t,1))},constant:Ls,defaultTo:function(t,e){return null==t||t!=t?e:t},flow:Td,flowRight:Ad,identity:Ua,iteratee:function(t){return nf("function"==typeof t?t:Th(t,1))},matches:Vp,matchesProperty:function(t,e){return Jh(t,Th(e,1))},method:$p,methodOf:qp,mixin:Kp,noop:ms,nthArg:function(t){return t=Va(t),lu((function(e){return ng(e,t)}))},over:dg,overEvery:mg,overSome:yg,property:ef,propertyOf:function(t){return function(e){return null==t?void 0:vl(t,e)}},range:uv,rangeRight:lv,stubArray:qc,stubFalse:wu,stubObject:function(){return{}},stubString:function(){return""},stubTrue:Bv,times:function(t,e){if((t=Va(t))<1||t>9007199254740991)return[];var n=4294967295,r=rm(t,4294967295);t-=4294967295;for(var i=vu(r,e=Hf(e));++n<t;)e(n);return i},toPath:function(t){return Sa(t)?Oa(t,gl):xa(t)?[t]:Os(fl(dl(t)))},uniqueId:function(t){var e=++xm;return dl(t)+e}};var Zm=Math.max,Km=Math.min;var Qm=Math.min;
/**
* @license
* Lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="es" -o ./`
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
var Jm,ty,ey,ny,ry=Array.prototype,iy=Object.prototype.hasOwnProperty,oy=fa?fa.iterator:void 0,ay=Math.max,sy=Math.min,uy=function(t){return function(e,n,r){if(null==r){var i=La(n),o=i&&Vu(n),a=o&&o.length&&Id(n,o);(a?a.length:i)||(r=n,n=e,e=this)}return t(e,n,r)}}(Kp);Es.after=zm.after,Es.ary=zm.ary,Es.assign=Ym.assign,Es.assignIn=Ym.assignIn,Es.assignInWith=Ym.assignInWith,Es.assignWith=Ym.assignWith,Es.at=Ym.at,Es.before=zm.before,Es.bind=zm.bind,Es.bindAll=qm.bindAll,Es.bindKey=zm.bindKey,Es.castArray=Vm.castArray,Es.chain=Xm.chain,Es.chunk=Nm.chunk,Es.compact=Nm.compact,Es.concat=Nm.concat,Es.cond=qm.cond,Es.conforms=qm.conforms,Es.constant=qm.constant,Es.countBy=Bm.countBy,Es.create=Ym.create,Es.curry=zm.curry,Es.curryRight=zm.curryRight,Es.debounce=zm.debounce,Es.defaults=Ym.defaults,Es.defaultsDeep=Ym.defaultsDeep,Es.defer=zm.defer,Es.delay=zm.delay,Es.difference=Nm.difference,Es.differenceBy=Nm.differenceBy,Es.differenceWith=Nm.differenceWith,Es.drop=Nm.drop,Es.dropRight=Nm.dropRight,Es.dropRightWhile=Nm.dropRightWhile,Es.dropWhile=Nm.dropWhile,Es.fill=Nm.fill,Es.filter=Bm.filter,Es.flatMap=Bm.flatMap,Es.flatMapDeep=Bm.flatMapDeep,Es.flatMapDepth=Bm.flatMapDepth,Es.flatten=Nm.flatten,Es.flattenDeep=Nm.flattenDeep,Es.flattenDepth=Nm.flattenDepth,Es.flip=zm.flip,Es.flow=qm.flow,Es.flowRight=qm.flowRight,Es.fromPairs=Nm.fromPairs,Es.functions=Ym.functions,Es.functionsIn=Ym.functionsIn,Es.groupBy=Bm.groupBy,Es.initial=Nm.initial,Es.intersection=Nm.intersection,Es.intersectionBy=Nm.intersectionBy,Es.intersectionWith=Nm.intersectionWith,Es.invert=Ym.invert,Es.invertBy=Ym.invertBy,Es.invokeMap=Bm.invokeMap,Es.iteratee=qm.iteratee,Es.keyBy=Bm.keyBy,Es.keys=Vu,Es.keysIn=Ym.keysIn,Es.map=Bm.map,Es.mapKeys=Ym.mapKeys,Es.mapValues=Ym.mapValues,Es.matches=qm.matches,Es.matchesProperty=qm.matchesProperty,Es.memoize=zm.memoize,Es.merge=Ym.merge,Es.mergeWith=Ym.mergeWith,Es.method=qm.method,Es.methodOf=qm.methodOf,Es.mixin=uy,Es.negate=Jp,Es.nthArg=qm.nthArg,Es.omit=Ym.omit,Es.omitBy=Ym.omitBy,Es.once=zm.once,Es.orderBy=Bm.orderBy,Es.over=qm.over,Es.overArgs=zm.overArgs,Es.overEvery=qm.overEvery,Es.overSome=qm.overSome,Es.partial=zm.partial,Es.partialRight=zm.partialRight,Es.partition=Bm.partition,Es.pick=Ym.pick,Es.pickBy=Ym.pickBy,Es.property=qm.property,Es.propertyOf=qm.propertyOf,Es.pull=Nm.pull,Es.pullAll=Nm.pullAll,Es.pullAllBy=Nm.pullAllBy,Es.pullAllWith=Nm.pullAllWith,Es.pullAt=Nm.pullAt,Es.range=qm.range,Es.rangeRight=qm.rangeRight,Es.rearg=zm.rearg,Es.reject=Bm.reject,Es.remove=Nm.remove,Es.rest=zm.rest,Es.reverse=Nm.reverse,Es.sampleSize=Bm.sampleSize,Es.set=Ym.set,Es.setWith=Ym.setWith,Es.shuffle=Bm.shuffle,Es.slice=Nm.slice,Es.sortBy=Bm.sortBy,Es.sortedUniq=Nm.sortedUniq,Es.sortedUniqBy=Nm.sortedUniqBy,Es.split=$m.split,Es.spread=zm.spread,Es.tail=Nm.tail,Es.take=Nm.take,Es.takeRight=Nm.takeRight,Es.takeRightWhile=Nm.takeRightWhile,Es.takeWhile=Nm.takeWhile,Es.tap=Xm.tap,Es.throttle=zm.throttle,Es.thru=nm,Es.toArray=Vm.toArray,Es.toPairs=Ym.toPairs,Es.toPairsIn=Ym.toPairsIn,Es.toPath=qm.toPath,Es.toPlainObject=Vm.toPlainObject,Es.transform=Ym.transform,Es.unary=zm.unary,Es.union=Nm.union,Es.unionBy=Nm.unionBy,Es.unionWith=Nm.unionWith,Es.uniq=Nm.uniq,Es.uniqBy=Nm.uniqBy,Es.uniqWith=Nm.uniqWith,Es.unset=Ym.unset,Es.unzip=Nm.unzip,Es.unzipWith=Nm.unzipWith,Es.update=Ym.update,Es.updateWith=Ym.updateWith,Es.values=Ym.values,Es.valuesIn=Ym.valuesIn,Es.without=Nm.without,Es.words=$m.words,Es.wrap=zm.wrap,Es.xor=Nm.xor,Es.xorBy=Nm.xorBy,Es.xorWith=Nm.xorWith,Es.zip=Nm.zip,Es.zipObject=Nm.zipObject,Es.zipObjectDeep=Nm.zipObjectDeep,Es.zipWith=Nm.zipWith,Es.entries=Ym.toPairs,Es.entriesIn=Ym.toPairsIn,Es.extend=Ym.assignIn,Es.extendWith=Ym.assignInWith,uy(Es,Es),Es.add=Um.add,Es.attempt=qm.attempt,Es.camelCase=$m.camelCase,Es.capitalize=$m.capitalize,Es.ceil=Um.ceil,Es.clamp=Gm,Es.clone=Vm.clone,Es.cloneDeep=Vm.cloneDeep,Es.cloneDeepWith=Vm.cloneDeepWith,Es.cloneWith=Vm.cloneWith,Es.conformsTo=Vm.conformsTo,Es.deburr=$m.deburr,Es.defaultTo=qm.defaultTo,Es.divide=Um.divide,Es.endsWith=$m.endsWith,Es.eq=Vm.eq,Es.escape=$m.escape,Es.escapeRegExp=$m.escapeRegExp,Es.every=Bm.every,Es.find=Bm.find,Es.findIndex=Nm.findIndex,Es.findKey=Ym.findKey,Es.findLast=Bm.findLast,Es.findLastIndex=Nm.findLastIndex,Es.findLastKey=Ym.findLastKey,Es.floor=Um.floor,Es.forEach=Bm.forEach,Es.forEachRight=Bm.forEachRight,Es.forIn=Ym.forIn,Es.forInRight=Ym.forInRight,Es.forOwn=Ym.forOwn,Es.forOwnRight=Ym.forOwnRight,Es.get=Ym.get,Es.gt=Vm.gt,Es.gte=Vm.gte,Es.has=Ym.has,Es.hasIn=Ym.hasIn,Es.head=Nm.head,Es.identity=Ua,Es.includes=Bm.includes,Es.indexOf=Nm.indexOf,Es.inRange=Hm,Es.invoke=Ym.invoke,Es.isArguments=Vm.isArguments,Es.isArray=Sa,Es.isArrayBuffer=Vm.isArrayBuffer,Es.isArrayLike=Vm.isArrayLike,Es.isArrayLikeObject=Vm.isArrayLikeObject,Es.isBoolean=Vm.isBoolean,Es.isBuffer=Vm.isBuffer,Es.isDate=Vm.isDate,Es.isElement=Vm.isElement,Es.isEmpty=Vm.isEmpty,Es.isEqual=Vm.isEqual,Es.isEqualWith=Vm.isEqualWith,Es.isError=Vm.isError,Es.isFinite=Vm.isFinite,Es.isFunction=Vm.isFunction,Es.isInteger=Vm.isInteger,Es.isLength=Vm.isLength,Es.isMap=Vm.isMap,Es.isMatch=Vm.isMatch,Es.isMatchWith=Vm.isMatchWith,Es.isNaN=Vm.isNaN,Es.isNative=Vm.isNative,Es.isNil=Vm.isNil,Es.isNull=Vm.isNull,Es.isNumber=Vm.isNumber,Es.isObject=La,Es.isObjectLike=Vm.isObjectLike,Es.isPlainObject=Vm.isPlainObject,Es.isRegExp=Vm.isRegExp,Es.isSafeInteger=Vm.isSafeInteger,Es.isSet=Vm.isSet,Es.isString=Vm.isString,Es.isSymbol=Vm.isSymbol,Es.isTypedArray=Vm.isTypedArray,Es.isUndefined=Vm.isUndefined,Es.isWeakMap=Vm.isWeakMap,Es.isWeakSet=Vm.isWeakSet,Es.join=Nm.join,Es.kebabCase=$m.kebabCase,Es.last=Ff,Es.lastIndexOf=Nm.lastIndexOf,Es.lowerCase=$m.lowerCase,Es.lowerFirst=$m.lowerFirst,Es.lt=Vm.lt,Es.lte=Vm.lte,Es.max=Um.max,Es.maxBy=Um.maxBy,Es.mean=Um.mean,Es.meanBy=Um.meanBy,Es.min=Um.min,Es.minBy=Um.minBy,Es.stubArray=qm.stubArray,Es.stubFalse=qm.stubFalse,Es.stubObject=qm.stubObject,Es.stubString=qm.stubString,Es.stubTrue=qm.stubTrue,Es.multiply=Um.multiply,Es.nth=Nm.nth,Es.noop=qm.noop,Es.now=Fm.now,Es.pad=$m.pad,Es.padEnd=$m.padEnd,Es.padStart=$m.padStart,Es.parseInt=$m.parseInt,Es.random=Wm,Es.reduce=Bm.reduce,Es.reduceRight=Bm.reduceRight,Es.repeat=$m.repeat,Es.replace=$m.replace,Es.result=Ym.result,Es.round=Um.round,Es.sample=Bm.sample,Es.size=Bm.size,Es.snakeCase=$m.snakeCase,Es.some=Bm.some,Es.sortedIndex=Nm.sortedIndex,Es.sortedIndexBy=Nm.sortedIndexBy,Es.sortedIndexOf=Nm.sortedIndexOf,Es.sortedLastIndex=Nm.sortedLastIndex,Es.sortedLastIndexBy=Nm.sortedLastIndexBy,Es.sortedLastIndexOf=Nm.sortedLastIndexOf,Es.startCase=$m.startCase,Es.startsWith=$m.startsWith,Es.subtract=Um.subtract,Es.sum=Um.sum,Es.sumBy=Um.sumBy,Es.template=$m.template,Es.times=qm.times,Es.toFinite=Vm.toFinite,Es.toInteger=Va,Es.toLength=Vm.toLength,Es.toLower=$m.toLower,Es.toNumber=Vm.toNumber,Es.toSafeInteger=Vm.toSafeInteger,Es.toString=Vm.toString,Es.toUpper=$m.toUpper,Es.trim=$m.trim,Es.trimEnd=$m.trimEnd,Es.trimStart=$m.trimStart,Es.truncate=$m.truncate,Es.unescape=$m.unescape,Es.uniqueId=qm.uniqueId,Es.upperCase=$m.upperCase,Es.upperFirst=$m.upperFirst,Es.each=Bm.forEach,Es.eachRight=Bm.forEachRight,Es.first=Nm.head,uy(Es,(Jm={},lf(Es,(function(t,e){iy.call(Es.prototype,e)||(Jm[e]=t)})),Jm),{chain:!1}),Es.VERSION="4.17.21",(Es.templateSettings=$m.templateSettings).imports._=Es,Ns(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Es[t].placeholder=Es})),Ns(["drop","take"],(function(t,e){vs.prototype[t]=function(n){n=void 0===n?1:ay(Va(n),0);var r=this.__filtered__&&!e?new vs(this):this.clone();return r.__filtered__?r.__takeCount__=sy(n,r.__takeCount__):r.__views__.push({size:sy(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},vs.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ns(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;vs.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:nf(t),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ns(["head","last"],(function(t,e){var n="take"+(e?"Right":"");vs.prototype[t]=function(){return this[n](1).value()[0]}})),Ns(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");vs.prototype[t]=function(){return this.__filtered__?new vs(this):this[n](1)}})),vs.prototype.compact=function(){return this.filter(Ua)},vs.prototype.find=function(t){return this.filter(t).head()},vs.prototype.findLast=function(t){return this.reverse().find(t)},vs.prototype.invokeMap=lu((function(t,e){return"function"==typeof t?new vs(this):this.map((function(n){return cp(n,t,e)}))})),vs.prototype.reject=function(t){return this.filter(Jp(nf(t)))},vs.prototype.slice=function(t,e){t=Va(t);var n=this;return n.__filtered__&&(t>0||e<0)?new vs(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=Va(e))<0?n.dropRight(-e):n.take(e-t)),n)},vs.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},vs.prototype.toArray=function(){return this.take(4294967295)},lf(vs.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=Es[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(Es.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof vs,u=a[0],l=s||Sa(e),c=function(t){var e=i.apply(Es,bl([t],a));return r&&h?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var h=this.__chain__,f=!!this.__actions__.length,d=o&&!h,p=s&&!f;if(!o&&l){e=p?e:new vs(this);var g=t.apply(e,a);return g.__actions__.push({func:nm,args:[c],thisArg:void 0}),new ws(g,h)}return d&&p?t.apply(this,a):(g=this.thru(c),d?r?g.value()[0]:g.value():g)})})),Ns(["pop","push","shift","sort","splice","unshift"],(function(t){var e=ry[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Es.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Sa(i)?i:[],t)}return this[n]((function(n){return e.apply(Sa(n)?n:[],t)}))}})),lf(vs.prototype,(function(t,e){var n=Es[e];if(n){var r=n.name+"";iy.call(bs,r)||(bs[r]=[]),bs[r].push({name:e,func:n})}})),bs[Ks(void 0,2).name]=[{name:"wrapper",func:void 0}],vs.prototype.clone=function(){var t=new vs(this.__wrapped__);return t.__actions__=Os(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Os(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Os(this.__views__),t},vs.prototype.reverse=function(){if(this.__filtered__){var t=new vs(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},vs.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Sa(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=Km(e,t+a);break;case"takeRight":t=Zm(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,h=c.length,f=0,d=Qm(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return im(t,this.__actions__);var p=[];t:for(;u--&&f<d;){for(var g=-1,v=t[l+=e];++g<h;){var m=c[g],y=m.iteratee,b=m.type,_=y(v);if(2==b)v=_;else if(!_){if(1==b)continue t;break t}}p[f++]=v}return p},Es.prototype.at=Xm.at,Es.prototype.chain=Xm.wrapperChain,Es.prototype.commit=Xm.commit,Es.prototype.next=Xm.next,Es.prototype.plant=Xm.plant,Es.prototype.reverse=Xm.reverse,Es.prototype.toJSON=Es.prototype.valueOf=Es.prototype.value=Xm.value,Es.prototype.first=Es.prototype.head,oy&&(Es.prototype[oy]=Xm.toIterator),function(t){t.CORNER_CELL_CLICK="cornerCellClick",t.DATA_CELL_CLICK="dataCellClick",t.MERGED_CELLS_CLICK="mergedCellsClick",t.ROW_COLUMN_CLICK="rowColumnClick",t.ROW_TEXT_CLICK="rowTextClick",t.HOVER="hover",t.BRUSH_SELECTION="brushSelection",t.ROW_BRUSH_SELECTION="rowBrushSelection",t.COL_BRUSH_SELECTION="colBrushSelection",t.COL_ROW_RESIZE="rowColResize",t.DATA_CELL_MULTI_SELECTION="dataCellMultiSelection",t.RANGE_SELECTION="rangeSelection",t.SELECTED_CELL_MOVE="selectedCellMove"}(ty||(ty={})),function(t){t.ALL_SELECTED="allSelected",t.SELECTED="selected",t.UNSELECTED="unselected",t.HOVER="hover",t.HOVER_FOCUS="hoverFocus",t.HIGHLIGHT="highlight",t.SEARCH_RESULT="searchResult",t.PREPARE_SELECT="prepareSelect"}(ey||(ey={})),function(t){t.DATA_CELL="dataCell",t.HEADER_CELL="headerCell",t.ROW_CELL="rowCell",t.COL_CELL="colCell",t.CORNER_CELL="cornerCell",t.MERGED_CELL="mergedCell"}(ny||(ny={}));var ly,cy,hy,fy,dy=800,py={textOpacity:"fillOpacity",backgroundOpacity:"fillOpacity",backgroundColor:"fill",borderOpacity:"strokeOpacity",borderColor:"stroke",borderWidth:"lineWidth",opacity:"opacity"},gy={textShape:["textOpacity"],linkFieldShape:["opacity"],interactiveBgShape:["backgroundColor","backgroundOpacity"],interactiveBorderShape:["borderColor","borderOpacity","borderWidth"]},vy="interactionStateInfo";!function(t){t.CLICK="click",t.UN_DRAGGED="unDragged",t.DRAGGED="dragged"}(ly||(ly={})),function(t){t.SHIFT="Shift",t.COPY="c",t.ESC="Escape",t.META="Meta",t.CONTROL="Control",t.ARROW_UP="ArrowUp",t.ARROW_DOWN="ArrowDown",t.ARROW_LEFT="ArrowLeft",t.ARROW_RIGHT="ArrowRight"}(cy||(cy={})),function(t){t.ASC="ASC",t.DESC="DESC"}(hy||(hy={})),function(t){t.HOVER="hover",t.CLICK="click",t.BRUSH_SELECTION="brushSelection",t.ROW_BRUSH_SELECTION="rowBrushSelection",t.COL_BRUSH_SELECTION="colBrushSelection",t.MULTI_SELECTION="multiSelection",t.RESIZE="resize"}(fy||(fy={}));var my,yy,by={x:{value:0,scroll:!1},y:{value:0,scroll:!1}};!function(t){t.CONTENT="content",t.CANVAS="canvas"}(my||(my={})),function(t){t.LEADING="leading",t.TRAILING="trailing"}(yy||(yy={}));var _y,xy,wy,Oy="RESIZE_START_GUIDE_LINE",Sy="RESIZE_END_GUIDE_LINE",Cy="RESIZE_MASK";!function(t){t.Horizontal="col",t.Vertical="row"}(_y||(_y={})),function(t){t.Field="field",t.Cell="cell",t.Tree="tree",t.Series="series"}(xy||(xy={})),function(t){t.ALL="all",t.CURRENT="current"}(wy||(wy={}));var Ey,Ty=1;!function(t){t.Adaptive="adaptive",t.ColAdaptive="colAdaptive",t.Compact="compact"}(Ey||(Ey={}));var Ay=120,My={layoutWidthType:Ey.Adaptive,showTreeLeafNodeAlignDot:!1,collapsedRows:{},collapsedCols:{},cellCfg:{width:96,height:30},rowCfg:{width:null,widthByField:{},heightByField:{}},colCfg:{height:30,widthByFieldValue:{},heightByField:{}},device:"pc"},Iy={width:600,height:480,debug:!1,hierarchyType:"grid",conditions:{},totals:{},tooltip:{showTooltip:!1,autoAdjustBoundary:"body",operation:{hiddenColumns:!1,trend:!1,sort:!1,menus:[]}},interaction:{linkFields:[],hiddenColumnFields:[],selectedCellsSpotlight:!1,hoverHighlight:!0,hoverFocus:{duration:dy},scrollSpeedRatio:{horizontal:1,vertical:1},autoResetSheetStyle:!0,brushSelection:{data:!0,row:!1,col:!1},multiSelection:!0,rangeSelection:!0,scrollbarPosition:my.CONTENT,resize:{rowCellVertical:!0,cornerCellHorizontal:!0,colCellHorizontal:!0,colCellVertical:!0,rowResizeType:wy.ALL},eventListenerOptions:!1,selectedCellHighlight:!1,overscrollBehavior:"auto"},showSeriesNumber:!1,customSVGIcons:[],showDefaultHeaderActionIcon:!1,headerActionIcons:[],style:My,frozenRowHeader:!0,frozenRowCount:0,frozenColCount:0,frozenTrailingRowCount:0,frozenTrailingColCount:0,hdAdapter:!0,cornerText:"",cornerExtraFieldText:"",placeholder:Bo,supportCSSTransform:!1,devicePixelRatio:window.devicePixelRatio},jy=32,ky=function(t,e){return(ky=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function Py(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}ky(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Ly=function(){return(Ly=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function Ry(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function Dy(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ny(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function By(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}var Fy={exports:{}};!function(t){!function(e){var n=/^\s+/,r=/\s+$/,i=0,o=e.round,a=e.min,s=e.max,u=e.random;function l(t,u){if(u=u||{},(t=t||"")instanceof l)return t;if(!(this instanceof l))return new l(t,u);var c=function(t){var i={r:0,g:0,b:0},o=1,u=null,l=null,c=null,h=!1,f=!1;"string"==typeof t&&(t=function(t){t=t.replace(n,"").replace(r,"").toLowerCase();var e,i=!1;if(T[t])t=T[t],i=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=z.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=z.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=z.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=z.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=z.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=z.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=z.hex8.exec(t))return{r:k(e[1]),g:k(e[2]),b:k(e[3]),a:D(e[4]),format:i?"name":"hex8"};if(e=z.hex6.exec(t))return{r:k(e[1]),g:k(e[2]),b:k(e[3]),format:i?"name":"hex"};if(e=z.hex4.exec(t))return{r:k(e[1]+""+e[1]),g:k(e[2]+""+e[2]),b:k(e[3]+""+e[3]),a:D(e[4]+""+e[4]),format:i?"name":"hex8"};if(e=z.hex3.exec(t))return{r:k(e[1]+""+e[1]),g:k(e[2]+""+e[2]),b:k(e[3]+""+e[3]),format:i?"name":"hex"};return!1}(t));"object"==typeof t&&(V(t.r)&&V(t.g)&&V(t.b)?(d=t.r,p=t.g,g=t.b,i={r:255*I(d,255),g:255*I(p,255),b:255*I(g,255)},h=!0,f="%"===String(t.r).substr(-1)?"prgb":"rgb"):V(t.h)&&V(t.s)&&V(t.v)?(u=L(t.s),l=L(t.v),i=function(t,n,r){t=6*I(t,360),n=I(n,100),r=I(r,100);var i=e.floor(t),o=t-i,a=r*(1-n),s=r*(1-o*n),u=r*(1-(1-o)*n),l=i%6;return{r:255*[r,s,a,a,u,r][l],g:255*[u,r,r,s,a,a][l],b:255*[a,a,u,r,r,s][l]}}(t.h,u,l),h=!0,f="hsv"):V(t.h)&&V(t.s)&&V(t.l)&&(u=L(t.s),c=L(t.l),i=function(t,e,n){var r,i,o;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=I(t,360),e=I(e,100),n=I(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,u=2*n-s;r=a(u,s,t+1/3),i=a(u,s,t),o=a(u,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,u,c),h=!0,f="hsl"),t.hasOwnProperty("a")&&(o=t.a));var d,p,g;return o=M(o),{ok:h,format:t.format||f,r:a(255,s(i.r,0)),g:a(255,s(i.g,0)),b:a(255,s(i.b,0)),a:o}}(t);this._originalInput=t,this._r=c.r,this._g=c.g,this._b=c.b,this._a=c.a,this._roundA=o(100*this._a)/100,this._format=u.format||c.format,this._gradientType=u.gradientType,this._r<1&&(this._r=o(this._r)),this._g<1&&(this._g=o(this._g)),this._b<1&&(this._b=o(this._b)),this._ok=c.ok,this._tc_id=i++}function c(t,e,n){t=I(t,255),e=I(e,255),n=I(n,255);var r,i,o=s(t,e,n),u=a(t,e,n),l=(o+u)/2;if(o==u)r=i=0;else{var c=o-u;switch(i=l>.5?c/(2-o-u):c/(o+u),o){case t:r=(e-n)/c+(e<n?6:0);break;case e:r=(n-t)/c+2;break;case n:r=(t-e)/c+4}r/=6}return{h:r,s:i,l:l}}function h(t,e,n){t=I(t,255),e=I(e,255),n=I(n,255);var r,i,o=s(t,e,n),u=a(t,e,n),l=o,c=o-u;if(i=0===o?0:c/o,o==u)r=0;else{switch(o){case t:r=(e-n)/c+(e<n?6:0);break;case e:r=(n-t)/c+2;break;case n:r=(t-e)/c+4}r/=6}return{h:r,s:i,v:l}}function f(t,e,n,r){var i=[P(o(t).toString(16)),P(o(e).toString(16)),P(o(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function d(t,e,n,r){return[P(R(r)),P(o(t).toString(16)),P(o(e).toString(16)),P(o(n).toString(16))].join("")}function p(t,e){e=0===e?0:e||10;var n=l(t).toHsl();return n.s-=e/100,n.s=j(n.s),l(n)}function g(t,e){e=0===e?0:e||10;var n=l(t).toHsl();return n.s+=e/100,n.s=j(n.s),l(n)}function v(t){return l(t).desaturate(100)}function m(t,e){e=0===e?0:e||10;var n=l(t).toHsl();return n.l+=e/100,n.l=j(n.l),l(n)}function y(t,e){e=0===e?0:e||10;var n=l(t).toRgb();return n.r=s(0,a(255,n.r-o(-e/100*255))),n.g=s(0,a(255,n.g-o(-e/100*255))),n.b=s(0,a(255,n.b-o(-e/100*255))),l(n)}function b(t,e){e=0===e?0:e||10;var n=l(t).toHsl();return n.l-=e/100,n.l=j(n.l),l(n)}function _(t,e){var n=l(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,l(n)}function x(t){var e=l(t).toHsl();return e.h=(e.h+180)%360,l(e)}function w(t){var e=l(t).toHsl(),n=e.h;return[l(t),l({h:(n+120)%360,s:e.s,l:e.l}),l({h:(n+240)%360,s:e.s,l:e.l})]}function O(t){var e=l(t).toHsl(),n=e.h;return[l(t),l({h:(n+90)%360,s:e.s,l:e.l}),l({h:(n+180)%360,s:e.s,l:e.l}),l({h:(n+270)%360,s:e.s,l:e.l})]}function S(t){var e=l(t).toHsl(),n=e.h;return[l(t),l({h:(n+72)%360,s:e.s,l:e.l}),l({h:(n+216)%360,s:e.s,l:e.l})]}function C(t,e,n){e=e||6,n=n||30;var r=l(t).toHsl(),i=360/n,o=[l(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(l(r));return o}function E(t,e){e=e||6;for(var n=l(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(l({h:r,s:i,v:o})),o=(o+s)%1;return a}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,n,r,i=this.toRgb();return t=i.r/255,n=i.g/255,r=i.b/255,.2126*(t<=.03928?t/12.92:e.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:e.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:e.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=M(t),this._roundA=o(100*this._a)/100,this},toHsv:function(){var t=h(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=h(this._r,this._g,this._b),e=o(360*t.h),n=o(100*t.s),r=o(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=c(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=c(this._r,this._g,this._b),e=o(360*t.h),n=o(100*t.s),r=o(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return f(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var a=[P(o(t).toString(16)),P(o(e).toString(16)),P(o(n).toString(16)),P(R(r))];if(i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:o(this._r),g:o(this._g),b:o(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+o(this._r)+", "+o(this._g)+", "+o(this._b)+")":"rgba("+o(this._r)+", "+o(this._g)+", "+o(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:o(100*I(this._r,255))+"%",g:o(100*I(this._g,255))+"%",b:o(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+o(100*I(this._r,255))+"%, "+o(100*I(this._g,255))+"%, "+o(100*I(this._b,255))+"%)":"rgba("+o(100*I(this._r,255))+"%, "+o(100*I(this._g,255))+"%, "+o(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(A[f(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+d(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=l(t);n="#"+d(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return l(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(m,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(b,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(E,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},l.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:L(t[r]));t=n}return l(t,e)},l.equals=function(t,e){return!(!t||!e)&&l(t).toRgbString()==l(e).toRgbString()},l.random=function(){return l.fromRatio({r:u(),g:u(),b:u()})},l.mix=function(t,e,n){n=0===n?0:n||50;var r=l(t).toRgb(),i=l(e).toRgb(),o=n/100;return l({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},l.readability=function(t,n){var r=l(t),i=l(n);return(e.max(r.getLuminance(),i.getLuminance())+.05)/(e.min(r.getLuminance(),i.getLuminance())+.05)},l.isReadable=function(t,e,n){var r,i,o=l.readability(t,e);switch(i=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},l.mostReadable=function(t,e,n){var r,i,o,a,s=null,u=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var c=0;c<e.length;c++)(r=l.readability(t,e[c]))>u&&(u=r,s=l(e[c]));return l.isReadable(t,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,l.mostReadable(t,["#fff","#000"],n))};var T=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},A=l.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(T);function M(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function I(t,n){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=a(n,s(0,parseFloat(t))),r&&(t=parseInt(t*n,10)/100),e.abs(t-n)<1e-6?1:t%n/parseFloat(n)}function j(t){return a(1,s(0,t))}function k(t){return parseInt(t,16)}function P(t){return 1==t.length?"0"+t:""+t}function L(t){return t<=1&&(t=100*t+"%"),t}function R(t){return e.round(255*parseFloat(t)).toString(16)}function D(t){return k(t)/255}var N,B,F,z=(B="[\\s|\\(]+("+(N="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",F="[\\s|\\(]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",{CSS_UNIT:new RegExp(N),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function V(t){return!!z.CSS_UNIT.exec(t)}t.exports?t.exports=l:window.tinycolor=l}(Math)}(Fy);var zy,Vy=Fy.exports,Uy=[95,85,75,30,15,0,15,30,45,60,80],Gy=[{fontColorIndex:0,bgColorIndex:3},{fontColorIndex:13,bgColorIndex:8},{fontColorIndex:14,bgColorIndex:1}],Hy=function(t){for(var e=[],n=0;n<11;n++){var r=Uy[n];e.push(am(0===r?t:Vy.mix(t,n<5?"#FFFFFF":"#000000",r).toHexString()))}return e},Wy=function(t){void 0===t&&(t={});var e=Array.from(Array(15)).fill(aa),n=t.basicColorRelations,r=void 0===n?[]:n,i=t.brandColor,o=Hy(i);return r.forEach((function(t){e[t.basicColorIndex]=o[t.standardColorIndex]})),Gy.forEach((function(t){var n=t.fontColorIndex,r=t.bgColorIndex;e[n]=Vy(e[r]).getBrightness()>ia?oa:aa})),Ly(Ly({},t),{basicColors:e})},Yy=Wy({brandColor:"#3471F9",semanticColors:{red:"#FF4D4F",green:"#29A294",yellow:"#FAAD14"},others:{highlight:"#87B5FF",results:"#F0F7FF"},basicColorRelations:[{basicColorIndex:1,standardColorIndex:0},{basicColorIndex:2,standardColorIndex:1},{basicColorIndex:3,standardColorIndex:5},{basicColorIndex:4,standardColorIndex:6},{basicColorIndex:5,standardColorIndex:6},{basicColorIndex:6,standardColorIndex:6},{basicColorIndex:7,standardColorIndex:5},{basicColorIndex:9,standardColorIndex:1},{basicColorIndex:10,standardColorIndex:4},{basicColorIndex:11,standardColorIndex:4},{basicColorIndex:12,standardColorIndex:5}]}),Xy={default:Wy({brandColor:"#326EF4",semanticColors:{red:"#FF4D4F",green:"#29A294",yellow:"#FAAD14"},others:{highlight:"#87B5FF",results:"#F0F7FF"},basicColorRelations:[{basicColorIndex:1,standardColorIndex:0},{basicColorIndex:2,standardColorIndex:1},{basicColorIndex:3,standardColorIndex:1},{basicColorIndex:4,standardColorIndex:2},{basicColorIndex:5,standardColorIndex:7},{basicColorIndex:6,standardColorIndex:5},{basicColorIndex:7,standardColorIndex:5},{basicColorIndex:9,standardColorIndex:1},{basicColorIndex:10,standardColorIndex:2},{basicColorIndex:11,standardColorIndex:5},{basicColorIndex:12,standardColorIndex:5}]}),colorful:Yy,gray:Wy({brandColor:"#9DA7B6",semanticColors:{red:"#FF4D4F",green:"#29A294",yellow:"#FAAD14"},others:{highlight:"#87B5FF",results:"#F0F7FF"},basicColorRelations:[{basicColorIndex:1,standardColorIndex:0},{basicColorIndex:2,standardColorIndex:1},{basicColorIndex:3,standardColorIndex:1},{basicColorIndex:4,standardColorIndex:2},{basicColorIndex:5,standardColorIndex:7},{basicColorIndex:6,standardColorIndex:8},{basicColorIndex:7,standardColorIndex:5},{basicColorIndex:9,standardColorIndex:1},{basicColorIndex:10,standardColorIndex:2},{basicColorIndex:11,standardColorIndex:3},{basicColorIndex:12,standardColorIndex:3}]})},$y="Roboto, PingFangSC, BlinkMacSystemFont, Microsoft YaHei, Arial, sans-serif",qy=12,Zy="zh_CN",Ky={zh_CN:{"小计":"小计","总计":"总计","总和":"总和","项":"项","已选择":"已选择","序号":"序号","度量":"度量","数值":"数值","共计":"共计","条":"条","趋势":"趋势","隐藏":"隐藏","组内升序":"组内升序","升序":"升序","降序":"降序","组内降序":"组内降序","不排序":"不排序"},en_US:{"小计":"Total","总计":"Total","总和":"SUM","项":"items","已选择":"selected","序号":"Index","度量":"Measure","数值":"Measure","共计":"Total","条":"","隐藏":"Hide","趋势":"Trend","组内升序":"Group ASC","组内降序":"Group DESC","升序":"ASC","降序":"DESC","不排序":"No order"}},Qy=function(){return Zy},Jy=function(t){Zy=t||"zh_CN"},tb=function(t){Ky=Xp({},Ky,t)},eb=function(){return Ky},nb=function(t,e){return void 0===e&&(e=t),ml(Ky,[Zy,t],e)},rb="".concat(ea,"-tooltip"),ib="".concat(rb,"-container"),ob="".concat(ib,"-show"),ab="".concat(ib,"-hide"),sb="".concat(rb,"-operation"),ub={x:15,y:10},lb=function(){return{key:"hiddenColumns",text:nb("隐藏"),icon:"EyeOutlined"}},cb=function(){return{key:"trend",text:nb("趋势"),icon:"Trend"}},hb=function(){return[{key:"asc",icon:"groupAsc",text:nb("组内升序")},{key:"desc",icon:"groupDesc",text:nb("组内降序")},{key:"none",text:nb("不排序")}]},fb=function(){return[{key:"asc",icon:"groupAsc",text:nb("升序")},{key:"desc",icon:"groupDesc",text:nb("降序")},{key:"none",text:nb("不排序")}]};!function(t){t[t.ALL=0]="ALL",t[t.COL=1]="COL",t[t.ROW=2]="ROW"}(zy||(zy={}));var db=1;function pb(t){return"mobile"===t||/(iPhone|iPad|SymbianOS|Windows Phone|iPod|iOS|Android)/i.test(navigator.userAgent)}function gb(){return/iPhone/gi.test(navigator.userAgent)&&812===window.screen.height&&375===window.screen.width}function vb(){return/windows/i.test(navigator.userAgent)}var mb=function(t){return Xy[(t||"default").toLowerCase()]},yb=function(t){var e,n,r,i,o,a=(null==t?void 0:t.palette)||mb(null==t?void 0:t.name),s=a.basicColors,u=a.semanticColors,l=a.others,c=null===(e=null==t?void 0:t.spreadsheet)||void 0===e?void 0:e.isTableMode(),h=vb()?"bold":700,f=function(){var t,e;return{bolderText:{fontFamily:$y,fontSize:12,fontWeight:h,fill:s[13],opacity:1,textAlign:"right",textBaseline:"middle"},text:{fontFamily:$y,fontSize:12,fontWeight:"normal",fill:s[13],opacity:1,textAlign:"right",textBaseline:"middle"},cell:{crossBackgroundColor:s[1],backgroundColor:s[8],backgroundColorOpacity:1,horizontalBorderColor:s[9],horizontalBorderColorOpacity:1,verticalBorderColor:s[9],verticalBorderColorOpacity:1,horizontalBorderWidth:1,verticalBorderWidth:1,padding:{top:8,right:8,bottom:8,left:8},interactionState:{hover:{backgroundColor:s[2],backgroundOpacity:.6},hoverFocus:{backgroundColor:s[2],backgroundOpacity:.6,borderColor:s[14],borderWidth:1,borderOpacity:1},selected:{backgroundColor:s[2],backgroundOpacity:.6},unselected:{backgroundOpacity:.3,textOpacity:.3,opacity:.3},searchResult:{backgroundColor:null!==(t=null==l?void 0:l.results)&&void 0!==t?t:s[2],backgroundOpacity:1},highlight:{backgroundColor:null!==(e=null==l?void 0:l.highlight)&&void 0!==e?e:s[6],backgroundOpacity:1},prepareSelect:{borderColor:s[14],borderOpacity:1,borderWidth:1}}},miniChart:{line:{point:{size:2.2,fill:s[6],opacity:1},linkLine:{size:1.5,fill:s[6],opacity:.6}},bar:{intervalPadding:4,fill:s[6],opacity:1},bullet:{progressBar:{widthPercent:.6,height:10,innerHeight:6},comparativeMeasure:{width:1,height:12,fill:s[13],opacity:.25},rangeColors:{good:null==u?void 0:u.green,satisfactory:u.yellow,bad:u.red},backgroundColor:"#E9E9E9"},interval:{height:qy,fill:s[7]}},icon:{fill:s[13],downIconColor:u.red,upIconColor:u.green,size:10,margin:{right:4,left:4}}}};return{cornerCell:{bolderText:{fontFamily:$y,fontSize:12,fontWeight:h,fill:s[0],opacity:1,textAlign:c?"center":"left",textBaseline:"middle"},text:{fontFamily:$y,fontSize:12,fontWeight:h,fill:s[0],opacity:1,textAlign:"right",textBaseline:"middle"},cell:{backgroundColor:s[3],backgroundColorOpacity:1,horizontalBorderColor:s[10],horizontalBorderColorOpacity:1,verticalBorderColor:s[10],verticalBorderColorOpacity:1,horizontalBorderWidth:1,verticalBorderWidth:1,padding:{top:0,right:8,bottom:0,left:8}},icon:{fill:s[0],size:10,margin:{right:4,left:4}}},rowCell:{seriesText:{fontFamily:$y,fontSize:12,fontWeight:"normal",fill:s[14],linkTextFill:s[6],opacity:1,textBaseline:"middle",textAlign:"center"},measureText:{fontFamily:$y,fontSize:12,fontWeight:"normal",fill:s[14],linkTextFill:s[6],opacity:1,textAlign:c?"center":"left",textBaseline:"top"},bolderText:{fontFamily:$y,fontSize:12,fontWeight:h,fill:s[14],linkTextFill:s[6],opacity:1,textAlign:c?"center":"left",textBaseline:"top"},text:{fontFamily:$y,fontSize:12,fontWeight:"normal",fill:s[14],linkTextFill:s[6],opacity:1,textBaseline:"top",textAlign:c?"center":"left"},cell:{backgroundColor:s[1],backgroundColorOpacity:1,horizontalBorderColor:s[9],horizontalBorderColorOpacity:1,verticalBorderColor:s[9],verticalBorderColorOpacity:1,horizontalBorderWidth:1,verticalBorderWidth:1,padding:{top:0,right:8,bottom:0,left:8},interactionState:{hover:{backgroundColor:s[2],backgroundOpacity:.6},selected:{backgroundColor:s[2],backgroundOpacity:.6},unselected:{backgroundOpacity:.3,textOpacity:.3,opacity:.3},prepareSelect:{borderColor:s[14],borderOpacity:1,borderWidth:1},searchResult:{backgroundColor:null!==(n=null==l?void 0:l.results)&&void 0!==n?n:s[2],backgroundOpacity:1},highlight:{backgroundColor:null!==(r=null==l?void 0:l.highlight)&&void 0!==r?r:s[6],backgroundOpacity:1}}},icon:{fill:s[14],size:10,margin:{right:4,left:4}},seriesNumberWidth:80},colCell:{measureText:{fontFamily:$y,fontSize:12,fontWeight:"normal",fill:s[0],opacity:1,textAlign:"right",textBaseline:"middle"},bolderText:{fontFamily:$y,fontSize:12,fontWeight:h,fill:s[0],opacity:1,textAlign:"center",textBaseline:"middle"},text:{fontFamily:$y,fontSize:12,fontWeight:"normal",fill:s[0],opacity:1,textAlign:"center",textBaseline:"middle"},cell:{backgroundColor:s[3],backgroundColorOpacity:1,horizontalBorderColor:s[10],horizontalBorderColorOpacity:1,verticalBorderColor:s[10],verticalBorderColorOpacity:1,horizontalBorderWidth:1,verticalBorderWidth:1,padding:{top:0,right:8,bottom:0,left:8},interactionState:{hover:{backgroundColor:s[4],backgroundOpacity:.6},selected:{backgroundColor:s[4],backgroundOpacity:.6},unselected:{backgroundOpacity:.3,textOpacity:.3,opacity:.3},prepareSelect:{borderColor:s[14],borderOpacity:1,borderWidth:1},searchResult:{backgroundColor:null!==(i=null==l?void 0:l.results)&&void 0!==i?i:s[2],backgroundOpacity:1},highlight:{backgroundColor:null!==(o=null==l?void 0:l.highlight)&&void 0!==o?o:s[6],backgroundOpacity:1}}},icon:{fill:s[0],size:10,margin:{top:6,right:4,bottom:6,left:4}}},dataCell:f(),mergedCell:f(),resizeArea:{size:3,background:s[7],backgroundOpacity:0,guideLineColor:s[7],guideLineDisableColor:"rgba(0,0,0,0.25)",guideLineDash:[3,3],interactionState:{hover:{backgroundColor:s[7],backgroundOpacity:1}}},scrollBar:{trackColor:"rgba(0,0,0,0.01)",thumbHoverColor:"rgba(0,0,0,0.25)",thumbColor:"rgba(0,0,0,0.15)",size:pb()?3:6,hoverSize:pb()?4:8,lineCap:"round"},splitLine:{horizontalBorderColor:s[12],horizontalBorderColorOpacity:.2,horizontalBorderWidth:2,verticalBorderColor:s[11],verticalBorderColorOpacity:.25,verticalBorderWidth:2,showShadow:!0,shadowWidth:8,shadowColors:{left:"rgba(0,0,0,0.1)",right:"rgba(0,0,0,0)"}},prepareSelectMask:{backgroundColor:s[5],backgroundOpacity:.3},background:{color:s[8],opacity:1}}},bb=function(){function t(t){this.x=0,this.y=0,this.width=0,this.height=0,this.colIndex=-1,this.level=0,this.isLeaf=!1,this.children=[],this.padding=0;var e=t.id,n=t.key,r=t.value,i=t.label,o=t.parent,a=t.level,s=t.rowIndex,u=t.isTotals,l=t.isGrandTotals,c=t.isSubTotals,h=t.isCollapsed,f=t.hierarchy,d=t.isPivotMode,p=t.seriesNumberWidth,g=t.field,v=t.spreadsheet,m=t.query,y=t.belongsCell,b=t.inCollapseNode,_=t.isTotalMeasure,x=t.isLeaf,w=t.extra;this.id=e,this.key=n,this.value=r,this.label=i||r,this.parent=o,this.level=a,this.rowIndex=s,this.isTotals=u,this.isCollapsed=h,this.hierarchy=f,this.isPivotMode=d,this.seriesNumberWidth=p,this.field=g,this.spreadsheet=v,this.query=m,this.belongsCell=y,this.inCollapseNode=b,this.isTotalMeasure=_,this.isLeaf=x,this.isGrandTotals=l,this.isSubTotals=c,this.config={x:0,y:0,width:0,height:0,colIndex:-1,children:[],padding:0,id:"",key:"",value:"",label:""},this.extra=w}return t.getFieldPath=function(t,e){if(t&&!t.isTotals||t&&e){for(var n=t.parent,r=[t.field];n&&n.id!==Do;)r.push(n.field),n=n.parent;return r.reverse()}return[]},t.getAllLeaveNodes=function(t){var e=[];if(t.isLeaf)return[t];for(var n=By([],Ny(t.children),!1),r=n.shift();r;)r.isLeaf?e.push(r):n.unshift.apply(n,By([],Ny(r.children),!1)),r=n.shift();return e},t.getAllChildrenNodes=function(t){var e=[];if(t.isLeaf)return[t];for(var n=By([],Ny(t.children||[]),!1),r=n.shift();r;)e.push(r),n.unshift.apply(n,By([],Ny(r.children),!1)),r=n.shift();return e},t.getAllBranch=function(t){for(var e=[],n=this.getAllLeaveNodes(t),r=n.shift(),i=[];r;){i.unshift(r);for(var o=r.parent;o&&!_p(o,t);)i.unshift(o),o=o.parent;e.push(i),r=n.shift(),i=[]}return e},t.blankNode=function(){return new t({id:"",key:"",value:""})},t.rootNode=function(){return new t({id:"root",key:"",value:""})},t.prototype.toJSON=function(){return og(this,["config","hierarchy","parent","spreadsheet"])},t.prototype.getHeadLeafChild=function(){for(var t=this;!bp(t.children);)t=wd(t.children);return t},t}(),_b=function(){function t(){this.width=0,this.height=0,this.maxLevel=-1,this.sampleNodesForAllLevels=[],this.sampleNodeForLastLevel=null,this.allNodesWithoutRoot=[],this.indexNode=[]}return t.prototype.getLeaves=function(){return this.allNodesWithoutRoot.filter((function(t){return t.isLeaf}))},t.prototype.getNodes=function(t){return void 0!==t?this.allNodesWithoutRoot.filter((function(e){return e.level===t})):this.allNodesWithoutRoot},t.prototype.getNodesLessThanLevel=function(t){return this.allNodesWithoutRoot.filter((function(e){return e.level<=t}))},t.prototype.pushNode=function(t,e){void 0===e&&(e=-1),-1===e?this.allNodesWithoutRoot.push(t):this.allNodesWithoutRoot.splice(e,0,t)},t.prototype.pushIndexNode=function(t){this.indexNode.push(t)},t.prototype.getIndexNodes=function(){return this.indexNode},t}(),xb=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1),this.label=t,this.isSubTotals=e,this.isGrandTotals=n};function wb(t,e){for(var n={},r=t;r&&r.key;)r.isTotals&&!e||(n[r.key]=r.value),r=r.parent;return n}var Ob=function(t,e,n,r){return e.layoutArrange?e.layoutArrange(e.spreadsheet,n,r,t):t},Sb=function(t,e,n,r){var i,o;if(null===(o=null===(i=t.spreadsheet)||void 0===i?void 0:i.facet)||void 0===o?void 0:o.getHiddenColumnsInfo(n))return!1;var a=!0,s=function(t,n,i){void 0===n&&(n=-1),void 0===i&&(i=-1),-1===n?(e.children.push(t),r.pushNode(t)):(e.children.splice(n,0,t),r.pushNode(t,i))};if(t.layoutHierarchy){var u=t.layoutHierarchy(t.spreadsheet,n);if(u){var l=!!gp(null==u?void 0:u.delete)&&(null==u?void 0:u.delete);a=!l;var c=u.push,h=u.unshift,f=e.children.length,d=r.getNodes().length;bp(h)||(Wf(h,(function(t){s(t)})),f=e.children.length,d=r.getNodes().length),bp(c)||Wf(c,(function(t){s(t)})),l||s(n,f,d)}else s(n)}else s(n);return a},Cb=function(t,e,n){(null==t?void 0:t.layoutCoordinate)&&((null==e?void 0:e.isLeaf)||(null==n?void 0:n.isLeaf))&&(null==t||t.layoutCoordinate(t.spreadsheet,e,n))},Eb=function(t){this.label=t},Tb=function(t){var e,n=t.addTotalMeasureInTotal,r=t.addMeasureInTotalQuery,i=t.parentNode,o=t.currentField,a=t.fields,s=t.facetCfg,u=t.hierarchy,l=a.indexOf(o),c=s.dataSet,h=s.values,f=s.spreadsheet,d=[],p={};if(i.isTotals)n&&(p=wb(i.parent,!0),d.push.apply(d,By([],Ny(h.map((function(t){return new Eb(t)}))),!1)));else{p=wb(i,!0);var g=c.getDimensionValues(o,p),v=Ob(g,s,i,o);d.push.apply(d,By([],Ny(v||[]),!1));var m=c.getFieldName(o);bp(d)&&(o===$i?d.push.apply(d,By([],Ny(null===(e=c.fields)||void 0===e?void 0:e.values),!1)):d.push(m)),function(t,e,n){var r,i,o,a,s=null!==(a=null===(o=n.colCfg)||void 0===o?void 0:o.hideMeasureColumn)&&void 0!==a&&a,u=n.dataSet.fields.valueInCols;try{for(var l=Dy(t),c=l.next();!c.done;c=l.next()){var h=c.value;s&&u&&e===$i&&t.splice(t.indexOf(h),1)}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}(d,o,s),function(t){var e,n,r,i=t.isFirstField,o=t.currentField,a=t.fieldValues,s=t.spreadsheet,u=t.lastField,l=s.getTotalsConfig(i?o:u);i?(null==l?void 0:l.showGrandTotals)&&(n=l.reverseLayout?"unshift":"push",r=new xb(l.label,!1,!0)):(null==l?void 0:l.showSubTotals)&&(Es.size(a)>1||!1!==Es.get(l,"showSubTotals.always"))&&o!==$i&&(n=l.reverseSubLayout?"unshift":"push",r=new xb(l.subLabel,!0)),null===(e=a[n])||void 0===e||e.call(a,r)}({currentField:o,lastField:a[l-1],isFirstField:0===l,fieldValues:d,spreadsheet:f})}var y=d.filter((function(t){return!Mp(t)}));Mb({currentField:o,fields:a,fieldValues:y,facetCfg:s,hierarchy:u,parentNode:i,level:l,query:p,addMeasureInTotalQuery:r,addTotalMeasureInTotal:n})},Ab=function(t,e){return"".concat(t).concat(No).concat(e)},Mb=function(t){var e,n,r,i,o,a,s,u,l,c,h,f,d,p=t.currentField,g=t.fields,v=t.fieldValues,m=t.facetCfg,y=t.hierarchy,b=t.parentNode,_=t.level,x=t.query,w=t.addMeasureInTotalQuery,O=t.addTotalMeasureInTotal,S=m.spreadsheet,C=m.collapsedCols,E=m.colCfg;try{for(var T=Dy(v.entries()),A=T.next();!A.done;A=T.next()){var M=Ny(A.value,2),I=M[0],j=M[1],k=j instanceof xb,P=j instanceof Eb,L=void 0,R=void 0,D=!1,N=!1,B=!1,F=p;if(k){var z=j;N=z.isGrandTotals,B=z.isSubTotals,L=nb(j.label),w?(R=Ly(Ly({},x),((r={})[$i]=null===(s=null==S?void 0:S.dataSet)||void 0===s?void 0:s.fields.values[0],r)),D=!0):(R=x,O||(D=!0))}else if(P)L=nb(j.label),R=Ly(Ly({},x),((i={})[$i]=L,i)),F=$i,D=!0;else if(S.isTableMode())L=j,F=g[I],R=Ly(Ly({},x),((o={})[F]=L,o)),D=!0;else{L=j,R=Ly(Ly({},x),((a={})[p]=L,a));var V=null===(l=null===(u=S.dataCfg.fields)||void 0===u?void 0:u.valueInCols)||void 0===l||l,U=(null==E?void 0:E.hideMeasureColumn)&&V&&Xd(g,$i)?2:1;D=_===g.length-U}var G=Ab(b.id,L);if(!G)return;var H=!!gp(null==C?void 0:C[G])&&(null==C?void 0:C[G]),W=new bb({id:G,key:F,value:L,level:_,field:F,parent:b,isTotals:k,isGrandTotals:N,isSubTotals:B,isTotalMeasure:P,isCollapsed:H,hierarchy:y,query:R,spreadsheet:S,isLeaf:D||H}),Y=Sb(m,b,W,y);if(_>y.maxLevel&&!N&&!b.isGrandTotals&&!b.isSubTotals&&!W.isSubTotals){var X=null===(h=null===(c=m.spreadsheet)||void 0===c?void 0:c.facet)||void 0===h?void 0:h.getHiddenColumnsInfo(W);y.sampleNodesForAllLevels.push(W),y.maxLevel=_,y.sampleNodeForLastLevel=X?(null===(f=null==X?void 0:X.displaySiblingNode)||void 0===f?void 0:f.next)||(null===(d=null==X?void 0:X.displaySiblingNode)||void 0===d?void 0:d.prev):W}D||H||!Y?(W.isLeaf=!0,y.pushIndexNode(W),W.rowIndex=y.getIndexNodes().length-1):Tb({addTotalMeasureInTotal:O,addMeasureInTotalQuery:w,parentNode:W,currentField:g[_+1],fields:g,facetCfg:m,hierarchy:y})}}catch(t){e={error:t}}finally{try{A&&!A.done&&(n=T.return)&&n.call(T)}finally{if(e)throw e.error}}},Ib=function(t,e,n,r){var i=e.facetCfg,o=e.hierarchy,a=e.parentNode,s=i.dataSet;t.forEach((function(t,u){"string"==typeof t&&(t={key:t});var l=t.key,c=l===Ki?nb("序号"):s.getFieldName(l),h=r||a;if(Mb({currentField:l,fields:[l],fieldValues:[c],facetCfg:i,hierarchy:o,parentNode:h,level:n,query:{},addMeasureInTotalQuery:!1,addTotalMeasureInTotal:!1}),t.children&&t.children.length){var f=h.children[u];f.isLeaf=!1,Ib(t.children,e,n+1,f)}}))},jb=function(t,e){return e>0&&t<e},kb=function(t,e,n){return e>0&&t>=n-e},Pb=function(t,e,n){return n>0&&t<e+n},Lb=function(t,e,n){return n>0&&t>=e+1-n},Rb=function(t,e,n,r,i,o){var a=gd(n,(function(e,r){var a=t-(Ep(o)?0:o)+i.x;return a>=e&&a<n[r+1]}),0);a=Math.max(a,0);var s=gd(n,(function(e,r){var o=i.width+t+i.x;return o>=e&&o<n[r+1]}),a);s=Math.min(-1===s?1/0:s,n.length-2);var u=r.getIndexRange(e+i.y,i.height+e+i.y);return[a,s,u.start,u.end]},Db=function(t,e,n){var r,i,o=null==t?void 0:t.getMatrix(),a=null!==(r=null==o?void 0:o[6])&&void 0!==r?r:0,s=null!==(i=null==o?void 0:o[7])&&void 0!==i?i:0;null==t||t.translate(e-a,n-s)},Nb=function(t,e){var n,r=null==t?void 0:t.getMatrix(),i=null!==(n=null==r?void 0:r[6])&&void 0!==n?n:0;null==t||t.translate(e-i,0)},Bb=function(t,e,n){var r=e,i=n,o=function(t){return t.isLeaf?1:t.children?t.children.reduce((function(t,e){return t+=o(e)}),0):0};return e&&(r=t.slice(0,e).reduce((function(t,e){return t+=o(e)}),0)),n&&(i=t.slice(t.length-n).reduce((function(t,e){return t+=o(e)}),0)),{colCount:r,trailingColCount:i}},Fb=function(t,e){return t.reduce((function(t,n){"string"==typeof n&&(n={key:n});var r=Ly({},n);return r.children?(r.children=Fb(r.children,e),t.push(r),t):(e[r.key]&&t.push(r),t)}),[])},zb=function(t){return"root"===t.parent.id},Vb=function(t){return function(t){var e=[],n=function(t){t.forEach((function(t){"string"!=typeof t&&t.children?n(t.children):e.push(t)}))};return n(t),e}(t).map((function(t){return"string"==typeof t?t:t.key}))},Ub=function(t){var e=t.children[0];return e?e.isLeaf?e:Ub(e):t},Gb=function(t){var e=t.facetCfg,n=e.columns,r=e.spreadsheet.store.get("hiddenColumnsDetail"),i=null==e?void 0:e.showSeriesNumber,o=By([],Ny(Vb(n).filter((function(t){return!r||r.every((function(e){return e.hideColumnNodes.every((function(e){return e.field!==t}))}))}))),!1),a=By([],Ny(n),!1),s={};i&&(a.unshift({key:Ki}),s[Ki]=!0),o.reduce((function(t,e){return t[e]=!0,t}),s),Ib(Fb(a,s),t,0,null)},Hb="Transform Data",Wb="Header Layout",Yb="Data Cell Render",Xb=function(){function t(){var t=this;this.debug=!1,this.debugCallback=function(e,n){if(t.debug){var r=performance.now();n();var i=performance.now();console.log(e,"".concat(i-r," ms"))}else n()},this.logger=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t.debug&&console.log.apply(console,By([e],Ny(n),!1))}}return t.getInstance=function(){return t.instance||(t.instance=new t),t.instance},t.prototype.setDebug=function(t){this.debug=t},t}(),$b=Object.freeze({__proto__:null,ArrowDown:'\n<svg width="10px" height="10px" viewBox="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" font-family="Roboto, PingFangSC, BlinkMacSystemFont, Microsoft YaHei, Arial, sans-serif" font-size="12" font-weight="bold">\n <text id="↓" fill="#29A294">\n <tspan x="-0.225097656" y="8.5">↓</tspan>\n </text>\n</g>\n</svg>',ArrowUp:'<svg width="10px" height="10px" viewBox="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" font-family="Roboto, PingFangSC, BlinkMacSystemFont, Microsoft YaHei, Arial, sans-serif" font-size="12" font-weight="bold">\n <text id="↑" fill="#FF4D4F">\n <tspan x="-0.225097656" y="8.5">↑</tspan>\n </text>\n</g>\n</svg>\n',CellDown:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="7px" height="9px" viewBox="0 0 7 9" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 58 (84663) - https://sketch.com --\x3e\n <title>down</title>\n <desc>Created with Sketch.</desc>\n <g id="一期开发" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <polygon id="down" fill="#58AE57" transform="translate(3.500000, 4.500000) scale(1, -1) translate(-3.500000, -4.500000) " points="3.5 0 7 9 0 9"></polygon>\n </g>\n</svg>',CellUp:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="7px" height="9px" viewBox="0 0 7 9" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 58 (84663) - https://sketch.com --\x3e\n <title>up</title>\n <desc>Created with Sketch.</desc>\n <g id="一期开发" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <polygon id="up" fill="#F46649" points="3.5 0 7 9 0 9"></polygon>\n </g>\n</svg> ',GlobalAsc:'<svg t="1557124621626" class="icon" style="" viewBox="0 0 1024 1024" version="1.1"\nxmlns="http://www.w3.org/2000/svg" p-id="17452"\nxmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14">\n<defs>\n <style type="text/css"></style>\n</defs>\n<path d="M182.272 167.04a8 8 0 0 0-12.544 0L57.728 309.056A8 8 0 0 0 64 321.984h76.032v530.048c0 4.352 3.584 7.936 7.936 7.936h56.064a8 8 0 0 0 7.936-7.936V321.92H288a8 8 0 0 0 6.272-12.992l-112-141.888z m209.728 626.944h176c4.416 0 8 3.584 8 8v56a8 8 0 0 1-8 8h-176A8 8 0 0 1 384 857.984v-56c0-4.416 3.584-8 8-8z m0-424h368c4.416 0 8 3.648 8 8v56a8 8 0 0 1-8 8h-368A8 8 0 0 1 384 433.984v-56c0-4.352 3.584-8 8-8z m528-139.968h-528A8 8 0 0 1 384 222.016v-56c0-4.416 3.584-8 8-8h528c4.416 0 8 3.584 8 8v56a8 8 0 0 1-8 8z m-256 424h-272A8 8 0 0 1 384 646.016v-56c0-4.416 3.584-8 8-8h272c4.416 0 8 3.584 8 8v56a8 8 0 0 1-8 8z" p-id="17453"></path>\n</svg>',GlobalDesc:'<svg t="1557124685600" class="icon" style="" viewBox="0 0 1024 1024" version="1.1"\n xmlns="http://www.w3.org/2000/svg" p-id="17561"\n xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14">\n <defs>\n <style type="text/css"></style>\n </defs>\n <path d="M182.272 856.96a8 8 0 0 1-12.544 0l-112-141.952A8 8 0 0 1 64 702.08h76.032V172.032c0-4.416 3.584-8 7.936-8h56.064c4.352 0 7.936 3.584 7.936 8v529.984H288c6.72 0 10.496 7.808 6.272 12.992l-112 141.888z m209.728-626.944h176A8 8 0 0 0 576 222.016v-56a8 8 0 0 0-8-8h-176A8 8 0 0 0 384 166.016v56c0 4.416 3.584 8 8 8z m0 424h368a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8h-368A8 8 0 0 0 384 590.016v56c0 4.416 3.584 8 8 8z m528 139.968h-528a8 8 0 0 0-8 8v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z m-256-424h-272A8 8 0 0 0 384 377.984v56c0 4.416 3.584 8 8 8h272a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z" p-id="17562"></path>\n</svg>',GroupAsc:'<svg t="1557124695786" class="icon" style="" viewBox="0 0 1024 1024" version="1.1"\n xmlns="http://www.w3.org/2000/svg" p-id="17670"\n xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14">\n <defs>\n <style type="text/css"></style>\n </defs>\n <path d="M182.272 167.04a8 8 0 0 0-12.544 0L57.728 309.056A8 8 0 0 0 64 321.984h76.032v530.048c0 4.352 3.584 7.936 7.936 7.936h56.064a8 8 0 0 0 7.936-7.936V321.92H288a8 8 0 0 0 6.272-12.992l-112-141.888z m209.728 62.976h304A8 8 0 0 0 704 222.016v-56a8 8 0 0 0-8-8h-304A8 8 0 0 0 384 166.016v56c0 4.416 3.584 8 8 8z m0 424h304a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8h-304A8 8 0 0 0 384 590.016v56c0 4.416 3.584 8 8 8z m528 139.968h-528a8 8 0 0 0-8 8v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z m0-424h-528A8 8 0 0 0 384 377.984v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z" p-id="17671"></path>\n</svg>',GroupDesc:'<svg t="1557124710652" class="icon" style="" viewBox="0 0 1024 1024" version="1.1"\n xmlns="http://www.w3.org/2000/svg" p-id="17779"\n xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14">\n <defs>\n <style type="text/css"></style>\n </defs>\n <path d="M182.272 856.96a8 8 0 0 1-12.544 0l-112-141.952A8 8 0 0 1 64 702.08h76.032V172.032c0-4.416 3.584-8 7.936-8h56.064c4.352 0 7.936 3.584 7.936 8v529.984H288c6.72 0 10.496 7.808 6.272 12.992l-112 141.888z m209.728-626.944h304A8 8 0 0 0 704 222.016v-56a8 8 0 0 0-8-8h-304A8 8 0 0 0 384 166.016v56c0 4.416 3.584 8 8 8z m0 424h304a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8h-304A8 8 0 0 0 384 590.016v56c0 4.416 3.584 8 8 8z m528 139.968h-528a8 8 0 0 0-8 8v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z m0-424h-528A8 8 0 0 0 384 377.984v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z" p-id="17780"></path>\n</svg>',GroupNone:'<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n<g id="设计输出" stroke="none" stroke-width="1" fill-opacity="0.25" fill-rule="evenodd">\n <g id="设计输出-移动端指标详情页-阅读端" transform="translate(-3275.000000, -724.000000)" fill-rule="nonzero">\n <g id="编组-39" transform="translate(3064.500000, 667.000000)">\n <g id="编组-36" transform="translate(80.500000, 44.000000)">\n <g id="不排序" transform="translate(130.000000, 13.000000)">\n <path d="M12.0009375,12.40625 C12.0696875,12.40625 12.1259375,12.4625 12.1259375,12.53125 L12.1259375,12.53125 L12.1259375,13.40625 C12.1259375,13.475 12.0696875,13.53125 12.0009375,13.53125 L12.0009375,13.53125 L6.25093747,13.53125 C6.18218747,13.53125 6.12593747,13.475 6.12593747,13.40625 L6.12593747,13.40625 L6.12593747,12.53125 C6.12593747,12.4625 6.18218747,12.40625 6.25093747,12.40625 L6.25093747,12.40625 Z M2.93949997,2.5801875 L2.97437497,2.6109375 L4.72437497,4.828125 C4.78062497,4.89776786 4.74503823,4.99725765 4.66779698,5.02426203 L4.62593747,5.03125 L3.438,5.03089062 L3.43843747,10.9691406 L4.62593747,10.9691406 C4.73062497,10.9691406 4.78999997,11.0910156 4.72437497,11.1722656 L2.97437497,13.3894531 C2.92437497,13.4535156 2.82749997,13.4535156 2.77749997,13.3894531 L1.02749997,11.1722656 C0.961874969,11.0894531 1.02124997,10.9691406 1.12593747,10.9691406 L2.31343747,10.9691406 L2.313,5.03089062 L1.12593747,5.03125 C1.03620533,5.03125 0.979764,4.94285714 1.00679571,4.8654519 L1.02749997,4.828125 L2.77749997,2.6109375 C2.81749997,2.5596875 2.88749997,2.5494375 2.93949997,2.5801875 Z M10.5009375,9.09375 C10.5696875,9.09375 10.6259375,9.15 10.6259375,9.21875 L10.6259375,9.21875 L10.6259375,10.09375 C10.6259375,10.1625 10.5696875,10.21875 10.5009375,10.21875 L10.5009375,10.21875 L6.25093747,10.21875 C6.18218747,10.21875 6.12593747,10.1625 6.12593747,10.09375 L6.12593747,10.09375 L6.12593747,9.21875 C6.12593747,9.15 6.18218747,9.09375 6.25093747,9.09375 L6.25093747,9.09375 Z M14.5009375,5.78125 C14.5696875,5.78125 14.6259375,5.8375 14.6259375,5.90625 L14.6259375,5.90625 L14.6259375,6.78125 C14.6259375,6.85 14.5696875,6.90625 14.5009375,6.90625 L14.5009375,6.90625 L6.25093747,6.90625 C6.18218747,6.90625 6.12593747,6.85 6.12593747,6.78125 L6.12593747,6.78125 L6.12593747,5.90625 C6.12593747,5.8375 6.18218747,5.78125 6.25093747,5.78125 L6.25093747,5.78125 Z M9.00093747,2.46875 C9.06968747,2.46875 9.12593747,2.525 9.12593747,2.59375 L9.12593747,2.59375 L9.12593747,3.46875 C9.12593747,3.5375 9.06968747,3.59375 9.00093747,3.59375 L9.00093747,3.59375 L6.25093747,3.59375 C6.18218747,3.59375 6.12593747,3.5375 6.12593747,3.46875 L6.12593747,3.46875 L6.12593747,2.59375 C6.12593747,2.525 6.18218747,2.46875 6.25093747,2.46875 L6.25093747,2.46875 Z" id="形状结合"></path>\n </g>\n </g>\n </g>\n </g>q\n</g>\n</svg>',Minus:'<svg t="1557140120188" class="icon" style="" viewBox="0 0 1024 1024" version="1.1"\nxmlns="http://www.w3.org/2000/svg" p-id="16909" xmlns:xlink="http://www.w3.org/1999/xlink"\nwidth="200" height="200">\n\t<defs>\n\t\t<style type="text/css">\n\t\t</style>\n\t</defs>\n\t<path d="M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"\n\tp-id="16910">\n\t</path>\n\t<path d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32z m-40 728H184V184h656v656z"\n\tp-id="16911">\n\t</path>\n</svg>',Plus:'<svg t="1557140186692" class="icon" style="" viewBox="0 0 1024 1024" version="1.1"\nxmlns="http://www.w3.org/2000/svg" p-id="17025" xmlns:xlink="http://www.w3.org/1999/xlink"\nwidth="200" height="200">\n\t<defs>\n\t\t<style type="text/css">\n\t\t</style>\n\t</defs>\n\t<path d="M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"\n\tp-id="17026">\n\t</path>\n\t<path d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32z m-40 728H184V184h656v656z"\n\tp-id="17027">\n\t</path>\n</svg>',SortDown:'<svg t="1565940955886" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"\n p-id="17472" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">\n <defs>\n <style type="text/css"></style>\n </defs>\n <path\n fill-opacity="0.45"\n d="M948 392.992l-403.008 488.99200001Q532 896 512.992 896t-32-14.016L76 392.992q-18.016-20.992-7.008-46.016T108 321.98400001L916 321.98400001q28 0 39.008 24.99199999T948 392.992z"\n p-id="17473" data-spm-anchor-id="a313x.7781069.0.i2" class="selected"></path>\n</svg>\n',SortUp:'<svg t="1565940979768" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"\n p-id="17620" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">\n <defs>\n <style type="text/css"></style>\n </defs>\n <path\n fill-opacity="0.45"\n d="M76 631.008l403.008-488.99200001Q492 128 511.008 128t32 14.016L948 631.008q18.016 20.992 7.008 46.016T916 702.01599999L108 702.01599999q-28 0-39.008-24.99199999T76 631.008z"\n p-id="17621"></path>\n</svg>\n',SortDownSelected:'<svg t="1565940955886" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"\n p-id="17472" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">\n <defs>\n <style type="text/css"></style>\n </defs>\n <path\n d="M948 392.992l-403.008 488.99200001Q532 896 512.992 896t-32-14.016L76 392.992q-18.016-20.992-7.008-46.016T108 321.98400001L916 321.98400001q28 0 39.008 24.99199999T948 392.992z"\n p-id="17473" data-spm-anchor-id="a313x.7781069.0.i2" class="selected"></path>\n</svg>\n',SortUpSelected:'<svg t="1565940979768" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"\np-id="17620" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">\n<defs>\n<style type="text/css"></style>\n</defs>\n<path\nd="M76 631.008l403.008-488.99200001Q492 128 511.008 128t32 14.016L948 631.008q18.016 20.992 7.008 46.016T916 702.01599999L108 702.01599999q-28 0-39.008-24.99199999T76 631.008z"\np-id="17621"></path>\n</svg>\n',InfoCircle:'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1590389330617" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="19656" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M512 64c-247.4 0-448 200.6-448 448s200.6 448 448 448 448-200.6 448-448-200.6-448-448-448z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" fill="" p-id="19657"></path><path d="M464 336c0 26.5 21.5 48 48 48s48-21.5 48-48-21.5-48-48-48-48 21.5-48 48zM536 448h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-272c0-4.4-3.6-8-8-8z" fill="" p-id="19658"></path></svg>',ExpandColIcon:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="23px" height="12px" viewBox="0 0 23 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>编组 8备份 3</title>\n <g id="----隐藏列标注!" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="隐藏列标注" transform="translate(-275.000000, -824.000000)">\n <rect fill="#FFFFFF" x="0" y="0" width="1333" height="1167"></rect>\n <g id="编组-8备份-3" transform="translate(275.000000, 824.000000)">\n <rect id="矩形" stroke-opacity="0.25" stroke="#000000" fill="#F7F7F7" x="0.5" y="0.5" width="11" height="11"></rect>\n <rect id="矩形备份-9" stroke-opacity="0.25" stroke="#000000" fill="#F7F7F7" x="11.5" y="0.5" width="11" height="11"></rect>\n <g id="7.Icon/arrow/15.down/fill" transform="translate(6.000000, 6.000000) rotate(90.000000) translate(-6.000000, -6.000000) " fill="#000000" fill-rule="nonzero" opacity="0.65">\n <path d="M7.25020811,6.37218077 L4.91348936,8.20968077 C4.82677061,8.27764952 4.69903624,8.21671202 4.69903624,8.10655577 L4.69903624,4.43272764 C4.69903624,4.32257139 4.82677061,4.26046202 4.91348936,4.32960264 L7.25020811,6.16593077 C7.31700499,6.21866514 7.31700499,6.31944639 7.25020811,6.37218077 Z" id="fill" transform="translate(5.999671, 6.269385) rotate(90.000000) translate(-5.999671, -6.269385) "></path>\n </g>\n <g id="7.Icon/arrow/15.down/fill" transform="translate(17.000000, 6.000000) rotate(270.000000) translate(-17.000000, -6.000000) translate(11.000000, 0.000000)" fill="#000000" fill-rule="nonzero" opacity="0.65">\n <path d="M7.25020811,6.37218077 L4.91348936,8.20968077 C4.82677061,8.27764952 4.69903624,8.21671202 4.69903624,8.10655577 L4.69903624,4.43272764 C4.69903624,4.32257139 4.82677061,4.26046202 4.91348936,4.32960264 L7.25020811,6.16593077 C7.31700499,6.21866514 7.31700499,6.31944639 7.25020811,6.37218077 Z" id="fill" transform="translate(5.999671, 6.269385) rotate(90.000000) translate(-5.999671, -6.269385) "></path>\n </g>\n </g>\n <line x1="286.5" y1="813" x2="286.5" y2="864.5" id="路径-2备份-3" stroke="#000000" opacity="0.25"></line>\n </g>\n </g>\n</svg>',Trend:'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1596433821690" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="20229" width="16" height="16" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6c-3.1-3.1-8.2-3.1-11.3 0l-230 229.9L461.4 404c-3.1-3.1-8.2-3.1-11.3 0L266.3 586.7c-3.1 3.1-3.1 8.2 0 11.3l39.5 39.7z" p-id="20230"></path></svg>',DrillDownIcon:'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1608030723688" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="21482" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M547.648 696a32 32 0 0 1 31.488 26.24l0.512 5.76v151.68l145.216-144.512a32 32 0 0 1 40.832-3.648l4.416 3.712a32 32 0 0 1 3.584 40.832l-3.712 4.48-203.072 202.24a32 32 0 0 1-40.768 3.648l-4.416-3.712-202.24-202.24a32 32 0 0 1 40.832-48.96l4.416 3.712 150.912 150.912v-158.144a32 32 0 0 1 32-32z m194.56-529.28l4.928 3.072 233.792 180.224a32 32 0 0 1 1.728 49.28l-4.864 3.52-409.792 245.568a32 32 0 0 1-27.328 2.624l-5.184-2.432-422.4-245.568a32 32 0 0 1-7.552-49.28l4.544-4.032 242.816-180.288a32 32 0 0 1 42.432 47.552l-4.288 3.84-203.84 151.296 364.16 211.648 353.28-211.712-196.608-151.552a32 32 0 0 1-8.896-40l3.136-4.864a32 32 0 0 1 40-8.96zM547.712 28.672a32 32 0 0 1 31.488 26.24l0.512 5.76v396.992a32 32 0 0 1-63.488 5.76l-0.512-5.76V60.736a32 32 0 0 1 32-32z" p-id="21483" fill="currentColor"></path></svg>\n',EyeOutlined:'<svg viewBox="64 64 896 896" focusable="false" data-icon="eye" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"></path></svg>'}),qb={},Zb=function(t,e){qb[Rp(t)]=e},Kb=function(t){return qb[Rp(t)]};Vu($b).forEach((function(t){Zb(t,$b[t])}));var Qb,Jb,t_,e_={},n_=function(t){function e(e){var n=t.call(this,e)||this;return n.hasSupportSuffix=function(t){return[".png",".jpg",".gif",".svg"].some((function(e){return null==t?void 0:t.endsWith(e)}))},n.render(),n}return Py(e,t),e.prototype.getImage=function(t,e,n){var r=this;return new Promise((function(i,o){var a=new Image;a.onload=function(){e_[e]=a,i(a)},a.onerror=function(t){o(t)};var s=Kb(t);s&&(s.includes("data:image/svg+xml")||r.hasSupportSuffix(s))?a.src=s:s&&(n&&(s=(s=s.replace(/fill=[\'\"]#?\w+[\'\"]/g,"")).replace(/fill>/g,">")),s=s.replace("<svg","".concat("<svg",' fill="').concat(n,'"')),a.src="data:image/svg+xml;utf-8,".concat(encodeURIComponent(s)))}))},e.prototype.render=function(){var t=this,n=this.cfg,r=n.name,i=n.fill,o=Ah(this.cfg),a=Ly(Ly({},og(o,"fill")),{type:e.type}),s=new xi({attrs:a}),u="".concat(r,"-").concat(i),l=e_[u];l?(s.attr("img",l),this.addShape("image",s)):this.getImage(r,u,i).then((function(e){s.attr("img",e),t.addShape("image",s)})).catch((function(t){console.warn("GuiIcon ".concat(r," load error"),t)})),this.iconImageShape=s},e.type="__GUI_ICON__",e}(gi);!function(t){t.TOP="TOP",t.BOTTOM="BOTTOM",t.LEFT="LEFT",t.RIGHT="RIGHT"}(Qb||(Qb={})),function(t){t.SUM="SUM",t.MIN="MIN",t.MAX="MAX",t.AVG="AVG"}(Jb||(Jb={})),function(t){t.Row="row",t.Col="col",t.Series="series"}(t_||(t_={}));var r_=function(){function t(){this.store=new Map}return t.prototype.set=function(t,e){return this.store.set(t,e)},t.prototype.get=function(t,e){var n;return null!==(n=this.store.get(t))&&void 0!==n?n:e},t.prototype.clear=function(){this.store.clear()},t.prototype.size=function(){return this.store.size},t}(),i_=function(t,e,n){return t.sort((function(t,r){n&&(t=n(t),r=n(r));var i=e.indexOf(t),o=e.indexOf(r);return-1===i&&-1===o?0:-1===i?1:-1===o?-1:i-o}))},o_=function(t){return fd(t,(function(t){return!Mp(t)&&"undefined"!==t}))},a_=function(t){var e;return null===(e=Vu(t))||void 0===e?void 0:e.reduce((function(e,n){var r=ml(t,n);return Array.isArray(r)?e=e.concat(a_(r)):null==e||e.push(r),e}),[])},s_=function(t){var e=[];if(Array.isArray(t))for(var n=("undefined"in t),r=t.length+(n?1:0),i=0,o=function(){var n=i===t.length?t[void 0]:t[i];i++,n&&"undefined"in n?Vu(n).forEach((function(t){e.push(n[t])})):Array.isArray(n)?e.push.apply(e,By([],Ny(n),!1)):e.push(n)};i<r;)o();else e.push(t);return e},u_=function(t,e){var n=[];return null==t||t.forEach((function(t,r){void 0===t&&e[r]&&n.push(e[r])})),n},l_=function(t,e){return!ld(t,(function(t){return e[t]}))};function c_(t,e){var n=e.rows,r=e.columns;return fv(t,(function(t,e){return l_([].concat(n).concat(r),e)&&t.push(e),t}),[])}var h_={en_US:["KMBTP".split(""),[1e3,1e3,1e3,1e3,1e3]],zh_CN:[["万","亿"],[1e4,1e4]]},f_=function(t,e,n){if(void 0===e&&(e=2),void 0===n&&(n=h_[Qy()]||h_.zh_CN),"number"!=typeof t||Sp(t))return"";for(var r,i=t,o=Ny(n,2),a=o[0],s=o[1],u=0,l=!0;l;)i>=(r=s[u])&&u<a.length?i/=r:l=!1,u+=1;var c=(i=parseFloat(i.toFixed(e)))>=1e3?i.toLocaleString("en"):"".concat(i);return 0===u?c:"".concat(c," ").concat(a[u-1])},d_=function(t){return Number.parseFloat((Fa(t)||0).toPrecision(Wo))},p_=function(t,e,n){if(void 0===n&&(n=0),!Object.values(t).find((function(t){return t>0})))return t;var r=Ly({},t);r.frozenColCount>=e&&(r.frozenColCount=e);var i=e-r.frozenColCount;r.frozenTrailingColCount>i&&(r.frozenTrailingColCount=i),r.frozenRowCount>=n&&(r.frozenRowCount=n);var o=n-r.frozenRowCount;return r.frozenTrailingRowCount>o&&(r.frozenTrailingRowCount=o),r};function g_(t,e,n){var r;return null===(r=null==t?void 0:t.addShape)||void 0===r?void 0:r.call(t,"rect",Ly({zIndex:1,attrs:e},n||{}))}function v_(t,e){var n;return null===(n=null==t?void 0:t.addShape)||void 0===n?void 0:n.call(t,"polygon",{attrs:e})}function m_(t,e){var n;return null===(n=null==t?void 0:t.addShape)||void 0===n?void 0:n.call(t,"polyline",{attrs:e})}function y_(t,e){var n;return null===(n=null==t?void 0:t.addShape)||void 0===n?void 0:n.call(t,"circle",{attrs:e})}function b_(t,e,n,r,i,o,a){var s;return!bp(e)&&t&&Wf(e,(function(e){t.contain(e)&&t.removeChild(e,!0)})),null===(s=null==t?void 0:t.addShape)||void 0===s?void 0:s.call(t,"text",{attrs:Ly(Ly({x:n,y:r,text:i},o),a)})}function __(t,e,n){var r;return null===(r=null==t?void 0:t.addShape)||void 0===r?void 0:r.call(t,"line",{zIndex:100,attrs:Ly(Ly({},e),n)})}function x_(t,e,n){t&&Ov(t,"attrs.".concat(e),n)}function w_(t,e){x_(t,"fillOpacity",e)}function O_(t,e){x_(t,"strokeOpacity",e)}function S_(t,e){var n=new n_(e);return null==t||t.add(n),n}function C_(t,e,n,r,i){var o=new n_(Ly(Ly({name:r?"Plus":"Minus"},e),{fill:n}));return Ga(i)&&o.on("click",i),null==t||t.add(o),o}var E_=function(t){var e;return null!==(e=null==t?void 0:t.position)&&void 0!==e?e:"right"},T_=function(t,e){var n,r,i,o=t.data,a=t.encode,s=t.type,u=e.getMeta(),l=u.x,c=u.y,h=u.height,f=u.width,d=e.getStyle(ny.DATA_CELL),p=d.cell,g=d.miniChart,v=[],m=Sd(o,(function(t){return v.push(null==t?void 0:t[a.y]),{x:t[a.x],y:t[a.y]}})),y=Gp(v),b=Zp(v),_=y-b,x=l+p.padding.left,w=l+f-p.padding.right,O=c+p.padding.top,S=c+h-p.padding.bottom,C=S-O,E=s===Yi.Bar?(w-x-(v.length-1)*(null===(n=null==g?void 0:g.bar)||void 0===n?void 0:n.intervalPadding))/v.length+(null===(r=null==g?void 0:g.bar)||void 0===r?void 0:r.intervalPadding):null!==(i=(w-x)/(v.length-1))&&void 0!==i?i:0,T=[];return{points:Sd(m,(function(t,e){var n,r,i=x+e*E;if(r=0!==_?S-((null==t?void 0:t.y)-b)/_*C:b>0?O:S,s===Yi.Bar){var o=void 0,a=void 0;b<0&&y>0&&0!==_?(o=S-(0-b)/_*C,a=Math.abs(r-o),(null==t?void 0:t.y)<0&&(r=o)):(o=b<0?O:S,a=0===(_=Gp([Math.abs(y),Math.abs(b)]))?C:Math.abs((null==t?void 0:t.y)-0)/_*C,r=o);var u=E-(null===(n=null==g?void 0:g.bar)||void 0===n?void 0:n.intervalPadding);T.push([u,a])}return[i,r]})),box:T}},A_=function(t,e){if(!bp(null==t?void 0:t.data)&&!bp(e)){var n=e.getStyle(ny.DATA_CELL).miniChart.line,r=n.point,i=n.linkLine,o=T_(t,e).points;m_(e,{points:o,stroke:i.fill,lineWidth:i.size,opacity:i.opacity});for(var a=0;a<o.length;a++)y_(e,{x:o[a][0],y:o[a][1],r:r.size,fill:r.fill,fillOpacity:r.opacity})}},M_=function(t,e){if(!bp(null==t?void 0:t.data)&&!bp(e))for(var n=e.getStyle(ny.DATA_CELL).miniChart.bar,r=T_(t,e),i=r.points,o=r.box,a=0;a<i.length;a++)g_(e,{x:i[a][0],y:i[a][1],width:o[a][0],height:o[a][1],fill:n.fill,fillOpacity:n.opacity})},I_=function(t,e,n){var r=Number(e)-Number(t);return Number.isNaN(r)||Number(t)<0?n.bad:r<=.1?n.good:r>.1&&r<=.2?n.satisfactory:n.bad},j_=function(t,e){var n,r;void 0===e&&(e={min:0,max:0});var i=Number(t);if(Number.isNaN(i))return t;var o=null!==(n=null==e?void 0:e.min)&&void 0!==n?n:e,a=null!==(r=null==e?void 0:e.max)&&void 0!==r?r:e;return new Intl.NumberFormat("en-US",{minimumFractionDigits:o,maximumFractionDigits:a,useGrouping:!1,style:"percent"}).format(i)},k_=function(t){var e,n,r,i,o,a;if(!bp(t)){var s=t.getCellArea(),u=s.x,l=s.y,c=s.height,h=s.width,f=t.findFieldCondition(null===(e=t.cellConditions)||void 0===e?void 0:e.interval);if(f&&f.mapping){var d=t.mappingValue(f);if(!d)return;var p=d.isCompare?d:t.valueRangeByField,g=d_(p.minValue),v=d_(p.maxValue),m=d_(t.getMeta().fieldValue);if(m<g||m>v)return;var y=null!==(r=null===(n=t.getStyle().miniChart.interval)||void 0===n?void 0:n.height)&&void 0!==r?r:t.getStyle().cell.miniBarChartHeight,b=null!==(o=null===(i=t.getStyle().miniChart.interval)||void 0===i?void 0:i.fill)&&void 0!==o?o:t.getStyle().cell.miniBarChartFillColor,_=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),t=d_(t),e=d_(e);var n=t>=0,r=e>=0&&t<=0,i=r?0:n?t:e,o=e-t;return function(e){var a=n?0:1;return{zeroScale:r?zc(Math.abs(0-t)/o,0,1):a,scale:zc((e-i)/o,-1,1)}}}(g,v)(m);return g_(t,{x:u+h*_.zeroScale,y:l+c/2-y/2,width:h*_.scale,height:y,fill:null!==(a=d.fill)&&void 0!==a?a:b})}}},P_=function(t,e){var n;if(!bp(t)){var r=e.getStyle(ny.DATA_CELL),i=r.miniChart.bullet,o=e.getMeta(),a=o.x,s=o.y,u=o.height,l=o.width,c=o.spreadsheet,h=i.progressBar,f=i.comparativeMeasure,d=i.rangeColors,p=i.backgroundColor,g=t.measure,v=t.target,m=Math.max(Number(g),0),y=Math.max(Number(v),0),b=j_(g,2),_=(null==h?void 0:h.widthPercent)>1?(null==h?void 0:h.widthPercent)/100:null==h?void 0:h.widthPercent,x=r.cell.padding,w=l-x.left-x.right,O=_*w,S=w-O,C=a+l-x.right-O,E=s+u/2-h.height/2;g_(e,{x:C,y:E,width:O,height:h.height,fill:p,textBaseline:r.text.textBaseline});var T=ml(e.getMeta(),"spreadsheet.options.bullet.getRangeColor"),A=Math.max(Math.min(O*m,O),0);g_(e,{x:C,y:E+(h.height-h.innerHeight)/2,width:A,height:h.innerHeight,fill:null!==(n=null==T?void 0:T(m,y))&&void 0!==n?n:I_(m,y,d)});var M=C+O*y;__(e,{x1:M,y1:s+(u-f.height)/2,x2:M,y2:s+(u-f.height)/2+f.height},{stroke:(null==f?void 0:f.fill)||(null==f?void 0:f.color),lineWidth:f.width,opacity:null==f?void 0:f.opacity}),b_(e,[],C-x.right,s+u/2,$_({measureTextWidth:c.measureTextWidth,text:b,maxWidth:S-x.right,fontParam:r.text}),r.text)}},L_=function(t,e){switch(null==e?void 0:e.type){case Yi.Line:A_(e,t);break;case Yi.Bar:M_(e,t);break;default:P_(e,t)}},R_=function(t,e){var n=t.x,r=t.y,i=t.width,o=t.height,a=i-(null==e?void 0:e.left)-(null==e?void 0:e.right),s=o-(null==e?void 0:e.top)-(null==e?void 0:e.bottom);return{x:n+(null==e?void 0:e.left),y:r+(null==e?void 0:e.top),width:a,height:s}},D_=function(t){return Xp({size:0,position:"right",margin:{left:0,right:0}},t)},N_=function(t,e){return t-(e=D_(e)).size-e.margin.right-e.margin.left},B_=function(t,e,n){var r=t.y,i=t.height;void 0===n&&(n=0);var o=0;switch(e){case"top":o=r;break;case"middle":o=r+i/2-n/2;break;default:o=r+i-n}return o},F_=function(t,e,n,r,i){void 0===n&&(n=0),void 0===i&&(i=1);var o,a,s=t.x,u=t.width,l=e.textAlign,c=e.textBaseline,h=D_(r),f=h.size,d=h.margin,p=h.position,g=i*(f+d.left)+(i?d.right:0);switch(l){case"left":o=s+("left"===p?g:0),a=s+("left"===p?d.left:n+d.left);break;case"center":var v=s+u/2-(g-("left"===p?d.left:d.right)+n)/2;o=v+n/2+("left"===p?g-d.left:0),a=v+("left"===p?0:n+d.left);break;default:o=s+u-("right"===p?g:0),a=s+u-("right"===p?g-d.left:n+g-d.left)}return{text:{x:o,y:B_(t,c,0)},icon:{x:a,y:B_(t,c,f)}}},z_=function(t,e){return F_(t,e).text},V_=function(t,e,n){var r,i,o=e.start+e.width,a=t.start+t.width;if(e.start<=t.start&&o>=a)r=t.start+t.width/2,i=t.width;else if(e.start<=t.start){r=(s=e.width-(t.start-e.start))<n?o-n/2:o-s/2,i=s}else if(o>=a){var s;r=(s=e.width-(o-a))<n?e.start+n/2:e.start+s/2,i=s}else r=e.start+e.width/2,i=e.width;return{start:r,width:i}},U_=function(t,e,n){var r,i,o,a,s,u=e.x,l=e.y,c=e.width,h=e.height,f=n.horizontalBorderWidth,d=n.horizontalBorderColorOpacity,p=n.horizontalBorderColor,g=n.verticalBorderWidth,v=n.verticalBorderColor,m=n.verticalBorderColorOpacity;if(t===Qb.TOP||t===Qb.BOTTOM){var y=l;i=y=t===Qb.TOP?l+g/2:l+h-g/2,a=y,r=u,o=u+c,s={lineWidth:f,stroke:p,strokeOpacity:d}}if(t===Qb.LEFT||t===Qb.RIGHT){var b=u;r=b=t===Qb.LEFT?u+f/2:u+c-f/2,o=b,i=l,a=l+h,s={lineWidth:g,stroke:v,strokeOpacity:m}}return{position:{x1:r,x2:o,y1:i,y2:a},style:s}},G_=function(t,e,n){void 0===n&&(n={left:0,right:0});var r=Ly({},t);return"left"===e?(r.start+=n.left,r.width-=n.left):"right"===e&&(r.width-=n.right),r},H_=function(t,e,n,r){var i=e+n,o=t.start;if("center"===r)return o-n/2;var a=t.width-i>0?t.width/2:i/2;return"left"===r?o-a:o+a-n},W_=ll((function(t,e){if(void 0===t&&(t=""),!e)return 0;var n,r=(n=document.getElementById("s2-offscreen-canvas"),n||((n=document.createElement("canvas")).id="s2-offscreen-canvas",n.style.display="none",document.body.appendChild(n),n)).getContext("2d"),i=e,o=i.fontSize,a=i.fontFamily,s=i.fontWeight,u=i.fontStyle,l=i.fontVariant;return r.font=[u,l,s,"".concat(o,"px"),a].join(" ").trim(),r.measureText("".concat(t)).width}),(function(t,e){return By([t],Ny(Wd(e)),!1).join("")})),Y_=function(t,e,n,r){var i,o=t(ta,r);i=Gd(e)?e:dl(e);var a,s,u=n,l=[];if(t(e,r)<=n)return e;for(var c=!0;c;){if((s=t(a=i.substr(0,16),r))+o>u&&s>u){c=!1;break}if(l.push(a),u-=s,!(i=i.substr(16)))return l.join("")}for(var h=!0;h;){if((s=t(a=i.substr(0,1),r))+o>u){h=!1;break}if(l.push(a),u-=s,!(i=i.substr(1)))return l.join("")}return"".concat(l.join(""),"...")},X_=function(t,e){var n,r;void 0===e&&(e={});var i=W_("a",e),o=W_("蚂",e),a=0;if(!t)return a;try{for(var s=Dy(t),u=s.next();!u.done;u=s.next()){var l=u.value.charCodeAt(0);a+=l>=0&&l<=255?i:o}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a},$_=function(t){var e=t.measureTextWidth,n=t.text,r=t.maxWidth,i=t.fontParam,o=t.priorityParam,a=t.placeholder,s={},u=null!=a?a:Bo,l=Ep(n)||""===n?u:"".concat(n),c=o;if(i&&Sa(i)?c=i:s=i||{},!c||!c.length)return Y_(e,l,r,s);var h=[],f=[l];c.forEach((function(t){f.forEach((function(e,n){var r=-1,i=e.match(new RegExp(t));if(i){var o=i[0];r=i.index,h.push(o);var a=r+o.length,s=[e.slice(0,r),e.slice(a)].filter((function(t){return!!t}));f.splice.apply(f,By([n,1],Ny(s),!1))}}))})),f=h.concat(f);var d=l,p=e(ta,s),g=r;return f.forEach((function(t){if(g<=0){var n=d.indexOf(t),r=d.slice(n-3,n);if(r&&r!==ta){var i=e(t,s);d=d.replace(t,i>p?ta:t)}else d=d.replace(t,"");g-=p}else{i=e(t,s);if(g<i&&i>p){var o=Y_(e,t,g,s);d=d.replace(t,o),g=0}else g-=i}})),d},q_=function(t){return Op(t)?t>=0:!!t&&!lm(t).startsWith("-")},Z_=function(t,e,n,r){void 0===r&&(r="left");var i=e.right,o=e.left,a=n||0;return"left"===r?t+i/2+a:"right"===r?t-i/2-a:t+o/2+a},K_=function(t){var e=t.rowIndex,n=t.colIndex,r=t.meta,i=t.data,o=t.textStyle,a=t.textCondition,s=o.fill;return(null==a?void 0:a.mapping)&&(s=null==a?void 0:a.mapping(i,{rowIndex:e,colIndex:n,meta:r}).fill),Ly(Ly({},o),{fill:s})},Q_=function(t,e){return Ga(e)?e(t):e},J_=function(t,e,n){for(var r,i,o,a=t.x,s=t.y,u=t.width,l=t.height/Ev(e),c=[],h=0,f=Sd(n,(function(t){return t>1?t/100:t})),d=0;d<Ev(e);d++){i=s+l*d;var p=[];r=a,h=0;for(var g=0;g<Ev(e[d]);g++)o=bp(f)?u/Ev(e[0]):u*f[g],r=Z_(a,{left:0,right:0},h,"left"),h+=o,p.push({x:r,y:i,width:o,height:l});c.push(p)}return c},tx=function(t,e,n){var r,i,o,a;void 0===n&&(n=!0);var s=t.getContentArea(),u=s.x,l=s.y,c=s.height,h=s.width,f=e||t.getMeta().fieldValue,d=f.values,p=t.getMeta().spreadsheet,g=p.options,v=p.measureTextWidth,m=g.style.cellCfg.valuesCfg,y=null===(i=null===(r=null==g?void 0:g.conditions)||void 0===r?void 0:r.text)||void 0===i?void 0:i[0],b=null===(a=null===(o=null==g?void 0:g.conditions)||void 0===o?void 0:o.icon)||void 0===a?void 0:a[0];if(Sa(d)){var _=null==m?void 0:m.widthPercent,x=0;if(null==f?void 0:f.label){var w=t.getStyle(ny.DATA_CELL).bolderText;b_(t,[],u,l+(x=c/(d.length+1))/2,$_({measureTextWidth:v,text:f.label,maxWidth:h,fontParam:w}),w)}for(var O,S=function(t){var e,n,r=t.getMeta().isTotals,i=null===(n=(e=t).isMeasureField)||void 0===n?void 0:n.call(e),o=t.getStyle(i?ny.COL_CELL:ny.DATA_CELL);return{cellStyle:o,textStyle:i?o.measureText:r?o.bolderText:o.text}}(t),C=S.cellStyle,E=S.textStyle,T=null==C?void 0:C.icon,A=b&&b.mapping&&{size:null==T?void 0:T.size,margin:null==T?void 0:T.margin,position:null==b?void 0:b.position},M=J_({x:u,y:l+x,height:c-x,width:h},d,_),I=0;I<d.length;I++)for(var j=Ah(d[I]),k=0;k<j.length;k++){O=j[k];var P=n?K_({rowIndex:I,colIndex:k,meta:null==t?void 0:t.getMeta(),data:O,textStyle:E,textCondition:y}):E,L=(null==t?void 0:t.getMeta().spreadsheet.options).placeholder,R=Q_(null==t?void 0:t.getMeta(),L),D=N_(M[I][k].width,T),N=$_({measureTextWidth:v,text:O,maxWidth:D,fontParam:P,placeholder:R}),B=v(N,E),F=F_(M[I][k],E,B,A,b?1:0);if(b_(t,[],F.text.x,F.text.y,N,P),b&&n){var z=null==b?void 0:b.mapping(O,{rowIndex:I,colIndex:k,meta:null==t?void 0:t.getMeta()});z&&S_(t,Ly(Ly({},F.icon),{name:z.icon,width:null==T?void 0:T.size,height:null==T?void 0:T.size,fill:z.fill}))}}}else L_(t,d)},ex=function(t,e){return void 0===e&&(e=1),t.width*e},nx=function(t){try{return JSON.parse(t)}catch(t){return null}};function rx(t,e){return!(!t||!e)&&String(t).toLowerCase()===String(e).toLowerCase()}var ix,ox=function(t,e){var n=t.getColumnNodes().find((function(t){return t.id===e}));return t.isPivotMode()?null==n?void 0:n.value:null==n?void 0:n.field},ax=function(t,e){var n=e.getColumnNodes().find((function(e){return e.colIndex===t})),r=ox(e,n.id);return e.options.interaction.copyWithFormat?e.dataSet.getFieldFormatter(r):function(t){return t}},sx=function(t,e,n){var r;if(n.isPivotMode()){var i=Ny(function(t,e){var n=t.rowIndex,r=t.colIndex;return[e.getRowNodes().find((function(t){return t.rowIndex===n})),e.getColumnNodes().find((function(t){return t.colIndex===r}))]}(t,n),2),o=i[0],a=i[1];return n.dataSet.getCellData({query:Ly(Ly({},o.query),a.query),rowNode:o,isTotals:o.isTotals||o.isTotalMeasure||a.isTotals||a.isTotalMeasure})[Xi]}var s=function(t,e){var n=e.getColumnNodes().find((function(e){return e.colIndex===t}));return ox(e,n.id)}(t.colIndex,n);return null===(r=e[t.rowIndex])||void 0===r?void 0:r[s]},ux=function(t,e,n){return ax(t.colIndex,n)(sx(t,e,n))},lx=function(t){return/\n/.test(t)?'"'+t.replace(/\r\n?/g,"\n").replace(/"/g,"'")+'"':t},cx=function(t,e){var n=t.split(No);return e?n.slice(n.length-e):(n.shift(),n)};function hx(t,e){return void 0===e&&(e=ix.PLAIN),Array.isArray(e)?[].concat(t).filter((function(t){return e.includes(t.type)})).map((function(t){return t.content})):[].concat(t).filter((function(t){return(null==t?void 0:t.type)===e})).map((function(t){return t.content}))[0]||""}!function(t){t.PLAIN="text/plain",t.HTML="text/html"}(ix||(ix={}));var fx=function(t){return{type:ix.PLAIN,content:Sd(t,(function(t){return t.join("\t")})).join("\r\n")}},dx=function(t){return{type:ix.HTML,content:'<meta charset="utf-8"><table><tbody>'.concat((e=t,n="tr",e.map((function(t){return"<".concat(n,">").concat(function(t,e){return t.map((function(t){return"<".concat(e,">").concat(id(t),"</").concat(e,">")})).join("")}(t,"td"),"</").concat(n,">")})).join("")),"</tbody></table>")};var e,n},px=function(t,e,n){var r,i,o,a,s,u,l=null!==(i=null===(r=t[0])||void 0===r?void 0:r.length)&&void 0!==i?i:0,c=null!==(o=null==e?void 0:e.length)&&void 0!==o?o:0,h=null!==(s=null===(a=n[0])||void 0===a?void 0:a.length)&&void 0!==s?s:0,f=null!==(u=n.length)&&void 0!==u?u:0,d=l+h,p=c+f,g=Array.from(Array(p),(function(){return new Array(d)}));return g=Sd(g,(function(r,i){return Sd(r,(function(r,o){return o>=0&&o<l&&i>=0&&i<c?"":o>=l&&o<=d&&i>=0&&i<c?e[i][o-l]:o>=0&&o<l&&i>=c&&i<p?t[i-c][o]:o>=l&&o<=d&&i>=c&&i<p?n[i-c][o-l]:void 0}))})),[fx(g),dx(g)]},gx=function(t,e,n){var r=e.map((function(e){return e.map((function(e){return lx(ux(e,t,n))}))}));return[fx(r),dx(r)]},vx=function(t){if(!(null==t?void 0:t.length))return[];var e=Ny([{row:1/0,col:1/0},{row:0,col:0}],2),n=e[0],r=e[1];t.forEach((function(t){var e=t.rowIndex,i=t.colIndex;n.col=Math.min(i,n.col),n.row=Math.min(e,n.row),r.col=Math.max(i,r.col),r.row=Math.max(e,r.row)}));var i=Ny([r.row-n.row+1,r.col-n.col+1],2),o=i[0],a=i[1],s=new Array(o).fill("").map((function(){return new Array(a).fill("")}));return t.forEach((function(t){var e=t.rowIndex,r=t.colIndex,i=Ny([e-n.row,r-n.col],2),o=i[0],a=i[1];s[o][a]=t})),s},mx=function(t,e,n){return Sd(t,(function(t){return e.map((function(e){var r=n.dataSet.getCellData({query:Ly(Ly({},t.query),e.query),rowNode:t,isTotals:t.isTotals||t.isTotalMeasure||e.isTotals||e.isTotalMeasure});return ax(e.colIndex,n)(r[Xi])}))}))};function yx(t,e,n){return t.options.interaction.copyWithHeader?function(t,e,n){var r=Sd(e,(function(t){return cx(t.id)})),i=Lm.apply(void 0,By([],Ny(Sd(n,(function(t){return cx(t.id)}))),!1)),o=mx(e,n,t);return px(r,i,o)}(t,e,n):function(t,e,n){var r=mx(e,n,t);return[fx(r),dx(r)]}(t,e,n)}var bx=function(t,e,n){return e.isPivotMode()?function(t,e){var n=t.getRowNodes().filter((function(t){return t.isLeaf})),r=t.getColumnNodes().filter((function(t){return t.isLeaf}));return yx(t,n,e.length?e.reduce((function(t,e){return t.push.apply(t,By([],Ny(r.filter((function(t){return t.id.startsWith(e.id)}))),!1)),t}),[]):r)}(e,n):function(t,e){var n=t.dataSet.getDisplayDataSet(),r=e.length?e.map((function(e){return{field:ox(t,e.id),formatter:ax(e.colIndex,t)}})):t.dataCfg.fields.columns.map((function(e){return t.getColumnNodes().find((function(t){return t.field===e}))})).map((function(e){return{field:ox(t,e.id),formatter:ax(e.colIndex,t)}})),i=n.map((function(t){return r.map((function(e){var n=e.field,r=e.formatter;return lx(r(t[n]))}))}));return[fx(i),dx(i)]}(e,n)},_x=function(t,e,n){return e.isPivotMode()?function(t,e){var n=t.getRowNodes().filter((function(t){return t.isLeaf})),r=t.getColumnNodes().filter((function(t){return t.isLeaf}));return yx(t,e.reduce((function(t,e){return t.push.apply(t,By([],Ny(n.filter((function(t){return t.id.startsWith(e.id)}))),!1)),t}),[]),r)}(e,n):function(t,e){var n=t.dataSet.getDisplayDataSet().filter((function(t,n){return e.map((function(t){return t.rowIndex})).includes(n)})).map((function(e){return Object.keys(e).map((function(e){return t.getColumnNodes().find((function(t){return t.field===e}))})).filter(Boolean).map((function(n){return lx(ax(n.colIndex,t)(e[n.field]))}))}));return[fx(n),dx(n)]}(e,n)};function xx(t,e,n){void 0===n&&(n=ix.PLAIN);t.dataSet.getDisplayDataSet();var r=t.interaction.getState().cells||[];if(e===zy.ALL)return hx(bx(0,t,[]),n);if(e===zy.COL){var i=r.reduce((function(t,e){return t.find((function(t){return t===e.colIndex}))||t.push(e.colIndex),t}),[]),o=t.facet.layoutResult.colLeafNodes.filter((function(t){return i.includes(t.colIndex)})).map((function(t){return{id:t.id,colIndex:t.colIndex,rowIndex:t.rowIndex,type:ny.COL_CELL}}));return hx(bx(0,t,o),n)}if(e===zy.ROW){var a=r.reduce((function(t,e){return t.find((function(t){return t===e.rowIndex}))||t.push(e.rowIndex),t}),[]).map((function(e){return{id:e+"-"+t.facet.layoutResult.colLeafNodes[0].id,colIndex:0,rowIndex:e,type:ny.ROW_CELL}}));return hx(_x(0,t,a),n)}}function wx(t){var e,n=function(t){var e=new Set;return Wf(t,(function(t){var n=t.getMeta().level;e.has(n)||e.add(n)})),e}(t),r=null!==(e=Gp(Array.from(n)))&&void 0!==e?e:0,i=function(t,e){return fd(t,(function(t){var n=t.getMeta(),r=n.level===e,i=n.isTotals&&bp(n.children);return r||i}))}(t,r),o=t[0].cellType===ny.COL_CELL,a=function(t,e,n){return Sd(t,(function(t){var r=t.getMeta(),i=r.id,o=r.label,a=r.isTotals,s=r.level,u=i;return a&&s!==e&&(u=i+No+pv(o,e-s)),cx(u,n.size)}))}(i,r,n);return o&&(a=Lm.apply(void 0,By([],Ny(a),!1))),[fx(a),dx(a)]}function Ox(t,e){var n,r,i=e.filter((function(t){return t.type===ny.COL_CELL})),o=e.filter((function(t){return t.type===ny.ROW_CELL})),a=t.dataSet.getDisplayDataSet();if(!t.isPivotMode()||!t.isHierarchyTreeType()){if(t.interaction.getCurrentStateName()===ey.ALL_SELECTED)r=bx(0,t,[]);else if(i.length)r=bx(0,t,i);else if(o.length)r=_x(0,t,o);else{if(!e.length)return;var s=vx(e);r=(null===(n=t.options.interaction)||void 0===n?void 0:n.copyWithHeader)?function(t,e,n){var r=Lm.apply(void 0,By([],Ny(Sd(t[0],(function(t){var e,n,r=null!==(n=null===(e=t.id.split(Bo))||void 0===e?void 0:e[1])&&void 0!==n?n:"";return cx(r)}))),!1)),i=Sd(t,(function(t){var e,n,r=null!==(n=null===(e=t[0].id.split(Bo))||void 0===e?void 0:e[0])&&void 0!==n?n:"";return cx(r)})),o=Sd(t,(function(t){return Sd(t,(function(t){return ux(t,e,n)}))}));return px(i,r,o)}(s,a,t):gx(a,s,t)}return r}}var Sx=function(t){var e,n,r=t.interaction,i=r.getState().cells||[],o=null!==(e=r.getInteractedCells())&&void 0!==e?e:[];return(n=!bp(o)&&ld(o,(function(t){return t.cellType===ny.ROW_CELL||t.cellType===ny.COL_CELL}))?wx(o):Ox(t,i))&&Ax(n),hx(n,ix.PLAIN)};function Cx(t){return t?'"'.concat("string"==typeof t?t.replace(/"/g,'""'):t,'"'):t}var Ex=function(t){return new Promise((function(e,n){var r;r=Array.isArray(t)?ml(t.filter((function(t){return t.type===ix.PLAIN})),"[0].content",""):t.content||"";var i=document.createElement("textarea");i.value=r,document.body.appendChild(i),i.focus({preventScroll:!0}),i.select();var o=document.execCommand("copy");document.body.removeChild(i),o?e():n()}))},Tx=function(t){return navigator.clipboard.write([new ClipboardItem([].concat(t).reduce((function(t,e){var n,r=e.type,i=e.content;return Ly(Ly({},t),((n={})[r]=new Blob([i],{type:r}),n))}),{}))]).catch((function(){return Ex(t)}))},Ax=function(t,e){var n;return void 0===e&&(e=!1),n="string"==typeof t?{content:t,type:ix.PLAIN}:t,navigator.clipboard&&window.ClipboardItem&&!e?Tx(n):Ex(n)},Mx=function(t,e){try{var n=document.createElement("a");n.download="".concat(e,".csv");var r=new Blob(["\ufeff".concat(t)],{type:"text/csv;charset=utf-8"});n.href=URL.createObjectURL(r),n.click(),URL.revokeObjectURL(n.href)}catch(t){console.error(t)}},Ix=function(t,e,n){if(!t)return"";var r=t.fieldValue,i=t.valueField,o=t.data;return La(r)?function(t){var e=(null==t?void 0:t.label)?[null==t?void 0:t.label]:[],n=null==t?void 0:t.values;return bp(n)||Wf(n,(function(t){e.push(t.join(" "))})),e.join("$")}(r):n?e.dataSet.getFieldFormatter(i)(r,o):"".concat(r)},jx=function(t,e,n,r){var i=[];if(t){var o=t.fieldValue,a=t.valueField,s=t.data;if(La(o))return i=function(t,e){var n,r,i,o;return e?null===(o=null==t?void 0:t.values)||void 0===o?void 0:o[0]:null!==(r=null===(n=null==t?void 0:t.originalValues)||void 0===n?void 0:n[0])&&void 0!==r?r:null===(i=null==t?void 0:t.values)||void 0===i?void 0:i[0]}(o,r);if(Ep(o)&&n.length>1)return i.push.apply(i,By([],Ny(n),!1)),i;if(r){var u=e.dataSet.getFieldFormatter(a);i.push(u(o,s))}else i.push(o)}else i.push.apply(i,By([],Ny(n),!1));return i.join(" ")},kx=function(t){var e=nx(t);return Sa(e)?e:t},Px=function(t,e,n){var r=kx(e.label),i=Sa(r)?r.length:1,o=n.options.placeholder,a=Ga(o)?o(t):o;return Array(i).fill(a)},Lx=function(t){var e,n,r,i,o=null===(r=null===(n=null===(e=t.spreadsheet)||void 0===e?void 0:e.dataSet)||void 0===n?void 0:n.getFieldFormatter)||void 0===r?void 0:r.call(n,t.field);return null!==(i=null==o?void 0:o(t.label))&&void 0!==i?i:t.label},Rx=function(t){var e=[],n=function(t){if(t.id!==Do){var r=Lx(t);return e.unshift(r),(null==t?void 0:t.parent)?n(t.parent):void 0}};return n(t),e},Dx=function(t,e,n){var r,i,o,a,s,u=function(t){var e,n;return"object"==typeof t?{isFormatHeader:null!==(e=t.isFormatHeader)&&void 0!==e&&e,isFormatData:null!==(n=t.isFormatData)&&void 0!==n&&n}:{isFormatHeader:null!=t&&t,isFormatData:null!=t&&t}}(n),l=u.isFormatHeader,c=u.isFormatData,h=null===(s=null==t?void 0:t.facet)||void 0===s?void 0:s.layoutResult,f=h.rowsHierarchy,d=h.rowLeafNodes,p=h.colLeafNodes,g=h.getCellMeta,v=f.maxLevel,m=t.dataCfg.fields.valueInCols,y=f.sampleNodesForAllLevels.map((function(e){return t.dataSet.getFieldName(e.key)})),b=d.reduce((function(t,e){var n,r=(null!==(n=e.level)&&void 0!==n?n:0)+1;return r>t?r:t}),0),_=[],x=0;if(t.isPivotMode()){var w=d.filter((function(t){return 0!==t.height}));try{for(var O=Dy(w),S=O.next();!S.done;S=O.next()){var C=S.value,E=[];if(l)E=Rx(C);else C.label=lm(null==C?void 0:C.label),E=C.id.replace(Yo,"").split(No);var T=v+1-E.length;T>0&&E.push.apply(E,By([],Ny(new Array(T)),!1));var A=t.dataSet.getFieldName(Ff(E));E[E.length-1]=A;try{for(var M=(o=void 0,Dy(p)),I=M.next();!I.done;I=M.next()){var j=I.value;if(m){var k=g(C.rowIndex,j.colIndex);E.push(Ix(k,t,c))}else{k=g(C.rowIndex,j.colIndex);var P=Px(k,j,t),L=jx(k,t,P,c);Sa(L)?E=E.concat.apply(E,By([],Ny(L),!1)):E.push(L)}}}catch(t){o={error:t}}finally{try{I&&!I.done&&(a=M.return)&&a.call(M)}finally{if(o)throw o.error}}x=Gp([E.length,x]);var R=E.map((function(t){return Cx(t)})).join(e);_.push(R)}}catch(t){r={error:t}}finally{try{S&&!S.done&&(i=O.return)&&i.call(O)}finally{if(r)throw r.error}}}else _=function(t,e,n){var r,i,o,a=t.dataSet.getDisplayDataSet(),s=(null===(o=t.dataCfg)||void 0===o?void 0:o.fields).columns,u=Vb(s||[]),l=[],c=function(r,i){var o=[];o=n?u.map((function(e){return Cx(t.dataSet.getFieldFormatter(e)(i[e],i))})):u.map((function(t){return Cx(i[t])})),t.options.showSeriesNumber&&(o=[Cx(r+1)].concat(o)),l.push(o.join(e))};try{for(var h=Dy(a.entries()),f=h.next();!f.done;f=h.next()){var d=Ny(f.value,2);c(d[0],d[1])}}catch(t){r={error:t}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}return l}(t,e,c);var D=[];if(bp(p)&&!t.isPivotMode())D=[y];else{var N=0,B=Ah(p).map((function(e){for(var n=e,r=[];void 0!==n.level;){var i=kx(n.label);Sa(i)?N=Gp([N,Ev(i)]):i=l&&t.isPivotMode()?Lx(n):i,r.push(i),n=n.parent}return r}));N>1&&(B=function(t){return t.map((function(t){return t.map((function(e){return Sa(e)?e:By([e],Ny(new Array(t[0].length-1)),!1)}))}))}(B));for(var F=Gp(B.map((function(t){return t.length}))),z=[],V=function(e){var n=B.map((function(t){return t.length<F?By(By([],Ny(new Array(F-t.length)),!1),Ny(t),!1):t})).map((function(t){return t[e]})).map((function(e){return t.dataSet.getFieldName(e)}));z.push(Ol(n))},U=F-1;U>=0;U-=1)V(U);D=z.map((function(e,n){var r,i;if(t.isPivotMode()){var o=t.facet.cornerHeader.cfg,a=o.columns,s=o.rows,u=o.data.filter((function(t){return t.cornerType===t_.Col}));if(n<z.length-1)return By(By(By([],Ny(Array(v).fill("")),!1),[(null===(i=u.find((function(t){return t.field===a[n]})))||void 0===i?void 0:i.label)||""],!1),Ny(e),!1);var l=s.slice(0,b);return l.length<b&&l.unshift.apply(l,By([],Ny(Array(b-l.length).fill("")),!1)),By(By([],Ny(l.map((function(e){return t.dataSet.getFieldName(e)||""}))),!1),Ny(e),!1)}return n<z.length?(r=Array(b).fill("")).concat.apply(r,By([],Ny(e),!1)):y.concat.apply(y,By([],Ny(e),!1))}))}return[D.map((function(t){var n=x-t.length;return n>0&&t.unshift.apply(t,By([],Ny(new Array(n)),!1)),t.map((function(t){return Cx(t)})).join(e)})).join("\r\n")].concat(_).join("\r\n")},Nx=function(t){var e,n,r,i,o,a,s=null===(r=null===(n=null===(e=t.target)||void 0===e?void 0:e.attrs)||void 0===n?void 0:n.appendInfo)||void 0===r?void 0:r.cellData,u=null===(o=(i=t.target).get)||void 0===o?void 0:o.call(i,"parent");return{target:u,viewMeta:(null===(a=null==u?void 0:u.getMeta)||void 0===a?void 0:a.call(u))||s,event:t}},Bx=function(t,e,n){var r,i=t.split(No);if(n)r=[t];else{r=[Ab(i[0],i[1])];for(var o=2;o<i.length;o+=1)r.push(Ab(r[o-2],i[o]))}return fd(e,(function(t){var e;return r.includes(null===(e=t.getMeta())||void 0===e?void 0:e.id)}))},Fx=function(t,e,n){t&&Wf(Bx(t,e),(function(t){t.updateByState(n)}))},zx=function(t){function e(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=t.call(this,{})||this;return o.actualTextWidth=0,o.stateShapes=new Map,o.meta=e,o.spreadsheet=n,o.theme=n.theme,o.conditions=o.spreadsheet.options.conditions,o.handleRestOptions.apply(o,By([],Ny(r),!1)),o.initCell(),o}return Py(e,t),e.prototype.getMeta=function(){return this.meta},e.prototype.setMeta=function(t){this.meta=t},e.prototype.getIconStyle=function(){return this.theme[this.cellType].icon},e.prototype.getTextAndIconPosition=function(t){void 0===t&&(t=1);var e=this.getTextStyle(),n=this.getIconStyle();return F_(this.getContentArea(),e,this.actualTextWidth,n,t)},e.prototype.getActualText=function(){return this.actualText},e.prototype.getFieldValue=function(){return this.getFormattedFieldValue().formattedValue},e.prototype.handleRestOptions=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},e.prototype.getStyle=function(t){return ml(this.theme,t||this.cellType)},e.prototype.getResizeAreaStyle=function(){return this.getStyle("resizeArea")},e.prototype.shouldDrawResizeAreaByType=function(t,e){var n=this.spreadsheet.options.interaction.resize;return gp(n)?n:Ga(n.visible)?n.visible(e):n[t]},e.prototype.getCellArea=function(){var t=this.meta;return{x:t.x,y:t.y,height:t.height,width:t.width}},e.prototype.getContentArea=function(){var t=this.getStyle()||this.theme.dataCell,e=(null==t?void 0:t.cell).padding;return R_(this.getCellArea(),e)},e.prototype.getIconPosition=function(t){return void 0===t&&(t=1),this.getTextAndIconPosition(t).icon},e.prototype.drawTextShape=function(){var t=this.getFormattedFieldValue().formattedValue,e=this.getMaxTextWidth(),n=this.getTextStyle(),r=this.spreadsheet,i=r.options.placeholder,o=r.measureTextWidth,a=Q_(this,i),s=$_({measureTextWidth:o,text:t,maxWidth:e,fontParam:n,placeholder:a});this.actualText=s,this.actualTextWidth=o(s,n);var u=this.getTextPosition();this.textShape=b_(this,[this.textShape],u.x,u.y,s,n)},e.prototype.drawLinkFieldShape=function(t,e){if(t){if(!pb(this.spreadsheet.options.style.device)){var n=this.getTextStyle(),r=this.getTextPosition().x;"center"===n.textAlign?r-=this.actualTextWidth/2:"right"===n.textAlign&&(r-=this.actualTextWidth);var i=this.textShape.getBBox().maxY;this.linkFieldShape=__(this,{x1:r,y1:i+1,x2:r+this.actualTextWidth,y2:i+1},{stroke:e,lineWidth:1})}this.textShape.attr({fill:e,cursor:"pointer",appendInfo:{isLinkFieldText:!0,cellData:this.meta}})}},e.prototype.updateByState=function(t,e){var n=this;this.spreadsheet.interaction.setInteractedCells(e),Wf(ml(this.theme,"".concat(this.cellType,".cell.interactionState.").concat(t)),(function(t,e){Vu(ug(gy,(function(t){return Xd(t,e)}))).forEach((function(r){var i=n.stateShapes.has(r),o=i?n.stateShapes.get(r):n[r];(i&&!o.get("visible")&&o.set("visible",!0),"interactiveBorderShape"===r&&"borderWidth"===e)&&(Op(t)&&Wf(n.getInteractiveBorderShapeStyle(t),(function(t,e){x_(o,e,t)})));x_(o,py[e],t)}))}))},e.prototype.getInteractiveBorderShapeStyle=function(t){var e=this.getCellArea(),n=e.x,r=e.y,i=e.height,o=e.width,a=this.theme.dataCell.cell,s=a.horizontalBorderWidth,u=a.verticalBorderWidth;return{x:n+u/2+t/2,y:r+s/2+t/2,width:o-u-t,height:i-s-t}},e.prototype.hideInteractionShape=function(){this.stateShapes.forEach((function(t){x_(t,py.backgroundOpacity,0),x_(t,py.backgroundColor,"transparent"),x_(t,py.borderOpacity,0),x_(t,py.borderWidth,1),x_(t,py.borderColor,"transparent")}))},e.prototype.clearUnselectedState=function(){x_(this.backgroundShape,py.backgroundOpacity,1),x_(this.textShape,py.textOpacity,1),x_(this.linkFieldShape,py.opacity,1)},e.prototype.getTextShape=function(){return this.textShape},Object.defineProperty(e.prototype,"cellConditions",{get:function(){return this.conditions},enumerable:!1,configurable:!0}),e.prototype.drawConditionIconShapes=function(){var t,e=this.findFieldCondition(null===(t=this.conditions)||void 0===t?void 0:t.icon);if(e&&e.mapping){var n=this.mappingValue(e),r=this.getIconPosition(),i=this.theme.dataCell.icon.size;bp(null==n?void 0:n.icon)||(this.conditionIconShape=S_(this,Ly(Ly({},r),{name:n.icon,width:i,height:i,fill:n.fill})))}},e.prototype.getTextConditionFill=function(t){var e,n,r=t.fill,i=this.findFieldCondition(null===(e=this.conditions)||void 0===e?void 0:e.text);return(null==i?void 0:i.mapping)&&(r=(null===(n=this.mappingValue(i))||void 0===n?void 0:n.fill)||t.fill),r},e}(gi),Vx=function(t,e){return e?e(t[$i],t[Xi]):t[Xi]},Ux=function(t,e){var n=e.getMeta().id;return t.some((function(t){return _p(t.id,n)}))},Gx=function(t,e){return"".concat(t,"-").concat(e)},Hx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),Object.defineProperty(e.prototype,"cellType",{get:function(){return ny.DATA_CELL},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueRangeByField",{get:function(){return this.spreadsheet.dataSet.getValueRangeByField(this.meta.valueField)},enumerable:!1,configurable:!0}),e.prototype.handleByStateName=function(t,e){Ux(t,this)&&this.updateByState(e)},e.prototype.handleSearchResult=function(t){Ux(t,this)&&(vd(t,(function(t){return null==t?void 0:t.isTarget})).id===this.getMeta().id?this.updateByState(ey.HIGHLIGHT):this.updateByState(ey.SEARCH_RESULT))},e.prototype.handleSelect=function(t){var e;switch(null===(e=null==t?void 0:t[0])||void 0===e?void 0:e.type){case ny.COL_CELL:this.changeRowColSelectState("colIndex");break;case ny.ROW_CELL:this.changeRowColSelectState("rowIndex");break;case ny.DATA_CELL:Ux(t,this)?this.updateByState(ey.SELECTED):this.spreadsheet.options.interaction.selectedCellsSpotlight&&this.updateByState(ey.UNSELECTED)}},e.prototype.handleHover=function(t){var e=wd(t);if(e.type===ny.DATA_CELL){if(this.spreadsheet.options.interaction.hoverHighlight){var n=this.meta.colIndex,r=this.meta.rowIndex;n===(null==e?void 0:e.colIndex)||r===(null==e?void 0:e.rowIndex)?this.updateByState(ey.HOVER):this.hideInteractionShape()}_p(e.id,this.getMeta().id)&&this.updateByState(ey.HOVER_FOCUS)}else this.hideInteractionShape()},e.prototype.update=function(){var t=this.spreadsheet.interaction.getCurrentStateName(),e=this.spreadsheet.interaction.getCells();if(t!==ey.ALL_SELECTED){if(!bp(e)&&t)switch(t){case ey.SELECTED:this.handleSelect(e);break;case ey.HOVER_FOCUS:case ey.HOVER:this.handleHover(e);break;case ey.SEARCH_RESULT:this.handleSearchResult(e);break;default:this.handleByStateName(e,t)}}else this.updateByState(ey.SELECTED)},e.prototype.setMeta=function(e){t.prototype.setMeta.call(this,e),this.initCell()},e.prototype.initCell=function(){this.drawBackgroundShape(),this.drawInteractiveBgShape(),this.drawInteractiveBorderShape(),this.shouldHideRowSubtotalData()||(this.drawConditionIntervalShape(),this.drawTextShape(),this.drawConditionIconShapes()),this.meta.isFrozenCorner&&this.drawBorderShape(),this.update()},e.prototype.getDefaultTextFill=function(t){var e=t.fill,n=this.getBackgroundColor(),r=n.backgroundColor,i=n.intelligentReverseTextColor;return Vy(r).getBrightness()<=ia&&t.fill===oa&&i&&(e=aa),e},e.prototype.getTextStyle=function(){var t=this.meta.isTotals?this.theme.dataCell.bolderText:this.theme.dataCell.text,e=this.getTextConditionFill(Ly(Ly({},t),{fill:this.getDefaultTextFill(t)}));return Ly(Ly({},t),{fill:e})},e.prototype.getIconStyle=function(){var t,e=this.theme.dataCell.icon,n=e.size,r=e.margin,i=this.findFieldCondition(null===(t=this.conditions)||void 0===t?void 0:t.icon);return i&&i.mapping&&{size:n,margin:r,position:E_(i)}},e.prototype.drawConditionIntervalShape=function(){this.conditionIntervalShape=k_(this)},e.prototype.shouldHideRowSubtotalData=function(){var t,e=(null!==(t=this.spreadsheet.options.totals)&&void 0!==t?t:{}).row,n=void 0===e?{}:e,r=this.meta.rowIndex,i=this.spreadsheet.facet.layoutResult.rowLeafNodes[r],o=!(null==i?void 0:i.isGrandTotals)&&(null==i?void 0:i.isTotals);return"tree"===this.spreadsheet.options.hierarchyType&&!n.showSubTotals&&o},e.prototype.getFormattedFieldValue=function(){if(this.shouldHideRowSubtotalData())return{value:null,formattedValue:Bo};var t=this.meta,e=t.rowId,n=t.valueField,r=t.fieldValue,i=t.data,o=this.spreadsheet.dataSet.getFieldMeta(e)?e:n;return{value:r,formattedValue:this.spreadsheet.dataSet.getFieldFormatter(o)(r,i,this.meta)}},e.prototype.getMaxTextWidth=function(){var t=this.getContentArea().width;return N_(t,this.getIconStyle())},e.prototype.getTextPosition=function(){return this.getTextAndIconPosition().text},e.prototype.getBackgroundColor=function(){var t,e=this.getStyle().cell,n=e.crossBackgroundColor,r=e.backgroundColorOpacity,i=this.getStyle().cell.backgroundColor;if(n&&this.meta.rowIndex%2==0&&(i=n),this.shouldHideRowSubtotalData())return{backgroundColor:i,backgroundColorOpacity:r};var o=this.findFieldCondition(null===(t=this.conditions)||void 0===t?void 0:t.background),a=!1;if(o&&o.mapping){var s=this.mappingValue(o);s&&(i=s.fill,a=s.intelligentReverseTextColor)}return{backgroundColor:i,backgroundColorOpacity:r,intelligentReverseTextColor:a}},e.prototype.drawBackgroundShape=function(){var t=this.getBackgroundColor(),e=t.backgroundColor,n=t.backgroundColorOpacity;this.backgroundShape=g_(this,Ly(Ly({},this.getCellArea()),{fill:e,fillOpacity:n}))},e.prototype.drawInteractiveBorderShape=function(){var t=this.getCellArea(),e=t.x,n=t.y,r=t.height,i=t.width;this.stateShapes.set("interactiveBorderShape",g_(this,{x:e+1,y:n+1,width:i-2,height:r-2},{visible:!1}))},e.prototype.drawInteractiveBgShape=function(){this.stateShapes.set("interactiveBgShape",g_(this,Ly({},this.getCellArea()),{visible:!1}))},e.prototype.changeRowColSelectState=function(t){var e=this.spreadsheet.interaction,n=ml(this.meta,t),r=e.getState(),i=r.nodes,o=void 0===i?[]:i,a=r.cells,s=void 0===a?[]:a,u=!1;this.spreadsheet.isTableMode()&&o.length?u=o[0].hierarchy.getLeaves().some((function(t,e){return!!o.some((function(e){return e===t}))&&e===n})):u=By(By([],Ny(o),!1),Ny(s),!1).some((function(e){return ml(e,t)===n}));u?this.updateByState(ey.SELECTED):this.spreadsheet.options.interaction.selectedCellsSpotlight?this.updateByState(ey.UNSELECTED):this.hideInteractionShape()},e.prototype.drawBorderShape=function(){var t=this;[Qb.BOTTOM,Qb.RIGHT].forEach((function(e){var n=U_(e,t.getCellArea(),t.getStyle().cell),r=n.position,i=n.style;__(t,r,i)}))},e.prototype.findFieldCondition=function(t){var e=this;return xd(t,(function(t){return t.field instanceof RegExp?t.field.test(e.meta.valueField):t.field===e.meta.valueField}))},e.prototype.mappingValue=function(t){var e=this.meta.fieldValue;return null==t?void 0:t.mapping(e,this.meta.data)},e.prototype.updateByState=function(e){if(t.prototype.updateByState.call(this,e,this),e===ey.UNSELECTED){var n=ml(this.theme,"".concat(this.cellType,".cell.interactionState.").concat(e));n&&(x_(this.conditionIntervalShape,py.backgroundOpacity,n.backgroundOpacity),x_(this.conditionIconShape,py.opacity,n.opacity))}},e.prototype.clearUnselectedState=function(){t.prototype.clearUnselectedState.call(this),x_(this.conditionIntervalShape,py.backgroundOpacity,1),x_(this.conditionIconShape,py.opacity,1)},e.prototype.drawLeftBorder=function(){var t=U_(Qb.LEFT,this.getCellArea(),this.getStyle().cell);__(this,t.position,t.style)},e}(zx),Wx=function(t){function e(e,n,r){return t.call(this,r,e,n)||this}return Py(e,t),e.prototype.handleRestOptions=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Ny(t,1),r=n[0];this.cells=r},Object.defineProperty(e.prototype,"cellType",{get:function(){return ny.MERGED_CELL},enumerable:!1,configurable:!0}),e.prototype.update=function(){},e.prototype.initCell=function(){this.conditions=this.spreadsheet.options.conditions,this.drawBackgroundShape(),this.drawTextShape()},e.prototype.drawBackgroundShape=function(){var t=qx(this.cells),e=this.theme.dataCell.cell;this.backgroundShape=v_(this,{points:t,stroke:e.horizontalBorderColor,fill:e.backgroundColor,lineHeight:e.horizontalBorderWidth})},e.prototype.drawTextShape=function(){bp(this.meta)||(La(this.meta.fieldValue)?tx(this):t.prototype.drawTextShape.call(this))},e}(Hx),Yx=function(t,e,n,r){var i=[t,e],o=[t+n,e],a=[t+n,e+r],s=[t,e+r];return[[i,o],[o,a],[a,s],[s,i]]},Xx=function(t){var e=[];return Wf(t,(function(n){var r=[n[1],n[0]];JSON.stringify(t).includes(JSON.stringify(r))||e.push(n)})),e},$x=function(t,e){return vd(e,(function(e){return _p(e[0],t[1])}))},qx=function(t){var e=[];t.forEach((function(t){var n=t.getMeta(),r=n.x,i=n.y,o=n.width,a=n.height;e=e.concat(Yx(r,i,o,a))}));for(var n=[],r=(e=Xx(e))[0],i=r,o=[];!_p(r,o);)n=n.concat(i),i=o=$x(i,e);return n},Zx=function(t,e){var n,r=[];return Wf(t,(function(t){var i,o,a,s=null===(o=null===(i=null==e?void 0:e.facet)||void 0===i?void 0:i.layoutResult)||void 0===o?void 0:o.getCellMeta(t.rowIndex,t.colIndex);if(s){var u=null===(a=null==e?void 0:e.facet)||void 0===a?void 0:a.cfg.dataCell(s);n=(null==t?void 0:t.showText)?s:n,r.push(u)}})),{cells:r,cellsMeta:n}},Kx=function(t,e){var n,r=[],i=[];return Wf(t,(function(t){var o=vd(e,(function(e){var n,r=null===(n=null==e?void 0:e.getMeta)||void 0===n?void 0:n.call(e);if((null==r?void 0:r.colIndex)===(null==t?void 0:t.colIndex)&&(null==r?void 0:r.rowIndex)===(null==t?void 0:t.rowIndex))return e}));o?(r.push(o),n=(null==t?void 0:t.showText)?null==o?void 0:o.getMeta():n):i.push(t)})),{cells:r,invisibleCellInfo:i,cellsMeta:n}},Qx=function(t,e,n){var r;void 0===n&&(n=[]);var i=Kx(n,t),o=i.cellsMeta,a=i.cells,s=i.invisibleCellInfo,u=o,l=a;if((null==s?void 0:s.length)>0&&s.length<n.length){var c=Zx(s,e),h=c.cells,f=c.cellsMeta;u=u||f,l=a.concat(h)}return bp(a)||u||(u=null===(r=l[0])||void 0===r?void 0:r.getMeta()),{cells:l,viewMeta:u}},Jx=function(t){var e=t.interaction.getActiveCells(),n=[];return Wf(e,(function(t,e){var r=t.getMeta(),i=0===e?{showText:!0}:{};n.push(Ly(Ly({},i),{colIndex:null==r?void 0:r.colIndex,rowIndex:null==r?void 0:r.rowIndex}))})),n},tw=function(t,e,n){var r,i=e||Jx(t);if((null==i?void 0:i.length)<=1)console.error("then merged cells must be more than one");else{var o=t.interaction.getPanelGroupAllDataCells(),a=Qx(o,t,i),s=a.cells,u=a.viewMeta;if(!bp(s)){var l=(null===(r=t.options)||void 0===r?void 0:r.mergedCellsInfo)||[];l.push(i),t.setOptions({mergedCellsInfo:l});var c=n?void 0:u;t.panelScrollGroup.addMergeCell(new Wx(t,s,c))}}},ew=function(t,e){var n=Sd(t.cells,(function(t){return{colIndex:t.getMeta().colIndex,rowIndex:t.getMeta().rowIndex}}));return fd(e,(function(t){return!_p(t.map((function(t){return t.showText?{colIndex:t.colIndex,rowIndex:t.rowIndex}:t})),n)}))},nw=function(t,e){var n,r,i;if(e&&e.cellType===ny.MERGED_CELL){var o=ew(e,null===(n=t.options)||void 0===n?void 0:n.mergedCellsInfo);(null==o?void 0:o.length)!==(null===(i=null===(r=t.options)||void 0===r?void 0:r.mergedCellsInfo)||void 0===i?void 0:i.length)&&(t.setOptions({mergedCellsInfo:o}),e.remove(!0))}else console.error("unmergeCell: the ".concat(e," is not a MergedCell"))},rw=function(t,e){var n={};return By(By([],Ny(t),!1),Ny(e),!1).forEach((function(t){n[t.viewMeta.id]=t})),Object.values(n)},iw=function(t){return Sd(t,(function(t){return{cells:t.cells,viewMeta:t.getMeta()}}))},ow=function(t,e){return Vf(t,e,(function(t,e){return _p(t.viewMeta.id,e.viewMeta.id)}))},aw=function(t,e){var n,r=null===(n=t.options)||void 0===n?void 0:n.mergedCellsInfo;if(!bp(r)){var i=t.interaction.getPanelGroupAllDataCells();if(!bp(i)){var o=[];r.forEach((function(e){var n=Qx(i,t,e);n.cells.length>0&&o.push(n)}));var a=e.getChildren(),s=iw(a),u=ow(s,o),l=ow(o,s);Wf(u,(function(t){var e=vd(a,(function(e){return _p(e.getMeta().id,t.viewMeta.id)}));null==e||e.remove(!0)})),Wf(l,(function(n){var r=n.cells,i=n.viewMeta;e.add(new Wx(t,r,i))}))}}},sw=function(t){return t.includes(No)?"id":"field"},uw=function(t,e){void 0===e&&(e=[]);var n=t.getInitColumnLeafNodes();return Ih(e.map((function(t){var e=sw(t);return n.find((function(n){return n[e]===t}))})))},lw=function(t,e,n){void 0===e&&(e=[]),void 0===n&&(n=!1);var r=function(e,n){void 0===e&&(e=[]),void 0===n&&(n=[]),t.setOptions({interaction:{hiddenColumnFields:e}}),t.interaction.reset(),t.store.set("hiddenColumnsDetail",n),t.render(!1,{reBuildHiddenColumnsDetail:!1})};if(bp(e)&&n)r();else{var i=t.store.get("hiddenColumnsDetail",[]),o=t.options.interaction.hiddenColumnFields;if(!_p(e,o)||n){var a=_m(By(By([],Ny(e),!1),Ny(o),!1)),s=function(t,e){if(void 0===e&&(e=[]),bp(e))return{prev:null,next:null};var n=t.getInitColumnLeafNodes(),r=uw(t,e).map((function(t){return null==t?void 0:t.colIndex})),i=Math.max.apply(Math,By([],Ny(r),!1)),o=Math.min.apply(Math,By([],Ny(r),!1)),a=n.find((function(t){return t.colIndex===i+1}));return{prev:n.find((function(t){return t.colIndex===o-1}))||null,next:a||null}}(t,e),u={hideColumnNodes:uw(t,e),displaySiblingNode:s},l=By(By([],Ny(i),!1),[u],!1);t.emit(Hi.LAYOUT_COLS_HIDDEN,u,l),r(a,l)}}},cw=function(t,e,n){void 0===e&&(e=[]),void 0===n&&(n=!1),bp(e)&&n&&lw(t,e,!0);var r=function(t){var e=t.dataCfg.fields.columns,n=void 0===e?[]:e;return t.isTableMode()?n:t.getInitColumnLeafNodes().map((function(t){return t.id}))}(t);(function(t,e){if(bp(e))return[];var n=Number.NEGATIVE_INFINITY;return t.reduce((function(t,r,i){if(!e.includes(r))return t;if(i===n+1){Ff(t).push(r)}else{var o=[r];t.push(o)}return n=i,t}),[])})(Vb(r),e).forEach((function(e){lw(t,e,n)}))},hw=function(t,e){return function(t){var e=function(t){return(null==t?void 0:t.next)||(null==t?void 0:t.prev)}(t);return null==e?void 0:e.id}(t)===e},fw=function(t){var e=t.type,n=t.id,r=t.theme,i=t.width,o=t.height,a=Ry(t,["type","id","theme","width","height"]),s=e===_y.Horizontal?r.size:null,u=e===_y.Vertical?r.size:null;return{fill:r.background,fillOpacity:r.backgroundOpacity,cursor:"".concat(e,"-resize"),width:s,height:u,appendInfo:Ly(Ly({},a),{isResizeArea:!0,type:e,id:n,width:i,height:o,size:r.size})}},dw=function(t,e){if(t.foregroundGroup)return t.foregroundGroup.findById(e)||t.foregroundGroup.addGroup({id:e,zIndex:no})},pw=function(t,e,n){var r=null!=n?n:{},i=r.scrollX,o=void 0===i?0:i,a=r.scrollY,s=void 0===a?0:a,u=!(t.x-o>e.x+e.width||t.x+t.width-o<e.x),l=!(t.y-s>e.y+e.height||t.y+t.height-s<e.y);return u&&l},gw=function(t,e,n){var r=vd(t,(function(t){return function(t,e,n){if(!t)return!1;var r=t.iconNames,i=t.displayCondition,o=t.belongsCell;return!bp(r)&&(o===n&&(!i||r.some((function(t){return i(e,t)}))))}(t,e,n)}));if(r){var i=r.iconNames;return r.displayCondition&&(i=i.filter((function(t){return r.displayCondition(e,t)}))),Ly(Ly({},r),{iconNames:i})}},vw=function(t,e){var n=t.label;return _p(t.field,$i)?{formattedValue:e||n,value:n}:{formattedValue:n,value:n}};function mw(t,e){return e.map((function(e){var n=t[e];return void 0===n?n:"".concat(n)}))}function yw(t){return t.map((function(t){var e=null==t?void 0:t.split(No);return e[(null==e?void 0:e.length)-1]||t}))}function bw(t){var e=t.rowDimensionValues,n=t.colDimensionValues,r=t.careUndefined,i=t.isFirstCreate,o=t.onFirstCreate,a=t.rowFields,s=t.colFields,u=t.rowPivotMeta,l=t.colPivotMeta,c=function(t,e,n,u){void 0===e&&(e=!0);for(var l=e?n:u,c=e?a:s,h=[],f=0;f<t.length;f++){var d=t[f];if(!l.has(d))if(i)l.set(d,{level:l.size,children:new Map}),null==o||o({isRow:e,dimension:null==c?void 0:c[f],dimensionPath:t.slice(0,f+1)});else{var p=l.get(d);if(p&&h.push(p.level),!r)break}var g=l.get(d);Mp(d)&&r?h.push(d):h.push(null==g?void 0:g.level),g&&(i&&(g.childField=null==c?void 0:c[f+1]),l=null==g?void 0:g.children)}return h},h=c(e,!0,u,l),f=c(n,!1,u,l);return h.concat.apply(h,By([],Ny(f),!1))}function _w(t,e){return fv(t,(function(t,n){return t.push(e[n]),t}),[])}function xw(t){var e=t.rows,n=t.columns,r=t.originData,i=void 0===r?[]:r,o=t.indexesData,a=void 0===o?[]:o,s=t.totalData,u=void 0===s?[]:s,l=t.sortedDimensionValues,c=t.rowPivotMeta,h=t.colPivotMeta,f=[],d=new Set(Jd(e,n)),p=function(t){var e=t.isRow,n=t.dimension,r=t.dimensionPath;!e&&d.has(n)||(l[n]||(l[n]=[])).push(r.map((function(t){return"".concat(t)})).join(No))};return i.concat(u).forEach((function(t){var r=bw({rowDimensionValues:mw(t,e),colDimensionValues:mw(t,n),rowPivotMeta:c,colPivotMeta:h,isFirstCreate:!0,onFirstCreate:p,careUndefined:(null==u?void 0:u.length)>0,rowFields:e,colFields:n});f.push(r),Ov(a,r,t)})),{paths:f,indexesData:a,rowPivotMeta:c,colPivotMeta:h,sortedDimensionValues:l}}function ww(t,e){if(t&&e){var n=e.split(No),r=Ff(n),i=t;Wf(n,(function(t,e){var n=i.get(t);return n?(t===r?(n.children=new Map,n.childField=void 0):i=n.children,!0):0===e&&t===Do}))}}var Ow=function(t){return"ASC"===am(t)},Sw=function(t){return"DESC"===am(t)},Cw=function(t){return!Sp(Number(t))},Ew=function(t,e,n){var r=Ow(e)?1:-1,i=["-",void 0];return null==t?void 0:t.sort((function(t,e){var o=t,a=e;if(n){if(o=t[n],a=e[n],Cw(o)&&Cw(a))return(Number(o)-Number(a))*r;if(o&&(null==i?void 0:i.includes(null==o?void 0:o.toString())))return-r;if(Number(o)&&(null==i?void 0:i.includes(null==a?void 0:a.toString())))return r}return Ep(o)||Ep(a)?o?r:-r:o.toString().localeCompare(a.toString(),"zh")*r}))},Tw=function(t,e,n){return n?function(t,e){var n;return null===(n=null==t?void 0:t.filter((function(t){return!(null==e?void 0:e.includes(t))})))||void 0===n?void 0:n.concat(e)}(e,_m(t)):By([],Ny(new Set(By(By([],Ny(t),!1),Ny(e),!1))),!1)},Aw=function(t){var e=t.sortByValues,n=t.originValues,r=n.filter((function(t){return e.find((function(e){return Kf(t,e)}))})).map((function(t){var e=t.split(No);return e.length>1?[e.slice(0,e.length-1).join(No),e[e.length-1]]:e})),i=Array.from(new Set(r.map((function(t){return t[0]}))));r.sort((function(t,n){var r=t.slice(0,t.length-1),o=n.slice(0,n.length-1);return r.join()!==o.join()?i.indexOf(r[0])-i.indexOf(o[0]):e.indexOf(t[t.length-1])-e.indexOf(n[n.length-1])}));var o=r.map((function(t){return t.join(No)}));return i_(n,o)},Mw=function(t){var e=t.originValues,n=t.measureValues,r=t.sortParam,i=t.dataSet,o=r.sortFunc,a=r.sortFieldId,s=r.sortMethod,u=o(Ly({data:n},r));return(null==u?void 0:u.length)?(i.fields.rows.indexOf(a)>0||i.fields.columns.indexOf(a)>0)&&!Xd(u[0],No)?Aw({sortByValues:u,originValues:e}):Tw(u,e,Ow(s)):e},Iw=function(t){var e,n=t.sortParam,r=t.measureValues,i=t.originValues,o=t.dataSet,a=n.sortByMeasure,s=n.query,u=n.sortFieldId,l=n.sortMethod,c=o.fields,h=c.rows,f=c.columns,d=h.includes(u);if(a){var p=Ew(r,l,a===Zi?s[$i]:a);e=function(t,e,n){var r,i=e.slice(0,e.indexOf(t)+1);return null===(r=n.map((function(t){return i.map((function(e){return t[e]})).join("".concat(No))})))||void 0===r?void 0:r.filter((function(t){return t}))}(u,d?h:Vb(f),p)}else e=Sd(Ew(r,l));return Tw(e,i,Ow(l))},jw=function(t){var e=t.sortParam,n=t.originValues,r=t.measureValues,i=t.dataSet,o=e.sortFunc,a=e.sortMethod,s=e.sortBy,u=n,l={originValues:n,measureValues:r,sortParam:e,dataSet:i};return o?u=Mw(l):s?u=Aw({sortByValues:s,originValues:n}):(Ow(a)||Sw(a))&&(u=Iw(l)),u},kw=function(t){return t.filter((function(t){return t!==$i}))},Pw=function(t){var e=t.dataSet,n=t.sortParam,r=t.originValues,i=e.fields,o=n.sortByMeasure,a=n.query,s=n.sortFieldId,u=e.getMultiData(a),l=Vb(i.columns);if(o!==Zi){var c=jh(i.rows,l);return u.filter((function(t){var e=new Set(Vu(t));return c.every((function(t){return e.has(t)}))}))}var h=Xd(i.rows,s),f=kw(h?i.rows:l),d=kw(h?l:i.rows),p=f[f.indexOf(s)+1],g=Vu(a),v=d.filter((function(t){return!g.includes(t)})),m=u.filter((function(t){var e=new Set(Vu(t));return!!e.has(s)&&(!e.has(p)&&v.every((function(t){return!e.has(t)})))}));return bp(m)?Ih(Sd(r,(function(t){var n=function(t,e,n){var r,i={};if(Xd(t,No))for(var o=Rv(t,No),a=(null===(r=null==e?void 0:e.rows)||void 0===r?void 0:r.includes(n))?e.rows:Vb(e.columns),s=0;s<=qd(a,n);s++)i[a[s]]=o[s];else i[n]=t;return i}(t,i,s);return e.getTotalValue(Ly(Ly({},a),n))}))):m},Lw=function(t){var e,n=t.dataSet,r=t.sortParam,i=t.originValues;return e=t.isSortByMeasure?Pw(t):i,jw({sortParam:r,originValues:i,measureValues:e,dataSet:n})},Rw=function(t,e){if(null==t?void 0:t.sortMethod){if(Ow(null==t?void 0:t.sortMethod))return"groupAsc";if(Sw(null==t?void 0:t.sortMethod))return"groupDesc"}if(e)return"SortDown"},Dw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),e.prototype.handleRestOptions=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Ny(t,1),r=n[0];this.headerConfig=Ly({},r);var i=this.meta,o=i.value,a=i.query,s=this.spreadsheet.dataCfg.sortParams,u=this.isSortCell(),l=vd(By([],Ny(s),!1).reverse(),(function(t){return u&&(null==t?void 0:t.sortByMeasure)===o&&_p(ml(t,"query"),a)})),c=Rw(l,u);this.headerConfig.sortParam=Ly(Ly(Ly({},this.headerConfig.sortParam),l||{query:a}),{type:c})},e.prototype.initCell=function(){this.actionIcons=[],this.hasDefaultHiddenIcon=!1},e.prototype.getInteractiveBorderShapeStyle=function(t){var e=this.getCellArea(),n=e.x,r=e.y,i=e.height;return{x:n+t,y:r+t,width:e.width-2*t,height:i-2*t}},e.prototype.getFormattedFieldValue=function(){var t=this.meta.label,e=this.spreadsheet.dataSet.getFieldFormatter(this.meta.field),n=this.spreadsheet.isTableMode();return{formattedValue:e&&!n?e(t,void 0,this.meta):t,value:t}},e.prototype.getActionIconCfg=function(){return gw(this.spreadsheet.options.headerActionIcons,this.meta,this.cellType)},e.prototype.showSortIcon=function(){var t=this.spreadsheet,e=t.options,n=bp(t.dataCfg.fields.values);if(e.showDefaultHeaderActionIcon&&!n){var r=this.headerConfig.sortParam,i=this.meta.query;return i&&_p(null==r?void 0:r.query,i)&&(null==r?void 0:r.type)&&"none"!==(null==r?void 0:r.type)}return!1},e.prototype.getActionIconsCount=function(){if(this.showSortIcon())return 1;var t=this.getActionIconCfg();return t?t.iconNames.length:0},e.prototype.getActionIconsWidth=function(){var t=this.getStyle().icon;return(t.size+t.margin.left)*this.getActionIconsCount()},e.prototype.drawSortIcons=function(){var t=this;if(this.showSortIcon()){var e=this.getStyle(),n=e.icon,r=e.text,i=this.getTextConditionFill(r),o=this.headerConfig.sortParam,a=this.getIconPosition(),s=new n_(Ly(Ly({name:ml(o,"type","none")},a),{width:n.size,height:n.size,fill:i}));s.on("click",(function(e){t.spreadsheet.emit(Hi.GLOBAL_ACTION_ICON_CLICK,e),t.spreadsheet.handleGroupSort(e,t.meta)})),this.add(s),this.actionIcons.push(s)}},e.prototype.hasDefaultHideActionIcon=function(){return this.hasDefaultHiddenIcon},e.prototype.addActionIcon=function(t){var e=this,n=t.x,r=t.y,i=t.iconName,o=t.defaultHide,a=t.action,s=t.onClick,u=t.onHover,l=this.getStyle(),c=l.icon,h=l.text,f=this.getTextConditionFill(h),d=(null==c?void 0:c.fill)||f,p=new n_({name:i,x:n,y:r,width:null==c?void 0:c.size,height:null==c?void 0:c.size,fill:d});p.set("visible",!o),p.on("mouseover",(function(t){e.spreadsheet.emit(Hi.GLOBAL_ACTION_ICON_HOVER,t),null==u||u({hovering:!0,iconName:i,meta:e.meta,event:t})})),p.on("mouseleave",(function(t){e.spreadsheet.emit(Hi.GLOBAL_ACTION_ICON_HOVER_OFF,t),null==u||u({hovering:!1,iconName:i,meta:e.meta,event:t})})),p.on("click",(function(t){var n;e.spreadsheet.emit(Hi.GLOBAL_ACTION_ICON_CLICK,t),null===(n=s||a)||void 0===n||n({iconName:i,meta:e.meta,event:t})})),this.actionIcons.push(p),this.add(p)},e.prototype.drawActionIcons=function(){var t=this;if(this.showSortIcon())this.drawSortIcons();else{var e=this.getActionIconCfg();if(e){var n=e.iconNames,r=e.action,i=e.onClick,o=e.onHover,a=e.defaultHide,s=this.getIconPosition(n.length),u=this.getStyle().icon,l=u.size,c=u.margin;Wf(n,(function(e,n){var u=s.x+n*l+n*c.left,h=s.y,f="function"==typeof a?a(t.meta,e):a;f&&(t.hasDefaultHiddenIcon=!0),t.addActionIcon({iconName:e,x:u,y:h,defaultHide:f,action:r,onClick:i,onHover:o})}))}}},e.prototype.drawBackgroundShape=function(){var t=this.getBackgroundColor(),e=t.backgroundColor,n=t.backgroundColorOpacity;this.backgroundShape=g_(this,Ly(Ly({},this.getCellArea()),{fill:e,fillOpacity:n}))},e.prototype.isSortCell=function(){var t,e,n,r=null===(e=null===(t=this.meta.spreadsheet)||void 0===t?void 0:t.isValueInCols)||void 0===e?void 0:e.call(t),i=this.meta.level===(null===(n=this.meta.hierarchy)||void 0===n?void 0:n.maxLevel);return r?i&&this.cellType===ny.COL_CELL:i&&this.cellType===ny.ROW_CELL},e.prototype.handleByStateName=function(t,e){Ux(t,this)&&this.updateByState(e)},e.prototype.handleSearchResult=function(t){Ux(t,this)&&(vd(t,(function(t){return null==t?void 0:t.isTarget})).id===this.getMeta().id?this.updateByState(ey.HIGHLIGHT):this.updateByState(ey.SEARCH_RESULT))},e.prototype.handleHover=function(t){var e;Ux(t,this)&&(this.updateByState(ey.HOVER),this.hasDefaultHideActionIcon()&&this.toggleActionIcon(null===(e=null==t?void 0:t[0])||void 0===e?void 0:e.id))},e.prototype.handleSelect=function(t,e){Ux(t,this)&&this.updateByState(ey.SELECTED),Xd(Sd(e,"id"),this.meta.id)&&this.updateByState(ey.SELECTED)},e.prototype.getTextStyle=function(){var t,e=this.getStyle(),n=e.text,r=e.bolderText,i=e.measureText;t=this.isMeasureField()?i||n:this.isBolderText()?r:n;var o=this.getTextConditionFill(t);return Ly(Ly({},t),{fill:o})},e.prototype.getBackgroundColor=function(){var t,e,n=(null===(t=this.getStyle())||void 0===t?void 0:t.cell)||{},r=n.backgroundColor,i=n.backgroundColorOpacity,o=r,a=this.findFieldCondition(null===(e=this.conditions)||void 0===e?void 0:e.background);if(a&&a.mapping){var s=this.mappingValue(a);s&&(o=s.fill)}return{backgroundColor:o,backgroundColorOpacity:i}},e.prototype.toggleActionIcon=function(t){if(this.getMeta().id===t){var e=[];Wf(this.actionIcons,(function(t){t.get("visible")||(t.set("visible",!0),e.push(t))})),this.spreadsheet.store.set("visibleActionIcons",e)}},e.prototype.update=function(){var t=this.spreadsheet.interaction,e=null==t?void 0:t.getState(),n=null==t?void 0:t.getCells();if(wd(n))switch(null==e?void 0:e.stateName){case ey.SELECTED:this.handleSelect(n,null==e?void 0:e.nodes);break;case ey.HOVER_FOCUS:case ey.HOVER:this.handleHover(n);break;case ey.SEARCH_RESULT:this.handleSearchResult(n);break;default:this.handleByStateName(n,null==e?void 0:e.stateName)}},e.prototype.updateByState=function(e){t.prototype.updateByState.call(this,e,this)},e.prototype.hideInteractionShape=function(){t.prototype.hideInteractionShape.call(this)},e.prototype.isMeasureField=function(){return[$i,qi].includes(this.meta.field)},e.prototype.mappingValue=function(t){var e=this.getMeta().label;return null==t?void 0:t.mapping(e,this.meta)},e.prototype.findFieldCondition=function(t){var e=this;return xd(t,(function(t){return t.field instanceof RegExp?t.field.test(e.meta.field):t.field===e.meta.field}))},e}(zx),Nw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),Object.defineProperty(e.prototype,"cellType",{get:function(){return ny.COL_CELL},enumerable:!1,configurable:!0}),e.prototype.initCell=function(){t.prototype.initCell.call(this),this.drawBackgroundShape(),this.drawInteractiveBgShape(),this.drawInteractiveBorderShape(),this.drawTextShape(),this.drawConditionIconShapes(),this.drawActionIcons(),this.drawBorders(),this.drawResizeArea(),this.addExpandColumnIconShapes(),this.update()},e.prototype.drawInteractiveBgShape=function(){this.stateShapes.set("interactiveBgShape",g_(this,Ly({},this.getCellArea()),{visible:!1}))},e.prototype.drawInteractiveBorderShape=function(){this.stateShapes.set("interactiveBorderShape",g_(this,this.getInteractiveBorderShapeStyle(2),{visible:!1}))},e.prototype.getMaxTextWidth=function(){return this.getContentArea().width-this.getActionIconsWidth()},e.prototype.getIconPosition=function(){if(this.meta.isLeaf)return t.prototype.getIconPosition.call(this,this.getActionIconsCount());var e=this.getIconStyle(),n=e.margin.left,r=this.getTextStyle(),i=this.textPosition,o=i.x,a=i.y-e.size/2;return"left"===r.textAlign?{x:o+this.actualTextWidth+n,y:a}:"right"===r.textAlign?{x:o+n,y:a}:{x:o+this.actualTextWidth/2+n,y:a}},e.prototype.isBolderText=function(){var t=this.meta,e=t.isLeaf;return!(!t.isTotals&&e)},e.prototype.getTextPosition=function(){var t,e=this.meta.isLeaf,n=this.headerConfig,r=n.width,i=n.scrollContainsRowHeader,o=n.cornerWidth,a=n.scrollX,s=this.getTextStyle(),u=this.getContentArea(),l=this.getIconStyle();if(e)return F_(u,s,this.actualTextWidth,l,this.getActionIconsCount()).text;var c={start:a-(i?o:0),width:r+(i?o:0)};this.handleViewport(c);var h=this.getTextStyle().textAlign,f=G_(c,h,null===(t=this.getStyle().cell)||void 0===t?void 0:t.padding),d=this.getActionIconsWidth(),p=this.actualTextWidth+d,g=V_(f,{start:u.x,width:u.width},p),v=H_(g,this.actualTextWidth,d,h),m=u.y+u.height/2;return this.textPosition={x:v,y:m},this.textPosition},e.prototype.getActionIconsWidth=function(){var t=this.getStyle().icon,e=t.size,n=t.margin,r=this.getActionIconsCount();return(e+n.left)*r+(r>0?n.right:0)},e.prototype.getColResizeAreaKey=function(){return this.meta.key},e.prototype.getColResizeArea=function(){return dw(this.spreadsheet,Co)},e.prototype.getHorizontalResizeAreaName=function(){return"".concat(Po).concat(this.meta.key)},e.prototype.drawHorizontalResizeArea=function(){var t,e;if(!(0===(null===(e=null===(t=this.spreadsheet.options.style)||void 0===t?void 0:t.colCfg)||void 0===e?void 0:e.height))&&this.shouldDrawResizeAreaByType("colCellVertical",this)){var n=this.headerConfig,r=n.cornerWidth,i=n.viewportWidth,o=this.meta,a=o.y,s=o.height,u=this.getResizeAreaStyle(),l=this.getColResizeArea(),c=this.getHorizontalResizeAreaName();if(!l.find((function(t){return t.attrs.name===c}))){var h=r+i;l.addShape("rect",{attrs:Ly(Ly({},fw({theme:u,type:_y.Vertical,id:this.getColResizeAreaKey(),effect:xy.Field,offsetX:0,offsetY:a,width:h,height:s,meta:this.meta})),{name:c,x:0,y:a+s-u.size/2,width:h})})}}},e.prototype.shouldAddVerticalResizeArea=function(){var t=this.meta,e=t.x,n=t.y,r=t.width,i=t.height,o=this.headerConfig,a=o.scrollX,s=o.scrollY,u=o.scrollContainsRowHeader,l=o.cornerWidth,c=o.height,h=o.width,f=this.getResizeAreaStyle(),d={x:e+r-f.size/2,y:n,width:f.size,height:i};return pw(d,{x:u?-l:0,y:0,width:u?l+h:h,height:c},{scrollX:a,scrollY:s})},e.prototype.getVerticalResizeAreaOffset=function(){var t=this.meta,e=t.x,n=t.y,r=this.headerConfig,i=r.scrollX,o=r.position;return{x:o.x+e-i,y:o.y+n}},e.prototype.drawVerticalResizeArea=function(){if(this.meta.isLeaf&&this.shouldDrawResizeAreaByType("colCellHorizontal",this)){var t=this.meta,e=t.label,n=t.width,r=t.height,i=this.getResizeAreaStyle(),o=this.getColResizeArea();if(this.shouldAddVerticalResizeArea()){var a=this.getVerticalResizeAreaOffset(),s=a.x,u=a.y;o.addShape("rect",{attrs:Ly(Ly({},fw({theme:i,type:_y.Horizontal,effect:xy.Cell,id:e,offsetX:s,offsetY:u,width:n,height:r,meta:this.meta})),{x:s+n-i.size/2,y:u,height:r})})}}},e.prototype.drawResizeArea=function(){this.drawHorizontalResizeArea(),this.drawVerticalResizeArea()},e.prototype.drawHorizontalBorder=function(){var t=U_(Qb.TOP,this.meta,this.theme.colCell.cell);__(this,t.position,t.style)},e.prototype.drawVerticalBorder=function(t){var e=U_(t,this.meta,this.theme.colCell.cell);__(this,e.position,e.style)},e.prototype.drawBorders=function(){var t=this.spreadsheet,e=t.options,n=t.isTableMode;0===this.meta.colIndex&&n()&&!e.showSeriesNumber&&this.drawVerticalBorder(Qb.LEFT),this.drawHorizontalBorder(),this.drawVerticalBorder(Qb.RIGHT)},e.prototype.hasHiddenColumnCell=function(){var t=this,e=this.spreadsheet.options,n=e.interaction.hiddenColumnFields,r=void 0===n?[]:n,i=e.tooltip.operation,o=this.spreadsheet.store.get("hiddenColumnsDetail",[]);return!(bp(o)||bp(r)||!i.hiddenColumns)&&!!o.find((function(e){return hw(null==e?void 0:e.displaySiblingNode,t.meta.id)}))},e.prototype.getExpandIconTheme=function(){return this.getStyle().icon},e.prototype.addExpandColumnSplitLine=function(){var t=this.meta,e=t.x,n=t.y,r=t.width,i=t.height,o=this.theme.splitLine,a=o.horizontalBorderColor,s=o.horizontalBorderWidth,u=o.horizontalBorderColorOpacity,l=this.isLastColumn()?e+r-s:e;__(this,{x1:l,y1:n,x2:l,y2:n+i},{stroke:a,lineWidth:s,strokeOpacity:u})},e.prototype.addExpandColumnIconShapes=function(){this.hasHiddenColumnCell()&&(this.addExpandColumnSplitLine(),this.addExpandColumnIcon())},e.prototype.addExpandColumnIcon=function(){var t=this,e=this.getExpandColumnIconConfig();S_(this,Ly(Ly({},e),{name:"ExpandColIcon",cursor:"pointer"})).on("click",(function(){t.spreadsheet.emit(Hi.LAYOUT_COLS_EXPANDED,t.meta)}))},e.prototype.getExpandColumnIconConfig=function(){var t=this.getExpandIconTheme().size,e=this.getCellArea(),n=e.x,r=e.y,i=e.width,o=e.height,a=n-t;return{x:this.isLastColumn()?a+i:a,y:r+o/2-t/2,width:2*t,height:t}},e.prototype.isLastColumn=function(){return t=this.spreadsheet,e=this.meta.id,n=t.getColumnNodes(),r=t.getInitColumnLeafNodes(),i=sw(e),ml(Ff(n),i)===e&&ml(Ff(r),i)!==e;var t,e,n,r,i},e.prototype.handleViewport=function(t){return t},e}(Dw),Bw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.textShapes=[],e}return Py(e,t),e.prototype.isBolderText=function(){return this.meta.cornerType===t_.Col},Object.defineProperty(e.prototype,"cellType",{get:function(){return ny.CORNER_CELL},enumerable:!1,configurable:!0}),e.prototype.update=function(){},e.prototype.initCell=function(){t.prototype.initCell.call(this),this.textShapes=[],this.drawBackgroundShape(),this.drawTreeIcon(),this.drawCellText(),this.drawConditionIconShapes(),this.drawActionIcons(),this.drawBorderShape(),this.drawResizeArea()},e.prototype.drawCellText=function(){this.drawTextShape()},e.prototype.drawTextShape=function(){var t=this.getContentArea().x,e=this.getCellArea(),n=e.y,r=e.height,i=this.getTextStyle(),o=this.getCornerText(),a=this.getMaxTextWidth(),s=Q_(this.meta,this.spreadsheet.options.placeholder),u=this.spreadsheet.measureTextWidth,l=$_({measureTextWidth:u,text:o,maxWidth:a,fontParam:i,placeholder:s});this.actualText=l;var c=l.indexOf(ta),h=l,f="";if(-1!==c&&this.spreadsheet.isHierarchyTreeType()){var d=c+(gb()?1:0);h=o.substr(0,d),f=o.slice(d),f=$_({measureTextWidth:u,text:f,maxWidth:a,fontParam:i})}var p=z_({x:t+this.getTreeIconWidth(),y:n,width:a,height:r},i).x,g=n+(bp(f)?r/2:r/4);this.textShapes.push(b_(this,[this.textShapes[0]],p,g,h,i)),bp(f)||this.textShapes.push(b_(this,[this.textShapes[1]],p,n+.75*r,f,i)),this.actualTextWidth=Gp([u(h,i),u(f,i)])},e.prototype.drawTreeIcon=function(){var t=this;if(this.showTreeIcon()&&this.meta.cornerType!==t_.Col){var e=this.headerConfig.hierarchyCollapse,n=this.getStyle().icon.size,r=this.getTextStyle(),i=r.textBaseline,o=r.fill,a=this.getContentArea();this.treeIcon=C_(this,{x:a.x,y:B_(a,i,n),width:n,height:n},o,e,(function(){t.headerConfig.spreadsheet.store.set("scrollY",0),t.headerConfig.spreadsheet.emit(Hi.LAYOUT_TREE_ROWS_COLLAPSE_ALL,e)}))}},e.prototype.drawBorderShape=function(){var t=this;[Qb.TOP,Qb.LEFT].forEach((function(e){var n=U_(e,t.getCellArea(),t.getStyle().cell),r=n.position,i=n.style;__(t,r,i)}))},e.prototype.isLastRowCornerCell=function(){var t=this.meta,e=t.cornerType,n=t.field,r=this.headerConfig.rows;return e===t_.Row&&(this.spreadsheet.isHierarchyTreeType()||Ff(r)===n)},e.prototype.getResizeAreaEffect=function(){return this.meta.cornerType===t_.Series?xy.Series:this.isLastRowCornerCell()&&this.spreadsheet.isHierarchyTreeType()?xy.Tree:xy.Field},e.prototype.drawResizeArea=function(){if(this.shouldDrawResizeAreaByType("cornerCellHorizontal",this)){var t=this.getResizeAreaStyle(),e=dw(this.spreadsheet,So),n=this.headerConfig,r=n.position,i=n.scrollX,o=n.scrollY,a=n.width,s=n.height,u=this.meta,l=u.x,c=u.y,h=u.width,f=u.height,d=u.field,p=u.cornerType,g={x:l+h-t.size/2,y:c,width:t.size,height:f},v={x:0,y:0,width:a,height:s};if(p!==t_.Col&&pw(g,v,{scrollX:i,scrollY:o})){var m=r.x+l-i,y=r.y+(this.isLastRowCornerCell()?0:c);e.addShape("rect",{attrs:Ly(Ly({},fw({theme:t,id:d,type:_y.Horizontal,effect:this.getResizeAreaEffect(),offsetX:m,offsetY:y,width:h,height:f,meta:this.meta})),{x:m+h-t.size/2,y:y,height:this.isLastRowCornerCell()?s:f})})}}},e.prototype.showTreeIcon=function(){var t;return this.spreadsheet.isHierarchyTreeType()&&0===(null===(t=this.meta)||void 0===t?void 0:t.x)},e.prototype.getIconPosition=function(){var t,e,n=null===(e=null===(t=this.textShapes)||void 0===t?void 0:t[0])||void 0===e?void 0:e.cfg.attrs,r=this.getTextStyle(),i=r.textBaseline,o=r.textAlign,a=this.getStyle().icon,s=a.size,u=a.margin;return{x:(null==n?void 0:n.x)+rf([[Vp("center"),Ls(this.actualTextWidth/2)],[Vp("right"),Ls(0)],[Bv,Ls(this.actualTextWidth)]])(o)+u.left,y:B_(this.getContentArea(),i,s)}},e.prototype.getTreeIconWidth=function(){var t=this.getStyle().icon,e=t.size,n=t.margin;return this.showTreeIcon()?e+n.right:0},e.prototype.getTextStyle=function(){var t=this.getStyle(),e=t.text,n=t.bolderText,r=this.isBolderText()?e:n,i=this.getTextConditionFill(r);return Ly(Ly({},r),{fill:i})},e.prototype.getMaxTextWidth=function(){return this.getContentArea().width-this.getTreeIconWidth()-this.getActionIconsWidth()},e.prototype.getTextPosition=function(){return{x:0,y:0}},e.prototype.getFormattedFieldValue=function(){return vw(this.meta,this.spreadsheet.dataSet.getFieldName(this.meta.label))},e.prototype.getCornerText=function(){var t;return _p(this.meta.label,$i)?(null===(t=this.spreadsheet.options)||void 0===t?void 0:t.cornerText)||nb("指标"):this.getFormattedFieldValue().formattedValue},e}(Dw),Fw=function(){function t(t){this.EVENT="gesture",this.gm=t}return t.prototype.do=function(t){switch(t.type){case"touchstart":this.onTouchStart(t);break;case"touchmove":this.onTouchMove(t);break;case"touchend":this.onTouchEnd(t);break;case"touchcancel":this.onTouchCancel(t);break;default:return}},t.prototype.emit=function(t){this.gm.emit(this.EVENT,t)},t}(),zw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.EVENT="pan",e}return Py(e,t),e.prototype.onTouchCancel=function(t){},e.prototype.onTouchEnd=function(t){},e.prototype.onTouchMove=function(t){var e=t.x,n=t.y,r=e-this.preX,i=n-this.preY;this.preX=e,this.preY=n,this.emit({x:e,y:n,deltaX:r,deltaY:i,event:t})},e.prototype.onTouchStart=function(t){var e=t.x,n=t.y;this.preX=e,this.preY=n},e}(Fw),Vw="object"==typeof performance&&performance.now?performance:Date,Uw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.EVENT="press",e}return Py(e,t),e.prototype.onTouchCancel=function(t){this.clearTimeout()},e.prototype.onTouchEnd=function(t){this.clearTimeout()},e.prototype.onTouchMove=function(t){var e=t.x,n=t.y;(e-this.touchStartX>10||n-this.touchStartY>10)&&this.clearTimeout()},e.prototype.onTouchStart=function(t){var e=this;this.clearTimeout();var n=t.x,r=t.y;this.touchStartTime=Vw.now(),this.touchStartX=n,this.touchStartY=r,this.pressTimeout=window.setTimeout((function(){e.emit({x:n,y:r,event:t})}),300)},e.prototype.clearTimeout=function(){window.clearTimeout(this.pressTimeout)},e}(Fw),Gw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.EVENT="swipe",e.latestMoveTime=0,e.ms=0,e.speedX=0,e.speedY=0,e.preX=0,e.preY=0,e}return Py(e,t),e.prototype.onTouchCancel=function(t){},e.prototype.onTouchEnd=function(t){var e=this.speedX,n=this.speedY;if(Vw.now()-this.latestMoveTime<100){var r=t.x,i=t.y;this.emit({x:r,y:i,speedX:e,speedY:n,event:t})}},e.prototype.onTouchMove=function(t){var e=t.x,n=t.y,r=Vw.now(),i=e-this.preX,o=n-this.preY,a=r-this.ms;this.speedX=i/a,this.speedY=o/a,this.latestMoveTime=r},e.prototype.onTouchStart=function(t){var e=t.x,n=t.y;this.speedX=this.speedY=0,this.preX=e,this.preY=n,this.ms=Vw.now()},e}(Fw),Hw={Pan:zw,Press:Uw,Swipe:Gw,Tap:function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.EVENT="tap",e}return Py(e,t),e.prototype.onTouchCancel=function(t){},e.prototype.onTouchEnd=function(t){var e=t.x,n=t.y;e-this.touchStartX<2&&n-this.touchStartY<2&&Vw.now()-this.touchStartTime<300&&this.emit({x:e,y:n,event:t})},e.prototype.onTouchMove=function(t){},e.prototype.onTouchStart=function(t){var e=t.x,n=t.y;this.touchStartTime=Vw.now(),this.touchStartX=e,this.touchStartY=n},e}(Fw)},Ww=function(t){function e(e,n){void 0===n&&(n={});var r=t.call(this)||this;return r.onTouchStart=function(t){r.preventEvent(t),r.element.on("touchmove",r.onTouchMove),r.element.on("touchend",r.onTouchEnd),r.element.on("touchcancel",r.onTouchCancel),r.emit("touchdown",t),r.doGestures(t)},r.onTouchMove=function(t){r.preventEvent(t),r.emit("touchmove",t),r.doGestures(t)},r.onTouchEnd=function(t){r.preventEvent(t),r.emit("touchend",t),r.element.off("touchmove",r.onTouchMove),r.element.off("touchend",r.onTouchEnd),r.element.off("touchcancel",r.onTouchCancel),r.doGestures(t)},r.onTouchCancel=function(t){r.preventEvent(t),r.emit("touchcancel",t),r.element.off("touchmove",r.onTouchMove),r.element.off("touchend",r.onTouchEnd),r.element.off("touchcancel",r.onTouchCancel),r.doGestures(t)},r.element=e,r.options=n,r.initialGestures(),r.bindTouchStart(),r}return Py(e,t),e.prototype.destroy=function(){this.element.off("touchstart",this.onTouchStart),this.off()},e.prototype.initialGestures=function(){var t=this,e=this.options.gestures||["Pan","Press","Swipe","Tap"];this.gestures=e.map((function(e){return new(0,Hw[e])(t)}))},e.prototype.bindTouchStart=function(){this.element.on("touchstart",this.onTouchStart)},e.prototype.preventEvent=function(t){var e=t.type;(this.options.prevents||[]).includes(e)&&t.preventDefault()},e.prototype.doGestures=function(t){this.gestures.forEach((function(e){e.do(t)}))},e}(gt),Yw=sn,Xw=function(t){function e(e){var n=t.call(this)||this;return n.rafMs=0,n.onPan=function(t){n.raf&&cancelAnimationFrame(n.raf);var e=t.deltaX,r=t.deltaY,i=n.getWrapperEvent(t,e,r);n.emit("wheel",i)},n.onSwipe=function(t){var e=t.speedX,r=t.speedY;n.rafMs=Vw.now(),n.ms=n.rafMs,0===e&&0===r||n.rafInertia(t)},n.element=e,n.gm=new Ww(e,{gestures:["Pan","Swipe"]}),n.gm.on("swipe",n.onSwipe),n.gm.on("pan",n.onPan),n}return Py(e,t),e.prototype.destroy=function(){window.cancelAnimationFrame(this.raf),this.gm.destroy(),this.off()},e.prototype.rafInertia=function(t){var e=this,n=t.speedX,r=t.speedY;this.raf=window.requestAnimationFrame((function(){var i=Vw.now(),o=(i-e.ms)/800;if(o<1){o=Yw(1-o);var a=i-e.rafMs,s=n*o*a,u=r*o*a,l=e.getWrapperEvent(t,s,u);e.emit("wheel",l),e.rafMs=i,e.rafInertia(t)}}))},e.prototype.getWrapperEvent=function(t,e,n){return Ly(Ly({},t),{deltaX:-e,deltaY:-n})},e}(gt),$w=function(t,e,n,r,i){var o=n+r;return t+i>=o?t:o<t+(e+i)/2?n+r-i:n>t+(e-i)/2?t+e-n>i?n:t+e-i:t+(e-i)/2},qw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),Object.defineProperty(e.prototype,"cellType",{get:function(){return ny.ROW_CELL},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){var e;t.prototype.destroy.call(this),null===(e=this.gm)||void 0===e||e.destroy()},e.prototype.initCell=function(){t.prototype.initCell.call(this),this.drawBackgroundShape(),this.drawInteractiveBgShape(),this.drawInteractiveBorderShape(),this.drawTextShape(),this.drawConditionIconShapes(),this.drawTreeIcon(),this.drawTreeLeafNodeAlignDot(),this.drawRectBorder(),this.drawResizeAreaInLeaf(),this.drawActionIcons(),this.update()},e.prototype.drawInteractiveBorderShape=function(){this.stateShapes.set("interactiveBorderShape",g_(this,this.getInteractiveBorderShapeStyle(2),{visible:!1}))},e.prototype.drawInteractiveBgShape=function(){this.stateShapes.set("interactiveBgShape",g_(this,Ly({},this.getCellArea()),{visible:!1}))},e.prototype.showTreeIcon=function(){return this.spreadsheet.isHierarchyTreeType()&&!this.meta.isLeaf},e.prototype.showTreeLeafNodeAlignDot=function(){var t;return(null===(t=this.spreadsheet.options.style)||void 0===t?void 0:t.showTreeLeafNodeAlignDot)&&this.spreadsheet.isHierarchyTreeType()},e.prototype.getParentTreeIconCfg=function(){if(this.showTreeLeafNodeAlignDot()&&this.spreadsheet.isHierarchyTreeType()&&this.meta.isLeaf)return ml(this.meta,"parent.belongsCell.treeIcon.cfg")},e.prototype.drawTreeIcon=function(){var t=this;if(this.showTreeIcon()){var e=this.meta,n=e.isCollapsed,r=e.id,i=e.hierarchy,o=this.getContentArea().x,a=this.getTextStyle().fill,s=this.getStyle().icon.size,u=o+this.getContentIndent(),l=this.getIconYPosition();this.treeIcon=C_(this,{x:u,y:l,width:s,height:s},a,n,(function(){if(!pb()){if(!n){var e=t.spreadsheet.store.get("scrollY"),o=t.spreadsheet.facet.panelBBox.viewportHeight||0,a=(l=t.meta,c=0,null==(h=l.children)||h.forEach((function(t){c+=t.height||0})),c),s=i.height-a;if(e>0&&e+o>s){var u=s-o;t.spreadsheet.store.set("scrollY",u>0?u:0)}}var l,c,h;t.spreadsheet.emit(Hi.ROW_CELL_COLLAPSE_TREE_ROWS,{id:r,isCollapsed:!n,node:t.meta})}})),pb()&&(this.gm=new Ww(this,{gestures:["Tap"]}),this.gm.on("tap",(function(){t.spreadsheet.emit(Hi.ROW_CELL_COLLAPSE_TREE_ROWS,{id:r,isCollapsed:!n,node:t.meta})})))}},e.prototype.drawTreeLeafNodeAlignDot=function(){var t=this.getParentTreeIconCfg();if(t){var e=this.getStyle().icon,n=e.size,r=e.margin,i=t.x+n+r.right,o=this.getTextPosition().y,a=this.getTextStyle(),s=a.fill,u=a.fontSize,l=n/5;this.treeLeafNodeAlignDot=y_(this,{x:i+n/2,y:o+(u-l)/2,r:l,fill:s,fillOpacity:.3})}},e.prototype.isBolderText=function(){var t=this.meta,e=t.isLeaf,n=t.isTotals,r=t.level;return!e&&0===r||n},e.prototype.drawTextShape=function(){t.prototype.drawTextShape.call(this),this.drawLinkFieldShape()},e.prototype.drawLinkFieldShape=function(){var e=this.headerConfig.linkFields,n=void 0===e?[]:e,r=this.getTextStyle().linkTextFill;t.prototype.drawLinkFieldShape.call(this,n.includes(this.meta.key),r)},e.prototype.drawRectBorder=function(){var t=this,e=this.getCellArea().x,n=this.getContentIndent(),r=this.spreadsheet.isHierarchyTreeType()?e:e+n;[Qb.BOTTOM,Qb.LEFT].forEach((function(e){var n=U_(e,Ly(Ly({},t.getCellArea()),{x:r}),t.getStyle().cell),i=n.position,o=n.style;__(t,i,o)}))},e.prototype.drawResizeAreaInLeaf=function(){if(this.meta.isLeaf&&this.shouldDrawResizeAreaByType("rowCellVertical",this)){var t=this.getCellArea(),e=t.x,n=t.y,r=t.width,i=t.height,o=this.getResizeAreaStyle(),a=dw(this.spreadsheet,_o),s=this.headerConfig,u=s.position,l=s.seriesNumberWidth,c=s.width,h=s.viewportHeight,f=s.scrollX,d=s.scrollY,p={x:e,y:n+i-o.size/2,width:r,height:o.size};if(pw(p,{x:0,y:0,width:c,height:h},{scrollX:f,scrollY:d})){var g=u.x+e-f+l,v=u.y+n-d,m=this.spreadsheet.isFrozenRowHeader()?c-l-(e-f):r;a.addShape("rect",{attrs:Ly(Ly({},fw({id:this.meta.id,theme:o,type:_y.Vertical,effect:xy.Cell,offsetX:g,offsetY:v,width:r,height:i,meta:this.meta})),{x:g,y:v+i-o.size/2,width:m})})}}},e.prototype.getContentIndent=function(){if(!this.spreadsheet.isHierarchyTreeType())return 0;for(var t=this.getStyle(),e=t.icon,n=t.cell,r=e.size+e.margin.right,i=this.meta.parent,o=0;i;)0!==i.height&&(o+=r),i=i.parent;return this.showTreeLeafNodeAlignDot()&&(o+=this.isTreeLevel()?0:n.padding.right+e.margin.right),o},e.prototype.getTextIndent=function(){var t=this.getStyle().icon,e=t.size,n=t.margin;return this.getContentIndent()+(this.showTreeIcon()||this.isTreeLevel()&&this.showTreeLeafNodeAlignDot()?e+n.right:0)},e.prototype.isTreeLevel=function(){return vd(ml(this.meta,"parent.children"),(function(t){return!t.isLeaf}))},e.prototype.getIconPosition=function(){var t=this.textShape.cfg.attrs,e=t.x,n=t.y,r=t.textAlign,i=this.getStyle().icon.margin.left;return"left"===r?{x:e+this.actualTextWidth+i,y:n}:"right"===r?{x:e+i,y:n}:{x:e+this.actualTextWidth/2+i,y:n}},e.prototype.getMaxTextWidth=function(){return this.getContentArea().width-this.getTextIndent()-this.getActionIconsWidth()},e.prototype.getTextArea=function(){var t=this.getContentArea(),e=this.getTextIndent();return Ly(Ly({},t),{x:t.x+e,width:t.width-e})},e.prototype.getTextPosition=function(){var t=this.getTextArea(),e=this.headerConfig,n=e.scrollY,r=e.viewportHeight,i=this.getTextStyle().fontSize,o=$w(t.y,t.height,n,r,i);return{x:F_(t,this.getTextStyle(),0,this.getIconStyle(),this.getActionIconsCount()).text.x,y:o}},e.prototype.getIconYPosition=function(){var t=this.getTextPosition().y,e=this.getStyle().icon.size;return t+(this.getTextStyle().fontSize-e)/2},e}(Dw),Zw=function(t,e,n){var r,i,o=(null===(r=n.icon.margin)||void 0===r?void 0:r.left)||0,a=(null===(i=n.icon.margin)||void 0===i?void 0:i.right)||0,s=t.store.get("hiddenColumnsDetail",[]),u=!1,l=!1;s.forEach((function(t){var n,r,i,o;(null===(r=null===(n=null==t?void 0:t.displaySiblingNode)||void 0===n?void 0:n.prev)||void 0===r?void 0:r.field)===e&&(u=!0),(null===(o=null===(i=null==t?void 0:t.displaySiblingNode)||void 0===i?void 0:i.next)||void 0===o?void 0:o.field)===e&&(l=!0)}));var c=ml(n,"icon.size");return{left:l?c+a:0,right:u?c+o:0}},Kw=function(t,e,n){var r=ml(n,"cell.padding"),i=Zw(t,e.field,n);return r.left+r.right+function(t,e,n,r){var i,o,a=ml(r,"size"),s=ml(r,"margin"),u=0;return(u=t.options.showDefaultHeaderActionIcon?1:null!==(o=null===(i=gw(t.options.headerActionIcons,e,n))||void 0===i?void 0:i.iconNames.length)&&void 0!==o?o:0)*(a+s.left)+(u>0?s.right:0)}(t,e,ny.COL_CELL,ml(n,"icon"))+i.left+i.right},Qw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),e.prototype.handleRestOptions=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Ny(t,1),r=n[0];this.headerConfig=Ly({},r);var i=this.meta.field,o=this.spreadsheet.dataCfg.sortParams,a=vd(o,(function(t){return(null==t?void 0:t.sortFieldId)===i})),s=Rw(a,!0);this.headerConfig.sortParam=Ly(Ly(Ly({},this.headerConfig.sortParam),a||{}),{type:s})},e.prototype.isFrozenCell=function(){var t=this.spreadsheet.options,e=t.frozenColCount,n=t.frozenTrailingColCount,r=this.spreadsheet.facet.layoutResult.colNodes.filter((function(t){return zb(t)})),i=function(t){for(;!zb(t);)t=t.parent;return t}(this.meta).colIndex;return jb(i,e)||kb(i,n,r.length)},e.prototype.getFormattedFieldValue=function(){return vw(this.meta,this.spreadsheet.dataSet.getFieldName(this.meta.label))},e.prototype.shouldAddVerticalResizeArea=function(){return!!this.isFrozenCell()||t.prototype.shouldAddVerticalResizeArea.call(this)},e.prototype.getVerticalResizeAreaOffset=function(){var t=this.meta,e=t.x,n=t.y,r=this.headerConfig,i=r.scrollX,o=r.position;return this.isFrozenCell()?{x:e,y:n}:{x:o.x+e-i,y:o.y+n}},e.prototype.getColResizeArea=function(){return this.isFrozenCell()?dw(this.spreadsheet,Eo):t.prototype.getColResizeArea.call(this)},e.prototype.isSortCell=function(){return!0},e.prototype.showSortIcon=function(){return this.spreadsheet.options.showDefaultHeaderActionIcon},e.prototype.getTextStyle=function(){var t=this.getStyle();return null==t?void 0:t.bolderText},e.prototype.getContentArea=function(){var t,e=((null===(t=this.getStyle())||void 0===t?void 0:t.cell)||this.theme.dataCell.cell).padding,n=Ly({},e),r=Zw(this.spreadsheet,this.meta.field,this.getStyle());return r.left&&(n.left=(n.left||0)+r.left),r.right&&(n.right=(n.right||0)+r.right),R_(this.getCellArea(),n)},e.prototype.getHorizontalResizeAreaName=function(){return"".concat(Po).concat("table-col-cell")},e.prototype.drawBackgroundShape=function(){var t=this.getStyle().cell.backgroundColor;this.backgroundShape=g_(this,Ly(Ly({},this.getCellArea()),{fill:t}))},e.prototype.handleViewport=function(t){return this.isFrozenCell()&&(t.start=0),t},e}(Nw),Jw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),e.prototype.getStyle=function(t){return t?this.theme[t]:ml(this,"theme.cornerCell")},e.prototype.showSortIcon=function(){return!1},e.prototype.drawLeftBorder=function(){var t=U_(Qb.LEFT,this.getCellArea(),this.getStyle().cell);__(this,t.position,t.style)},e.prototype.drawBorders=function(){t.prototype.drawBorders.call(this),0===this.meta.colIndex&&this.drawLeftBorder()},e}(Qw),tO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),e.prototype.drawTextShape=function(){t.prototype.drawTextShape.call(this),this.drawLinkFieldShape()},e.prototype.drawLinkFieldShape=function(){var e=this.spreadsheet.options.interaction.linkFields,n=void 0===e?[]:e,r=this.theme.rowCell.text.linkTextFill;t.prototype.drawLinkFieldShape.call(this,n.includes(this.meta.valueField),r)},e.prototype.drawBorderShape=function(){t.prototype.drawBorderShape.call(this),0===this.meta.colIndex&&this.drawLeftBorder()},e.prototype.shouldDrawResizeArea=function(){return 0===this.meta.colIndex},e.prototype.drawResizeArea=function(){if(this.shouldDrawResizeArea()){var t=this.getCellArea(),e=t.x,n=t.y,r=t.width,i=t.height,o=this.meta.rowIndex,a=this.getResizeAreaStyle(),s=this.spreadsheet.options,u=s.frozenRowCount,l=s.frozenTrailingRowCount,c=this.spreadsheet.facet.getCellRange(),h=Pb(o,c.start,u),f=Lb(o,c.end,l),d=h||f?xo:_o,p=dw(this.spreadsheet,d),g=this.spreadsheet.facet.layoutResult.colsHierarchy.height,v=this.spreadsheet.facet.getScrollOffset().scrollY,m=this.spreadsheet.facet.getPaginationScrollY(),y=n+(f?0:g);f||(y-=h?m:v+m),p.addShape("rect",{attrs:Ly(Ly({},fw({id:String(this.meta.rowIndex),theme:a,type:_y.Vertical,effect:xy.Cell,offsetX:e,offsetY:y,width:r,height:i,meta:this.meta})),{x:e,y:y+i-a.size/2,width:r})})}},e}(Hx),eO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),Object.defineProperty(e.prototype,"cellType",{get:function(){return ny.ROW_CELL},enumerable:!1,configurable:!0}),e.prototype.getTextStyle=function(){return this.theme.rowCell.seriesText},e}(tO),nO=function(t){return[cy.META,cy.CONTROL].includes(t.key)},rO=function(t){var e=t.getMeta();return{id:e.id,colIndex:e.colIndex,rowIndex:e.rowIndex,type:t.cellType}},iO=function(t,e){var n=t.interaction;n.changeState({stateName:ey.SELECTED,cells:e}),t.emit(Hi.GLOBAL_SELECTED,n.getActiveCells())};function oO(t,e){var n=Math.min(t.rowIndex,e.rowIndex),r=Math.max(t.rowIndex,e.rowIndex);return{start:{rowIndex:n,colIndex:Math.min(t.colIndex,e.colIndex)},end:{rowIndex:r,colIndex:Math.max(t.colIndex,e.colIndex)}}}function aO(t,e){var n=e.interaction,r=e.facet,i=e.options;if(e.isTableMode()){if(!i.showSeriesNumber)return[];var o=r.layoutResult.colLeafNodes[0].id,a=Gx(String(t.rowIndex),o),s=[],u=n.getAllCells().find((function(t){return t.getMeta().id===a}));return u&&u instanceof eO&&s.push(u),s}return Bx(t.rowId,n.getAllRowHeaderCells(),e.isHierarchyTreeType())}function sO(t){var e=t.rowId,n=t.colId,r=t.spreadsheet,i=r.interaction;(Fx(n,i.getAllColHeaderCells(),ey.SELECTED),e)&&Wf(aO(t,r),(function(t){t.updateByState(ey.SELECTED)}))}var uO,lO,cO=function(t){var e=t.store.get("visibleActionIcons"),n=t.interaction.getInteractedCells(),r=t.interaction.getState().cells;if(bp(n)&&bp(r)&&bp(e))return!1;(Wf(e,(function(t){t.set("visible",!1)})),t.store.set("visibleActionIcons",[]),Wf(n,(function(t){t.hideInteractionShape()})),t.interaction.resetState(),t.options.interaction.selectedCellsSpotlight)&&Wf(t.interaction.getPanelGroupAllUnSelectedDataCells()||[],(function(t){t.clearUnselectedState()}));return!0},hO=function(t,e){var n=null==e?void 0:e.stateName;t.interaction.isEqualStateName(n)||(cO(t),t.hideTooltip(),t.store.set(vy,e))},fO=function(t,e,n){var r,i,o=n.facet,a=o.panelBBox.width,s=null==o?void 0:o.frozenGroupInfo,u=null!==(r=null==s?void 0:s.frozenCol.width)&&void 0!==r?r:0,l=null!==(i=null==s?void 0:s.frozenTrailingCol.width)&&void 0!==i?i:0,c=o.layoutResult.colLeafNodes[t];return e===yy.LEADING?c.x-u:c.x+c.width-(a-l)},dO=function(t,e,n){var r,i,o=n.facet,a=o.viewCellHeights.getCellOffsetY,s=a(t+1),u=o.panelBBox.height,l=null==o?void 0:o.frozenGroupInfo,c=null!==(r=null==l?void 0:l.frozenRow.height)&&void 0!==r?r:0,h=null!==(i=null==l?void 0:l.frozenTrailingRow.height)&&void 0!==i?i:0;return e===yy.LEADING?a(t)-c:s-(u-h)},pO=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=function(t,e){if(Sa(t)&&Sa(e))return e},r=By(By([],Ny(t),!1),[n],!1);return jf.apply(void 0,By([{}],Ny(r),!1))},gO=function(t){var e=["rows","columns","values"].reduce((function(e,n){var r=t[n],i=_m(r);return _p(i,r)||console.warn("fields.".concat(n,":[").concat(r,"] should be unique")),e[n]=i,e}),{});return Ly(Ly({},t),e)},vO=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=pO.apply(void 0,By([sa],Ny(t),!1));return n.fields=gO(n.fields),bp(n.fields.customTreeItems)&&!bp(n.fields.values)||(n.fields.valueInCols=!1),n},mO=function(t){return pO(Iy,t)},yO=9e15,bO="0123456789abcdef",_O="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",xO="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",wO={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-yO,maxE:yO,crypto:!1},OO=!0,SO="[DecimalError] Invalid argument: ",CO="[object Decimal]",EO=Math.floor,TO=Math.pow,AO=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,MO=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,IO=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,jO=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,kO=1e7,PO=_O.length-1,LO=xO.length-1,RO={toStringTag:CO};function DO(t){var e,n,r,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)(n=7-(r=t[e]+"").length)&&(o+=XO(n)),o+=r;(n=7-(r=(a=t[e])+"").length)&&(o+=XO(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function NO(t,e,n){if(t!==~~t||t<e||t>n)throw Error(SO+t)}function BO(t,e,n,r){var i,o,a,s;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=7,i=0):(i=Math.ceil((e+1)/7),e%=7),o=TO(10,7-e),s=t[i]%o|0,null==r?e<3?(0==e?s=s/100|0:1==e&&(s=s/10|0),a=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):a=(n<4&&s+1==o||n>3&&s+1==o/2)&&(t[i+1]/o/100|0)==TO(10,e-2)-1||(s==o/2||0==s)&&0==(t[i+1]/o/100|0):e<4?(0==e?s=s/1e3|0:1==e?s=s/100|0:2==e&&(s=s/10|0),a=(r||n<4)&&9999==s||!r&&n>3&&4999==s):a=((r||n<4)&&s+1==o||!r&&n>3&&s+1==o/2)&&(t[i+1]/o/1e3|0)==TO(10,e-3)-1,a}function FO(t,e,n){for(var r,i,o=[0],a=0,s=t.length;a<s;){for(i=o.length;i--;)o[i]*=e;for(o[0]+=bO.indexOf(t.charAt(a++)),r=0;r<o.length;r++)o[r]>n-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}RO.absoluteValue=RO.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),VO(t)},RO.ceil=function(){return VO(new this.constructor(this),this.e+1,2)},RO.clampedTo=RO.clamp=function(t,e){var n=this,r=n.constructor;if(t=new r(t),e=new r(e),!t.s||!e.s)return new r(NaN);if(t.gt(e))throw Error(SO+e);return n.cmp(t)<0?t:n.cmp(e)>0?e:new r(n)},RO.comparedTo=RO.cmp=function(t){var e,n,r,i,o=this,a=o.d,s=(t=new o.constructor(t)).d,u=o.s,l=t.s;if(!a||!s)return u&&l?u!==l?u:a===s?0:!a^u<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?u:s[0]?-l:0;if(u!==l)return u;if(o.e!==t.e)return o.e>t.e^u<0?1:-1;for(e=0,n=(r=a.length)<(i=s.length)?r:i;e<n;++e)if(a[e]!==s[e])return a[e]>s[e]^u<0?1:-1;return r===i?0:r>i^u<0?1:-1},RO.cosine=RO.cos=function(){var t,e,n=this,r=n.constructor;return n.d?n.d[0]?(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(t,e){var n,r,i;if(e.isZero())return e;(r=e.d.length)<32?(n=Math.ceil(r/3),i=(1/rS(4,n)).toString()):(n=16,i="2.3283064365386962890625e-10");t.precision+=n,e=nS(t,1,e.times(i),new t(1));for(var o=n;o--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return t.precision-=n,e}(r,iS(r,n)),r.precision=t,r.rounding=e,VO(2==lO||3==lO?n.neg():n,t,e,!0)):new r(1):new r(NaN)},RO.cubeRoot=RO.cbrt=function(){var t,e,n,r,i,o,a,s,u,l,c=this,h=c.constructor;if(!c.isFinite()||c.isZero())return new h(c);for(OO=!1,(o=c.s*TO(c.s*c,1/3))&&Math.abs(o)!=1/0?r=new h(o.toString()):(n=DO(c.d),(o=((t=c.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=TO(n,1/3),t=EO((t+1)/3)-(t%3==(t<0?-1:2)),(r=new h(n=o==1/0?"5e"+t:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+t)).s=c.s),a=(t=h.precision)+3;;)if(l=(u=(s=r).times(s).times(s)).plus(c),r=zO(l.plus(c).times(s),l.plus(u),a+2,1),DO(s.d).slice(0,a)===(n=DO(r.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(VO(r,t+1,1),e=!r.times(r).times(r).eq(c));break}if(!i&&(VO(s,t+1,0),s.times(s).times(s).eq(c))){r=s;break}a+=4,i=1}return OO=!0,VO(r,t,h.rounding,e)},RO.decimalPlaces=RO.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=7*((t=e.length-1)-EO(this.e/7)),t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},RO.dividedBy=RO.div=function(t){return zO(this,new this.constructor(t))},RO.dividedToIntegerBy=RO.divToInt=function(t){var e=this.constructor;return VO(zO(this,new e(t),0,1,1),e.precision,e.rounding)},RO.equals=RO.eq=function(t){return 0===this.cmp(t)},RO.floor=function(){return VO(new this.constructor(this),this.e+1,3)},RO.greaterThan=RO.gt=function(t){return this.cmp(t)>0},RO.greaterThanOrEqualTo=RO.gte=function(t){var e=this.cmp(t);return 1==e||0===e},RO.hyperbolicCosine=RO.cosh=function(){var t,e,n,r,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;n=a.precision,r=a.rounding,a.precision=n+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?e=(1/rS(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=nS(a,1,o.times(e),new a(1),!0);for(var u,l=t,c=new a(8);l--;)u=o.times(o),o=s.minus(u.times(c.minus(u.times(c))));return VO(o,a.precision=n,a.rounding=r,!0)},RO.hyperbolicSine=RO.sinh=function(){var t,e,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,n=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=nS(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(r))>16?16:0|t,i=nS(o,2,i=i.times(1/rS(5,t)),i,!0);for(var a,s=new o(5),u=new o(16),l=new o(20);t--;)a=i.times(i),i=i.times(s.plus(a.times(u.times(a).plus(l))))}return o.precision=e,o.rounding=n,VO(i,e,n,!0)},RO.hyperbolicTangent=RO.tanh=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+7,r.rounding=1,zO(n.sinh(),n.cosh(),r.precision=t,r.rounding=e)):new r(n.s)},RO.inverseCosine=RO.acos=function(){var t,e=this,n=e.constructor,r=e.abs().cmp(1),i=n.precision,o=n.rounding;return-1!==r?0===r?e.isNeg()?WO(n,i,o):new n(0):new n(NaN):e.isZero()?WO(n,i+4,o).times(.5):(n.precision=i+6,n.rounding=1,e=e.asin(),t=WO(n,i+4,o).times(.5),n.precision=i,n.rounding=o,t.minus(e))},RO.inverseHyperbolicCosine=RO.acosh=function(){var t,e,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(t=r.precision,e=r.rounding,r.precision=t+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,OO=!1,n=n.times(n).minus(1).sqrt().plus(n),OO=!0,r.precision=t,r.rounding=e,n.ln()):new r(n)},RO.inverseHyperbolicSine=RO.asinh=function(){var t,e,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,OO=!1,n=n.times(n).plus(1).sqrt().plus(n),OO=!0,r.precision=t,r.rounding=e,n.ln())},RO.inverseHyperbolicTangent=RO.atanh=function(){var t,e,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=o.precision,e=o.rounding,r=i.sd(),Math.max(r,t)<2*-i.e-1?VO(new o(i),t,e,!0):(o.precision=n=r-i.e,i=zO(i.plus(1),new o(1).minus(i),n+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=e,i.times(.5))):new o(NaN)},RO.inverseSine=RO.asin=function(){var t,e,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==e?0===e?((t=WO(o,n+4,r).times(.5)).s=i.s,t):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2)))},RO.inverseTangent=RO.atan=function(){var t,e,n,r,i,o,a,s,u,l=this,c=l.constructor,h=c.precision,f=c.rounding;if(l.isFinite()){if(l.isZero())return new c(l);if(l.abs().eq(1)&&h+4<=LO)return(a=WO(c,h+4,f).times(.25)).s=l.s,a}else{if(!l.s)return new c(NaN);if(h+4<=LO)return(a=WO(c,h+4,f).times(.5)).s=l.s,a}for(c.precision=s=h+10,c.rounding=1,t=n=Math.min(28,s/7+2|0);t;--t)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(OO=!1,e=Math.ceil(s/7),r=1,u=l.times(l),a=new c(l),i=l;-1!==t;)if(i=i.times(u),o=a.minus(i.div(r+=2)),i=i.times(u),void 0!==(a=o.plus(i.div(r+=2))).d[e])for(t=e;a.d[t]===o.d[t]&&t--;);return n&&(a=a.times(2<<n-1)),OO=!0,VO(a,c.precision=h,c.rounding=f,!0)},RO.isFinite=function(){return!!this.d},RO.isInteger=RO.isInt=function(){return!!this.d&&EO(this.e/7)>this.d.length-2},RO.isNaN=function(){return!this.s},RO.isNegative=RO.isNeg=function(){return this.s<0},RO.isPositive=RO.isPos=function(){return this.s>0},RO.isZero=function(){return!!this.d&&0===this.d[0]},RO.lessThan=RO.lt=function(t){return this.cmp(t)<0},RO.lessThanOrEqualTo=RO.lte=function(t){return this.cmp(t)<1},RO.logarithm=RO.log=function(t){var e,n,r,i,o,a,s,u,l=this.constructor,c=l.precision,h=l.rounding;if(null==t)t=new l(10),e=!0;else{if(n=(t=new l(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new l(NaN);e=t.eq(10)}if(n=this.d,this.s<0||!n||!n[0]||this.eq(1))return new l(n&&!n[0]?-1/0:1!=this.s?NaN:n?0:1/0);if(e)if(n.length>1)o=!0;else{for(i=n[0];i%10==0;)i/=10;o=1!==i}if(OO=!1,a=QO(this,s=c+5),r=e?HO(l,s+10):QO(t,s),BO((u=zO(a,r,s,1)).d,i=c,h))do{if(a=QO(this,s+=10),r=e?HO(l,s+10):QO(t,s),u=zO(a,r,s,1),!o){+DO(u.d).slice(i+1,i+15)+1==1e14&&(u=VO(u,c+1,0));break}}while(BO(u.d,i+=10,h));return OO=!0,VO(u,c,h)},RO.minus=RO.sub=function(t){var e,n,r,i,o,a,s,u,l,c,h,f,d=this,p=d.constructor;if(t=new p(t),!d.d||!t.d)return d.s&&t.s?d.d?t.s=-t.s:t=new p(t.d||d.s!==t.s?d:NaN):t=new p(NaN),t;if(d.s!=t.s)return t.s=-t.s,d.plus(t);if(l=d.d,f=t.d,s=p.precision,u=p.rounding,!l[0]||!f[0]){if(f[0])t.s=-t.s;else{if(!l[0])return new p(3===u?-0:0);t=new p(d)}return OO?VO(t,s,u):t}if(n=EO(t.e/7),c=EO(d.e/7),l=l.slice(),o=c-n){for((h=o<0)?(e=l,o=-o,a=f.length):(e=f,n=c,a=l.length),o>(r=Math.max(Math.ceil(s/7),a)+2)&&(o=r,e.length=1),e.reverse(),r=o;r--;)e.push(0);e.reverse()}else{for((h=(r=l.length)<(a=f.length))&&(a=r),r=0;r<a;r++)if(l[r]!=f[r]){h=l[r]<f[r];break}o=0}for(h&&(e=l,l=f,f=e,t.s=-t.s),a=l.length,r=f.length-a;r>0;--r)l[a++]=0;for(r=f.length;r>o;){if(l[--r]<f[r]){for(i=r;i&&0===l[--i];)l[i]=kO-1;--l[i],l[r]+=kO}l[r]-=f[r]}for(;0===l[--a];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(t.d=l,t.e=GO(l,n),OO?VO(t,s,u):t):new p(3===u?-0:0)},RO.modulo=RO.mod=function(t){var e,n=this,r=n.constructor;return t=new r(t),!n.d||!t.s||t.d&&!t.d[0]?new r(NaN):!t.d||n.d&&!n.d[0]?VO(new r(n),r.precision,r.rounding):(OO=!1,9==r.modulo?(e=zO(n,t.abs(),0,3,1)).s*=t.s:e=zO(n,t,0,r.modulo,1),e=e.times(t),OO=!0,n.minus(e))},RO.naturalExponential=RO.exp=function(){return KO(this)},RO.naturalLogarithm=RO.ln=function(){return QO(this)},RO.negated=RO.neg=function(){var t=new this.constructor(this);return t.s=-t.s,VO(t)},RO.plus=RO.add=function(t){var e,n,r,i,o,a,s,u,l,c,h=this,f=h.constructor;if(t=new f(t),!h.d||!t.d)return h.s&&t.s?h.d||(t=new f(t.d||h.s===t.s?h:NaN)):t=new f(NaN),t;if(h.s!=t.s)return t.s=-t.s,h.minus(t);if(l=h.d,c=t.d,s=f.precision,u=f.rounding,!l[0]||!c[0])return c[0]||(t=new f(h)),OO?VO(t,s,u):t;if(o=EO(h.e/7),r=EO(t.e/7),l=l.slice(),i=o-r){for(i<0?(n=l,i=-i,a=c.length):(n=c,r=o,a=l.length),i>(a=(o=Math.ceil(s/7))>a?o+1:a+1)&&(i=a,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((a=l.length)-(i=c.length)<0&&(i=a,n=c,c=l,l=n),e=0;i;)e=(l[--i]=l[i]+c[i]+e)/kO|0,l[i]%=kO;for(e&&(l.unshift(e),++r),a=l.length;0==l[--a];)l.pop();return t.d=l,t.e=GO(l,r),OO?VO(t,s,u):t},RO.precision=RO.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(SO+t);return n.d?(e=YO(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},RO.round=function(){var t=this,e=t.constructor;return VO(new e(t),t.e+1,e.rounding)},RO.sine=RO.sin=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(t,e){var n,r=e.d.length;if(r<3)return e.isZero()?e:nS(t,2,e,e);n=(n=1.4*Math.sqrt(r))>16?16:0|n,e=e.times(1/rS(5,n)),e=nS(t,2,e,e);for(var i,o=new t(5),a=new t(16),s=new t(20);n--;)i=e.times(e),e=e.times(o.plus(i.times(a.times(i).minus(s))));return e}(r,iS(r,n)),r.precision=t,r.rounding=e,VO(lO>2?n.neg():n,t,e,!0)):new r(NaN)},RO.squareRoot=RO.sqrt=function(){var t,e,n,r,i,o,a=this,s=a.d,u=a.e,l=a.s,c=a.constructor;if(1!==l||!s||!s[0])return new c(!l||l<0&&(!s||s[0])?NaN:s?a:1/0);for(OO=!1,0==(l=Math.sqrt(+a))||l==1/0?(((e=DO(s)).length+u)%2==0&&(e+="0"),l=Math.sqrt(e),u=EO((u+1)/2)-(u<0||u%2),r=new c(e=l==1/0?"5e"+u:(e=l.toExponential()).slice(0,e.indexOf("e")+1)+u)):r=new c(l.toString()),n=(u=c.precision)+3;;)if(r=(o=r).plus(zO(a,o,n+2,1)).times(.5),DO(o.d).slice(0,n)===(e=DO(r.d)).slice(0,n)){if("9999"!=(e=e.slice(n-3,n+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(VO(r,u+1,1),t=!r.times(r).eq(a));break}if(!i&&(VO(o,u+1,0),o.times(o).eq(a))){r=o;break}n+=4,i=1}return OO=!0,VO(r,u,c.rounding,t)},RO.tangent=RO.tan=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+10,r.rounding=1,(n=n.sin()).s=1,n=zO(n,new r(1).minus(n.times(n)).sqrt(),t+10,0),r.precision=t,r.rounding=e,VO(2==lO||4==lO?n.neg():n,t,e,!0)):new r(NaN)},RO.times=RO.mul=function(t){var e,n,r,i,o,a,s,u,l,c=this,h=c.constructor,f=c.d,d=(t=new h(t)).d;if(t.s*=c.s,!(f&&f[0]&&d&&d[0]))return new h(!t.s||f&&!f[0]&&!d||d&&!d[0]&&!f?NaN:f&&d?0*t.s:t.s/0);for(n=EO(c.e/7)+EO(t.e/7),(u=f.length)<(l=d.length)&&(o=f,f=d,d=o,a=u,u=l,l=a),o=[],r=a=u+l;r--;)o.push(0);for(r=l;--r>=0;){for(e=0,i=u+r;i>r;)s=o[i]+d[r]*f[i-r-1]+e,o[i--]=s%kO|0,e=s/kO|0;o[i]=(o[i]+e)%kO|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=GO(o,n),OO?VO(t,h.precision,h.rounding):t},RO.toBinary=function(t,e){return oS(this,2,t,e)},RO.toDecimalPlaces=RO.toDP=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(NO(t,0,1e9),void 0===e?e=r.rounding:NO(e,0,8),VO(n,t+n.e+1,e))},RO.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=UO(r,!0):(NO(t,0,1e9),void 0===e?e=i.rounding:NO(e,0,8),n=UO(r=VO(new i(r),t+1,e),!0,t+1)),r.isNeg()&&!r.isZero()?"-"+n:n},RO.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?n=UO(i):(NO(t,0,1e9),void 0===e?e=o.rounding:NO(e,0,8),n=UO(r=VO(new o(i),t+i.e+1,e),!1,t+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},RO.toFraction=function(t){var e,n,r,i,o,a,s,u,l,c,h,f,d=this,p=d.d,g=d.constructor;if(!p)return new g(d);if(l=n=new g(1),r=u=new g(0),a=(o=(e=new g(r)).e=YO(p)-d.e-1)%7,e.d[0]=TO(10,a<0?7+a:a),null==t)t=o>0?e:l;else{if(!(s=new g(t)).isInt()||s.lt(l))throw Error(SO+s);t=s.gt(e)?o>0?e:l:s}for(OO=!1,s=new g(DO(p)),c=g.precision,g.precision=o=7*p.length*2;h=zO(s,e,0,1,1),1!=(i=n.plus(h.times(r))).cmp(t);)n=r,r=i,i=l,l=u.plus(h.times(i)),u=i,i=e,e=s.minus(h.times(i)),s=i;return i=zO(t.minus(n),r,0,1,1),u=u.plus(i.times(l)),n=n.plus(i.times(r)),u.s=l.s=d.s,f=zO(l,r,o,1).minus(d).abs().cmp(zO(u,n,o,1).minus(d).abs())<1?[l,r]:[u,n],g.precision=c,OO=!0,f},RO.toHexadecimal=RO.toHex=function(t,e){return oS(this,16,t,e)},RO.toNearest=function(t,e){var n=this,r=n.constructor;if(n=new r(n),null==t){if(!n.d)return n;t=new r(1),e=r.rounding}else{if(t=new r(t),void 0===e?e=r.rounding:NO(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(OO=!1,n=zO(n,t,0,e,1).times(t),OO=!0,VO(n)):(t.s=n.s,n=t),n},RO.toNumber=function(){return+this},RO.toOctal=function(t,e){return oS(this,8,t,e)},RO.toPower=RO.pow=function(t){var e,n,r,i,o,a,s=this,u=s.constructor,l=+(t=new u(t));if(!(s.d&&t.d&&s.d[0]&&t.d[0]))return new u(TO(+s,l));if((s=new u(s)).eq(1))return s;if(r=u.precision,o=u.rounding,t.eq(1))return VO(s,r,o);if((e=EO(t.e/7))>=t.d.length-1&&(n=l<0?-l:l)<=9007199254740991)return i=$O(u,s,n,r),t.s<0?new u(1).div(i):VO(i,r,o);if((a=s.s)<0){if(e<t.d.length-1)return new u(NaN);if(0==(1&t.d[e])&&(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(e=0!=(n=TO(+s,l))&&isFinite(n)?new u(n+"").e:EO(l*(Math.log("0."+DO(s.d))/Math.LN10+s.e+1)))>u.maxE+1||e<u.minE-1?new u(e>0?a/0:0):(OO=!1,u.rounding=s.s=1,n=Math.min(12,(e+"").length),(i=KO(t.times(QO(s,r+n)),r)).d&&BO((i=VO(i,r+5,1)).d,r,o)&&(e=r+10,+DO((i=VO(KO(t.times(QO(s,e+n)),e),e+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=VO(i,r+1,0))),i.s=a,OO=!0,u.rounding=o,VO(i,r,o))},RO.toPrecision=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=UO(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(NO(t,1,1e9),void 0===e?e=i.rounding:NO(e,0,8),n=UO(r=VO(new i(r),t,e),t<=r.e||r.e<=i.toExpNeg,t)),r.isNeg()&&!r.isZero()?"-"+n:n},RO.toSignificantDigits=RO.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(NO(t,1,1e9),void 0===e?e=n.rounding:NO(e,0,8)),VO(new n(this),t,e)},RO.toString=function(){var t=this,e=t.constructor,n=UO(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},RO.truncated=RO.trunc=function(){return VO(new this.constructor(this),this.e+1,1)},RO.valueOf=RO.toJSON=function(){var t=this,e=t.constructor,n=UO(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var zO=function(){function t(t,e,n){var r,i=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+i,t[o]=r%n|0,i=r/n|0;return i&&t.unshift(i),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]<e[n]?1:0,t[n]=i*r+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,i,o,a,s,u){var l,c,h,f,d,p,g,v,m,y,b,_,x,w,O,S,C,E,T,A,M=r.constructor,I=r.s==i.s?1:-1,j=r.d,k=i.d;if(!(j&&j[0]&&k&&k[0]))return new M(r.s&&i.s&&(j?!k||j[0]!=k[0]:k)?j&&0==j[0]||!k?0*I:I/0:NaN);for(u?(d=1,c=r.e-i.e):(u=kO,d=7,c=EO(r.e/d)-EO(i.e/d)),T=k.length,C=j.length,y=(m=new M(I)).d=[],h=0;k[h]==(j[h]||0);h++);if(k[h]>(j[h]||0)&&c--,null==o?(w=o=M.precision,a=M.rounding):w=s?o+(r.e-i.e)+1:o,w<0)y.push(1),p=!0;else{if(w=w/d+2|0,h=0,1==T){for(f=0,k=k[0],w++;(h<C||f)&&w--;h++)O=f*u+(j[h]||0),y[h]=O/k|0,f=O%k|0;p=f||h<C}else{for((f=u/(k[0]+1)|0)>1&&(k=t(k,f,u),j=t(j,f,u),T=k.length,C=j.length),S=T,_=(b=j.slice(0,T)).length;_<T;)b[_++]=0;(A=k.slice()).unshift(0),E=k[0],k[1]>=u/2&&++E;do{f=0,(l=e(k,b,T,_))<0?(x=b[0],T!=_&&(x=x*u+(b[1]||0)),(f=x/E|0)>1?(f>=u&&(f=u-1),1==(l=e(g=t(k,f,u),b,v=g.length,_=b.length))&&(f--,n(g,T<v?A:k,v,u))):(0==f&&(l=f=1),g=k.slice()),(v=g.length)<_&&g.unshift(0),n(b,g,_,u),-1==l&&(l=e(k,b,T,_=b.length))<1&&(f++,n(b,T<_?A:k,_,u)),_=b.length):0===l&&(f++,b=[0]),y[h++]=f,l&&b[0]?b[_++]=j[S]||0:(b=[j[S]],_=1)}while((S++<C||void 0!==b[0])&&w--);p=void 0!==b[0]}y[0]||y.shift()}if(1==d)m.e=c,uO=p;else{for(h=1,f=y[0];f>=10;f/=10)h++;m.e=h+c*d-1,VO(m,s?o+m.e+1:o,a,p)}return m}}();function VO(t,e,n,r){var i,o,a,s,u,l,c,h,f,d=t.constructor;t:if(null!=e){if(!(h=t.d))return t;for(i=1,s=h[0];s>=10;s/=10)i++;if((o=e-i)<0)o+=7,a=e,u=(c=h[f=0])/TO(10,i-a-1)%10|0;else if((f=Math.ceil((o+1)/7))>=(s=h.length)){if(!r)break t;for(;s++<=f;)h.push(0);c=u=0,i=1,a=(o%=7)-7+1}else{for(c=s=h[f],i=1;s>=10;s/=10)i++;u=(a=(o%=7)-7+i)<0?0:c/TO(10,i-a-1)%10|0}if(r=r||e<0||void 0!==h[f+1]||(a<0?c:c%TO(10,i-a-1)),l=n<4?(u||r)&&(0==n||n==(t.s<0?3:2)):u>5||5==u&&(4==n||r||6==n&&(o>0?a>0?c/TO(10,i-a):0:h[f-1])%10&1||n==(t.s<0?8:7)),e<1||!h[0])return h.length=0,l?(e-=t.e+1,h[0]=TO(10,(7-e%7)%7),t.e=-e||0):h[0]=t.e=0,t;if(0==o?(h.length=f,s=1,f--):(h.length=f+1,s=TO(10,7-o),h[f]=a>0?(c/TO(10,i-a)%TO(10,a)|0)*s:0),l)for(;;){if(0==f){for(o=1,a=h[0];a>=10;a/=10)o++;for(a=h[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(t.e++,h[0]==kO&&(h[0]=1));break}if(h[f]+=s,h[f]!=kO)break;h[f--]=0,s=1}for(o=h.length;0===h[--o];)h.pop()}return OO&&(t.e>d.maxE?(t.d=null,t.e=NaN):t.e<d.minE&&(t.e=0,t.d=[0])),t}function UO(t,e,n){if(!t.isFinite())return JO(t);var r,i=t.e,o=DO(t.d),a=o.length;return e?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+XO(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+XO(-i-1)+o,n&&(r=n-a)>0&&(o+=XO(r))):i>=a?(o+=XO(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+XO(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=XO(r))),o}function GO(t,e){var n=t[0];for(e*=7;n>=10;n/=10)e++;return e}function HO(t,e,n){if(e>PO)throw OO=!0,n&&(t.precision=n),Error("[DecimalError] Precision limit exceeded");return VO(new t(_O),e,1,!0)}function WO(t,e,n){if(e>LO)throw Error("[DecimalError] Precision limit exceeded");return VO(new t(xO),e,n,!0)}function YO(t){var e=t.length-1,n=7*e+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function XO(t){for(var e="";t--;)e+="0";return e}function $O(t,e,n,r){var i,o=new t(1),a=Math.ceil(r/7+4);for(OO=!1;;){if(n%2&&aS((o=o.times(e)).d,a)&&(i=!0),0===(n=EO(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}aS((e=e.times(e)).d,a)}return OO=!0,o}function qO(t){return 1&t.d[t.d.length-1]}function ZO(t,e,n){for(var r,i=new t(e[0]),o=0;++o<e.length;){if(!(r=new t(e[o])).s){i=r;break}i[n](r)&&(i=r)}return i}function KO(t,e){var n,r,i,o,a,s,u,l=0,c=0,h=0,f=t.constructor,d=f.rounding,p=f.precision;if(!t.d||!t.d[0]||t.e>17)return new f(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(OO=!1,u=p):u=e,s=new f(.03125);t.e>-2;)t=t.times(s),h+=5;for(u+=r=Math.log(TO(2,h))/Math.LN10*2+5|0,n=o=a=new f(1),f.precision=u;;){if(o=VO(o.times(t),u,1),n=n.times(++c),DO((s=a.plus(zO(o,n,u,1))).d).slice(0,u)===DO(a.d).slice(0,u)){for(i=h;i--;)a=VO(a.times(a),u,1);if(null!=e)return f.precision=p,a;if(!(l<3&&BO(a.d,u-r,d,l)))return VO(a,f.precision=p,d,OO=!0);f.precision=u+=10,n=o=s=new f(1),c=0,l++}a=s}}function QO(t,e){var n,r,i,o,a,s,u,l,c,h,f,d=1,p=t,g=p.d,v=p.constructor,m=v.rounding,y=v.precision;if(p.s<0||!g||!g[0]||!p.e&&1==g[0]&&1==g.length)return new v(g&&!g[0]?-1/0:1!=p.s?NaN:g?0:p);if(null==e?(OO=!1,c=y):c=e,v.precision=c+=10,r=(n=DO(g)).charAt(0),!(Math.abs(o=p.e)<15e14))return l=HO(v,c+2,y).times(o+""),p=QO(new v(r+"."+n.slice(1)),c-10).plus(l),v.precision=y,null==e?VO(p,y,m,OO=!0):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=DO((p=p.times(t)).d)).charAt(0),d++;for(o=p.e,r>1?(p=new v("0."+n),o++):p=new v(r+"."+n.slice(1)),h=p,u=a=p=zO(p.minus(1),p.plus(1),c,1),f=VO(p.times(p),c,1),i=3;;){if(a=VO(a.times(f),c,1),DO((l=u.plus(zO(a,new v(i),c,1))).d).slice(0,c)===DO(u.d).slice(0,c)){if(u=u.times(2),0!==o&&(u=u.plus(HO(v,c+2,y).times(o+""))),u=zO(u,new v(d),c,1),null!=e)return v.precision=y,u;if(!BO(u.d,c-10,m,s))return VO(u,v.precision=y,m,OO=!0);v.precision=c+=10,l=a=p=zO(h.minus(1),h.plus(1),c,1),f=VO(p.times(p),c,1),i=s=1}u=l,i+=2}}function JO(t){return String(t.s*t.s/0)}function tS(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);r++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(r,i)){if(i-=r,t.e=n=n-r-1,t.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=7;r<i;)t.d.push(+e.slice(r,r+=7));r=7-(e=e.slice(r)).length}else r-=i;for(;r--;)e+="0";t.d.push(+e),OO&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function eS(t,e){var n,r,i,o,a,s,u,l,c;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),jO.test(e))return tS(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(MO.test(e))n=16,e=e.toLowerCase();else if(AO.test(e))n=2;else{if(!IO.test(e))throw Error(SO+e);n=8}for((o=e.search(/p/i))>0?(u=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),a=(o=e.indexOf("."))>=0,r=t.constructor,a&&(o=(s=(e=e.replace(".","")).length)-o,i=$O(r,new r(n),o,2*o)),o=c=(l=FO(e,n,kO)).length-1;0===l[o];--o)l.pop();return o<0?new r(0*t.s):(t.e=GO(l,c),t.d=l,OO=!1,a&&(t=zO(t,i,4*s)),u&&(t=t.times(Math.abs(u)<54?TO(2,u):$S.pow(2,u))),OO=!0,t)}function nS(t,e,n,r,i){var o,a,s,u,l=t.precision,c=Math.ceil(l/7);for(OO=!1,u=n.times(n),s=new t(r);;){if(a=zO(s.times(u),new t(e++*e++),l,1),s=i?r.plus(a):r.minus(a),r=zO(a.times(u),new t(e++*e++),l,1),void 0!==(a=s.plus(r)).d[c]){for(o=c;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=r,r=a,a=o}return OO=!0,a.d.length=c+1,a}function rS(t,e){for(var n=t;--e;)n*=t;return n}function iS(t,e){var n,r=e.s<0,i=WO(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return lO=r?4:1,e;if((n=e.divToInt(i)).isZero())lO=r?3:2;else{if((e=e.minus(n.times(i))).lte(o))return lO=qO(n)?r?2:3:r?4:1,e;lO=qO(n)?r?1:4:r?3:2}return e.minus(i).abs()}function oS(t,e,n,r){var i,o,a,s,u,l,c,h,f,d=t.constructor,p=void 0!==n;if(p?(NO(n,1,1e9),void 0===r?r=d.rounding:NO(r,0,8)):(n=d.precision,r=d.rounding),t.isFinite()){for(p?(i=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):i=e,(a=(c=UO(t)).indexOf("."))>=0&&(c=c.replace(".",""),(f=new d(1)).e=c.length-a,f.d=FO(UO(f),10,i),f.e=f.d.length),o=u=(h=FO(c,10,i)).length;0==h[--u];)h.pop();if(h[0]){if(a<0?o--:((t=new d(t)).d=h,t.e=o,h=(t=zO(t,f,n,r,0,i)).d,o=t.e,l=uO),a=h[n],s=i/2,l=l||void 0!==h[n+1],l=r<4?(void 0!==a||l)&&(0===r||r===(t.s<0?3:2)):a>s||a===s&&(4===r||l||6===r&&1&h[n-1]||r===(t.s<0?8:7)),h.length=n,l)for(;++h[--n]>i-1;)h[n]=0,n||(++o,h.unshift(1));for(u=h.length;!h[u-1];--u);for(a=0,c="";a<u;a++)c+=bO.charAt(h[a]);if(p){if(u>1)if(16==e||8==e){for(a=16==e?4:3,--u;u%a;u++)c+="0";for(u=(h=FO(c,i,e)).length;!h[u-1];--u);for(a=1,c="1.";a<u;a++)c+=bO.charAt(h[a])}else c=c.charAt(0)+"."+c.slice(1);c=c+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)c="0"+c;c="0."+c}else if(++o>u)for(o-=u;o--;)c+="0";else o<u&&(c=c.slice(0,o)+"."+c.slice(o))}else c=p?"0p+0":"0";c=(16==e?"0x":2==e?"0b":8==e?"0o":"")+c}else c=JO(t);return t.s<0?"-"+c:c}function aS(t,e){if(t.length>e)return t.length=e,!0}function sS(t){return new this(t).abs()}function uS(t){return new this(t).acos()}function lS(t){return new this(t).acosh()}function cS(t,e){return new this(t).plus(e)}function hS(t){return new this(t).asin()}function fS(t){return new this(t).asinh()}function dS(t){return new this(t).atan()}function pS(t){return new this(t).atanh()}function gS(t,e){t=new this(t),e=new this(e);var n,r=this.precision,i=this.rounding,o=r+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(n=e.s<0?WO(this,r,i):new this(0)).s=t.s:!t.d||e.isZero()?(n=WO(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,n=this.atan(zO(t,e,o,1)),e=WO(this,o,1),this.precision=r,this.rounding=i,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(zO(t,e,o,1)):(n=WO(this,o,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function vS(t){return new this(t).cbrt()}function mS(t){return VO(t=new this(t),t.e+1,2)}function yS(t,e,n){return new this(t).clamp(e,n)}function bS(t){if(!t||"object"!=typeof t)throw Error("[DecimalError] Object expected");var e,n,r,i=!0===t.defaults,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-yO,0,"toExpPos",0,yO,"maxE",0,yO,"minE",-yO,0,"modulo",0,9];for(e=0;e<o.length;e+=3)if(n=o[e],i&&(this[n]=wO[n]),void 0!==(r=t[n])){if(!(EO(r)===r&&r>=o[e+1]&&r<=o[e+2]))throw Error(SO+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=wO[n]),void 0!==(r=t[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(SO+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");this[n]=!0}else this[n]=!1}return this}function _S(t){return new this(t).cos()}function xS(t){return new this(t).cosh()}function wS(t,e){return new this(t).div(e)}function OS(t){return new this(t).exp()}function SS(t){return VO(t=new this(t),t.e+1,3)}function CS(){var t,e,n=new this(0);for(OO=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)n.d&&(n=n.plus(e.times(e)));else{if(e.s)return OO=!0,new this(1/0);n=e}return OO=!0,n.sqrt()}function ES(t){return t instanceof $S||t&&t.toStringTag===CO||!1}function TS(t){return new this(t).ln()}function AS(t,e){return new this(t).log(e)}function MS(t){return new this(t).log(2)}function IS(t){return new this(t).log(10)}function jS(){return ZO(this,arguments,"lt")}function kS(){return ZO(this,arguments,"gt")}function PS(t,e){return new this(t).mod(e)}function LS(t,e){return new this(t).mul(e)}function RS(t,e){return new this(t).pow(e)}function DS(t){var e,n,r,i,o=0,a=new this(1),s=[];if(void 0===t?t=this.precision:NO(t,1,1e9),r=Math.ceil(t/7),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(r));o<r;)(i=e[o])>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");for(e=crypto.randomBytes(r*=4);o<r;)(i=e[o]+(e[o+1]<<8)+(e[o+2]<<16)+((127&e[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,o):(s.push(i%1e7),o+=4);o=r/4}else for(;o<r;)s[o++]=1e7*Math.random()|0;for(t%=7,(r=s[--o])&&t&&(i=TO(10,7-t),s[o]=(r/i|0)*i);0===s[o];o--)s.pop();if(o<0)n=0,s=[0];else{for(n=-1;0===s[0];n-=7)s.shift();for(r=1,i=s[0];i>=10;i/=10)r++;r<7&&(n-=7-r)}return a.e=n,a.d=s,a}function NS(t){return VO(t=new this(t),t.e+1,this.rounding)}function BS(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function FS(t){return new this(t).sin()}function zS(t){return new this(t).sinh()}function VS(t){return new this(t).sqrt()}function US(t,e){return new this(t).sub(e)}function GS(){var t=0,e=arguments,n=new this(e[t]);for(OO=!1;n.s&&++t<e.length;)n=n.plus(e[t]);return OO=!0,VO(n,this.precision,this.rounding)}function HS(t){return new this(t).tan()}function WS(t){return new this(t).tanh()}function YS(t){return VO(t=new this(t),t.e+1,1)}RO[Symbol.for("nodejs.util.inspect.custom")]=RO.toString,RO[Symbol.toStringTag]="Decimal";var XS,$S=RO.constructor=function t(e){var n,r,i;function o(t){var e,n,r,i=this;if(!(i instanceof o))return new o(t);if(i.constructor=o,ES(t))return i.s=t.s,void(OO?!t.d||t.e>o.maxE?(i.e=NaN,i.d=null):t.e<o.minE?(i.e=0,i.d=[0]):(i.e=t.e,i.d=t.d.slice()):(i.e=t.e,i.d=t.d?t.d.slice():t.d));if("number"===(r=typeof t)){if(0===t)return i.s=1/t<0?-1:1,i.e=0,void(i.d=[0]);if(t<0?(t=-t,i.s=-1):i.s=1,t===~~t&&t<1e7){for(e=0,n=t;n>=10;n/=10)e++;return void(OO?e>o.maxE?(i.e=NaN,i.d=null):e<o.minE?(i.e=0,i.d=[0]):(i.e=e,i.d=[t]):(i.e=e,i.d=[t]))}return 0*t!=0?(t||(i.s=NaN),i.e=NaN,void(i.d=null)):tS(i,t.toString())}if("string"!==r)throw Error(SO+t);return 45===(n=t.charCodeAt(0))?(t=t.slice(1),i.s=-1):(43===n&&(t=t.slice(1)),i.s=1),jO.test(t)?tS(i,t):eS(i,t)}if(o.prototype=RO,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=bS,o.clone=t,o.isDecimal=ES,o.abs=sS,o.acos=uS,o.acosh=lS,o.add=cS,o.asin=hS,o.asinh=fS,o.atan=dS,o.atanh=pS,o.atan2=gS,o.cbrt=vS,o.ceil=mS,o.clamp=yS,o.cos=_S,o.cosh=xS,o.div=wS,o.exp=OS,o.floor=SS,o.hypot=CS,o.ln=TS,o.log=AS,o.log10=IS,o.log2=MS,o.max=jS,o.min=kS,o.mod=PS,o.mul=LS,o.pow=RS,o.random=DS,o.round=NS,o.sign=BS,o.sin=FS,o.sinh=zS,o.sqrt=VS,o.sub=US,o.sum=GS,o.tan=HS,o.tanh=WS,o.trunc=YS,void 0===e&&(e={}),e&&!0!==e.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<i.length;)e.hasOwnProperty(r=i[n++])||(e[r]=this[r]);return o.config(e),o}(wO);_O=new $S(_O),xO=new $S(xO);var qS,ZS=function(t){return"number"==typeof t?Number.isNaN(t):!t||("string"!=typeof t||Number.isNaN(Number(t)))},KS=function(t,e,n){return void 0===n&&(n=!1),(null==t?void 0:t.length)?t.reduce((function(t,r){var i=ml(r,e),o=ZS(i);if(n&&o)return t;var a=o?0:i;return t.push(new $S(a)),t}),[]):[]},QS=function(t,e){var n=KS(t,e);return n.length?$S.sum.apply($S,By([],Ny(n),!1)).toNumber():0},JS=function(t,e,n){var r=KS(e,n,!0);if(null==r?void 0:r.length)return $S[t].apply($S,By([],Ny(r),!1)).toNumber()},tC=((XS={})[Jb.SUM]=QS,XS[Jb.MIN]=function(t,e){return JS("min",t,e)},XS[Jb.MAX]=function(t,e){return JS("max",t,e)},XS[Jb.AVG]=function(t,e){var n=KS(t,e);return(null==n?void 0:n.length)?$S.sum.apply($S,By([],Ny(n),!1)).dividedBy(n.length).toNumber():0},XS),eC=function(t){var e=t.spreadsheet,n=t.position,r=t.tooltipContainer,i=t.autoAdjustBoundary,o=e.getCanvasElement(),a=n.x+ub.x,s=n.y+ub.y;if(!i||!o)return{x:a,y:s};var u="body"===i,l=e.facet.panelBBox,c=l.maxX,h=l.maxY,f=e.options,d=f.width,p=f.height,g=o.getBoundingClientRect(),v=g.top,m=g.left,y=r.getBoundingClientRect(),b=y.width,_=y.height,x=document.body.getBoundingClientRect(),w=x.width,O=x.height,S=u?w:Math.min(d,c)+m,C=u?O:Math.min(p,h)+v;return a+b>=S&&(a=S-b),s+_>=C&&(s=C-_),{x:a,y:s}},nC=function(t){return Ly({operator:{onClick:ms,menus:[]},enterable:!0,enableFormat:!0},t)},rC=function(t){return Ly(Ly({},null==t?void 0:t.colQuery),null==t?void 0:t.rowQuery)},iC=function(t,e){var n;if(t){var r=e.style,i=e.className,o=void 0===i?[]:i,a=e.visible;if(r&&Object.assign(t.style,r),o.length){var s=o.filter(Boolean);(n=t.classList).add.apply(n,By([],Ny(s),!1))}t.classList.toggle(ob,a),t.classList.toggle(ab,!a)}},oC=function(t){var e=Op(t)&&Number.isNaN(t),n=""===t;return Ep(t)||e||n?"-":t},aC=function(t,e){var n,r=null===(n=null==t?void 0:t.dataSet)||void 0===n?void 0:n.getFieldFormatter(e);return function(t,e){return oC(r(t,e))}},sC=function(t,e){var n,r=e.data,i=e.field,o=e.valueField,a=e.useCompleteDataForFormatter,s=void 0===a||a,u=null===(n=null==t?void 0:t.dataSet)||void 0===n?void 0:n.getFieldName(i),l=aC(t,i),c=La(r[i])?JSON.stringify(r[i]):r[i];return{name:u,value:l(o||c,s?r:void 0)}},uC=function(t,e,n){return Sd(fd(jh([],e),(function(t){return t!==$i&&n[t]})),(function(e){return sC(t,{data:n,field:e,useCompleteDataForFormatter:!1})}))},lC=function(t,e,n){var r,i,o,a,s=(n||{}).isTotals,u=[],l=[];if(e){var c=null===(i=null===(r=null==t?void 0:t.dataSet)||void 0===r?void 0:r.fields)||void 0===i?void 0:i.columns,h=null===(a=null===(o=null==t?void 0:t.dataSet)||void 0===o?void 0:o.fields)||void 0===a?void 0:a.rows;u=uC(t,Vb(c||[]),e),l=uC(t,h,e)}return bp(u)&&bp(l)&&s&&(u=[{value:nb("总计")}]),{cols:u,rows:l}},cC=function(t,e,n){if(e){var r=n.isTotals,i=e[$i],o=e[i],a=[];if(r)a.push(sC(t,{data:e,field:i,valueField:ml(e,Xi)}));else if(function(t){return La(t)&&"values"in t}(o)&&t.getTooltipDataItemMappingCallback()){var s=Vx(e,t.getTooltipDataItemMappingCallback());Wf(s,(function(e,n){a.push(sC(t,{data:s,field:n}))}))}else a.push(sC(t,{data:e,field:i}));return a}},hC=function(t,e,n){var r;if(n)return nb("总计");var i=null===(r=null==t?void 0:t.dataSet)||void 0===r?void 0:r.getFieldName(e);return i&&"undefined"!==i?i:""},fC=function(t,e,n){void 0===n&&(n=!0);var r=[];return Wf(e,(function(e,i){Wf(t,(function(t){n||-1===t.colIndex?n&&-1!==t.rowIndex&&r.push([t.rowIndex,i]):r.push([i,t.colIndex])}))})),r},dC=function(t,e){var n,r=e.rowLeafNodes,i=e.colLeafNodes,o=t.interaction.getState(),a=o.nodes,s=void 0===a?[]:a,u=o.cells,l=void 0===u?[]:u,c=null===(n=null==l?void 0:l[0])||void 0===n?void 0:n.type;return c===ny.COL_CELL?fC(s,r,!1):c===ny.ROW_CELL?fC(s,i):[]},pC=function(t,e,n){var r,i=null===(r=t.facet)||void 0===r?void 0:r.layoutResult,o=function(t){var n=null==e?void 0:e.getMeta(),r=null==n?void 0:n.isTotals,o=(null==e?void 0:e.cellType)===ny.COL_CELL,a=(null==e?void 0:e.cellType)===ny.ROW_CELL;if(!o&&!a)return!1;var s=i.colNodes.find((function(e){return e.colIndex===t.colIndex})),u=i.rowNodes.find((function(e){return e.rowIndex===t.rowIndex})),l=o?null==u?void 0:u.isTotals:null==s?void 0:s.isTotals;return!r&&(null==t?void 0:t.isTotals)||r&&l};return n?Ih(Sd(dC(t,i),(function(t){var e=Ny(t,2),n=e[0],r=e[1],a=i.getCellMeta(n,r);if(!o(a))return(null==a?void 0:a.data)||rC(a)}))):t.interaction.getCells().filter((function(t){var e=i.getCellMeta(t.rowIndex,t.colIndex);return!o(e)})).map((function(t){var e=i.getCellMeta(t.rowIndex,t.colIndex);return(null==e?void 0:e.data)||rC(e)}))},gC=function(t){var e=t.spreadsheet,n=t.getShowValue,r=t.targetCell,i=t.options,o=void 0===i?{}:i,a=[],s={},u=e.isTableMode();return u&&(null==o?void 0:o.showSingleTips)?[{selectedData:e.dataSet.getMultiData({}),name:"",value:""}]:(Wf(pC(e,r,o.showSingleTips),(function(t){var e;s[null==t?void 0:t[$i]]?null===(e=s[null==t?void 0:t[$i]])||void 0===e||e.push(t):s[null==t?void 0:t[$i]]=[t]})),zp(s,(function(t,r){var i,l=hC(e,r,null==o?void 0:o.isTotals),c=null==n?void 0:n(t,Xi);if(u)c="";else if(ld(t,(function(t){return ZS(ml(t,Xi))}))){var h=e.options.placeholder;c=Q_(s,h)}else{var f=aC(e,r),d=QS(t,Xi);c=null!==(i=null==f?void 0:f(d,t))&&void 0!==i?i:parseFloat(d.toPrecision(Wo))}a.push({selectedData:t,name:l,value:c})})),a)},vC=function(t){if(t){var e=t.getMeta();if(!e.isTotals){var n=vd(e.spreadsheet.dataCfg.meta,{field:e.field||e.value||e.valueField}),r=null==n?void 0:n.field;return e.spreadsheet.dataSet.getFieldDescription(r)}}},mC=function(t){var e=t.spreadsheet,n=t.cellInfos,r=void 0===n?[]:n,i=t.options,o=void 0===i?{}:i,a=t.getShowValue,s=t.targetCell,u=null,l=null,c=null,h=vC(s),f=r[0]||{};if(null==o?void 0:o.hideSummary)if(o.showSingleTips){var d=aC(e,f.valueField)(f.value),p=o.enableFormat?e.dataSet.getFieldName(f.value)||d:e.dataSet.getFieldName(f.valueField);f.name=p||""}else l=lC(e,f,o),c=cC(e,f,o);else u=gC({spreadsheet:e,options:o,targetCell:s,getShowValue:a});var g=f||{};return{summaries:u,interpretation:g.interpretation,infos:g.infos,tips:g.tips,name:g.name,headInfo:l,details:c,description:h}},yC=function(t){return Sd(t,(function(t){var e=t.getMeta();return Gu({},e.query||{},Hg(e,["colIndex","rowIndex"]))}))},bC=function(t){if(!t.interaction.isSelectedState())return[];var e=t.dataCfg.fields.valueInCols;return t.interaction.getCells().reduce((function(n,r){var i=t.facet.layoutResult.getCellMeta(null==r?void 0:r.rowIndex,null==r?void 0:r.colIndex),o=rC(i);if(bp(i)||bp(o))return[];var a=Ly(Ly({},o),{colIndex:e?i.colIndex:null,rowIndex:e?null:i.rowIndex});return n.find((function(t){return _p(a,t)}))||n.push(a),n}),[])},_C=function(t,e){void 0===t&&(t={});var n=function(e){return pO(t,e)},r=t.col,i=t.row,o=t.data,a=t.corner;return e===ny.COL_CELL?n(r):e===ny.ROW_CELL?n(i):e===ny.DATA_CELL?n(o):e===ny.CORNER_CELL?n(a):Ly({},t)},xC=function(t,e){var n;if(e&&t){var r=null===(n=t.getCellType)||void 0===n?void 0:n.call(t,null==e?void 0:e.target);return _C(t.options.tooltip,r)}},wC=function(t,e){var n=e.defaultMenus,r=void 0===n?[]:n,i=e.cell,o=function(t){return void 0===t&&(t=[]),t.filter((function(t){var e;return Ga(t.visible)?t.visible(i):null===(e=t.visible)||void 0===e||e})).map((function(t){return t.children&&(t.children=o(t.children)),t}))},a=o(t.menus);return{onClick:t.onClick,menus:Ih(By(By([],Ny(r),!1),Ny(a),!1))}},OC=function(t,e){for(var n=!1,r=e;r&&r!==document.body;){if(t===r){n=!0;break}r=r.parentElement}return n},SC=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"".concat(ea,"-").concat(t.join("-"))},CC=function(){function t(t){var e=this;this.getFieldMeta=ll((function(t,n){return vd(e.meta||n,(function(e){return e.field===t}))})),this.spreadsheet=t}return t.prototype.getFieldName=function(t){return ml(this.getFieldMeta(t,this.meta),"name",t)},t.prototype.getFieldFormatter=function(t){return ml(this.getFieldMeta(t,this.meta),"formatter",Ua)},t.prototype.getFieldDescription=function(t){return ml(this.getFieldMeta(t,this.meta),"description")},t.prototype.setDataCfg=function(t){this.getFieldMeta.cache.clear();var e=this.processDataCfg(t),n=e.fields,r=e.meta,i=e.data,o=e.totalData,a=e.sortParams,s=e.filterParams;this.fields=n,this.meta=r,this.originData=i,this.totalData=o,this.sortParams=a,this.filterParams=s,this.displayData=this.originData,this.indexesData=[]},t.prototype.getDisplayDataSet=function(){return this.displayData},t.prototype.getValueRangeByField=function(t){var e,n,r,i=(n=this.spreadsheet,r=t,n.store.get(na,ra)[r]);if(i)return i;var o=Ih(Sd(this.originData,(function(e){var n=e[t];return Ep(n)?null:Number.parseFloat(n)}))),a={maxValue:Gp(o),minValue:Zp(o)};return function(t,e){var n=t.store.get(na,ra);t.store.set(na,Ly(Ly({},n),e))}(this.spreadsheet,((e={})[t]=a,e)),a},t.prototype.moreThanOneValue=function(){var t,e;return(null===(e=null===(t=this.fields)||void 0===t?void 0:t.values)||void 0===e?void 0:e.length)>1},t}(),EC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleDimensionValuesSort=function(){Wf(e.sortParams,(function(t){var n=t.sortFieldId,r=t.sortByMeasure;if(n){var i=By([],Ny(e.sortedDimensionValues[n]||[]),!1),o=Lw({dataSet:e,sortParam:t,originValues:i,isSortByMeasure:!bp(r)});e.sortedDimensionValues[n]=o}}))},e.getCustomData=function(t){for(var n,r=!1,i=e.indexesData,o=function(e){var o=t[e];r?i=Mp(o)?s_(i):null===(n=Wd(i))||void 0===n?void 0:n.map((function(t){return t&&ml(t,o)})):Mp(o)?r=!0:i=null==i?void 0:i[o]},a=0;a<t.length;a++)o(a);return i},e.getTotalStatus=function(t){var n=e.fields,r=n.columns,i=n.rows,o=function(e,n){if(n){var r=vd(e,(function(e){return!Fd(t,e)}));return r&&r!==wd(e)}return ld(e,(function(e){return!Fd(t,e)}))},a=function(t,e){return e?t.filter((function(t){return t!==$i})):t};return{isRowTotal:o(a(i,!e.spreadsheet.isValueInCols())),isRowSubTotal:o(i,!0),isColTotal:o(a(r,e.spreadsheet.isValueInCols())),isColSubTotal:o(r,!0)}},e}return Py(e,t),e.prototype.setDataCfg=function(e){var n=this;t.prototype.setDataCfg.call(this,e),this.sortedDimensionValues={},this.rowPivotMeta=new Map,this.colPivotMeta=new Map,this.totalData=[].concat(c_(e.data,e.fields)).concat(this.totalData),Xb.getInstance().debugCallback(Hb,(function(){var t=n.fields,e=xw({rows:t.rows,columns:t.columns,originData:n.originData,totalData:n.totalData,indexesData:n.indexesData,sortedDimensionValues:n.sortedDimensionValues,rowPivotMeta:n.rowPivotMeta,colPivotMeta:n.colPivotMeta}).indexesData;n.indexesData=e})),this.handleDimensionValuesSort()},e.prototype.transformDrillDownData=function(t,e,n){var r,i=this,o=this.fields,a=o.columns,s=o.values,u=By(By([],Ny(bb.getFieldPath(n,!0)),!1),[t],!1),l=this.spreadsheet.store,c=this.standardTransform(e,s),h=c_(c,{columns:this.fields.columns,rows:u}),f=Bf(c,h),d=null==n?void 0:n.id,p=null!==(r=l.get("drillDownIdPathMap"))&&void 0!==r?r:new Map;p.has(d)&&(Wf(p.get(d),(function(t){wm(i.indexesData,t)})),ww(this.rowPivotMeta,d));var g=xw({rows:u,columns:a,originData:f,totalData:h,indexesData:this.indexesData,sortedDimensionValues:this.sortedDimensionValues,rowPivotMeta:this.rowPivotMeta,colPivotMeta:this.colPivotMeta}),v=g.paths,m=g.indexesData,y=g.rowPivotMeta,b=g.colPivotMeta,_=g.sortedDimensionValues;this.indexesData=m,this.rowPivotMeta=y,this.colPivotMeta=b,this.sortedDimensionValues=_,p.set(d,v),l.set("drillDownIdPathMap",p)},e.prototype.clearDrillDownData=function(t){var e=this,n=this.spreadsheet.store,r=n.get("drillDownIdPathMap");if(r){var i=n.get("drillDownDataCache",[]);if(t){var o=r.get(t);o&&Wf(o,(function(t){wm(e.indexesData,t)})),ww(this.rowPivotMeta,t),r.delete(t);var a=fd(i,(function(t){return r.has(null==t?void 0:t.rowId)}));n.set("drillDownDataCache",a);var s=a.map((function(t){return null==t?void 0:t.drillLevel})),u=n.get("drillDownFieldInLevel",[]).filter((function(t){return Xd(s,null==t?void 0:t.drillLevel)}));n.set("drillDownFieldInLevel",u)}else{r.clear();var l=this.spreadsheet.store.get("originalDataCfg");bp(l)||this.spreadsheet.setDataCfg(l),this.spreadsheet.store.set("drillItemsNum",-1),this.spreadsheet.store.set("drillDownDataCache",[]),this.spreadsheet.store.set("drillDownFieldInLevel",[])}n.set("drillDownIdPathMap",r)}},e.prototype.standardTransform=function(t,e){if(bp(e))return t;var n=[];return Wf(e,(function(e){Wf(t,(function(t){var r;Fd(t,e)&&n.push(Ly(Ly({},t),((r={})[$i]=e,r[Xi]=t[e],r)))}))})),n},e.prototype.processDataCfg=function(t){var e,n,r=t.data,i=t.meta,o=void 0===i?[]:i,a=t.fields,s=t.sortParams,u=void 0===s?[]:s,l=t.totalData,c=a.columns,h=a.rows,f=a.values,d=a.valueInCols,p=a.customValueOrder,g=c,v=h;d?g=this.isCustomMeasuresPosition(p)?this.handleCustomMeasuresOrder(p,g):_m(By(By([],Ny(c),!1),[$i],!1)):v=this.isCustomMeasuresPosition(p)?this.handleCustomMeasuresOrder(p,v):_m(By(By([],Ny(h),!1),[$i],!1));var m=(null===(n=null===(e=this.spreadsheet)||void 0===e?void 0:e.options)||void 0===n?void 0:n.cornerExtraFieldText)||nb("数值"),y={field:$i,name:m,formatter:function(t){return function(t){return ml(vd(o,(function(e){return e.field===t})),"name",t)}(t)}},b=By(By([],Ny(o),!1),[y],!1),_=this.standardTransform(r,f),x=this.standardTransform(l,f);return{data:_,meta:b,fields:Ly(Ly({},a),{rows:v,columns:g,values:f}),totalData:x,sortParams:u}},e.prototype.getDimensionValues=function(t,e){var n,r,i,o,a=this.fields||{},s=a.rows,u=void 0===s?[]:s,l=a.columns,c=void 0===l?[]:l,h=new Map,f=[];if(Xd(u,t)?(h=this.rowPivotMeta,f=u):Xd(c,t)&&(h=this.colPivotMeta,f=c),!bp(e)){var d=[],p=[],g=function(t){var n=ml(e,t);p.push("".concat(n));var r=p.join("".concat(No));if(h.has(n)&&!Mp(n)){var a=null===(i=h.get(n))||void 0===i?void 0:i.childField;if(h=h.get(n).children,vd(v.sortParams,(function(t){return t.sortFieldId===a}))&&v.sortedDimensionValues[a]){var s=null===(o=v.sortedDimensionValues[a])||void 0===o?void 0:o.filter((function(t){return null==t?void 0:t.startsWith(r)}));d=yw(By([],Ny(s),!1))}else d=By([],Ny(h.keys()),!1)}},v=this;try{for(var m=Dy(f),y=m.next();!y.done;y=m.next()){g(y.value)}}catch(t){n={error:t}}finally{try{y&&!y.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}return bp(d)?[]:o_(i_(By([],Ny(h.keys()),!1),d))}return this.sortedDimensionValues[t]?o_(yw(By([],Ny(this.sortedDimensionValues[t]),!1))):o_(By([],Ny(h.keys()),!1))},e.prototype.getTotalValue=function(t){var e,n,r=function(t,e){var n=t.isRowTotal,r=t.isRowSubTotal,i=t.isColTotal,o=t.isColSubTotal,a=e||{},s=a.row,u=a.col,l=s||{},c=l.calcTotals,h=void 0===c?{}:c,f=l.calcSubTotals,d=void 0===f?{}:f,p=u||{},g=p.calcTotals,v=void 0===g?{}:g,m=p.calcSubTotals,y=void 0===m?{}:m,b=function(t,e){if((t.aggregation||t.calcFunc)&&e)return{aggregation:t.aggregation,calcFunc:t.calcFunc}};return b(v,i)||b(y,o)||b(h,n)||b(d,r)}(this.getTotalStatus(t),null===(n=this.spreadsheet.options)||void 0===n?void 0:n.totals)||{},i=r.aggregation,o=r.calcFunc,a=tC[i];if(a||o){var s=this.getMultiData(t),u=void 0;return o?u=o(t,s):a&&(u=a(s,Xi)),Ly(Ly({},t),((e={})[Xi]=u,e[t[$i]]=u,e))}},e.prototype.getCellData=function(t){var e,n,r,i=t||{},o=i.query,a=i.rowNode,s=i.isTotals,u=void 0!==s&&s,l=this.fields,c=l.columns,h=l.rows,f=h,d=null===(e=this.spreadsheet)||void 0===e?void 0:e.store.get("drillDownIdPathMap"),p=Array.from(null!==(n=null==d?void 0:d.keys())&&void 0!==n?n:[]).some((function(t){return a.id.startsWith(t)}));u&&!p||(f=null!==(r=bb.getFieldPath(a,p))&&void 0!==r?r:h);var g=bw({rowDimensionValues:_w(f,o),colDimensionValues:_w(c,o),careUndefined:u||l_([].concat(h).concat(c),o),rowPivotMeta:this.rowPivotMeta,colPivotMeta:this.colPivotMeta}),v=ml(this.indexesData,g);return v||(u?this.getTotalValue(o):v)},e.prototype.getMultiData=function(t,e,n,r){var i;if(bp(t))return Ih(a_(this.indexesData));var o=this.fields,a=o.rows,s=o.columns,u=o.values,l=_w(bp(r)?a:a.concat(r),t),c=_w(s,t),h=bw({rowDimensionValues:l,colDimensionValues:c,careUndefined:!0,isFirstCreate:!0,rowFields:a,colFields:s,rowPivotMeta:this.rowPivotMeta,colPivotMeta:this.colPivotMeta}),f=this.getCustomData(h),d=Ih(s_(f));if(e){var p=[],g=u_(l,a),v=u_(c,s);if(n)p=g;else if(1===(null===(i=Vu(t))||void 0===i?void 0:i.length)&&Fd(t,$i))p=v;else{var m=function(t){return null==(e=null==t?void 0:t.filter((function(t){return!(null==u?void 0:u.includes(t))})))?void 0:e.every((function(t){return Mp(t)}));var e},y=m(c),b=m(l);p=y?g:b?v:By(By([],Ny(g),!1),Ny(v),!1)}d=d.filter((function(t){return!(null==p?void 0:p.find((function(e){var n;return e!==$i&&(null===(n=Vu(t))||void 0===n?void 0:n.includes(e))})))}))}return d||[]},e.prototype.getFieldFormatter=function(e,n){return e===Zi?this.getFieldFormatterForTotalValue(n):t.prototype.getFieldFormatter.call(this,e)},e.prototype.getFieldFormatterForTotalValue=function(e){var n;return!this.spreadsheet.isValueInCols()&&e&&(n=ml(e.rowQuery,$i)),n=null!=n?n:ml(this.fields.values,0),t.prototype.getFieldFormatter.call(this,n)},e.prototype.handleCustomMeasuresOrder=function(t,e){var n=_m(By([],Ny(e),!1));return e.length>=t?(n.splice(t,0,$i),n):By(By([],Ny(n),!1),[$i],!1)},e.prototype.isCustomMeasuresPosition=function(t){return Op(t)},e}(CC),TC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleDimensionValueFilter=function(){Wf(e.filterParams,(function(t){var n=t.filterKey,r=t.filteredValues,i=t.customFilter,o=function(t){return!Xd(r,t[n])};e.displayData=By(By(By([],Ny(e.getStartRows()),!1),Ny(fd(e.getMovableRows(),(function(t){return i?i(t)&&o(t):o(t)}))),!1),Ny(e.getEndRows()),!1)}))},e.handleDimensionValuesSort=function(){Wf(e.sortParams,(function(t){var n=t.sortFieldId,r=t.sortBy,i=t.sortFunc,o=t.sortMethod,a=t.query;if(n){var s=e.getMovableRows(),u=[];if(a){var l=[];s.forEach((function(t){for(var e=Object.keys(a),n=!0,r=0;r<e.length;r++){var i=e[r];if(t[i]!==a[i]){n=!1,u.push(t);break}}n&&l.push(t)})),s=l}var c=s;if(i)c=i(Ly(Ly({},t),{data:s}));else if(r&&!Ga(r)){var h=By([],Ny(r),!1).reverse();c=s.sort((function(t,e){var r=h.indexOf(t[n]);return h.indexOf(e[n])-r}))}else if(Ow(o)||Sw(o)){c=hg(s,[(Ga(r)?r:null)||n],[o.toLocaleLowerCase()])}u.length&&(c=By(By([],Ny(c),!1),Ny(u),!1)),e.displayData=By(By(By([],Ny(e.getStartRows()),!1),Ny(c),!1),Ny(e.getEndRows()),!1)}}))},e}return Py(e,t),e.prototype.processDataCfg=function(t){return t},e.prototype.setDataCfg=function(e){t.prototype.setDataCfg.call(this,e),this.handleDimensionValueFilter(),this.handleDimensionValuesSort()},e.prototype.getStartRows=function(){var t=(this.spreadsheet.options||{}).frozenRowCount;return t?this.displayData.slice(0,t):[]},e.prototype.getEndRows=function(){var t=(this.spreadsheet.options||{}).frozenTrailingRowCount;return t?this.displayData.slice(-t):[]},e.prototype.getMovableRows=function(){var t=this.displayData,e=this.spreadsheet.options||{},n=e.frozenTrailingRowCount,r=e.frozenRowCount;return t.slice(r||0,-n||void 0)},e.prototype.getDimensionValues=function(t,e){return[]},e.prototype.getCellData=function(t){var e=t.query;if(0!==this.displayData.length||0!==e.rowIndex){var n=this.displayData[e.rowIndex];return"col"in e?n[e.col]:n}},e.prototype.getMultiData=function(t,e){return this.displayData},e}(CC),AC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),e.prototype.getCellData=function(t){var e=t.query,n=this.fields,r=n.columns,i=n.rows,o=bw({rowDimensionValues:_w(i,e),colDimensionValues:_w(r,e),rowPivotMeta:this.rowPivotMeta,colPivotMeta:this.colPivotMeta,isFirstCreate:!0,careUndefined:!0,rowFields:i,colFields:r});return ml(this.indexesData,o)},e.prototype.setDataCfg=function(e){t.prototype.setDataCfg.call(this,e),this.sortedDimensionValues={},this.rowPivotMeta=new Map,this.colPivotMeta=new Map;var n=this.fields,r=xw({rows:n.rows,columns:n.columns,originData:this.originData,totalData:[],indexesData:this.indexesData,sortedDimensionValues:this.sortedDimensionValues,rowPivotMeta:this.rowPivotMeta,colPivotMeta:this.colPivotMeta}).indexesData;this.indexesData=r,this.handleDimensionValuesSort()},e.prototype.processDataCfg=function(t){t.fields.rows=[$i],t.fields.valueInCols=!1;var e=t.data,n=Ry(t,["data"]),r=t.fields.values,i=[];return Wf(e,(function(t){bp(Jd(Vu(t),r))?i.push(t):Wf(r,(function(e){var n;Fd(t,e)&&i.push(Ly(Ly({},t),((n={})[$i]=e,n[Xi]=t[e],n)))}))})),Ly({data:_m(i)},n)},e}(EC);!function(t){t.ScrollChange="scroll-change",t.ScrollEnd="scroll-end"}(qS||(qS={}));var MC=function(t){function e(e){var n=t.call(this,e)||this;n.isMobile=!1,n.eventHandlers=[],n.scrollFrameId=null,n.getCoordinatesName=function(){return{from:n.isHorizontal?"x1":"y1",to:n.isHorizontal?"x2":"y2"}},n.getCoordinatesWithBBoxExtraPadding=function(){var t=n.theme.size,e=n.isHorizontal?0:t/2,r=n.isHorizontal?t:t/2;return{start:n.thumbOffset+e,end:n.thumbOffset+n.thumbLen-r}},n.current=function(){var t=n.thumbLen/n.trackLen;return n.thumbOffset/n.trackLen/(1-t)},n.updateThumbLen=function(t){if(n.thumbLen!==t){n.thumbLen=t;var e=n.getCoordinatesName();n.thumbShape.attr(e.to,n.thumbOffset+t),n.emitScrollChange(n.thumbOffset/(n.trackLen-n.thumbLen)*n.scrollTargetMaxOffset,!1)}},n.updateThumbOffset=function(t,e){var r;void 0===e&&(e=!0);var i=n.validateRange(t);if(!(n.thumbOffset===i&&0!==i)){n.thumbOffset=i;var o=n.getCoordinatesName(),a=o.from,s=o.to,u=n.getCoordinatesWithBBoxExtraPadding(),l=u.start,c=u.end;n.thumbShape.attr(((r={})[a]=l,r[s]=c,r)),e&&n.emitScrollChange(i/(n.trackLen-n.thumbLen)*n.scrollTargetMaxOffset,!1)}},n.onlyUpdateThumbOffset=function(t){var e;n.updateThumbOffset(t,!1),null===(e=n.get("canvas"))||void 0===e||e.draw()},n.emitScrollChange=function(t,e){void 0===e&&(e=!0),cancelAnimationFrame(n.scrollFrameId),n.scrollFrameId=requestAnimationFrame((function(){n.emit(qS.ScrollChange,{offset:t,updateThumbOffset:e})}))},n.addEventListener=function(t,e,n){return null==t||t.addEventListener(e,n,!1),{remove:function(){null==t||t.removeEventListener(e,n,!1)}}},n.addEvent=function(t,e,r){t.on(e,r),n.eventHandlers.push({target:t,type:e,handler:r})},n.initScrollBar=function(){n.scrollBarGroup=n.createScrollBarGroup(),n.scrollBarGroup.move(n.position.x,n.position.y),n.bindEvents()},n.createScrollBarGroup=function(){var t=n.addGroup({className:n.isHorizontal?"horizontalBar":"verticalBar"});return n.trackShape=n.createTrackShape(t),n.thumbShape=n.createThumbShape(t),t},n.createTrackShape=function(t){var e=n.theme,r=e.lineCap,i=void 0===r?"round":r,o=e.trackColor,a=e.size,s={lineWidth:a,stroke:o,lineCap:i};return n.isHorizontal?t.addShape("line",{attrs:Ly(Ly({},s),{x1:0,y1:a/2,x2:n.trackLen,y2:a/2})}):t.addShape("line",{attrs:Ly(Ly({},s),{x1:a/2,y1:0,x2:a/2,y2:n.trackLen})})},n.createThumbShape=function(t){var e=n.theme,r=e.size,i=e.lineCap,o=void 0===i?"round":i,a={lineWidth:r,stroke:e.thumbColor,lineCap:o,cursor:"default"},s=n.getCoordinatesWithBBoxExtraPadding(),u=s.start,l=s.end;return n.isHorizontal?t.addShape("line",{attrs:Ly(Ly({},a),{x1:u,y1:r/2,x2:l,y2:r/2})}):t.addShape("line",{attrs:Ly(Ly({},a),{x1:r/2,y1:u,x2:r/2,y2:l})})},n.bindEvents=function(){n.on("mousedown",n.onStartEvent(!1)),n.on("mouseup",n.onMouseUp),n.on("touchstart",n.onStartEvent(!0)),n.on("touchend",n.onMouseUp),n.trackShape.on("click",n.onTrackClick),n.thumbShape.on("mouseover",n.onTrackMouseOver),n.thumbShape.on("mouseout",n.onTrackMouseOut)},n.onStartEvent=function(t){return function(e){e.preventDefault(),n.isMobile=t;var r=n.isMobile?ml(e,"touches.0",e):e,i=r.clientX,o=r.clientY;n.startPos=n.isHorizontal?i:o,n.bindLaterEvent()}},n.bindLaterEvent=function(){var t=n.get("canvas"),e=document.body,r=[];n.isMobile?(r=[n.addEventListener(e,"touchmove",n.onMouseMove),n.addEventListener(e,"touchend",n.onMouseUp),n.addEventListener(e,"touchcancel",n.onMouseUp)],n.addEvent(t,"touchend",n.onMouseUp),n.addEvent(t,"touchcancel",n.onMouseUp)):(r=[n.addEventListener(e,"mousemove",n.onMouseMove),n.addEventListener(e,"mouseup",n.onMouseUp),n.addEventListener(e,"mouseleave",n.onMouseUp)],n.addEvent(t,"mouseup",n.onMouseUp)),n.clearEvents=function(){r.forEach((function(t){null==t||t.remove()})),Wf(n.eventHandlers,(function(t){var e;null===(e=t.target)||void 0===e||e.off(t.type,t.handler)})),n.eventHandlers.length=0}},n.onTrackClick=function(t){var e=n.isHorizontal?t.x-n.position.x-n.thumbLen/2:t.y-n.position.y-n.thumbLen/2,r=n.validateRange(e);n.updateThumbOffset(r)},n.onMouseMove=function(t){t.preventDefault();var e=n.isMobile?ml(t,"touches.0",t):t,r=e.clientX,i=e.clientY,o=n.isHorizontal?r:i,a=o-n.startPos;n.startPos=o,n.updateThumbOffset(n.thumbOffset+a)},n.onMouseUp=function(t){var e;n.emit(qS.ScrollEnd,{}),t.preventDefault(),null===(e=n.clearEvents)||void 0===e||e.call(n)},n.onTrackMouseOver=function(){var t=n.theme,e=t.thumbHoverColor,r=t.hoverSize;n.thumbShape.attr("stroke",e),n.thumbShape.attr("lineWidth",r)},n.onTrackMouseOut=function(){var t=n.theme,e=t.thumbColor,r=t.size;n.thumbShape.attr("stroke",e),n.thumbShape.attr("lineWidth",r)},n.validateRange=function(t){var e=t;return t+n.thumbLen>n.trackLen?e=n.trackLen-n.thumbLen:t+n.thumbLen<n.thumbLen&&(e=0),e};var r=e.isHorizontal,i=void 0!==r&&r,o=e.trackLen,a=e.thumbLen,s=e.position,u=e.minThumbLen,l=void 0===u?jy:u,c=e.thumbOffset,h=void 0===c?0:c,f=e.theme,d=e.scrollTargetMaxOffset;return n.isHorizontal=i,n.thumbOffset=h,n.trackLen=o,n.thumbLen=a,n.position=s,n.minThumbLen=l,n.theme=f,n.scrollTargetMaxOffset=d,n.initScrollBar(),n}return Py(e,t),e}(gi),IC=function(t,e,n){return t.filter((function(t){return t.level>=e})).map((function(t){return t[n]})).reduce((function(t,e){return t+e}),0)},jC=function(t,e,n){if(n<=0)return{start:0,end:0};var r=gd(t,(function(n,r){return e>=n&&e<t[r+1]}),0);r=Math.max(r,0);var i=n===e?r:gd(t,(function(e,r){return n>e&&n<=t[r+1]}),r);return{start:r,end:i=Math.min(-1===i?1/0:i,t.length-2)}},kC=function(t,e){var n=e.width,r=e.originalWidth,i=Math.min(r-n,t);return i<0?0:i},PC=function(t,e,n){var r=Math.min(e-n,t);return r<0?0:r},LC=function(t,e){if(void 0===t&&(t=[]),bp(t))return[];var n=[];return t.forEach((function(t){(t instanceof e&&n.push(t),t instanceof gi)&&t.getChildren().forEach((function(t){t instanceof e&&n.push(t)}))})),n},RC=function(t,e,n){return n.slice(t,e+1).map((function(t){return t.x+t.width}))},DC=function(t,e,n){for(var r=[],i=t;i<e+1;i++)r.push(n.getCellOffsetY(i+1));return r},NC=function(t,e,n){var r=Ny(n,4),i=r[0],o=r[1],a=r[2],s=r[3];return t>=i&&t<=o&&e>=a&&e<=s},BC=function(t){for(var e=Ny(t,4),n=e[0],r=e[1],i=e[2],o=e[3],a=[],s=n;s<=r;s+=1)for(var u=i;u<=o;u+=1)a.push([s,u]);return a},FC=function(t,e){var n=[],r=[];return Object.keys(e).forEach((function(i){var o=function(t,e){var n=[],r=[];if(bp(t))return bp(e)?{add:n,remove:r}:{add:BC(e),remove:r};if(bp(e))return{add:n,remove:BC(t)};for(var i=Ny(t,4),o=i[0],a=i[1],s=i[2],u=i[3],l=Ny(e,4),c=l[0],h=l[1],f=l[2],d=l[3],p=o;p<=a;p++)for(var g=s;g<=u;g++)NC(p,g,e)||r.push([p,g]);for(p=c;p<=h;p+=1)for(g=f;g<=d;g+=1)NC(p,g,t)||n.push([p,g]);return{add:n,remove:r}}((null==t?void 0:t[i])||[],e[i]),a=o.add,s=o.remove;n.push.apply(n,By([],Ny(a),!1)),r.push.apply(r,By([],Ny(s),!1))})),{add:n,remove:r}},zC=function(t,e){void 0===e&&(e=!1),this.x=0,this.y=0,this.minX=0,this.minY=0,this.maxX=0,this.maxY=0,this.width=0,this.height=0,this.originalWidth=0,this.originalHeight=0,this.viewportHeight=0,this.viewportWidth=0,this.facet=t,this.spreadsheet=t.spreadsheet,this.layoutResult=t.layoutResult,e&&this.calculateBBox()},VC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),e.prototype.calculateBBox=function(){var t=this.getCornerBBoxWidth(),e=this.getCornerBBoxHeight();this.width=t,this.height=e,this.maxX=t,this.maxY=e},e.prototype.getCornerBBoxHeight=function(){var t=this.layoutResult.colsHierarchy;return this.originalHeight=Math.floor(t.height),this.originalHeight},e.prototype.getCornerBBoxWidth=function(){var t=this.layoutResult.rowsHierarchy;return this.originalWidth=Math.floor(t.width+this.facet.getSeriesNumberWidth()),this.spreadsheet.isScrollContainsRowHeader()?this.originalWidth:this.adjustCornerBBoxWidth()},e.prototype.adjustCornerBBoxWidth=function(){var t=this.layoutResult.colsHierarchy,e=this.spreadsheet.options.width,n=e*$o,r=null==t?void 0:t.width,i=e-this.originalWidth;if(this.originalWidth<=n||r<=i)return this.originalWidth;var o=0;return o=r<=e-n?this.originalWidth-(r-i):n,Math.floor(o)},e}(zC),UC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),e.prototype.calculateBBox=function(){this.originalWidth=this.facet.getRealWidth(),this.originalHeight=this.facet.getRealHeight();var t=this.facet.cornerBBox,e={x:Math.floor(t.maxX),y:Math.floor(t.maxY)},n=this.spreadsheet.theme.scrollBar.size,r=this.spreadsheet.options,i=r.width,o=r.height,a=Math.max(0,i-e.x),s=Math.max(0,o-e.y-n);this.x=e.x,this.y=e.y,this.width=a,this.height=s,this.viewportHeight=Math.abs(Math.floor(Math.min(s,this.originalHeight))),this.viewportWidth=Math.abs(Math.floor(Math.min(a,this.originalWidth))),this.maxX=e.x+this.viewportWidth,this.maxY=e.y+this.viewportHeight,this.minX=e.x,this.minY=e.y;var u=this.spreadsheet.options,l=u.frozenTrailingColCount,c=u.frozenTrailingRowCount;l>0&&(this.viewportWidth=this.width,this.maxX=e.x+this.width),c>0&&(this.viewportHeight=this.height,this.maxY=e.y+this.height)},e}(zC),GC=function(t){function e(e){var n=t.call(this,e)||this;return n.isHeaderCellInViewport=function(t,e,n,r){return t+e>=n&&n+r>=t},n.headerConfig=e,n}return Py(e,t),e.prototype.clearResizeAreaGroup=function(t){var e=this.get("parent"),n=null==e?void 0:e.findById(t);null==n||n.clear()},e.prototype.render=function(t){this.clearResizeAreaGroup(t),this.clear(),this.layout(),this.offset(),this.clip()},e.prototype.onScrollXY=function(t,e,n){this.headerConfig.scrollX=t,this.headerConfig.scrollY=e,this.render(n)},e.prototype.onRowScrollX=function(t,e){this.headerConfig.scrollX=t,this.render(e)},e.prototype.clear=function(){t.prototype.clear.call(this)},e}(gi),HC=function(t){function e(e){var n=t.call(this,e)||this;return n.scrollGroup=n.addGroup({name:Ao,zIndex:to}),n}return Py(e,t),e.prototype.onColScroll=function(t,e){this.headerConfig.scrollX!==t&&(this.headerConfig.scrollX=t,this.render(e))},e.prototype.clip=function(){var t=this.headerConfig,e=t.width,n=t.height,r=t.scrollX,i=t.spreadsheet.isFrozenRowHeader();this.scrollGroup.setClip({type:"rect",attrs:{x:i?r:0,y:0,width:i?e:e+r,height:n}})},e.prototype.clear=function(){var t,e;null===(t=this.scrollGroup)||void 0===t||t.clear(),null===(e=this.background)||void 0===e||e.remove(!0)},e.prototype.getCellInstance=function(t,e,n){return new Nw(t,e,n)},e.prototype.getCellGroup=function(t){return this.scrollGroup},e.prototype.isColCellInRect=function(t){var e=this.headerConfig,n=e.spreadsheet,r=e.cornerWidth,i=e.width,o=e.scrollX;return i+o>t.x&&o-(n.isFrozenRowHeader()?0:r)<t.x+t.width},e.prototype.layout=function(){var t=this,e=this.headerConfig,n=e.data,r=e.spreadsheet,i=r.options.colCell;Wf(n,(function(e){var n=e;if(t.isColCellInRect(n)){var o=(null==i?void 0:i(n,r,t.headerConfig))||t.getCellInstance(n,r,t.headerConfig);n.belongsCell=o,t.getCellGroup(n).add(o)}}))},e.prototype.offset=function(){var t=this.headerConfig,e=t.position,n=t.scrollX;Nb(this.scrollGroup,e.x-n)},e}(GC),WC=function(t){function e(e){return t.call(this,e)||this}return Py(e,t),e.getCornerHeader=function(t,n,r,i,o,a){var s=t.width,u=t.height,l=n.originalWidth,c=n.originalHeight,h=n.width,f=n.height;return new e({data:this.getCornerNodes({x:n.x,y:n.y},l,c,i.rows,i.columns,o.rowsHierarchy,o.colsHierarchy,i.dataSet,r,a),position:{x:n.x,y:n.y},width:h,height:f,originalHeight:c,originalWidth:l,viewportWidth:s,viewportHeight:u,hierarchyType:i.hierarchyType,hierarchyCollapse:i.hierarchyCollapse,rows:i.rows,columns:i.columns,seriesNumberWidth:r,spreadsheet:a})},e.getCornerNodes=function(t,e,n,r,i,o,a,s,u,l){var c,h,f,d,p=[];if(u&&(null==a?void 0:a.sampleNodeForLastLevel)){var g=new bb({id:"",key:ko,value:nb("序号")});g.x=null==t?void 0:t.x,g.y=null===(c=null==a?void 0:a.sampleNodeForLastLevel)||void 0===c?void 0:c.y,g.width=u,g.height=null===(h=null==a?void 0:a.sampleNodeForLastLevel)||void 0===h?void 0:h.height,g.isPivotMode=!0,g.cornerType=t_.Series,p.push(g)}if(null==a?void 0:a.sampleNodeForLastLevel)if(l.isHierarchyTreeType()){var v=l.store.get("drillDownFieldInLevel",[]).map((function(t){return t.drillField})),m=new bb({key:"",id:"",value:r.filter((function(t){return!Xd(v,t)})).map((function(t){return s.getFieldName(t)})).join("/")});m.x=t.x+u,m.y=null===(f=null==a?void 0:a.sampleNodeForLastLevel)||void 0===f?void 0:f.y,m.width=e-u,m.height=null===(d=null==a?void 0:a.sampleNodeForLastLevel)||void 0===d?void 0:d.height,m.seriesNumberWidth=u,m.isPivotMode=!0,m.spreadsheet=l,m.cornerType=t_.Row,p.push(m)}else o.sampleNodesForAllLevels.forEach((function(t){var e=r[t.level],n=new bb({key:e,id:"",value:s.getFieldName(e)});n.x=t.x+u,n.y=a.sampleNodeForLastLevel.y,n.width=t.width,n.height=a.sampleNodeForLastLevel.height,n.field=e,n.isPivotMode=!0,n.cornerType=t_.Row,n.spreadsheet=l,p.push(n)}));return a.sampleNodesForAllLevels.forEach((function(n){if(n.level<a.maxLevel){var r=i[n.level],o=new bb({key:r,id:"",value:s.getFieldName(r)});o.x=t.x,o.y=n.y,o.width=e,o.height=n.height,o.field=r,o.isPivotMode=!0,o.cornerType=t_.Col,o.spreadsheet=l,p.push(o)}})),p},e.prototype.onCorScroll=function(t,e){this.headerConfig.scrollX=t,this.render(e)},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.layout=function(){this.renderCells()},e.prototype.renderCells=function(){var t,e,n,r,i=this,o=this.headerConfig,a=o.data,s=o.spreadsheet,u=null===(e=null===(t=null==s?void 0:s.facet)||void 0===t?void 0:t.cfg)||void 0===e?void 0:e.cornerHeader,l=null===(r=null===(n=null==s?void 0:s.facet)||void 0===n?void 0:n.cfg)||void 0===r?void 0:r.cornerCell;u?u(this,s,this.headerConfig):a.forEach((function(t){var e;l&&(e=l(t,i.headerConfig.spreadsheet,i.headerConfig)),bp(e)&&(e=new Bw(t,i.headerConfig.spreadsheet,i.headerConfig)),i.add(e)}))},e.prototype.offset=function(){var t=this.headerConfig.scrollX;Nb(this,-t)},e.prototype.clip=function(){var t=this.headerConfig,e=t.width,n=t.height,r=t.scrollX;this.setClip({type:"rect",attrs:{x:r,y:0,width:e,height:n}})},e}(GC),YC=function(t){function e(e){var n=t.call(this,e)||this;return n.render(),n}return Py(e,t),e.prototype.layout=function(){this.addCornerBottomBorder(),this.addCornerRightBorder(),this.addSplitLineShadow()},e.prototype.render=function(){this.clear(),this.layout()},e.prototype.onBorderScroll=function(t){this.cfg.scrollX=t;var e=this.cfg.position;Db(this,e.x-t,0),this.render()},e.prototype.onChangeShadowVisibility=function(t,e){this.cfg.showViewportLeftShadow=t>0,this.cfg.showViewportRightShadow=Math.floor(t)<Math.floor(e),this.render()},e.prototype.addCornerRightBorder=function(){var t,e=this.cfg;if(e.isPivotMode){var n=e.width,r=e.height,i=e.viewportHeight,o=e.position,a=null===(t=e.spreadsheet.theme)||void 0===t?void 0:t.splitLine,s=o.x+n,u=o.y,l=o.y+r+i;this.addShape("line",{attrs:{x1:s,y1:u,x2:s,y2:l,stroke:a.verticalBorderColor,lineWidth:a.verticalBorderWidth,opacity:a.verticalBorderColorOpacity}})}},e.prototype.addCornerBottomBorder=function(){var t,e=this.cfg,n=e.width,r=e.height,i=e.viewportWidth,o=e.position,a=e.scrollX,s=e.scrollContainsRowHeader,u=null===(t=e.spreadsheet.theme)||void 0===t?void 0:t.splitLine,l=o.x,c=l+n+i+(s?a:0),h=o.y+r-1;this.addShape("line",{attrs:{x1:l,y1:h,x2:c,y2:h,stroke:u.horizontalBorderColor,lineWidth:u.horizontalBorderWidth,opacity:u.horizontalBorderColorOpacity}})},e.prototype.addSplitLineShadow=function(){var t,e=this.cfg,n=e.isPivotMode,r=e.spreadsheet,i=null===(t=r.theme)||void 0===t?void 0:t.splitLine;n&&i.showShadow&&r.isFrozenRowHeader()&&(this.addSplitLineLeftShadow(),this.addSplitLineRightShadow())},e.prototype.addSplitLineLeftShadow=function(){var t,e,n;if(this.cfg.showViewportLeftShadow){var r=this.cfg,i=r.width,o=r.height,a=r.viewportHeight,s=r.position,u=null===(t=r.spreadsheet.theme)||void 0===t?void 0:t.splitLine,l=s.x+i,c=s.y;this.addShape("rect",{attrs:{x:l,y:c,width:u.shadowWidth,height:a+o,fill:"l (0) 0:".concat(null===(e=u.shadowColors)||void 0===e?void 0:e.left," 1:").concat(null===(n=u.shadowColors)||void 0===n?void 0:n.right)}})}},e.prototype.addSplitLineRightShadow=function(){var t,e,n;if(this.cfg.showViewportRightShadow){var r=this.cfg,i=r.width,o=r.height,a=r.viewportHeight,s=r.viewportWidth,u=r.position,l=null===(t=r.spreadsheet.theme)||void 0===t?void 0:t.splitLine,c=u.x+i+s-l.shadowWidth,h=u.y;this.addShape("rect",{attrs:{x:c,y:h,width:l.shadowWidth,height:a+o,fill:"l (0) 0:".concat(null===(e=l.shadowColors)||void 0===e?void 0:e.right," 1:").concat(null===(n=l.shadowColors)||void 0===n?void 0:n.left)}})}},e}(gi),XC=function(t){function e(e){return t.call(this,e)||this}return Py(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gm&&this.gm.destroy()},e.prototype.layout=function(){var t,e,n=this,r=this.headerConfig,i=r.data,o=r.spreadsheet,a=r.width,s=r.viewportHeight,u=r.seriesNumberWidth,l=r.scrollY,c=r.scrollX,h=null===(e=null===(t=null==o?void 0:o.facet)||void 0===t?void 0:t.cfg)||void 0===e?void 0:e.rowCell;Wf(i,(function(t){if(function(t){return s+l>t.y&&l<t.y+t.height&&a-u+c>t.x&&c-u<t.x+t.width}(t)&&0!==t.height){var e=void 0;h&&(e=h(t,o,n.headerConfig)),bp(e)&&o.isPivotMode()&&(e=new qw(t,o,n.headerConfig)),t.belongsCell=e,n.add(e)}}))},e.prototype.offset=function(){var t=this.headerConfig,e=t.scrollX,n=t.scrollY,r=t.position,i=t.seriesNumberWidth;Db(this,r.x-e+i,r.y-n)},e.prototype.clip=function(){var t=this.headerConfig,e=t.width,n=t.viewportHeight,r=t.scrollX,i=t.scrollY,o=t.seriesNumberWidth;this.setClip({type:"rect",attrs:{x:r-o,y:i,width:e,height:n}})},e}(GC),$C=function(t){function e(e){return t.call(this,e)||this}return Py(e,t),e.getSeriesNumberHeader=function(t,n,r,i,o){var a=t.height,s=t.viewportHeight,u=[],l=i.isHierarchyTreeType();return r.forEach((function(t){if(!t.isTotals||l){var e=new bb({id:"",key:"",value:"".concat(u.length+1)});e.x=t.x,e.y=t.y,e.height=t.height,e.width=n,u.push(e)}})),new e({width:o,height:a,viewportWidth:o,viewportHeight:s,position:{x:0,y:t.y},data:u,spreadsheet:i})},e.prototype.clip=function(){var t=this.headerConfig,e=t.width,n=t.viewportHeight,r=t.scrollY;this.setClip({type:"rect",attrs:{x:0,y:r,width:e,height:n}})},e.prototype.layout=function(){var t=this,e=this.headerConfig,n=e.data,r=e.scrollY,i=e.viewportHeight;e.spreadsheet.isPivotMode&&this.addBackGround();var o=this.addGroup();Wf(n,(function(e){var n=e.y,a=e.height,s=e.isLeaf;if(t.isHeaderCellInViewport(n,a,r,i)){var u=t.addGroup();t.addText(u,e),t.add(u),s||t.addBorder(o,e)}}))},e.prototype.offset=function(){var t=this.headerConfig,e=t.scrollY,n=t.scrollX,r=t.position;Db(this,r.x-n,r.y-e),this.backgroundShape&&this.backgroundShape.translate(r.x,r.y+e),this.leftBorderShape&&this.leftBorderShape.translate(r.x,r.y+e)},e.prototype.addBackGround=function(){var t=this.getStyle().cell,e=this.headerConfig,n=e.position,r=e.width,i=e.viewportHeight;this.backgroundShape=g_(this,{x:n.x,y:-n.y,width:r,height:i,fill:t.backgroundColor,stroke:"transparent",opacity:t.backgroundColorOpacity});var o=U_(Qb.LEFT,{x:n.x,y:-n.y,width:r,height:i},t),a=o.position,s=o.style;this.leftBorderShape=__(this,a,s)},e.prototype.addBorder=function(t,e){var n=this.getStyle().cell,r=U_(Qb.BOTTOM,e,n);__(t,r.position,r.style)},e.prototype.getStyle=function(){return this.headerConfig.spreadsheet.theme.rowCell},e.prototype.addText=function(t,e){var n=this.headerConfig,r=n.scrollY,i=n.viewportHeight,o=Ly(Ly({},this.getStyle().seriesText),{textBaseline:"top"}),a=e.label,s=e.x,u=e.y,l=e.width,c=e.height,h=this.getTextPadding(a,l),f=$w(u+h.top,c-h.top-h.bottom,r,i,o.fontSize);t.addShape("text",{attrs:Ly(Ly({x:s+h.left,y:f,text:a},o),{cursor:"pointer"})})},e.prototype.getTextPadding=function(t,e){var n=this.getStyle(),r=this.headerConfig.spreadsheet.measureTextWidth(t,n.seriesText),i=Math.max(Math.abs((e-r)/2),4);return Ly(Ly({},n.cell.padding),{left:i,right:i})},e}(GC),qC=function(){function t(t){var e=this;this.scrollFrameId=null,this.hideScrollBar=function(){var t,n,r;null===(t=e.hRowScrollBar)||void 0===t||t.hide(),null===(n=e.hScrollBar)||void 0===n||n.hide(),null===(r=e.vScrollBar)||void 0===r||r.hide()},this.delayHideScrollBar=xf(this.hideScrollBar,1e3),this.delayHideScrollbarOnMobile=function(){pb()&&e.delayHideScrollBar()},this.showVerticalScrollBar=function(){var t;null===(t=e.vScrollBar)||void 0===t||t.show()},this.showHorizontalScrollBar=function(){var t,n;null===(t=e.hRowScrollBar)||void 0===t||t.show(),null===(n=e.hScrollBar)||void 0===n||n.show()},this.onContainerWheel=function(){e.onContainerWheelForPc(),e.onContainerWheelForMobile()},this.onContainerWheelForPc=function(){var t=e.spreadsheet.getCanvasElement();null==t||t.addEventListener("wheel",e.onWheel)},this.onContainerWheelForMobile=function(){e.mobileWheel=new Xw(e.spreadsheet.container),e.mobileWheel.on("wheel",(function(t){e.spreadsheet.hideTooltip();var n=t.event,r=t.deltaX,i=t.deltaY,o=t.x,a=t.y;e.onWheel(Ly(Ly({},n),{deltaX:r,deltaY:i,offsetX:o,offsetY:a}))}))},this.bindEvents=function(){e.onContainerWheel(),e.emitPaginationEvent()},this.setScrollOffset=function(t){Object.keys(t).forEach((function(n){var r=t[n];Mp(r)||e.spreadsheet.store.set(n,Math.floor(r))}))},this.getScrollOffset=function(){var t=e.spreadsheet.store;return{scrollX:t.get("scrollX",0),scrollY:t.get("scrollY",0),hRowScrollX:t.get("hRowScrollX",0)}},this.emitPaginationEvent=function(){var t=e.cfg.pagination;if(t){var n=t.current,r=void 0===n?db:n,i=t.pageSize,o=e.viewCellHeights.getTotalLength(),a=Math.floor((o-1)/i)+1;e.cfg.spreadsheet.emit(Hi.LAYOUT_PAGINATION,{pageSize:i,pageCount:a,total:o,current:r})}},this.unbindEvents=function(){var t=e.spreadsheet.getCanvasElement();null==t||t.removeEventListener("wheel",e.onWheel),e.mobileWheel.destroy()},this.clipPanelGroup=function(){var t;e.foregroundGroup=e.spreadsheet.foregroundGroup,e.backgroundGroup=e.spreadsheet.backgroundGroup,e.panelGroup=e.spreadsheet.panelGroup;var n=e.panelBBox,r=n.width,i=n.height;null===(t=e.spreadsheet.panelScrollGroup)||void 0===t||t.setClip({type:"rect",attrs:{x:0,y:e.cornerBBox.height,width:r,height:i}})},this.calculateCellWidthHeight=function(){var t=fv(e.layoutResult.colLeafNodes,(function(t,e){return t.push(Ff(t)+e.width),t}),[0]);e.viewCellWidths=t,e.viewCellHeights=e.getViewCellHeights(e.layoutResult)},this.getRealScrollX=function(t,n){return void 0===n&&(n=0),e.cfg.spreadsheet.isScrollContainsRowHeader()?t:n},this.calculatePanelBBox=function(){e.panelBBox=new UC(e,!0)},this.getRealWidth=function(){return Ff(e.viewCellWidths)},this.getRealHeight=function(){var t=e.cfg.pagination,n=e.viewCellHeights;if(t){var r=e.getCellRange(),i=r.start,o=r.end;return n.getCellOffsetY(o+1)-n.getCellOffsetY(i)}return n.getTotalHeight()},this.clearAllGroup=function(){for(var t=e.panelGroup.getChildren()||[],n=t.length-1;n>=0;n--){var r=t[n];r instanceof gi?r.set("children",[]):t[n].remove()}e.foregroundGroup.set("children",[]),e.backgroundGroup.set("children",[])},this.scrollWithAnimation=function(t,n,r){var i,o;void 0===t&&(t={}),void 0===n&&(n=200);var a=e.getAdjustedScrollOffset({scrollX:(null===(i=t.offsetX)||void 0===i?void 0:i.value)||0,scrollY:(null===(o=t.offsetY)||void 0===o?void 0:o.value)||0}),s=a.scrollX,u=a.scrollY;e.timer&&e.timer.stop();var l=Object.values(e.getScrollOffset()),c=Ze(l,[void 0===s?l[0]:s,void 0===u?l[1]:u]);e.timer=he((function(t){var i=Math.min(t/n,1),o=Ny(c(i),2),a=o[0],s=o[1];e.setScrollOffset({scrollX:a,scrollY:s}),e.startScroll(),t>n&&(e.timer.stop(),null==r||r())}))},this.scrollImmediately=function(t){var n,r;void 0===t&&(t={});var i=e.getAdjustedScrollOffset({scrollX:(null===(n=t.offsetX)||void 0===n?void 0:n.value)||0,scrollY:(null===(r=t.offsetY)||void 0===r?void 0:r.value)||0}),o=i.scrollX,a=i.scrollY;e.setScrollOffset({scrollX:o,scrollY:a}),e.startScroll()},this.startScroll=function(t){var n,r;void 0===t&&(t=!1);var i=e.getScrollOffset(),o=i.scrollX,a=i.scrollY;null===(n=e.hScrollBar)||void 0===n||n.onlyUpdateThumbOffset(e.getScrollBarOffset(o,e.hScrollBar)),null===(r=e.vScrollBar)||void 0===r||r.onlyUpdateThumbOffset(e.getScrollBarOffset(a,e.vScrollBar)),e.dynamicRenderCell(t)},this.getRendererHeight=function(){var t=e.getCellRange(),n=t.start,r=t.end;return e.viewCellHeights.getCellOffsetY(r+1)-e.viewCellHeights.getCellOffsetY(n)},this.getAdjustedScrollOffset=function(t){var n=t.scrollX,r=t.scrollY,i=t.hRowScrollX;return{scrollX:PC(n,e.layoutResult.colsHierarchy.width,e.panelBBox.width),scrollY:PC(r,e.getRendererHeight(),e.panelBBox.height),hRowScrollX:kC(i,e.cornerBBox)}},this.renderRowScrollBar=function(t){if(!e.cfg.spreadsheet.isScrollContainsRowHeader()&&e.cornerBBox.width<e.cornerBBox.originalWidth){var n=e.cornerBBox.originalWidth-e.cornerBBox.width,r=e.getScrollbarPosition().maxY,i=e.spreadsheet.theme.splitLine.verticalBorderWidth,o=e.cornerBBox.width*e.cornerBBox.width/e.cornerBBox.originalWidth,a=o-i;e.hRowScrollBar=new MC({isHorizontal:!0,trackLen:e.cornerBBox.width,thumbLen:a,position:{x:e.cornerBBox.minX+e.scrollBarSize/2,y:r},thumbOffset:t*(e.cornerBBox.width-o)/n,theme:e.scrollBarTheme,scrollTargetMaxOffset:n}),e.hRowScrollBar.on(qS.ScrollChange,(function(t){var r,i,o=t.offset,a=e.getValidScrollBarOffset(o,n),s=Math.floor(a);e.setScrollOffset({hRowScrollX:s}),null===(r=e.rowHeader)||void 0===r||r.onRowScrollX(s,_o),null===(i=e.rowIndexHeader)||void 0===i||i.onRowScrollX(s,Oo),e.cornerHeader.onRowScrollX(s,So);var u=e.getScrollBarOffset(s,e.hRowScrollBar),l={scrollX:u,scrollY:0};e.hRowScrollBar.updateThumbOffset(u,!1),e.spreadsheet.emit(Hi.ROW_CELL_SCROLL,l),e.spreadsheet.emit(Hi.GLOBAL_SCROLL,l)})),e.foregroundGroup.add(e.hRowScrollBar)}},this.getValidScrollBarOffset=function(t,e){return zc(t,0,e)},this.renderHScrollBar=function(t,n,r){if(Math.floor(t)<Math.floor(n)){var i=e.scrollBarSize/2,o=e.getScrollbarPosition().maxY,a=t+(e.cfg.spreadsheet.isScrollContainsRowHeader()?e.cornerBBox.width:0),s={x:e.panelBBox.minX+(e.cfg.spreadsheet.isScrollContainsRowHeader()?-e.cornerBBox.width+i:i),y:o},u=n+(e.cfg.spreadsheet.isScrollContainsRowHeader()?e.cornerBBox.width:0),l=u-a,c=a/u*a;e.hScrollBar=new MC({isHorizontal:!0,trackLen:a,thumbLen:c,position:s,thumbOffset:r*(a-c)/l,theme:e.scrollBarTheme,scrollTargetMaxOffset:l}),e.hScrollBar.on(qS.ScrollChange,(function(t){var n=t.offset,r=t.updateThumbOffset,i=e.getValidScrollBarOffset(n,l);r&&e.hScrollBar.updateThumbOffset(e.getScrollBarOffset(i,e.hScrollBar),!1),e.setScrollOffset({scrollX:i}),e.dynamicRenderCell()})),e.foregroundGroup.add(e.hScrollBar)}},this.getScrollbarPosition=function(){var t=e.panelBBox,n=t.maxX,r=t.maxY,i=e.getCanvasHW(),o=i.width,a=i.height,s=e.spreadsheet.options.interaction.scrollbarPosition===my.CONTENT;return{maxX:(s?n:o)-e.scrollBarSize,maxY:s?r:a-e.scrollBarSize}},this.renderVScrollBar=function(t,n,r){if(t<n){var i=Math.max(t/n*t,jy),o=n-t,a=e.getScrollbarPosition().maxX;e.vScrollBar=new MC({isHorizontal:!1,trackLen:t,thumbLen:i,thumbOffset:r*(t-i)/o,position:{x:a,y:e.panelBBox.minY},theme:e.scrollBarTheme,scrollTargetMaxOffset:o}),e.vScrollBar.on(qS.ScrollChange,(function(t){var n=t.offset,r=t.updateThumbOffset,i=e.getValidScrollBarOffset(n,o);r&&e.vScrollBar.updateThumbOffset(e.getScrollBarOffset(i,e.vScrollBar),!1),e.setScrollOffset({scrollY:i}),e.dynamicRenderCell()})),e.foregroundGroup.add(e.vScrollBar)}},this.getScrollBarOffset=function(t,e){return t*(e.trackLen-e.thumbLen)/e.scrollTargetMaxOffset},this.isScrollOverThePanelArea=function(t){var n=t.offsetX,r=t.offsetY;return n>e.panelBBox.minX&&n<e.panelBBox.maxX&&r>e.panelBBox.minY&&r<e.panelBBox.maxY},this.isScrollOverTheCornerArea=function(t){var n=t.offsetX,r=t.offsetY;return n>e.cornerBBox.minX&&n<e.cornerBBox.maxX&&r>e.cornerBBox.minY&&r<e.cornerBBox.maxY+e.panelBBox.height},this.updateHorizontalRowScrollOffset=function(t){var n,r=t.offset,i=t.offsetX,o=t.offsetY;e.isScrollOverTheCornerArea({offsetX:i,offsetY:o})&&(null===(n=e.hRowScrollBar)||void 0===n||n.emitScrollChange(r))},this.updateHorizontalScrollOffset=function(t){var n,r=t.offset,i=t.offsetX,o=t.offsetY;e.hRowScrollBar&&!e.isScrollOverThePanelArea({offsetX:i,offsetY:o})||null===(n=e.hScrollBar)||void 0===n||n.emitScrollChange(r)},this.isScrollToLeft=function(t){var n=t.deltaX,r=t.offsetX,i=t.offsetY;if(!e.hScrollBar&&!e.hRowScrollBar)return!0;var o=!e.hRowScrollBar||e.isScrollOverThePanelArea({offsetY:i,offsetX:r})||e.hRowScrollBar.thumbOffset<=0,a=!e.hScrollBar||e.hScrollBar.thumbOffset<=0;return n<=0&&a&&o},this.isScrollToRight=function(t){var n,r,i,o,a,s,u=t.deltaX,l=t.offsetX,c=t.offsetY;if(!e.hScrollBar&&!e.hRowScrollBar)return!0;var h=e.spreadsheet.isFrozenRowHeader()?null===(n=e.panelBBox)||void 0===n?void 0:n.width:null===(r=e.panelBBox)||void 0===r?void 0:r.maxX,f=!e.hRowScrollBar||e.isScrollOverThePanelArea({offsetY:c,offsetX:l})||(null===(i=e.hRowScrollBar)||void 0===i?void 0:i.thumbOffset)+(null===(o=e.hRowScrollBar)||void 0===o?void 0:o.thumbLen)>=e.cornerBBox.width,d=e.hRowScrollBar&&e.isScrollOverTheCornerArea({offsetX:l,offsetY:c})||(null===(a=e.hScrollBar)||void 0===a?void 0:a.thumbOffset)+(null===(s=e.hScrollBar)||void 0===s?void 0:s.thumbLen)>=h;return u>=0&&d&&f},this.isScrollToTop=function(t){var n;return!e.vScrollBar||t<=0&&(null===(n=e.vScrollBar)||void 0===n?void 0:n.thumbOffset)<=0},this.isScrollToBottom=function(t){var n,r,i;return!e.vScrollBar||t>=0&&(null===(n=e.vScrollBar)||void 0===n?void 0:n.thumbOffset)+(null===(r=e.vScrollBar)||void 0===r?void 0:r.thumbLen)>=(null===(i=e.panelBBox)||void 0===i?void 0:i.height)},this.isVerticalScrollOverTheViewport=function(t){return!e.isScrollToTop(t)&&!e.isScrollToBottom(t)},this.isHorizontalScrollOverTheViewport=function(t){return!e.isScrollToLeft(t)&&!e.isScrollToRight(t)},this.isScrollOverTheViewport=function(t){var n=t.deltaY,r=t.deltaX;return!(t.offsetY<=e.cornerBBox.maxY)&&(0!==n?e.isVerticalScrollOverTheViewport(n):0!==r&&e.isHorizontalScrollOverTheViewport(t))},this.cancelScrollFrame=function(){return(!pb()||!e.scrollFrameId)&&(cancelAnimationFrame(e.scrollFrameId),!0)},this.clearScrollFrameIdOnMobile=function(){pb()&&(e.scrollFrameId=null)},this.stopScrollChainingIfNeeded=function(t){"auto"!==e.spreadsheet.options.interaction.overscrollBehavior&&e.stopScrollChaining(t)},this.stopScrollChaining=function(t){var e,n,r;null===(e=null==t?void 0:t.preventDefault)||void 0===e||e.call(t),null===(r=null===(n=null==t?void 0:t.originalEvent)||void 0===n?void 0:n.preventDefault)||void 0===r||r.call(n)},this.onWheel=function(t){var n=e.spreadsheet.options.interaction,r=t.deltaX,i=t.deltaY,o=t.offsetX,a=t.offsetY,s=Ny(function(t,e,n){var r=Math.abs(t/e),i=r>2?0:e;return[(r<=.5?0:t)*n.horizontal,i*n.vertical]}(r,i,n.scrollSpeedRatio),2),u=s[0],l=s[1];e.spreadsheet.hideTooltip(),e.spreadsheet.interaction.clearHoverTimer(),e.isScrollOverTheViewport({deltaX:u,deltaY:l,offsetX:o,offsetY:a})?(e.stopScrollChaining(t),e.spreadsheet.interaction.addIntercepts([fy.HOVER]),e.cancelScrollFrame()&&(e.scrollFrameId=requestAnimationFrame((function(){var t,n=e.getScrollOffset(),r=n.scrollX,i=n.scrollY,s=n.hRowScrollX;0!==u&&(e.showHorizontalScrollBar(),e.updateHorizontalRowScrollOffset({offsetX:o,offsetY:a,offset:u+s}),e.updateHorizontalScrollOffset({offsetX:o,offsetY:a,offset:u+r})),0!==l&&(e.showVerticalScrollBar(),null===(t=e.vScrollBar)||void 0===t||t.emitScrollChange(l+i)),e.delayHideScrollbarOnMobile(),e.clearScrollFrameIdOnMobile()})))):e.stopScrollChainingIfNeeded(t)},this.addCell=function(t){var n=e.spreadsheet.panelScrollGroup;null==n||n.add(t)},this.realCellRender=function(t,n){var r=e.calculateXYIndexes(t,n);Xb.getInstance().logger("renderIndex:",e.preCellIndexes,r);var i=FC(e.preCellIndexes,r),o=i.add,a=i.remove;Xb.getInstance().debugCallback(Yb,(function(){Wf(o,(function(t){var n=Ny(t,2),r=n[0],i=n[1],o=e.layoutResult.getCellMeta(i,r);if(o){var a=e.cfg.dataCell(o);a.set("name","".concat(r,"-").concat(i)),e.addCell(a)}}));var t=LC(e.panelGroup.getChildren(),Hx);Wf(a,(function(e){var n=Ny(e,2),r=n[0],i=n[1],o=vd(t,(function(t){return t.get("name")==="".concat(r,"-").concat(i)}));null==o||o.remove(!0)})),Xb.getInstance().logger("Render Cell Panel: ".concat(null==t?void 0:t.length,", Add: ").concat(null==o?void 0:o.length,", Remove: ").concat(null==a?void 0:a.length))})),e.preCellIndexes=r},this.getGridInfo=function(){var t=Ny(e.preCellIndexes.center,4),n=t[0],r=t[1],i=t[2],o=t[3];return{cols:RC(n,r,e.layoutResult.colLeafNodes),rows:DC(i,o,e.viewCellHeights)}},this.onAfterScroll=xf((function(){e.spreadsheet.interaction.isSelectedState()||e.spreadsheet.interaction.removeIntercepts([fy.HOVER])}),300),this.cfg=t,this.spreadsheet=t.spreadsheet,this.init()}return Object.defineProperty(t.prototype,"scrollBarTheme",{get:function(){return this.spreadsheet.theme.scrollBar},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollBarSize",{get:function(){return this.scrollBarTheme.size},enumerable:!1,configurable:!0}),t.prototype.getCellCustomWidth=function(t,e){return Ga(e)?null==e?void 0:e(t):e},t.prototype.getCellDraggedWidth=function(t){var e=this.cfg.colCfg;return ml(null==e?void 0:e.widthByFieldValue,"".concat(t.value),t.width)},t.prototype.render=function(){this.adjustScrollOffset(),this.renderHeaders(),this.renderScrollBars(),this.renderBackground(),this.dynamicRenderCell()},t.prototype.adjustScrollOffset=function(){var t=this.getAdjustedScrollOffset(this.getScrollOffset()),e=t.scrollX,n=t.scrollY,r=t.hRowScrollX;this.setScrollOffset({scrollX:e,scrollY:n,hRowScrollX:r})},t.prototype.getSeriesNumberWidth=function(){return this.cfg.showSeriesNumber?this.spreadsheet.theme.rowCell.seriesNumberWidth:0},t.prototype.getCanvasHW=function(){return{width:this.cfg.width,height:this.cfg.height}},t.prototype.getContentHeight=function(){var t=this.layoutResult,e=t.rowsHierarchy,n=t.colsHierarchy;return e.height+n.height},t.prototype.updateScrollOffset=function(t){var e,n,r,i;void 0===(null===(e=t.offsetX)||void 0===e?void 0:e.value)?void 0!==(null===(r=t.offsetY)||void 0===r?void 0:r.value)&&((null===(i=t.offsetY)||void 0===i?void 0:i.animate)?this.scrollWithAnimation(t):this.scrollImmediately(t)):(null===(n=t.offsetX)||void 0===n?void 0:n.animate)?this.scrollWithAnimation(t):this.scrollImmediately(t)},t.prototype.getPaginationScrollY=function(){var t=this.cfg.pagination;if(t){var e=t.current,n=void 0===e?db:e,r=t.pageSize,i=this.viewCellHeights,o=Math.max((n-1)*r,0);return i.getCellOffsetY(o)}return 0},t.prototype.destroy=function(){this.unbindEvents(),this.clearAllGroup(),this.preCellIndexes=null,cancelAnimationFrame(this.scrollFrameId)},t.prototype.calculateXYIndexes=function(t,e){var n=this.panelBBox,r=n.viewportHeight,i=n.viewportWidth;return{center:Rb(t,e,this.viewCellWidths,this.viewCellHeights,{width:i,height:r,x:0,y:0},this.getRealScrollX(this.cornerBBox.width))}},t.prototype.calculateCornerBBox=function(){this.cornerBBox=new VC(this,!0)},t.prototype.getCellRange=function(){var t=this.cfg.pagination;return function(t,e){var n=t,r=0,i=n.getTotalLength()-1;if(e){var o=e.current,a=void 0===o?db:o,s=e.pageSize;r=Math.max((a-1)*s,0),i=Math.min(a*s-1,n.getTotalLength()-1)}return{start:r,end:i}}(this.viewCellHeights,t)},t.prototype.clip=function(t,e){var n,r=this.spreadsheet.isFrozenRowHeader();null===(n=this.spreadsheet.panelScrollGroup)||void 0===n||n.setClip({type:"rect",attrs:{x:r?t:0,y:e,width:this.panelBBox.width+(r?0:t),height:this.panelBBox.height}})},t.prototype.translateRelatedGroups=function(t,e,n){var r,i;Db(this.spreadsheet.panelScrollGroup,this.cornerBBox.width-t,this.cornerBBox.height-e),null===(r=this.rowHeader)||void 0===r||r.onScrollXY(this.getRealScrollX(t,n),e,_o),null===(i=this.rowIndexHeader)||void 0===i||i.onScrollXY(this.getRealScrollX(t,n),e,Oo),this.cornerHeader.onCorScroll(this.getRealScrollX(t,n),So),this.centerFrame.onChangeShadowVisibility(t,this.getRealWidth()-this.panelBBox.width),this.centerFrame.onBorderScroll(this.getRealScrollX(t)),this.columnHeader.onColScroll(t,Co)},t.prototype.init=function(){var t=this;Xb.getInstance().debugCallback(Wb,(function(){t.layoutResult=t.doLayout(),t.saveInitColumnLeafNodes(t.layoutResult.colLeafNodes),t.spreadsheet.emit(Hi.LAYOUT_AFTER_HEADER_LAYOUT,t.layoutResult)})),this.calculateCellWidthHeight(),this.calculateCornerBBox(),this.calculatePanelBBox(),this.clipPanelGroup(),this.bindEvents()},t.prototype.renderBackground=function(){var t=this.getCanvasHW(),e=t.width,n=t.height,r=this.spreadsheet.theme.background,i=r.color,o=r.opacity;this.backgroundGroup.addShape("rect",{attrs:{fill:i,opacity:o,x:0,y:0,width:e,height:n}})},t.prototype.renderScrollBars=function(){var t=this.getScrollOffset(),e=t.scrollX,n=t.scrollY,r=t.hRowScrollX,i=this.panelBBox,o=i.width,a=i.height,s=this.layoutResult.colsHierarchy.width,u=this.getRealHeight();this.renderRowScrollBar(r),this.renderHScrollBar(o,s,e),this.renderVScrollBar(a,u,n)},t.prototype.renderHeaders=function(){var t=this.getSeriesNumberWidth();this.rowHeader=this.getRowHeader(),this.columnHeader=this.getColHeader(),t>0&&!this.rowIndexHeader&&(this.rowIndexHeader=this.getSeriesNumberHeader()),this.cornerHeader=this.getCornerHeader(),this.centerFrame=this.getCenterFrame(),this.rowIndexHeader&&this.foregroundGroup.add(this.rowIndexHeader),this.rowHeader&&this.foregroundGroup.add(this.rowHeader),this.foregroundGroup.add(this.columnHeader),this.foregroundGroup.add(this.cornerHeader),this.foregroundGroup.add(this.centerFrame)},t.prototype.getRowHeader=function(){var t,e,n;if(!this.rowHeader){var r=this.panelBBox,i=r.y,o=r.viewportHeight,a=r.viewportWidth,s=r.height,u=this.getSeriesNumberWidth();return new XC({width:this.cornerBBox.width,height:s,viewportWidth:a,viewportHeight:o,position:{x:0,y:i},data:this.layoutResult.rowNodes,hierarchyType:this.cfg.hierarchyType,linkFields:null!==(n=null===(e=null===(t=this.cfg.spreadsheet.options)||void 0===t?void 0:t.interaction)||void 0===e?void 0:e.linkFields)&&void 0!==n?n:[],seriesNumberWidth:u,spreadsheet:this.spreadsheet})}return this.rowHeader},t.prototype.getColHeader=function(){if(!this.columnHeader){var t=this.panelBBox,e=t.x,n=t.width,r=t.viewportHeight,i=t.viewportWidth;return new HC({width:n,cornerWidth:this.cornerBBox.width,height:this.cornerBBox.height,viewportWidth:i,viewportHeight:r,position:{x:e,y:0},data:this.layoutResult.colNodes,scrollContainsRowHeader:this.cfg.spreadsheet.isScrollContainsRowHeader(),sortParam:this.cfg.spreadsheet.store.get("sortParam"),spreadsheet:this.spreadsheet})}return this.columnHeader},t.prototype.getCornerHeader=function(){return this.cornerHeader?this.cornerHeader:WC.getCornerHeader(this.panelBBox,this.cornerBBox,this.getSeriesNumberWidth(),this.cfg,this.layoutResult,this.spreadsheet)},t.prototype.getSeriesNumberHeader=function(){return $C.getSeriesNumberHeader(this.panelBBox,this.getSeriesNumberWidth(),this.layoutResult.rowsHierarchy.getNodes(0),this.spreadsheet,this.cornerBBox.width)},t.prototype.getCenterFrame=function(){var t;if(!this.centerFrame){var e=this.panelBBox,n=e.viewportWidth,r=e.viewportHeight,i=this.cornerBBox.width,o=this.cornerBBox.height,a=null===(t=this.cfg)||void 0===t?void 0:t.frame,s={position:{x:this.cornerBBox.x,y:this.cornerBBox.y},width:i,height:o,viewportWidth:n,viewportHeight:r,showViewportLeftShadow:!1,showViewportRightShadow:!1,scrollContainsRowHeader:this.cfg.spreadsheet.isScrollContainsRowHeader(),isPivotMode:this.cfg.spreadsheet.isPivotMode(),spreadsheet:this.cfg.spreadsheet};return a?a(s):new YC(s)}return this.centerFrame},t.prototype.updatePanelScrollGroup=function(){this.gridInfo=this.getGridInfo(),this.spreadsheet.panelScrollGroup.update(this.gridInfo)},t.prototype.dynamicRenderCell=function(t){var e=this.getScrollOffset(),n=e.scrollX,r=e.scrollY,i=e.hRowScrollX,o=r+this.getPaginationScrollY(),a=PC(o,this.viewCellHeights.getTotalHeight(),this.panelBBox.viewportHeight);this.spreadsheet.hideTooltip(),this.spreadsheet.interaction.clearHoverTimer(),this.realCellRender(n,a),this.updatePanelScrollGroup(),this.translateRelatedGroups(n,a,i),this.clip(n,a),t||this.emitScrollEvent({scrollX:n,scrollY:a}),this.onAfterScroll()},t.prototype.emitScrollEvent=function(t){this.spreadsheet.emit(Hi.LAYOUT_CELL_SCROLL,t),this.spreadsheet.emit(Hi.GLOBAL_SCROLL,t)},t.prototype.saveInitColumnLeafNodes=function(t){void 0===t&&(t=[]);var e=this.spreadsheet,n=e.store,r=e.options.interaction.hiddenColumnFields;t.length+r.length!==n.get("initColumnLeafNodes",[]).length&&n.set("initColumnLeafNodes",t)},t.prototype.getHiddenColumnsInfo=function(t){var e=this.spreadsheet.store.get("hiddenColumnsDetail",[]);return bp(e)?null:e.find((function(e){return e.hideColumnNodes.some((function(e){return e.id===t.id}))}))},t}(),ZC=function(t){var e,n,r,i=t.facetCfg,o=t.customTreeItems,a=void 0===o?[]:o,s=t.level,u=t.parentNode,l=t.hierarchy,c=i.spreadsheet,h=i.collapsedRows,f=i.hierarchyCollapse;try{for(var d=Dy(a),p=d.next();!p.done;p=d.next()){var g=p.value,v=g.key,m=g.title,y=g.collapsed,b=g.children,_=Ry(g,["key","title","collapsed","children"]),x=((r={})[$i]=v,r),w=Ab(u.id,m),O=null!=y&&y,S=ml(h,w),C=null!=S?S:f||O,E=new bb({id:w,key:v,label:m,value:m,level:s,parent:u,field:v,isTotals:!1,isCollapsed:C,hierarchy:l,query:x,spreadsheet:c,extra:_});s>l.maxLevel&&(l.maxLevel=s),bp(b)&&(E.isLeaf=!0);var T=Sb(i,u,E,l);bp(b)||C||!T||ZC({facetCfg:i,parentNode:E,level:s+1,hierarchy:l,customTreeItems:b})}}catch(t){e={error:t}}finally{try{p&&!p.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}},KC=(Do+No).length,QC=function(t){var e,n,r,i,o,a,s,u=t.parentNode,l=t.currentField,c=t.level,h=t.facetCfg,f=t.hierarchy,d=t.pivotMeta,p=h.spreadsheet,g=h.dataSet,v=h.collapsedRows,m=h.hierarchyCollapse,y=h.rowExpandDepth,b=u.query,_=u.id,x=(null===(i=p.dataCfg.fields.rows)||void 0===i?void 0:i.length)<=c,w=(null===(o=null==g?void 0:g.sortedDimensionValues)||void 0===o?void 0:o[l])||[],O=o_(Array.from(d.keys())),S=i_(O,w,(function(t){return Do===_?t:Ab(_,t).slice(KC)})),C=Ob(S,h,u,l),E=p.store.get("drillItemsNum");x&&E>0&&(C=C.slice(0,E)),0===c&&function(t,e,n){var r=t.getTotalsConfig(e);r.showGrandTotals&&n[r.reverseLayout?"unshift":"push"](new xb(r.label,!1,!0))}(p,l,C);try{for(var T=Dy(C),A=T.next();!A.done;A=T.next()){var M=A.value,I=M instanceof xb,j=I?null:d.get(M),k=void 0,P=b,L=!1,R=!1;if(I){var D=M;L=D.isGrandTotals,R=D.isSubTotals,k=nb(M.label),P=b}else k=M,P=Ly(Ly({},b),((r={})[l]=k,r));var N=Ab(_,k),B=null==v?void 0:v[N],F=Op(y)?c>y:null,z=null!==(a=null!=B?B:F)&&void 0!==a?a:m,V=new bb({id:N,key:l,label:k,value:k,level:c,parent:u,field:l,isTotals:I,isGrandTotals:L,isSubTotals:R,isCollapsed:z,hierarchy:f,query:P,spreadsheet:p});c>f.maxLevel&&(f.maxLevel=c);var U=!(null===(s=null==j?void 0:j.children)||void 0===s?void 0:s.size);(U||I)&&(V.isLeaf=!0),U||(V.isTotals=!0);var G=Sb(h,u,V,f);U||z||I||!G||QC({level:c+1,currentField:j.childField,pivotMeta:j.children,facetCfg:h,parentNode:V,hierarchy:f})}}catch(t){e={error:t}}finally{try{A&&!A.done&&(n=T.return)&&n.call(T)}finally{if(e)throw e.error}}},JC=function(t){var e,n,r=t.isValueInCols,i=t.moreThanOneValue,o=t.rootNode,a=t.facetCfg,s=t.hierarchy,u=t.fields;t.isRowHeader?(e=!r&&i,n=!r&&!i):(e=r&&i,n=r&&!i),Tb({addTotalMeasureInTotal:e,addMeasureInTotalQuery:n,parentNode:o,currentField:u[0],fields:u,facetCfg:a,hierarchy:s})},tE=function(t){var e=t.facetCfg,n=t.rootNode,r=t.hierarchy,i=e.hierarchyType,o=e.rows,a=e.dataSet;"tree"===i?QC({level:0,currentField:o[0],pivotMeta:a.rowPivotMeta,facetCfg:e,parentNode:n,hierarchy:r}):function(t){var e=t.facetCfg,n=t.rootNode,r=t.hierarchy,i=e.dataSet.fields.customTreeItems;ZC({customTreeItems:i,facetCfg:e,level:0,parentNode:n,hierarchy:r})}(t)},eE=function(t){var e=t.isRowHeader,n=t.facetCfg,r=n.spreadsheet,i=n.rows,o=void 0===i?[]:i,a=n.columns,s=void 0===a?[]:a,u=r.dataCfg.fields.valueInCols,l=r.isPivotMode(),c=n.dataSet.moreThanOneValue(),h=bb.rootNode(),f=new _b,d={isValueInCols:u,isPivotMode:l,moreThanOneValue:c,rootNode:h,hierarchy:f,spreadsheet:r,facetCfg:n,fields:e?o:s,isRowHeader:e};e?function(t){t.spreadsheet.isHierarchyTreeType()?tE(t):JC(t)}(d):function(t){var e=t.isPivotMode,n=t.hierarchy,r=t.rootNode,i=t.facetCfg;e?JC(t):Gb({parentNode:r,hierarchy:n,facetCfg:i})}(d);return{hierarchy:f,leafNodes:e&&r.isHierarchyTreeType()?f.getNodes():f.getLeaves()}},nE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),Object.defineProperty(e.prototype,"rowCellTheme",{get:function(){return this.spreadsheet.theme.rowCell.cell},enumerable:!1,configurable:!0}),e.prototype.doLayout=function(){var t=eE({isRowHeader:!0,facetCfg:this.cfg}),e=t.leafNodes,n=t.hierarchy,r=eE({isRowHeader:!1,facetCfg:this.cfg}),i=r.leafNodes,o=r.hierarchy;this.calculateNodesCoordinate(e,n,i,o);var a=this.cfg,s=a.dataSet,u=a.spreadsheet,l={colNodes:o.getNodes(),colsHierarchy:o,rowNodes:n.getNodes(),rowsHierarchy:n,rowLeafNodes:e,colLeafNodes:i,getCellMeta:function(t,n){var r,o,a,l=t||0,c=n||0,h=e[l],f=i[c];if(!h||!f)return null;var d,p=h.query,g=f.query,v=h.isTotals||h.isTotalMeasure||f.isTotals||f.isTotalMeasure,m=u.options.hierarchyType,y=null!==(o=ml(u,"facet.cfg.colCfg.hideMeasureColumn"))&&void 0!==o&&o&&"customTree"!==m?((r={})[$i]=null===(a=s.fields.values)||void 0===a?void 0:a[0],r):{},b=Xp({},p,g,y),_=s.getCellData({query:b,rowNode:h,isTotals:v}),x=null;return bp(_)?d=ml(b,[$i],""):(d=ml(_,[$i],""),x=ml(_,[Xi],null),v&&(d=ml(b,[$i],""),x=ml(_,d,null))),{spreadsheet:u,x:f.x,y:h.y,width:f.width,height:h.height,data:_,rowIndex:l,colIndex:c,isTotals:v,valueField:d,fieldValue:x,rowQuery:p,colQuery:g,rowId:h.id,colId:f.id,id:Gx(h.id,f.id)}},spreadsheet:u};return function(t,e){var n=null==t?void 0:t.layoutDataPosition;if(n){var r=e.getCellMeta,i=n(t.spreadsheet,r);return Ly(Ly({},e),{getCellMeta:i})}return e}(this.cfg,l)},e.prototype.calculateNodesCoordinate=function(t,e,n,r){this.calculateRowNodesCoordinate(t,e,n),this.calculateColNodesCoordinate(n,r,t,e.width)},e.prototype.calculateColNodesCoordinate=function(t,e,n,r){var i,o,a,s,u=this.cfg.spreadsheet,l=bb.blankNode(),c=e.getNodes();try{for(var h=Dy(e.sampleNodesForAllLevels),f=h.next();!f.done;f=h.next()){var d=f.value;d.height=this.getColNodeHeight(d),e.height+=d.height}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}for(var p=0,g=function(i){var o=c[i];if(o.isLeaf&&(o.colIndex=p,p+=1,o.x=l.x+l.width,o.width=v.calculateColLeafNodesWidth(o,t,n,r),e.width+=o.width,l=o),0===o.level)o.y=0;else{var s=e.sampleNodesForAllLevels.find((function(t){return t.level===o.level-1}));o.y=null!==(a=(null==s?void 0:s.y)+(null==s?void 0:s.height))&&void 0!==a?a:0}o.height=v.getColNodeHeight(o),Cb(v.cfg,null,o)},v=this,m=0;m<c.length;m++)g(m);this.autoCalculateColNodeWidthAndX(t),bp(null===(s=u.options.totals)||void 0===s?void 0:s.col)||(this.adjustTotalNodesCoordinate(e),this.adjustSubTotalNodesCoordinate(e))},e.prototype.autoCalculateColNodeWidthAndX=function(t){for(var e=null,n=t.slice(0);n.length;){var r=n.shift().parent;e!==r&&r&&(n.push(r),r.x=r.children[0].x,r.width=r.children.map((function(t){return t.width})).reduce((function(t,e){return t+e}),0),e=r)}},e.prototype.calculateColLeafNodesWidth=function(t,e,n,r){var i,o,a,s,u,l=this.cfg,c=l.colCfg,h=l.dataSet,f=l.filterDisplayDataItem,d=this.getCellDraggedWidth(t);if(d)return d;var p=this.getCellCustomWidth(t,null==c?void 0:c.width);if(!Ep(p))return p;if(this.spreadsheet.getLayoutWidthType()===Ey.Compact){for(var g=this.spreadsheet.theme.colCell,v=g.bolderText,m=g.cell,y=g.icon,b=this.spreadsheet.dataSet.getFieldFormatter(t.field),_=null!==(i=null==b?void 0:b(t.value))&&void 0!==i?i:t.label,x=this.getExpectedCellIconWidth(ny.COL_CELL,this.spreadsheet.isValueInCols()&&this.spreadsheet.options.showDefaultHeaderActionIcon,y),w=this.spreadsheet.measureTextWidthRoughly(_)+x,O=void 0,S=0,C=0;C<qo;C++){var E=n[C];if(E){var T=h.getCellData({query:Ly(Ly({},t.query),E.query),rowNode:E,isTotals:t.isTotals||t.isTotalMeasure||E.isTotals||E.isTotalMeasure});if(T){var A=Vx(T,f),M=null!==(a=null===(o=this.spreadsheet.dataSet.getFieldFormatter(T[$i]))||void 0===o?void 0:o(A))&&void 0!==a?a:A,I="".concat(M),j=this.spreadsheet.measureTextWidthRoughly(I);j>S&&(O=I,S=j)}}}var k=w>S,P=k?_:O,L=k?x:0;return Xb.getInstance().logger("Max Label In Col:",t.field,P),this.spreadsheet.measureTextWidth(P,v)+(null===(s=m.padding)||void 0===s?void 0:s.left)+(null===(u=m.padding)||void 0===u?void 0:u.right)+L}return this.spreadsheet.isHierarchyTreeType()?this.getAdaptTreeColWidth(t,e,n):this.getAdaptGridColWidth(e,r)},e.prototype.getColNodeHeight=function(t){var e=this.cfg.colCfg;return ml(e,"heightByField.".concat(t.key))||e.height},e.prototype.getExpectedCellIconWidth=function(t,e,n){var r,i=0;if(e)i=1;else{var o=gw(Sd(this.spreadsheet.options.headerActionIcons,(function(t){return Ly(Ly({},t),{displayCondition:function(){return!0}})})),null,t);i=null!==(r=null==o?void 0:o.iconNames.length)&&void 0!==r?r:0}return i?i*(n.size+n.margin.left)+n.margin.right:0},e.prototype.calculateRowNodesCoordinate=function(t,e,n){var r,i,o,a,s,u,l,c,h,f,d=this.cfg,p=d.cellCfg,g=d.spreadsheet,v=g.isHierarchyTreeType(),m=ml(g,"options.style.rowCfg.heightByField",{}),y=null!==(o=e.sampleNodesForAllLevels)&&void 0!==o?o:[];if(v)e.width=this.getTreeRowHeaderWidth();else try{for(var b=Dy(e.sampleNodesForAllLevels),_=b.next();!_.done;_=b.next()){var x=_.value;x.width=this.calculateGridRowNodesWidth(x,n),e.width+=x.width;var w=null!==(a=y[x.level-1])&&void 0!==a?a:{x:0,width:0};x.x=(null==w?void 0:w.x)+(null==w?void 0:w.width)}}catch(t){r={error:t}}finally{try{_&&!_.done&&(i=b.return)&&i.call(b)}finally{if(r)throw r.error}}for(var O=bb.blankNode(),S=e.getNodes(),C=0;C<S.length;C++){var E=S[C];if((v||!v&&E.isLeaf)&&(null!==(s=E.rowIndex)&&void 0!==s||(E.rowIndex=C),null!==(u=E.colIndex)&&void 0!==u||(E.colIndex=C),E.y=O.y+O.height,E.height=(null!==(l=m[E.id])&&void 0!==l?l:p.height)+(null===(c=this.rowCellTheme.padding)||void 0===c?void 0:c.top)+(null===(h=this.rowCellTheme.padding)||void 0===h?void 0:h.bottom),O=E,e.height+=E.height),v||0===E.level)E.x=0;else{w=y[E.level-1];E.x=(null==w?void 0:w.x)+(null==w?void 0:w.width)}if(v)E.width=this.getTreeRowHeaderWidth();else{var T=y[E.level];E.width=null==T?void 0:T.width}Cb(this.cfg,E,null)}v||(this.autoCalculateRowNodeHeightAndY(t),bp(null===(f=g.options.totals)||void 0===f?void 0:f.row)||(this.adjustTotalNodesCoordinate(e,!0),this.adjustSubTotalNodesCoordinate(e,!0)))},e.prototype.autoCalculateRowNodeHeightAndY=function(t){for(var e=null,n=t.slice(0);n.length;){var r=n.shift().parent;e!==r&&r&&(n.push(r),r.y=r.children[0].y,r.height=r.children.map((function(t){return t.height})).reduce((function(t,e){return t+e}),0),e=r)}},e.prototype.adjustTotalNodesCoordinate=function(t,e){var n,r,i,o=this.cfg.dataSet.moreThanOneValue(),a=t.maxLevel,s=vd(t.getNodes(0),(function(t){return t.isGrandTotals}));if(s instanceof bb){var u=s.children;if(e)s.width=t.width,Wf(u,(function(e){e.x=t.getNodes(a)[0].x}));else if(a>1||a<=1&&!o){var l=null!==(r=null===(n=null==u?void 0:u[0])||void 0===n?void 0:n.height)&&void 0!==r?r:0;s.height=t.height-l;var c=null===(i=vd(t.getNodes(a),(function(t){return!t.isTotalMeasure})))||void 0===i?void 0:i.y;Wf(u,(function(t){t.y=c}))}}},e.prototype.adjustSubTotalNodesCoordinate=function(t,e){var n=t.getNodes().filter((function(t){return t.isSubTotals}));if(!bp(n)){var r=t.maxLevel;Wf(n,(function(n){var i,o,a,s=n.children;if(e)n.width=IC(t.sampleNodesForAllLevels,n.level,"width"),Wf(s,(function(e){e.x=t.getNodes(r)[0].x}));else{var u=IC(t.sampleNodesForAllLevels,n.level,"height"),l=null!==(o=null===(i=null==s?void 0:s[0])||void 0===i?void 0:i.height)&&void 0!==o?o:0;n.height=u-l,Wf(s,(function(e){e.y=t.getNodes(r)[0].y}));var c=null===(a=vd(t.getNodes(r),(function(t){return!t.isTotalMeasure})))||void 0===a?void 0:a.y;Wf(s,(function(t){t.y=c}))}}))}},e.prototype.calculateGridRowNodesWidth=function(t,e){var n=this.cfg,r=n.rowCfg,i=n.spreadsheet,o=ml(r,"widthByField.".concat(t.key));if(o)return o;var a=this.getCellCustomWidth(t,null==r?void 0:r.width);return Ep(a)?i.getLayoutWidthType()!==Ey.Adaptive?this.getCompactGridRowWidth(t):this.getAdaptGridColWidth(e):a},e.prototype.getAdaptTreeColWidth=function(t,e,n){var r=this.getCanvasHW().width-this.getSeriesNumberWidth(),i=Math.min(r/2,this.getTreeRowHeaderWidth()),o=Math.max(1,e.length),a=this.cfg.cellCfg;return Math.max(ex(a,this.getColLabelLength(t,n)),(r-i)/o)},e.prototype.getColLabelLength=function(t,e){var n,r=nx(null==t?void 0:t.value);if(Sa(r))return r.length;for(var i=1,o=0;o<qo;o++){var a=e[o];if(!a)return i;for(var s=this.cfg.dataSet.getCellData({query:Ly(Ly({},t.query),a.query),rowNode:a,isTotals:t.isTotals||t.isTotalMeasure||a.isTotals||a.isTotalMeasure}),u=Vu(s),l=0;l<u.length;l++){var c=s[u[l]],h=Ev(null===(n=null==c?void 0:c.values)||void 0===n?void 0:n[0]);h>i&&(i=h)}}return i},e.prototype.getAdaptGridColWidth=function(t,e){var n=this.cfg,r=n.rows,i=n.cellCfg,o=r.length,a=t.length,s=this.getCanvasHW().width-this.getSeriesNumberWidth(),u=Math.max(1,o+a);return e?Math.max(ex(i),(s-e)/a):Math.max(ex(i),s/u)},e.prototype.getTreeRowHeaderWidth=function(){var t,e,n,r,i=this.cfg,o=i.rows,a=i.dataSet,s=i.rowCfg,u=i.treeRowsWidth,l=null!=u?u:null==s?void 0:s.treeRowsWidth;if(l)return l;var c=this.getCellCustomWidth(null,null==s?void 0:s.width);if(c)return c;var h=o.map((function(t){return a.getFieldName(t)})).join("/"),f=this.spreadsheet.theme.cornerCell,d=f.bolderText,p=f.icon,g=this.spreadsheet.measureTextWidth(h,d)+2*p.size+(null===(t=p.margin)||void 0===t?void 0:t.left)+(null===(e=p.margin)||void 0===e?void 0:e.right)+(null===(n=this.rowCellTheme.padding)||void 0===n?void 0:n.left)+(null===(r=this.rowCellTheme.padding)||void 0===r?void 0:r.right);return Math.max(null!=l?l:Ay,g)},e.prototype.getCompactGridRowWidth=function(t){var e,n=this,r=this.cfg,i=r.dataSet,o=r.spreadsheet,a=o.theme.rowCell,s=a.bolderText,u=a.icon,l=a.cell,c=o.theme.cornerCell,h=c.bolderText,f=c.icon,d=c.cell,p=t.field,g=t.isLeaf,v=this.getExpectedCellIconWidth(ny.ROW_CELL,!o.isValueInCols()&&g&&o.options.showDefaultHeaderActionIcon,u),m=Hp(null===(e=i.getDimensionValues(p))||void 0===e?void 0:e.slice(0,qo).map((function(t){var e,r;return null!==(r=null===(e=n.spreadsheet.dataSet.getFieldFormatter(p))||void 0===e?void 0:e(t))&&void 0!==r?r:t})),(function(t){return"".concat(t).length})),y=o.measureTextWidth(m,s)+v+l.padding.left+l.padding.right,b=i.getFieldName(p),_=this.getExpectedCellIconWidth(ny.CORNER_CELL,!1,f),x=o.measureTextWidth(b,h)+_+d.padding.left+d.padding.right;return Xb.getInstance().logger("Max Label In Row:",p,y>x?m:b),Math.max(y,x)},e.prototype.getViewCellHeights=function(t){var e=fv(t.rowLeafNodes,(function(t,e){return t.push(Ff(t)+e.height),t}),[0]);return{getTotalHeight:function(){return Ff(e)},getCellOffsetY:function(t){return e[t]},getTotalLength:function(){return e.length-1},getIndexRange:function(t,n){return jC(e,t,n)}}},e}(qC),rE=function(t){function e(e){var n,r=this;(r=t.call(this,e)||this).getScrollGroupClipBBox=function(){var t,e=r.headerConfig,n=e.width,i=e.height,o=e.scrollX,a=e.spreadsheet,s=a.options;if(!s.frozenColCount&&!s.frozenTrailingColCount)return{x:o,y:0,width:n,height:i};for(var u=null===(t=a.facet)||void 0===t?void 0:t.layoutResult.colLeafNodes,l=p_(a.options,u.length),c=l.frozenColCount,h=l.frozenTrailingColCount,f=0,d=0,p=0;p<c;p++)f+=u[p].width;for(p=0;p<h;p++)d+=u[u.length-1-p].width;return{x:o+f,y:0,width:n-f-d,height:i}};var i=null===(n=r.headerConfig.spreadsheet)||void 0===n?void 0:n.options,o=i.frozenColCount,a=i.frozenTrailingColCount;return o&&(r.frozenColGroup=r.addGroup({name:Mo,zIndex:eo})),a&&(r.frozenTrailingColGroup=r.addGroup({name:Io,zIndex:eo})),r}return Py(e,t),e.prototype.isFrozenCell=function(t){var e=this.headerConfig.spreadsheet,n=null==e?void 0:e.options,r=n.frozenColCount,i=n.frozenTrailingColCount,o=t.colIndex,a=null==e?void 0:e.facet.layoutResult.colLeafNodes;return jb(o,r)||kb(o,i,a.length)},e.prototype.clear=function(){var e,n,r=this.headerConfig.spreadsheet;t.prototype.clear.call(this),null===(e=this.frozenTrailingColGroup)||void 0===e||e.clear(),null===(n=this.frozenColGroup)||void 0===n||n.clear();var i=null==r?void 0:r.foregroundGroup.findById(Eo);null==i||i.clear()},e.prototype.getCellInstance=function(t,e,n){return t.field===Ki?new Jw(t,e,n):new Qw(t,e,n)},e.prototype.getCellGroup=function(t){var e,n,r=this.headerConfig.spreadsheet,i=null==r?void 0:r.options,o=i.frozenColCount,a=i.frozenTrailingColCount,s=null===(e=null==r?void 0:r.facet)||void 0===e?void 0:e.layoutResult.colNodes.filter((function(t){return zb(t)})),u=Bb(s,o,a),l=u.colCount,c=u.trailingColCount;return jb(Ub(t).colIndex,l)?this.frozenColGroup:kb(Ub(t).colIndex,c,null===(n=null==r?void 0:r.facet)||void 0===n?void 0:n.layoutResult.colLeafNodes.length)?this.frozenTrailingColGroup:this.scrollGroup},e.prototype.isColCellInRect=function(e){var n,r,i=this.headerConfig.spreadsheet,o=null==i?void 0:i.options,a=o.frozenColCount,s=o.frozenTrailingColCount,u=null===(n=null==i?void 0:i.facet)||void 0===n?void 0:n.layoutResult.colLeafNodes.length,l=null===(r=null==i?void 0:i.facet)||void 0===r?void 0:r.layoutResult.colNodes.filter((function(t){return zb(t)})),c=Bb(l,a,s),h=c.colCount,f=c.trailingColCount;return!(!jb(Ub(e).colIndex,h)&&!kb(Ub(e).colIndex,f,u))||t.prototype.isColCellInRect.call(this,e)},e.prototype.clip=function(){this.scrollGroup.setClip({type:"rect",attrs:this.getScrollGroupClipBBox()})},e}(HC),iE=function(t){function e(e){var n,r=t.call(this,e)||this;r.frozenGroupInfo=((n={})[Qo.FROZEN_COL]={width:0},n[Qo.FROZEN_ROW]={height:0},n[Qo.FROZEN_TRAILING_ROW]={height:0},n[Qo.FROZEN_TRAILING_COL]={width:0},n),r.panelScrollGroupIndexes=[],r.onSortHandler=function(t){var e=r.spreadsheet,n=t;Array.isArray(t)||(n=[t]);var i=e.dataCfg.sortParams||[];n=n.map((function(t){var e,n,r=Ly(Ly({},t),{sortFieldId:null!==(e=t.sortKey)&&void 0!==e?e:t.sortFieldId}),o=null!==(n=i.find((function(t){return t.sortFieldId===r.sortFieldId})))&&void 0!==n?n:{};return Ly(Ly({},o),r)}));var o=i.filter((function(t){return!n.find((function(e){return e.sortFieldId===t.sortFieldId}))}));Ov(e.dataCfg,"sortParams",By(By([],Ny(o),!1),Ny(n),!1)),e.setDataCfg(e.dataCfg),e.render(!0),e.emit(Hi.RANGE_SORTED,e.dataSet.getDisplayDataSet())},r.onFilterHandler=function(t){var e=r.spreadsheet,n=!t.filteredValues||0===t.filteredValues.length,i=e.dataCfg.filterParams||[],o=i.findIndex((function(e){return e.filterKey===t.filterKey}));-1!==o?n?i.splice(o):i[o]=t:i.push(t),Ov(e.dataCfg,"filterParams",i),e.render(!0),e.emit(Hi.RANGE_FILTERED,e.dataSet.getDisplayDataSet())},r.initFrozenGroupPosition=function(){var t=r.getScrollOffset(),e=t.scrollY,n=t.scrollX,i=r.getPaginationScrollY();Db(r.spreadsheet.frozenRowGroup,r.cornerBBox.width-n,r.cornerBBox.height-i),Db(r.spreadsheet.frozenColGroup,r.cornerBBox.width,r.cornerBBox.height-e-i),Db(r.spreadsheet.frozenTrailingColGroup,r.cornerBBox.width,r.cornerBBox.height-e-i),Db(r.spreadsheet.frozenTopGroup,r.cornerBBox.width,r.cornerBBox.height-i)},r.getTotalHeightForRange=function(t,e){if(t<0||e<0)return 0;if(r.rowOffsets)return r.rowOffsets[e+1]-r.rowOffsets[t];for(var n=0,i=t;i<e+1;i++){n+=r.getDefaultCellHeight()}return n},r.getShadowFill=function(t){var e,n,i=ml(r.cfg,"spreadsheet.theme.splitLine");return"l (".concat(t,") 0:").concat(null===(e=i.shadowColors)||void 0===e?void 0:e.left," 1:").concat(null===(n=i.shadowColors)||void 0===n?void 0:n.right)},r.renderFrozenGroupSplitLine=function(t,e){var n,i=r.panelBBox,o=i.width,a=i.height,s=i.viewportWidth,u=i.viewportHeight,l=r.cornerBBox.height,c=r.layoutResult.colNodes.filter((function(t){return zb(t)})),h=r.getCellRange(),f=h.end-h.start,d=p_(r.spreadsheet.options,c.length,f),p=d.frozenRowCount,g=d.frozenColCount,v=d.frozenTrailingColCount,m=d.frozenTrailingRowCount,y=Math.floor(e-r.getPaginationScrollY()),b=Math.max(0,Ff(r.viewCellWidths)-s),_=Math.max(0,r.viewCellHeights.getCellOffsetY(h.end+1)-r.viewCellHeights.getCellOffsetY(h.start)-u);null===(n=r.foregroundGroup.findById(wo))||void 0===n||n.remove();var x,w,O,S,C=ml(r.cfg,"spreadsheet.theme.splitLine"),E=r.foregroundGroup.addGroup({id:wo,zIndex:eo}),T={lineWidth:null==C?void 0:C.verticalBorderWidth,stroke:null==C?void 0:C.verticalBorderColor,opacity:null==C?void 0:C.verticalBorderColorOpacity},A={lineWidth:null==C?void 0:C.horizontalBorderWidth,stroke:null==C?void 0:C.horizontalBorderColor,opacity:null==C?void 0:C.horizontalBorderColorOpacity};g>0&&(__(E,{x1:x=c.reduce((function(t,e,n){return n<g?t+e.width:t}),0),x2:x,y1:l,y2:l+(w=m>0?a:u)},Ly({},T)),C.showShadow&&t>0&&E.addShape("rect",{attrs:{x:x,y:l,width:C.shadowWidth,height:w,fill:r.getShadowFill(0)}}));p>0&&(__(E,{x1:0,x2:S=v>0?o:s,y1:O=l+r.getTotalHeightForRange(h.start,h.start+p-1),y2:O},Ly({},A)),C.showShadow&&y>0&&E.addShape("rect",{attrs:{x:0,y:O,width:S,height:C.shadowWidth,fill:r.getShadowFill(90)}}));v>0&&(__(E,{x1:x=c[c.length-v].x,x2:x,y1:l,y2:l+(w=m?a:u)},Ly({},T)),C.showShadow&&Math.floor(t)<Math.floor(b)&&E.addShape("rect",{attrs:{x:x-C.shadowWidth,y:l,width:C.shadowWidth,height:w,fill:r.getShadowFill(180)}}));m>0&&(__(E,{x1:0,x2:S=v>0?o:s,y1:O=r.panelBBox.maxY-r.getTotalHeightForRange(h.end-m+1,h.end),y2:O},Ly({},A)),C.showShadow&&y<Math.floor(_)&&E.addShape("rect",{attrs:{x:0,y:O-C.shadowWidth,width:S,height:C.shadowWidth,fill:r.getShadowFill(270)}}));r.foregroundGroup.sort()},r.renderFrozenPanelCornerGroup=function(){var t=r.layoutResult.colNodes.filter((function(t){return zb(t)})),e=r.getCellRange(),n=p_(r.spreadsheet.options,t.length,e.end-e.start+1),i=n.frozenRowCount,o=n.frozenColCount,a=n.frozenTrailingRowCount,s=n.frozenTrailingColCount,u=Bb(t,o,s),l=function(t,e,n){for(var r,i=t.frozenColCount,o=t.frozenRowCount,a=t.frozenTrailingColCount,s=t.frozenTrailingRowCount,u=((r={})[Ko.TOP]=[],r[Ko.BOTTOM]=[],r),l=0;l<i;l++){for(var c=n.start;c<n.start+o;c++)u[Ko.TOP].push({x:l,y:c});if(s>0)for(c=0;c<s;c++){var h=n.end-c;u[Ko.BOTTOM].push({x:l,y:h})}}for(l=0;l<a;l++){var f=e-1-l;for(c=n.start;c<n.start+o;c++)u[Ko.TOP].push({x:f,y:c});if(s>0)for(c=0;c<s;c++){h=n.end-c;u[Ko.BOTTOM].push({x:f,y:h})}}return u}({frozenRowCount:i,frozenColCount:u.colCount,frozenTrailingRowCount:a,frozenTrailingColCount:u.trailingColCount},r.layoutResult.colLeafNodes.length,e);Object.keys(l).forEach((function(t){var e=l[t],n=r.spreadsheet[ua[t]];n&&e.forEach((function(t){r.addFrozenCell(t.x,t.y,n)}))}))},r.addFrozenCell=function(t,e,n){var i=r.layoutResult.getCellMeta(e,t);if(i.isFrozenCorner=!0,i){var o=r.cfg.dataCell(i);n.add(o)}},r.getRealFrozenColumns=function(t,e){var n,i=t,o=e;if(t||e){var a=r.layoutResult.colsHierarchy.getNodes();a=a.filter((function(t){return zb(t)})),i=(n=Bb(a,t,e)).colCount,o=n.trailingColCount}return{colCount:i,trailingColCount:o}},r.addCell=function(t){var e=r.spreadsheet.options,n=e.frozenRowCount,i=e.frozenColCount,o=e.frozenTrailingRowCount,a=e.frozenTrailingColCount,s=r.layoutResult.colsHierarchy.getLeaves().length,u=r.getCellRange(),l=r.getRealFrozenColumns(i,a),c=l.colCount,h=l.trailingColCount,f=function(t,e,n,r){var i=e.frozenColCount,o=e.frozenRowCount,a=e.frozenTrailingColCount,s=e.frozenTrailingRowCount,u=t.colIndex,l=t.rowIndex;return Pb(l,r.start,o)?Ko.ROW:Lb(l,r.end,s)?Ko.TRAILING_ROW:jb(u,i)?Ko.COL:kb(u,a,n)?Ko.TRAILING_COL:Ko.SCROLL}(t.getMeta(),{frozenRowCount:n,frozenColCount:c,frozenTrailingRowCount:o,frozenTrailingColCount:h},s,u),d=ua[f];d&&r.spreadsheet[d].add(t)},r.getFrozenOptions=function(){var t=r.layoutResult.colLeafNodes.length,e=r.getCellRange();return p_(r.cfg,t,e.end-e.start+1)};var i=r.spreadsheet;return i.on(Hi.RANGE_SORT,r.onSortHandler),i.on(Hi.RANGE_FILTER,r.onFilterHandler),r}return Py(e,t),Object.defineProperty(e.prototype,"dataCellTheme",{get:function(){return this.spreadsheet.theme.dataCell.cell},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){var e=this.spreadsheet;e.off(Hi.RANGE_SORT,this.onSortHandler),e.off(Hi.RANGE_FILTER,this.onFilterHandler),t.prototype.destroy.call(this)},e.prototype.calculateCornerBBox=function(){var t=this.layoutResult.colsHierarchy,e=Math.floor(t.height);this.cornerBBox=new VC(this),this.cornerBBox.height=e,this.cornerBBox.maxY=e},e.prototype.doLayout=function(){var t=this,e=this.cfg,n=e.dataSet,r=e.spreadsheet,i=new _b,o=eE({isRowHeader:!1,facetCfg:this.cfg}),a=o.leafNodes,s=o.hierarchy;this.calculateColNodesCoordinate(a,s);return{colNodes:s.getNodes(),colsHierarchy:s,rowNodes:i.getNodes(),rowsHierarchy:i,rowLeafNodes:i.getLeaves(),colLeafNodes:a,getCellMeta:function(e,i){var o,s,u=t.cfg.showSeriesNumber,l=a[i],c=t.getCellHeight(e),h=t.getCellRange(),f=p_(t.cfg,a.length,h.end-h.start+1).frozenTrailingRowCount,d=l.x,p=t.viewCellHeights.getCellOffsetY(e);return Lb(e,h.end,f)&&(p=t.panelBBox.maxY-t.getTotalHeightForRange(e,h.end)),s=u&&l.field===Ki?e+1:n.getCellData({query:{col:l.field,rowIndex:e}}),{spreadsheet:r,x:d,y:p,width:l.width,height:c,data:(o={},o[l.field]=s,o),rowIndex:e,colIndex:i,isTotals:!1,colId:l.id,rowId:String(e),valueField:l.field,fieldValue:s,id:Gx(String(e),l.id)}},spreadsheet:r}},e.prototype.getAdaptiveColWidth=function(t){var e=this.cfg.cellCfg,n=this.cfg.showSeriesNumber;if(this.spreadsheet.getLayoutWidthType()!==Ey.Compact){var r=this.getSeriesNumberWidth(),i=t.length-(n?1:0),o=this.getCanvasHW().width-r;return Math.max(null==e?void 0:e.width,o/Math.max(1,i))}return null==e?void 0:e.width},e.prototype.getColNodeHeight=function(t,e){var n=this.cfg.colCfg,r=Wd(null==n?void 0:n.heightByField)[0]||(null==n?void 0:n.height);if(!e)return r;if(t.children&&t.children.length)return r;for(;t.parent;)e-=zb(t)?0:r,t=t.parent;return e},e.prototype.calculateColNodesCoordinate=function(t,e){var n,r,i,o,a,s,u=bb.blankNode(),l=e.getNodes();try{for(var c=Dy(e.sampleNodesForAllLevels),h=c.next();!h.done;h=c.next()){var f=h.value;f.height=this.getColNodeHeight(f),e.height+=f.height}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}for(var d=this.getAdaptiveColWidth(t),p=0,g=0;g<l.length;g++){(x=l[g]).isLeaf&&(x.colIndex=p,p+=1,x.x=u.x+u.width,x.width=this.calculateColLeafNodesWidth(x,d),e.width+=x.width,u=x),0===x.level?x.y=0:x.y=null!==(a=(null===(i=x.parent)||void 0===i?void 0:i.y)+(null===(o=x.parent)||void 0===o?void 0:o.height))&&void 0!==a?a:0,x.height=this.getColNodeHeight(x,e.height),Cb(this.cfg,null,x)}var v=l.filter((function(t){return zb(t)})),m=p_(null===(s=this.spreadsheet)||void 0===s?void 0:s.options,v.length).frozenTrailingColCount;u=bb.blankNode();var y=this.getCanvasHW().width;if(m>0){var b=Bb(v,0,m).trailingColCount,_=l.filter((function(t){return t.isLeaf}));for(g=1;g<=b;g++){var x;(x=_[_.length-g]).x=1===g?y-x.width:u.x-x.width,u=x}}this.autoCalculateColNodeWidthAndX(t)},e.prototype.autoCalculateColNodeWidthAndX=function(t){for(var e=null,n=t.slice(0);n.length;){var r=n.shift().parent;e!==r&&r&&(n.push(r),r.x=r.children[0].x,r.width=r.children.map((function(t){return t.width})).reduce((function(t,e){return t+e}),0),e=r)}},e.prototype.calculateColLeafNodesWidth=function(t,e){var n,r=this.cfg,i=r.colCfg,o=r.dataSet,a=r.spreadsheet,s=this.spreadsheet.getLayoutWidthType(),u=this.getCellDraggedWidth(t);if(u)return u;var l,c=this.getCellCustomWidth(t,null==i?void 0:i.width);if(!Ep(c))return c;if(s===Ey.Compact){var h=o.getDisplayDataSet(),f=t.label,d=(null===(n=null==h?void 0:h.map((function(e){return"".concat(e[t.key])})))||void 0===n?void 0:n.slice(0,50))||[];d.push(f);var p=Hp(d,(function(t){return a.measureTextWidthRoughly(t)})),g=a.theme.colCell.bolderText,v=a.theme.dataCell,m=v.text,y=v.cell;if(Xb.getInstance().logger("Max Label In Col:",t.field,p),f===p)l=a.measureTextWidth(p,g)+Kw(this.spreadsheet,t,a.theme.colCell);else{l=a.measureTextWidth(p,m)+y.padding.left+y.padding.right+1}}else l=e;return t.field===Ki&&(l=this.getSeriesNumberWidth()),l},e.prototype.getDefaultCellHeight=function(){var t=this.cfg.cellCfg;return null==t?void 0:t.height},e.prototype.getCellHeight=function(t){if(this.rowOffsets){var e=ml(this.spreadsheet,"options.style.rowCfg.heightByField",{})[String(t)];if(e)return e}return this.getDefaultCellHeight()},e.prototype.initRowOffsets=function(){var t=this,e=this.cfg.dataSet,n=ml(this.spreadsheet,"options.style.rowCfg.heightByField",{});if(Object.keys(n).length){var r=e.getDisplayDataSet();this.rowOffsets=[0];var i=0;r.forEach((function(e,r){var o,a=null!==(o=n[String(r)])&&void 0!==o?o:t.getDefaultCellHeight(),s=i+a;t.rowOffsets.push(s),i=s}))}},e.prototype.getViewCellHeights=function(){var t=this,e=this.cfg.dataSet;this.initRowOffsets();var n=this.getDefaultCellHeight();return{getTotalHeight:function(){return t.rowOffsets?Ff(t.rowOffsets):n*e.getDisplayDataSet().length},getCellOffsetY:function(e){if(e<=0)return 0;if(t.rowOffsets)return t.rowOffsets[e];for(var r=0,i=0;i<e;i++)r+=n;return r},getTotalLength:function(){return e.getDisplayDataSet().length},getIndexRange:function(e,r){if(t.rowOffsets)return jC(t.rowOffsets,e,r);var i=Math.floor(e/n),o=r%n==0?r/n-1:Math.floor(r/n);return{start:Math.max(0,i),end:Math.max(0,o)}}}},e.prototype.init=function(){t.prototype.init.call(this);var e=this.panelBBox,n=e.width,r=e.height;this.spreadsheet.panelGroup.setClip({type:"rect",attrs:{x:0,y:this.cornerBBox.height,width:n,height:r}})},e.prototype.getColHeader=function(){if(!this.columnHeader){var t=this.panelBBox,e=t.x,n=t.width,r=t.viewportHeight,i=t.viewportWidth;return new rE({width:n,height:this.cornerBBox.height,viewportWidth:i,viewportHeight:r,cornerWidth:this.cornerBBox.width,position:{x:e,y:0},data:this.layoutResult.colNodes,scrollContainsRowHeader:this.cfg.spreadsheet.isScrollContainsRowHeader(),sortParam:this.cfg.spreadsheet.store.get("sortParam"),spreadsheet:this.spreadsheet})}return this.columnHeader},e.prototype.updateRowResizeArea=function(){var t=this.spreadsheet,e=t.foregroundGroup,n=ml(t.options,"interaction.resize");if(gp(n)?n:null==n?void 0:n.rowCellVertical){var r=e.findById(_o),i=e.findById(xo);r&&r.set("children",[]),i&&i.set("children",[]),LC(this.panelGroup.getChildren(),tO).filter((function(t){return t.shouldDrawResizeArea()})).forEach((function(t){t.drawResizeArea()}))}},e.prototype.render=function(){this.calculateFrozenGroupInfo(),this.renderFrozenPanelCornerGroup(),t.prototype.render.call(this),this.initFrozenGroupPosition()},e.prototype.calculateFrozenGroupInfo=function(){var t=this.getFrozenOptions(),e=t.frozenColCount,n=t.frozenRowCount,r=t.frozenTrailingColCount,i=t.frozenTrailingRowCount,o=this.layoutResult.colNodes.filter((function(t){return zb(t)})),a=this.viewCellHeights,s=this.getCellRange(),u=this.frozenGroupInfo,l=u.frozenCol,c=u.frozenTrailingCol,h=u.frozenRow,f=u.frozenTrailingRow;e>0&&(l.width=o[e-1].x+o[e-1].width-0,l.range=[0,e-1]),n>0&&(h.height=a.getCellOffsetY(s.start+n)-a.getCellOffsetY(s.start),h.range=[s.start,s.start+n-1]),r>0&&(c.width=o[o.length-1].x-o[o.length-r].x+o[o.length-1].width,c.range=[o.length-r,o.length-1]),i>0&&(f.height=a.getCellOffsetY(s.end+1)-a.getCellOffsetY(s.end+1-i),f.range=[s.end-i+1,s.end])},e.prototype.getRowHeader=function(){return null},e.prototype.getSeriesNumberHeader=function(){return null},e.prototype.translateRelatedGroups=function(e,n,r){var i=this,o=this.spreadsheet,a=o.frozenColGroup,s=o.frozenTrailingColGroup;[o.frozenRowGroup,o.frozenTrailingRowGroup].forEach((function(t){Nb(t,i.cornerBBox.width-e)})),[a,s].forEach((function(t){!function(t,e){var n,r=null==t?void 0:t.getMatrix(),i=null!==(n=null==r?void 0:r[7])&&void 0!==n?n:0;null==t||t.translate(0,e-i)}(t,i.cornerBBox.height-n)})),t.prototype.translateRelatedGroups.call(this,e,n,r),this.updateRowResizeArea(),this.renderFrozenGroupSplitLine(e,n)},e.prototype.calculateXYIndexes=function(t,e){var n=this.layoutResult.colLeafNodes.length,r=this.getCellRange(),i=this.panelBBox,o=i.viewportHeight,a=i.viewportWidth,s=this.getFrozenOptions(),u=s.frozenColCount,l=s.frozenRowCount,c=s.frozenTrailingColCount,h=s.frozenTrailingRowCount,f={width:a,height:o,x:0,y:0};if(c>0||u>0){var d=this.frozenGroupInfo,p=d.frozenTrailingCol,g=d.frozenCol;f.width-=p.width+g.width,f.x+=g.width}if(h>0||l>0){var v=this.frozenGroupInfo,m=v.frozenRow,y=v.frozenTrailingRow;f.height<m.height+y.height?(f.height=0,f.y=0):(f.height-=m.height+y.height,f.y+=m.height)}var b=Rb(t,e,this.viewCellWidths,this.viewCellHeights,f,this.getRealScrollX(this.cornerBBox.width));this.panelScrollGroupIndexes=b;var _=this.getRealFrozenColumns(u,c);return function(t,e,n,r){var i=e.frozenColCount,o=e.frozenRowCount,a=e.frozenTrailingColCount,s=e.frozenTrailingRowCount,u=By([],Ny(t),!1);jb(u[0],i)&&(u[0]=i),kb(u[1],a,n)&&(u[1]=n-a-1),Pb(u[2],r.start,o)&&(u[2]=r.start+o),Lb(u[3],r.end,s)&&(u[3]=r.end-s);var l=By([],Ny(u),!1);l[2]=r.start,l[3]=r.start+o-1;var c=By([],Ny(u),!1);c[0]=0,c[1]=i-1;var h=By([],Ny(u),!1);h[2]=r.end+1-s,h[3]=r.end;var f=By([],Ny(u),!1);return f[0]=n-a,f[1]=n-1,{center:u,frozenRow:l,frozenCol:c,frozenTrailingCol:f,frozenTrailingRow:h}}(b,{frozenColCount:_.colCount,frozenRowCount:l,frozenTrailingColCount:_.trailingColCount,frozenTrailingRowCount:h},n,r)},e.prototype.clip=function(t,e){var n,r,i=this.layoutResult.colLeafNodes,o=this.getPaginationScrollY(),a=this.spreadsheet,s=a.frozenRowGroup,u=a.frozenColGroup,l=a.frozenTrailingColGroup,c=a.frozenTrailingRowGroup,h=a.panelScrollGroup,f=u.getBBox().width,d=s.getBBox().height,p=l.getBBox(),g=c.getBBox().height,v=this.panelBBox.width-f-l.getBBox().width,m=this.panelBBox.height-d-g;h.setClip({type:"rect",attrs:{x:t+f,y:e+d,width:v,height:m}}),s.setClip({type:"rect",attrs:{x:t+f,y:o,width:v,height:d}}),c.setClip({type:"rect",attrs:{x:t+f,y:c.getBBox().minY,width:v,height:g}});var y={y:e+d,height:m};u.setClip({type:"rect",attrs:Ly(Ly({},y),{x:0,width:f})}),l.setClip({type:"rect",attrs:Ly(Ly({},y),{x:p.minX,width:p.width})});var b=this.spreadsheet.foregroundGroup.findById(_o);b&&b.setClip({type:"rect",attrs:{x:0,y:d+this.cornerBBox.height,width:null!==(r=null===(n=null==i?void 0:i[0])||void 0===n?void 0:n.width)&&void 0!==r?r:0,height:m}})},e.prototype.updatePanelScrollGroup=function(){var e=this;t.prototype.updatePanelScrollGroup.call(this),[Qo.FROZEN_COL,Qo.FROZEN_ROW,Qo.FROZEN_TRAILING_COL,Qo.FROZEN_TRAILING_ROW].forEach((function(t){if(e.frozenGroupInfo[t].range){var n=[],r=[];if(t.toLowerCase().includes("row")){var i=Ny(e.frozenGroupInfo[t].range,2),o=i[0],a=i[1];if(n=e.gridInfo.cols,r=DC(o,a,e.viewCellHeights),t===Qo.FROZEN_TRAILING_ROW){var s=e.spreadsheet.frozenTrailingRowGroup.getBBox().minY;r=function(t,e,n,r){var i=DC(t,e,r),o=r.getCellOffsetY(t);return i.map((function(t){return t-o+n}))}(o,a,Math.ceil(s),e.viewCellHeights)}}else{var u=Ny(e.frozenGroupInfo[t].range,2),l=u[0],c=u[1],h=e.layoutResult.colNodes.filter((function(t){return zb(t)}));n=RC(l,c,h),r=e.gridInfo.rows}e.spreadsheet["".concat(t,"Group")].updateGrid({cols:n,rows:r},"".concat(t,"Group"))}}))},e}(qC),oE=function(t){function e(e){var n=t.call(this,e)||this;return n.gridInfo={cols:[],rows:[]},n.updateGrid=function(t,e){void 0===e&&(e=jo);var r=n.getBBox(),i=n.s2,o=i.theme,a=i.isTableMode,s=o.dataCell.cell,u=a()&&(e===jo||e===go);n.gridGroup&&n.findById(e)||(n.gridGroup=n.addGroup({id:e})),n.gridGroup.clear(),n.gridInfo=t,u&&n.gridInfo.cols.unshift(0);var l=s.verticalBorderWidth,c=s.verticalBorderWidth/2;n.gridInfo.cols.forEach((function(t){__(n.gridGroup,{x1:t,x2:t,y1:Math.ceil(r.minY+c),y2:Math.floor(r.maxY-c)},{stroke:s.verticalBorderColor,strokeOpacity:s.verticalBorderColorOpacity,lineWidth:l,lineCap:Jo})}));var h=s.horizontalBorderWidth,f=s.horizontalBorderWidth/2;n.gridInfo.rows.forEach((function(t){__(n.gridGroup,{x1:Math.ceil(r.minX+f),x2:Math.floor(r.maxX-f),y1:t,y2:t},{stroke:s.horizontalBorderColor,strokeOpacity:s.horizontalBorderColorOpacity,lineWidth:h,lineCap:Jo})})),n.gridGroup.toFront()},n.s2=e.s2,n}return Py(e,t),e}(gi),aE=function(t){function e(e){var n=t.call(this,e)||this;return n.initMergedCellsGroup(),n}return Py(e,t),e.prototype.initMergedCellsGroup=function(){this.mergedCellsGroup&&this.findById(fo)||(this.mergedCellsGroup=this.addGroup({id:fo}))},e.prototype.updateMergedCells=function(){this.initMergedCellsGroup(),aw(this.s2,this.mergedCellsGroup),this.mergedCellsGroup.toFront()},e.prototype.addMergeCell=function(t){var e;null===(e=this.mergedCellsGroup)||void 0===e||e.add(t)},e.prototype.update=function(t){this.updateGrid(t),this.updateMergedCells()},e}(oE),sE=function(){function t(t){var e=this;this.isLinkFieldText=function(t){var n=e.getCellAppendInfo(t);return null==n?void 0:n.isLinkFieldText},this.spreadsheet=t,this.bindEvents()}return t.prototype.getCellAppendInfo=function(t){var e,n;return(null===(e=null==t?void 0:t.attr)||void 0===e?void 0:e.call(t,"appendInfo"))||(null===(n=null==t?void 0:t.attrs)||void 0===n?void 0:n.appendInfo)||{}},t.prototype.reset=function(){},t}(),uE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),e.prototype.bindEvents=function(){this.bindDataCellClick()},e.prototype.bindDataCellClick=function(){var t=this;this.spreadsheet.on(Hi.DATA_CELL_CLICK,(function(e){var n;e.stopPropagation();var r=t.spreadsheet,i=r.interaction,o=r.options;if(i.clearHoverTimer(),!i.hasIntercepts([fy.CLICK]))if(t.isLinkFieldText(e.target))t.emitLinkFieldClickEvent(e);else{var a=t.spreadsheet.getCell(e.target),s=a.getMeta();s&&(i.addIntercepts([fy.HOVER]),i.isSelectedCell(a)?1===(null===(n=e.originalEvent)||void 0===n?void 0:n.detail)&&i.reset():(i.changeState({cells:[rO(a)],stateName:ey.SELECTED}),t.spreadsheet.emit(Hi.GLOBAL_SELECTED,[a]),t.showTooltip(e,s),o.interaction.selectedCellHighlight&&sO(s)))}}))},e.prototype.getTooltipOperator=function(t,e){var n=this,r=cb(),i=this.spreadsheet.getCell(t.target),o=xC(this.spreadsheet,t).operation,a=o.trend&&Ly(Ly({},r),{onClick:function(){n.spreadsheet.emit(Hi.DATA_CELL_TREND_ICON_CLICK,Ly(Ly({},e),{record:n.spreadsheet.isTableMode()?n.spreadsheet.dataSet.getCellData({query:{rowIndex:e.rowIndex}}):void 0})),n.spreadsheet.hideTooltip()}});return wC(o,{defaultMenus:[a],cell:i})},e.prototype.showTooltip=function(t,e){var n=e.data,r=e.isTotals,i=void 0!==r&&r,o=e.value,a=e.fieldValue,s=e.field,u=e.valueField,l=n,c=this.spreadsheet.isTableMode(),h=[(c?Ly(Ly({},l),{value:o||a,valueField:s||u}):l)||Ly(Ly({},e.rowQuery),e.colQuery)],f=this.getTooltipOperator(t,e);this.spreadsheet.showTooltipWithInfo(t,h,{isTotals:i,operator:f,enterable:!0,hideSummary:!0,showSingleTips:c})},e.prototype.emitLinkFieldClickEvent=function(t){var e=this.getCellAppendInfo(t.target).cellData,n=e.valueField,r=e.data;this.spreadsheet.emit(Hi.GLOBAL_LINK_FIELD_JUMP,{key:n,record:Object.assign({rowIndex:e.rowIndex},r)})},e}(sE),lE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),e.prototype.bindEvents=function(){this.bindDataCellClick()},e.prototype.bindDataCellClick=function(){var t=this;this.spreadsheet.on(Hi.MERGED_CELLS_CLICK,(function(e){e.stopPropagation();var n=t.spreadsheet.interaction;n.hasIntercepts([fy.CLICK])||n.addIntercepts([fy.HOVER])}))},e}(sE),cE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isMultiSelection=!1,e.handleRowColClick=function(t){if(t.stopPropagation(),!e.isLinkFieldText(t.target)){var n=e.spreadsheet,r=n.interaction,i=n.options,o=e.spreadsheet.getCell(t.target),a=!(!i.interaction.multiSelection||!e.isMultiSelection);r.selectHeaderCell({cell:o,isMultiSelection:a})&&e.showTooltip(t)}},e.getHideColumnField=function(t){return e.spreadsheet.isTableMode()?t.field:t.id},e}return Py(e,t),e.prototype.bindEvents=function(){this.bindKeyboardDown(),this.bindKeyboardUp(),this.bindColCellClick(),this.bindRowCellClick(),this.bindTableColExpand()},e.prototype.bindKeyboardDown=function(){var t=this;this.spreadsheet.on(Hi.GLOBAL_KEYBOARD_DOWN,(function(e){nO(e)&&(t.isMultiSelection=!0)}))},e.prototype.bindKeyboardUp=function(){var t=this;this.spreadsheet.on(Hi.GLOBAL_KEYBOARD_UP,(function(e){nO(e)&&(t.isMultiSelection=!1,t.spreadsheet.interaction.removeIntercepts([fy.CLICK]))}))},e.prototype.bindRowCellClick=function(){var t=this;this.spreadsheet.on(Hi.ROW_CELL_CLICK,(function(e){t.handleRowColClick(e)}))},e.prototype.bindColCellClick=function(){var t=this;this.spreadsheet.on(Hi.COL_CELL_CLICK,(function(e){t.handleRowColClick(e)}))},e.prototype.showTooltip=function(t){var e=xC(this.spreadsheet,t),n=e.operation;if(e.showTooltip){var r=this.spreadsheet.interaction,i=r.isSelectedState()?yC(r.getActiveCells()):[],o=this.getTooltipOperator(t,n);this.spreadsheet.showTooltipWithInfo(t,i,{showSingleTips:!0,operator:o})}},e.prototype.getTooltipOperator=function(t,e){var n=this,r=this.spreadsheet.getCell(t.target),i=r.getMeta(),o=r.cellType===ny.COL_CELL,a=1===this.spreadsheet.getColumnLeafNodes().length,s=lb(),u=o&&!a&&i.isLeaf&&e.hiddenColumns&&Ly(Ly({},s),{onClick:function(){n.hideSelectedColumns()}});return wC(e,{defaultMenus:[u],cell:r})},e.prototype.bindTableColExpand=function(){var t=this;this.spreadsheet.on(Hi.LAYOUT_COLS_EXPANDED,(function(e){t.handleExpandIconClick(e)}))},e.prototype.hideSelectedColumns=function(){var t=this.spreadsheet.interaction.getActiveCells().map((function(t){return t.getMeta()})).map(this.getHideColumnField);cw(this.spreadsheet,t,!0)},e.prototype.handleExpandIconClick=function(t){var e=this.spreadsheet.store.get("hiddenColumnsDetail",[]),n=(e.find((function(e){var n=e.displaySiblingNode;return hw(n,t.id)}))||{}).hideColumnNodes,r=void 0===n?[]:n,i=this.spreadsheet.options.interaction.hiddenColumnFields,o=r.map(this.getHideColumnField),a=Bf(i,o),s=e.filter((function(e){var n=e.displaySiblingNode;return!hw(n,t.id)}));this.spreadsheet.setOptions({interaction:{hiddenColumnFields:a}}),this.spreadsheet.store.set("hiddenColumnsDetail",s),this.spreadsheet.interaction.reset(),this.spreadsheet.render(!1)},e}(sE),hE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getRowData=function(t){var n,r=t.getHeadLeafChild(),i=e.spreadsheet.dataSet.getMultiData(null==r?void 0:r.query,null==r?void 0:r.isTotals,!0)[0];return Ly(Ly({},i),{rowIndex:null!==(n=t.rowIndex)&&void 0!==n?n:r.rowIndex})},e}return Py(e,t),e.prototype.bindEvents=function(){this.bindRowCellClick()},e.prototype.bindRowCellClick=function(){var t=this;this.spreadsheet.on(Hi.ROW_CELL_CLICK,(function(e){if(!t.spreadsheet.interaction.hasIntercepts([fy.CLICK])&&t.isLinkFieldText(e.target)){var n=t.getCellAppendInfo(e.target).cellData,r=n.key,i=t.getRowData(n);t.spreadsheet.emit(Hi.GLOBAL_LINK_FIELD_JUMP,{key:r,record:i})}}))},e}(sE),fE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),e.prototype.bindEvents=function(){this.bindCornerCellClick()},e.prototype.bindCornerCellClick=function(){var t=this;this.spreadsheet.on(Hi.CORNER_CELL_CLICK,(function(){var e=t.spreadsheet,n=e.interaction,r=e.tooltip;n.reset(),n.addIntercepts([fy.HOVER]),setTimeout((function(){r.visible||n.removeIntercepts([fy.HOVER])}))}))},e}(sE),dE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),e.prototype.bindEvents=function(){this.bindCornerCellHover(),this.bindDataCellHover(),this.bindRowCellHover(),this.bindColCellHover()},e.prototype.updateRowColCells=function(t){var e=t.rowId,n=t.colId,r=this.spreadsheet.interaction;(Fx(n,r.getAllColHeaderCells(),ey.HOVER),e)&&Wf(Bx(e,r.getAllRowHeaderCells(),this.spreadsheet.isHierarchyTreeType()),(function(t){t.updateByState(ey.HOVER)}))},e.prototype.changeStateToHoverFocus=function(t,e,n){var r,i=this,o=this.spreadsheet.interaction,a=this.spreadsheet.options.interaction,s=a.hoverFocus;o.clearHoverTimer();var u=function(){if(!o.hasIntercepts([fy.HOVER])){o.changeState({cells:[rO(t)],stateName:ey.HOVER_FOCUS});var r=i.spreadsheet.isTableMode(),s={isTotals:n.isTotals,enterable:!0,hideSummary:!0,showSingleTips:r};a.hoverHighlight&&i.updateRowColCells(n);var u=i.getCellData(n,r);i.spreadsheet.showTooltipWithInfo(e,u,s)}},l=dy;if(gp(s)||(l=null!==(r=null==s?void 0:s.duration)&&void 0!==r?r:dy),0===l)u();else{var c=window.setTimeout((function(){return u()}),l);o.setHoverTimer(c)}},e.prototype.handleHeaderHover=function(t){var e=this.spreadsheet.getCell(t.target);if(!bp(e)){var n=this.spreadsheet.interaction;n.clearHoverTimer(),n.isActiveCell(e)||(n.changeState({cells:[rO(e)],stateName:ey.HOVER}),e.update(),this.showEllipsisTooltip(t,e))}},e.prototype.showEllipsisTooltip=function(t,e){if(e&&e.getActualText()!==e.getFieldValue()){var n=e.getMeta(),r={isTotals:n.isTotals,enterable:!0,hideSummary:!0,showSingleTips:!0,enableFormat:this.spreadsheet.isPivotMode()},i=this.getCellData(n,!0);this.spreadsheet.showTooltipWithInfo(t,i,r)}},e.prototype.getCellData=function(t,e){void 0===t&&(t={});var n=t.data,r=t.query,i=t.value,o=t.field,a=t.fieldValue,s=t.valueField,u=t.rowQuery,l=t.colQuery,c=n;return e?[Ly(Ly({},r),{value:i||a,valueField:o||s})]:[c||Ly(Ly({},u),l)]},e.prototype.bindDataCellHover=function(){var t=this;this.spreadsheet.on(Hi.DATA_CELL_HOVER,(function(e){var n=t.spreadsheet.getCell(e.target);if(!bp(n)){var r=t.spreadsheet,i=r.interaction,o=r.options.interaction,a=null==n?void 0:n.getMeta();i.isActiveCell(n)||(i.changeState({cells:[rO(n)],stateName:ey.HOVER}),o.hoverHighlight&&t.updateRowColCells(a),o.hoverFocus&&t.changeStateToHoverFocus(n,e,a))}}))},e.prototype.bindRowCellHover=function(){var t=this;this.spreadsheet.on(Hi.ROW_CELL_HOVER,(function(e){t.handleHeaderHover(e)}))},e.prototype.bindColCellHover=function(){var t=this;this.spreadsheet.on(Hi.COL_CELL_HOVER,(function(e){t.handleHeaderHover(e)}))},e.prototype.bindCornerCellHover=function(){var t=this;this.spreadsheet.on(Hi.CORNER_CELL_HOVER,(function(e){var n=t.spreadsheet.getCell(e.target);t.showEllipsisTooltip(e,n)}))},e}(sE),pE=function(){function t(t){var e=this;this.canvasEventHandlers=[],this.s2EventHandlers=[],this.domEventListeners=[],this.isCanvasEffect=!1,this.isGuiIconShape=function(t){return t instanceof xi&&t.attrs.type===n_.type},this.onCanvasMousedown=function(t){if(e.target=t.target,e.spreadsheet.interaction.clearHoverTimer(),e.isResizeArea(t)){e.spreadsheet.emit(Hi.LAYOUT_RESIZE_MOUSE_DOWN,t);var n=function(n){if(!e.spreadsheet.getCanvasElement())return!1;e.spreadsheet.getCanvasElement()!==n.target&&(t.clientX=n.clientX,t.clientY=n.clientY,t.originalEvent=n,e.spreadsheet.emit(Hi.LAYOUT_RESIZE_MOUSE_MOVE,t))};return window.addEventListener("mousemove",n),void window.addEventListener("mouseup",(function(){window.removeEventListener("mousemove",n)}),{once:!0})}switch(e.spreadsheet.getCellType(t.target)){case ny.DATA_CELL:e.spreadsheet.emit(Hi.DATA_CELL_MOUSE_DOWN,t);break;case ny.ROW_CELL:e.spreadsheet.emit(Hi.ROW_CELL_MOUSE_DOWN,t);break;case ny.COL_CELL:e.spreadsheet.emit(Hi.COL_CELL_MOUSE_DOWN,t);break;case ny.CORNER_CELL:e.spreadsheet.emit(Hi.CORNER_CELL_MOUSE_DOWN,t);break;case ny.MERGED_CELL:e.spreadsheet.emit(Hi.MERGED_CELLS_MOUSE_DOWN,t)}},this.onCanvasMousemove=function(t){if(e.isResizeArea(t))return e.activeResizeArea(t),void e.spreadsheet.emit(Hi.LAYOUT_RESIZE_MOUSE_MOVE,t);e.resetResizeArea();var n=e.spreadsheet.getCell(t.target);if(n){var r=n.cellType;switch(r){case ny.DATA_CELL:e.spreadsheet.emit(Hi.DATA_CELL_MOUSE_MOVE,t);break;case ny.ROW_CELL:e.spreadsheet.emit(Hi.ROW_CELL_MOUSE_MOVE,t);break;case ny.COL_CELL:e.spreadsheet.emit(Hi.COL_CELL_MOUSE_MOVE,t);break;case ny.CORNER_CELL:e.spreadsheet.emit(Hi.CORNER_CELL_MOUSE_MOVE,t);break;case ny.MERGED_CELL:e.spreadsheet.emit(Hi.MERGED_CELLS_MOUSE_MOVE,t)}if(!e.hasBrushSelectionIntercepts())switch(e.spreadsheet.emit(Hi.GLOBAL_HOVER,t),r){case ny.DATA_CELL:e.spreadsheet.emit(Hi.DATA_CELL_HOVER,t);break;case ny.ROW_CELL:e.spreadsheet.emit(Hi.ROW_CELL_HOVER,t);break;case ny.COL_CELL:e.spreadsheet.emit(Hi.COL_CELL_HOVER,t);break;case ny.CORNER_CELL:e.spreadsheet.emit(Hi.CORNER_CELL_HOVER,t);break;case ny.MERGED_CELL:e.spreadsheet.emit(Hi.MERGED_CELLS_HOVER,t)}}},this.onCanvasMouseup=function(t){if(e.isResizeArea(t))e.spreadsheet.emit(Hi.LAYOUT_RESIZE_MOUSE_UP,t);else{var n=e.spreadsheet.getCell(t.target);if(n){var r=n.cellType;if(e.target===t.target){var i=e.isGuiIconShape(t.target);switch(r){case ny.DATA_CELL:e.spreadsheet.emit(Hi.DATA_CELL_CLICK,t);break;case ny.ROW_CELL:if(i)break;e.spreadsheet.emit(Hi.ROW_CELL_CLICK,t);break;case ny.COL_CELL:if(i)break;e.spreadsheet.emit(Hi.COL_CELL_CLICK,t);break;case ny.CORNER_CELL:if(i)break;e.spreadsheet.emit(Hi.CORNER_CELL_CLICK,t);break;case ny.MERGED_CELL:e.spreadsheet.emit(Hi.MERGED_CELLS_CLICK,t)}}switch(r){case ny.DATA_CELL:e.spreadsheet.emit(Hi.DATA_CELL_MOUSE_UP,t);break;case ny.ROW_CELL:e.spreadsheet.emit(Hi.ROW_CELL_MOUSE_UP,t);break;case ny.COL_CELL:e.spreadsheet.emit(Hi.COL_CELL_MOUSE_UP,t);break;case ny.CORNER_CELL:e.spreadsheet.emit(Hi.CORNER_CELL_MOUSE_UP,t);break;case ny.MERGED_CELL:e.spreadsheet.emit(Hi.MERGED_CELLS_MOUSE_UP,t)}}}},this.onCanvasClick=function(t){e.spreadsheet.emit(Hi.GLOBAL_CLICK,t)},this.onCanvasDoubleClick=function(t){var n=e.spreadsheet;if(e.isResizeArea(t))n.emit(Hi.LAYOUT_RESIZE_MOUSE_UP,t);else{n.emit(Hi.GLOBAL_DOUBLE_CLICK,t);var r=n.getCell(t.target);if(r){var i=r.cellType;if(e.target===t.target)switch(i){case ny.DATA_CELL:n.emit(Hi.DATA_CELL_DOUBLE_CLICK,t);break;case ny.ROW_CELL:n.emit(Hi.ROW_CELL_DOUBLE_CLICK,t);break;case ny.COL_CELL:n.emit(Hi.COL_CELL_DOUBLE_CLICK,t);break;case ny.CORNER_CELL:n.emit(Hi.CORNER_CELL_DOUBLE_CLICK,t);break;case ny.MERGED_CELL:n.emit(Hi.MERGED_CELLS_DOUBLE_CLICK,t)}}}},this.onCanvasMouseout=function(t){if(e.isAutoResetSheetStyle&&!(null==t?void 0:t.shape)){var n=e.spreadsheet.interaction;n.isSelectedState()||n.intercepts.size>0||n.reset()}},this.onCanvasContextMenu=function(t){var n=e.spreadsheet;if(e.isResizeArea(t))n.emit(Hi.LAYOUT_RESIZE_MOUSE_UP,t);else switch(n.emit(Hi.GLOBAL_CONTEXT_MENU,t),e.spreadsheet.getCellType(t.target)){case ny.DATA_CELL:e.spreadsheet.emit(Hi.DATA_CELL_CONTEXT_MENU,t);break;case ny.ROW_CELL:e.spreadsheet.emit(Hi.ROW_CELL_CONTEXT_MENU,t);break;case ny.COL_CELL:e.spreadsheet.emit(Hi.COL_CELL_CONTEXT_MENU,t);break;case ny.CORNER_CELL:e.spreadsheet.emit(Hi.CORNER_CELL_CONTEXT_MENU,t);break;case ny.MERGED_CELL:e.spreadsheet.emit(Hi.MERGED_CELLS_CONTEXT_MENU,t)}},this.spreadsheet=t,this.bindEvents()}return Object.defineProperty(t.prototype,"canvasContainer",{get:function(){return this.spreadsheet.container},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAutoResetSheetStyle",{get:function(){return this.spreadsheet.options.interaction.autoResetSheetStyle},enumerable:!1,configurable:!0}),t.prototype.bindEvents=function(){var t=this;this.clearAllEvents(),this.addCanvasEvent(Gi.CLICK,this.onCanvasClick),this.addCanvasEvent(Gi.MOUSE_DOWN,this.onCanvasMousedown),this.addCanvasEvent(Gi.MOUSE_MOVE,this.onCanvasMousemove),this.addCanvasEvent(Gi.MOUSE_OUT,this.onCanvasMouseout),this.addCanvasEvent(Gi.MOUSE_UP,this.onCanvasMouseup),this.addCanvasEvent(Gi.DOUBLE_CLICK,this.onCanvasDoubleClick),this.addCanvasEvent(Gi.CONTEXT_MENU,this.onCanvasContextMenu),this.addS2Event(Hi.GLOBAL_ACTION_ICON_CLICK,(function(){t.spreadsheet.interaction.addIntercepts([fy.HOVER]),t.spreadsheet.interaction.clearState()})),this.addDomEventListener(window,Gi.CLICK,(function(e){t.resetSheetStyle(e),t.isCanvasEffect=t.isMouseOnTheCanvasContainer(e)})),this.addDomEventListener(window,Gi.KEY_DOWN,(function(e){t.onKeyboardCopy(e),t.onKeyboardEsc(e),t.spreadsheet.emit(Hi.GLOBAL_KEYBOARD_DOWN,e)})),this.addDomEventListener(window,Gi.KEY_UP,(function(e){t.spreadsheet.emit(Hi.GLOBAL_KEYBOARD_UP,e)})),this.addDomEventListener(window,Gi.MOUSE_UP,(function(e){t.spreadsheet.emit(Hi.GLOBAL_MOUSE_UP,e)})),this.addDomEventListener(window,Gi.MOUSE_MOVE,(function(e){t.spreadsheet.emit(Hi.GLOBAL_MOUSE_MOVE,e)}))},t.prototype.onKeyboardCopy=function(t){if(this.isCanvasEffect&&this.spreadsheet.options.interaction.enableCopy&&rx(t.key,cy.COPY)&&(t.metaKey||t.ctrlKey)){var e=Sx(this.spreadsheet);Ep(e)||this.spreadsheet.emit(Hi.GLOBAL_COPIED,e)}},t.prototype.onKeyboardEsc=function(t){this.isCanvasEffect&&rx(t.key,cy.ESC)&&this.resetSheetStyle(t)},t.prototype.resetSheetStyle=function(t){if(this.isAutoResetSheetStyle&&this.spreadsheet){var e=this.spreadsheet.interaction;e.hasIntercepts([fy.BRUSH_SELECTION,fy.COL_BRUSH_SELECTION,fy.ROW_BRUSH_SELECTION])?e.removeIntercepts([fy.BRUSH_SELECTION,fy.ROW_BRUSH_SELECTION,fy.COL_BRUSH_SELECTION]):this.isMouseOnTheTooltip(t)||this.isMouseOnTheCanvasContainer(t)||(this.spreadsheet.emit(Hi.GLOBAL_RESET,t),e.reset())}},t.prototype.isMouseOnTheCanvasContainer=function(t){if(t instanceof MouseEvent){var e=this.spreadsheet.getCanvasElement();if(!e)return!1;var n=e.getBoundingClientRect()||{},r=n.x,i=n.y,o=this.getContainerRect(),a=o.width,s=o.height;return e.contains(t.target)&&t.clientX<=r+a&&t.clientY<=i+s}return!1},t.prototype.getContainerRect=function(){var t,e=(null===(t=this.spreadsheet.facet)||void 0===t?void 0:t.panelBBox)||{},n=e.maxX,r=e.maxY,i=this.spreadsheet.options,o=i.width,a=i.height;return{width:Math.min(o,n),height:Math.min(a,r)}},t.prototype.isMouseOnTheTooltip=function(t){var e,n,r,i;if(!xC(this.spreadsheet,t).showTooltip)return!1;var o=(null===(r=null===(n=null===(e=this.spreadsheet.tooltip)||void 0===e?void 0:e.container)||void 0===n?void 0:n.getBoundingClientRect)||void 0===r?void 0:r.call(n))||{},a=o.x,s=o.y,u=o.width,l=o.height;return t.target instanceof Node&&this.spreadsheet.tooltip.visible?OC(null===(i=this.spreadsheet.tooltip)||void 0===i?void 0:i.container,t.target):t instanceof MouseEvent&&(t.clientX>=a&&t.clientX<=a+u&&t.clientY>=s&&t.clientY<=s+l)},t.prototype.isResizeArea=function(t){var e=ml(t.target,"attrs.appendInfo");return null==e?void 0:e.isResizeArea},t.prototype.activeResizeArea=function(t){this.resetResizeArea();var e=t.target;this.spreadsheet.store.set("activeResizeArea",e),e.attr(py.backgroundOpacity,this.spreadsheet.theme.resizeArea.interactionState.hover.backgroundOpacity)},t.prototype.resetResizeArea=function(){var t=this.spreadsheet.store.get("activeResizeArea");bp(t)||t.attr(py.backgroundOpacity,this.spreadsheet.theme.resizeArea.backgroundOpacity),this.spreadsheet.store.set("activeResizeArea",t)},t.prototype.hasBrushSelectionIntercepts=function(){return this.spreadsheet.interaction.hasIntercepts([fy.HOVER,fy.BRUSH_SELECTION,fy.ROW_BRUSH_SELECTION,fy.COL_BRUSH_SELECTION])},t.prototype.clear=function(){this.unbindEvents()},t.prototype.unbindEvents=function(){this.clearAllEvents()},t.prototype.addCanvasEvent=function(t,e){var n;null===(n=this.canvasContainer)||void 0===n||n.on(t,e),this.canvasEventHandlers.push({type:t,handler:e})},t.prototype.addS2Event=function(t,e){this.spreadsheet.on(t,e),this.s2EventHandlers.push({type:t,handler:e})},t.prototype.addDomEventListener=function(t,e,n){if(t.addEventListener){var r=this.spreadsheet.options.interaction.eventListenerOptions;t.addEventListener(e,n,r),this.domEventListeners.push({target:t,type:e,handler:n,options:r})}else console.error("Please make sure ".concat(t," has addEventListener function"))},t.prototype.clearAllEvents=function(){var t=this;Wf(this.canvasEventHandlers,(function(e){var n,r=e.type,i=e.handler;null===(n=t.canvasContainer)||void 0===n||n.off(r,i)})),Wf(this.s2EventHandlers,(function(e){var n=e.type,r=e.handler;t.spreadsheet.off(n,r)})),Wf(this.domEventListeners,(function(t){t.target.removeEventListener(t.type,t.handler,t.options)})),this.canvasEventHandlers=[],this.s2EventHandlers=[],this.domEventListeners=[]},t}(),gE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isRangeSelection=!1,e.handleColClick=function(t){t.stopPropagation();var n=e.spreadsheet.interaction,r=e.spreadsheet.getCell(t.target),i=null==r?void 0:r.getMeta();if(!Ep(null==i?void 0:i.x)){n.addIntercepts([fy.HOVER]);var o=[rO(r)],a=e.spreadsheet.store.get("lastClickedCell");if(e.isRangeSelection&&a&&a.cellType===r.cellType&&a.getMeta().level===r.getMeta().level){var s=Ny([e.spreadsheet.facet.layoutResult.rowsHierarchy.maxLevel,e.spreadsheet.facet.layoutResult.colsHierarchy.maxLevel],2),u=s[0],l=s[1],c=oO(a.getMeta(),r.getMeta()),h=c.start,f=c.end;r instanceof Hx?o=e.handleSeriesNumberRowSelected(h.rowIndex,f.rowIndex,r):r.cellType===ny.ROW_CELL&&r.getMeta().level===u?o=e.handleRowSelected(h.rowIndex,f.rowIndex,r):r.cellType===ny.COL_CELL&&r.getMeta().level===l&&(o=e.handleColSelected(h.colIndex,f.colIndex,r)),n.changeState({cells:o,stateName:ey.SELECTED})}else e.spreadsheet.store.set("lastClickedCell",r);var d=o.map((function(t){return t.id}));n.updateCells(n.getRowColActiveCells(d)),e.spreadsheet.emit(Hi.GLOBAL_SELECTED,n.getActiveCells())}},e}return Py(e,t),e.prototype.bindEvents=function(){this.bindKeyboardDown(),this.bindDataCellClick(),this.bindColCellClick(),this.bindKeyboardUp()},e.prototype.reset=function(){this.isRangeSelection=!1,this.spreadsheet.interaction.removeIntercepts([fy.CLICK])},e.prototype.bindKeyboardDown=function(){var t=this;this.spreadsheet.on(Hi.GLOBAL_KEYBOARD_DOWN,(function(e){e.key===cy.SHIFT&&(t.isRangeSelection=!0,t.spreadsheet.interaction.addIntercepts([fy.CLICK]))}))},e.prototype.bindKeyboardUp=function(){var t=this;this.spreadsheet.on(Hi.GLOBAL_KEYBOARD_UP,(function(e){e.key===cy.SHIFT&&t.reset()}))},e.prototype.bindColCellClick=function(){var t=this;this.spreadsheet.isTableMode()&&this.spreadsheet.on(Hi.ROW_CELL_CLICK,(function(e){t.handleColClick(e)})),this.spreadsheet.on(Hi.COL_CELL_CLICK,(function(e){t.handleColClick(e)}))},e.prototype.bindDataCellClick=function(){var t=this;this.spreadsheet.on(Hi.DATA_CELL_CLICK,(function(e){e.stopPropagation();var n=t.spreadsheet.getCell(e.target),r=n.getMeta(),i=t.spreadsheet.interaction;if(r){var o=t.spreadsheet.store.get("lastClickedCell");if(t.isRangeSelection&&(null==o?void 0:o.cellType)===n.cellType){var a=oO(o.getMeta(),n.getMeta()),s=a.start,u=a.end,l=uv(s.colIndex,u.colIndex+1).flatMap((function(e){var r=t.spreadsheet.facet.layoutResult.colLeafNodes[e].id;return uv(s.rowIndex,u.rowIndex+1).map((function(i){return{id:(t.spreadsheet.facet.getSeriesNumberWidth()||t.spreadsheet.isTableMode()?String(i):t.spreadsheet.facet.layoutResult.rowLeafNodes[i].id)+"-"+r,colIndex:e,rowIndex:i,type:n.cellType}}))}));i.addIntercepts([fy.CLICK,fy.HOVER]),i.changeState({cells:l,stateName:ey.SELECTED}),t.spreadsheet.showTooltipWithInfo(e,bC(t.spreadsheet)),t.spreadsheet.emit(Hi.GLOBAL_SELECTED,i.getActiveCells())}else t.spreadsheet.store.set("lastClickedCell",n)}}))},e.prototype.handleSeriesNumberRowSelected=function(t,e,n){var r=this.spreadsheet.facet.layoutResult.colLeafNodes[0].id;return uv(t,e+1).map((function(t){return{id:String(t)+"-"+r,colIndex:0,rowIndex:t,type:n.cellType}}))},e.prototype.handleRowSelected=function(t,e,n){return this.spreadsheet.facet.layoutResult.rowNodes.filter((function(n){return Ud(n.rowIndex,t,e+1)})).map((function(t){return{id:t.id,colIndex:t.colIndex,rowIndex:t.rowIndex,type:n.cellType}}))},e.prototype.handleColSelected=function(t,e,n){return this.spreadsheet.facet.layoutResult.colLeafNodes.filter((function(n){return Ud(n.colIndex,t,e+1)})).map((function(t){return{id:t.id,colIndex:t.colIndex,rowIndex:t.rowIndex,type:n.cellType}}))},e}(sE),vE=[cy.ARROW_LEFT,cy.ARROW_RIGHT,cy.ARROW_UP,cy.ARROW_DOWN],mE=function(t){function e(e){return t.call(this,e)||this}return Py(e,t),e.prototype.isCanvasEffect=function(){return this.spreadsheet.interaction.eventController.isCanvasEffect},e.prototype.bindEvents=function(){var t=this;this.spreadsheet.on(Hi.GLOBAL_KEYBOARD_DOWN,(function(e){if(t.isCanvasEffect()){var n=e.shiftKey,r=e.metaKey,i=!1,o=!1,a=!1;vE.includes(e.key)&&(r&&n?(i=!1,o=!0,a=!1):r?(i=!0,o=!0,a=!0):n?(i=!1,o=!1,a=!1):(i=!0,o=!1,a=!0),t.handleMove({event:e,changeStartCell:i,isJumpMode:o,isSingleSelection:a}))}})),this.spreadsheet.on(Hi.DATA_CELL_CLICK,(function(e){var n=t.spreadsheet.getCell(e.target).getMeta();n&&(t.startCell=t.getCellMetaFromViewMeta(n),t.endCell=t.startCell)}))},e.prototype.getCellMetaFromViewMeta=function(t){return{rowIndex:t.rowIndex,colIndex:t.colIndex,id:t.id,type:ny.DATA_CELL}},e.prototype.handleMove=function(t){var e=t.event,n=t.changeStartCell,r=t.isJumpMode,i=t.isSingleSelection,o=this.spreadsheet,a=this.startCell,s=this.endCell,u=n?a:s,l=this.getMoveInfo(e.key,u,r);if(l){var c=Ny([l.row,l.col],2),h=c[0],f=c[1];this.scrollToActiveCell(o,h,f);var d=this.generateCellMeta(o,h,f),p=i?[d]:this.getRangeCells(o,a,d);iO(o,p),n&&(this.startCell=d),this.endCell=d,this.spreadsheet.emit(Hi.DATA_CELL_SELECT_MOVE,p)}},e.prototype.generateCellMeta=function(t,e,n){var r=t.isTableMode,i=t.facet.layoutResult,o=i.colLeafNodes,a=i.rowLeafNodes,s=r()?String(e):a[e].id,u=o[n].id;return{rowIndex:e,colIndex:n,id:Gx(s,u),type:ny.DATA_CELL}},e.prototype.getRangeCells=function(t,e,n){for(var r=oO(e,n),i=r.start,o=i.rowIndex,a=i.colIndex,s=r.end,u=s.rowIndex,l=s.colIndex,c=[],h=o;h<=u;h++)for(var f=a;f<=l;f++)c.push(this.generateCellMeta(t,h,f));return c},e.prototype.getMoveInfo=function(t,e,n){var r=this.spreadsheet,i=r.options,o=i.frozenColCount,a=void 0===o?0:o,s=i.frozenRowCount,u=void 0===s?0:s,l=i.frozenTrailingColCount,c=void 0===l?0:l,h=i.frozenTrailingRowCount,f=void 0===h?0:h,d=r.facet.layoutResult,p=d.rowLeafNodes,g=Ny([0+a,d.colLeafNodes.length-c-1],2),v=g[0],m=g[1],y=Ny([0+u,(r.isTableMode()?r.dataSet.getDisplayDataSet().length:p.length)-f-1],2),b=y[0],_=y[1];if(e)switch(t){case cy.ARROW_RIGHT:if(e.colIndex+1>m)return;return{row:e.rowIndex,col:n?m:e.colIndex+1};case cy.ARROW_LEFT:if(e.colIndex-1<v)return;return{row:e.rowIndex,col:n?v:e.colIndex-1};case cy.ARROW_UP:if(e.rowIndex-1<b)return;return{row:n?b:e.rowIndex-1,col:e.colIndex};case cy.ARROW_DOWN:if(e.rowIndex+1>_)return;return{row:n?_:e.rowIndex+1,col:e.colIndex}}},e.prototype.calculateOffset=function(t,e,n){var r=t.options,i=r.frozenRowCount,o=void 0===i?0:i,a=r.frozenTrailingRowCount,s=void 0===a?0:a,u=t.facet,l=t.frozenColGroup,c=t.frozenTrailingColGroup,h=t.frozenRowGroup,f=t.frozenTrailingRowGroup,d=u.layoutResult.colLeafNodes,p=u.getScrollOffset(),g=p.scrollX,v=p.scrollY,m=u.panelBBox,y=m.viewportHeight,b=m.viewportWidth,_=ml(t,"theme.splitLine"),x=l?Math.floor(l.getBBox().width-_.verticalBorderWidth/2):0,w=c?Math.floor(c.getBBox().width):0,O=h?Math.floor(h.getBBox().height-_.horizontalBorderWidth/2):0,S=f?Math.floor(f.getBBox().height):0,C=Rb(g,v,u.viewCellWidths,u.viewCellHeights,{width:b-x-w,height:y-O-S,x:x,y:O},u.getRealScrollX(u.cornerBBox.width)),E=-1,T=-1,A=d.find((function(t){return t.colIndex===n}));if(n<=C[0]?E=A.x-x:n>=C[1]&&n<d.length-s&&(E=A.x+A.width-b+w),e<=C[2])T=u.viewCellHeights.getCellOffsetY(e-o);else if(e>=C[3]){T=u.viewCellHeights.getCellOffsetY(e+1)+S-y}return{offsetX:E,offsetY:T}},e.prototype.scrollToActiveCell=function(t,e,n){var r=this.calculateOffset(t,e,n),i=r.offsetX,o=r.offsetY,a=t.facet,s=t.facet.getScrollOffset(),u=s.scrollX,l=s.scrollY;a.scrollWithAnimation({offsetX:{value:i>-1?i:u},offsetY:{value:o>-1?o:l}})},e}(sE),yE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.displayedCells=[],e.brushRangeCells=[],e.brushSelectionStage=ly.UN_DRAGGED,e.brushSelectionMinimumMoveDistance=5,e.scrollAnimationComplete=!0,e.mouseMoveDistanceFromCanvas=0,e.setMoveDistanceFromCanvas=function(t,n,r){var i=0;if(n&&(i=t.x),r){var o=t.y;i=n?Math.max(o,i):o}e.mouseMoveDistanceFromCanvas=i},e.formatBrushPointForScroll=function(t){var n,r,i,o,a=t.x,s=t.y,u=e.spreadsheet.facet,l=u.panelBBox,c=l.minX,h=l.minY,f=l.maxX,d=l.maxY,p=(null===(n=e.endBrushPoint)||void 0===n?void 0:n.x)+a,g=(null===(r=e.endBrushPoint)||void 0===r?void 0:r.y)+s,v=!0,m=!0,y=null===(o=null===(i=u.vScrollBar)||void 0===i?void 0:i.getBBox())||void 0===o?void 0:o.width;return p>f?p=f-y-2:p<c?p=c+2:v=!1,g>d?g=d-2:g<=h?g=h+2:m=!1,{x:{value:p,needScroll:v},y:{value:g,needScroll:m}}},e.rectanglesIntersect=function(t,e){return t.maxX>e.minX&&t.minX<e.maxX&&t.minY<e.maxY&&t.maxY>e.minY},e.autoScrollIntervalId=null,e.autoScrollConfig=Mh(by),e.validateYIndex=function(t){var n,r,i=e.spreadsheet.facet,o=i.frozenGroupInfo,a=0,s=null===(n=null==o?void 0:o.frozenRow)||void 0===n?void 0:n.range;if(s&&(a=s[1]+1),t<a)return null;var u=i.getCellRange().end,l=null===(r=null==o?void 0:o.frozenTrailingRow)||void 0===r?void 0:r.range;return l&&(u=l[0]-1),t>u?null:t},e.validateXIndex=function(t){var n,r,i=e.spreadsheet.facet,o=i.frozenGroupInfo,a=0,s=null===(n=null==o?void 0:o.frozenCol)||void 0===n?void 0:n.range;if(s&&(a=s[1]+1),t<a)return null;var u=i.layoutResult.colLeafNodes.length-1,l=null===(r=null==o?void 0:o.frozenTrailingCol)||void 0===r?void 0:r.range;return l&&(u=l[0]-1),t>u?null:t},e.adjustNextColIndexWithFrozen=function(t,n){var r=e.spreadsheet,i=r.facet,o=r.dataSet,a=r.options,s=o.getDisplayDataSet().length,u=i.layoutResult.colLeafNodes.length,l=p_(a,u,s),c=l.frozenTrailingColCount,h=l.frozenColCount,f=i.panelScrollGroupIndexes;return c>0&&n===yy.TRAILING&&kb(t,c,u)?f[1]:h>0&&n===yy.LEADING&&jb(t,h)?f[0]:t},e.adjustNextRowIndexWithFrozen=function(t,n){var r=e.spreadsheet,i=r.facet,o=r.dataSet,a=r.options,s=o.getDisplayDataSet().length,u=i.layoutResult.colLeafNodes.length,l=i.getCellRange(),c=p_(a,u,s),h=c.frozenTrailingRowCount,f=c.frozenRowCount,d=i.panelScrollGroupIndexes;return h>0&&n===yy.TRAILING&&Lb(t,l.end,h)?d[3]:f>0&&n===yy.LEADING&&Pb(t,l.start,f)?d[2]:t},e.getNextScrollDelta=function(t){var n=e.spreadsheet.facet.getScrollOffset(),r=n.scrollX,i=n.scrollY,o=0,a=0;if(t.y.scroll){var s=t.y.value>0?yy.TRAILING:yy.LEADING,u=e.adjustNextRowIndexWithFrozen(e.endBrushPoint.rowIndex,s);a=Ep(l=e.validateYIndex(u+(t.y.value>0?1:-1)))?0:dO(l,s,e.spreadsheet)-i}if(t.x.scroll){s=t.x.value>0?yy.TRAILING:yy.LEADING;var l,c=e.adjustNextColIndexWithFrozen(e.endBrushPoint.colIndex,s);o=Ep(l=e.validateXIndex(c+(t.x.value>0?1:-1)))?0:fO(l,s,e.spreadsheet)-r}return{x:o,y:a}},e.onScrollAnimationComplete=function(){e.scrollAnimationComplete=!0,e.brushSelectionStage!==ly.UN_DRAGGED&&e.renderPrepareSelected(e.endBrushPoint)},e.autoScroll=function(){if(e.brushSelectionStage!==ly.UN_DRAGGED&&e.scrollAnimationComplete){var t=e.autoScrollConfig,n=e.spreadsheet.facet.getScrollOffset(),r={offsetX:{value:n.scrollX,animate:!0},offsetY:{value:n.scrollY,animate:!0}},i=e.getNextScrollDelta(t),o=i.x,a=i.y;if(0!==a||0!==o){t.y.scroll&&(r.offsetY.value+=a),t.x.scroll&&(r.offsetX.value+=o,r.offsetX.value<0&&(r.offsetX.value=0)),e.scrollAnimationComplete=!1;var s=3;t.x.scroll&&(s=1),e.spreadsheet.facet.scrollWithAnimation(r,Math.max(16,300-e.mouseMoveDistanceFromCanvas*s),e.onScrollAnimationComplete)}else e.clearAutoScroll()}},e.handleScroll=em((function(t,n){if(e.brushSelectionStage!==ly.UN_DRAGGED){var r=e.formatBrushPointForScroll({x:t,y:n}),i=r.x,o=i.value,a=i.needScroll,s=r.y,u=s.value,l=s.needScroll,c=e.autoScrollConfig;l&&(c.y.value=n,c.y.scroll=!0),a&&(c.x.value=t,c.x.scroll=!0),e.setMoveDistanceFromCanvas({x:t,y:n},a,l),e.renderPrepareSelected({x:o,y:u}),(l||a)&&(e.clearAutoScroll(),e.autoScroll(),e.autoScrollIntervalId=setInterval(e.autoScroll,16))}}),30),e.clearAutoScroll=function(){e.autoScrollIntervalId&&(clearInterval(e.autoScrollIntervalId),e.autoScrollIntervalId=null,e.resetScrollDelta())},e.onUpdateCells=function(t,e){return e()},e.showPrepareSelectedCells=function(){e.brushRangeCells=e.getBrushRangeCells(),e.spreadsheet.interaction.changeState({cells:Sd(e.brushRangeCells,(function(t){return rO(t)})),stateName:ey.PREPARE_SELECT,force:!0,onUpdateCells:e.onUpdateCells})},e.renderPrepareSelected=function(t){var n=t.x,r=t.y,i=e.spreadsheet.container.getShape(n,r),o=e.spreadsheet.getCell(i);if(o&&(o instanceof Hx||o instanceof qw||o instanceof Nw)){var a=o.getMeta(),s=a.rowIndex,u=a.colIndex;e.endBrushPoint={x:n,y:r,rowIndex:s,colIndex:u};var l=e.spreadsheet.interaction;l.addIntercepts([fy.HOVER]),l.clearStyleIndependent(),e.isValidBrushSelection()&&(e.showPrepareSelectedCells(),e.updatePrepareSelectMask())}},e.getSelectedCellMetas=function(t){},e}return Py(e,t),e.prototype.bindEvents=function(){this.bindMouseDown(),this.bindMouseMove(),this.bindMouseUp()},e.prototype.getPrepareSelectMaskTheme=function(){var t;return null===(t=this.spreadsheet.theme)||void 0===t?void 0:t.prepareSelectMask},e.prototype.initPrepareSelectMaskShape=function(){var t=this.spreadsheet.foregroundGroup;if(t){t.removeChild(this.prepareSelectMaskShape);var e=this.getPrepareSelectMaskTheme();this.prepareSelectMaskShape=t.addShape("rect",{visible:!1,attrs:{width:0,height:0,x:0,y:0,fill:null==e?void 0:e.backgroundColor,fillOpacity:null==e?void 0:e.backgroundOpacity,zIndex:ro},capture:!1})}},e.prototype.setBrushSelectionStage=function(t){this.brushSelectionStage=t},e.prototype.isPointInCanvas=function(t){var e=this.spreadsheet.facet.getCanvasHW(),n=e.height,r=e.width,i=this.spreadsheet.facet.panelBBox,o=i.minX,a=i.minY;return t.x>o&&t.x<r&&t.y>a&&t.y<n},e.prototype.resetDrag=function(){this.hidePrepareSelectMaskShape(),this.setBrushSelectionStage(ly.UN_DRAGGED)},e.prototype.isValidBrushSelection=function(){var t=this.getBrushRange(),e=t.start,n=t.end;return n.x-e.x>this.brushSelectionMinimumMoveDistance||n.y-e.y>this.brushSelectionMinimumMoveDistance},e.prototype.setDisplayedCells=function(){this.displayedCells=this.spreadsheet.interaction.getPanelGroupAllDataCells()},e.prototype.updatePrepareSelectMask=function(){var t=this.getBrushRange();this.prepareSelectMaskShape.attr({x:t.start.x,y:t.start.y,width:t.width,height:t.height}),this.prepareSelectMaskShape.show()},e.prototype.hidePrepareSelectMaskShape=function(){var t;null===(t=this.prepareSelectMaskShape)||void 0===t||t.hide()},e.prototype.resetScrollDelta=function(){this.autoScrollConfig=Mh(by)},e.prototype.getBrushPoint=function(t){var e=this.spreadsheet.facet.getScrollOffset(),n=e.scrollY,r=e.scrollX,i={x:null==t?void 0:t.x,y:null==t?void 0:t.y},o=this.spreadsheet.getCell(t.target).getMeta(),a=o.colIndex,s=o.rowIndex;return Ly(Ly({},i),{rowIndex:s,colIndex:a,scrollY:n,scrollX:r})},e.prototype.getBrushRange=function(){var t,e,n,r,i,o,a,s,u=this.spreadsheet.facet.getScrollOffset(),l=u.scrollX,c=u.scrollY,h=Math.min(this.startBrushPoint.rowIndex,null===(t=this.endBrushPoint)||void 0===t?void 0:t.rowIndex),f=Math.max(this.startBrushPoint.rowIndex,null===(e=this.endBrushPoint)||void 0===e?void 0:e.rowIndex),d=Math.min(this.startBrushPoint.colIndex,null===(n=this.endBrushPoint)||void 0===n?void 0:n.colIndex),p=Math.max(this.startBrushPoint.colIndex,null===(r=this.endBrushPoint)||void 0===r?void 0:r.colIndex),g=this.startBrushPoint.x+this.startBrushPoint.scrollX-l,v=this.startBrushPoint.y+this.startBrushPoint.scrollY-c,m=Math.min(g,null===(i=this.endBrushPoint)||void 0===i?void 0:i.x),y=Math.max(g,null===(o=this.endBrushPoint)||void 0===o?void 0:o.x),b=Math.min(v,null===(a=this.endBrushPoint)||void 0===a?void 0:a.y),_=Math.max(v,null===(s=this.endBrushPoint)||void 0===s?void 0:s.y);return{start:{rowIndex:h,colIndex:d,x:m,y:b},end:{rowIndex:f,colIndex:p,x:y,y:_},width:y-m,height:_-b}},e.prototype.getBrushRangeCells=function(){var t=this;return this.setDisplayedCells(),this.displayedCells.filter((function(e){var n=e.getMeta();return t.isInBrushRange(n)}))},e.prototype.mouseDown=function(t){var e;null===(e=null==t?void 0:t.preventDefault)||void 0===e||e.call(t),this.spreadsheet.interaction.hasIntercepts([fy.CLICK])||(this.setBrushSelectionStage(ly.CLICK),this.initPrepareSelectMaskShape(),this.setDisplayedCells(),this.startBrushPoint=this.getBrushPoint(t))},e.prototype.addBrushIntercepts=function(){this.spreadsheet.interaction.addIntercepts([fy.BRUSH_SELECTION])},e.prototype.bindMouseUp=function(t){var e=this;void 0===t&&(t=!1),this.spreadsheet.on(Hi.GLOBAL_MOUSE_UP,(function(n){if(e.brushSelectionStage===ly.DRAGGED){if(t&&e.clearAutoScroll(),e.isValidBrushSelection()){e.addBrushIntercepts(),e.updateSelectedCells();var r=bC(e.spreadsheet);e.spreadsheet.showTooltipWithInfo(n,r)}e.spreadsheet.interaction.getCurrentStateName()===ey.PREPARE_SELECT&&e.spreadsheet.interaction.reset(),e.resetDrag()}else e.resetDrag()})),this.spreadsheet.on(Hi.GLOBAL_CONTEXT_MENU,(function(){e.brushSelectionStage!==ly.UN_DRAGGED&&(e.spreadsheet.interaction.removeIntercepts([fy.HOVER]),e.resetDrag())}))},e.prototype.isInBrushRange=function(t){return!1},e.prototype.bindMouseDown=function(){},e.prototype.bindMouseMove=function(){},e.prototype.updateSelectedCells=function(){},e}(sE),bE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.displayedCells=[],e.brushRangeCells=[],e.getSelectedCellMetas=function(t){var n=[],r=e.spreadsheet.facet.layoutResult,i=r.rowLeafNodes,o=void 0===i?[]:i,a=r.colLeafNodes,s=void 0===a?[]:a,u=uv(t.start.rowIndex,t.end.rowIndex+1),l=uv(t.start.colIndex,t.end.colIndex+1);return u.forEach((function(t){l.forEach((function(r){var i=String(s[r].id),a=bp(o)?String(t):String(o[t].id);n.push({colIndex:r,rowIndex:t,id:"".concat(a,"-").concat(i),type:ny.DATA_CELL,rowId:a,colId:i,spreadsheet:e.spreadsheet})}))})),n},e}return Py(e,t),e.prototype.bindMouseDown=function(){var e=this;this.spreadsheet.on(Hi.DATA_CELL_MOUSE_DOWN,(function(n){t.prototype.mouseDown.call(e,n),e.resetScrollDelta()}))},e.prototype.bindMouseMove=function(){var t=this;this.spreadsheet.on(Hi.GLOBAL_MOUSE_MOVE,(function(e){if(t.brushSelectionStage!==ly.UN_DRAGGED){t.setBrushSelectionStage(ly.DRAGGED);var n=t.spreadsheet.container.getPointByEvent(e);if(t.clearAutoScroll(),t.isPointInCanvas(n))t.renderPrepareSelected(n);else{var r=n.x-t.endBrushPoint.x,i=n.y-t.endBrushPoint.y;t.handleScroll(r,i)}}}))},e.prototype.isInBrushRange=function(t){var e=this.getBrushRange(),n=e.start,r=e.end,i=t.rowIndex,o=t.colIndex;return i>=n.rowIndex&&i<=r.rowIndex&&o>=n.colIndex&&o<=r.colIndex},e.prototype.updateSelectedCells=function(){var t=this.spreadsheet,e=t.interaction,n=t.options,r=this.getBrushRange(),i=this.getSelectedCellMetas(r);e.changeState({cells:i,stateName:ey.SELECTED}),n.interaction.selectedCellHighlight&&i.forEach((function(t){sO(t)}));var o=this.getScrollBrushRangeCells(i);this.spreadsheet.emit(Hi.DATA_CELL_BRUSH_SELECTION,o),this.spreadsheet.emit(Hi.GLOBAL_SELECTED,o),bp(this.brushRangeCells)&&e.removeIntercepts([fy.HOVER])},e.prototype.getScrollBrushRangeCells=function(t){var e=this;return t.map((function(t){var n=e.brushRangeCells.find((function(e){var n=e.getMeta();return(null==n?void 0:n.id)===t.id}));if(n)return n;var r=e.spreadsheet.facet.layoutResult.getCellMeta(t.rowIndex,t.colIndex);return new Hx(r,e.spreadsheet)}))},e.prototype.bindMouseUp=function(){t.prototype.bindMouseUp.call(this,!0)},e}(yE),_E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.displayedCells=[],e.brushRangeCells=[],e.onUpdateCells=function(t){return t.updateCells(t.getAllColHeaderCells())},e}return Py(e,t),e.prototype.bindEvents=function(){this.bindMouseDown(),this.bindMouseMove(),this.bindMouseUp()},e.prototype.bindMouseDown=function(){var e=this;[Hi.COL_CELL_MOUSE_DOWN].forEach((function(n){e.spreadsheet.on(n,(function(n){t.prototype.mouseDown.call(e,n)}))}))},e.prototype.isPointInCanvas=function(t){var e=this.spreadsheet.facet.getCanvasHW().width,n=this.spreadsheet.facet.cornerBBox,r=n.width,i=n.minY,o=n.maxY;return t.x>=r&&t.x<=e&&t.y>=i&&t.y<=o},e.prototype.bindMouseMove=function(){var t=this;this.spreadsheet.on(Hi.COL_CELL_MOUSE_MOVE,(function(e){if(t.brushSelectionStage!==ly.UN_DRAGGED){t.setBrushSelectionStage(ly.DRAGGED);var n=t.spreadsheet.container.getPointByEvent(e.originalEvent);t.isPointInCanvas(n)&&t.renderPrepareSelected(n)}}))},e.prototype.setDisplayedCells=function(){this.displayedCells=this.spreadsheet.interaction.getAllColHeaderCells()},e.prototype.isInBrushRange=function(t){var e=this.getBrushRange(),n=e.start,r=e.end,i=this.spreadsheet.facet.getScrollOffset().scrollX,o=this.spreadsheet.facet.cornerBBox,a=t.x,s=void 0===a?0:a,u=t.y,l=void 0===u?0:u,c=t.width,h=void 0===c?0:c,f=t.height,d=void 0===f?0:f;return this.rectanglesIntersect({minX:n.x-o.width+i,minY:n.y,maxX:r.x-o.width+i,maxY:r.y},{minX:s,maxX:s+h,minY:l,maxY:l+d})},e.prototype.updateSelectedCells=function(){var t=this.spreadsheet.interaction;t.changeState({cells:Sd(this.brushRangeCells,rO),stateName:ey.SELECTED,onUpdateCells:function(t){t.updateCells(t.getAllColHeaderCells())}}),this.spreadsheet.emit(Hi.COL_CELL_BRUSH_SELECTION,this.brushRangeCells),this.spreadsheet.emit(Hi.GLOBAL_SELECTED,this.brushRangeCells),bp(this.brushRangeCells)&&t.removeIntercepts([fy.HOVER])},e.prototype.addBrushIntercepts=function(){this.spreadsheet.interaction.addIntercepts([fy.COL_BRUSH_SELECTION])},e}(yE),xE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.displayedCells=[],e.brushRangeCells=[],e.isInBrushRange=function(t){var n=e.getBrushRange(),r=n.start,i=n.end,o=e.spreadsheet.facet.getScrollOffset(),a=o.scrollY,s=o.hRowScrollX,u=e.spreadsheet.facet.cornerBBox,l=t.x,c=void 0===l?0:l,h=t.y,f=void 0===h?0:h,d=t.width,p=void 0===d?0:d,g=t.height,v=void 0===g?0:g;return e.rectanglesIntersect({minX:r.x+s,minY:r.y-u.height+a,maxX:i.x+s,maxY:i.y-u.height+a},{minX:c,maxX:c+p,minY:f,maxY:f+v})},e.onUpdateCells=function(t){return t.updateCells(t.getAllRowHeaderCells())},e}return Py(e,t),e.prototype.bindMouseDown=function(){var e=this;[Hi.ROW_CELL_MOUSE_DOWN].forEach((function(n){e.spreadsheet.on(n,(function(n){t.prototype.mouseDown.call(e,n)}))}))},e.prototype.isPointInCanvas=function(t){var e=this.spreadsheet.facet.getCanvasHW().height,n=this.spreadsheet.facet.cornerBBox,r=n.minX,i=n.height,o=n.maxX;return t.x>=r&&t.x<=o&&t.y>=i&&t.y<=e},e.prototype.bindMouseMove=function(){var t=this;this.spreadsheet.on(Hi.ROW_CELL_MOUSE_MOVE,(function(e){if(t.brushSelectionStage!==ly.UN_DRAGGED){t.setBrushSelectionStage(ly.DRAGGED);var n=t.spreadsheet.container.getPointByEvent(e.originalEvent);t.isPointInCanvas(n)&&t.renderPrepareSelected(n)}}))},e.prototype.setDisplayedCells=function(){this.displayedCells=this.spreadsheet.interaction.getAllRowHeaderCells()},e.prototype.updateSelectedCells=function(){var t=this.spreadsheet.interaction;t.changeState({cells:Sd(this.brushRangeCells,rO),stateName:ey.SELECTED,onUpdateCells:function(t){t.updateCells(t.getAllRowHeaderCells())}}),this.spreadsheet.emit(Hi.ROW_CELL_BRUSH_SELECTION,this.brushRangeCells),this.spreadsheet.emit(Hi.GLOBAL_SELECTED,this.brushRangeCells),bp(this.brushRangeCells)&&t.removeIntercepts([fy.HOVER])},e.prototype.addBrushIntercepts=function(){this.spreadsheet.interaction.addIntercepts([fy.ROW_BRUSH_SELECTION])},e}(yE),wE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isMultiSelection=!1,e}return Py(e,t),e.prototype.bindEvents=function(){this.bindKeyboardDown(),this.bindDataCellClick(),this.bindKeyboardUp()},e.prototype.reset=function(){this.isMultiSelection=!1,this.spreadsheet.interaction.removeIntercepts([fy.CLICK])},e.prototype.bindKeyboardDown=function(){var t=this;this.spreadsheet.on(Hi.GLOBAL_KEYBOARD_DOWN,(function(e){nO(e)&&(t.isMultiSelection=!0,t.spreadsheet.interaction.addIntercepts([fy.CLICK]))}))},e.prototype.bindKeyboardUp=function(){var t=this;this.spreadsheet.on(Hi.GLOBAL_KEYBOARD_UP,(function(e){nO(e)&&t.reset()}))},e.prototype.getSelectedCells=function(t){var e=t.getMeta().id,n=this.spreadsheet.interaction,r=n.getCells();return n.getCurrentStateName()!==ey.SELECTED&&(r=[]),r.find((function(t){return t.id===e}))?r.filter((function(t){return t.id!==e})):By(By([],Ny(r),!1),[rO(t)],!1)},e.prototype.bindDataCellClick=function(){var t=this;this.spreadsheet.on(Hi.DATA_CELL_CLICK,(function(e){e.stopPropagation();var n=t.spreadsheet.getCell(e.target),r=n.getMeta(),i=t.spreadsheet.interaction;if(t.isMultiSelection&&r){var o=t.getSelectedCells(n);if(bp(o))return i.clearState(),void t.spreadsheet.hideTooltip();i.addIntercepts([fy.CLICK,fy.HOVER]),t.spreadsheet.hideTooltip(),i.changeState({cells:o,stateName:ey.SELECTED}),t.spreadsheet.emit(Hi.GLOBAL_SELECTED,i.getActiveCells()),t.spreadsheet.showTooltipWithInfo(e,bC(t.spreadsheet))}}))},e}(sE),OE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.resizeStartPosition={},e.resizeMouseMove=function(t){var n,r;if(null===(n=e.resizeReferenceGroup)||void 0===n?void 0:n.get("visible")){null===(r=null==t?void 0:t.preventDefault)||void 0===r||r.call(t);var i=t.originalEvent,o=e.getResizeInfo(),a=e.resizeReferenceGroup.getChildren()||[];if(!bp(a)){var s=Ny(a,2)[1],u=Ny(Ah(s.attr("path")),2),l=u[0],c=u[1];o.type===_y.Horizontal?e.updateHorizontalResizingEndGuideLinePosition(i,o,l,c):e.updateVerticalResizingEndGuideLinePosition(i,o,l,c),e.updateResizeGuideLineTheme(s),s.attr("path",[l,c])}}},e}return Py(e,t),e.prototype.bindEvents=function(){this.bindMouseDown(),this.bindMouseMove(),this.bindMouseUp()},e.prototype.initResizeGroup=function(){if(!this.resizeReferenceGroup){this.resizeReferenceGroup=this.spreadsheet.foregroundGroup.addGroup();var t=this.spreadsheet.options,e=t.width,n=t.height,r=this.getResizeAreaTheme(),i=r.guideLineColor,o={path:"",lineDash:r.guideLineDash,stroke:i,lineWidth:r.size};this.resizeReferenceGroup.addShape("path",{id:Oy,attrs:o}),this.resizeReferenceGroup.addShape("path",{id:Sy,attrs:o}),this.resizeReferenceGroup.addShape("rect",{id:Cy,attrs:{appendInfo:{isResizeArea:!0},x:0,y:0,width:e,height:n,fill:"transparent"}})}},e.prototype.getResizeAreaTheme=function(){return this.spreadsheet.theme.resizeArea},e.prototype.setResizeTarget=function(t){this.resizeTarget=t},e.prototype.getGuideLineWidthAndHeight=function(){var t=this.spreadsheet.options,e=t.width,n=t.height,r=this.spreadsheet.facet.panelBBox,i=r.maxY,o=r.maxX;return{width:Math.min(o,e),height:Math.min(i,n)}},e.prototype.getResizeShapes=function(){var t;return(null===(t=this.resizeReferenceGroup)||void 0===t?void 0:t.get("children"))||[]},e.prototype.setResizeMaskCursor=function(t){var e=Ny(this.getResizeShapes(),3)[2];null==e||e.attr("cursor",t)},e.prototype.updateResizeGuideLinePosition=function(t,e){var n=this.getResizeShapes();if(!bp(n)){var r=Ny(n,2),i=r[0],o=r[1],a=e.type,s=e.offsetX,u=e.offsetY,l=e.width,c=e.height,h=this.getGuideLineWidthAndHeight(),f=h.width,d=h.height;if(this.setResizeMaskCursor("".concat(a,"-resize")),a===_y.Horizontal)return i.attr("path",[["M",s,u],["L",s,d]]),o.attr("path",[["M",s+l,u],["L",s+l,d]]),void(this.resizeStartPosition.offsetX=t.offsetX);i.attr("path",[["M",s,u],["L",f,u]]),o.attr("path",[["M",s,u+c],["L",f,u+c]]),this.resizeStartPosition.offsetY=t.offsetY}},e.prototype.bindMouseDown=function(){var t=this;this.spreadsheet.on(Hi.LAYOUT_RESIZE_MOUSE_DOWN,(function(e){var n=e.target,r=e.originalEvent,i=t.getCellAppendInfo(e.target);t.spreadsheet.store.set("resized",!1),(null==i?void 0:i.isResizeArea)&&(t.spreadsheet.interaction.reset(),t.spreadsheet.interaction.addIntercepts([fy.RESIZE]),t.setResizeTarget(n),t.showResizeGroup(),t.updateResizeGuideLinePosition(r,i))}))},e.prototype.bindMouseMove=function(){var t=this;this.spreadsheet.on(Hi.LAYOUT_RESIZE_MOUSE_MOVE,(function(e){em(t.resizeMouseMove,33)(e)}))},e.prototype.getResizeGuideLinePosition=function(){var t=Ny(this.resizeReferenceGroup.getChildren()||[],2),e=t[0],n=t[1],r=(null==e?void 0:e.attr("path"))||[],i=(null==n?void 0:n.attr("path"))||[],o=Ny(r[0]||[],3),a=o[1],s=void 0===a?0:a,u=o[2],l=void 0===u?0:u,c=Ny(i[0]||[],3),h=c[1],f=void 0===h?0:h,d=c[2];return{start:{x:s,y:l},end:{x:f,y:void 0===d?0:d}}},e.prototype.getDisAllowResizeInfo=function(){var t,e=this.getResizeInfo(),n=this.spreadsheet.options.interaction.resize,r=e.width,i=e.height,o=e.resizedWidth,a=e.resizedHeight,s=null===(t=null==n?void 0:n.disable)||void 0===t?void 0:t.call(n,e);return{displayWidth:s?r:o,displayHeight:s?i:a,isDisabled:s}},e.prototype.getResizeWidthDetail=function(){var t,e,n=this.getResizeInfo(),r=this.getDisAllowResizeInfo().displayWidth;switch(n.effect){case xy.Field:return{eventType:Hi.LAYOUT_RESIZE_ROW_WIDTH,style:{rowCfg:{widthByField:(t={},t[n.id]=r,t)}}};case xy.Tree:return{eventType:Hi.LAYOUT_RESIZE_TREE_WIDTH,style:{treeRowsWidth:r,rowCfg:{treeRowsWidth:r}}};case xy.Cell:return{eventType:Hi.LAYOUT_RESIZE_COL_WIDTH,style:{colCfg:{widthByFieldValue:(e={},e[n.id]=r,e)}}};case xy.Series:return{eventType:Hi.LAYOUT_RESIZE_SERIES_WIDTH,seriesNumberWidth:r};default:return null}},e.prototype.getResizeHeightDetail=function(){var t,e,n,r=this.spreadsheet.options,i=r.interaction.resize,o=r.style.rowCfg.heightByField,a=this.spreadsheet.theme.rowCell.cell.padding,s=this.getResizeInfo(),u=this.getDisAllowResizeInfo().displayHeight,l=u-a.top-a.bottom;switch(s.effect){case xy.Field:return{eventType:Hi.LAYOUT_RESIZE_COL_HEIGHT,style:{colCfg:{heightByField:(t={},t[s.id]=u,t)}}};case xy.Cell:return n=o[String(s.id)]||(null==i?void 0:i.rowResizeType)===wy.CURRENT?{rowCfg:{heightByField:(e={},e[s.id]=l,e)}}:{cellCfg:{height:l}},{eventType:Hi.LAYOUT_RESIZE_ROW_HEIGHT,style:n};default:return null}},e.prototype.getResizeDetail=function(){return this.getResizeInfo().type===_y.Horizontal?this.getResizeWidthDetail():this.getResizeHeightDetail()},e.prototype.showResizeGroup=function(){this.initResizeGroup(),this.resizeReferenceGroup.set("visible",!0)},e.prototype.hideResizeGroup=function(){this.resizeReferenceGroup.set("visible",!1)},e.prototype.bindMouseUp=function(){var t=this;this.spreadsheet.on(Hi.GLOBAL_MOUSE_UP,(function(){var e;t.setResizeMaskCursor("default"),t.resizeReferenceGroup&&!bp(null===(e=t.resizeReferenceGroup)||void 0===e?void 0:e.getChildren())&&(t.hideResizeGroup(),t.renderResizedResult())}))},e.prototype.updateResizeGuideLineTheme=function(t){var e=this.getResizeAreaTheme(),n=e.guideLineColor,r=e.guideLineDisableColor,i=this.getDisAllowResizeInfo().isDisabled;t.attr("stroke",i?r:n),this.setResizeMaskCursor(i?"no-drop":"default")},e.prototype.updateHorizontalResizingEndGuideLinePosition=function(t,e,n,r){var i=t.offsetX-this.resizeStartPosition.offsetX;e.width+i<Go&&(i=-(e.width-Go));var o=e.offsetX+e.width+i;n[1]=o,r[1]=o,this.resizeTarget.attr({x:o-e.size/2})},e.prototype.updateVerticalResizingEndGuideLinePosition=function(t,e,n,r){var i=t.offsetY-this.resizeStartPosition.offsetY;e.height+i<Ho&&(i=-(e.height-Ho));var o=e.offsetY+e.height+i;n[2]=o,r[2]=o,this.resizeTarget.attr({y:o-e.size/2})},e.prototype.renderResizedResult=function(){var t=this.getResizeInfo(),e=this.getResizeDetail()||{},n=e.style,r=e.seriesNumberWidth,i=e.eventType,o={info:t,style:n};this.spreadsheet.emit(Hi.LAYOUT_RESIZE,o),this.spreadsheet.emit(i,o),n&&this.spreadsheet.setOptions({style:n}),r&&this.spreadsheet.setTheme({rowCell:{seriesNumberWidth:r}}),this.spreadsheet.store.set("resized",!0),this.render()},e.prototype.getResizeInfo=function(){var t=this.getCellAppendInfo(this.resizeTarget),e=this.getResizeGuideLinePosition(),n=e.start,r=e.end,i=Math.floor(r.x-n.x),o=Math.floor(r.y-n.y);return Ly(Ly({},t),{resizedWidth:i,resizedHeight:o})},e.prototype.render=function(){this.resizeStartPosition={},this.resizeTarget=null,this.resizeReferenceGroup=null,this.spreadsheet.render(!1)},e}(sE),SE=function(){function t(t){var e=this;this.interactions=new Map,this.intercepts=new Set,this.hoverTimer=null,this.defaultState={cells:[],force:!1},this.onTriggerInteractionsResetEffect=function(){e.interactions.forEach((function(t){t.reset()}))},this.selectAll=function(){e.changeState({stateName:ey.ALL_SELECTED})},this.getCellChildrenNodes=function(t){var n,r=null===(n=null==t?void 0:t.getMeta)||void 0===n?void 0:n.call(t),i=(null==t?void 0:t.cellType)===ny.ROW_CELL;return e.spreadsheet.isHierarchyTreeType()&&i?bb.getAllLeaveNodes(r).filter((function(t){return t.rowIndex===r.rowIndex})):bb.getAllChildrenNodes(r)},this.selectHeaderCell=function(t){var n;void 0===t&&(t={});var r=t.cell;if(!bp(r)){var i=null===(n=null==r?void 0:r.getMeta)||void 0===n?void 0:n.call(r);if(i&&!Ep(null==i?void 0:i.x)){e.addIntercepts([fy.HOVER]);var o=e.spreadsheet.isHierarchyTreeType(),a=(null==r?void 0:r.cellType)===ny.COL_CELL,s=e.getState(),u=e.isSelectedCell(r),l=(null==t?void 0:t.isMultiSelection)&&e.isSelectedState(),c=u?[]:e.getCellChildrenNodes(r),h=u?[]:[rO(r)];if(l&&(h=jh(null==s?void 0:s.cells,h),c=jh(null==s?void 0:s.nodes,c),u&&(h=h.filter((function(t){return t.id!==i.id})),c=c.filter((function(t){return!(null==t?void 0:t.id.includes(i.id))})))),bp(h))return e.reset(),void e.spreadsheet.emit(Hi.GLOBAL_SELECTED,e.getActiveCells());var f=c.filter((function(t){return null==t?void 0:t.isLeaf}));e.changeState({cells:h,nodes:f,stateName:ey.SELECTED});var d=h.map((function(t){return t.id}));return e.updateCells(e.getRowColActiveCells(d)),o&&!a||e.highlightNodes(c),e.spreadsheet.emit(Hi.GLOBAL_SELECTED,e.getActiveCells()),!0}}},this.highlightNodes=function(t){void 0===t&&(t=[]),t.forEach((function(t){var e;null===(e=null==t?void 0:t.belongsCell)||void 0===e||e.updateByState(ey.SELECTED,t.belongsCell)}))},this.mergeCells=function(t,n){tw(e.spreadsheet,t,n)},this.unmergeCell=function(t){nw(e.spreadsheet,t)},this.spreadsheet=t,this.registerEventController(),this.registerInteractions(),window.addEventListener("visibilitychange",this.onTriggerInteractionsResetEffect)}return t.prototype.destroy=function(){this.interactions.clear(),this.intercepts.clear(),this.eventController.clear(),this.clearHoverTimer(),this.resetState(),window.removeEventListener("visibilitychange",this.onTriggerInteractionsResetEffect)},t.prototype.reset=function(){this.clearState(),this.clearHoverTimer(),this.intercepts.clear(),this.spreadsheet.hideTooltip()},t.prototype.setState=function(t){hO(this.spreadsheet,t)},t.prototype.getState=function(){return this.spreadsheet.store.get(vy)||this.defaultState},t.prototype.setInteractedCells=function(t){var e=this.getInteractedCells().concat([t]),n=this.getState();n.interactedCells=e,this.setState(n)},t.prototype.getInteractedCells=function(){var t=this.getState();return(null==t?void 0:t.interactedCells)||[]},t.prototype.resetState=function(){this.spreadsheet.store.set(vy,this.defaultState)},t.prototype.getCurrentStateName=function(){return this.getState().stateName},t.prototype.isEqualStateName=function(t){return this.getCurrentStateName()===t},t.prototype.isStateOf=function(t){var e=this.getState();return(null==e?void 0:e.stateName)===t},t.prototype.isSelectedState=function(){return this.isStateOf(ey.SELECTED)},t.prototype.isAllSelectedState=function(){return this.isStateOf(ey.ALL_SELECTED)},t.prototype.isHoverFocusState=function(){return this.isStateOf(ey.HOVER_FOCUS)},t.prototype.isHoverState=function(){return this.isStateOf(ey.HOVER)},t.prototype.isActiveCell=function(t){return!!this.getCells().find((function(e){return t.getMeta().id===e.id}))},t.prototype.isSelectedCell=function(t){return this.isSelectedState()&&this.isActiveCell(t)},t.prototype.getCells=function(){var t=this.getState();return(null==t?void 0:t.cells)||[]},t.prototype.getActiveCells=function(){var t=this.getCells().map((function(t){return t.id})),e=this.getAllCells();return Sd(t,(function(t){return vd(e,(function(e){var n;return(null===(n=null==e?void 0:e.getMeta())||void 0===n?void 0:n.id)===t}))})).filter((function(t){return t}))},t.prototype.clearStyleIndependent=function(){(this.isSelectedState()||this.isHoverState()||this.isAllSelectedState())&&this.getPanelGroupAllDataCells().forEach((function(t){t.hideInteractionShape()}))},t.prototype.getPanelGroupAllUnSelectedDataCells=function(){var t=this;return this.getPanelGroupAllDataCells().filter((function(e){return!t.isActiveCell(e)}))},t.prototype.getPanelGroupAllDataCells=function(){var t;return LC(null===(t=this.spreadsheet.panelGroup)||void 0===t?void 0:t.getChildren(),Hx)},t.prototype.getAllRowHeaderCells=function(){var t,e,n=((null===(t=this.spreadsheet.foregroundGroup)||void 0===t?void 0:t.getChildren())||[]).find((function(t){return t instanceof XC})),r=(null===(e=null==n?void 0:n.cfg)||void 0===e?void 0:e.children)||[];return LC(r,qw).filter((function(t){return t.cellType===ny.ROW_CELL}))},t.prototype.getAllColHeaderCells=function(){var t,e,n=((null===(t=this.spreadsheet.foregroundGroup)||void 0===t?void 0:t.getChildren())||[]).find((function(t){return t instanceof HC})),r=(null===(e=null==n?void 0:n.cfg)||void 0===e?void 0:e.children)||[];return LC(r,Nw).filter((function(t){return t.cellType===ny.COL_CELL}))},t.prototype.getRowColActiveCells=function(t){return jh(this.getAllRowHeaderCells(),this.getAllColHeaderCells()).filter((function(e){return t.includes(e.getMeta().id)}))},t.prototype.getAllCells=function(){return jh(this.getPanelGroupAllDataCells(),this.getAllRowHeaderCells(),this.getAllColHeaderCells())},t.prototype.hideColumns=function(t,e){void 0===t&&(t=[]),void 0===e&&(e=!0),cw(this.spreadsheet,t,e)},t.prototype.getBrushSelectionInfo=function(t){var e,n,r;return gp(t)?{dataBrushSelection:t,rowBrushSelection:t,colBrushSelection:t}:{dataBrushSelection:null!==(e=null==t?void 0:t.data)&&void 0!==e&&e,rowBrushSelection:null!==(n=null==t?void 0:t.row)&&void 0!==n&&n,colBrushSelection:null!==(r=null==t?void 0:t.col)&&void 0!==r&&r}},t.prototype.getDefaultInteractions=function(){var t=this.spreadsheet.options.interaction,e=t.resize,n=t.brushSelection,r=t.multiSelection,i=t.rangeSelection,o=t.selectedCellMove,a=this.getBrushSelectionInfo(n),s=a.dataBrushSelection,u=a.rowBrushSelection,l=a.colBrushSelection;return[{key:ty.CORNER_CELL_CLICK,interaction:fE},{key:ty.DATA_CELL_CLICK,interaction:uE},{key:ty.ROW_COLUMN_CLICK,interaction:cE},{key:ty.ROW_TEXT_CLICK,interaction:hE},{key:ty.MERGED_CELLS_CLICK,interaction:lE},{key:ty.HOVER,interaction:dE,enable:!pb()},{key:ty.BRUSH_SELECTION,interaction:bE,enable:!pb()&&s},{key:ty.ROW_BRUSH_SELECTION,interaction:xE,enable:!pb()&&u},{key:ty.COL_BRUSH_SELECTION,interaction:_E,enable:!pb()&&l},{key:ty.COL_ROW_RESIZE,interaction:OE,enable:!pb()&&e},{key:ty.DATA_CELL_MULTI_SELECTION,interaction:wE,enable:!pb()&&r},{key:ty.RANGE_SELECTION,interaction:gE,enable:!pb()&&i},{key:ty.SELECTED_CELL_MOVE,interaction:mE,enable:!pb()&&o}]},t.prototype.registerInteractions=function(){var t=this,e=this.spreadsheet.options.interaction.customInteractions;this.interactions.clear(),this.getDefaultInteractions().forEach((function(e){var n=e.key,r=e.interaction;!1!==e.enable&&t.interactions.set(n,new r(t.spreadsheet))})),bp(e)||Wf(e,(function(e){var n=e.interaction;t.interactions.set(e.key,new n(t.spreadsheet))}))},t.prototype.registerEventController=function(){this.eventController=new pE(this.spreadsheet)},t.prototype.draw=function(){this.spreadsheet.container.draw()},t.prototype.clearState=function(){cO(this.spreadsheet)&&this.draw()},t.prototype.changeState=function(t){var e=this,n=this.spreadsheet.interaction,r=t.cells,i=void 0===r?[]:r,o=t.force,a=t.stateName,s=t.onUpdateCells;bp(i)&&a===ey.SELECTED?o&&n.changeState({cells:[],stateName:ey.UNSELECTED}):(this.getCurrentStateName()===ey.ALL_SELECTED&&this.clearStyleIndependent(),this.clearState(),this.setState(t),s?s(this,(function(){return e.updatePanelGroupAllDataCells()})):this.updatePanelGroupAllDataCells(),this.draw())},t.prototype.updatePanelGroupAllDataCells=function(){this.updateCells(this.getPanelGroupAllDataCells())},t.prototype.updateCells=function(t){void 0===t&&(t=[]),t.forEach((function(t){t.update()}))},t.prototype.addIntercepts=function(t){var e=this;void 0===t&&(t=[]),t.forEach((function(t){e.intercepts.add(t)}))},t.prototype.hasIntercepts=function(t){var e=this;return void 0===t&&(t=[]),t.some((function(t){return e.intercepts.has(t)}))},t.prototype.removeIntercepts=function(t){var e=this;void 0===t&&(t=[]),t.forEach((function(t){e.intercepts.delete(t)}))},t.prototype.clearHoverTimer=function(){clearTimeout(this.hoverTimer)},t.prototype.setHoverTimer=function(t){this.hoverTimer=t},t.prototype.getHoverTimer=function(){return this.hoverTimer},t}(),CE=function(){function t(t){var e=this;this.viewport=window,this.init=function(){e.initDevicePixelRatioListener(),e.initDeviceZoomListener()},this.destroy=function(){e.removeDevicePixelRatioListener(),e.removeDeviceZoomListener()},this.removeDevicePixelRatioListener=function(){var t;(null===(t=e.devicePixelRatioMedia)||void 0===t?void 0:t.removeEventListener)?e.devicePixelRatioMedia.removeEventListener("change",e.renderByDevicePixelRatioChanged):e.devicePixelRatioMedia.removeListener(e.renderByDevicePixelRatioChanged)},this.initDeviceZoomListener=function(){var t,n;pb()||null===(n=null===(t=e.viewport)||void 0===t?void 0:t.visualViewport)||void 0===n||n.addEventListener("resize",e.renderByZoomScale)},this.removeDeviceZoomListener=function(){var t,n;pb()||null===(n=null===(t=e.viewport)||void 0===t?void 0:t.visualViewport)||void 0===n||n.removeEventListener("resize",e.renderByZoomScale)},this.renderByDevicePixelRatioChanged=function(){e.renderByDevicePixelRatio()},this.renderByDevicePixelRatio=function(t){void 0===t&&(t=window.devicePixelRatio);var n=e.spreadsheet,r=n.container,i=n.options,o=i.width,a=i.height,s=i.devicePixelRatio,u=e.spreadsheet.getCanvasElement();if(r.get("pixelRatio")!==t&&u){var l=Math.max(t,s,Ty);r.set("pixelRatio",l),r.changeSize(o,a),e.spreadsheet.render(!1)}},this.renderByZoomScale=xf((function(t){var n=Math.ceil(t.target.scale);n>=1&&e.renderByDevicePixelRatio(n)}),350),this.spreadsheet=t}return t.prototype.initDevicePixelRatioListener=function(){var t;this.devicePixelRatioMedia=window.matchMedia("(resolution: ".concat(window.devicePixelRatio,"dppx)")),(null===(t=this.devicePixelRatioMedia)||void 0===t?void 0:t.addEventListener)?this.devicePixelRatioMedia.addEventListener("change",this.renderByDevicePixelRatioChanged):this.devicePixelRatioMedia.addListener(this.renderByDevicePixelRatioChanged)},t}(),EE=function(){function t(t){this.visible=!1,this.position={x:0,y:0},this.spreadsheet=t}return t.prototype.show=function(t){var e,n,r,i=t.position,o=t.options,a=t.content,s=t.event,u=nC(o).enterable,l=this.spreadsheet.options.tooltip||{},c=l.autoAdjustBoundary,h=l.adjustPosition;this.visible=!0,this.options=t;var f=this.getContainer();this.renderContent(a);var d=eC({spreadsheet:this.spreadsheet,position:i,tooltipContainer:f,autoAdjustBoundary:c}),p=d.x,g=d.y;this.position=null!==(e=null==h?void 0:h({position:{x:p,y:g},event:s}))&&void 0!==e?e:{x:p,y:g},iC(f,{style:{left:"".concat(null===(n=this.position)||void 0===n?void 0:n.x,"px"),top:"".concat(null===(r=this.position)||void 0===r?void 0:r.y,"px"),pointerEvents:u?"all":"none"},visible:!0})},t.prototype.hide=function(){this.visible=!1,this.container&&(iC(this.container,{style:{pointerEvents:"none"},visible:!1}),this.resetPosition())},t.prototype.destroy=function(){var t,e;this.visible=!1,this.container&&(this.resetPosition(),null===(e=(t=this.container).remove)||void 0===e||e.call(t),this.container=null)},t.prototype.renderContent=function(t){if(this.container){this.clearContent();var e=(this.spreadsheet.options.tooltip||{}).content,n=null!=t?t:e;Ep(n)||("string"!=typeof n?n instanceof Element&&this.container.appendChild(n):this.container.innerHTML=n)}},t.prototype.clearContent=function(){this.container&&(this.container.innerHTML="")},t.prototype.disablePointerEvent=function(){this.container&&"none"!==this.container.style.pointerEvents&&iC(this.container,{style:{pointerEvents:"none"}})},t.prototype.resetPosition=function(){this.position={x:0,y:0}},t.prototype.getContainer=function(){var t;if(!this.container){var e=this.spreadsheet.options.tooltip,n=(null===(t=e.getContainer)||void 0===t?void 0:t.call(e))||document.body,r=document.createElement("div");return iC(r,{style:e.style,className:[ib].concat(e.className)}),n.appendChild(r),this.container=r,this.container}return this.container},t}(),TE=function(t){function e(e,n,r){var i=t.call(this)||this;return i.store=new r_,i.untypedOn=i.on,i.untypedEmit=i.emit,i.on=function(t,e){return i.untypedOn(t,e)},i.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return i.untypedEmit.apply(i,By([t],Ny(e),!1))},i.initHiddenColumnsDetail=function(){var t=i.options.interaction.hiddenColumnFields,e=i.store.get("hiddenColumnsDetail");bp(t)&&bp(e)||cw(i,t,!0)},i.measureText=ll((function(t,e){var n;if(void 0===t&&(t=""),!e)return null;var r=null===(n=i.getCanvasElement())||void 0===n?void 0:n.getContext("2d"),o=e,a=o.fontSize,s=o.fontFamily,u=o.fontWeight,l=o.fontStyle,c=o.fontVariant;return r.font=[l,c,u,"".concat(a,"px"),s].join(" ").trim(),r.measureText(String(t))}),(function(t,e){return By([t],Ny(Wd(e)),!1).join("")})),i.measureTextWidth=function(t,e){void 0===t&&(t="");var n=i.measureText(t,e);return(null==n?void 0:n.width)||0},i.measureTextHeight=function(t,e){void 0===t&&(t="");var n=i.measureText(t,e);return n?n.actualBoundingBoxAscent+n.actualBoundingBoxDescent:0},i.measureTextWidthRoughly=function(t,e){var n,r;void 0===e&&(e={});var o=i.measureTextWidth("a",e),a=i.measureTextWidth("蚂",e),s=0;if(!t)return s;try{for(var u=Dy(t),l=u.next();!l.done;l=u.next()){var c=l.value.charCodeAt(0);s+=c>=0&&c<=255?o:a}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return s},i.dataCfg=vO(n),i.options=mO(r),i.dataSet=i.getDataSet(i.options),i.setDebug(),i.initTooltip(),i.initGroups(e),i.bindEvents(),i.initInteraction(),i.initTheme(),i.initHdAdapter(),i.registerIcons(),i.setOverscrollBehavior(),i}return Py(e,t),e.prototype.setOverscrollBehavior=function(){var t=this.options.interaction.overscrollBehavior,e=window.getComputedStyle(document.body).getPropertyValue("overscroll-behavior");e&&"auto"!==e?this.store.set("initOverscrollBehavior",e):t&&(document.body.style.overscrollBehavior=t)},e.prototype.restoreOverscrollBehavior=function(){document.body.style.overscrollBehavior=this.store.get("initOverscrollBehavior")||""},e.prototype.setDebug=function(){Xb.getInstance().setDebug(this.options.debug)},e.prototype.initTheme=function(){this.setThemeCfg({name:"default"})},e.prototype.getMountContainer=function(t){var e=Gd(t)?document.querySelector(t):t;if(!e)throw new Error("Target mount container is not a DOM element");return e},e.prototype.initHdAdapter=function(){this.options.hdAdapter&&(this.hdAdapter=new CE(this),this.hdAdapter.init())},e.prototype.initInteraction=function(){this.interaction=new SE(this)},e.prototype.initTooltip=function(){var t,e;this.tooltip=this.renderTooltip(),this.tooltip instanceof EE||console.warn("[Custom Tooltip]: ".concat(null===(e=null===(t=this.tooltip)||void 0===t?void 0:t.constructor)||void 0===e?void 0:e.toString()," should be extends from BaseTooltip"))},e.prototype.renderTooltip=function(){var t,e;return(null===(e=null===(t=this.options.tooltip)||void 0===t?void 0:t.renderTooltip)||void 0===e?void 0:e.call(t,this))||new EE(this)},e.prototype.showTooltip=function(t){var e,n,r=t.content,i=t.event,o=this.getCell(null==i?void 0:i.target),a=Ga(r)?r(o,t):r;null===(n=(e=this.tooltip).show)||void 0===n||n.call(e,Ly(Ly({},t),{content:a}))},e.prototype.showTooltipWithInfo=function(t,e,n){var r=xC(this,t),i=r.showTooltip,o=r.content;if(i){var a=this.getCell(null==t?void 0:t.target),s=mC({spreadsheet:this,cellInfos:e,targetCell:a,options:Ly({enableFormat:!0},n)});this.showTooltip({data:s,position:{x:t.clientX,y:t.clientY},options:Ly({enterable:!0},n),event:t,content:o})}},e.prototype.hideTooltip=function(){var t,e;null===(e=(t=this.tooltip).hide)||void 0===e||e.call(t)},e.prototype.destroyTooltip=function(){var t,e;null===(e=(t=this.tooltip).destroy)||void 0===e||e.call(t)},e.prototype.registerIcons=function(){var t=this.options.customSVGIcons;bp(t)||Wf(t,(function(t){Zb(t.name,t.svg)}))},e.prototype.setDataCfg=function(t,e){this.store.set("originalDataCfg",t),this.dataCfg=e?vO(t):vO(this.dataCfg,t),this.store.set(na,ra)},e.prototype.setOptions=function(t,e){this.hideTooltip(),this.options=e?mO(t):pO(this.options,t),this.registerIcons()},e.prototype.render=function(t,e){if(void 0===t&&(t=!0),void 0===e&&(e={}),this.getCanvasElement()){var n=e.reBuildDataSet,r=void 0!==n&&n,i=e.reBuildHiddenColumnsDetail,o=void 0===i||i;this.emit(Hi.LAYOUT_BEFORE_RENDER),r&&(this.dataSet=this.getDataSet(this.options)),t&&(this.clearDrillDownData("",!0),this.dataSet.setDataCfg(this.dataCfg)),this.buildFacet(),o&&this.initHiddenColumnsDetail(),this.emit(Hi.LAYOUT_AFTER_RENDER)}},e.prototype.destroy=function(){var t,e,n,r,i;this.restoreOverscrollBehavior(),this.emit(Hi.LAYOUT_DESTROY),null===(t=this.facet)||void 0===t||t.destroy(),null===(e=this.hdAdapter)||void 0===e||e.destroy(),null===(n=this.interaction)||void 0===n||n.destroy(),null===(r=this.store)||void 0===r||r.clear(),this.destroyTooltip(),this.clearCanvasEvent(),null===(i=this.container)||void 0===i||i.destroy(),function(){var t;null===(t=document.getElementById("s2-offscreen-canvas"))||void 0===t||t.remove()}()},e.prototype.setThemeCfg=function(t){void 0===t&&(t={});var e=(null==t?void 0:t.theme)||{},n=yb(Ly(Ly({},t),{spreadsheet:this}));this.theme=pO(n,e)},e.prototype.setTheme=function(t){this.theme=pO(this.theme,t)},e.prototype.updatePagination=function(t){this.options=pO(this.options,{pagination:t}),this.store.set("scrollX",0),this.store.set("scrollY",0)},e.prototype.getContentHeight=function(){return this.facet.getContentHeight()},e.prototype.changeSize=function(t,e){void 0===t&&(t=this.options.width),void 0===e&&(e=this.options.height),this.changeSheetSize(t,e)},e.prototype.changeSheetSize=function(t,e){void 0===t&&(t=this.options.width),void 0===e&&(e=this.options.height);var n=this.getCanvasElement(),r=this.container.get("width"),i=this.container.get("height");(t!==r||e!==i)&&n&&(this.options=pO(this.options,{width:t,height:e}),this.container.changeSize(t,e))},e.prototype.getCanvasElement=function(){return this.container.get("el")},e.prototype.getLayoutWidthType=function(){return this.options.style.layoutWidthType},e.prototype.getRowNodes=function(t){return void 0===t&&(t=-1),-1===t?this.facet.layoutResult.rowNodes:this.facet.layoutResult.rowNodes.filter((function(e){return e.level===t}))},e.prototype.getRowLeafNodes=function(){var t;return(null===(t=this.facet)||void 0===t?void 0:t.layoutResult.rowLeafNodes)||[]},e.prototype.getColumnNodes=function(t){var e;void 0===t&&(t=-1);var n=(null===(e=this.facet)||void 0===e?void 0:e.layoutResult.colNodes)||[];return-1===t?n:n.filter((function(e){return e.level===t}))},e.prototype.getColumnLeafNodes=function(){var t;return(null===(t=this.facet)||void 0===t?void 0:t.layoutResult.colLeafNodes)||[]},e.prototype.updateScrollOffset=function(t){this.facet.updateScrollOffset(pO({offsetX:{value:void 0,animate:!1},offsetY:{value:void 0,animate:!1}},t))},e.prototype.getTooltipDataItemMappingCallback=function(){var t;return null===(t=this.options)||void 0===t?void 0:t.mappingDisplayDataItem},e.prototype.getCell=function(t){for(var e,n=t;n&&!(n instanceof Wi);){if(n instanceof zx)return n;n=null===(e=n.get)||void 0===e?void 0:e.call(n,"parent")}return null},e.prototype.getCellType=function(t){var e=this.getCell(t);return null==e?void 0:e.cellType},e.prototype.getTotalsConfig=function(t){var e=ml(this.options.totals,Xd(this.dataSet.fields.rows,t)?"row":"col",{});return{showSubTotals:!(!e.showSubTotals||!Xd(e.subTotalsDimensions,t))&&e.showSubTotals,showGrandTotals:e.showGrandTotals,reverseLayout:e.reverseLayout,reverseSubLayout:e.reverseSubLayout,label:e.label||nb("总计"),subLabel:e.subLabel||nb("小计")}},e.prototype.initGroups=function(t){var e=this.options,n=e.width,r=e.height,i=e.supportCSSTransform,o=e.devicePixelRatio;this.container=new Wi({container:this.getMountContainer(t),width:n,height:r,localRefresh:!1,supportCSSTransform:i,pixelRatio:Math.max(o,Ty)}),this.backgroundGroup=this.container.addGroup({name:uo,zIndex:Qi}),this.panelGroup=this.container.addGroup({name:co,zIndex:io}),this.foregroundGroup=this.container.addGroup({name:lo,zIndex:Ji}),this.initPanelGroupChildren(),this.updateContainerStyle()},e.prototype.updateContainerStyle=function(){var t=this.getCanvasElement();t&&(t.style.display="block")},e.prototype.initPanelGroupChildren=function(){this.panelScrollGroup=new aE({name:ho,zIndex:oo,s2:this}),this.panelGroup.add(this.panelScrollGroup)},e.prototype.getInitColumnLeafNodes=function(){return this.store.get("initColumnLeafNodes",[])},e.prototype.clearColumnLeafNodes=function(){this.store.set("initColumnLeafNodes",void 0)},e.prototype.clearCanvasEvent=function(){var t=this;Md(this.getEvents(),(function(e,n){t.off(n)}))},e.prototype.updateSortMethodMap=function(t,e,n){var r;void 0===n&&(n=!1);var i=n?null:this.store.get("sortMethodMap");this.store.set("sortMethodMap",Ly(Ly({},i),((r={})[t]=e,r)))},e.prototype.getMenuDefaultSelectedKeys=function(t){var e=ml(this.store.get("sortMethodMap"),t);return e?[e]:[]},e}(gt),AE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),e.prototype.getDataSet=function(t){var e=t.dataSet,n=t.hierarchyType;return e?e(this):"customTree"===n?new AC(this):new EC(this)},e.prototype.isPivotMode=function(){return!0},e.prototype.isTableMode=function(){return!1},e.prototype.isHierarchyTreeType=function(){var t=this.options.hierarchyType;return"tree"===t||"customTree"===t},e.prototype.isScrollContainsRowHeader=function(){return!this.isFrozenRowHeader()},e.prototype.isFrozenRowHeader=function(){var t;return null===(t=this.options)||void 0===t?void 0:t.frozenRowHeader},e.prototype.isValueInCols=function(){return this.dataSet.fields.valueInCols},e.prototype.clearDrillDownData=function(t,e){this.dataSet instanceof EC&&(this.dataSet.clearDrillDownData(t),e||(this.interaction.reset(),this.render(!1)))},e.prototype.getFacetCfgFromDataSetAndOptions=function(){var t=this,e=this.dataSet,n=e.fields,r=e.meta,i=this.options,o=i.style,a=i.dataCell;return Ly(Ly(Ly(Ly({},this.options),n),o),{meta:r,spreadsheet:this,dataSet:this.dataSet,dataCell:null!=a?a:function(e){return new Hx(e,t)}})},e.prototype.buildFacet=function(){var t,e=this.getFacetCfgFromDataSetAndOptions();null===(t=this.facet)||void 0===t||t.destroy(),this.facet=new nE(e),this.facet.render()},e.prototype.bindEvents=function(){this.off(Hi.ROW_CELL_COLLAPSE_TREE_ROWS),this.off(Hi.LAYOUT_TREE_ROWS_COLLAPSE_ALL),this.on(Hi.ROW_CELL_COLLAPSE_TREE_ROWS,this.handleRowCellCollapseTreeRows),this.on(Hi.LAYOUT_TREE_ROWS_COLLAPSE_ALL,this.handleTreeRowsCollapseAll)},e.prototype.handleRowCellCollapseTreeRows=function(t){var e,n=t.id,r=t.isCollapsed,i={style:{collapsedRows:(e={},e[n]=r,e)}};this.emit(Hi.LAYOUT_COLLAPSE_ROWS,{collapsedRows:i.style.collapsedRows,meta:null==t?void 0:t.node}),this.setOptions(i),this.render(!1),this.emit(Hi.LAYOUT_AFTER_COLLAPSE_ROWS,{collapsedRows:i.style.collapsedRows,meta:null==t?void 0:t.node})},e.prototype.handleTreeRowsCollapseAll=function(t){var e={style:{hierarchyCollapse:!t,collapsedRows:null,rowExpandDepth:null}};this.setOptions(e),this.render(!1)},e.prototype.groupSortByMethod=function(t,e){var n=this.dataCfg.fields,r=n.rows,i=n.columns,o=this.options.style.colCfg.hideMeasureColumn,a=this.isValueInCols()?Ff(r):Ff(i),s=e.query,u=e.value,l=Ah(s),c=u;o&&this.isValueInCols()&&(c=this.dataSet.fields.values[0],l[$i]=c);var h={sortFieldId:a,sortMethod:t,sortByMeasure:c,query:l},f=this.dataCfg.sortParams.filter((function(t){return(null==t?void 0:t.sortFieldId)!==a}));this.updateSortMethodMap(e.id,t,!0);var d=By(By([],Ny(f),!1),[h],!1);this.emit(Hi.RANGE_SORT,d),this.setDataCfg(Ly(Ly({},this.dataCfg),{sortParams:d})),this.render()},e.prototype.handleGroupSort=function(t,e){var n=this;t.stopPropagation(),this.interaction.addIntercepts([fy.HOVER]);var r=this.getMenuDefaultSelectedKeys(null==e?void 0:e.id),i={onClick:function(r){var i=r.key;n.groupSortByMethod(i,e),n.emit(Hi.RANGE_SORTED,t)},menus:hb(),defaultSelectedKeys:r};this.showTooltipWithInfo(t,[],{operator:i,onlyMenu:!0,forceRender:!0})},e}(TE),ME=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),e}(oE),IE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onSortTooltipClick=function(t,n){var r=t.key,i={sortFieldId:n.field,sortMethod:r};e.updateSortMethodMap(n.id,r),e.emit(Hi.RANGE_SORT,[i])},e}return Py(e,t),e.prototype.getDataSet=function(t){var e=t.dataSet;return e?e(this):new TC(this)},e.prototype.isPivotMode=function(){return!1},e.prototype.isTableMode=function(){return!0},e.prototype.isHierarchyTreeType=function(){return!1},e.prototype.isScrollContainsRowHeader=function(){return!1},e.prototype.isFrozenRowHeader=function(){return!1},e.prototype.clearDrillDownData=function(){},e.prototype.isValueInCols=function(){return!1},e.prototype.bindEvents=function(){},e.prototype.initPanelGroupChildren=function(){var e,n=this;t.prototype.initPanelGroupChildren.call(this);var r={zIndex:ao,s2:this};e=Ny([po,go,vo,mo,yo,bo].map((function(t){var e=new ME(Ly({name:t},r));return n.panelGroup.add(e),e})),6),this.frozenRowGroup=e[0],this.frozenColGroup=e[1],this.frozenTrailingRowGroup=e[2],this.frozenTrailingColGroup=e[3],this.frozenTopGroup=e[4],this.frozenBottomGroup=e[5]},e.prototype.getFacetCfgFromDataSetAndOptions=function(){var t=this,e=this.dataSet,n=e.fields,r=e.meta,i=this.options,o=i.style,a=i.dataCell;return Ly(Ly(Ly(Ly({},this.options),n),o),{meta:r,spreadsheet:this,dataSet:this.dataSet,dataCell:null!=a?a:function(e){return t.options.showSeriesNumber&&0===e.colIndex?new eO(e,t):new tO(e,t)}})},e.prototype.buildFacet=function(){var t,e=this.getFacetCfgFromDataSetAndOptions();null===(t=this.facet)||void 0===t||t.destroy(),this.facet=new iE(e),this.facet.render()},e.prototype.clearFrozenGroups=function(){this.frozenRowGroup.set("children",[]),this.frozenColGroup.set("children",[]),this.frozenTrailingRowGroup.set("children",[]),this.frozenTrailingColGroup.set("children",[]),this.frozenTopGroup.set("children",[]),this.frozenBottomGroup.set("children",[])},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.clearFrozenGroups(),this.off(Hi.RANGE_SORT),this.off(Hi.RANGE_FILTER)},e.prototype.handleGroupSort=function(t,e){var n=this;t.stopPropagation(),this.interaction.addIntercepts([fy.HOVER]);var r=this.getMenuDefaultSelectedKeys(null==e?void 0:e.id),i={onClick:function(t){var r=t.key;n.onSortTooltipClick({key:r},e)},menus:fb(),defaultSelectedKeys:r};this.showTooltipWithInfo(t,[],{operator:i,onlyMenu:!0,forceRender:!0})},e}(TE)}.call(this,n(447),n(309),n(2160)(t))},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return i}));var r=n(1359);function i(t){t.registerPainter("canvas",r.default)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return i}));var r=n(1360);function i(t){t.registerPainter("svg",r.default)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return s}));var r=n(1364),i=n(1362),o=n(318),a=n(708);function s(t){t.registerChartView(i.default),t.registerSeriesModel(r.default),t.registerLayout(Object(o.default)("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Object(a.default)("line"))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return u}));var r=n(0),i=n(275),o=n(708),a=n(1366),s=n(1365);function u(t){t.registerChartView(s.default),t.registerSeriesModel(a.default),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,r.curry(i.layout,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(i.createProgressiveLayout)("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Object(o.default)("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return c}));var r=n(474),i=n(709),o=n(320),a=n(0),s=n(1367),u=n(1369),l=n(1370);function c(t){t.registerChartView(s.default),t.registerSeriesModel(u.default),Object(r.createLegacyDataSelectAction)("pie",t.registerAction),t.registerLayout(Object(a.curry)(i.default,"pie")),t.registerProcessor(Object(o.default)("pie")),t.registerProcessor(Object(l.default)("pie"))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return u}));var r=n(48),i=n(1376),o=n(1377),a=n(710),s=n(318);function u(t){Object(r.use)(a.install),t.registerSeriesModel(i.default),t.registerChartView(o.default),t.registerLayout(Object(s.default)("scatter"))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return c}));var r=n(48),i=n(1386),o=n(320),a=n(1387),s=n(1384),u=n(1385),l=n(1379);function c(t){Object(r.use)(l.install),t.registerChartView(s.default),t.registerSeriesModel(u.default),t.registerLayout(i.default),t.registerProcessor(Object(o.default)("radar")),t.registerPreprocessor(a.default)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return c}));var r=n(48),i=n(1395),o=n(1396),a=n(1398),s=n(1397),u=n(474),l=n(890);function c(t){Object(r.use)(l.install),t.registerChartView(i.default),t.registerSeriesModel(o.default),t.registerLayout(s.default),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,a.default),Object(u.createLegacyDataSelectAction)("map",t.registerAction)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return u}));var r=n(1399),i=n(1400),o=n(1401),a=n(1402),s=n(1403);function u(t){t.registerChartView(r.default),t.registerSeriesModel(i.default),t.registerLayout(o.default),t.registerVisual(a.default),Object(s.installTreeAction)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return u}));var r=n(1410),i=n(1404),o=n(1405),a=n(1408),s=n(1409);function u(t){t.registerSeriesModel(i.default),t.registerChartView(o.default),t.registerVisual(a.default),t.registerLayout(s.default),Object(r.installTreemapAction)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return v}));var r=n(1415),i=n(1416),o=n(1417),a=n(1418),s=n(1419),u=n(1420),l=n(1422),c=n(359),h=n(1411),f=n(1413),d=n(477),p=n(0),g={type:"graphRoam",event:"graphRoam",update:"none"};function v(t){t.registerChartView(h.default),t.registerSeriesModel(f.default),t.registerProcessor(r.default),t.registerVisual(i.default),t.registerVisual(o.default),t.registerLayout(a.default),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,s.default),t.registerLayout(u.default),t.registerCoordinateSystem("graphView",{dimensions:c.default.dimensions,create:l.default}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},p.noop),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},p.noop),t.registerAction(g,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var r=e.coordinateSystem,i=Object(d.updateCenterAndZoom)(r,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return o}));var r=n(1423),i=n(1425);function o(t){t.registerChartView(r.default),t.registerSeriesModel(i.default)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return s}));var r=n(1426),i=n(1427),o=n(1428),a=n(320);function s(t){t.registerChartView(r.default),t.registerSeriesModel(i.default),t.registerLayout(o.default),t.registerProcessor(Object(a.default)("funnel"))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return u}));var r=n(48),i=n(1437),o=n(1438),a=n(1439),s=n(892);function u(t){Object(r.use)(s.install),t.registerChartView(i.default),t.registerSeriesModel(o.default),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,a.default)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return s}));var r=n(1440),i=n(1441),o=n(1442),a=n(1443);function s(t){t.registerChartView(r.default),t.registerSeriesModel(i.default),t.registerLayout(o.default),t.registerVisual(a.default),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return u}));var r=n(1444),i=n(1445),o=n(1446),a=n(1447),s=n(1448);function u(t){t.registerSeriesModel(r.default),t.registerChartView(i.default),t.registerVisual(o.default),t.registerLayout(a.default),t.registerTransform(s.boxplotTransform)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return u}));var r=n(1450),i=n(1451),o=n(1452),a=n(1453),s=n(1454);function u(t){t.registerChartView(r.default),t.registerSeriesModel(i.default),t.registerPreprocessor(o.default),t.registerVisual(a.default),t.registerLayout(s.default)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(1455),i=n(1457),o=n(318);function a(t){t.registerChartView(r.default),t.registerSeriesModel(i.default),t.registerLayout(Object(o.default)("effectScatter"))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return s}));var r=n(1458),i=n(1461),o=n(719),a=n(1462);function s(t){t.registerChartView(r.default),t.registerSeriesModel(i.default),t.registerLayout(o.default),t.registerVisual(a.default)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return o}));var r=n(1463),i=n(1465);function o(t){t.registerChartView(r.default),t.registerSeriesModel(i.default)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return s}));var r=n(1466),i=n(1467),o=n(275),a=n(0);function s(t){t.registerChartView(r.default),t.registerSeriesModel(i.default),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(a.curry)(o.layout,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(o.createProgressiveLayout)("pictorialBar"))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return s}));var r=n(1468),i=n(1469),o=n(1470),a=n(320);function s(t){t.registerChartView(r.default),t.registerSeriesModel(i.default),t.registerLayout(o.default),t.registerProcessor(Object(a.default)("themeRiver"))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return c}));var r=n(1471),i=n(1472),o=n(1473),a=n(1474),s=n(320),u=n(0),l=n(722);function c(t){t.registerChartView(r.default),t.registerSeriesModel(i.default),t.registerLayout(Object(u.curry)(o.default,"sunburst")),t.registerProcessor(Object(u.curry)(s.default,"sunburst")),t.registerVisual(a.default),Object(l.installSunburstAction)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return o}));var r=n(238),i=n(1475);function o(t){t.registerChartView(i.default),t.registerSeriesModel(r.default)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(710),i=n(361),o=n(48);function a(t){Object(o.use)(r.install),Object(o.use)(i.install)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return _}));var r=n(5),i=n(48),o=n(221),a=n(1485),s=n(361),u=n(1489),l=n(330),c=n(896),h=n(1486),f=n(1490),d=n(1491),p=n(70),g=n(0),v=n(1492),m={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},y={splitNumber:5},b=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.type="polar",e}(p.default);function _(t){Object(i.use)(s.install),o.default.registerAxisPointerClass("PolarAxisPointer",a.default),t.registerCoordinateSystem("polar",h.default),t.registerComponentModel(u.default),t.registerComponentView(b),Object(l.default)(t,"angle",c.AngleAxisModel,m),Object(l.default)(t,"radius",c.RadiusAxisModel,y),t.registerComponentView(f.default),t.registerComponentView(d.default),t.registerLayout(Object(g.curry)(v.default,"bar"))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return p}));var r=n(5),i=n(48),o=n(70),a=n(1494),s=n(330),u=n(803),l=n(1495),c=n(361),h=n(221),f=n(1493),d=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.type="single",e}(o.default);function p(t){Object(i.use)(c.install),h.default.registerAxisPointerClass("SingleAxisPointer",f.default),t.registerComponentView(d),t.registerComponentView(a.default),t.registerComponentModel(u.default),Object(s.default)(t,"single",u.default,u.default.defaultOption),t.registerCoordinateSystem("single",l.default)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(1497),i=n(1498),o=n(1499);function a(t){t.registerComponentModel(r.default),t.registerComponentView(i.default),t.registerCoordinateSystem("calendar",o.default)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(0),i=n(1500),o=n(1501);function a(t){t.registerComponentModel(i.GraphicComponentModel),t.registerComponentView(o.GraphicComponentView),t.registerPreprocessor((function(t){var e=t.graphic;Object(r.isArray)(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return d}));var r=n(48),i=n(1509),o=n(1502),a=n(1503),s=n(112),u=n(1504),l=n(1505),c=n(1506),h=n(1508),f=n(1507);function d(t){t.registerComponentModel(o.default),t.registerComponentView(a.default),Object(s.registerFeature)("saveAsImage",u.default),Object(s.registerFeature)("magicType",l.default),Object(s.registerFeature)("dataView",c.default),Object(s.registerFeature)("dataZoom",f.default),Object(s.registerFeature)("restore",h.default),Object(r.use)(i.install)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return u}));var r=n(361),i=n(48),o=n(1515),a=n(1516),s=n(0);function u(t){Object(i.use)(r.install),t.registerComponentModel(o.default),t.registerComponentView(a.default),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},s.noop),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},s.noop)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return c}));var r=n(1522),i=n(1519),o=n(1521),a=n(724),s=n(1523),u=n(112),l=n(0);function c(t){t.registerComponentView(i.default),t.registerComponentModel(o.default),t.registerPreprocessor(r.default),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,a.default),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},l.noop),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},l.noop),Object(u.registerFeature)("brush",s.default)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return g}));var r=n(5),i=n(0),o=n(72),a=n(79),s=n(31),u=n(27),l=n(33),c=n(41),h=n(70),f=n(71),d=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(r.__extends)(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(c.default),p=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,c=t.getModel("textStyle"),h=t.getModel("subtextStyle"),d=t.get("textAlign"),p=i.retrieve2(t.get("textBaseline"),t.get("textVerticalAlign")),g=new o.default({style:Object(u.createTextStyle)(c,{text:t.get("text"),fill:c.getTextColor()},{disableBox:!0}),z2:10}),v=g.getBoundingRect(),m=t.get("subtext"),y=new o.default({style:Object(u.createTextStyle)(h,{text:m,fill:h.getTextColor(),y:v.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),b=t.get("link"),_=t.get("sublink"),x=t.get("triggerEvent",!0);g.silent=!b&&!x,y.silent=!_&&!x,b&&g.on("click",(function(){Object(f.windowOpen)(b,"_"+t.get("target"))})),_&&y.on("click",(function(){Object(f.windowOpen)(_,"_"+t.get("subtarget"))})),Object(s.getECData)(g).eventData=Object(s.getECData)(y).eventData=x?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(g),m&&r.add(y);var w=r.getBoundingRect(),O=t.getBoxLayoutParams();O.width=w.width,O.height=w.height;var S=Object(l.getLayoutRect)(O,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));d||("middle"===(d=t.get("left")||t.get("right"))&&(d="center"),"right"===d?S.x+=S.width:"center"===d&&(S.x+=S.width/2)),p||("center"===(p=t.get("top")||t.get("bottom"))&&(p="middle"),"bottom"===p?S.y+=S.height:"middle"===p&&(S.y+=S.height/2),p=p||"top"),r.x=S.x,r.y=S.y,r.markRedraw();var C={align:d,verticalAlign:p};g.setStyle(C),y.setStyle(C),w=r.getBoundingRect();var E=S.margin,T=t.getItemStyle(["color","opacity"]);T.fill=t.get("backgroundColor");var A=new a.default({shape:{x:w.x-E[3],y:w.y-E[0],width:w.width+E[1]+E[3],height:w.height+E[0]+E[2],r:t.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});r.add(A)}},e.type="title",e}(h.default);function g(t){t.registerComponentModel(d),t.registerComponentView(p)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return s}));var r=n(1524),i=n(1525),o=n(1528),a=n(1529);function s(t){t.registerComponentModel(r.default),t.registerComponentView(i.default),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),Object(o.installTimelineAction)(t),t.registerPreprocessor(a.default)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(486),i=n(1530),o=n(1531);function a(t){t.registerComponentModel(i.default),t.registerComponentView(o.default),t.registerPreprocessor((function(t){Object(r.default)(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(486),i=n(1532),o=n(1533);function a(t){t.registerComponentModel(i.default),t.registerComponentView(o.default),t.registerPreprocessor((function(t){Object(r.default)(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(486),i=n(1534),o=n(1535);function a(t){t.registerComponentModel(i.default),t.registerComponentView(o.default),t.registerPreprocessor((function(t){Object(r.default)(t.series,"markArea")&&(t.markArea=t.markArea||{})}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(48),i=n(725),o=n(1538);function a(t){Object(r.use)(i.install),Object(r.use)(o.install)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(48),i=n(899),o=n(900);function a(t){Object(r.use)(i.install),Object(r.use)(o.install)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(48),i=n(901),o=n(903);function a(t){Object(r.use)(i.install),Object(r.use)(o.install)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return o}));var r=n(1553),i=n(1552);function o(t){t.registerPreprocessor(i.default),t.registerVisual(t.PRIORITY.VISUAL.ARIA,r.default)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return o}));var r=n(1554),i=n(1556);function o(t){t.registerTransform(r.filterTransform),t.registerTransform(i.sortTransform)}},function(t,e,n){"use strict";n.r(e),n.d(e,"DatasetModel",(function(){return u})),n.d(e,"install",(function(){return c}));var r=n(5),i=n(41),o=n(70),a=n(30),s=n(512),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return Object(r.__extends)(e,t),e.prototype.init=function(e,n,r){t.prototype.init.call(this,e,n,r),this._sourceManager=new s.SourceManager(this),Object(s.disableTransformOptionMerge)(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Object(s.disableTransformOptionMerge)(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:a.SERIES_LAYOUT_BY_COLUMN},e}(i.default),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return Object(r.__extends)(e,t),e.type="dataset",e}(o.default);function c(t){t.registerComponentModel(u),t.registerComponentView(l)}},function(t,e,n){"use strict";n.r(e),n.d(e,"installUniversalTransition",(function(){return x}));var r=n(59),i=n(0),o=n(348),a=n(36),s=n(23),u=n(185),l=n(9),c=(n(38),n(106)),h=Object(l.makeInner)();function f(t){var e=[];return Object(i.each)(t,(function(t){var n=t.data;if(!(n.count()>1e4))for(var r=n.getIndices(),i=function(t){for(var e=t.dimensions,n=0;n<e.length;n++){var r=t.getDimensionInfo(e[n]);if(r&&0===r.otherDims.itemGroupId)return e[n]}}(n),o=0;o<r.length;o++)e.push({data:n,dim:t.dim||i,divide:t.divide,dataIndex:o})})),e}function d(t,e,n){t.traverse((function(t){t instanceof a.default&&Object(s.initProps)(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function p(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function g(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function v(t,e,n){var r=f(t),l=f(e);function h(t,e,n,r,o){(n||t)&&e.animateFrom({style:n&&n!==t?Object(i.extend)(Object(i.extend)({},n.style),t.style):t.style},o)}function v(t){for(var e=0;e<t.length;e++)if(t[e].dim)return t[e].dim}var m=v(r),y=v(l),b=!1;function _(t,e){return function(n){var r=n.data,i=n.dataIndex;if(e)return r.getId(i);var o=r.hostModel&&r.hostModel.get("dataGroupId"),a=t?m||y:y||m,s=a&&r.getDimensionInfo(a),u=s&&s.ordinalMeta;if(s){var l=r.get(s.name,i);return u&&u.categories[l]||l+""}var c=r.getRawDataItem(i);return c&&c.groupId?c.groupId+"":o||r.getId(i)}}var x=function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var i=t[r],o=e[r];if(i.data.getId(i.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(r,l),w={};if(!x)for(var O=0;O<l.length;O++){var S=l[O],C=S.data.getItemGraphicEl(S.dataIndex);C&&(w[C.id]=!0)}function E(t,e){var n=r[e],i=l[t],a=i.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),f=i.data.getItemGraphicEl(i.dataIndex);u!==f?u&&w[u.id]||f&&(g(f),u?(g(u),p(u),b=!0,Object(o.applyMorphAnimation)(Object(o.getPathList)(u),Object(o.getPathList)(f),i.divide,a,t,h)):d(f,a,t)):f&&function(t,e,n){var r=Object(s.getAnimationConfig)("update",n,e);r&&t.traverse((function(t){if(t instanceof c.default){var e=Object(s.getOldStyle)(t);e&&t.animateFrom({style:e},r)}}))}(f,i.dataIndex,a)}new u.default(r,l,_(!0,x),_(!1,x),null,"multiple").update(E).updateManyToOne((function(t,e){var n=l[t],a=n.data,s=a.hostModel,u=a.getItemGraphicEl(n.dataIndex),c=Object(i.filter)(Object(i.map)(e,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==u&&!w[t.id]}));u&&(g(u),c.length?(Object(i.each)(c,(function(t){g(t),p(t)})),b=!0,Object(o.applyMorphAnimation)(Object(o.getPathList)(c),Object(o.getPathList)(u),n.divide,s,t,h)):d(u,s,n.dataIndex))})).updateOneToMany((function(t,e){var n=r[e],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!w[a.id]){var s=Object(i.filter)(Object(i.map)(t,(function(t){return l[t].data.getItemGraphicEl(l[t].dataIndex)})),(function(t){return t&&t!==a})),u=l[t[0]].data.hostModel;s.length&&(Object(i.each)(s,(function(t){return g(t)})),a?(g(a),p(a),b=!0,Object(o.applyMorphAnimation)(Object(o.getPathList)(a),Object(o.getPathList)(s),n.divide,u,t[0],h)):Object(i.each)(s,(function(e){return d(e,u,t[0])})))}})).updateManyToMany((function(t,e){new u.default(e,t,(function(t){return r[t].data.getId(r[t].dataIndex)}),(function(t){return l[t].data.getId(l[t].dataIndex)})).update((function(n,r){E(t[n],e[r])})).execute()})).execute(),b&&Object(i.each)(e,(function(t){var e=t.data.hostModel,r=e&&n.getViewOfSeriesModel(e),i=Object(s.getAnimationConfig)("update",e,0);r&&e.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse((function(t){t instanceof a.default&&!t.animators.length&&t.animateFrom({style:{opacity:0}},i)}))}))}function m(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function y(t){return Object(i.isArray)(t)?t.sort().join(","):t}function b(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function _(t,e){for(var n=0;n<t.length;n++){if(null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id)return n}}function x(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(i.each)(Object(l.normalizeToArray)(n.seriesTransition),(function(t){Object(i.each)(Object(l.normalizeToArray)(t.to),(function(t){for(var e=n.updatedSeries,i=0;i<e.length;i++)(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)&&(e[i][r.SERIES_UNIVERSAL_TRANSITION_PROP]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var o=h(e);if(o.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)Object(i.each)(Object(l.normalizeToArray)(a),(function(t){!function(t,e,n,r){var o=[],a=[];Object(i.each)(Object(l.normalizeToArray)(t.from),(function(t){var n=_(e.oldSeries,t);n>=0&&o.push({data:e.oldData[n],divide:b(e.oldData[n]),dim:t.dimension})})),Object(i.each)(Object(l.normalizeToArray)(t.to),(function(t){var e=_(n.updatedSeries,t);if(e>=0){var r=n.updatedSeries[e].getData();a.push({data:r,divide:b(r),dim:t.dimension})}})),o.length>0&&a.length>0&&v(o,a,r)}(t,o,n,e)}));else{var s=function(t,e){var n=Object(i.createHashMap)(),r=Object(i.createHashMap)(),o=Object(i.createHashMap)();return Object(i.each)(t.oldSeries,(function(e,n){var a=t.oldData[n],s=m(e),u=y(s);r.set(u,a),Object(i.isArray)(s)&&Object(i.each)(s,(function(t){o.set(t,{data:a,key:u})}))})),Object(i.each)(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.getData(),a=m(t),s=y(a),u=r.get(s);if(u)n.set(s,{oldSeries:[{divide:b(u),data:u}],newSeries:[{divide:b(e),data:e}]});else if(Object(i.isArray)(a)){0;var l=[];Object(i.each)(a,(function(t){var e=r.get(t);e&&l.push({divide:b(e),data:e})})),l.length&&n.set(s,{oldSeries:l,newSeries:[{data:e,divide:b(e)}]})}else{var c=o.get(a);if(c){var h=n.get(c.key);h||(h={oldSeries:[{data:c.data,divide:b(c.data)}],newSeries:[]},n.set(c.key,h)),h.newSeries.push({data:e,divide:b(e)})}}}})),n}(o,n);Object(i.each)(s.keys(),(function(t){var n=s.get(t);v(n.oldSeries,n.newSeries,e)}))}Object(i.each)(n.updatedSeries,(function(t){t[r.SERIES_UNIVERSAL_TRANSITION_PROP]&&(t[r.SERIES_UNIVERSAL_TRANSITION_PROP]=!1)}))}for(var u=t.getSeries(),c=o.oldSeries=[],f=o.oldData=[],d=0;d<u.length;d++){var p=u[d].getData();p.count()<1e4&&(c.push(u[d]),f.push(p))}}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"now",(function(){return d})),n.d(e,"Timer",(function(){return g})),n.d(e,"timer",(function(){return v})),n.d(e,"timerFlush",(function(){return m}));var r,i,o=0,a=0,s=0,u=0,l=0,c=0,h="object"==typeof performance&&performance.now?performance:Date,f="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function d(){return l||(f(p),l=h.now()+c)}function p(){l=0}function g(){this._call=this._time=this._next=null}function v(t,e,n){var r=new g;return r.restart(t,e,n),r}function m(){d(),++o;for(var t,e=r;e;)(t=l-e._time)>=0&&e._call.call(null,t),e=e._next;--o}function y(){l=(u=h.now())+c,o=a=0;try{m()}finally{o=0,function(){var t,e,n=r,o=1/0;for(;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,_(o)}(),l=0}}function b(){var t=h.now(),e=t-u;e>1e3&&(c-=e,u=t)}function _(t){o||(a&&(a=clearTimeout(a)),t-l>24?(t<1/0&&(a=setTimeout(y,t-h.now()-c)),s&&(s=clearInterval(s))):(s||(u=h.now(),s=setInterval(b,1e3)),o=1,f(y)))}g.prototype=v.prototype={constructor:g,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,_()},stop:function(){this._call&&(this._call=null,this._time=1/0,_())}}}]);